From 1ee9fb427c318b01369f43c7e174c6137c8768bf Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Sat, 29 Aug 2020 20:18:35 -0400 Subject: [PATCH] Removed search and company select from sidebar, removed unused plugins --- add_calendar_event_modal.php | 2 +- cron.php | 2 +- edit_client_modal.php | 2 +- .../css/bootstrap-colorpicker.css | 399 - .../css/bootstrap-colorpicker.css.map | 1 - .../css/bootstrap-colorpicker.min.css | 10 - .../css/bootstrap-colorpicker.min.css.map | 1 - .../js/bootstrap-colorpicker.js | 6252 ------ .../js/bootstrap-colorpicker.js.map | 1 - .../js/bootstrap-colorpicker.min.js | 10 - .../js/bootstrap-colorpicker.min.js.map | 1 - plugins/bootstrap-slider/bootstrap-slider.js | 2061 -- .../bootstrap-slider/bootstrap-slider.min.js | 5 - .../bootstrap-slider/css/bootstrap-slider.css | 328 - .../css/bootstrap-slider.min.css | 41 - .../css/bootstrap2/bootstrap-switch.css | 510 - .../css/bootstrap2/bootstrap-switch.min.css | 10 - .../css/bootstrap3/bootstrap-switch.css | 187 - .../css/bootstrap3/bootstrap-switch.min.css | 10 - .../bootstrap-switch/js/bootstrap-switch.js | 784 - .../js/bootstrap-switch.min.js | 10 - .../bootstrap-duallistbox.css | 87 - .../bootstrap-duallistbox.min.css | 1 - .../jquery.bootstrap-duallistbox.js | 890 - .../jquery.bootstrap-duallistbox.min.js | 10 - .../bs-custom-file-input.js | 167 - .../bs-custom-file-input.js.map | 1 - .../bs-custom-file-input.min.js | 7 - .../bs-custom-file-input.min.js.map | 1 - .../css/autoFill.bootstrap4.css | 91 - .../css/autoFill.bootstrap4.min.css | 1 - .../js/autoFill.bootstrap4.js | 43 - .../js/autoFill.bootstrap4.min.js | 5 - .../js/dataTables.autoFill.js | 1212 - .../js/dataTables.autoFill.min.js | 26 - .../css/dataTables.bootstrap4.css | 206 - .../css/dataTables.bootstrap4.min.css | 1 - .../js/dataTables.bootstrap4.js | 184 - .../js/dataTables.bootstrap4.min.js | 8 - .../css/buttons.bootstrap4.css | 195 - .../css/buttons.bootstrap4.min.css | 1 - .../js/buttons.bootstrap4.js | 68 - .../js/buttons.bootstrap4.min.js | 6 - .../datatables-buttons/js/buttons.colVis.js | 206 - .../js/buttons.colVis.min.js | 6 - .../datatables-buttons/js/buttons.flash.js | 1456 -- .../js/buttons.flash.min.js | 32 - .../datatables-buttons/js/buttons.html5.js | 1459 -- .../js/buttons.html5.min.js | 28 - .../datatables-buttons/js/buttons.print.js | 210 - .../js/buttons.print.min.js | 5 - .../js/dataTables.buttons.js | 2015 -- .../js/dataTables.buttons.min.js | 42 - .../css/colReorder.bootstrap4.css | 11 - .../css/colReorder.bootstrap4.min.css | 1 - .../js/colReorder.bootstrap4.js | 38 - .../js/colReorder.bootstrap4.min.js | 5 - .../js/dataTables.colReorder.js | 1491 -- .../js/dataTables.colReorder.min.js | 30 - .../css/fixedColumns.bootstrap4.css | 64 - .../css/fixedColumns.bootstrap4.min.css | 1 - .../js/dataTables.fixedColumns.js | 1659 -- .../js/dataTables.fixedColumns.min.js | 35 - .../js/fixedColumns.bootstrap4.js | 38 - .../js/fixedColumns.bootstrap4.min.js | 5 - .../css/fixedHeader.bootstrap4.css | 20 - .../css/fixedHeader.bootstrap4.min.css | 1 - .../js/dataTables.fixedHeader.js | 726 - .../js/dataTables.fixedHeader.min.js | 18 - .../js/fixedHeader.bootstrap4.js | 38 - .../js/fixedHeader.bootstrap4.min.js | 5 - .../css/keyTable.bootstrap4.css | 9 - .../css/keyTable.bootstrap4.min.css | 1 - .../js/dataTables.keyTable.js | 1244 - .../js/dataTables.keyTable.min.js | 25 - .../js/keyTable.bootstrap4.js | 38 - .../js/keyTable.bootstrap4.min.js | 5 - .../css/responsive.bootstrap4.css | 180 - .../css/responsive.bootstrap4.min.css | 1 - .../js/dataTables.responsive.js | 1393 -- .../js/dataTables.responsive.min.js | 30 - .../js/responsive.bootstrap4.js | 85 - .../js/responsive.bootstrap4.min.js | 6 - .../css/rowGroup.bootstrap4.css | 20 - .../css/rowGroup.bootstrap4.min.css | 1 - .../js/dataTables.rowGroup.js | 472 - .../js/dataTables.rowGroup.min.js | 12 - .../js/rowGroup.bootstrap4.js | 38 - .../js/rowGroup.bootstrap4.min.js | 5 - .../css/rowReorder.bootstrap4.css | 22 - .../css/rowReorder.bootstrap4.min.css | 1 - .../js/dataTables.rowReorder.js | 819 - .../js/dataTables.rowReorder.min.js | 18 - .../js/rowReorder.bootstrap4.js | 38 - .../js/rowReorder.bootstrap4.min.js | 5 - .../css/scroller.bootstrap4.css | 36 - .../css/scroller.bootstrap4.min.css | 1 - .../js/dataTables.scroller.js | 1299 -- .../js/dataTables.scroller.min.js | 28 - .../js/scroller.bootstrap4.js | 38 - .../js/scroller.bootstrap4.min.js | 5 - .../css/select.bootstrap4.css | 115 - .../css/select.bootstrap4.min.css | 1 - .../datatables-select/js/dataTables.select.js | 1206 - .../js/dataTables.select.min.js | 28 - .../datatables-select/js/select.bootstrap4.js | 38 - .../js/select.bootstrap4.min.js | 5 - plugins/datatables/jquery.dataTables.js | 15334 ------------- plugins/datatables/jquery.dataTables.min.js | 166 - plugins/ekko-lightbox/ekko-lightbox.css | 2 - plugins/ekko-lightbox/ekko-lightbox.js | 668 - plugins/ekko-lightbox/ekko-lightbox.js.map | 1 - plugins/ekko-lightbox/ekko-lightbox.min.js | 2 - .../ekko-lightbox/ekko-lightbox.min.js.map | 1 - plugins/fastclick/fastclick.js | 841 - plugins/filterizr/ActiveFilter.d.ts | 15 - plugins/filterizr/BrowserWindow.d.ts | 16 - plugins/filterizr/EventReceiver.d.ts | 12 - plugins/filterizr/FilterContainer.d.ts | 36 - .../FilterContainer/FilterContainer.d.ts | 28 - .../StyledFilterContainer.d.ts | 6 - plugins/filterizr/FilterContainer/index.d.ts | 1 - plugins/filterizr/FilterContainer/styles.d.ts | 4 - plugins/filterizr/FilterControls.d.ts | 19 - plugins/filterizr/FilterItem.d.ts | 98 - plugins/filterizr/FilterItem/FilterItem.d.ts | 44 - .../FilterItem/StyledFilterItem.d.ts | 30 - plugins/filterizr/FilterItem/index.d.ts | 1 - plugins/filterizr/FilterItem/styles.d.ts | 5 - plugins/filterizr/FilterItems.d.ts | 22 - .../filterizr/FilterItems/FilterItems.d.ts | 23 - .../FilterItems/StyledFilterItems.d.ts | 12 - plugins/filterizr/FilterItems/index.d.ts | 1 - plugins/filterizr/Filterizr.d.ts | 76 - plugins/filterizr/Filterizr/Filterizr.d.ts | 75 - plugins/filterizr/Filterizr/index.d.ts | 1 - .../Filterizr/installAsJQueryPlugin.d.ts | 1 - plugins/filterizr/FilterizrElement.d.ts | 16 - .../FilterizrOptions/FilterizrOptions.d.ts | 22 - .../FilterizrOptions/defaultOptions.d.ts | 3 - plugins/filterizr/FilterizrOptions/index.d.ts | 2 - plugins/filterizr/Spinner/Spinner.d.ts | 13 - plugins/filterizr/Spinner/StyledSpinner.d.ts | 5 - plugins/filterizr/Spinner/index.d.ts | 1 - plugins/filterizr/Spinner/makeSpinner.d.ts | 2 - plugins/filterizr/StyledFilterizrElement.d.ts | 12 - .../filterizr/StyledFilterizrElements.d.ts | 2 - plugins/filterizr/animate.d.ts | 6 - .../config/cssEasingValuesRegexp.d.ts | 4 - plugins/filterizr/config/filterizrState.d.ts | 11 - plugins/filterizr/config/index.d.ts | 3 - plugins/filterizr/config/layout.d.ts | 13 - plugins/filterizr/filterizr.min.js | 12 - plugins/filterizr/getLayoutPositions.d.ts | 10 - plugins/filterizr/index.d.ts | 9 - plugins/filterizr/index.jquery.d.ts | 10 - plugins/filterizr/installAsJQueryPlugin.d.ts | 1 - plugins/filterizr/jquery.filterizr.min.js | 29 - plugins/filterizr/layouts/Packer.d.ts | 30 - .../layouts/getHorizontalLayoutPositions.d.ts | 8 - .../layouts/getPackedLayoutPositions.d.ts | 8 - .../layouts/getSameHeightLayoutPositions.d.ts | 8 - .../layouts/getSameSizeLayoutPosition.d.ts | 8 - .../layouts/getSameWidthLayoutPositions.d.ts | 8 - .../layouts/getVerticalLayoutPositions.d.ts | 8 - .../filterizr/makeLayoutPositions/Packer.d.ts | 30 - .../filterizr/makeLayoutPositions/index.d.ts | 1 - .../makeHorizontalLayoutPositions.d.ts | 6 - .../makeLayoutPositions.d.ts | 7 - .../makePackedLayoutPositions.d.ts | 6 - .../makeSameHeightLayoutPositions.d.ts | 6 - .../makeSameSizeLayoutPosition.d.ts | 6 - .../makeSameWidthLayoutPositions.d.ts | 6 - .../makeVerticalLayoutPositions.d.ts | 6 - plugins/filterizr/types/index.d.ts | 3 - .../types/interfaces/BaseOptions.d.ts | 20 - .../types/interfaces/ContainerLayout.d.ts | 5 - .../types/interfaces/Destructible.d.ts | 3 - .../types/interfaces/Dictionary.d.ts | 3 - .../types/interfaces/Dimensions.d.ts | 4 - .../filterizr/types/interfaces/Options.d.ts | 5 - .../filterizr/types/interfaces/Position.d.ts | 4 - .../types/interfaces/RawOptions.d.ts | 4 - .../types/interfaces/RawOptionsCallbacks.d.ts | 10 - .../filterizr/types/interfaces/Resizable.d.ts | 6 - .../types/interfaces/SpinnerOptions.d.ts | 6 - .../filterizr/types/interfaces/Styleable.d.ts | 5 - plugins/filterizr/types/interfaces/index.d.ts | 12 - plugins/filterizr/utils.d.ts | 140 - .../utils/allStringsOfArray1InArray2.d.ts | 1 - .../filterizr/utils/checkOptionForErrors.d.ts | 9 - plugins/filterizr/utils/debounce.d.ts | 4 - .../filterItemArraysHaveSameSorting.d.ts | 9 - .../utils/getDataAttributesOfHTMLNode.d.ts | 2 - plugins/filterizr/utils/getHTMLElement.d.ts | 6 - plugins/filterizr/utils/index.d.ts | 12 - plugins/filterizr/utils/intersection.d.ts | 4 - plugins/filterizr/utils/merge.d.ts | 5 - plugins/filterizr/utils/noop.d.ts | 4 - plugins/filterizr/utils/setStyles.d.ts | 7 - plugins/filterizr/utils/shuffle.d.ts | 6 - plugins/filterizr/utils/sortBy.d.ts | 7 - plugins/filterizr/vanilla.filterizr.min.js | 12 - plugins/flag-icon-css/css/flag-icon.css | 1562 -- plugins/flag-icon-css/css/flag-icon.min.css | 1 - plugins/flag-icon-css/flags/1x1/ad.svg | 148 - plugins/flag-icon-css/flags/1x1/ae.svg | 6 - plugins/flag-icon-css/flags/1x1/af.svg | 81 - plugins/flag-icon-css/flags/1x1/ag.svg | 14 - plugins/flag-icon-css/flags/1x1/ai.svg | 763 - plugins/flag-icon-css/flags/1x1/al.svg | 5 - plugins/flag-icon-css/flags/1x1/am.svg | 5 - plugins/flag-icon-css/flags/1x1/ao.svg | 13 - plugins/flag-icon-css/flags/1x1/aq.svg | 5 - plugins/flag-icon-css/flags/1x1/ar.svg | 31 - plugins/flag-icon-css/flags/1x1/as.svg | 33 - plugins/flag-icon-css/flags/1x1/at.svg | 6 - plugins/flag-icon-css/flags/1x1/au.svg | 11 - plugins/flag-icon-css/flags/1x1/aw.svg | 186 - plugins/flag-icon-css/flags/1x1/ax.svg | 18 - plugins/flag-icon-css/flags/1x1/az.svg | 8 - plugins/flag-icon-css/flags/1x1/ba.svg | 12 - plugins/flag-icon-css/flags/1x1/bb.svg | 6 - plugins/flag-icon-css/flags/1x1/bd.svg | 4 - plugins/flag-icon-css/flags/1x1/be.svg | 7 - plugins/flag-icon-css/flags/1x1/bf.svg | 7 - plugins/flag-icon-css/flags/1x1/bg.svg | 7 - plugins/flag-icon-css/flags/1x1/bh.svg | 9 - plugins/flag-icon-css/flags/1x1/bi.svg | 15 - plugins/flag-icon-css/flags/1x1/bj.svg | 14 - plugins/flag-icon-css/flags/1x1/bl.svg | 7 - plugins/flag-icon-css/flags/1x1/bm.svg | 98 - plugins/flag-icon-css/flags/1x1/bn.svg | 36 - plugins/flag-icon-css/flags/1x1/bo.svg | 678 - plugins/flag-icon-css/flags/1x1/bq.svg | 5 - plugins/flag-icon-css/flags/1x1/br.svg | 45 - plugins/flag-icon-css/flags/1x1/bs.svg | 13 - plugins/flag-icon-css/flags/1x1/bt.svg | 89 - plugins/flag-icon-css/flags/1x1/bv.svg | 13 - plugins/flag-icon-css/flags/1x1/bw.svg | 7 - plugins/flag-icon-css/flags/1x1/by.svg | 22 - plugins/flag-icon-css/flags/1x1/bz.svg | 145 - plugins/flag-icon-css/flags/1x1/ca.svg | 4 - plugins/flag-icon-css/flags/1x1/cc.svg | 19 - plugins/flag-icon-css/flags/1x1/cd.svg | 12 - plugins/flag-icon-css/flags/1x1/cf.svg | 15 - plugins/flag-icon-css/flags/1x1/cg.svg | 12 - plugins/flag-icon-css/flags/1x1/ch.svg | 9 - plugins/flag-icon-css/flags/1x1/ci.svg | 7 - plugins/flag-icon-css/flags/1x1/ck.svg | 11 - plugins/flag-icon-css/flags/1x1/cl.svg | 13 - plugins/flag-icon-css/flags/1x1/cm.svg | 15 - plugins/flag-icon-css/flags/1x1/cn.svg | 11 - plugins/flag-icon-css/flags/1x1/co.svg | 7 - plugins/flag-icon-css/flags/1x1/cr.svg | 7 - plugins/flag-icon-css/flags/1x1/cu.svg | 13 - plugins/flag-icon-css/flags/1x1/cv.svg | 13 - plugins/flag-icon-css/flags/1x1/cw.svg | 14 - plugins/flag-icon-css/flags/1x1/cx.svg | 15 - plugins/flag-icon-css/flags/1x1/cy.svg | 6 - plugins/flag-icon-css/flags/1x1/cz.svg | 12 - plugins/flag-icon-css/flags/1x1/de.svg | 5 - plugins/flag-icon-css/flags/1x1/dj.svg | 13 - plugins/flag-icon-css/flags/1x1/dk.svg | 5 - plugins/flag-icon-css/flags/1x1/dm.svg | 152 - plugins/flag-icon-css/flags/1x1/do.svg | 6745 ------ plugins/flag-icon-css/flags/1x1/dz.svg | 5 - plugins/flag-icon-css/flags/1x1/ec.svg | 138 - plugins/flag-icon-css/flags/1x1/ee.svg | 7 - plugins/flag-icon-css/flags/1x1/eg.svg | 38 - plugins/flag-icon-css/flags/1x1/eh.svg | 15 - plugins/flag-icon-css/flags/1x1/er.svg | 13 - plugins/flag-icon-css/flags/1x1/es-ca.svg | 4 - plugins/flag-icon-css/flags/1x1/es.svg | 547 - plugins/flag-icon-css/flags/1x1/et.svg | 14 - plugins/flag-icon-css/flags/1x1/eu.svg | 28 - plugins/flag-icon-css/flags/1x1/fi.svg | 5 - plugins/flag-icon-css/flags/1x1/fj.svg | 125 - plugins/flag-icon-css/flags/1x1/fk.svg | 93 - plugins/flag-icon-css/flags/1x1/fm.svg | 11 - plugins/flag-icon-css/flags/1x1/fo.svg | 12 - plugins/flag-icon-css/flags/1x1/fr.svg | 7 - plugins/flag-icon-css/flags/1x1/ga.svg | 7 - plugins/flag-icon-css/flags/1x1/gb-eng.svg | 5 - plugins/flag-icon-css/flags/1x1/gb-nir.svg | 131 - plugins/flag-icon-css/flags/1x1/gb-sct.svg | 4 - plugins/flag-icon-css/flags/1x1/gb-wls.svg | 9 - plugins/flag-icon-css/flags/1x1/gb.svg | 7 - plugins/flag-icon-css/flags/1x1/gd.svg | 27 - plugins/flag-icon-css/flags/1x1/ge.svg | 6 - plugins/flag-icon-css/flags/1x1/gf.svg | 7 - plugins/flag-icon-css/flags/1x1/gg.svg | 9 - plugins/flag-icon-css/flags/1x1/gh.svg | 6 - plugins/flag-icon-css/flags/1x1/gi.svg | 32 - plugins/flag-icon-css/flags/1x1/gl.svg | 4 - plugins/flag-icon-css/flags/1x1/gm.svg | 9 - plugins/flag-icon-css/flags/1x1/gn.svg | 7 - plugins/flag-icon-css/flags/1x1/gp.svg | 7 - plugins/flag-icon-css/flags/1x1/gq.svg | 23 - plugins/flag-icon-css/flags/1x1/gr.svg | 16 - plugins/flag-icon-css/flags/1x1/gs.svg | 206 - plugins/flag-icon-css/flags/1x1/gt.svg | 204 - plugins/flag-icon-css/flags/1x1/gu.svg | 39 - plugins/flag-icon-css/flags/1x1/gw.svg | 15 - plugins/flag-icon-css/flags/1x1/gy.svg | 9 - plugins/flag-icon-css/flags/1x1/hk.svg | 30 - plugins/flag-icon-css/flags/1x1/hm.svg | 9 - plugins/flag-icon-css/flags/1x1/hn.svg | 18 - plugins/flag-icon-css/flags/1x1/hr.svg | 56 - plugins/flag-icon-css/flags/1x1/ht.svg | 116 - plugins/flag-icon-css/flags/1x1/hu.svg | 7 - plugins/flag-icon-css/flags/1x1/id.svg | 6 - plugins/flag-icon-css/flags/1x1/ie.svg | 7 - plugins/flag-icon-css/flags/1x1/il.svg | 14 - plugins/flag-icon-css/flags/1x1/im.svg | 36 - plugins/flag-icon-css/flags/1x1/in.svg | 25 - plugins/flag-icon-css/flags/1x1/io.svg | 140 - plugins/flag-icon-css/flags/1x1/iq.svg | 10 - plugins/flag-icon-css/flags/1x1/ir.svg | 219 - plugins/flag-icon-css/flags/1x1/is.svg | 12 - plugins/flag-icon-css/flags/1x1/it.svg | 7 - plugins/flag-icon-css/flags/1x1/je.svg | 29 - plugins/flag-icon-css/flags/1x1/jm.svg | 8 - plugins/flag-icon-css/flags/1x1/jo.svg | 16 - plugins/flag-icon-css/flags/1x1/jp.svg | 11 - plugins/flag-icon-css/flags/1x1/ke.svg | 23 - plugins/flag-icon-css/flags/1x1/kg.svg | 15 - plugins/flag-icon-css/flags/1x1/kh.svg | 61 - plugins/flag-icon-css/flags/1x1/ki.svg | 36 - plugins/flag-icon-css/flags/1x1/km.svg | 16 - plugins/flag-icon-css/flags/1x1/kn.svg | 14 - plugins/flag-icon-css/flags/1x1/kp.svg | 15 - plugins/flag-icon-css/flags/1x1/kr.svg | 24 - plugins/flag-icon-css/flags/1x1/kw.svg | 13 - plugins/flag-icon-css/flags/1x1/ky.svg | 70 - plugins/flag-icon-css/flags/1x1/kz.svg | 23 - plugins/flag-icon-css/flags/1x1/la.svg | 12 - plugins/flag-icon-css/flags/1x1/lb.svg | 15 - plugins/flag-icon-css/flags/1x1/lc.svg | 8 - plugins/flag-icon-css/flags/1x1/li.svg | 43 - plugins/flag-icon-css/flags/1x1/lk.svg | 22 - plugins/flag-icon-css/flags/1x1/lr.svg | 14 - plugins/flag-icon-css/flags/1x1/ls.svg | 8 - plugins/flag-icon-css/flags/1x1/lt.svg | 7 - plugins/flag-icon-css/flags/1x1/lu.svg | 5 - plugins/flag-icon-css/flags/1x1/lv.svg | 6 - plugins/flag-icon-css/flags/1x1/ly.svg | 13 - plugins/flag-icon-css/flags/1x1/ma.svg | 4 - plugins/flag-icon-css/flags/1x1/mc.svg | 6 - plugins/flag-icon-css/flags/1x1/md.svg | 71 - plugins/flag-icon-css/flags/1x1/me.svg | 118 - plugins/flag-icon-css/flags/1x1/mf.svg | 7 - plugins/flag-icon-css/flags/1x1/mg.svg | 7 - plugins/flag-icon-css/flags/1x1/mh.svg | 8 - plugins/flag-icon-css/flags/1x1/mk.svg | 5 - plugins/flag-icon-css/flags/1x1/ml.svg | 7 - plugins/flag-icon-css/flags/1x1/mm.svg | 16 - plugins/flag-icon-css/flags/1x1/mn.svg | 13 - plugins/flag-icon-css/flags/1x1/mo.svg | 9 - plugins/flag-icon-css/flags/1x1/mp.svg | 86 - plugins/flag-icon-css/flags/1x1/mq.svg | 7 - plugins/flag-icon-css/flags/1x1/mr.svg | 6 - plugins/flag-icon-css/flags/1x1/ms.svg | 70 - plugins/flag-icon-css/flags/1x1/mt.svg | 50 - plugins/flag-icon-css/flags/1x1/mu.svg | 8 - plugins/flag-icon-css/flags/1x1/mv.svg | 6 - plugins/flag-icon-css/flags/1x1/mw.svg | 15 - plugins/flag-icon-css/flags/1x1/mx.svg | 378 - plugins/flag-icon-css/flags/1x1/my.svg | 15 - plugins/flag-icon-css/flags/1x1/mz.svg | 21 - plugins/flag-icon-css/flags/1x1/na.svg | 16 - plugins/flag-icon-css/flags/1x1/nc.svg | 14 - plugins/flag-icon-css/flags/1x1/ne.svg | 6 - plugins/flag-icon-css/flags/1x1/nf.svg | 11 - plugins/flag-icon-css/flags/1x1/ng.svg | 6 - plugins/flag-icon-css/flags/1x1/ni.svg | 129 - plugins/flag-icon-css/flags/1x1/nl.svg | 5 - plugins/flag-icon-css/flags/1x1/no.svg | 7 - plugins/flag-icon-css/flags/1x1/np.svg | 19 - plugins/flag-icon-css/flags/1x1/nr.svg | 12 - plugins/flag-icon-css/flags/1x1/nu.svg | 26 - plugins/flag-icon-css/flags/1x1/nz.svg | 41 - plugins/flag-icon-css/flags/1x1/om.svg | 115 - plugins/flag-icon-css/flags/1x1/pa.svg | 13 - plugins/flag-icon-css/flags/1x1/pe.svg | 244 - plugins/flag-icon-css/flags/1x1/pf.svg | 18 - plugins/flag-icon-css/flags/1x1/pg.svg | 16 - plugins/flag-icon-css/flags/1x1/ph.svg | 9 - plugins/flag-icon-css/flags/1x1/pk.svg | 15 - plugins/flag-icon-css/flags/1x1/pl.svg | 6 - plugins/flag-icon-css/flags/1x1/pm.svg | 7 - plugins/flag-icon-css/flags/1x1/pn.svg | 67 - plugins/flag-icon-css/flags/1x1/pr.svg | 13 - plugins/flag-icon-css/flags/1x1/ps.svg | 15 - plugins/flag-icon-css/flags/1x1/pt.svg | 57 - plugins/flag-icon-css/flags/1x1/pw.svg | 11 - plugins/flag-icon-css/flags/1x1/py.svg | 156 - plugins/flag-icon-css/flags/1x1/qa.svg | 4 - plugins/flag-icon-css/flags/1x1/re.svg | 7 - plugins/flag-icon-css/flags/1x1/ro.svg | 7 - plugins/flag-icon-css/flags/1x1/rs.svg | 296 - plugins/flag-icon-css/flags/1x1/ru.svg | 7 - plugins/flag-icon-css/flags/1x1/rw.svg | 13 - plugins/flag-icon-css/flags/1x1/sa.svg | 26 - plugins/flag-icon-css/flags/1x1/sb.svg | 13 - plugins/flag-icon-css/flags/1x1/sc.svg | 14 - plugins/flag-icon-css/flags/1x1/sd.svg | 13 - plugins/flag-icon-css/flags/1x1/se.svg | 16 - plugins/flag-icon-css/flags/1x1/sg.svg | 13 - plugins/flag-icon-css/flags/1x1/sh.svg | 81 - plugins/flag-icon-css/flags/1x1/si.svg | 18 - plugins/flag-icon-css/flags/1x1/sj.svg | 7 - plugins/flag-icon-css/flags/1x1/sk.svg | 9 - plugins/flag-icon-css/flags/1x1/sl.svg | 12 - plugins/flag-icon-css/flags/1x1/sm.svg | 89 - plugins/flag-icon-css/flags/1x1/sn.svg | 8 - plugins/flag-icon-css/flags/1x1/so.svg | 11 - plugins/flag-icon-css/flags/1x1/sr.svg | 6 - plugins/flag-icon-css/flags/1x1/ss.svg | 8 - plugins/flag-icon-css/flags/1x1/st.svg | 16 - plugins/flag-icon-css/flags/1x1/sv.svg | 596 - plugins/flag-icon-css/flags/1x1/sx.svg | 56 - plugins/flag-icon-css/flags/1x1/sy.svg | 6 - plugins/flag-icon-css/flags/1x1/sz.svg | 45 - plugins/flag-icon-css/flags/1x1/tc.svg | 74 - plugins/flag-icon-css/flags/1x1/td.svg | 7 - plugins/flag-icon-css/flags/1x1/tf.svg | 15 - plugins/flag-icon-css/flags/1x1/tg.svg | 14 - plugins/flag-icon-css/flags/1x1/th.svg | 7 - plugins/flag-icon-css/flags/1x1/tj.svg | 26 - plugins/flag-icon-css/flags/1x1/tk.svg | 5 - plugins/flag-icon-css/flags/1x1/tl.svg | 13 - plugins/flag-icon-css/flags/1x1/tm.svg | 203 - plugins/flag-icon-css/flags/1x1/tn.svg | 13 - plugins/flag-icon-css/flags/1x1/to.svg | 10 - plugins/flag-icon-css/flags/1x1/tr.svg | 8 - plugins/flag-icon-css/flags/1x1/tt.svg | 7 - plugins/flag-icon-css/flags/1x1/tv.svg | 16 - plugins/flag-icon-css/flags/1x1/tw.svg | 14 - plugins/flag-icon-css/flags/1x1/tz.svg | 15 - plugins/flag-icon-css/flags/1x1/ua.svg | 6 - plugins/flag-icon-css/flags/1x1/ug.svg | 30 - plugins/flag-icon-css/flags/1x1/um.svg | 15 - plugins/flag-icon-css/flags/1x1/un.svg | 16 - plugins/flag-icon-css/flags/1x1/us.svg | 10 - plugins/flag-icon-css/flags/1x1/uy.svg | 28 - plugins/flag-icon-css/flags/1x1/uz.svg | 30 - plugins/flag-icon-css/flags/1x1/va.svg | 479 - plugins/flag-icon-css/flags/1x1/vc.svg | 8 - plugins/flag-icon-css/flags/1x1/ve.svg | 26 - plugins/flag-icon-css/flags/1x1/vg.svg | 128 - plugins/flag-icon-css/flags/1x1/vi.svg | 28 - plugins/flag-icon-css/flags/1x1/vn.svg | 11 - plugins/flag-icon-css/flags/1x1/vu.svg | 18 - plugins/flag-icon-css/flags/1x1/wf.svg | 7 - plugins/flag-icon-css/flags/1x1/ws.svg | 7 - plugins/flag-icon-css/flags/1x1/xk.svg | 16 - plugins/flag-icon-css/flags/1x1/ye.svg | 7 - plugins/flag-icon-css/flags/1x1/yt.svg | 7 - plugins/flag-icon-css/flags/1x1/za.svg | 17 - plugins/flag-icon-css/flags/1x1/zm.svg | 27 - plugins/flag-icon-css/flags/1x1/zw.svg | 21 - plugins/flag-icon-css/flags/4x3/ad.svg | 150 - plugins/flag-icon-css/flags/4x3/ae.svg | 6 - plugins/flag-icon-css/flags/4x3/af.svg | 81 - plugins/flag-icon-css/flags/4x3/ag.svg | 14 - plugins/flag-icon-css/flags/4x3/ai.svg | 763 - plugins/flag-icon-css/flags/4x3/al.svg | 5 - plugins/flag-icon-css/flags/4x3/am.svg | 5 - plugins/flag-icon-css/flags/4x3/ao.svg | 13 - plugins/flag-icon-css/flags/4x3/aq.svg | 5 - plugins/flag-icon-css/flags/4x3/ar.svg | 31 - plugins/flag-icon-css/flags/4x3/as.svg | 33 - plugins/flag-icon-css/flags/4x3/at.svg | 6 - plugins/flag-icon-css/flags/4x3/au.svg | 9 - plugins/flag-icon-css/flags/4x3/aw.svg | 186 - plugins/flag-icon-css/flags/4x3/ax.svg | 18 - plugins/flag-icon-css/flags/4x3/az.svg | 8 - plugins/flag-icon-css/flags/4x3/ba.svg | 12 - plugins/flag-icon-css/flags/4x3/bb.svg | 6 - plugins/flag-icon-css/flags/4x3/bd.svg | 4 - plugins/flag-icon-css/flags/4x3/be.svg | 7 - plugins/flag-icon-css/flags/4x3/bf.svg | 7 - plugins/flag-icon-css/flags/4x3/bg.svg | 7 - plugins/flag-icon-css/flags/4x3/bh.svg | 9 - plugins/flag-icon-css/flags/4x3/bi.svg | 15 - plugins/flag-icon-css/flags/4x3/bj.svg | 14 - plugins/flag-icon-css/flags/4x3/bl.svg | 7 - plugins/flag-icon-css/flags/4x3/bm.svg | 98 - plugins/flag-icon-css/flags/4x3/bn.svg | 36 - plugins/flag-icon-css/flags/4x3/bo.svg | 676 - plugins/flag-icon-css/flags/4x3/bq.svg | 5 - plugins/flag-icon-css/flags/4x3/br.svg | 45 - plugins/flag-icon-css/flags/4x3/bs.svg | 13 - plugins/flag-icon-css/flags/4x3/bt.svg | 89 - plugins/flag-icon-css/flags/4x3/bv.svg | 13 - plugins/flag-icon-css/flags/4x3/bw.svg | 7 - plugins/flag-icon-css/flags/4x3/by.svg | 20 - plugins/flag-icon-css/flags/4x3/bz.svg | 145 - plugins/flag-icon-css/flags/4x3/ca.svg | 4 - plugins/flag-icon-css/flags/4x3/cc.svg | 19 - plugins/flag-icon-css/flags/4x3/cd.svg | 5 - plugins/flag-icon-css/flags/4x3/cf.svg | 15 - plugins/flag-icon-css/flags/4x3/cg.svg | 12 - plugins/flag-icon-css/flags/4x3/ch.svg | 9 - plugins/flag-icon-css/flags/4x3/ci.svg | 7 - plugins/flag-icon-css/flags/4x3/ck.svg | 9 - plugins/flag-icon-css/flags/4x3/cl.svg | 13 - plugins/flag-icon-css/flags/4x3/cm.svg | 15 - plugins/flag-icon-css/flags/4x3/cn.svg | 11 - plugins/flag-icon-css/flags/4x3/co.svg | 7 - plugins/flag-icon-css/flags/4x3/cr.svg | 7 - plugins/flag-icon-css/flags/4x3/cu.svg | 13 - plugins/flag-icon-css/flags/4x3/cv.svg | 13 - plugins/flag-icon-css/flags/4x3/cw.svg | 14 - plugins/flag-icon-css/flags/4x3/cx.svg | 15 - plugins/flag-icon-css/flags/4x3/cy.svg | 6 - plugins/flag-icon-css/flags/4x3/cz.svg | 12 - plugins/flag-icon-css/flags/4x3/de.svg | 5 - plugins/flag-icon-css/flags/4x3/dj.svg | 13 - plugins/flag-icon-css/flags/4x3/dk.svg | 5 - plugins/flag-icon-css/flags/4x3/dm.svg | 152 - plugins/flag-icon-css/flags/4x3/do.svg | 6745 ------ plugins/flag-icon-css/flags/4x3/dz.svg | 5 - plugins/flag-icon-css/flags/4x3/ec.svg | 138 - plugins/flag-icon-css/flags/4x3/ee.svg | 7 - plugins/flag-icon-css/flags/4x3/eg.svg | 38 - plugins/flag-icon-css/flags/4x3/eh.svg | 15 - plugins/flag-icon-css/flags/4x3/er.svg | 8 - plugins/flag-icon-css/flags/4x3/es-ca.svg | 4 - plugins/flag-icon-css/flags/4x3/es.svg | 544 - plugins/flag-icon-css/flags/4x3/et.svg | 14 - plugins/flag-icon-css/flags/4x3/eu.svg | 28 - plugins/flag-icon-css/flags/4x3/fi.svg | 5 - plugins/flag-icon-css/flags/4x3/fj.svg | 122 - plugins/flag-icon-css/flags/4x3/fk.svg | 90 - plugins/flag-icon-css/flags/4x3/fm.svg | 11 - plugins/flag-icon-css/flags/4x3/fo.svg | 12 - plugins/flag-icon-css/flags/4x3/fr.svg | 7 - plugins/flag-icon-css/flags/4x3/ga.svg | 7 - plugins/flag-icon-css/flags/4x3/gb-eng.svg | 5 - plugins/flag-icon-css/flags/4x3/gb-nir.svg | 132 - plugins/flag-icon-css/flags/4x3/gb-sct.svg | 4 - plugins/flag-icon-css/flags/4x3/gb-wls.svg | 9 - plugins/flag-icon-css/flags/4x3/gb.svg | 7 - plugins/flag-icon-css/flags/4x3/gd.svg | 27 - plugins/flag-icon-css/flags/4x3/ge.svg | 6 - plugins/flag-icon-css/flags/4x3/gf.svg | 7 - plugins/flag-icon-css/flags/4x3/gg.svg | 9 - plugins/flag-icon-css/flags/4x3/gh.svg | 6 - plugins/flag-icon-css/flags/4x3/gi.svg | 32 - plugins/flag-icon-css/flags/4x3/gl.svg | 4 - plugins/flag-icon-css/flags/4x3/gm.svg | 14 - plugins/flag-icon-css/flags/4x3/gn.svg | 7 - plugins/flag-icon-css/flags/4x3/gp.svg | 7 - plugins/flag-icon-css/flags/4x3/gq.svg | 23 - plugins/flag-icon-css/flags/4x3/gr.svg | 16 - plugins/flag-icon-css/flags/4x3/gs.svg | 201 - plugins/flag-icon-css/flags/4x3/gt.svg | 204 - plugins/flag-icon-css/flags/4x3/gu.svg | 39 - plugins/flag-icon-css/flags/4x3/gw.svg | 13 - plugins/flag-icon-css/flags/4x3/gy.svg | 9 - plugins/flag-icon-css/flags/4x3/hk.svg | 30 - plugins/flag-icon-css/flags/4x3/hm.svg | 9 - plugins/flag-icon-css/flags/4x3/hn.svg | 18 - plugins/flag-icon-css/flags/4x3/hr.svg | 58 - plugins/flag-icon-css/flags/4x3/ht.svg | 116 - plugins/flag-icon-css/flags/4x3/hu.svg | 7 - plugins/flag-icon-css/flags/4x3/id.svg | 6 - plugins/flag-icon-css/flags/4x3/ie.svg | 7 - plugins/flag-icon-css/flags/4x3/il.svg | 14 - plugins/flag-icon-css/flags/4x3/im.svg | 36 - plugins/flag-icon-css/flags/4x3/in.svg | 25 - plugins/flag-icon-css/flags/4x3/io.svg | 138 - plugins/flag-icon-css/flags/4x3/iq.svg | 10 - plugins/flag-icon-css/flags/4x3/ir.svg | 219 - plugins/flag-icon-css/flags/4x3/is.svg | 12 - plugins/flag-icon-css/flags/4x3/it.svg | 7 - plugins/flag-icon-css/flags/4x3/je.svg | 29 - plugins/flag-icon-css/flags/4x3/jm.svg | 8 - plugins/flag-icon-css/flags/4x3/jo.svg | 16 - plugins/flag-icon-css/flags/4x3/jp.svg | 11 - plugins/flag-icon-css/flags/4x3/ke.svg | 23 - plugins/flag-icon-css/flags/4x3/kg.svg | 15 - plugins/flag-icon-css/flags/4x3/kh.svg | 61 - plugins/flag-icon-css/flags/4x3/ki.svg | 36 - plugins/flag-icon-css/flags/4x3/km.svg | 16 - plugins/flag-icon-css/flags/4x3/kn.svg | 14 - plugins/flag-icon-css/flags/4x3/kp.svg | 15 - plugins/flag-icon-css/flags/4x3/kr.svg | 24 - plugins/flag-icon-css/flags/4x3/kw.svg | 13 - plugins/flag-icon-css/flags/4x3/ky.svg | 63 - plugins/flag-icon-css/flags/4x3/kz.svg | 23 - plugins/flag-icon-css/flags/4x3/la.svg | 12 - plugins/flag-icon-css/flags/4x3/lb.svg | 15 - plugins/flag-icon-css/flags/4x3/lc.svg | 8 - plugins/flag-icon-css/flags/4x3/li.svg | 43 - plugins/flag-icon-css/flags/4x3/lk.svg | 22 - plugins/flag-icon-css/flags/4x3/lr.svg | 14 - plugins/flag-icon-css/flags/4x3/ls.svg | 8 - plugins/flag-icon-css/flags/4x3/lt.svg | 7 - plugins/flag-icon-css/flags/4x3/lu.svg | 5 - plugins/flag-icon-css/flags/4x3/lv.svg | 6 - plugins/flag-icon-css/flags/4x3/ly.svg | 13 - plugins/flag-icon-css/flags/4x3/ma.svg | 4 - plugins/flag-icon-css/flags/4x3/mc.svg | 6 - plugins/flag-icon-css/flags/4x3/md.svg | 70 - plugins/flag-icon-css/flags/4x3/me.svg | 116 - plugins/flag-icon-css/flags/4x3/mf.svg | 7 - plugins/flag-icon-css/flags/4x3/mg.svg | 7 - plugins/flag-icon-css/flags/4x3/mh.svg | 7 - plugins/flag-icon-css/flags/4x3/mk.svg | 5 - plugins/flag-icon-css/flags/4x3/ml.svg | 7 - plugins/flag-icon-css/flags/4x3/mm.svg | 16 - plugins/flag-icon-css/flags/4x3/mn.svg | 13 - plugins/flag-icon-css/flags/4x3/mo.svg | 9 - plugins/flag-icon-css/flags/4x3/mp.svg | 86 - plugins/flag-icon-css/flags/4x3/mq.svg | 7 - plugins/flag-icon-css/flags/4x3/mr.svg | 6 - plugins/flag-icon-css/flags/4x3/ms.svg | 78 - plugins/flag-icon-css/flags/4x3/mt.svg | 49 - plugins/flag-icon-css/flags/4x3/mu.svg | 8 - plugins/flag-icon-css/flags/4x3/mv.svg | 6 - plugins/flag-icon-css/flags/4x3/mw.svg | 10 - plugins/flag-icon-css/flags/4x3/mx.svg | 382 - plugins/flag-icon-css/flags/4x3/my.svg | 15 - plugins/flag-icon-css/flags/4x3/mz.svg | 21 - plugins/flag-icon-css/flags/4x3/na.svg | 16 - plugins/flag-icon-css/flags/4x3/nc.svg | 14 - plugins/flag-icon-css/flags/4x3/ne.svg | 6 - plugins/flag-icon-css/flags/4x3/nf.svg | 9 - plugins/flag-icon-css/flags/4x3/ng.svg | 6 - plugins/flag-icon-css/flags/4x3/ni.svg | 129 - plugins/flag-icon-css/flags/4x3/nl.svg | 5 - plugins/flag-icon-css/flags/4x3/no.svg | 7 - plugins/flag-icon-css/flags/4x3/np.svg | 14 - plugins/flag-icon-css/flags/4x3/nr.svg | 12 - plugins/flag-icon-css/flags/4x3/nu.svg | 26 - plugins/flag-icon-css/flags/4x3/nz.svg | 41 - plugins/flag-icon-css/flags/4x3/om.svg | 115 - plugins/flag-icon-css/flags/4x3/pa.svg | 14 - plugins/flag-icon-css/flags/4x3/pe.svg | 244 - plugins/flag-icon-css/flags/4x3/pf.svg | 19 - plugins/flag-icon-css/flags/4x3/pg.svg | 9 - plugins/flag-icon-css/flags/4x3/ph.svg | 9 - plugins/flag-icon-css/flags/4x3/pk.svg | 15 - plugins/flag-icon-css/flags/4x3/pl.svg | 6 - plugins/flag-icon-css/flags/4x3/pm.svg | 7 - plugins/flag-icon-css/flags/4x3/pn.svg | 62 - plugins/flag-icon-css/flags/4x3/pr.svg | 13 - plugins/flag-icon-css/flags/4x3/ps.svg | 15 - plugins/flag-icon-css/flags/4x3/pt.svg | 57 - plugins/flag-icon-css/flags/4x3/pw.svg | 11 - plugins/flag-icon-css/flags/4x3/py.svg | 157 - plugins/flag-icon-css/flags/4x3/qa.svg | 4 - plugins/flag-icon-css/flags/4x3/re.svg | 7 - plugins/flag-icon-css/flags/4x3/ro.svg | 7 - plugins/flag-icon-css/flags/4x3/rs.svg | 292 - plugins/flag-icon-css/flags/4x3/ru.svg | 7 - plugins/flag-icon-css/flags/4x3/rw.svg | 13 - plugins/flag-icon-css/flags/4x3/sa.svg | 26 - plugins/flag-icon-css/flags/4x3/sb.svg | 13 - plugins/flag-icon-css/flags/4x3/sc.svg | 14 - plugins/flag-icon-css/flags/4x3/sd.svg | 13 - plugins/flag-icon-css/flags/4x3/se.svg | 16 - plugins/flag-icon-css/flags/4x3/sg.svg | 13 - plugins/flag-icon-css/flags/4x3/sh.svg | 74 - plugins/flag-icon-css/flags/4x3/si.svg | 18 - plugins/flag-icon-css/flags/4x3/sj.svg | 7 - plugins/flag-icon-css/flags/4x3/sk.svg | 9 - plugins/flag-icon-css/flags/4x3/sl.svg | 7 - plugins/flag-icon-css/flags/4x3/sm.svg | 91 - plugins/flag-icon-css/flags/4x3/sn.svg | 8 - plugins/flag-icon-css/flags/4x3/so.svg | 11 - plugins/flag-icon-css/flags/4x3/sr.svg | 6 - plugins/flag-icon-css/flags/4x3/ss.svg | 8 - plugins/flag-icon-css/flags/4x3/st.svg | 16 - plugins/flag-icon-css/flags/4x3/sv.svg | 594 - plugins/flag-icon-css/flags/4x3/sx.svg | 56 - plugins/flag-icon-css/flags/4x3/sy.svg | 6 - plugins/flag-icon-css/flags/4x3/sz.svg | 45 - plugins/flag-icon-css/flags/4x3/tc.svg | 67 - plugins/flag-icon-css/flags/4x3/td.svg | 7 - plugins/flag-icon-css/flags/4x3/tf.svg | 15 - plugins/flag-icon-css/flags/4x3/tg.svg | 14 - plugins/flag-icon-css/flags/4x3/th.svg | 7 - plugins/flag-icon-css/flags/4x3/tj.svg | 22 - plugins/flag-icon-css/flags/4x3/tk.svg | 5 - plugins/flag-icon-css/flags/4x3/tl.svg | 13 - plugins/flag-icon-css/flags/4x3/tm.svg | 206 - plugins/flag-icon-css/flags/4x3/tn.svg | 13 - plugins/flag-icon-css/flags/4x3/to.svg | 10 - plugins/flag-icon-css/flags/4x3/tr.svg | 8 - plugins/flag-icon-css/flags/4x3/tt.svg | 5 - plugins/flag-icon-css/flags/4x3/tv.svg | 16 - plugins/flag-icon-css/flags/4x3/tw.svg | 14 - plugins/flag-icon-css/flags/4x3/tz.svg | 13 - plugins/flag-icon-css/flags/4x3/ua.svg | 6 - plugins/flag-icon-css/flags/4x3/ug.svg | 30 - plugins/flag-icon-css/flags/4x3/um.svg | 15 - plugins/flag-icon-css/flags/4x3/un.svg | 16 - plugins/flag-icon-css/flags/4x3/us.svg | 10 - plugins/flag-icon-css/flags/4x3/uy.svg | 28 - plugins/flag-icon-css/flags/4x3/uz.svg | 30 - plugins/flag-icon-css/flags/4x3/va.svg | 479 - plugins/flag-icon-css/flags/4x3/vc.svg | 8 - plugins/flag-icon-css/flags/4x3/ve.svg | 26 - plugins/flag-icon-css/flags/4x3/vg.svg | 127 - plugins/flag-icon-css/flags/4x3/vi.svg | 28 - plugins/flag-icon-css/flags/4x3/vn.svg | 11 - plugins/flag-icon-css/flags/4x3/vu.svg | 18 - plugins/flag-icon-css/flags/4x3/wf.svg | 7 - plugins/flag-icon-css/flags/4x3/ws.svg | 7 - plugins/flag-icon-css/flags/4x3/xk.svg | 16 - plugins/flag-icon-css/flags/4x3/ye.svg | 7 - plugins/flag-icon-css/flags/4x3/yt.svg | 7 - plugins/flag-icon-css/flags/4x3/za.svg | 17 - plugins/flag-icon-css/flags/4x3/zm.svg | 27 - plugins/flag-icon-css/flags/4x3/zw.svg | 21 - plugins/flot-old/excanvas.js | 1427 -- plugins/flot-old/excanvas.min.js | 1 - plugins/flot-old/jquery.colorhelpers.js | 180 - plugins/flot-old/jquery.colorhelpers.min.js | 1 - plugins/flot-old/jquery.flot.canvas.js | 345 - plugins/flot-old/jquery.flot.canvas.min.js | 1 - plugins/flot-old/jquery.flot.categories.js | 190 - .../flot-old/jquery.flot.categories.min.js | 1 - plugins/flot-old/jquery.flot.crosshair.js | 176 - plugins/flot-old/jquery.flot.crosshair.min.js | 1 - plugins/flot-old/jquery.flot.errorbars.js | 353 - plugins/flot-old/jquery.flot.errorbars.min.js | 1 - plugins/flot-old/jquery.flot.fillbetween.js | 226 - .../flot-old/jquery.flot.fillbetween.min.js | 1 - plugins/flot-old/jquery.flot.image.js | 241 - plugins/flot-old/jquery.flot.image.min.js | 1 - plugins/flot-old/jquery.flot.js | 3137 --- plugins/flot-old/jquery.flot.min.js | 2 - plugins/flot-old/jquery.flot.navigate.js | 346 - plugins/flot-old/jquery.flot.navigate.min.js | 1 - plugins/flot-old/jquery.flot.pie.js | 817 - plugins/flot-old/jquery.flot.pie.min.js | 1 - plugins/flot-old/jquery.flot.resize.js | 60 - plugins/flot-old/jquery.flot.resize.min.js | 1 - plugins/flot-old/jquery.flot.selection.js | 360 - plugins/flot-old/jquery.flot.selection.min.js | 1 - plugins/flot-old/jquery.flot.stack.js | 188 - plugins/flot-old/jquery.flot.stack.min.js | 1 - plugins/flot-old/jquery.flot.symbol.js | 71 - plugins/flot-old/jquery.flot.symbol.min.js | 1 - plugins/flot-old/jquery.flot.threshold.js | 142 - plugins/flot-old/jquery.flot.threshold.min.js | 1 - plugins/flot-old/jquery.flot.time.js | 429 - plugins/flot-old/jquery.flot.time.min.js | 1 - plugins/flot/jquery.flot.js | 2 - plugins/icheck-bootstrap/LICENSE | 21 - plugins/icheck-bootstrap/icheck-bootstrap.css | 391 - .../icheck-bootstrap/icheck-bootstrap.min.css | 5 - plugins/ion-rangeslider/.editorconfig | 6 - .../ion-rangeslider/css/ion.rangeSlider.css | 675 - .../css/ion.rangeSlider.min.css | 1 - plugins/ion-rangeslider/js/ion.rangeSlider.js | 2449 -- .../ion-rangeslider/js/ion.rangeSlider.min.js | 2 - plugins/ion-rangeslider/less/_base.less | 145 - plugins/ion-rangeslider/less/_mixins.less | 17 - plugins/ion-rangeslider/less/irs.less | 10 - plugins/ion-rangeslider/less/skins/big.less | 109 - plugins/ion-rangeslider/less/skins/flat.less | 125 - .../ion-rangeslider/less/skins/modern.less | 165 - plugins/ion-rangeslider/less/skins/round.less | 120 - plugins/ion-rangeslider/less/skins/sharp.less | 132 - .../ion-rangeslider/less/skins/square.less | 100 - plugins/jquery-knob/jquery.knob.min.js | 1 - plugins/jquery-mapael/jquery.mapael.js | 2781 --- plugins/jquery-mapael/jquery.mapael.min.js | 2 - plugins/jquery-mapael/maps/README.txt | 3 - .../jquery-mapael/maps/france_departments.js | 168 - .../maps/france_departments.min.js | 5 - plugins/jquery-mapael/maps/usa_states.js | 151 - plugins/jquery-mapael/maps/usa_states.min.js | 2 - plugins/jquery-mapael/maps/world_countries.js | 233 - .../jquery-mapael/maps/world_countries.min.js | 6 - .../maps/world_countries_mercator.js | 288 - .../maps/world_countries_mercator.min.js | 4 - .../maps/world_countries_miller.js | 325 - .../maps/world_countries_miller.min.js | 3 - plugins/jquery-mousewheel/LICENSE.txt | 37 - .../jquery-mousewheel/jquery.mousewheel.js | 221 - plugins/jquery-ui/AUTHORS.txt | 333 - plugins/jquery-ui/LICENSE.txt | 43 - plugins/jquery-ui/external/jquery/jquery.js | 11008 --------- .../images/ui-icons_444444_256x240.png | Bin 7006 -> 0 bytes .../images/ui-icons_555555_256x240.png | Bin 7074 -> 0 bytes .../images/ui-icons_777620_256x240.png | Bin 4676 -> 0 bytes .../images/ui-icons_777777_256x240.png | Bin 7013 -> 0 bytes .../images/ui-icons_cc0000_256x240.png | Bin 4632 -> 0 bytes .../images/ui-icons_ffffff_256x240.png | Bin 6313 -> 0 bytes plugins/jquery-ui/jquery-ui.css | 1312 -- plugins/jquery-ui/jquery-ui.js | 18706 ---------------- plugins/jquery-ui/jquery-ui.min.css | 7 - plugins/jquery-ui/jquery-ui.min.js | 13 - plugins/jquery-ui/jquery-ui.structure.css | 886 - plugins/jquery-ui/jquery-ui.structure.min.css | 5 - plugins/jquery-ui/jquery-ui.theme.css | 443 - plugins/jquery-ui/jquery-ui.theme.min.css | 5 - .../jquery-validation/additional-methods.js | 1512 -- .../additional-methods.min.js | 4 - plugins/jquery-validation/jquery.validate.js | 1650 -- .../jquery-validation/jquery.validate.min.js | 4 - .../localization/messages_ar.js | 35 - .../localization/messages_ar.min.js | 4 - .../localization/messages_az.js | 35 - .../localization/messages_az.min.js | 4 - .../localization/messages_bg.js | 35 - .../localization/messages_bg.min.js | 4 - .../localization/messages_bn_BD.js | 35 - .../localization/messages_bn_BD.min.js | 4 - .../localization/messages_ca.js | 35 - .../localization/messages_ca.min.js | 4 - .../localization/messages_cs.js | 36 - .../localization/messages_cs.min.js | 4 - .../localization/messages_da.js | 46 - .../localization/messages_da.min.js | 4 - .../localization/messages_de.js | 82 - .../localization/messages_de.min.js | 4 - .../localization/messages_el.js | 35 - .../localization/messages_el.min.js | 4 - .../localization/messages_es.js | 38 - .../localization/messages_es.min.js | 4 - .../localization/messages_es_AR.js | 39 - .../localization/messages_es_AR.min.js | 4 - .../localization/messages_es_PE.js | 39 - .../localization/messages_es_PE.min.js | 4 - .../localization/messages_et.js | 33 - .../localization/messages_et.min.js | 4 - .../localization/messages_eu.js | 35 - .../localization/messages_eu.min.js | 4 - .../localization/messages_fa.js | 39 - .../localization/messages_fa.min.js | 4 - .../localization/messages_fi.js | 33 - .../localization/messages_fi.min.js | 4 - .../localization/messages_fr.js | 63 - .../localization/messages_fr.min.js | 4 - .../localization/messages_ge.js | 35 - .../localization/messages_ge.min.js | 4 - .../localization/messages_gl.js | 40 - .../localization/messages_gl.min.js | 4 - .../localization/messages_he.js | 35 - .../localization/messages_he.min.js | 4 - .../localization/messages_hr.js | 35 - .../localization/messages_hr.min.js | 4 - .../localization/messages_hu.js | 35 - .../localization/messages_hu.min.js | 4 - .../localization/messages_hy_AM.js | 35 - .../localization/messages_hy_AM.min.js | 4 - .../localization/messages_id.js | 34 - .../localization/messages_id.min.js | 4 - .../localization/messages_is.js | 33 - .../localization/messages_is.min.js | 4 - .../localization/messages_it.js | 39 - .../localization/messages_it.min.js | 4 - .../localization/messages_ja.js | 36 - .../localization/messages_ja.min.js | 4 - .../localization/messages_ka.js | 35 - .../localization/messages_ka.min.js | 4 - .../localization/messages_kk.js | 35 - .../localization/messages_kk.min.js | 4 - .../localization/messages_ko.js | 35 - .../localization/messages_ko.min.js | 4 - .../localization/messages_lt.js | 35 - .../localization/messages_lt.min.js | 4 - .../localization/messages_lv.js | 35 - .../localization/messages_lv.min.js | 4 - .../localization/messages_mk.js | 35 - .../localization/messages_mk.min.js | 4 - .../localization/messages_my.js | 35 - .../localization/messages_my.min.js | 4 - .../localization/messages_nl.js | 46 - .../localization/messages_nl.min.js | 4 - .../localization/messages_no.js | 35 - .../localization/messages_no.min.js | 4 - .../localization/messages_pl.js | 38 - .../localization/messages_pl.min.js | 4 - .../localization/messages_pt_BR.js | 91 - .../localization/messages_pt_BR.min.js | 4 - .../localization/messages_pt_PT.js | 39 - .../localization/messages_pt_PT.min.js | 4 - .../localization/messages_ro.js | 35 - .../localization/messages_ro.min.js | 4 - .../localization/messages_ru.js | 35 - .../localization/messages_ru.min.js | 4 - .../localization/messages_sd.js | 35 - .../localization/messages_sd.min.js | 4 - .../localization/messages_si.js | 35 - .../localization/messages_si.min.js | 4 - .../localization/messages_sk.js | 33 - .../localization/messages_sk.min.js | 4 - .../localization/messages_sl.js | 35 - .../localization/messages_sl.min.js | 4 - .../localization/messages_sr.js | 36 - .../localization/messages_sr.min.js | 4 - .../localization/messages_sr_lat.js | 36 - .../localization/messages_sr_lat.min.js | 4 - .../localization/messages_sv.js | 35 - .../localization/messages_sv.min.js | 4 - .../localization/messages_th.js | 35 - .../localization/messages_th.min.js | 4 - .../localization/messages_tj.js | 35 - .../localization/messages_tj.min.js | 4 - .../localization/messages_tr.js | 36 - .../localization/messages_tr.min.js | 4 - .../localization/messages_uk.js | 35 - .../localization/messages_uk.min.js | 4 - .../localization/messages_ur.js | 35 - .../localization/messages_ur.min.js | 4 - .../localization/messages_vi.js | 35 - .../localization/messages_vi.min.js | 4 - .../localization/messages_zh.js | 36 - .../localization/messages_zh.min.js | 4 - .../localization/messages_zh_TW.js | 37 - .../localization/messages_zh_TW.min.js | 4 - .../localization/methods_de.js | 24 - .../localization/methods_de.min.js | 4 - .../localization/methods_es_CL.js | 24 - .../localization/methods_es_CL.min.js | 4 - .../localization/methods_fi.js | 24 - .../localization/methods_fi.min.js | 4 - .../localization/methods_it.js | 24 - .../localization/methods_it.min.js | 4 - .../localization/methods_nl.js | 24 - .../localization/methods_nl.min.js | 4 - .../localization/methods_pt.js | 21 - .../localization/methods_pt.min.js | 4 - plugins/jqvmap/jquery.vmap.js | 1289 -- plugins/jqvmap/jquery.vmap.min.js | 10 - plugins/jqvmap/jqvmap.css | 50 - plugins/jqvmap/jqvmap.min.css | 1 - .../maps/continents/jquery.vmap.africa.js | 2 - .../maps/continents/jquery.vmap.asia.js | 2 - .../maps/continents/jquery.vmap.australia.js | 2 - .../maps/continents/jquery.vmap.europe.js | 2 - .../continents/jquery.vmap.north-america.js | 2 - .../continents/jquery.vmap.south-america.js | 2 - plugins/jqvmap/maps/jquery.vmap.algeria.js | 2 - plugins/jqvmap/maps/jquery.vmap.argentina.js | 1 - plugins/jqvmap/maps/jquery.vmap.brazil.js | 2 - plugins/jqvmap/maps/jquery.vmap.canada.js | 2 - plugins/jqvmap/maps/jquery.vmap.croatia.js | 1 - plugins/jqvmap/maps/jquery.vmap.europe.js | 2 - plugins/jqvmap/maps/jquery.vmap.france.js | 1 - plugins/jqvmap/maps/jquery.vmap.germany.js | 2 - plugins/jqvmap/maps/jquery.vmap.greece.js | 1 - plugins/jqvmap/maps/jquery.vmap.indonesia.js | 5 - plugins/jqvmap/maps/jquery.vmap.iran.js | 6 - plugins/jqvmap/maps/jquery.vmap.iraq.js | 1 - .../maps/jquery.vmap.new_regions_france.js | 32 - plugins/jqvmap/maps/jquery.vmap.russia.js | 2 - plugins/jqvmap/maps/jquery.vmap.serbia.js | 6 - plugins/jqvmap/maps/jquery.vmap.tunisia.js | 2 - plugins/jqvmap/maps/jquery.vmap.turkey.js | 11 - plugins/jqvmap/maps/jquery.vmap.ukraine.js | 2 - .../jqvmap/maps/jquery.vmap.usa.counties.js | 2 - .../jqvmap/maps/jquery.vmap.usa.districts.js | 2 - plugins/jqvmap/maps/jquery.vmap.usa.js | 2 - plugins/jqvmap/maps/jquery.vmap.world.js | 2 - plugins/jsgrid/demos/basic.html | 59 - plugins/jsgrid/demos/batch-delete.html | 102 - plugins/jsgrid/demos/custom-grid-field.html | 97 - .../jsgrid/demos/custom-load-indicator.html | 90 - plugins/jsgrid/demos/custom-row-renderer.html | 79 - plugins/jsgrid/demos/custom-view.html | 85 - plugins/jsgrid/demos/data-manipulation.html | 212 - plugins/jsgrid/demos/db.js | 884 - plugins/jsgrid/demos/demos.css | 82 - plugins/jsgrid/demos/external-pager.html | 72 - plugins/jsgrid/demos/index.html | 31 - plugins/jsgrid/demos/loading-by-page.html | 90 - plugins/jsgrid/demos/localization.html | 62 - plugins/jsgrid/demos/odata-service.html | 74 - plugins/jsgrid/demos/rows-reordering.html | 83 - plugins/jsgrid/demos/sorting.html | 78 - plugins/jsgrid/demos/static-data.html | 50 - plugins/jsgrid/demos/validation.html | 61 - plugins/jsgrid/i18n/jsgrid-de.js | 46 - plugins/jsgrid/i18n/jsgrid-es.js | 46 - plugins/jsgrid/i18n/jsgrid-fr.js | 47 - plugins/jsgrid/i18n/jsgrid-he.js | 46 - plugins/jsgrid/i18n/jsgrid-ja.js | 46 - plugins/jsgrid/i18n/jsgrid-ka.js | 46 - plugins/jsgrid/i18n/jsgrid-pl.js | 62 - plugins/jsgrid/i18n/jsgrid-pt-br.js | 46 - plugins/jsgrid/i18n/jsgrid-pt.js | 46 - plugins/jsgrid/i18n/jsgrid-ru.js | 47 - plugins/jsgrid/i18n/jsgrid-tr.js | 47 - plugins/jsgrid/i18n/jsgrid-zh-cn.js | 46 - plugins/jsgrid/i18n/jsgrid-zh-tw.js | 46 - plugins/jsgrid/jsgrid-theme.css | 258 - plugins/jsgrid/jsgrid-theme.min.css | 7 - plugins/jsgrid/jsgrid.css | 126 - plugins/jsgrid/jsgrid.js | 2516 --- plugins/jsgrid/jsgrid.min.css | 7 - plugins/jsgrid/jsgrid.min.js | 8 - plugins/jszip/jszip.js | 11367 ---------- plugins/jszip/jszip.min.js | 13 - .../css/OverlayScrollbars.css | 624 - .../css/OverlayScrollbars.min.css | 13 - .../overlayScrollbars/js/OverlayScrollbars.js | 6653 ------ .../js/OverlayScrollbars.min.js | 13 - .../js/jquery.overlayScrollbars.js | 5571 ----- .../js/jquery.overlayScrollbars.min.js | 13 - plugins/pace-progress/pace.js | 946 - plugins/pace-progress/pace.min.js | 3 - .../themes/black/pace-theme-barber-shop.css | 83 - .../themes/black/pace-theme-big-counter.css | 40 - .../themes/black/pace-theme-bounce.css | 231 - .../themes/black/pace-theme-center-atom.css | 131 - .../themes/black/pace-theme-center-circle.css | 90 - .../themes/black/pace-theme-center-radar.css | 82 - .../themes/black/pace-theme-center-simple.css | 52 - .../black/pace-theme-corner-indicator.css | 73 - .../themes/black/pace-theme-fill-left.css | 22 - .../themes/black/pace-theme-flash.css | 77 - .../themes/black/pace-theme-flat-top.css | 41 - .../themes/black/pace-theme-loading-bar.css | 198 - .../themes/black/pace-theme-mac-osx.css | 87 - .../themes/black/pace-theme-material.css | 293 - .../themes/black/pace-theme-minimal.css | 23 - .../themes/blue/pace-theme-barber-shop.css | 83 - .../themes/blue/pace-theme-big-counter.css | 40 - .../themes/blue/pace-theme-bounce.css | 231 - .../themes/blue/pace-theme-center-atom.css | 131 - .../themes/blue/pace-theme-center-circle.css | 90 - .../themes/blue/pace-theme-center-radar.css | 82 - .../themes/blue/pace-theme-center-simple.css | 52 - .../blue/pace-theme-corner-indicator.css | 73 - .../themes/blue/pace-theme-fill-left.css | 22 - .../themes/blue/pace-theme-flash.css | 77 - .../themes/blue/pace-theme-flat-top.css | 41 - .../themes/blue/pace-theme-loading-bar.css | 198 - .../themes/blue/pace-theme-mac-osx.css | 87 - .../themes/blue/pace-theme-material.css | 293 - .../themes/blue/pace-theme-minimal.css | 23 - .../themes/green/pace-theme-barber-shop.css | 83 - .../themes/green/pace-theme-big-counter.css | 40 - .../themes/green/pace-theme-bounce.css | 231 - .../themes/green/pace-theme-center-atom.css | 131 - .../themes/green/pace-theme-center-circle.css | 90 - .../themes/green/pace-theme-center-radar.css | 82 - .../themes/green/pace-theme-center-simple.css | 52 - .../green/pace-theme-corner-indicator.css | 73 - .../themes/green/pace-theme-fill-left.css | 22 - .../themes/green/pace-theme-flash.css | 77 - .../themes/green/pace-theme-flat-top.css | 41 - .../themes/green/pace-theme-loading-bar.css | 198 - .../themes/green/pace-theme-mac-osx.css | 87 - .../themes/green/pace-theme-material.css | 293 - .../themes/green/pace-theme-minimal.css | 23 - .../themes/orange/pace-theme-barber-shop.css | 83 - .../themes/orange/pace-theme-big-counter.css | 40 - .../themes/orange/pace-theme-bounce.css | 231 - .../themes/orange/pace-theme-center-atom.css | 131 - .../orange/pace-theme-center-circle.css | 90 - .../themes/orange/pace-theme-center-radar.css | 82 - .../orange/pace-theme-center-simple.css | 52 - .../orange/pace-theme-corner-indicator.css | 73 - .../themes/orange/pace-theme-fill-left.css | 22 - .../themes/orange/pace-theme-flash.css | 77 - .../themes/orange/pace-theme-flat-top.css | 41 - .../themes/orange/pace-theme-loading-bar.css | 198 - .../themes/orange/pace-theme-mac-osx.css | 87 - .../themes/orange/pace-theme-material.css | 293 - .../themes/orange/pace-theme-minimal.css | 23 - .../themes/pink/pace-theme-barber-shop.css | 83 - .../themes/pink/pace-theme-big-counter.css | 40 - .../themes/pink/pace-theme-bounce.css | 231 - .../themes/pink/pace-theme-center-atom.css | 131 - .../themes/pink/pace-theme-center-circle.css | 90 - .../themes/pink/pace-theme-center-radar.css | 82 - .../themes/pink/pace-theme-center-simple.css | 52 - .../pink/pace-theme-corner-indicator.css | 73 - .../themes/pink/pace-theme-fill-left.css | 22 - .../themes/pink/pace-theme-flash.css | 77 - .../themes/pink/pace-theme-flat-top.css | 41 - .../themes/pink/pace-theme-loading-bar.css | 198 - .../themes/pink/pace-theme-mac-osx.css | 87 - .../themes/pink/pace-theme-material.css | 293 - .../themes/pink/pace-theme-minimal.css | 23 - .../themes/purple/pace-theme-barber-shop.css | 83 - .../themes/purple/pace-theme-big-counter.css | 40 - .../themes/purple/pace-theme-bounce.css | 231 - .../themes/purple/pace-theme-center-atom.css | 131 - .../purple/pace-theme-center-circle.css | 90 - .../themes/purple/pace-theme-center-radar.css | 82 - .../purple/pace-theme-center-simple.css | 52 - .../purple/pace-theme-corner-indicator.css | 73 - .../themes/purple/pace-theme-fill-left.css | 22 - .../themes/purple/pace-theme-flash.css | 77 - .../themes/purple/pace-theme-flat-top.css | 41 - .../themes/purple/pace-theme-loading-bar.css | 198 - .../themes/purple/pace-theme-mac-osx.css | 87 - .../themes/purple/pace-theme-material.css | 293 - .../themes/purple/pace-theme-minimal.css | 23 - .../themes/red/pace-theme-barber-shop.css | 83 - .../themes/red/pace-theme-big-counter.css | 40 - .../themes/red/pace-theme-bounce.css | 231 - .../themes/red/pace-theme-center-atom.css | 131 - .../themes/red/pace-theme-center-circle.css | 90 - .../themes/red/pace-theme-center-radar.css | 82 - .../themes/red/pace-theme-center-simple.css | 52 - .../red/pace-theme-corner-indicator.css | 73 - .../themes/red/pace-theme-fill-left.css | 22 - .../themes/red/pace-theme-flash.css | 77 - .../themes/red/pace-theme-flat-top.css | 41 - .../themes/red/pace-theme-loading-bar.css | 198 - .../themes/red/pace-theme-mac-osx.css | 87 - .../themes/red/pace-theme-material.css | 293 - .../themes/red/pace-theme-minimal.css | 23 - .../themes/silver/pace-theme-barber-shop.css | 83 - .../themes/silver/pace-theme-big-counter.css | 40 - .../themes/silver/pace-theme-bounce.css | 231 - .../themes/silver/pace-theme-center-atom.css | 131 - .../silver/pace-theme-center-circle.css | 90 - .../themes/silver/pace-theme-center-radar.css | 82 - .../silver/pace-theme-center-simple.css | 52 - .../silver/pace-theme-corner-indicator.css | 73 - .../themes/silver/pace-theme-fill-left.css | 22 - .../themes/silver/pace-theme-flash.css | 77 - .../themes/silver/pace-theme-flat-top.css | 41 - .../themes/silver/pace-theme-loading-bar.css | 198 - .../themes/silver/pace-theme-mac-osx.css | 87 - .../themes/silver/pace-theme-material.css | 293 - .../themes/silver/pace-theme-minimal.css | 23 - .../themes/white/pace-theme-barber-shop.css | 83 - .../themes/white/pace-theme-big-counter.css | 40 - .../themes/white/pace-theme-bounce.css | 231 - .../themes/white/pace-theme-center-atom.css | 131 - .../themes/white/pace-theme-center-circle.css | 90 - .../themes/white/pace-theme-center-radar.css | 82 - .../themes/white/pace-theme-center-simple.css | 52 - .../white/pace-theme-corner-indicator.css | 73 - .../themes/white/pace-theme-fill-left.css | 22 - .../themes/white/pace-theme-flash.css | 77 - .../themes/white/pace-theme-flat-top.css | 41 - .../themes/white/pace-theme-loading-bar.css | 198 - .../themes/white/pace-theme-mac-osx.css | 87 - .../themes/white/pace-theme-material.css | 293 - .../themes/white/pace-theme-minimal.css | 23 - .../themes/yellow/pace-theme-barber-shop.css | 83 - .../themes/yellow/pace-theme-big-counter.css | 40 - .../themes/yellow/pace-theme-bounce.css | 231 - .../themes/yellow/pace-theme-center-atom.css | 131 - .../yellow/pace-theme-center-circle.css | 90 - .../themes/yellow/pace-theme-center-radar.css | 82 - .../yellow/pace-theme-center-simple.css | 52 - .../yellow/pace-theme-corner-indicator.css | 73 - .../themes/yellow/pace-theme-fill-left.css | 22 - .../themes/yellow/pace-theme-flash.css | 77 - .../themes/yellow/pace-theme-flat-top.css | 41 - .../themes/yellow/pace-theme-loading-bar.css | 198 - .../themes/yellow/pace-theme-mac-osx.css | 87 - .../themes/yellow/pace-theme-material.css | 293 - .../themes/yellow/pace-theme-minimal.css | 23 - plugins/raphael/.eslintrc.js | 6 - plugins/raphael/Gruntfile.js | 72 - plugins/raphael/bower.json | 30 - plugins/raphael/dev/banner.txt | 8 - plugins/raphael/dev/raphael.amd.js | 5 - plugins/raphael/dev/raphael.core.js | 5416 ----- plugins/raphael/dev/raphael.svg.js | 1424 -- plugins/raphael/dev/raphael.vml.js | 999 - plugins/raphael/dev/raphaelTest.html | 39 - plugins/raphael/dev/test/index.html | 31 - plugins/raphael/dev/test/svg/dom.js | 316 - plugins/raphael/dev/test/vml/dom.js | 5 - plugins/raphael/license.txt | 21 - plugins/raphael/raphael.js | 8438 ------- plugins/raphael/raphael.min.js | 1 - plugins/raphael/raphael.no-deps.js | 8011 ------- plugins/raphael/raphael.no-deps.min.js | 1 - plugins/raphael/webpack.config.js | 40 - plugins/sparklines/sparkline.js | 210 - post.php | 4 +- quote.php | 2 +- side_nav.php | 30 - 1183 files changed, 6 insertions(+), 214277 deletions(-) delete mode 100644 plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css delete mode 100644 plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css.map delete mode 100644 plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css delete mode 100644 plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css.map delete mode 100644 plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js delete mode 100644 plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js.map delete mode 100644 plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js delete mode 100644 plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js.map delete mode 100644 plugins/bootstrap-slider/bootstrap-slider.js delete mode 100644 plugins/bootstrap-slider/bootstrap-slider.min.js delete mode 100644 plugins/bootstrap-slider/css/bootstrap-slider.css delete mode 100644 plugins/bootstrap-slider/css/bootstrap-slider.min.css delete mode 100644 plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.css delete mode 100644 plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.min.css delete mode 100644 plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.css delete mode 100644 plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css delete mode 100644 plugins/bootstrap-switch/js/bootstrap-switch.js delete mode 100644 plugins/bootstrap-switch/js/bootstrap-switch.min.js delete mode 100644 plugins/bootstrap4-duallistbox/bootstrap-duallistbox.css delete mode 100644 plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css delete mode 100644 plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.js delete mode 100644 plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js delete mode 100644 plugins/bs-custom-file-input/bs-custom-file-input.js delete mode 100644 plugins/bs-custom-file-input/bs-custom-file-input.js.map delete mode 100644 plugins/bs-custom-file-input/bs-custom-file-input.min.js delete mode 100644 plugins/bs-custom-file-input/bs-custom-file-input.min.js.map delete mode 100644 plugins/datatables-autofill/css/autoFill.bootstrap4.css delete mode 100644 plugins/datatables-autofill/css/autoFill.bootstrap4.min.css delete mode 100644 plugins/datatables-autofill/js/autoFill.bootstrap4.js delete mode 100644 plugins/datatables-autofill/js/autoFill.bootstrap4.min.js delete mode 100644 plugins/datatables-autofill/js/dataTables.autoFill.js delete mode 100644 plugins/datatables-autofill/js/dataTables.autoFill.min.js delete mode 100644 plugins/datatables-bs4/css/dataTables.bootstrap4.css delete mode 100644 plugins/datatables-bs4/css/dataTables.bootstrap4.min.css delete mode 100644 plugins/datatables-bs4/js/dataTables.bootstrap4.js delete mode 100644 plugins/datatables-bs4/js/dataTables.bootstrap4.min.js delete mode 100644 plugins/datatables-buttons/css/buttons.bootstrap4.css delete mode 100644 plugins/datatables-buttons/css/buttons.bootstrap4.min.css delete mode 100644 plugins/datatables-buttons/js/buttons.bootstrap4.js delete mode 100644 plugins/datatables-buttons/js/buttons.bootstrap4.min.js delete mode 100644 plugins/datatables-buttons/js/buttons.colVis.js delete mode 100644 plugins/datatables-buttons/js/buttons.colVis.min.js delete mode 100644 plugins/datatables-buttons/js/buttons.flash.js delete mode 100644 plugins/datatables-buttons/js/buttons.flash.min.js delete mode 100644 plugins/datatables-buttons/js/buttons.html5.js delete mode 100644 plugins/datatables-buttons/js/buttons.html5.min.js delete mode 100644 plugins/datatables-buttons/js/buttons.print.js delete mode 100644 plugins/datatables-buttons/js/buttons.print.min.js delete mode 100644 plugins/datatables-buttons/js/dataTables.buttons.js delete mode 100644 plugins/datatables-buttons/js/dataTables.buttons.min.js delete mode 100644 plugins/datatables-colreorder/css/colReorder.bootstrap4.css delete mode 100644 plugins/datatables-colreorder/css/colReorder.bootstrap4.min.css delete mode 100644 plugins/datatables-colreorder/js/colReorder.bootstrap4.js delete mode 100644 plugins/datatables-colreorder/js/colReorder.bootstrap4.min.js delete mode 100644 plugins/datatables-colreorder/js/dataTables.colReorder.js delete mode 100644 plugins/datatables-colreorder/js/dataTables.colReorder.min.js delete mode 100644 plugins/datatables-fixedcolumns/css/fixedColumns.bootstrap4.css delete mode 100644 plugins/datatables-fixedcolumns/css/fixedColumns.bootstrap4.min.css delete mode 100644 plugins/datatables-fixedcolumns/js/dataTables.fixedColumns.js delete mode 100644 plugins/datatables-fixedcolumns/js/dataTables.fixedColumns.min.js delete mode 100644 plugins/datatables-fixedcolumns/js/fixedColumns.bootstrap4.js delete mode 100644 plugins/datatables-fixedcolumns/js/fixedColumns.bootstrap4.min.js delete mode 100644 plugins/datatables-fixedheader/css/fixedHeader.bootstrap4.css delete mode 100644 plugins/datatables-fixedheader/css/fixedHeader.bootstrap4.min.css delete mode 100644 plugins/datatables-fixedheader/js/dataTables.fixedHeader.js delete mode 100644 plugins/datatables-fixedheader/js/dataTables.fixedHeader.min.js delete mode 100644 plugins/datatables-fixedheader/js/fixedHeader.bootstrap4.js delete mode 100644 plugins/datatables-fixedheader/js/fixedHeader.bootstrap4.min.js delete mode 100644 plugins/datatables-keytable/css/keyTable.bootstrap4.css delete mode 100644 plugins/datatables-keytable/css/keyTable.bootstrap4.min.css delete mode 100644 plugins/datatables-keytable/js/dataTables.keyTable.js delete mode 100644 plugins/datatables-keytable/js/dataTables.keyTable.min.js delete mode 100644 plugins/datatables-keytable/js/keyTable.bootstrap4.js delete mode 100644 plugins/datatables-keytable/js/keyTable.bootstrap4.min.js delete mode 100644 plugins/datatables-responsive/css/responsive.bootstrap4.css delete mode 100644 plugins/datatables-responsive/css/responsive.bootstrap4.min.css delete mode 100644 plugins/datatables-responsive/js/dataTables.responsive.js delete mode 100644 plugins/datatables-responsive/js/dataTables.responsive.min.js delete mode 100644 plugins/datatables-responsive/js/responsive.bootstrap4.js delete mode 100644 plugins/datatables-responsive/js/responsive.bootstrap4.min.js delete mode 100644 plugins/datatables-rowgroup/css/rowGroup.bootstrap4.css delete mode 100644 plugins/datatables-rowgroup/css/rowGroup.bootstrap4.min.css delete mode 100644 plugins/datatables-rowgroup/js/dataTables.rowGroup.js delete mode 100644 plugins/datatables-rowgroup/js/dataTables.rowGroup.min.js delete mode 100644 plugins/datatables-rowgroup/js/rowGroup.bootstrap4.js delete mode 100644 plugins/datatables-rowgroup/js/rowGroup.bootstrap4.min.js delete mode 100644 plugins/datatables-rowreorder/css/rowReorder.bootstrap4.css delete mode 100644 plugins/datatables-rowreorder/css/rowReorder.bootstrap4.min.css delete mode 100644 plugins/datatables-rowreorder/js/dataTables.rowReorder.js delete mode 100644 plugins/datatables-rowreorder/js/dataTables.rowReorder.min.js delete mode 100644 plugins/datatables-rowreorder/js/rowReorder.bootstrap4.js delete mode 100644 plugins/datatables-rowreorder/js/rowReorder.bootstrap4.min.js delete mode 100644 plugins/datatables-scroller/css/scroller.bootstrap4.css delete mode 100644 plugins/datatables-scroller/css/scroller.bootstrap4.min.css delete mode 100644 plugins/datatables-scroller/js/dataTables.scroller.js delete mode 100644 plugins/datatables-scroller/js/dataTables.scroller.min.js delete mode 100644 plugins/datatables-scroller/js/scroller.bootstrap4.js delete mode 100644 plugins/datatables-scroller/js/scroller.bootstrap4.min.js delete mode 100644 plugins/datatables-select/css/select.bootstrap4.css delete mode 100644 plugins/datatables-select/css/select.bootstrap4.min.css delete mode 100644 plugins/datatables-select/js/dataTables.select.js delete mode 100644 plugins/datatables-select/js/dataTables.select.min.js delete mode 100644 plugins/datatables-select/js/select.bootstrap4.js delete mode 100644 plugins/datatables-select/js/select.bootstrap4.min.js delete mode 100644 plugins/datatables/jquery.dataTables.js delete mode 100644 plugins/datatables/jquery.dataTables.min.js delete mode 100644 plugins/ekko-lightbox/ekko-lightbox.css delete mode 100644 plugins/ekko-lightbox/ekko-lightbox.js delete mode 100644 plugins/ekko-lightbox/ekko-lightbox.js.map delete mode 100644 plugins/ekko-lightbox/ekko-lightbox.min.js delete mode 100644 plugins/ekko-lightbox/ekko-lightbox.min.js.map delete mode 100644 plugins/fastclick/fastclick.js delete mode 100644 plugins/filterizr/ActiveFilter.d.ts delete mode 100644 plugins/filterizr/BrowserWindow.d.ts delete mode 100644 plugins/filterizr/EventReceiver.d.ts delete mode 100644 plugins/filterizr/FilterContainer.d.ts delete mode 100644 plugins/filterizr/FilterContainer/FilterContainer.d.ts delete mode 100644 plugins/filterizr/FilterContainer/StyledFilterContainer.d.ts delete mode 100644 plugins/filterizr/FilterContainer/index.d.ts delete mode 100644 plugins/filterizr/FilterContainer/styles.d.ts delete mode 100644 plugins/filterizr/FilterControls.d.ts delete mode 100644 plugins/filterizr/FilterItem.d.ts delete mode 100644 plugins/filterizr/FilterItem/FilterItem.d.ts delete mode 100644 plugins/filterizr/FilterItem/StyledFilterItem.d.ts delete mode 100644 plugins/filterizr/FilterItem/index.d.ts delete mode 100644 plugins/filterizr/FilterItem/styles.d.ts delete mode 100644 plugins/filterizr/FilterItems.d.ts delete mode 100644 plugins/filterizr/FilterItems/FilterItems.d.ts delete mode 100644 plugins/filterizr/FilterItems/StyledFilterItems.d.ts delete mode 100644 plugins/filterizr/FilterItems/index.d.ts delete mode 100644 plugins/filterizr/Filterizr.d.ts delete mode 100644 plugins/filterizr/Filterizr/Filterizr.d.ts delete mode 100644 plugins/filterizr/Filterizr/index.d.ts delete mode 100644 plugins/filterizr/Filterizr/installAsJQueryPlugin.d.ts delete mode 100644 plugins/filterizr/FilterizrElement.d.ts delete mode 100644 plugins/filterizr/FilterizrOptions/FilterizrOptions.d.ts delete mode 100644 plugins/filterizr/FilterizrOptions/defaultOptions.d.ts delete mode 100644 plugins/filterizr/FilterizrOptions/index.d.ts delete mode 100644 plugins/filterizr/Spinner/Spinner.d.ts delete mode 100644 plugins/filterizr/Spinner/StyledSpinner.d.ts delete mode 100644 plugins/filterizr/Spinner/index.d.ts delete mode 100644 plugins/filterizr/Spinner/makeSpinner.d.ts delete mode 100644 plugins/filterizr/StyledFilterizrElement.d.ts delete mode 100644 plugins/filterizr/StyledFilterizrElements.d.ts delete mode 100644 plugins/filterizr/animate.d.ts delete mode 100644 plugins/filterizr/config/cssEasingValuesRegexp.d.ts delete mode 100644 plugins/filterizr/config/filterizrState.d.ts delete mode 100644 plugins/filterizr/config/index.d.ts delete mode 100644 plugins/filterizr/config/layout.d.ts delete mode 100644 plugins/filterizr/filterizr.min.js delete mode 100644 plugins/filterizr/getLayoutPositions.d.ts delete mode 100644 plugins/filterizr/index.d.ts delete mode 100644 plugins/filterizr/index.jquery.d.ts delete mode 100644 plugins/filterizr/installAsJQueryPlugin.d.ts delete mode 100644 plugins/filterizr/jquery.filterizr.min.js delete mode 100644 plugins/filterizr/layouts/Packer.d.ts delete mode 100644 plugins/filterizr/layouts/getHorizontalLayoutPositions.d.ts delete mode 100644 plugins/filterizr/layouts/getPackedLayoutPositions.d.ts delete mode 100644 plugins/filterizr/layouts/getSameHeightLayoutPositions.d.ts delete mode 100644 plugins/filterizr/layouts/getSameSizeLayoutPosition.d.ts delete mode 100644 plugins/filterizr/layouts/getSameWidthLayoutPositions.d.ts delete mode 100644 plugins/filterizr/layouts/getVerticalLayoutPositions.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/Packer.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/index.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/makeHorizontalLayoutPositions.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/makeLayoutPositions.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/makePackedLayoutPositions.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/makeSameHeightLayoutPositions.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/makeSameSizeLayoutPosition.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/makeSameWidthLayoutPositions.d.ts delete mode 100644 plugins/filterizr/makeLayoutPositions/makeVerticalLayoutPositions.d.ts delete mode 100644 plugins/filterizr/types/index.d.ts delete mode 100644 plugins/filterizr/types/interfaces/BaseOptions.d.ts delete mode 100644 plugins/filterizr/types/interfaces/ContainerLayout.d.ts delete mode 100644 plugins/filterizr/types/interfaces/Destructible.d.ts delete mode 100644 plugins/filterizr/types/interfaces/Dictionary.d.ts delete mode 100644 plugins/filterizr/types/interfaces/Dimensions.d.ts delete mode 100644 plugins/filterizr/types/interfaces/Options.d.ts delete mode 100644 plugins/filterizr/types/interfaces/Position.d.ts delete mode 100644 plugins/filterizr/types/interfaces/RawOptions.d.ts delete mode 100644 plugins/filterizr/types/interfaces/RawOptionsCallbacks.d.ts delete mode 100644 plugins/filterizr/types/interfaces/Resizable.d.ts delete mode 100644 plugins/filterizr/types/interfaces/SpinnerOptions.d.ts delete mode 100644 plugins/filterizr/types/interfaces/Styleable.d.ts delete mode 100644 plugins/filterizr/types/interfaces/index.d.ts delete mode 100644 plugins/filterizr/utils.d.ts delete mode 100644 plugins/filterizr/utils/allStringsOfArray1InArray2.d.ts delete mode 100644 plugins/filterizr/utils/checkOptionForErrors.d.ts delete mode 100644 plugins/filterizr/utils/debounce.d.ts delete mode 100644 plugins/filterizr/utils/filterItemArraysHaveSameSorting.d.ts delete mode 100644 plugins/filterizr/utils/getDataAttributesOfHTMLNode.d.ts delete mode 100644 plugins/filterizr/utils/getHTMLElement.d.ts delete mode 100644 plugins/filterizr/utils/index.d.ts delete mode 100644 plugins/filterizr/utils/intersection.d.ts delete mode 100644 plugins/filterizr/utils/merge.d.ts delete mode 100644 plugins/filterizr/utils/noop.d.ts delete mode 100644 plugins/filterizr/utils/setStyles.d.ts delete mode 100644 plugins/filterizr/utils/shuffle.d.ts delete mode 100644 plugins/filterizr/utils/sortBy.d.ts delete mode 100644 plugins/filterizr/vanilla.filterizr.min.js delete mode 100644 plugins/flag-icon-css/css/flag-icon.css delete mode 100644 plugins/flag-icon-css/css/flag-icon.min.css delete mode 100644 plugins/flag-icon-css/flags/1x1/ad.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ae.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/af.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ag.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ai.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/al.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/am.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ao.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/aq.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ar.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/as.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/at.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/au.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/aw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ax.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/az.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ba.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bb.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bd.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/be.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bh.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bi.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bj.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bl.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bo.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bq.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/br.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bs.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bt.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bv.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/by.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/bz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ca.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cc.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cd.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ch.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ci.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ck.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cl.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/co.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cv.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cx.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cy.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/cz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/de.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/dj.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/dk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/dm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/do.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/dz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ec.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ee.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/eg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/eh.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/er.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/es-ca.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/es.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/et.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/eu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/fi.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/fj.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/fk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/fm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/fo.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/fr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ga.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gb-eng.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gb-nir.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gb-sct.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gb-wls.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gb.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gd.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ge.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gh.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gi.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gl.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gp.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gq.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gs.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gt.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/gy.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/hk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/hm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/hn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/hr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ht.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/hu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/id.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ie.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/il.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/im.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/in.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/io.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/iq.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ir.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/is.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/it.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/je.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/jm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/jo.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/jp.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ke.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/kg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/kh.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ki.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/km.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/kn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/kp.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/kr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/kw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ky.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/kz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/la.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/lb.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/lc.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/li.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/lk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/lr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ls.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/lt.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/lu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/lv.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ly.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ma.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mc.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/md.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/me.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mh.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ml.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mo.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mp.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mq.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ms.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mt.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mv.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mx.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/my.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/mz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/na.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/nc.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ne.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/nf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ng.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ni.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/nl.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/no.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/np.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/nr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/nu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/nz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/om.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pa.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pe.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ph.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pl.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ps.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pt.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/pw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/py.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/qa.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/re.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ro.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/rs.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ru.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/rw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sa.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sb.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sc.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sd.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/se.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sh.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/si.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sj.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sl.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/so.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ss.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/st.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sv.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sx.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sy.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/sz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tc.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/td.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/th.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tj.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tl.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/to.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tr.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tt.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tv.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tw.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/tz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ua.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ug.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/um.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/un.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/us.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/uy.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/uz.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/va.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/vc.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ve.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/vg.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/vi.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/vn.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/vu.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/wf.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ws.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/xk.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/ye.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/yt.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/za.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/zm.svg delete mode 100644 plugins/flag-icon-css/flags/1x1/zw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ad.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ae.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/af.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ag.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ai.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/al.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/am.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ao.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/aq.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ar.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/as.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/at.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/au.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/aw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ax.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/az.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ba.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bb.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bd.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/be.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bh.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bi.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bj.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bl.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bo.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bq.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/br.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bs.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bt.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bv.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/by.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/bz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ca.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cc.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cd.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ch.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ci.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ck.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cl.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/co.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cv.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cx.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cy.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/cz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/de.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/dj.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/dk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/dm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/do.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/dz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ec.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ee.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/eg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/eh.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/er.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/es-ca.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/es.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/et.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/eu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/fi.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/fj.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/fk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/fm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/fo.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/fr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ga.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gb-eng.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gb-nir.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gb-sct.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gb-wls.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gb.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gd.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ge.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gh.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gi.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gl.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gp.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gq.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gs.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gt.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/gy.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/hk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/hm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/hn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/hr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ht.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/hu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/id.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ie.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/il.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/im.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/in.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/io.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/iq.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ir.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/is.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/it.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/je.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/jm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/jo.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/jp.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ke.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/kg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/kh.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ki.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/km.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/kn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/kp.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/kr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/kw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ky.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/kz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/la.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/lb.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/lc.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/li.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/lk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/lr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ls.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/lt.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/lu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/lv.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ly.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ma.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mc.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/md.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/me.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mh.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ml.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mo.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mp.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mq.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ms.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mt.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mv.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mx.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/my.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/mz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/na.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/nc.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ne.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/nf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ng.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ni.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/nl.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/no.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/np.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/nr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/nu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/nz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/om.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pa.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pe.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ph.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pl.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ps.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pt.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/pw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/py.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/qa.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/re.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ro.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/rs.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ru.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/rw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sa.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sb.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sc.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sd.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/se.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sh.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/si.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sj.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sl.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/so.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ss.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/st.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sv.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sx.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sy.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/sz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tc.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/td.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/th.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tj.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tl.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/to.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tr.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tt.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tv.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tw.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/tz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ua.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ug.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/um.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/un.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/us.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/uy.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/uz.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/va.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/vc.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ve.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/vg.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/vi.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/vn.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/vu.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/wf.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ws.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/xk.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/ye.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/yt.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/za.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/zm.svg delete mode 100644 plugins/flag-icon-css/flags/4x3/zw.svg delete mode 100644 plugins/flot-old/excanvas.js delete mode 100644 plugins/flot-old/excanvas.min.js delete mode 100644 plugins/flot-old/jquery.colorhelpers.js delete mode 100644 plugins/flot-old/jquery.colorhelpers.min.js delete mode 100644 plugins/flot-old/jquery.flot.canvas.js delete mode 100644 plugins/flot-old/jquery.flot.canvas.min.js delete mode 100644 plugins/flot-old/jquery.flot.categories.js delete mode 100644 plugins/flot-old/jquery.flot.categories.min.js delete mode 100644 plugins/flot-old/jquery.flot.crosshair.js delete mode 100644 plugins/flot-old/jquery.flot.crosshair.min.js delete mode 100644 plugins/flot-old/jquery.flot.errorbars.js delete mode 100644 plugins/flot-old/jquery.flot.errorbars.min.js delete mode 100644 plugins/flot-old/jquery.flot.fillbetween.js delete mode 100644 plugins/flot-old/jquery.flot.fillbetween.min.js delete mode 100644 plugins/flot-old/jquery.flot.image.js delete mode 100644 plugins/flot-old/jquery.flot.image.min.js delete mode 100644 plugins/flot-old/jquery.flot.js delete mode 100644 plugins/flot-old/jquery.flot.min.js delete mode 100644 plugins/flot-old/jquery.flot.navigate.js delete mode 100644 plugins/flot-old/jquery.flot.navigate.min.js delete mode 100644 plugins/flot-old/jquery.flot.pie.js delete mode 100644 plugins/flot-old/jquery.flot.pie.min.js delete mode 100644 plugins/flot-old/jquery.flot.resize.js delete mode 100644 plugins/flot-old/jquery.flot.resize.min.js delete mode 100644 plugins/flot-old/jquery.flot.selection.js delete mode 100644 plugins/flot-old/jquery.flot.selection.min.js delete mode 100644 plugins/flot-old/jquery.flot.stack.js delete mode 100644 plugins/flot-old/jquery.flot.stack.min.js delete mode 100644 plugins/flot-old/jquery.flot.symbol.js delete mode 100644 plugins/flot-old/jquery.flot.symbol.min.js delete mode 100644 plugins/flot-old/jquery.flot.threshold.js delete mode 100644 plugins/flot-old/jquery.flot.threshold.min.js delete mode 100644 plugins/flot-old/jquery.flot.time.js delete mode 100644 plugins/flot-old/jquery.flot.time.min.js delete mode 100644 plugins/flot/jquery.flot.js delete mode 100644 plugins/icheck-bootstrap/LICENSE delete mode 100644 plugins/icheck-bootstrap/icheck-bootstrap.css delete mode 100644 plugins/icheck-bootstrap/icheck-bootstrap.min.css delete mode 100644 plugins/ion-rangeslider/.editorconfig delete mode 100644 plugins/ion-rangeslider/css/ion.rangeSlider.css delete mode 100644 plugins/ion-rangeslider/css/ion.rangeSlider.min.css delete mode 100644 plugins/ion-rangeslider/js/ion.rangeSlider.js delete mode 100644 plugins/ion-rangeslider/js/ion.rangeSlider.min.js delete mode 100644 plugins/ion-rangeslider/less/_base.less delete mode 100644 plugins/ion-rangeslider/less/_mixins.less delete mode 100644 plugins/ion-rangeslider/less/irs.less delete mode 100644 plugins/ion-rangeslider/less/skins/big.less delete mode 100644 plugins/ion-rangeslider/less/skins/flat.less delete mode 100644 plugins/ion-rangeslider/less/skins/modern.less delete mode 100644 plugins/ion-rangeslider/less/skins/round.less delete mode 100644 plugins/ion-rangeslider/less/skins/sharp.less delete mode 100644 plugins/ion-rangeslider/less/skins/square.less delete mode 100644 plugins/jquery-knob/jquery.knob.min.js delete mode 100644 plugins/jquery-mapael/jquery.mapael.js delete mode 100644 plugins/jquery-mapael/jquery.mapael.min.js delete mode 100644 plugins/jquery-mapael/maps/README.txt delete mode 100644 plugins/jquery-mapael/maps/france_departments.js delete mode 100644 plugins/jquery-mapael/maps/france_departments.min.js delete mode 100644 plugins/jquery-mapael/maps/usa_states.js delete mode 100644 plugins/jquery-mapael/maps/usa_states.min.js delete mode 100644 plugins/jquery-mapael/maps/world_countries.js delete mode 100644 plugins/jquery-mapael/maps/world_countries.min.js delete mode 100644 plugins/jquery-mapael/maps/world_countries_mercator.js delete mode 100644 plugins/jquery-mapael/maps/world_countries_mercator.min.js delete mode 100644 plugins/jquery-mapael/maps/world_countries_miller.js delete mode 100644 plugins/jquery-mapael/maps/world_countries_miller.min.js delete mode 100644 plugins/jquery-mousewheel/LICENSE.txt delete mode 100644 plugins/jquery-mousewheel/jquery.mousewheel.js delete mode 100644 plugins/jquery-ui/AUTHORS.txt delete mode 100644 plugins/jquery-ui/LICENSE.txt delete mode 100644 plugins/jquery-ui/external/jquery/jquery.js delete mode 100644 plugins/jquery-ui/images/ui-icons_444444_256x240.png delete mode 100644 plugins/jquery-ui/images/ui-icons_555555_256x240.png delete mode 100644 plugins/jquery-ui/images/ui-icons_777620_256x240.png delete mode 100644 plugins/jquery-ui/images/ui-icons_777777_256x240.png delete mode 100644 plugins/jquery-ui/images/ui-icons_cc0000_256x240.png delete mode 100644 plugins/jquery-ui/images/ui-icons_ffffff_256x240.png delete mode 100644 plugins/jquery-ui/jquery-ui.css delete mode 100644 plugins/jquery-ui/jquery-ui.js delete mode 100644 plugins/jquery-ui/jquery-ui.min.css delete mode 100644 plugins/jquery-ui/jquery-ui.min.js delete mode 100644 plugins/jquery-ui/jquery-ui.structure.css delete mode 100644 plugins/jquery-ui/jquery-ui.structure.min.css delete mode 100644 plugins/jquery-ui/jquery-ui.theme.css delete mode 100644 plugins/jquery-ui/jquery-ui.theme.min.css delete mode 100644 plugins/jquery-validation/additional-methods.js delete mode 100644 plugins/jquery-validation/additional-methods.min.js delete mode 100644 plugins/jquery-validation/jquery.validate.js delete mode 100644 plugins/jquery-validation/jquery.validate.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ar.js delete mode 100644 plugins/jquery-validation/localization/messages_ar.min.js delete mode 100644 plugins/jquery-validation/localization/messages_az.js delete mode 100644 plugins/jquery-validation/localization/messages_az.min.js delete mode 100644 plugins/jquery-validation/localization/messages_bg.js delete mode 100644 plugins/jquery-validation/localization/messages_bg.min.js delete mode 100644 plugins/jquery-validation/localization/messages_bn_BD.js delete mode 100644 plugins/jquery-validation/localization/messages_bn_BD.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ca.js delete mode 100644 plugins/jquery-validation/localization/messages_ca.min.js delete mode 100644 plugins/jquery-validation/localization/messages_cs.js delete mode 100644 plugins/jquery-validation/localization/messages_cs.min.js delete mode 100644 plugins/jquery-validation/localization/messages_da.js delete mode 100644 plugins/jquery-validation/localization/messages_da.min.js delete mode 100644 plugins/jquery-validation/localization/messages_de.js delete mode 100644 plugins/jquery-validation/localization/messages_de.min.js delete mode 100644 plugins/jquery-validation/localization/messages_el.js delete mode 100644 plugins/jquery-validation/localization/messages_el.min.js delete mode 100644 plugins/jquery-validation/localization/messages_es.js delete mode 100644 plugins/jquery-validation/localization/messages_es.min.js delete mode 100644 plugins/jquery-validation/localization/messages_es_AR.js delete mode 100644 plugins/jquery-validation/localization/messages_es_AR.min.js delete mode 100644 plugins/jquery-validation/localization/messages_es_PE.js delete mode 100644 plugins/jquery-validation/localization/messages_es_PE.min.js delete mode 100644 plugins/jquery-validation/localization/messages_et.js delete mode 100644 plugins/jquery-validation/localization/messages_et.min.js delete mode 100644 plugins/jquery-validation/localization/messages_eu.js delete mode 100644 plugins/jquery-validation/localization/messages_eu.min.js delete mode 100644 plugins/jquery-validation/localization/messages_fa.js delete mode 100644 plugins/jquery-validation/localization/messages_fa.min.js delete mode 100644 plugins/jquery-validation/localization/messages_fi.js delete mode 100644 plugins/jquery-validation/localization/messages_fi.min.js delete mode 100644 plugins/jquery-validation/localization/messages_fr.js delete mode 100644 plugins/jquery-validation/localization/messages_fr.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ge.js delete mode 100644 plugins/jquery-validation/localization/messages_ge.min.js delete mode 100644 plugins/jquery-validation/localization/messages_gl.js delete mode 100644 plugins/jquery-validation/localization/messages_gl.min.js delete mode 100644 plugins/jquery-validation/localization/messages_he.js delete mode 100644 plugins/jquery-validation/localization/messages_he.min.js delete mode 100644 plugins/jquery-validation/localization/messages_hr.js delete mode 100644 plugins/jquery-validation/localization/messages_hr.min.js delete mode 100644 plugins/jquery-validation/localization/messages_hu.js delete mode 100644 plugins/jquery-validation/localization/messages_hu.min.js delete mode 100644 plugins/jquery-validation/localization/messages_hy_AM.js delete mode 100644 plugins/jquery-validation/localization/messages_hy_AM.min.js delete mode 100644 plugins/jquery-validation/localization/messages_id.js delete mode 100644 plugins/jquery-validation/localization/messages_id.min.js delete mode 100644 plugins/jquery-validation/localization/messages_is.js delete mode 100644 plugins/jquery-validation/localization/messages_is.min.js delete mode 100644 plugins/jquery-validation/localization/messages_it.js delete mode 100644 plugins/jquery-validation/localization/messages_it.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ja.js delete mode 100644 plugins/jquery-validation/localization/messages_ja.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ka.js delete mode 100644 plugins/jquery-validation/localization/messages_ka.min.js delete mode 100644 plugins/jquery-validation/localization/messages_kk.js delete mode 100644 plugins/jquery-validation/localization/messages_kk.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ko.js delete mode 100644 plugins/jquery-validation/localization/messages_ko.min.js delete mode 100644 plugins/jquery-validation/localization/messages_lt.js delete mode 100644 plugins/jquery-validation/localization/messages_lt.min.js delete mode 100644 plugins/jquery-validation/localization/messages_lv.js delete mode 100644 plugins/jquery-validation/localization/messages_lv.min.js delete mode 100644 plugins/jquery-validation/localization/messages_mk.js delete mode 100644 plugins/jquery-validation/localization/messages_mk.min.js delete mode 100644 plugins/jquery-validation/localization/messages_my.js delete mode 100644 plugins/jquery-validation/localization/messages_my.min.js delete mode 100644 plugins/jquery-validation/localization/messages_nl.js delete mode 100644 plugins/jquery-validation/localization/messages_nl.min.js delete mode 100644 plugins/jquery-validation/localization/messages_no.js delete mode 100644 plugins/jquery-validation/localization/messages_no.min.js delete mode 100644 plugins/jquery-validation/localization/messages_pl.js delete mode 100644 plugins/jquery-validation/localization/messages_pl.min.js delete mode 100644 plugins/jquery-validation/localization/messages_pt_BR.js delete mode 100644 plugins/jquery-validation/localization/messages_pt_BR.min.js delete mode 100644 plugins/jquery-validation/localization/messages_pt_PT.js delete mode 100644 plugins/jquery-validation/localization/messages_pt_PT.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ro.js delete mode 100644 plugins/jquery-validation/localization/messages_ro.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ru.js delete mode 100644 plugins/jquery-validation/localization/messages_ru.min.js delete mode 100644 plugins/jquery-validation/localization/messages_sd.js delete mode 100644 plugins/jquery-validation/localization/messages_sd.min.js delete mode 100644 plugins/jquery-validation/localization/messages_si.js delete mode 100644 plugins/jquery-validation/localization/messages_si.min.js delete mode 100644 plugins/jquery-validation/localization/messages_sk.js delete mode 100644 plugins/jquery-validation/localization/messages_sk.min.js delete mode 100644 plugins/jquery-validation/localization/messages_sl.js delete mode 100644 plugins/jquery-validation/localization/messages_sl.min.js delete mode 100644 plugins/jquery-validation/localization/messages_sr.js delete mode 100644 plugins/jquery-validation/localization/messages_sr.min.js delete mode 100644 plugins/jquery-validation/localization/messages_sr_lat.js delete mode 100644 plugins/jquery-validation/localization/messages_sr_lat.min.js delete mode 100644 plugins/jquery-validation/localization/messages_sv.js delete mode 100644 plugins/jquery-validation/localization/messages_sv.min.js delete mode 100644 plugins/jquery-validation/localization/messages_th.js delete mode 100644 plugins/jquery-validation/localization/messages_th.min.js delete mode 100644 plugins/jquery-validation/localization/messages_tj.js delete mode 100644 plugins/jquery-validation/localization/messages_tj.min.js delete mode 100644 plugins/jquery-validation/localization/messages_tr.js delete mode 100644 plugins/jquery-validation/localization/messages_tr.min.js delete mode 100644 plugins/jquery-validation/localization/messages_uk.js delete mode 100644 plugins/jquery-validation/localization/messages_uk.min.js delete mode 100644 plugins/jquery-validation/localization/messages_ur.js delete mode 100644 plugins/jquery-validation/localization/messages_ur.min.js delete mode 100644 plugins/jquery-validation/localization/messages_vi.js delete mode 100644 plugins/jquery-validation/localization/messages_vi.min.js delete mode 100644 plugins/jquery-validation/localization/messages_zh.js delete mode 100644 plugins/jquery-validation/localization/messages_zh.min.js delete mode 100644 plugins/jquery-validation/localization/messages_zh_TW.js delete mode 100644 plugins/jquery-validation/localization/messages_zh_TW.min.js delete mode 100644 plugins/jquery-validation/localization/methods_de.js delete mode 100644 plugins/jquery-validation/localization/methods_de.min.js delete mode 100644 plugins/jquery-validation/localization/methods_es_CL.js delete mode 100644 plugins/jquery-validation/localization/methods_es_CL.min.js delete mode 100644 plugins/jquery-validation/localization/methods_fi.js delete mode 100644 plugins/jquery-validation/localization/methods_fi.min.js delete mode 100644 plugins/jquery-validation/localization/methods_it.js delete mode 100644 plugins/jquery-validation/localization/methods_it.min.js delete mode 100644 plugins/jquery-validation/localization/methods_nl.js delete mode 100644 plugins/jquery-validation/localization/methods_nl.min.js delete mode 100644 plugins/jquery-validation/localization/methods_pt.js delete mode 100644 plugins/jquery-validation/localization/methods_pt.min.js delete mode 100644 plugins/jqvmap/jquery.vmap.js delete mode 100644 plugins/jqvmap/jquery.vmap.min.js delete mode 100644 plugins/jqvmap/jqvmap.css delete mode 100644 plugins/jqvmap/jqvmap.min.css delete mode 100644 plugins/jqvmap/maps/continents/jquery.vmap.africa.js delete mode 100644 plugins/jqvmap/maps/continents/jquery.vmap.asia.js delete mode 100644 plugins/jqvmap/maps/continents/jquery.vmap.australia.js delete mode 100644 plugins/jqvmap/maps/continents/jquery.vmap.europe.js delete mode 100644 plugins/jqvmap/maps/continents/jquery.vmap.north-america.js delete mode 100644 plugins/jqvmap/maps/continents/jquery.vmap.south-america.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.algeria.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.argentina.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.brazil.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.canada.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.croatia.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.europe.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.france.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.germany.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.greece.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.indonesia.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.iran.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.iraq.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.new_regions_france.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.russia.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.serbia.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.tunisia.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.turkey.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.ukraine.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.usa.counties.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.usa.districts.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.usa.js delete mode 100644 plugins/jqvmap/maps/jquery.vmap.world.js delete mode 100644 plugins/jsgrid/demos/basic.html delete mode 100644 plugins/jsgrid/demos/batch-delete.html delete mode 100644 plugins/jsgrid/demos/custom-grid-field.html delete mode 100644 plugins/jsgrid/demos/custom-load-indicator.html delete mode 100644 plugins/jsgrid/demos/custom-row-renderer.html delete mode 100644 plugins/jsgrid/demos/custom-view.html delete mode 100644 plugins/jsgrid/demos/data-manipulation.html delete mode 100644 plugins/jsgrid/demos/db.js delete mode 100644 plugins/jsgrid/demos/demos.css delete mode 100644 plugins/jsgrid/demos/external-pager.html delete mode 100644 plugins/jsgrid/demos/index.html delete mode 100644 plugins/jsgrid/demos/loading-by-page.html delete mode 100644 plugins/jsgrid/demos/localization.html delete mode 100644 plugins/jsgrid/demos/odata-service.html delete mode 100644 plugins/jsgrid/demos/rows-reordering.html delete mode 100644 plugins/jsgrid/demos/sorting.html delete mode 100644 plugins/jsgrid/demos/static-data.html delete mode 100644 plugins/jsgrid/demos/validation.html delete mode 100644 plugins/jsgrid/i18n/jsgrid-de.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-es.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-fr.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-he.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-ja.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-ka.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-pl.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-pt-br.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-pt.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-ru.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-tr.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-zh-cn.js delete mode 100644 plugins/jsgrid/i18n/jsgrid-zh-tw.js delete mode 100644 plugins/jsgrid/jsgrid-theme.css delete mode 100644 plugins/jsgrid/jsgrid-theme.min.css delete mode 100644 plugins/jsgrid/jsgrid.css delete mode 100644 plugins/jsgrid/jsgrid.js delete mode 100644 plugins/jsgrid/jsgrid.min.css delete mode 100644 plugins/jsgrid/jsgrid.min.js delete mode 100644 plugins/jszip/jszip.js delete mode 100644 plugins/jszip/jszip.min.js delete mode 100644 plugins/overlayScrollbars/css/OverlayScrollbars.css delete mode 100644 plugins/overlayScrollbars/css/OverlayScrollbars.min.css delete mode 100644 plugins/overlayScrollbars/js/OverlayScrollbars.js delete mode 100644 plugins/overlayScrollbars/js/OverlayScrollbars.min.js delete mode 100644 plugins/overlayScrollbars/js/jquery.overlayScrollbars.js delete mode 100644 plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js delete mode 100644 plugins/pace-progress/pace.js delete mode 100644 plugins/pace-progress/pace.min.js delete mode 100644 plugins/pace-progress/themes/black/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/black/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/blue/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/green/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/orange/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/pink/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/purple/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/red/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/silver/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/white/pace-theme-minimal.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-barber-shop.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-big-counter.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-bounce.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-center-atom.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-center-circle.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-center-radar.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-center-simple.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-corner-indicator.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-fill-left.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-flash.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-flat-top.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-loading-bar.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-mac-osx.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-material.css delete mode 100644 plugins/pace-progress/themes/yellow/pace-theme-minimal.css delete mode 100644 plugins/raphael/.eslintrc.js delete mode 100644 plugins/raphael/Gruntfile.js delete mode 100644 plugins/raphael/bower.json delete mode 100644 plugins/raphael/dev/banner.txt delete mode 100644 plugins/raphael/dev/raphael.amd.js delete mode 100644 plugins/raphael/dev/raphael.core.js delete mode 100644 plugins/raphael/dev/raphael.svg.js delete mode 100644 plugins/raphael/dev/raphael.vml.js delete mode 100644 plugins/raphael/dev/raphaelTest.html delete mode 100644 plugins/raphael/dev/test/index.html delete mode 100644 plugins/raphael/dev/test/svg/dom.js delete mode 100644 plugins/raphael/dev/test/vml/dom.js delete mode 100644 plugins/raphael/license.txt delete mode 100644 plugins/raphael/raphael.js delete mode 100644 plugins/raphael/raphael.min.js delete mode 100644 plugins/raphael/raphael.no-deps.js delete mode 100644 plugins/raphael/raphael.no-deps.min.js delete mode 100644 plugins/raphael/webpack.config.js delete mode 100644 plugins/sparklines/sparkline.js diff --git a/add_calendar_event_modal.php b/add_calendar_event_modal.php index 8a48c366..bc3a7f7c 100644 --- a/add_calendar_event_modal.php +++ b/add_calendar_event_modal.php @@ -49,7 +49,7 @@
- + diff --git a/cron.php b/cron.php index 9cc35b75..f8d06d36 100644 --- a/cron.php +++ b/cron.php @@ -66,7 +66,7 @@ while($row = mysqli_fetch_array($sql_companies)){ //PAST DUE INVOICE ALERTS //$invoiceAlertArray = [$config_invoice_overdue_reminders]; - $invoiceAlertArray = [30,60,90,120,150,180,210,240,270,300]; + $invoiceAlertArray = [30,60,90,120,150,180,210,240,270,300,330,360,390,420,450,480,510,540,570,590,620]; foreach($invoiceAlertArray as $day){ diff --git a/edit_client_modal.php b/edit_client_modal.php index 16c3711a..31e8ae56 100644 --- a/edit_client_modal.php +++ b/edit_client_modal.php @@ -71,7 +71,7 @@
- + diff --git a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css b/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css deleted file mode 100644 index 4d931aff..00000000 --- a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css +++ /dev/null @@ -1,399 +0,0 @@ -/*! - * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4. - * @package bootstrap-colorpicker - * @version v3.2.0 - * @license MIT - * @link https://itsjavi.com/bootstrap-colorpicker/ - * @link https://github.com/itsjavi/bootstrap-colorpicker.git - */ -.colorpicker { - position: relative; - display: none; - font-size: inherit; - color: inherit; - text-align: left; - list-style: none; - background-color: #ffffff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, 0.2); - padding: .75rem .75rem; - width: 148px; - border-radius: 4px; - -webkit-box-sizing: content-box; - box-sizing: content-box; } - -.colorpicker.colorpicker-disabled, -.colorpicker.colorpicker-disabled * { - cursor: default !important; } - -.colorpicker div { - position: relative; } - -.colorpicker-popup { - position: absolute; - top: 100%; - left: 0; - float: left; - margin-top: 1px; - z-index: 1060; } - -.colorpicker-popup.colorpicker-bs-popover-content { - position: relative; - top: auto; - left: auto; - float: none; - margin: 0; - z-index: initial; - border: none; - padding: 0.25rem 0; - border-radius: 0; - background: none; - -webkit-box-shadow: none; - box-shadow: none; } - -.colorpicker:before, -.colorpicker:after { - content: ""; - display: table; - clear: both; - line-height: 0; } - -.colorpicker-clear { - clear: both; - display: block; } - -.colorpicker:before { - content: ''; - display: inline-block; - border-left: 7px solid transparent; - border-right: 7px solid transparent; - border-bottom: 7px solid #ccc; - border-bottom-color: rgba(0, 0, 0, 0.2); - position: absolute; - top: -7px; - left: auto; - right: 6px; } - -.colorpicker:after { - content: ''; - display: inline-block; - border-left: 6px solid transparent; - border-right: 6px solid transparent; - border-bottom: 6px solid #ffffff; - position: absolute; - top: -6px; - left: auto; - right: 7px; } - -.colorpicker.colorpicker-with-alpha { - width: 170px; } - -.colorpicker.colorpicker-with-alpha .colorpicker-alpha { - display: block; } - -.colorpicker-saturation { - position: relative; - width: 126px; - height: 126px; - /* FF3.6+ */ - /* Chrome,Safari4+ */ - /* Chrome10+,Safari5.1+ */ - /* Opera 11.10+ */ - /* IE10+ */ - background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(black)), -webkit-gradient(linear, left top, right top, from(white), to(rgba(255, 255, 255, 0))); - background: linear-gradient(to bottom, transparent 0%, black 100%), linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%); - /* W3C */ - cursor: crosshair; - float: left; - -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); - box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); - margin-bottom: 6px; } - .colorpicker-saturation .colorpicker-guide { - display: block; - height: 6px; - width: 6px; - border-radius: 6px; - border: 1px solid #000; - -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8); - box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8); - position: absolute; - top: 0; - left: 0; - margin: -3px 0 0 -3px; } - -.colorpicker-hue, -.colorpicker-alpha { - position: relative; - width: 16px; - height: 126px; - float: left; - cursor: row-resize; - margin-left: 6px; - margin-bottom: 6px; } - -.colorpicker-alpha-color { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; } - -.colorpicker-hue, -.colorpicker-alpha-color { - -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); - box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); } - -.colorpicker-hue .colorpicker-guide, -.colorpicker-alpha .colorpicker-guide { - display: block; - height: 4px; - background: rgba(255, 255, 255, 0.8); - border: 1px solid rgba(0, 0, 0, 0.4); - position: absolute; - top: 0; - left: 0; - margin-left: -2px; - margin-top: -2px; - right: -2px; - z-index: 1; } - -.colorpicker-hue { - /* FF3.6+ */ - /* Chrome,Safari4+ */ - /* Chrome10+,Safari5.1+ */ - /* Opera 11.10+ */ - /* IE10+ */ - background: -webkit-gradient(linear, left bottom, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red)); - background: linear-gradient(to top, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%); - /* W3C */ } - -.colorpicker-alpha { - background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white; - background-size: 10px 10px; - background-position: 0 0, 5px 5px; - display: none; } - -.colorpicker-bar { - min-height: 16px; - margin: 6px 0 0 0; - clear: both; - text-align: center; - font-size: 10px; - line-height: normal; - max-width: 100%; - -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); - box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); } - .colorpicker-bar:before { - content: ""; - display: table; - clear: both; } - -.colorpicker-bar.colorpicker-bar-horizontal { - height: 126px; - width: 16px; - margin: 0 0 6px 0; - float: left; } - -.colorpicker-input-addon { - position: relative; } - -.colorpicker-input-addon i { - display: inline-block; - cursor: pointer; - vertical-align: text-top; - height: 16px; - width: 16px; - position: relative; } - -.colorpicker-input-addon:before { - content: ""; - position: absolute; - width: 16px; - height: 16px; - display: inline-block; - vertical-align: text-top; - background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white; - background-size: 10px 10px; - background-position: 0 0, 5px 5px; } - -.colorpicker.colorpicker-inline { - position: relative; - display: inline-block; - float: none; - z-index: auto; - vertical-align: text-bottom; } - -.colorpicker.colorpicker-horizontal { - width: 126px; - height: auto; } - -.colorpicker.colorpicker-horizontal .colorpicker-bar { - width: 126px; } - -.colorpicker.colorpicker-horizontal .colorpicker-saturation { - float: none; - margin-bottom: 0; } - -.colorpicker.colorpicker-horizontal .colorpicker-hue, -.colorpicker.colorpicker-horizontal .colorpicker-alpha { - float: none; - width: 126px; - height: 16px; - cursor: col-resize; - margin-left: 0; - margin-top: 6px; - margin-bottom: 0; } - -.colorpicker.colorpicker-horizontal .colorpicker-hue .colorpicker-guide, -.colorpicker.colorpicker-horizontal .colorpicker-alpha .colorpicker-guide { - position: absolute; - display: block; - bottom: -2px; - left: 0; - right: auto; - height: auto; - width: 4px; } - -.colorpicker.colorpicker-horizontal .colorpicker-hue { - /* FF3.6+ */ - /* Chrome,Safari4+ */ - /* Chrome10+,Safari5.1+ */ - /* Opera 11.10+ */ - /* IE10+ */ - background: -webkit-gradient(linear, right top, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red)); - background: linear-gradient(to left, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%); - /* W3C */ } - -.colorpicker.colorpicker-horizontal .colorpicker-alpha { - background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white; - background-size: 10px 10px; - background-position: 0 0, 5px 5px; } - -.colorpicker-inline:before, -.colorpicker-no-arrow:before, -.colorpicker-popup.colorpicker-bs-popover-content:before { - content: none; - display: none; } - -.colorpicker-inline:after, -.colorpicker-no-arrow:after, -.colorpicker-popup.colorpicker-bs-popover-content:after { - content: none; - display: none; } - -.colorpicker-alpha, -.colorpicker-saturation, -.colorpicker-hue { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } - -.colorpicker.colorpicker-visible, -.colorpicker-alpha.colorpicker-visible, -.colorpicker-saturation.colorpicker-visible, -.colorpicker-hue.colorpicker-visible, -.colorpicker-bar.colorpicker-visible { - display: block; } - -.colorpicker.colorpicker-hidden, -.colorpicker-alpha.colorpicker-hidden, -.colorpicker-saturation.colorpicker-hidden, -.colorpicker-hue.colorpicker-hidden, -.colorpicker-bar.colorpicker-hidden { - display: none; } - -.colorpicker-inline.colorpicker-visible { - display: inline-block; } - -.colorpicker.colorpicker-disabled:after { - border: none; - content: ''; - display: block; - width: 100%; - height: 100%; - background: rgba(233, 236, 239, 0.33); - top: 0; - left: 0; - right: auto; - z-index: 2; - position: absolute; } - -.colorpicker.colorpicker-disabled .colorpicker-guide { - display: none; } - -/** EXTENSIONS **/ -.colorpicker-preview { - background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white; - background-size: 10px 10px; - background-position: 0 0, 5px 5px; } - -.colorpicker-preview > div { - position: absolute; - left: 0; - top: 0; - width: 100%; - height: 100%; } - -.colorpicker-bar.colorpicker-swatches { - -webkit-box-shadow: none; - box-shadow: none; - height: auto; } - -.colorpicker-swatches--inner { - clear: both; - margin-top: -6px; } - -.colorpicker-swatch { - position: relative; - cursor: pointer; - float: left; - height: 16px; - width: 16px; - margin-right: 6px; - margin-top: 6px; - margin-left: 0; - display: block; - -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); - box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); - background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white; - background-size: 10px 10px; - background-position: 0 0, 5px 5px; } - -.colorpicker-swatch--inner { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; } - -.colorpicker-swatch:nth-of-type(7n+0) { - margin-right: 0; } - -.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(7n+0) { - margin-right: 6px; } - -.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(8n+0) { - margin-right: 0; } - -.colorpicker-horizontal .colorpicker-swatch:nth-of-type(6n+0) { - margin-right: 0; } - -.colorpicker-horizontal .colorpicker-swatch:nth-of-type(7n+0) { - margin-right: 6px; } - -.colorpicker-horizontal .colorpicker-swatch:nth-of-type(8n+0) { - margin-right: 6px; } - -.colorpicker-swatch:last-of-type:after { - content: ""; - display: table; - clear: both; } - -*[dir='rtl'] .colorpicker-element input, -.colorpicker-element[dir='rtl'] input, -.colorpicker-element input[dir='rtl'] { - direction: ltr; - text-align: right; } - -/*# sourceMappingURL=bootstrap-colorpicker.css.map */ diff --git a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css.map b/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css.map deleted file mode 100644 index f669cff6..00000000 --- a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["colorpicker.scss"],"names":[],"mappings":"AAiDA;EACE,mBAAmB;EACnB,cAAc;EACd,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,iBAAiB;EACjB,0BAA0B;EAC1B,6BAA6B;EAC7B,qCA1DkB;EA4DlB,uBAAuB;EACvB,aAAuB;EACvB,mBAAmB;EACnB,gCAAwB;UAAxB,wBAAwB,EACzB;;AAED;;EAEE,2BAA2B,EAC5B;;AAED;EACE,mBAAmB,EACpB;;AAED;EACE,mBAAmB;EACnB,UAAU;EACV,QAAQ;EACR,YAAY;EACZ,gBAAgB;EAChB,cAAc,EACf;;AAED;EACE,mBAAmB;EACnB,UAAU;EACV,WAAW;EACX,YAAY;EACZ,UAAU;EACV,iBAAiB;EACj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hca,EAicd;;AAGH;EACE,YAAY;EACZ,eAAe;EACf,YAAY,EACb;;AAGD;;;EAGE,eAAe;EACf,kBAAkB,EACnB","file":"bootstrap-colorpicker.css","sourcesContent":["$outline-color: rgba(0, 0, 0, 0.2);\n$box-shadow-outline: 0 0 0 1px $outline-color;\n$bar-size-short: 16px !default;\n$base-margin: 6px !default;\n$columns: 6 !default; // this affects the number of swatches per row and the width of the color picker, saturation, etc.\n$bar-size-large: ($bar-size-short * $columns) + ($base-margin * ($columns - 1));\n\n@mixin bgCheckerBox($size: 10px) {\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0),\n linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0),\n rgb(255, 255, 255);\n background-size: $size $size;\n background-position: 0 0, $size/2 $size/2;\n}\n\n@mixin bgSaturation() {\n background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),\n -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, 1))),\n -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 0))); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),\n -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),\n -o-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),\n -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); /* IE10+ */\n background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%),\n linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); /* W3C */\n}\n\n@mixin bgHueHorizontal() {\n background: -moz-linear-gradient(right, rgb(255, 0, 0) 0%, rgb(255, 128, 0) 8%, rgb(255, 255, 0) 17%, rgb(128, 255, 0) 25%, rgb(0, 255, 0) 33%, rgb(0, 255, 128) 42%, rgb(0, 255, 255) 50%, rgb(0, 128, 255) 58%, rgb(0, 0, 255) 67%, rgb(128, 0, 255) 75%, rgb(255, 0, 255) 83%, rgb(255, 0, 128) 92%, rgb(255, 0, 0) 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, right top, left top, color-stop(0%, rgb(255, 0, 0)), color-stop(8%, rgb(255, 128, 0)), color-stop(17%, rgb(255, 255, 0)), color-stop(25%, rgb(128, 255, 0)), color-stop(33%, rgb(0, 255, 0)), color-stop(42%, rgb(0, 255, 128)), color-stop(50%, rgb(0, 255, 255)), color-stop(58%, rgb(0, 128, 255)), color-stop(67%, rgb(0, 0, 255)), color-stop(75%, rgb(128, 0, 255)), color-stop(83%, rgb(255, 0, 255)), color-stop(92%, rgb(255, 0, 128)), color-stop(100%, rgb(255, 0, 0))); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(right, rgb(255, 0, 0) 0%, rgb(255, 128, 0) 8%, rgb(255, 255, 0) 17%, rgb(128, 255, 0) 25%, rgb(0, 255, 0) 33%, rgb(0, 255, 128) 42%, rgb(0, 255, 255) 50%, rgb(0, 128, 255) 58%, rgb(0, 0, 255) 67%, rgb(128, 0, 255) 75%, rgb(255, 0, 255) 83%, rgb(255, 0, 128) 92%, rgb(255, 0, 0) 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(right, rgb(255, 0, 0) 0%, rgb(255, 128, 0) 8%, rgb(255, 255, 0) 17%, rgb(128, 255, 0) 25%, rgb(0, 255, 0) 33%, rgb(0, 255, 128) 42%, rgb(0, 255, 255) 50%, rgb(0, 128, 255) 58%, rgb(0, 0, 255) 67%, rgb(128, 0, 255) 75%, rgb(255, 0, 255) 83%, rgb(255, 0, 128) 92%, rgb(255, 0, 0) 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(right, rgb(255, 0, 0) 0%, rgb(255, 128, 0) 8%, rgb(255, 255, 0) 17%, rgb(128, 255, 0) 25%, rgb(0, 255, 0) 33%, rgb(0, 255, 128) 42%, rgb(0, 255, 255) 50%, rgb(0, 128, 255) 58%, rgb(0, 0, 255) 67%, rgb(128, 0, 255) 75%, rgb(255, 0, 255) 83%, rgb(255, 0, 128) 92%, rgb(255, 0, 0) 100%); /* IE10+ */\n background: linear-gradient(to left, rgb(255, 0, 0) 0%, rgb(255, 128, 0) 8%, rgb(255, 255, 0) 17%, rgb(128, 255, 0) 25%, rgb(0, 255, 0) 33%, rgb(0, 255, 128) 42%, rgb(0, 255, 255) 50%, rgb(0, 128, 255) 58%, rgb(0, 0, 255) 67%, rgb(128, 0, 255) 75%, rgb(255, 0, 255) 83%, rgb(255, 0, 128) 92%, rgb(255, 0, 0) 100%); /* W3C */\n\n}\n\n@mixin bgHueVertical() {\n background: -moz-linear-gradient(bottom, rgba(255, 0, 0, 1) 0%, rgba(255, 128, 0, 1) 8%, rgba(255, 255, 0, 1) 17%, rgba(128, 255, 0, 1) 25%, rgba(0, 255, 0, 1) 33%, rgba(0, 255, 128, 1) 42%, rgba(0, 255, 255, 1) 50%, rgba(0, 128, 255, 1) 58%, rgba(0, 0, 255, 1) 67%, rgba(128, 0, 255, 1) 75%, rgba(255, 0, 255, 1) 83%, rgba(255, 0, 128, 1) 92%, rgba(255, 0, 0, 1) 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, left bottom, left top, color-stop(0%, rgba(255, 0, 0, 1)), color-stop(8%, rgba(255, 128, 0, 1)), color-stop(17%, rgba(255, 255, 0, 1)), color-stop(25%, rgba(128, 255, 0, 1)), color-stop(33%, rgba(0, 255, 0, 1)), color-stop(42%, rgba(0, 255, 128, 1)), color-stop(50%, rgba(0, 255, 255, 1)), color-stop(58%, rgba(0, 128, 255, 1)), color-stop(67%, rgba(0, 0, 255, 1)), color-stop(75%, rgba(128, 0, 255, 1)), color-stop(83%, rgba(255, 0, 255, 1)), color-stop(92%, rgba(255, 0, 128, 1)), color-stop(100%, rgba(255, 0, 0, 1))); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(bottom, rgba(255, 0, 0, 1) 0%, rgba(255, 128, 0, 1) 8%, rgba(255, 255, 0, 1) 17%, rgba(128, 255, 0, 1) 25%, rgba(0, 255, 0, 1) 33%, rgba(0, 255, 128, 1) 42%, rgba(0, 255, 255, 1) 50%, rgba(0, 128, 255, 1) 58%, rgba(0, 0, 255, 1) 67%, rgba(128, 0, 255, 1) 75%, rgba(255, 0, 255, 1) 83%, rgba(255, 0, 128, 1) 92%, rgba(255, 0, 0, 1) 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(bottom, rgba(255, 0, 0, 1) 0%, rgba(255, 128, 0, 1) 8%, rgba(255, 255, 0, 1) 17%, rgba(128, 255, 0, 1) 25%, rgba(0, 255, 0, 1) 33%, rgba(0, 255, 128, 1) 42%, rgba(0, 255, 255, 1) 50%, rgba(0, 128, 255, 1) 58%, rgba(0, 0, 255, 1) 67%, rgba(128, 0, 255, 1) 75%, rgba(255, 0, 255, 1) 83%, rgba(255, 0, 128, 1) 92%, rgba(255, 0, 0, 1) 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(bottom, rgba(255, 0, 0, 1) 0%, rgba(255, 128, 0, 1) 8%, rgba(255, 255, 0, 1) 17%, rgba(128, 255, 0, 1) 25%, rgba(0, 255, 0, 1) 33%, rgba(0, 255, 128, 1) 42%, rgba(0, 255, 255, 1) 50%, rgba(0, 128, 255, 1) 58%, rgba(0, 0, 255, 1) 67%, rgba(128, 0, 255, 1) 75%, rgba(255, 0, 255, 1) 83%, rgba(255, 0, 128, 1) 92%, rgba(255, 0, 0, 1) 100%); /* IE10+ */\n background: linear-gradient(to top, rgba(255, 0, 0, 1) 0%, rgba(255, 128, 0, 1) 8%, rgba(255, 255, 0, 1) 17%, rgba(128, 255, 0, 1) 25%, rgba(0, 255, 0, 1) 33%, rgba(0, 255, 128, 1) 42%, rgba(0, 255, 255, 1) 50%, rgba(0, 128, 255, 1) 58%, rgba(0, 0, 255, 1) 67%, rgba(128, 0, 255, 1) 75%, rgba(255, 0, 255, 1) 83%, rgba(255, 0, 128, 1) 92%, rgba(255, 0, 0, 1) 100%); /* W3C */\n}\n\n.colorpicker {\n position: relative;\n display: none;\n font-size: inherit;\n color: inherit;\n text-align: left;\n list-style: none;\n background-color: #ffffff;\n background-clip: padding-box;\n border: 1px solid $outline-color;\n //box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\n padding: .75rem .75rem;\n width: ($bar-size-large + $base-margin + $bar-size-short);\n border-radius: 4px;\n box-sizing: content-box;\n}\n\n.colorpicker.colorpicker-disabled,\n.colorpicker.colorpicker-disabled * {\n cursor: default !important;\n}\n\n.colorpicker div {\n position: relative;\n}\n\n.colorpicker-popup {\n position: absolute;\n top: 100%;\n left: 0;\n float: left;\n margin-top: 1px;\n z-index: 1060;\n}\n\n.colorpicker-popup.colorpicker-bs-popover-content {\n position: relative;\n top: auto;\n left: auto;\n float: none;\n margin: 0;\n z-index: initial;\n border: none;\n padding: 0.25rem 0; // popover padding correction\n border-radius: 0;\n background: none;\n box-shadow: none;\n}\n\n.colorpicker:before,\n.colorpicker:after {\n content: \"\";\n display: table;\n clear: both;\n line-height: 0;\n}\n\n.colorpicker-clear {\n clear: both;\n display: block;\n}\n\n.colorpicker:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #ccc;\n border-bottom-color: $outline-color;\n position: absolute;\n top: -7px;\n left: auto;\n right: 6px;\n}\n\n.colorpicker:after {\n content: '';\n display: inline-block;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #ffffff;\n position: absolute;\n top: -6px;\n left: auto;\n right: 7px;\n}\n\n.colorpicker.colorpicker-with-alpha {\n width: ($bar-size-large + (($base-margin + $bar-size-short) * 2));\n}\n\n.colorpicker.colorpicker-with-alpha .colorpicker-alpha {\n display: block;\n}\n\n.colorpicker-saturation {\n position: relative;\n width: $bar-size-large;\n height: $bar-size-large;\n @include bgSaturation();\n cursor: crosshair;\n float: left;\n box-shadow: $box-shadow-outline;\n margin-bottom: $base-margin;\n\n .colorpicker-guide {\n display: block;\n height: 6px;\n width: 6px;\n border-radius: 6px;\n border: 1px solid #000;\n box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);\n position: absolute;\n top: 0;\n left: 0;\n margin: -3px 0 0 -3px;\n }\n}\n\n.colorpicker-hue,\n.colorpicker-alpha {\n position: relative;\n width: $bar-size-short;\n height: $bar-size-large;\n float: left;\n cursor: row-resize;\n margin-left: $base-margin;\n margin-bottom: $base-margin;\n}\n\n.colorpicker-alpha-color {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.colorpicker-hue,\n.colorpicker-alpha-color {\n box-shadow: $box-shadow-outline;\n}\n\n.colorpicker-hue .colorpicker-guide,\n.colorpicker-alpha .colorpicker-guide {\n display: block;\n height: 4px;\n background: rgba(255, 255, 255, 0.8);\n border: 1px solid rgba(0, 0, 0, 0.4);\n position: absolute;\n top: 0;\n left: 0;\n margin-left: -2px;\n margin-top: -2px;\n right: -2px;\n z-index: 1;\n}\n\n.colorpicker-hue {\n @include bgHueVertical();\n}\n\n.colorpicker-alpha {\n @include bgCheckerBox();\n display: none;\n}\n\n.colorpicker-bar {\n min-height: $bar-size-short;\n margin: $base-margin 0 0 0;\n clear: both;\n text-align: center;\n font-size: 10px;\n line-height: normal;\n max-width: 100%;\n box-shadow: $box-shadow-outline;\n\n &:before {\n content: \"\";\n display: table;\n clear: both;\n }\n}\n\n.colorpicker-bar.colorpicker-bar-horizontal {\n height: $bar-size-large;\n width: $bar-size-short;\n margin: 0 0 $base-margin 0;\n float: left;\n}\n\n.colorpicker-input-addon {\n position: relative;\n}\n\n.colorpicker-input-addon i {\n display: inline-block;\n cursor: pointer;\n vertical-align: text-top;\n height: 16px;\n width: 16px;\n position: relative;\n}\n\n.colorpicker-input-addon:before {\n content: \"\";\n position: absolute;\n width: 16px;\n height: 16px;\n display: inline-block;\n vertical-align: text-top;\n @include bgCheckerBox();\n}\n\n.colorpicker.colorpicker-inline {\n position: relative;\n display: inline-block;\n float: none;\n z-index: auto;\n vertical-align: text-bottom;\n}\n\n.colorpicker.colorpicker-horizontal {\n width: $bar-size-large;\n height: auto;\n}\n\n.colorpicker.colorpicker-horizontal .colorpicker-bar {\n width: $bar-size-large;\n}\n\n.colorpicker.colorpicker-horizontal .colorpicker-saturation {\n float: none;\n margin-bottom: 0;\n}\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue,\n.colorpicker.colorpicker-horizontal .colorpicker-alpha {\n float: none;\n width: $bar-size-large;\n height: $bar-size-short;\n cursor: col-resize;\n margin-left: 0;\n margin-top: $base-margin;\n margin-bottom: 0;\n}\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue .colorpicker-guide,\n.colorpicker.colorpicker-horizontal .colorpicker-alpha .colorpicker-guide {\n position: absolute;\n display: block;\n bottom: -2px;\n left: 0;\n right: auto;\n height: auto;\n width: 4px;\n}\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue {\n @include bgHueHorizontal();\n}\n\n.colorpicker.colorpicker-horizontal .colorpicker-alpha {\n @include bgCheckerBox();\n}\n\n.colorpicker-inline:before,\n.colorpicker-no-arrow:before,\n.colorpicker-popup.colorpicker-bs-popover-content:before {\n content: none;\n display: none;\n}\n\n.colorpicker-inline:after,\n.colorpicker-no-arrow:after,\n.colorpicker-popup.colorpicker-bs-popover-content:after {\n content: none;\n display: none;\n}\n\n\n.colorpicker-alpha,\n.colorpicker-saturation,\n.colorpicker-hue {\n user-select: none;\n}\n\n.colorpicker,\n.colorpicker-alpha,\n.colorpicker-saturation,\n.colorpicker-hue,\n.colorpicker-bar {\n &.colorpicker-visible {\n display: block;\n }\n}\n\n.colorpicker,\n.colorpicker-alpha,\n.colorpicker-saturation,\n.colorpicker-hue,\n.colorpicker-bar {\n &.colorpicker-hidden {\n display: none;\n }\n}\n\n.colorpicker-inline.colorpicker-visible {\n display: inline-block;\n}\n\n.colorpicker.colorpicker-disabled:after {\n border: none;\n content: '';\n display: block;\n width: 100%;\n height: 100%;\n background: rgba(233, 236, 239, 0.33);\n top: 0;\n left: 0;\n right: auto;\n z-index: 2;\n position: absolute;\n}\n\n.colorpicker.colorpicker-disabled .colorpicker-guide {\n display: none;\n}\n\n/** EXTENSIONS **/\n\n.colorpicker-preview {\n @include bgCheckerBox();\n}\n\n.colorpicker-preview > div {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n\n.colorpicker-bar.colorpicker-swatches {\n box-shadow: none;\n height: auto;\n}\n\n.colorpicker-swatches--inner {\n clear: both;\n margin-top: -$base-margin;\n}\n\n.colorpicker-swatch {\n position: relative;\n cursor: pointer;\n float: left;\n height: $bar-size-short;\n width: $bar-size-short;\n margin-right: $base-margin;\n margin-top: $base-margin;\n margin-left: 0;\n display: block;\n box-shadow: $box-shadow-outline;\n @include bgCheckerBox();\n}\n\n.colorpicker-swatch--inner {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n// saturation + hue vertical (clear margin-right on nth column + 1)\n.colorpicker-swatch:nth-of-type(#{$columns + 1}n+0) {\n margin-right: 0;\n}\n\n// saturation + hue + alpha vertical (clear margin-right on nth column + 2)\n.colorpicker-with-alpha {\n .colorpicker-swatch:nth-of-type(#{$columns + 1}n+0) {\n margin-right: $base-margin;\n }\n\n .colorpicker-swatch:nth-of-type(#{$columns + 2}n+0) {\n margin-right: 0;\n }\n}\n\n// horizontal mode (clear margin-right on nth column)\n.colorpicker-horizontal {\n .colorpicker-swatch:nth-of-type(#{$columns}n+0) {\n margin-right: 0;\n }\n\n .colorpicker-swatch:nth-of-type(#{$columns + 1}n+0) {\n margin-right: $base-margin;\n }\n\n .colorpicker-swatch:nth-of-type(#{$columns + 2}n+0) {\n margin-right: $base-margin;\n }\n}\n\n.colorpicker-swatch:last-of-type:after {\n content: \"\";\n display: table;\n clear: both;\n}\n\n// RTL writing mode support\n*[dir='rtl'] .colorpicker-element input,\n.colorpicker-element[dir='rtl'] input,\n.colorpicker-element input[dir='rtl'] {\n direction: ltr;\n text-align: right;\n}\n"]} \ No newline at end of file diff --git a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css b/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css deleted file mode 100644 index 1b93194c..00000000 --- a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4. - * @package bootstrap-colorpicker - * @version v3.2.0 - * @license MIT - * @link https://itsjavi.com/bootstrap-colorpicker/ - * @link https://github.com/itsjavi/bootstrap-colorpicker.git - */ -.colorpicker{position:relative;display:none;font-size:inherit;color:inherit;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);padding:.75rem .75rem;width:148px;border-radius:4px;-webkit-box-sizing:content-box;box-sizing:content-box}.colorpicker.colorpicker-disabled,.colorpicker.colorpicker-disabled *{cursor:default!important}.colorpicker div{position:relative}.colorpicker-popup{position:absolute;top:100%;left:0;float:left;margin-top:1px;z-index:1060}.colorpicker-popup.colorpicker-bs-popover-content{position:relative;top:auto;left:auto;float:none;margin:0;z-index:initial;border:none;padding:.25rem 0;border-radius:0;background:0 0;-webkit-box-shadow:none;box-shadow:none}.colorpicker:after,.colorpicker:before{content:"";display:table;clear:both;line-height:0}.colorpicker-clear{clear:both;display:block}.colorpicker:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2);position:absolute;top:-7px;left:auto;right:6px}.colorpicker:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:auto;right:7px}.colorpicker.colorpicker-with-alpha{width:170px}.colorpicker.colorpicker-with-alpha .colorpicker-alpha{display:block}.colorpicker-saturation{position:relative;width:126px;height:126px;background:-webkit-gradient(linear,left top,left bottom,from(transparent),to(black)),-webkit-gradient(linear,left top,right top,from(white),to(rgba(255,255,255,0)));background:linear-gradient(to bottom,transparent 0,#000 100%),linear-gradient(to right,#fff 0,rgba(255,255,255,0) 100%);cursor:crosshair;float:left;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2);margin-bottom:6px}.colorpicker-saturation .colorpicker-guide{display:block;height:6px;width:6px;border-radius:6px;border:1px solid #000;-webkit-box-shadow:0 0 0 1px rgba(255,255,255,.8);box-shadow:0 0 0 1px rgba(255,255,255,.8);position:absolute;top:0;left:0;margin:-3px 0 0 -3px}.colorpicker-alpha,.colorpicker-hue{position:relative;width:16px;height:126px;float:left;cursor:row-resize;margin-left:6px;margin-bottom:6px}.colorpicker-alpha-color{position:absolute;top:0;left:0;width:100%;height:100%}.colorpicker-alpha-color,.colorpicker-hue{-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2)}.colorpicker-alpha .colorpicker-guide,.colorpicker-hue .colorpicker-guide{display:block;height:4px;background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.4);position:absolute;top:0;left:0;margin-left:-2px;margin-top:-2px;right:-2px;z-index:1}.colorpicker-hue{background:-webkit-gradient(linear,left bottom,left top,from(red),color-stop(8%,#ff8000),color-stop(17%,#ff0),color-stop(25%,#80ff00),color-stop(33%,#0f0),color-stop(42%,#00ff80),color-stop(50%,#0ff),color-stop(58%,#0080ff),color-stop(67%,#00f),color-stop(75%,#8000ff),color-stop(83%,#ff00ff),color-stop(92%,#ff0080),to(red));background:linear-gradient(to top,red 0,#ff8000 8%,#ff0 17%,#80ff00 25%,#0f0 33%,#00ff80 42%,#0ff 50%,#0080ff 58%,#00f 67%,#8000ff 75%,#ff00ff 83%,#ff0080 92%,red 100%)}.colorpicker-alpha{background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px;display:none}.colorpicker-bar{min-height:16px;margin:6px 0 0 0;clear:both;text-align:center;font-size:10px;line-height:normal;max-width:100%;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2)}.colorpicker-bar:before{content:"";display:table;clear:both}.colorpicker-bar.colorpicker-bar-horizontal{height:126px;width:16px;margin:0 0 6px 0;float:left}.colorpicker-input-addon{position:relative}.colorpicker-input-addon i{display:inline-block;cursor:pointer;vertical-align:text-top;height:16px;width:16px;position:relative}.colorpicker-input-addon:before{content:"";position:absolute;width:16px;height:16px;display:inline-block;vertical-align:text-top;background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker.colorpicker-inline{position:relative;display:inline-block;float:none;z-index:auto;vertical-align:text-bottom}.colorpicker.colorpicker-horizontal{width:126px;height:auto}.colorpicker.colorpicker-horizontal .colorpicker-bar{width:126px}.colorpicker.colorpicker-horizontal .colorpicker-saturation{float:none;margin-bottom:0}.colorpicker.colorpicker-horizontal .colorpicker-alpha,.colorpicker.colorpicker-horizontal .colorpicker-hue{float:none;width:126px;height:16px;cursor:col-resize;margin-left:0;margin-top:6px;margin-bottom:0}.colorpicker.colorpicker-horizontal .colorpicker-alpha .colorpicker-guide,.colorpicker.colorpicker-horizontal .colorpicker-hue .colorpicker-guide{position:absolute;display:block;bottom:-2px;left:0;right:auto;height:auto;width:4px}.colorpicker.colorpicker-horizontal .colorpicker-hue{background:-webkit-gradient(linear,right top,left top,from(red),color-stop(8%,#ff8000),color-stop(17%,#ff0),color-stop(25%,#80ff00),color-stop(33%,#0f0),color-stop(42%,#00ff80),color-stop(50%,#0ff),color-stop(58%,#0080ff),color-stop(67%,#00f),color-stop(75%,#8000ff),color-stop(83%,#ff00ff),color-stop(92%,#ff0080),to(red));background:linear-gradient(to left,red 0,#ff8000 8%,#ff0 17%,#80ff00 25%,#0f0 33%,#00ff80 42%,#0ff 50%,#0080ff 58%,#00f 67%,#8000ff 75%,#ff00ff 83%,#ff0080 92%,red 100%)}.colorpicker.colorpicker-horizontal .colorpicker-alpha{background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker-inline:before,.colorpicker-no-arrow:before,.colorpicker-popup.colorpicker-bs-popover-content:before{content:none;display:none}.colorpicker-inline:after,.colorpicker-no-arrow:after,.colorpicker-popup.colorpicker-bs-popover-content:after{content:none;display:none}.colorpicker-alpha,.colorpicker-hue,.colorpicker-saturation{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.colorpicker-alpha.colorpicker-visible,.colorpicker-bar.colorpicker-visible,.colorpicker-hue.colorpicker-visible,.colorpicker-saturation.colorpicker-visible,.colorpicker.colorpicker-visible{display:block}.colorpicker-alpha.colorpicker-hidden,.colorpicker-bar.colorpicker-hidden,.colorpicker-hue.colorpicker-hidden,.colorpicker-saturation.colorpicker-hidden,.colorpicker.colorpicker-hidden{display:none}.colorpicker-inline.colorpicker-visible{display:inline-block}.colorpicker.colorpicker-disabled:after{border:none;content:'';display:block;width:100%;height:100%;background:rgba(233,236,239,.33);top:0;left:0;right:auto;z-index:2;position:absolute}.colorpicker.colorpicker-disabled .colorpicker-guide{display:none}.colorpicker-preview{background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker-preview>div{position:absolute;left:0;top:0;width:100%;height:100%}.colorpicker-bar.colorpicker-swatches{-webkit-box-shadow:none;box-shadow:none;height:auto}.colorpicker-swatches--inner{clear:both;margin-top:-6px}.colorpicker-swatch{position:relative;cursor:pointer;float:left;height:16px;width:16px;margin-right:6px;margin-top:6px;margin-left:0;display:block;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2);background:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 25%,transparent 75%,rgba(0,0,0,.1) 75%,rgba(0,0,0,.1) 0),#fff;background-size:10px 10px;background-position:0 0,5px 5px}.colorpicker-swatch--inner{position:absolute;top:0;left:0;width:100%;height:100%}.colorpicker-swatch:nth-of-type(7n+0){margin-right:0}.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(7n+0){margin-right:6px}.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(8n+0){margin-right:0}.colorpicker-horizontal .colorpicker-swatch:nth-of-type(6n+0){margin-right:0}.colorpicker-horizontal .colorpicker-swatch:nth-of-type(7n+0){margin-right:6px}.colorpicker-horizontal .colorpicker-swatch:nth-of-type(8n+0){margin-right:6px}.colorpicker-swatch:last-of-type:after{content:"";display:table;clear:both}.colorpicker-element input[dir=rtl],.colorpicker-element[dir=rtl] input,[dir=rtl] .colorpicker-element input{direction:ltr;text-align:right} -/*# sourceMappingURL=bootstrap-colorpicker.min.css.map */ diff --git a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css.map b/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css.map deleted file mode 100644 index e00c6cc9..00000000 --- a/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["bootstrap-colorpicker.css","bootstrap-colorpicker.css"],"names":[],"mappings":"AAiDA,aACE,SAAA,SACA,QAAA,KACA,UAAA,QACA,MAAA,QACA,WAAA,KACA,WAAA,KACA,iBAAA,KACA,gBAAA,YACA,OAAA,IAAA,MAAA,eAEA,QAAA,OAAA,OACA,MAAA,MACA,cAAA,IACA,mBAAA,YAAA,WAAA,YAGF,kCCjDA,oCDmDE,OAAA,kBAGF,iBACE,SAAA,SAGF,mBACE,SAAA,SACA,IAAA,KACA,KAAA,EACA,MAAA,KACA,WAAA,IACA,QAAA,KAGF,kDACE,SAAA,SACA,IAAA,KACA,KAAA,KACA,MAAA,KACA,OAAA,EACA,QAAA,QACA,OAAA,KACA,QAAA,OAAA,EACA,cAAA,EACA,WAAA,IACA,mBAAA,KAAA,WAAA,KCjDF,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AA,KAIF,mBCrDA,iBADA,wBDyDE,oBAAA,KAAA,iBAAA,KAAA,gBAAA,KAAA,YAAA,KCjDF,uCAGA,qCADA,qCADA,4CDmDA,iCAMI,QAAA,MCnDJ,sCAGA,oCADA,oCADA,2CDsDA,gCAMI,QAAA,KAIJ,wCACE,QAAA,aAGF,wCACE,OAAA,KACA,QAAA,GACA,QAAA,MACA,MAAA,KACA,OAAA,KACA,WAAA,sBACA,IAAA,EACA,KAAA,EACA,MAAA,KACA,QAAA,EACA,SAAA,SAGF,qDACE,QAAA,KAKF,qBApXE,WAAA,6GAAA,CAAA,6GAAA,CAAA,KAGA,gBAAA,KAAA,KACA,oBAAA,EAAA,CAAA,CAAA,IAAA,IAoXF,yBACE,SAAA,SACA,KAAA,EACA,IAAA,EACA,MAAA,KACA,OAAA,KAGF,sCACE,mBAAA,KAAA,WAAA,KACA,OAAA,KAGF,6BACE,MAAA,KACA,WAAA,KAGF,oBACE,SAAA,SACA,OAAA,QACA,MAAA,KACA,OAAA,KACA,MAAA,KACA,aAAA,IACA,WAAA,IACA,YAAA,EACA,QAAA,MACA,mBAAA,EAAA,EAAA,EAAA,IAAA,eAAA,WAAA,EAAA,EAAA,EAAA,IAAA,eApZA,WAAA,6GAAA,CAAA,6GAAA,CAAA,KAGA,gBAAA,KAAA,KACA,oBAAA,EAAA,CAAA,CAAA,IAAA,IAoZF,2BACE,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,KACA,OAAA,KAIF,sCACE,aAAA,EAIF,8DAEI,aAAA,IAFJ,8DAMI,aAAA,EAKJ,8DAEI,aAAA,EAFJ,8DAMI,aAAA,IANJ,8DAUI,aAAA,IAIJ,uCACE,QAAA,GACA,QAAA,MACA,MAAA,KCxEF,oCADA,oCD6EA,qCAGE,UAAA,IACA,WAAA","file":"bootstrap-colorpicker.min.css","sourcesContent":[".colorpicker {\n position: relative;\n display: none;\n font-size: inherit;\n color: inherit;\n text-align: left;\n list-style: none;\n background-color: #ffffff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n padding: .75rem .75rem;\n width: 148px;\n border-radius: 4px;\n -webkit-box-sizing: content-box;\n box-sizing: content-box; }\n\n.colorpicker.colorpicker-disabled,\n.colorpicker.colorpicker-disabled * {\n cursor: default !important; }\n\n.colorpicker div {\n position: relative; }\n\n.colorpicker-popup {\n position: absolute;\n top: 100%;\n left: 0;\n float: left;\n margin-top: 1px;\n z-index: 1060; }\n\n.colorpicker-popup.colorpicker-bs-popover-content {\n position: relative;\n top: auto;\n left: auto;\n float: none;\n margin: 0;\n z-index: initial;\n border: none;\n padding: 0.25rem 0;\n border-radius: 0;\n background: none;\n -webkit-box-shadow: none;\n box-shadow: none; }\n\n.colorpicker:before,\n.colorpicker:after {\n content: \"\";\n display: table;\n clear: both;\n line-height: 0; }\n\n.colorpicker-clear {\n clear: both;\n display: block; }\n\n.colorpicker:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #ccc;\n border-bottom-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n top: -7px;\n left: auto;\n right: 6px; }\n\n.colorpicker:after {\n content: '';\n display: inline-block;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #ffffff;\n position: absolute;\n top: -6px;\n left: auto;\n right: 7px; }\n\n.colorpicker.colorpicker-with-alpha {\n width: 170px; }\n\n.colorpicker.colorpicker-with-alpha .colorpicker-alpha {\n display: block; }\n\n.colorpicker-saturation {\n position: relative;\n width: 126px;\n height: 126px;\n /* FF3.6+ */\n /* Chrome,Safari4+ */\n /* Chrome10+,Safari5.1+ */\n /* Opera 11.10+ */\n /* IE10+ */\n background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(black)), -webkit-gradient(linear, left top, right top, from(white), to(rgba(255, 255, 255, 0)));\n background: linear-gradient(to bottom, transparent 0%, black 100%), linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);\n /* W3C */\n cursor: crosshair;\n float: left;\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n margin-bottom: 6px; }\n .colorpicker-saturation .colorpicker-guide {\n display: block;\n height: 6px;\n width: 6px;\n border-radius: 6px;\n border: 1px solid #000;\n -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);\n box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);\n position: absolute;\n top: 0;\n left: 0;\n margin: -3px 0 0 -3px; }\n\n.colorpicker-hue,\n.colorpicker-alpha {\n position: relative;\n width: 16px;\n height: 126px;\n float: left;\n cursor: row-resize;\n margin-left: 6px;\n margin-bottom: 6px; }\n\n.colorpicker-alpha-color {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n\n.colorpicker-hue,\n.colorpicker-alpha-color {\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }\n\n.colorpicker-hue .colorpicker-guide,\n.colorpicker-alpha .colorpicker-guide {\n display: block;\n height: 4px;\n background: rgba(255, 255, 255, 0.8);\n border: 1px solid rgba(0, 0, 0, 0.4);\n position: absolute;\n top: 0;\n left: 0;\n margin-left: -2px;\n margin-top: -2px;\n right: -2px;\n z-index: 1; }\n\n.colorpicker-hue {\n /* FF3.6+ */\n /* Chrome,Safari4+ */\n /* Chrome10+,Safari5.1+ */\n /* Opera 11.10+ */\n /* IE10+ */\n background: -webkit-gradient(linear, left bottom, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red));\n background: linear-gradient(to top, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%);\n /* W3C */ }\n\n.colorpicker-alpha {\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px;\n display: none; }\n\n.colorpicker-bar {\n min-height: 16px;\n margin: 6px 0 0 0;\n clear: both;\n text-align: center;\n font-size: 10px;\n line-height: normal;\n max-width: 100%;\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }\n .colorpicker-bar:before {\n content: \"\";\n display: table;\n clear: both; }\n\n.colorpicker-bar.colorpicker-bar-horizontal {\n height: 126px;\n width: 16px;\n margin: 0 0 6px 0;\n float: left; }\n\n.colorpicker-input-addon {\n position: relative; }\n\n.colorpicker-input-addon i {\n display: inline-block;\n cursor: pointer;\n vertical-align: text-top;\n height: 16px;\n width: 16px;\n position: relative; }\n\n.colorpicker-input-addon:before {\n content: \"\";\n position: absolute;\n width: 16px;\n height: 16px;\n display: inline-block;\n vertical-align: text-top;\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker.colorpicker-inline {\n position: relative;\n display: inline-block;\n float: none;\n z-index: auto;\n vertical-align: text-bottom; }\n\n.colorpicker.colorpicker-horizontal {\n width: 126px;\n height: auto; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-bar {\n width: 126px; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-saturation {\n float: none;\n margin-bottom: 0; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue,\n.colorpicker.colorpicker-horizontal .colorpicker-alpha {\n float: none;\n width: 126px;\n height: 16px;\n cursor: col-resize;\n margin-left: 0;\n margin-top: 6px;\n margin-bottom: 0; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue .colorpicker-guide,\n.colorpicker.colorpicker-horizontal .colorpicker-alpha .colorpicker-guide {\n position: absolute;\n display: block;\n bottom: -2px;\n left: 0;\n right: auto;\n height: auto;\n width: 4px; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue {\n /* FF3.6+ */\n /* Chrome,Safari4+ */\n /* Chrome10+,Safari5.1+ */\n /* Opera 11.10+ */\n /* IE10+ */\n background: -webkit-gradient(linear, right top, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red));\n background: linear-gradient(to left, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%);\n /* W3C */ }\n\n.colorpicker.colorpicker-horizontal .colorpicker-alpha {\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker-inline:before,\n.colorpicker-no-arrow:before,\n.colorpicker-popup.colorpicker-bs-popover-content:before {\n content: none;\n display: none; }\n\n.colorpicker-inline:after,\n.colorpicker-no-arrow:after,\n.colorpicker-popup.colorpicker-bs-popover-content:after {\n content: none;\n display: none; }\n\n.colorpicker-alpha,\n.colorpicker-saturation,\n.colorpicker-hue {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n\n.colorpicker.colorpicker-visible,\n.colorpicker-alpha.colorpicker-visible,\n.colorpicker-saturation.colorpicker-visible,\n.colorpicker-hue.colorpicker-visible,\n.colorpicker-bar.colorpicker-visible {\n display: block; }\n\n.colorpicker.colorpicker-hidden,\n.colorpicker-alpha.colorpicker-hidden,\n.colorpicker-saturation.colorpicker-hidden,\n.colorpicker-hue.colorpicker-hidden,\n.colorpicker-bar.colorpicker-hidden {\n display: none; }\n\n.colorpicker-inline.colorpicker-visible {\n display: inline-block; }\n\n.colorpicker.colorpicker-disabled:after {\n border: none;\n content: '';\n display: block;\n width: 100%;\n height: 100%;\n background: rgba(233, 236, 239, 0.33);\n top: 0;\n left: 0;\n right: auto;\n z-index: 2;\n position: absolute; }\n\n.colorpicker.colorpicker-disabled .colorpicker-guide {\n display: none; }\n\n/** EXTENSIONS **/\n.colorpicker-preview {\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker-preview > div {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%; }\n\n.colorpicker-bar.colorpicker-swatches {\n -webkit-box-shadow: none;\n box-shadow: none;\n height: auto; }\n\n.colorpicker-swatches--inner {\n clear: both;\n margin-top: -6px; }\n\n.colorpicker-swatch {\n position: relative;\n cursor: pointer;\n float: left;\n height: 16px;\n width: 16px;\n margin-right: 6px;\n margin-top: 6px;\n margin-left: 0;\n display: block;\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker-swatch--inner {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n\n.colorpicker-swatch:nth-of-type(7n+0) {\n margin-right: 0; }\n\n.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(7n+0) {\n margin-right: 6px; }\n\n.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(8n+0) {\n margin-right: 0; }\n\n.colorpicker-horizontal .colorpicker-swatch:nth-of-type(6n+0) {\n margin-right: 0; }\n\n.colorpicker-horizontal .colorpicker-swatch:nth-of-type(7n+0) {\n margin-right: 6px; }\n\n.colorpicker-horizontal .colorpicker-swatch:nth-of-type(8n+0) {\n margin-right: 6px; }\n\n.colorpicker-swatch:last-of-type:after {\n content: \"\";\n display: table;\n clear: both; }\n\n*[dir='rtl'] .colorpicker-element input,\n.colorpicker-element[dir='rtl'] input,\n.colorpicker-element input[dir='rtl'] {\n direction: ltr;\n text-align: right; }\n\n/*# sourceMappingURL=bootstrap-colorpicker.css.map */\n",".colorpicker {\n position: relative;\n display: none;\n font-size: inherit;\n color: inherit;\n text-align: left;\n list-style: none;\n background-color: #ffffff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 0, 0, 0.2);\n padding: .75rem .75rem;\n width: 148px;\n border-radius: 4px;\n -webkit-box-sizing: content-box;\n box-sizing: content-box; }\n\n.colorpicker.colorpicker-disabled,\n.colorpicker.colorpicker-disabled * {\n cursor: default !important; }\n\n.colorpicker div {\n position: relative; }\n\n.colorpicker-popup {\n position: absolute;\n top: 100%;\n left: 0;\n float: left;\n margin-top: 1px;\n z-index: 1060; }\n\n.colorpicker-popup.colorpicker-bs-popover-content {\n position: relative;\n top: auto;\n left: auto;\n float: none;\n margin: 0;\n z-index: initial;\n border: none;\n padding: 0.25rem 0;\n border-radius: 0;\n background: none;\n -webkit-box-shadow: none;\n box-shadow: none; }\n\n.colorpicker:before,\n.colorpicker:after {\n content: \"\";\n display: table;\n clear: both;\n line-height: 0; }\n\n.colorpicker-clear {\n clear: both;\n display: block; }\n\n.colorpicker:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 7px solid #ccc;\n border-bottom-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n top: -7px;\n left: auto;\n right: 6px; }\n\n.colorpicker:after {\n content: '';\n display: inline-block;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #ffffff;\n position: absolute;\n top: -6px;\n left: auto;\n right: 7px; }\n\n.colorpicker.colorpicker-with-alpha {\n width: 170px; }\n\n.colorpicker.colorpicker-with-alpha .colorpicker-alpha {\n display: block; }\n\n.colorpicker-saturation {\n position: relative;\n width: 126px;\n height: 126px;\n /* FF3.6+ */\n /* Chrome,Safari4+ */\n /* Chrome10+,Safari5.1+ */\n /* Opera 11.10+ */\n /* IE10+ */\n background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(black)), -webkit-gradient(linear, left top, right top, from(white), to(rgba(255, 255, 255, 0)));\n background: linear-gradient(to bottom, transparent 0%, black 100%), linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);\n /* W3C */\n cursor: crosshair;\n float: left;\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n margin-bottom: 6px; }\n .colorpicker-saturation .colorpicker-guide {\n display: block;\n height: 6px;\n width: 6px;\n border-radius: 6px;\n border: 1px solid #000;\n -webkit-box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);\n box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);\n position: absolute;\n top: 0;\n left: 0;\n margin: -3px 0 0 -3px; }\n\n.colorpicker-hue,\n.colorpicker-alpha {\n position: relative;\n width: 16px;\n height: 126px;\n float: left;\n cursor: row-resize;\n margin-left: 6px;\n margin-bottom: 6px; }\n\n.colorpicker-alpha-color {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n\n.colorpicker-hue,\n.colorpicker-alpha-color {\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }\n\n.colorpicker-hue .colorpicker-guide,\n.colorpicker-alpha .colorpicker-guide {\n display: block;\n height: 4px;\n background: rgba(255, 255, 255, 0.8);\n border: 1px solid rgba(0, 0, 0, 0.4);\n position: absolute;\n top: 0;\n left: 0;\n margin-left: -2px;\n margin-top: -2px;\n right: -2px;\n z-index: 1; }\n\n.colorpicker-hue {\n /* FF3.6+ */\n /* Chrome,Safari4+ */\n /* Chrome10+,Safari5.1+ */\n /* Opera 11.10+ */\n /* IE10+ */\n background: -webkit-gradient(linear, left bottom, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red));\n background: linear-gradient(to top, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%);\n /* W3C */ }\n\n.colorpicker-alpha {\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px;\n display: none; }\n\n.colorpicker-bar {\n min-height: 16px;\n margin: 6px 0 0 0;\n clear: both;\n text-align: center;\n font-size: 10px;\n line-height: normal;\n max-width: 100%;\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }\n .colorpicker-bar:before {\n content: \"\";\n display: table;\n clear: both; }\n\n.colorpicker-bar.colorpicker-bar-horizontal {\n height: 126px;\n width: 16px;\n margin: 0 0 6px 0;\n float: left; }\n\n.colorpicker-input-addon {\n position: relative; }\n\n.colorpicker-input-addon i {\n display: inline-block;\n cursor: pointer;\n vertical-align: text-top;\n height: 16px;\n width: 16px;\n position: relative; }\n\n.colorpicker-input-addon:before {\n content: \"\";\n position: absolute;\n width: 16px;\n height: 16px;\n display: inline-block;\n vertical-align: text-top;\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker.colorpicker-inline {\n position: relative;\n display: inline-block;\n float: none;\n z-index: auto;\n vertical-align: text-bottom; }\n\n.colorpicker.colorpicker-horizontal {\n width: 126px;\n height: auto; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-bar {\n width: 126px; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-saturation {\n float: none;\n margin-bottom: 0; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue,\n.colorpicker.colorpicker-horizontal .colorpicker-alpha {\n float: none;\n width: 126px;\n height: 16px;\n cursor: col-resize;\n margin-left: 0;\n margin-top: 6px;\n margin-bottom: 0; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue .colorpicker-guide,\n.colorpicker.colorpicker-horizontal .colorpicker-alpha .colorpicker-guide {\n position: absolute;\n display: block;\n bottom: -2px;\n left: 0;\n right: auto;\n height: auto;\n width: 4px; }\n\n.colorpicker.colorpicker-horizontal .colorpicker-hue {\n /* FF3.6+ */\n /* Chrome,Safari4+ */\n /* Chrome10+,Safari5.1+ */\n /* Opera 11.10+ */\n /* IE10+ */\n background: -webkit-gradient(linear, right top, left top, from(red), color-stop(8%, #ff8000), color-stop(17%, yellow), color-stop(25%, #80ff00), color-stop(33%, lime), color-stop(42%, #00ff80), color-stop(50%, cyan), color-stop(58%, #0080ff), color-stop(67%, blue), color-stop(75%, #8000ff), color-stop(83%, magenta), color-stop(92%, #ff0080), to(red));\n background: linear-gradient(to left, red 0%, #ff8000 8%, yellow 17%, #80ff00 25%, lime 33%, #00ff80 42%, cyan 50%, #0080ff 58%, blue 67%, #8000ff 75%, magenta 83%, #ff0080 92%, red 100%);\n /* W3C */ }\n\n.colorpicker.colorpicker-horizontal .colorpicker-alpha {\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker-inline:before,\n.colorpicker-no-arrow:before,\n.colorpicker-popup.colorpicker-bs-popover-content:before {\n content: none;\n display: none; }\n\n.colorpicker-inline:after,\n.colorpicker-no-arrow:after,\n.colorpicker-popup.colorpicker-bs-popover-content:after {\n content: none;\n display: none; }\n\n.colorpicker-alpha,\n.colorpicker-saturation,\n.colorpicker-hue {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n\n.colorpicker.colorpicker-visible,\n.colorpicker-alpha.colorpicker-visible,\n.colorpicker-saturation.colorpicker-visible,\n.colorpicker-hue.colorpicker-visible,\n.colorpicker-bar.colorpicker-visible {\n display: block; }\n\n.colorpicker.colorpicker-hidden,\n.colorpicker-alpha.colorpicker-hidden,\n.colorpicker-saturation.colorpicker-hidden,\n.colorpicker-hue.colorpicker-hidden,\n.colorpicker-bar.colorpicker-hidden {\n display: none; }\n\n.colorpicker-inline.colorpicker-visible {\n display: inline-block; }\n\n.colorpicker.colorpicker-disabled:after {\n border: none;\n content: '';\n display: block;\n width: 100%;\n height: 100%;\n background: rgba(233, 236, 239, 0.33);\n top: 0;\n left: 0;\n right: auto;\n z-index: 2;\n position: absolute; }\n\n.colorpicker.colorpicker-disabled .colorpicker-guide {\n display: none; }\n\n/** EXTENSIONS **/\n.colorpicker-preview {\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker-preview > div {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%; }\n\n.colorpicker-bar.colorpicker-swatches {\n -webkit-box-shadow: none;\n box-shadow: none;\n height: auto; }\n\n.colorpicker-swatches--inner {\n clear: both;\n margin-top: -6px; }\n\n.colorpicker-swatch {\n position: relative;\n cursor: pointer;\n float: left;\n height: 16px;\n width: 16px;\n margin-right: 6px;\n margin-top: 6px;\n margin-left: 0;\n display: block;\n -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);\n background: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.1) 0), white;\n background-size: 10px 10px;\n background-position: 0 0, 5px 5px; }\n\n.colorpicker-swatch--inner {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n\n.colorpicker-swatch:nth-of-type(7n+0) {\n margin-right: 0; }\n\n.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(7n+0) {\n margin-right: 6px; }\n\n.colorpicker-with-alpha .colorpicker-swatch:nth-of-type(8n+0) {\n margin-right: 0; }\n\n.colorpicker-horizontal .colorpicker-swatch:nth-of-type(6n+0) {\n margin-right: 0; }\n\n.colorpicker-horizontal .colorpicker-swatch:nth-of-type(7n+0) {\n margin-right: 6px; }\n\n.colorpicker-horizontal .colorpicker-swatch:nth-of-type(8n+0) {\n margin-right: 6px; }\n\n.colorpicker-swatch:last-of-type:after {\n content: \"\";\n display: table;\n clear: both; }\n\n*[dir='rtl'] .colorpicker-element input,\n.colorpicker-element[dir='rtl'] input,\n.colorpicker-element input[dir='rtl'] {\n direction: ltr;\n text-align: right; }\n\n/*# sourceMappingURL=bootstrap-colorpicker.css.map */\n"]} \ No newline at end of file diff --git a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js b/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js deleted file mode 100644 index 4df84320..00000000 --- a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js +++ /dev/null @@ -1,6252 +0,0 @@ -/*! - * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4. - * @package bootstrap-colorpicker - * @version v3.2.0 - * @license MIT - * @link https://itsjavi.com/bootstrap-colorpicker/ - * @link https://github.com/itsjavi/bootstrap-colorpicker.git - */ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("jquery")); - else if(typeof define === 'function' && define.amd) - define("bootstrap-colorpicker", ["jquery"], factory); - else if(typeof exports === 'object') - exports["bootstrap-colorpicker"] = factory(require("jquery")); - else - root["bootstrap-colorpicker"] = factory(root["jQuery"]); -})(window, function(__WEBPACK_EXTERNAL_MODULE__0__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 7); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = __WEBPACK_EXTERNAL_MODULE__0__; - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Colorpicker extension class. - */ -var Extension = function () { - /** - * @param {Colorpicker} colorpicker - * @param {Object} options - */ - function Extension(colorpicker) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Extension); - - /** - * The colorpicker instance - * @type {Colorpicker} - */ - this.colorpicker = colorpicker; - /** - * Extension options - * - * @type {Object} - */ - this.options = options; - - if (!(this.colorpicker.element && this.colorpicker.element.length)) { - throw new Error('Extension: this.colorpicker.element is not valid'); - } - - this.colorpicker.element.on('colorpickerCreate.colorpicker-ext', _jquery2.default.proxy(this.onCreate, this)); - this.colorpicker.element.on('colorpickerDestroy.colorpicker-ext', _jquery2.default.proxy(this.onDestroy, this)); - this.colorpicker.element.on('colorpickerUpdate.colorpicker-ext', _jquery2.default.proxy(this.onUpdate, this)); - this.colorpicker.element.on('colorpickerChange.colorpicker-ext', _jquery2.default.proxy(this.onChange, this)); - this.colorpicker.element.on('colorpickerInvalid.colorpicker-ext', _jquery2.default.proxy(this.onInvalid, this)); - this.colorpicker.element.on('colorpickerShow.colorpicker-ext', _jquery2.default.proxy(this.onShow, this)); - this.colorpicker.element.on('colorpickerHide.colorpicker-ext', _jquery2.default.proxy(this.onHide, this)); - this.colorpicker.element.on('colorpickerEnable.colorpicker-ext', _jquery2.default.proxy(this.onEnable, this)); - this.colorpicker.element.on('colorpickerDisable.colorpicker-ext', _jquery2.default.proxy(this.onDisable, this)); - } - - /** - * Function called every time a new color needs to be created. - * Return false to skip this resolver and continue with other extensions' ones - * or return anything else to consider the color resolved. - * - * @param {ColorItem|String|*} color - * @param {boolean} realColor if true, the color should resolve into a real (not named) color code - * @return {ColorItem|String|*} - */ - - - _createClass(Extension, [{ - key: 'resolveColor', - value: function resolveColor(color) { - var realColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - return false; - } - - /** - * Method called after the colorpicker is created - * - * @listens Colorpicker#colorpickerCreate - * @param {Event} event - */ - - }, { - key: 'onCreate', - value: function onCreate(event) {} - // to be extended - - - /** - * Method called after the colorpicker is destroyed - * - * @listens Colorpicker#colorpickerDestroy - * @param {Event} event - */ - - }, { - key: 'onDestroy', - value: function onDestroy(event) { - this.colorpicker.element.off('.colorpicker-ext'); - } - - /** - * Method called after the colorpicker is updated - * - * @listens Colorpicker#colorpickerUpdate - * @param {Event} event - */ - - }, { - key: 'onUpdate', - value: function onUpdate(event) {} - // to be extended - - - /** - * Method called after the colorpicker color is changed - * - * @listens Colorpicker#colorpickerChange - * @param {Event} event - */ - - }, { - key: 'onChange', - value: function onChange(event) {} - // to be extended - - - /** - * Method called when the colorpicker color is invalid - * - * @listens Colorpicker#colorpickerInvalid - * @param {Event} event - */ - - }, { - key: 'onInvalid', - value: function onInvalid(event) {} - // to be extended - - - /** - * Method called after the colorpicker is hidden - * - * @listens Colorpicker#colorpickerHide - * @param {Event} event - */ - - }, { - key: 'onHide', - value: function onHide(event) {} - // to be extended - - - /** - * Method called after the colorpicker is shown - * - * @listens Colorpicker#colorpickerShow - * @param {Event} event - */ - - }, { - key: 'onShow', - value: function onShow(event) {} - // to be extended - - - /** - * Method called after the colorpicker is disabled - * - * @listens Colorpicker#colorpickerDisable - * @param {Event} event - */ - - }, { - key: 'onDisable', - value: function onDisable(event) {} - // to be extended - - - /** - * Method called after the colorpicker is enabled - * - * @listens Colorpicker#colorpickerEnable - * @param {Event} event - */ - - }, { - key: 'onEnable', - value: function onEnable(event) { - // to be extended - } - }]); - - return Extension; -}(); - -exports.default = Extension; -module.exports = exports.default; - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.ColorItem = exports.HSVAColor = undefined; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); /** - * Color manipulation class, specific for Bootstrap Colorpicker - */ - - -var _color = __webpack_require__(16); - -var _color2 = _interopRequireDefault(_color); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * HSVA color data class, containing the hue, saturation, value and alpha - * information. - */ -var HSVAColor = function () { - /** - * @param {number|int} h - * @param {number|int} s - * @param {number|int} v - * @param {number|int} a - */ - function HSVAColor(h, s, v, a) { - _classCallCheck(this, HSVAColor); - - this.h = isNaN(h) ? 0 : h; - this.s = isNaN(s) ? 0 : s; - this.v = isNaN(v) ? 0 : v; - this.a = isNaN(h) ? 1 : a; - } - - _createClass(HSVAColor, [{ - key: 'toString', - value: function toString() { - return this.h + ', ' + this.s + '%, ' + this.v + '%, ' + this.a; - } - }]); - - return HSVAColor; -}(); - -/** - * HSVA color manipulation - */ - - -var ColorItem = function () { - _createClass(ColorItem, [{ - key: 'api', - - - /** - * Applies a method of the QixColor API and returns a new Color object or - * the return value of the method call. - * - * If no argument is provided, the internal QixColor object is returned. - * - * @param {String} fn QixColor function name - * @param args QixColor function arguments - * @example let darkerColor = color.api('darken', 0.25); - * @example let luminosity = color.api('luminosity'); - * @example color = color.api('negate'); - * @example let qColor = color.api().negate(); - * @returns {ColorItem|QixColor|*} - */ - value: function api(fn) { - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - if (arguments.length === 0) { - return this._color; - } - - var result = this._color[fn].apply(this._color, args); - - if (!(result instanceof _color2.default)) { - // return result of the method call - return result; - } - - return new ColorItem(result, this.format); - } - - /** - * Returns the original ColorItem constructor data, - * plus a 'valid' flag to know if it's valid or not. - * - * @returns {{color: *, format: String, valid: boolean}} - */ - - }, { - key: 'original', - get: function get() { - return this._original; - } - - /** - * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data - * @param {String|null} format Color model to convert to by default. Supported: 'rgb', 'hsl', 'hex'. - */ - - }], [{ - key: 'HSVAColor', - - - /** - * Returns the HSVAColor class - * - * @static - * @example let colorData = new ColorItem.HSVAColor(360, 100, 100, 1); - * @returns {HSVAColor} - */ - get: function get() { - return HSVAColor; - } - }]); - - function ColorItem() { - var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - - _classCallCheck(this, ColorItem); - - this.replace(color, format); - } - - /** - * Replaces the internal QixColor object with a new one. - * This also replaces the internal original color data. - * - * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data to be parsed (if needed) - * @param {String|null} format Color model to convert to by default. Supported: 'rgb', 'hsl', 'hex'. - * @example color.replace('rgb(255,0,0)', 'hsl'); - * @example color.replace(hsvaColorData); - */ - - - _createClass(ColorItem, [{ - key: 'replace', - value: function replace(color) { - var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - - format = ColorItem.sanitizeFormat(format); - - /** - * @type {{color: *, format: String}} - * @private - */ - this._original = { - color: color, - format: format, - valid: true - }; - /** - * @type {QixColor} - * @private - */ - this._color = ColorItem.parse(color); - - if (this._color === null) { - this._color = (0, _color2.default)(); - this._original.valid = false; - return; - } - - /** - * @type {*|string} - * @private - */ - this._format = format ? format : ColorItem.isHex(color) ? 'hex' : this._color.model; - } - - /** - * Parses the color returning a Qix Color object or null if cannot be - * parsed. - * - * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data - * @example let qColor = ColorItem.parse('rgb(255,0,0)'); - * @static - * @returns {QixColor|null} - */ - - }, { - key: 'isValid', - - - /** - * Returns true if the color is valid, false if not. - * - * @returns {boolean} - */ - value: function isValid() { - return this._original.valid === true; - } - - /** - * Hue value from 0 to 360 - * - * @returns {int} - */ - - }, { - key: 'setHueRatio', - - - /** - * Sets the hue ratio, where 1.0 is 0, 0.5 is 180 and 0.0 is 360. - * - * @ignore - * @param {number} h Ratio from 1.0 to 0.0 - */ - value: function setHueRatio(h) { - this.hue = (1 - h) * 360; - } - - /** - * Sets the saturation value - * - * @param {int} value Integer from 0 to 100 - */ - - }, { - key: 'setSaturationRatio', - - - /** - * Sets the saturation ratio, where 1.0 is 100 and 0.0 is 0. - * - * @ignore - * @param {number} s Ratio from 0.0 to 1.0 - */ - value: function setSaturationRatio(s) { - this.saturation = s * 100; - } - - /** - * Sets the 'value' channel value - * - * @param {int} value Integer from 0 to 100 - */ - - }, { - key: 'setValueRatio', - - - /** - * Sets the value ratio, where 1.0 is 0 and 0.0 is 100. - * - * @ignore - * @param {number} v Ratio from 1.0 to 0.0 - */ - value: function setValueRatio(v) { - this.value = (1 - v) * 100; - } - - /** - * Sets the alpha value. It will be rounded to 2 decimals. - * - * @param {int} value Float from 0.0 to 1.0 - */ - - }, { - key: 'setAlphaRatio', - - - /** - * Sets the alpha ratio, where 1.0 is 0.0 and 0.0 is 1.0. - * - * @ignore - * @param {number} a Ratio from 1.0 to 0.0 - */ - value: function setAlphaRatio(a) { - this.alpha = 1 - a; - } - - /** - * Sets the default color format - * - * @param {String} value Supported: 'rgb', 'hsl', 'hex' - */ - - }, { - key: 'isDesaturated', - - - /** - * Returns true if the saturation value is zero, false otherwise - * - * @returns {boolean} - */ - value: function isDesaturated() { - return this.saturation === 0; - } - - /** - * Returns true if the alpha value is zero, false otherwise - * - * @returns {boolean} - */ - - }, { - key: 'isTransparent', - value: function isTransparent() { - return this.alpha === 0; - } - - /** - * Returns true if the alpha value is numeric and less than 1, false otherwise - * - * @returns {boolean} - */ - - }, { - key: 'hasTransparency', - value: function hasTransparency() { - return this.hasAlpha() && this.alpha < 1; - } - - /** - * Returns true if the alpha value is numeric, false otherwise - * - * @returns {boolean} - */ - - }, { - key: 'hasAlpha', - value: function hasAlpha() { - return !isNaN(this.alpha); - } - - /** - * Returns a new HSVAColor object, based on the current color - * - * @returns {HSVAColor} - */ - - }, { - key: 'toObject', - value: function toObject() { - return new HSVAColor(this.hue, this.saturation, this.value, this.alpha); - } - - /** - * Alias of toObject() - * - * @returns {HSVAColor} - */ - - }, { - key: 'toHsva', - value: function toHsva() { - return this.toObject(); - } - - /** - * Returns a new HSVAColor object with the ratio values (from 0.0 to 1.0), - * based on the current color. - * - * @ignore - * @returns {HSVAColor} - */ - - }, { - key: 'toHsvaRatio', - value: function toHsvaRatio() { - return new HSVAColor(this.hue / 360, this.saturation / 100, this.value / 100, this.alpha); - } - - /** - * Converts the current color to its string representation, - * using the internal format of this instance. - * - * @returns {String} - */ - - }, { - key: 'toString', - value: function toString() { - return this.string(); - } - - /** - * Converts the current color to its string representation, - * using the given format. - * - * @param {String|null} format Format to convert to. If empty or null, the internal format will be used. - * @returns {String} - */ - - }, { - key: 'string', - value: function string() { - var format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - - format = ColorItem.sanitizeFormat(format ? format : this.format); - - if (!format) { - return this._color.round().string(); - } - - if (this._color[format] === undefined) { - throw new Error('Unsupported color format: \'' + format + '\''); - } - - var str = this._color[format](); - - return str.round ? str.round().string() : str; - } - - /** - * Returns true if the given color values equals this one, false otherwise. - * The format is not compared. - * If any of the colors is invalid, the result will be false. - * - * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data - * - * @returns {boolean} - */ - - }, { - key: 'equals', - value: function equals(color) { - color = color instanceof ColorItem ? color : new ColorItem(color); - - if (!color.isValid() || !this.isValid()) { - return false; - } - - return this.hue === color.hue && this.saturation === color.saturation && this.value === color.value && this.alpha === color.alpha; - } - - /** - * Creates a copy of this instance - * - * @returns {ColorItem} - */ - - }, { - key: 'getClone', - value: function getClone() { - return new ColorItem(this._color, this.format); - } - - /** - * Creates a copy of this instance, only copying the hue value, - * and setting the others to its max value. - * - * @returns {ColorItem} - */ - - }, { - key: 'getCloneHueOnly', - value: function getCloneHueOnly() { - return new ColorItem([this.hue, 100, 100, 1], this.format); - } - - /** - * Creates a copy of this instance setting the alpha to the max. - * - * @returns {ColorItem} - */ - - }, { - key: 'getCloneOpaque', - value: function getCloneOpaque() { - return new ColorItem(this._color.alpha(1), this.format); - } - - /** - * Converts the color to a RGB string - * - * @returns {String} - */ - - }, { - key: 'toRgbString', - value: function toRgbString() { - return this.string('rgb'); - } - - /** - * Converts the color to a Hexadecimal string - * - * @returns {String} - */ - - }, { - key: 'toHexString', - value: function toHexString() { - return this.string('hex'); - } - - /** - * Converts the color to a HSL string - * - * @returns {String} - */ - - }, { - key: 'toHslString', - value: function toHslString() { - return this.string('hsl'); - } - - /** - * Returns true if the color is dark, false otherwhise. - * This is useful to decide a text color. - * - * @returns {boolean} - */ - - }, { - key: 'isDark', - value: function isDark() { - return this._color.isDark(); - } - - /** - * Returns true if the color is light, false otherwhise. - * This is useful to decide a text color. - * - * @returns {boolean} - */ - - }, { - key: 'isLight', - value: function isLight() { - return this._color.isLight(); - } - - /** - * Generates a list of colors using the given hue-based formula or the given array of hue values. - * Hue formulas can be extended using ColorItem.colorFormulas static property. - * - * @param {String|Number[]} formula Examples: 'complementary', 'triad', 'tetrad', 'splitcomplement', [180, 270] - * @example let colors = color.generate('triad'); - * @example let colors = color.generate([45, 80, 112, 200]); - * @returns {ColorItem[]} - */ - - }, { - key: 'generate', - value: function generate(formula) { - var hues = []; - - if (Array.isArray(formula)) { - hues = formula; - } else if (!ColorItem.colorFormulas.hasOwnProperty(formula)) { - throw new Error('No color formula found with the name \'' + formula + '\'.'); - } else { - hues = ColorItem.colorFormulas[formula]; - } - - var colors = [], - mainColor = this._color, - format = this.format; - - hues.forEach(function (hue) { - var levels = [hue ? (mainColor.hue() + hue) % 360 : mainColor.hue(), mainColor.saturationv(), mainColor.value(), mainColor.alpha()]; - - colors.push(new ColorItem(levels, format)); - }); - - return colors; - } - }, { - key: 'hue', - get: function get() { - return this._color.hue(); - } - - /** - * Saturation value from 0 to 100 - * - * @returns {int} - */ - , - - - /** - * Sets the hue value - * - * @param {int} value Integer from 0 to 360 - */ - set: function set(value) { - this._color = this._color.hue(value); - } - }, { - key: 'saturation', - get: function get() { - return this._color.saturationv(); - } - - /** - * Value channel value from 0 to 100 - * - * @returns {int} - */ - , - set: function set(value) { - this._color = this._color.saturationv(value); - } - }, { - key: 'value', - get: function get() { - return this._color.value(); - } - - /** - * Alpha value from 0.0 to 1.0 - * - * @returns {number} - */ - , - set: function set(value) { - this._color = this._color.value(value); - } - }, { - key: 'alpha', - get: function get() { - var a = this._color.alpha(); - - return isNaN(a) ? 1 : a; - } - - /** - * Default color format to convert to when calling toString() or string() - * - * @returns {String} 'rgb', 'hsl', 'hex' or '' - */ - , - set: function set(value) { - // 2 decimals max - this._color = this._color.alpha(Math.round(value * 100) / 100); - } - }, { - key: 'format', - get: function get() { - return this._format ? this._format : this._color.model; - }, - set: function set(value) { - this._format = ColorItem.sanitizeFormat(value); - } - }], [{ - key: 'parse', - value: function parse(color) { - if (color instanceof _color2.default) { - return color; - } - - if (color instanceof ColorItem) { - return color._color; - } - - var format = null; - - if (color instanceof HSVAColor) { - color = [color.h, color.s, color.v, isNaN(color.a) ? 1 : color.a]; - } else { - color = ColorItem.sanitizeString(color); - } - - if (color === null) { - return null; - } - - if (Array.isArray(color)) { - format = 'hsv'; - } - - try { - return (0, _color2.default)(color, format); - } catch (e) { - return null; - } - } - - /** - * Sanitizes a color string, adding missing hash to hexadecimal colors - * and converting 'transparent' to a color code. - * - * @param {String|*} str Color string - * @example let colorStr = ColorItem.sanitizeString('ffaa00'); - * @static - * @returns {String|*} - */ - - }, { - key: 'sanitizeString', - value: function sanitizeString(str) { - if (!(typeof str === 'string' || str instanceof String)) { - return str; - } - - if (str.match(/^[0-9a-f]{2,}$/i)) { - return '#' + str; - } - - if (str.toLowerCase() === 'transparent') { - return '#FFFFFF00'; - } - - return str; - } - - /** - * Detects if a value is a string and a color in hexadecimal format (in any variant). - * - * @param {String} str - * @example ColorItem.isHex('rgba(0,0,0)'); // false - * @example ColorItem.isHex('ffaa00'); // true - * @example ColorItem.isHex('#ffaa00'); // true - * @static - * @returns {boolean} - */ - - }, { - key: 'isHex', - value: function isHex(str) { - if (!(typeof str === 'string' || str instanceof String)) { - return false; - } - - return !!str.match(/^#?[0-9a-f]{2,}$/i); - } - - /** - * Sanitizes a color format to one supported by web browsers. - * Returns an empty string of the format can't be recognised. - * - * @param {String|*} format - * @example ColorItem.sanitizeFormat('rgba'); // 'rgb' - * @example ColorItem.isHex('hex8'); // 'hex' - * @example ColorItem.isHex('invalid'); // '' - * @static - * @returns {String} 'rgb', 'hsl', 'hex' or ''. - */ - - }, { - key: 'sanitizeFormat', - value: function sanitizeFormat(format) { - switch (format) { - case 'hex': - case 'hex3': - case 'hex4': - case 'hex6': - case 'hex8': - return 'hex'; - case 'rgb': - case 'rgba': - case 'keyword': - case 'name': - return 'rgb'; - case 'hsl': - case 'hsla': - case 'hsv': - case 'hsva': - case 'hwb': // HWB this is supported by Qix Color, but not by browsers - case 'hwba': - return 'hsl'; - default: - return ''; - } - } - }]); - - return ColorItem; -}(); - -/** - * List of hue-based color formulas used by ColorItem.prototype.generate() - * - * @static - * @type {{complementary: number[], triad: number[], tetrad: number[], splitcomplement: number[]}} - */ - - -ColorItem.colorFormulas = { - complementary: [180], - triad: [0, 120, 240], - tetrad: [0, 90, 180, 270], - splitcomplement: [0, 72, 216] -}; - -exports.default = ColorItem; -exports.HSVAColor = HSVAColor; -exports.ColorItem = ColorItem; - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -/** - * @module - */ - -// adjust these values accordingly to the sass vars - -Object.defineProperty(exports, "__esModule", { - value: true -}); -var sassVars = { - 'bar_size_short': 16, - 'base_margin': 6, - 'columns': 6 -}; - -var sliderSize = sassVars.bar_size_short * sassVars.columns + sassVars.base_margin * (sassVars.columns - 1); - -/** - * Colorpicker default options - */ -exports.default = { - /** - * Custom class to be added to the `.colorpicker-element` element - * - * @type {String|null} - * @default null - */ - customClass: null, - /** - * Sets a initial color, ignoring the one from the element/input value or the data-color attribute. - * - * @type {(String|ColorItem|boolean)} - * @default false - */ - color: false, - /** - * Fallback color to use when the given color is invalid. - * If false, the latest valid color will be used as a fallback. - * - * @type {String|ColorItem|boolean} - * @default false - */ - fallbackColor: false, - /** - * Forces an specific color format. If 'auto', it will be automatically detected the first time only, - * but if null it will be always recalculated. - * - * Note that the ending 'a' of the format meaning "alpha" has currently no effect, meaning that rgb is the same as - * rgba excepting if the alpha channel is disabled (see useAlpha). - * - * @type {('rgb'|'hex'|'hsl'|'auto'|null)} - * @default 'auto' - */ - format: 'auto', - /** - * Horizontal mode layout. - * - * If true, the hue and alpha channel bars will be rendered horizontally, above the saturation selector. - * - * @type {boolean} - * @default false - */ - horizontal: false, - /** - * Forces to show the colorpicker as an inline element. - * - * Note that if there is no container specified, the inline element - * will be added to the body, so you may want to set the container option. - * - * @type {boolean} - * @default false - */ - inline: false, - /** - * Container where the colorpicker is appended to in the DOM. - * - * If is a string (CSS selector), the colorpicker will be placed inside this container. - * If true, the `.colorpicker-element` element itself will be used as the container. - * If false, the document body is used as the container, unless it is a popover (in this case it is appended to the - * popover body instead). - * - * @type {String|boolean} - * @default false - */ - container: false, - /** - * Bootstrap Popover options. - * The trigger, content and html options are always ignored. - * - * @type {boolean} - * @default Object - */ - popover: { - animation: true, - placement: 'bottom', - fallbackPlacement: 'flip' - }, - /** - * If true, loads the 'debugger' extension automatically, which logs the events in the console - * @type {boolean} - * @default false - */ - debug: false, - /** - * Child CSS selector for the colorpicker input. - * - * @type {String} - * @default 'input' - */ - input: 'input', - /** - * Child CSS selector for the colorpicker addon. - * If it exists, the child element background will be changed on color change. - * - * @type {String} - * @default '.colorpicker-trigger, .colorpicker-input-addon' - */ - addon: '.colorpicker-input-addon', - /** - * If true, the input content will be replaced always with a valid color, - * if false, the invalid color will be left in the input, - * while the internal color object will still resolve into a valid one. - * - * @type {boolean} - * @default true - */ - autoInputFallback: true, - /** - * If true a hash will be prepended to hexadecimal colors. - * If false, the hash will be removed. - * This only affects the input values in hexadecimal format. - * - * @type {boolean} - * @default true - */ - useHashPrefix: true, - /** - * If true, the alpha channel bar will be displayed no matter what. - * - * If false, it will be always hidden and alpha channel will be disabled also programmatically, meaning that - * the selected or typed color will be always opaque. - * - * If null, the alpha channel will be automatically disabled/enabled depending if the initial color format supports - * alpha or not. - * - * @type {boolean} - * @default true - */ - useAlpha: true, - /** - * Colorpicker widget template - * @type {String} - * @example - * - *
- *
- *
- *
- *
- * - *
- *
- */ - template: '
\n
\n
\n
\n
\n \n
\n
', - /** - * - * Associative object with the extension class name and its config. - * Colorpicker comes with many bundled extensions: debugger, palette, preview and swatches (a superset of palette). - * - * @type {Object[]} - * @example - * extensions: [ - * { - * name: 'swatches' - * options: { - * colors: { - * 'primary': '#337ab7', - * 'success': '#5cb85c', - * 'info': '#5bc0de', - * 'warning': '#f0ad4e', - * 'danger': '#d9534f' - * }, - * namesAsValues: true - * } - * } - * ] - */ - extensions: [{ - name: 'preview', - options: { - showText: true - } - }], - /** - * Vertical sliders configuration - * @type {Object} - */ - sliders: { - saturation: { - selector: '.colorpicker-saturation', - maxLeft: sliderSize, - maxTop: sliderSize, - callLeft: 'setSaturationRatio', - callTop: 'setValueRatio' - }, - hue: { - selector: '.colorpicker-hue', - maxLeft: 0, - maxTop: sliderSize, - callLeft: false, - callTop: 'setHueRatio' - }, - alpha: { - selector: '.colorpicker-alpha', - childSelector: '.colorpicker-alpha-color', - maxLeft: 0, - maxTop: sliderSize, - callLeft: false, - callTop: 'setAlphaRatio' - } - }, - /** - * Horizontal sliders configuration - * @type {Object} - */ - slidersHorz: { - saturation: { - selector: '.colorpicker-saturation', - maxLeft: sliderSize, - maxTop: sliderSize, - callLeft: 'setSaturationRatio', - callTop: 'setValueRatio' - }, - hue: { - selector: '.colorpicker-hue', - maxLeft: sliderSize, - maxTop: 0, - callLeft: 'setHueRatio', - callTop: false - }, - alpha: { - selector: '.colorpicker-alpha', - childSelector: '.colorpicker-alpha-color', - maxLeft: sliderSize, - maxTop: 0, - callLeft: 'setAlphaRatio', - callTop: false - } - } -}; -module.exports = exports.default; - -/***/ }), -/* 4 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _Extension2 = __webpack_require__(1); - -var _Extension3 = _interopRequireDefault(_Extension2); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var defaults = { - /** - * Key-value pairs defining a color alias and its CSS color representation. - * - * They can also be just an array of values. In that case, no special names are used, only the real colors. - * - * @type {Object|Array} - * @default null - * @example - * { - * 'black': '#000000', - * 'white': '#ffffff', - * 'red': '#FF0000', - * 'default': '#777777', - * 'primary': '#337ab7', - * 'success': '#5cb85c', - * 'info': '#5bc0de', - * 'warning': '#f0ad4e', - * 'danger': '#d9534f' - * } - * - * @example ['#f0ad4e', '#337ab7', '#5cb85c'] - */ - colors: null, - /** - * If true, when a color swatch is selected the name (alias) will be used as input value, - * otherwise the swatch real color value will be used. - * - * @type {boolean} - * @default true - */ - namesAsValues: true -}; - -/** - * Palette extension - * @ignore - */ - -var Palette = function (_Extension) { - _inherits(Palette, _Extension); - - _createClass(Palette, [{ - key: 'colors', - - - /** - * @returns {Object|Array} - */ - get: function get() { - return this.options.colors; - } - }]); - - function Palette(colorpicker) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Palette); - - var _this = _possibleConstructorReturn(this, (Palette.__proto__ || Object.getPrototypeOf(Palette)).call(this, colorpicker, _jquery2.default.extend(true, {}, defaults, options))); - - if (!Array.isArray(_this.options.colors) && _typeof(_this.options.colors) !== 'object') { - _this.options.colors = null; - } - return _this; - } - - /** - * @returns {int} - */ - - - _createClass(Palette, [{ - key: 'getLength', - value: function getLength() { - if (!this.options.colors) { - return 0; - } - - if (Array.isArray(this.options.colors)) { - return this.options.colors.length; - } - - if (_typeof(this.options.colors) === 'object') { - return Object.keys(this.options.colors).length; - } - - return 0; - } - }, { - key: 'resolveColor', - value: function resolveColor(color) { - var realColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - if (this.getLength() <= 0) { - return false; - } - - // Array of colors - if (Array.isArray(this.options.colors)) { - if (this.options.colors.indexOf(color) >= 0) { - return color; - } - if (this.options.colors.indexOf(color.toUpperCase()) >= 0) { - return color.toUpperCase(); - } - if (this.options.colors.indexOf(color.toLowerCase()) >= 0) { - return color.toLowerCase(); - } - return false; - } - - if (_typeof(this.options.colors) !== 'object') { - return false; - } - - // Map of objects - if (!this.options.namesAsValues || realColor) { - return this.getValue(color, false); - } - return this.getName(color, this.getName('#' + color)); - } - - /** - * Given a color value, returns the corresponding color name or defaultValue. - * - * @param {String} value - * @param {*} defaultValue - * @returns {*} - */ - - }, { - key: 'getName', - value: function getName(value) { - var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - if (!(typeof value === 'string') || !this.options.colors) { - return defaultValue; - } - for (var name in this.options.colors) { - if (!this.options.colors.hasOwnProperty(name)) { - continue; - } - if (this.options.colors[name].toLowerCase() === value.toLowerCase()) { - return name; - } - } - return defaultValue; - } - - /** - * Given a color name, returns the corresponding color value or defaultValue. - * - * @param {String} name - * @param {*} defaultValue - * @returns {*} - */ - - }, { - key: 'getValue', - value: function getValue(name) { - var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - - if (!(typeof name === 'string') || !this.options.colors) { - return defaultValue; - } - if (this.options.colors.hasOwnProperty(name)) { - return this.options.colors[name]; - } - return defaultValue; - } - }]); - - return Palette; -}(_Extension3.default); - -exports.default = Palette; -module.exports = exports.default; - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = { - "aliceblue": [240, 248, 255], - "antiquewhite": [250, 235, 215], - "aqua": [0, 255, 255], - "aquamarine": [127, 255, 212], - "azure": [240, 255, 255], - "beige": [245, 245, 220], - "bisque": [255, 228, 196], - "black": [0, 0, 0], - "blanchedalmond": [255, 235, 205], - "blue": [0, 0, 255], - "blueviolet": [138, 43, 226], - "brown": [165, 42, 42], - "burlywood": [222, 184, 135], - "cadetblue": [95, 158, 160], - "chartreuse": [127, 255, 0], - "chocolate": [210, 105, 30], - "coral": [255, 127, 80], - "cornflowerblue": [100, 149, 237], - "cornsilk": [255, 248, 220], - "crimson": [220, 20, 60], - "cyan": [0, 255, 255], - "darkblue": [0, 0, 139], - "darkcyan": [0, 139, 139], - "darkgoldenrod": [184, 134, 11], - "darkgray": [169, 169, 169], - "darkgreen": [0, 100, 0], - "darkgrey": [169, 169, 169], - "darkkhaki": [189, 183, 107], - "darkmagenta": [139, 0, 139], - "darkolivegreen": [85, 107, 47], - "darkorange": [255, 140, 0], - "darkorchid": [153, 50, 204], - "darkred": [139, 0, 0], - "darksalmon": [233, 150, 122], - "darkseagreen": [143, 188, 143], - "darkslateblue": [72, 61, 139], - "darkslategray": [47, 79, 79], - "darkslategrey": [47, 79, 79], - "darkturquoise": [0, 206, 209], - "darkviolet": [148, 0, 211], - "deeppink": [255, 20, 147], - "deepskyblue": [0, 191, 255], - "dimgray": [105, 105, 105], - "dimgrey": [105, 105, 105], - "dodgerblue": [30, 144, 255], - "firebrick": [178, 34, 34], - "floralwhite": [255, 250, 240], - "forestgreen": [34, 139, 34], - "fuchsia": [255, 0, 255], - "gainsboro": [220, 220, 220], - "ghostwhite": [248, 248, 255], - "gold": [255, 215, 0], - "goldenrod": [218, 165, 32], - "gray": [128, 128, 128], - "green": [0, 128, 0], - "greenyellow": [173, 255, 47], - "grey": [128, 128, 128], - "honeydew": [240, 255, 240], - "hotpink": [255, 105, 180], - "indianred": [205, 92, 92], - "indigo": [75, 0, 130], - "ivory": [255, 255, 240], - "khaki": [240, 230, 140], - "lavender": [230, 230, 250], - "lavenderblush": [255, 240, 245], - "lawngreen": [124, 252, 0], - "lemonchiffon": [255, 250, 205], - "lightblue": [173, 216, 230], - "lightcoral": [240, 128, 128], - "lightcyan": [224, 255, 255], - "lightgoldenrodyellow": [250, 250, 210], - "lightgray": [211, 211, 211], - "lightgreen": [144, 238, 144], - "lightgrey": [211, 211, 211], - "lightpink": [255, 182, 193], - "lightsalmon": [255, 160, 122], - "lightseagreen": [32, 178, 170], - "lightskyblue": [135, 206, 250], - "lightslategray": [119, 136, 153], - "lightslategrey": [119, 136, 153], - "lightsteelblue": [176, 196, 222], - "lightyellow": [255, 255, 224], - "lime": [0, 255, 0], - "limegreen": [50, 205, 50], - "linen": [250, 240, 230], - "magenta": [255, 0, 255], - "maroon": [128, 0, 0], - "mediumaquamarine": [102, 205, 170], - "mediumblue": [0, 0, 205], - "mediumorchid": [186, 85, 211], - "mediumpurple": [147, 112, 219], - "mediumseagreen": [60, 179, 113], - "mediumslateblue": [123, 104, 238], - "mediumspringgreen": [0, 250, 154], - "mediumturquoise": [72, 209, 204], - "mediumvioletred": [199, 21, 133], - "midnightblue": [25, 25, 112], - "mintcream": [245, 255, 250], - "mistyrose": [255, 228, 225], - "moccasin": [255, 228, 181], - "navajowhite": [255, 222, 173], - "navy": [0, 0, 128], - "oldlace": [253, 245, 230], - "olive": [128, 128, 0], - "olivedrab": [107, 142, 35], - "orange": [255, 165, 0], - "orangered": [255, 69, 0], - "orchid": [218, 112, 214], - "palegoldenrod": [238, 232, 170], - "palegreen": [152, 251, 152], - "paleturquoise": [175, 238, 238], - "palevioletred": [219, 112, 147], - "papayawhip": [255, 239, 213], - "peachpuff": [255, 218, 185], - "peru": [205, 133, 63], - "pink": [255, 192, 203], - "plum": [221, 160, 221], - "powderblue": [176, 224, 230], - "purple": [128, 0, 128], - "rebeccapurple": [102, 51, 153], - "red": [255, 0, 0], - "rosybrown": [188, 143, 143], - "royalblue": [65, 105, 225], - "saddlebrown": [139, 69, 19], - "salmon": [250, 128, 114], - "sandybrown": [244, 164, 96], - "seagreen": [46, 139, 87], - "seashell": [255, 245, 238], - "sienna": [160, 82, 45], - "silver": [192, 192, 192], - "skyblue": [135, 206, 235], - "slateblue": [106, 90, 205], - "slategray": [112, 128, 144], - "slategrey": [112, 128, 144], - "snow": [255, 250, 250], - "springgreen": [0, 255, 127], - "steelblue": [70, 130, 180], - "tan": [210, 180, 140], - "teal": [0, 128, 128], - "thistle": [216, 191, 216], - "tomato": [255, 99, 71], - "turquoise": [64, 224, 208], - "violet": [238, 130, 238], - "wheat": [245, 222, 179], - "white": [255, 255, 255], - "whitesmoke": [245, 245, 245], - "yellow": [255, 255, 0], - "yellowgreen": [154, 205, 50] -}; - - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - -/* MIT license */ -var cssKeywords = __webpack_require__(5); - -// NOTE: conversions should only return primitive values (i.e. arrays, or -// values that give correct `typeof` results). -// do not use box values types (i.e. Number(), String(), etc.) - -var reverseKeywords = {}; -for (var key in cssKeywords) { - if (cssKeywords.hasOwnProperty(key)) { - reverseKeywords[cssKeywords[key]] = key; - } -} - -var convert = module.exports = { - rgb: {channels: 3, labels: 'rgb'}, - hsl: {channels: 3, labels: 'hsl'}, - hsv: {channels: 3, labels: 'hsv'}, - hwb: {channels: 3, labels: 'hwb'}, - cmyk: {channels: 4, labels: 'cmyk'}, - xyz: {channels: 3, labels: 'xyz'}, - lab: {channels: 3, labels: 'lab'}, - lch: {channels: 3, labels: 'lch'}, - hex: {channels: 1, labels: ['hex']}, - keyword: {channels: 1, labels: ['keyword']}, - ansi16: {channels: 1, labels: ['ansi16']}, - ansi256: {channels: 1, labels: ['ansi256']}, - hcg: {channels: 3, labels: ['h', 'c', 'g']}, - apple: {channels: 3, labels: ['r16', 'g16', 'b16']}, - gray: {channels: 1, labels: ['gray']} -}; - -// hide .channels and .labels properties -for (var model in convert) { - if (convert.hasOwnProperty(model)) { - if (!('channels' in convert[model])) { - throw new Error('missing channels property: ' + model); - } - - if (!('labels' in convert[model])) { - throw new Error('missing channel labels property: ' + model); - } - - if (convert[model].labels.length !== convert[model].channels) { - throw new Error('channel and label counts mismatch: ' + model); - } - - var channels = convert[model].channels; - var labels = convert[model].labels; - delete convert[model].channels; - delete convert[model].labels; - Object.defineProperty(convert[model], 'channels', {value: channels}); - Object.defineProperty(convert[model], 'labels', {value: labels}); - } -} - -convert.rgb.hsl = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var min = Math.min(r, g, b); - var max = Math.max(r, g, b); - var delta = max - min; - var h; - var s; - var l; - - if (max === min) { - h = 0; - } else if (r === max) { - h = (g - b) / delta; - } else if (g === max) { - h = 2 + (b - r) / delta; - } else if (b === max) { - h = 4 + (r - g) / delta; - } - - h = Math.min(h * 60, 360); - - if (h < 0) { - h += 360; - } - - l = (min + max) / 2; - - if (max === min) { - s = 0; - } else if (l <= 0.5) { - s = delta / (max + min); - } else { - s = delta / (2 - max - min); - } - - return [h, s * 100, l * 100]; -}; - -convert.rgb.hsv = function (rgb) { - var rdif; - var gdif; - var bdif; - var h; - var s; - - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var v = Math.max(r, g, b); - var diff = v - Math.min(r, g, b); - var diffc = function (c) { - return (v - c) / 6 / diff + 1 / 2; - }; - - if (diff === 0) { - h = s = 0; - } else { - s = diff / v; - rdif = diffc(r); - gdif = diffc(g); - bdif = diffc(b); - - if (r === v) { - h = bdif - gdif; - } else if (g === v) { - h = (1 / 3) + rdif - bdif; - } else if (b === v) { - h = (2 / 3) + gdif - rdif; - } - if (h < 0) { - h += 1; - } else if (h > 1) { - h -= 1; - } - } - - return [ - h * 360, - s * 100, - v * 100 - ]; -}; - -convert.rgb.hwb = function (rgb) { - var r = rgb[0]; - var g = rgb[1]; - var b = rgb[2]; - var h = convert.rgb.hsl(rgb)[0]; - var w = 1 / 255 * Math.min(r, Math.min(g, b)); - - b = 1 - 1 / 255 * Math.max(r, Math.max(g, b)); - - return [h, w * 100, b * 100]; -}; - -convert.rgb.cmyk = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var c; - var m; - var y; - var k; - - k = Math.min(1 - r, 1 - g, 1 - b); - c = (1 - r - k) / (1 - k) || 0; - m = (1 - g - k) / (1 - k) || 0; - y = (1 - b - k) / (1 - k) || 0; - - return [c * 100, m * 100, y * 100, k * 100]; -}; - -/** - * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance - * */ -function comparativeDistance(x, y) { - return ( - Math.pow(x[0] - y[0], 2) + - Math.pow(x[1] - y[1], 2) + - Math.pow(x[2] - y[2], 2) - ); -} - -convert.rgb.keyword = function (rgb) { - var reversed = reverseKeywords[rgb]; - if (reversed) { - return reversed; - } - - var currentClosestDistance = Infinity; - var currentClosestKeyword; - - for (var keyword in cssKeywords) { - if (cssKeywords.hasOwnProperty(keyword)) { - var value = cssKeywords[keyword]; - - // Compute comparative distance - var distance = comparativeDistance(rgb, value); - - // Check if its less, if so set as closest - if (distance < currentClosestDistance) { - currentClosestDistance = distance; - currentClosestKeyword = keyword; - } - } - } - - return currentClosestKeyword; -}; - -convert.keyword.rgb = function (keyword) { - return cssKeywords[keyword]; -}; - -convert.rgb.xyz = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - - // assume sRGB - r = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92); - g = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92); - b = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92); - - var x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805); - var y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722); - var z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505); - - return [x * 100, y * 100, z * 100]; -}; - -convert.rgb.lab = function (rgb) { - var xyz = convert.rgb.xyz(rgb); - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; - - x /= 95.047; - y /= 100; - z /= 108.883; - - x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); - y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); - z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); - - l = (116 * y) - 16; - a = 500 * (x - y); - b = 200 * (y - z); - - return [l, a, b]; -}; - -convert.hsl.rgb = function (hsl) { - var h = hsl[0] / 360; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var t1; - var t2; - var t3; - var rgb; - var val; - - if (s === 0) { - val = l * 255; - return [val, val, val]; - } - - if (l < 0.5) { - t2 = l * (1 + s); - } else { - t2 = l + s - l * s; - } - - t1 = 2 * l - t2; - - rgb = [0, 0, 0]; - for (var i = 0; i < 3; i++) { - t3 = h + 1 / 3 * -(i - 1); - if (t3 < 0) { - t3++; - } - if (t3 > 1) { - t3--; - } - - if (6 * t3 < 1) { - val = t1 + (t2 - t1) * 6 * t3; - } else if (2 * t3 < 1) { - val = t2; - } else if (3 * t3 < 2) { - val = t1 + (t2 - t1) * (2 / 3 - t3) * 6; - } else { - val = t1; - } - - rgb[i] = val * 255; - } - - return rgb; -}; - -convert.hsl.hsv = function (hsl) { - var h = hsl[0]; - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var smin = s; - var lmin = Math.max(l, 0.01); - var sv; - var v; - - l *= 2; - s *= (l <= 1) ? l : 2 - l; - smin *= lmin <= 1 ? lmin : 2 - lmin; - v = (l + s) / 2; - sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s); - - return [h, sv * 100, v * 100]; -}; - -convert.hsv.rgb = function (hsv) { - var h = hsv[0] / 60; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var hi = Math.floor(h) % 6; - - var f = h - Math.floor(h); - var p = 255 * v * (1 - s); - var q = 255 * v * (1 - (s * f)); - var t = 255 * v * (1 - (s * (1 - f))); - v *= 255; - - switch (hi) { - case 0: - return [v, t, p]; - case 1: - return [q, v, p]; - case 2: - return [p, v, t]; - case 3: - return [p, q, v]; - case 4: - return [t, p, v]; - case 5: - return [v, p, q]; - } -}; - -convert.hsv.hsl = function (hsv) { - var h = hsv[0]; - var s = hsv[1] / 100; - var v = hsv[2] / 100; - var vmin = Math.max(v, 0.01); - var lmin; - var sl; - var l; - - l = (2 - s) * v; - lmin = (2 - s) * vmin; - sl = s * vmin; - sl /= (lmin <= 1) ? lmin : 2 - lmin; - sl = sl || 0; - l /= 2; - - return [h, sl * 100, l * 100]; -}; - -// http://dev.w3.org/csswg/css-color/#hwb-to-rgb -convert.hwb.rgb = function (hwb) { - var h = hwb[0] / 360; - var wh = hwb[1] / 100; - var bl = hwb[2] / 100; - var ratio = wh + bl; - var i; - var v; - var f; - var n; - - // wh + bl cant be > 1 - if (ratio > 1) { - wh /= ratio; - bl /= ratio; - } - - i = Math.floor(6 * h); - v = 1 - bl; - f = 6 * h - i; - - if ((i & 0x01) !== 0) { - f = 1 - f; - } - - n = wh + f * (v - wh); // linear interpolation - - var r; - var g; - var b; - switch (i) { - default: - case 6: - case 0: r = v; g = n; b = wh; break; - case 1: r = n; g = v; b = wh; break; - case 2: r = wh; g = v; b = n; break; - case 3: r = wh; g = n; b = v; break; - case 4: r = n; g = wh; b = v; break; - case 5: r = v; g = wh; b = n; break; - } - - return [r * 255, g * 255, b * 255]; -}; - -convert.cmyk.rgb = function (cmyk) { - var c = cmyk[0] / 100; - var m = cmyk[1] / 100; - var y = cmyk[2] / 100; - var k = cmyk[3] / 100; - var r; - var g; - var b; - - r = 1 - Math.min(1, c * (1 - k) + k); - g = 1 - Math.min(1, m * (1 - k) + k); - b = 1 - Math.min(1, y * (1 - k) + k); - - return [r * 255, g * 255, b * 255]; -}; - -convert.xyz.rgb = function (xyz) { - var x = xyz[0] / 100; - var y = xyz[1] / 100; - var z = xyz[2] / 100; - var r; - var g; - var b; - - r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986); - g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415); - b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570); - - // assume sRGB - r = r > 0.0031308 - ? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055) - : r * 12.92; - - g = g > 0.0031308 - ? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055) - : g * 12.92; - - b = b > 0.0031308 - ? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055) - : b * 12.92; - - r = Math.min(Math.max(0, r), 1); - g = Math.min(Math.max(0, g), 1); - b = Math.min(Math.max(0, b), 1); - - return [r * 255, g * 255, b * 255]; -}; - -convert.xyz.lab = function (xyz) { - var x = xyz[0]; - var y = xyz[1]; - var z = xyz[2]; - var l; - var a; - var b; - - x /= 95.047; - y /= 100; - z /= 108.883; - - x = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116); - y = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116); - z = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116); - - l = (116 * y) - 16; - a = 500 * (x - y); - b = 200 * (y - z); - - return [l, a, b]; -}; - -convert.lab.xyz = function (lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var x; - var y; - var z; - - y = (l + 16) / 116; - x = a / 500 + y; - z = y - b / 200; - - var y2 = Math.pow(y, 3); - var x2 = Math.pow(x, 3); - var z2 = Math.pow(z, 3); - y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787; - x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787; - z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787; - - x *= 95.047; - y *= 100; - z *= 108.883; - - return [x, y, z]; -}; - -convert.lab.lch = function (lab) { - var l = lab[0]; - var a = lab[1]; - var b = lab[2]; - var hr; - var h; - var c; - - hr = Math.atan2(b, a); - h = hr * 360 / 2 / Math.PI; - - if (h < 0) { - h += 360; - } - - c = Math.sqrt(a * a + b * b); - - return [l, c, h]; -}; - -convert.lch.lab = function (lch) { - var l = lch[0]; - var c = lch[1]; - var h = lch[2]; - var a; - var b; - var hr; - - hr = h / 360 * 2 * Math.PI; - a = c * Math.cos(hr); - b = c * Math.sin(hr); - - return [l, a, b]; -}; - -convert.rgb.ansi16 = function (args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; - var value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization - - value = Math.round(value / 50); - - if (value === 0) { - return 30; - } - - var ansi = 30 - + ((Math.round(b / 255) << 2) - | (Math.round(g / 255) << 1) - | Math.round(r / 255)); - - if (value === 2) { - ansi += 60; - } - - return ansi; -}; - -convert.hsv.ansi16 = function (args) { - // optimization here; we already know the value and don't need to get - // it converted for us. - return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); -}; - -convert.rgb.ansi256 = function (args) { - var r = args[0]; - var g = args[1]; - var b = args[2]; - - // we use the extended greyscale palette here, with the exception of - // black and white. normal palette only has 4 greyscale shades. - if (r === g && g === b) { - if (r < 8) { - return 16; - } - - if (r > 248) { - return 231; - } - - return Math.round(((r - 8) / 247) * 24) + 232; - } - - var ansi = 16 - + (36 * Math.round(r / 255 * 5)) - + (6 * Math.round(g / 255 * 5)) - + Math.round(b / 255 * 5); - - return ansi; -}; - -convert.ansi16.rgb = function (args) { - var color = args % 10; - - // handle greyscale - if (color === 0 || color === 7) { - if (args > 50) { - color += 3.5; - } - - color = color / 10.5 * 255; - - return [color, color, color]; - } - - var mult = (~~(args > 50) + 1) * 0.5; - var r = ((color & 1) * mult) * 255; - var g = (((color >> 1) & 1) * mult) * 255; - var b = (((color >> 2) & 1) * mult) * 255; - - return [r, g, b]; -}; - -convert.ansi256.rgb = function (args) { - // handle greyscale - if (args >= 232) { - var c = (args - 232) * 10 + 8; - return [c, c, c]; - } - - args -= 16; - - var rem; - var r = Math.floor(args / 36) / 5 * 255; - var g = Math.floor((rem = args % 36) / 6) / 5 * 255; - var b = (rem % 6) / 5 * 255; - - return [r, g, b]; -}; - -convert.rgb.hex = function (args) { - var integer = ((Math.round(args[0]) & 0xFF) << 16) - + ((Math.round(args[1]) & 0xFF) << 8) - + (Math.round(args[2]) & 0xFF); - - var string = integer.toString(16).toUpperCase(); - return '000000'.substring(string.length) + string; -}; - -convert.hex.rgb = function (args) { - var match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); - if (!match) { - return [0, 0, 0]; - } - - var colorString = match[0]; - - if (match[0].length === 3) { - colorString = colorString.split('').map(function (char) { - return char + char; - }).join(''); - } - - var integer = parseInt(colorString, 16); - var r = (integer >> 16) & 0xFF; - var g = (integer >> 8) & 0xFF; - var b = integer & 0xFF; - - return [r, g, b]; -}; - -convert.rgb.hcg = function (rgb) { - var r = rgb[0] / 255; - var g = rgb[1] / 255; - var b = rgb[2] / 255; - var max = Math.max(Math.max(r, g), b); - var min = Math.min(Math.min(r, g), b); - var chroma = (max - min); - var grayscale; - var hue; - - if (chroma < 1) { - grayscale = min / (1 - chroma); - } else { - grayscale = 0; - } - - if (chroma <= 0) { - hue = 0; - } else - if (max === r) { - hue = ((g - b) / chroma) % 6; - } else - if (max === g) { - hue = 2 + (b - r) / chroma; - } else { - hue = 4 + (r - g) / chroma + 4; - } - - hue /= 6; - hue %= 1; - - return [hue * 360, chroma * 100, grayscale * 100]; -}; - -convert.hsl.hcg = function (hsl) { - var s = hsl[1] / 100; - var l = hsl[2] / 100; - var c = 1; - var f = 0; - - if (l < 0.5) { - c = 2.0 * s * l; - } else { - c = 2.0 * s * (1.0 - l); - } - - if (c < 1.0) { - f = (l - 0.5 * c) / (1.0 - c); - } - - return [hsl[0], c * 100, f * 100]; -}; - -convert.hsv.hcg = function (hsv) { - var s = hsv[1] / 100; - var v = hsv[2] / 100; - - var c = s * v; - var f = 0; - - if (c < 1.0) { - f = (v - c) / (1 - c); - } - - return [hsv[0], c * 100, f * 100]; -}; - -convert.hcg.rgb = function (hcg) { - var h = hcg[0] / 360; - var c = hcg[1] / 100; - var g = hcg[2] / 100; - - if (c === 0.0) { - return [g * 255, g * 255, g * 255]; - } - - var pure = [0, 0, 0]; - var hi = (h % 1) * 6; - var v = hi % 1; - var w = 1 - v; - var mg = 0; - - switch (Math.floor(hi)) { - case 0: - pure[0] = 1; pure[1] = v; pure[2] = 0; break; - case 1: - pure[0] = w; pure[1] = 1; pure[2] = 0; break; - case 2: - pure[0] = 0; pure[1] = 1; pure[2] = v; break; - case 3: - pure[0] = 0; pure[1] = w; pure[2] = 1; break; - case 4: - pure[0] = v; pure[1] = 0; pure[2] = 1; break; - default: - pure[0] = 1; pure[1] = 0; pure[2] = w; - } - - mg = (1.0 - c) * g; - - return [ - (c * pure[0] + mg) * 255, - (c * pure[1] + mg) * 255, - (c * pure[2] + mg) * 255 - ]; -}; - -convert.hcg.hsv = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - - var v = c + g * (1.0 - c); - var f = 0; - - if (v > 0.0) { - f = c / v; - } - - return [hcg[0], f * 100, v * 100]; -}; - -convert.hcg.hsl = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - - var l = g * (1.0 - c) + 0.5 * c; - var s = 0; - - if (l > 0.0 && l < 0.5) { - s = c / (2 * l); - } else - if (l >= 0.5 && l < 1.0) { - s = c / (2 * (1 - l)); - } - - return [hcg[0], s * 100, l * 100]; -}; - -convert.hcg.hwb = function (hcg) { - var c = hcg[1] / 100; - var g = hcg[2] / 100; - var v = c + g * (1.0 - c); - return [hcg[0], (v - c) * 100, (1 - v) * 100]; -}; - -convert.hwb.hcg = function (hwb) { - var w = hwb[1] / 100; - var b = hwb[2] / 100; - var v = 1 - b; - var c = v - w; - var g = 0; - - if (c < 1) { - g = (v - c) / (1 - c); - } - - return [hwb[0], c * 100, g * 100]; -}; - -convert.apple.rgb = function (apple) { - return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255]; -}; - -convert.rgb.apple = function (rgb) { - return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535]; -}; - -convert.gray.rgb = function (args) { - return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; -}; - -convert.gray.hsl = convert.gray.hsv = function (args) { - return [0, 0, args[0]]; -}; - -convert.gray.hwb = function (gray) { - return [0, 100, gray[0]]; -}; - -convert.gray.cmyk = function (gray) { - return [0, 0, 0, gray[0]]; -}; - -convert.gray.lab = function (gray) { - return [gray[0], 0, 0]; -}; - -convert.gray.hex = function (gray) { - var val = Math.round(gray[0] / 100 * 255) & 0xFF; - var integer = (val << 16) + (val << 8) + val; - - var string = integer.toString(16).toUpperCase(); - return '000000'.substring(string.length) + string; -}; - -convert.rgb.gray = function (rgb) { - var val = (rgb[0] + rgb[1] + rgb[2]) / 3; - return [val / 255 * 100]; -}; - - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -var _Colorpicker = __webpack_require__(8); - -var _Colorpicker2 = _interopRequireDefault(_Colorpicker); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var plugin = 'colorpicker'; - -_jquery2.default[plugin] = _Colorpicker2.default; - -// Colorpicker jQuery Plugin API -_jquery2.default.fn[plugin] = function (option) { - var fnArgs = Array.prototype.slice.call(arguments, 1), - isSingleElement = this.length === 1, - returnValue = null; - - var $elements = this.each(function () { - var $this = (0, _jquery2.default)(this), - inst = $this.data(plugin), - options = (typeof option === 'undefined' ? 'undefined' : _typeof(option)) === 'object' ? option : {}; - - // Create instance if does not exist - if (!inst) { - inst = new _Colorpicker2.default(this, options); - $this.data(plugin, inst); - } - - if (!isSingleElement) { - return; - } - - returnValue = $this; - - if (typeof option === 'string') { - if (option === 'colorpicker') { - // Return colorpicker instance: e.g. .colorpicker('colorpicker') - returnValue = inst; - } else if (_jquery2.default.isFunction(inst[option])) { - // Return method call return value: e.g. .colorpicker('isEnabled') - returnValue = inst[option].apply(inst, fnArgs); - } else { - // Return property value: e.g. .colorpicker('element') - returnValue = inst[option]; - } - } - }); - - return isSingleElement ? returnValue : $elements; -}; - -_jquery2.default.fn[plugin].constructor = _Colorpicker2.default; - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _Extension = __webpack_require__(1); - -var _Extension2 = _interopRequireDefault(_Extension); - -var _options = __webpack_require__(3); - -var _options2 = _interopRequireDefault(_options); - -var _extensions = __webpack_require__(9); - -var _extensions2 = _interopRequireDefault(_extensions); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -var _SliderHandler = __webpack_require__(13); - -var _SliderHandler2 = _interopRequireDefault(_SliderHandler); - -var _PopupHandler = __webpack_require__(14); - -var _PopupHandler2 = _interopRequireDefault(_PopupHandler); - -var _InputHandler = __webpack_require__(15); - -var _InputHandler2 = _interopRequireDefault(_InputHandler); - -var _ColorHandler = __webpack_require__(22); - -var _ColorHandler2 = _interopRequireDefault(_ColorHandler); - -var _PickerHandler = __webpack_require__(23); - -var _PickerHandler2 = _interopRequireDefault(_PickerHandler); - -var _AddonHandler = __webpack_require__(24); - -var _AddonHandler2 = _interopRequireDefault(_AddonHandler); - -var _ColorItem = __webpack_require__(2); - -var _ColorItem2 = _interopRequireDefault(_ColorItem); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var colorPickerIdCounter = 0; - -var root = typeof self !== 'undefined' ? self : undefined; // window - -/** - * Colorpicker widget class - */ - -var Colorpicker = function () { - _createClass(Colorpicker, [{ - key: 'color', - - - /** - * Internal color object - * - * @type {Color|null} - */ - get: function get() { - return this.colorHandler.color; - } - - /** - * Internal color format - * - * @type {String|null} - */ - - }, { - key: 'format', - get: function get() { - return this.colorHandler.format; - } - - /** - * Getter of the picker element - * - * @returns {jQuery|HTMLElement} - */ - - }, { - key: 'picker', - get: function get() { - return this.pickerHandler.picker; - } - - /** - * @fires Colorpicker#colorpickerCreate - * @param {Object|String} element - * @param {Object} options - * @constructor - */ - - }], [{ - key: 'Color', - - /** - * Color class - * - * @static - * @type {Color} - */ - get: function get() { - return _ColorItem2.default; - } - - /** - * Extension class - * - * @static - * @type {Extension} - */ - - }, { - key: 'Extension', - get: function get() { - return _Extension2.default; - } - }]); - - function Colorpicker(element, options) { - _classCallCheck(this, Colorpicker); - - colorPickerIdCounter += 1; - /** - * The colorpicker instance number - * @type {number} - */ - this.id = colorPickerIdCounter; - - /** - * Latest colorpicker event - * - * @type {{name: String, e: *}} - */ - this.lastEvent = { - alias: null, - e: null - }; - - /** - * The element that the colorpicker is bound to - * - * @type {*|jQuery} - */ - this.element = (0, _jquery2.default)(element).addClass('colorpicker-element').attr('data-colorpicker-id', this.id); - - /** - * @type {defaults} - */ - this.options = _jquery2.default.extend(true, {}, _options2.default, options, this.element.data()); - - /** - * @type {boolean} - * @private - */ - this.disabled = false; - - /** - * Extensions added to this instance - * - * @type {Extension[]} - */ - this.extensions = []; - - /** - * The element where the - * @type {*|jQuery} - */ - this.container = this.options.container === true || this.options.container !== true && this.options.inline === true ? this.element : this.options.container; - - this.container = this.container !== false ? (0, _jquery2.default)(this.container) : false; - - /** - * @type {InputHandler} - */ - this.inputHandler = new _InputHandler2.default(this); - /** - * @type {ColorHandler} - */ - this.colorHandler = new _ColorHandler2.default(this); - /** - * @type {SliderHandler} - */ - this.sliderHandler = new _SliderHandler2.default(this); - /** - * @type {PopupHandler} - */ - this.popupHandler = new _PopupHandler2.default(this, root); - /** - * @type {PickerHandler} - */ - this.pickerHandler = new _PickerHandler2.default(this); - /** - * @type {AddonHandler} - */ - this.addonHandler = new _AddonHandler2.default(this); - - this.init(); - - // Emit a create event - (0, _jquery2.default)(_jquery2.default.proxy(function () { - /** - * (Colorpicker) When the Colorpicker instance has been created and the DOM is ready. - * - * @event Colorpicker#colorpickerCreate - */ - this.trigger('colorpickerCreate'); - }, this)); - } - - /** - * Initializes the plugin - * @private - */ - - - _createClass(Colorpicker, [{ - key: 'init', - value: function init() { - // Init addon - this.addonHandler.bind(); - - // Init input - this.inputHandler.bind(); - - // Init extensions (before initializing the color) - this.initExtensions(); - - // Init color - this.colorHandler.bind(); - - // Init picker - this.pickerHandler.bind(); - - // Init sliders and popup - this.sliderHandler.bind(); - this.popupHandler.bind(); - - // Inject into the DOM (this may make it visible) - this.pickerHandler.attach(); - - // Update all components - this.update(); - - if (this.inputHandler.isDisabled()) { - this.disable(); - } - } - - /** - * Initializes the plugin extensions - * @private - */ - - }, { - key: 'initExtensions', - value: function initExtensions() { - var _this = this; - - if (!Array.isArray(this.options.extensions)) { - this.options.extensions = []; - } - - if (this.options.debug) { - this.options.extensions.push({ name: 'debugger' }); - } - - // Register and instantiate extensions - this.options.extensions.forEach(function (ext) { - _this.registerExtension(Colorpicker.extensions[ext.name.toLowerCase()], ext.options || {}); - }); - } - - /** - * Creates and registers the given extension - * - * @param {Extension} ExtensionClass The extension class to instantiate - * @param {Object} [config] Extension configuration - * @returns {Extension} - */ - - }, { - key: 'registerExtension', - value: function registerExtension(ExtensionClass) { - var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - var ext = new ExtensionClass(this, config); - - this.extensions.push(ext); - return ext; - } - - /** - * Destroys the current instance - * - * @fires Colorpicker#colorpickerDestroy - */ - - }, { - key: 'destroy', - value: function destroy() { - var color = this.color; - - this.sliderHandler.unbind(); - this.inputHandler.unbind(); - this.popupHandler.unbind(); - this.colorHandler.unbind(); - this.addonHandler.unbind(); - this.pickerHandler.unbind(); - - this.element.removeClass('colorpicker-element').removeData('colorpicker', 'color').off('.colorpicker'); - - /** - * (Colorpicker) When the instance is destroyed with all events unbound. - * - * @event Colorpicker#colorpickerDestroy - */ - this.trigger('colorpickerDestroy', color); - } - - /** - * Shows the colorpicker widget if hidden. - * If the colorpicker is disabled this call will be ignored. - * - * @fires Colorpicker#colorpickerShow - * @param {Event} [e] - */ - - }, { - key: 'show', - value: function show(e) { - this.popupHandler.show(e); - } - - /** - * Hides the colorpicker widget. - * - * @fires Colorpicker#colorpickerHide - * @param {Event} [e] - */ - - }, { - key: 'hide', - value: function hide(e) { - this.popupHandler.hide(e); - } - - /** - * Toggles the colorpicker between visible and hidden. - * - * @fires Colorpicker#colorpickerShow - * @fires Colorpicker#colorpickerHide - * @param {Event} [e] - */ - - }, { - key: 'toggle', - value: function toggle(e) { - this.popupHandler.toggle(e); - } - - /** - * Returns the current color value as string - * - * @param {String|*} [defaultValue] - * @returns {String|*} - */ - - }, { - key: 'getValue', - value: function getValue() { - var defaultValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - - var val = this.colorHandler.color; - - val = val instanceof _ColorItem2.default ? val : defaultValue; - - if (val instanceof _ColorItem2.default) { - return val.string(this.format); - } - - return val; - } - - /** - * Sets the color manually - * - * @fires Colorpicker#colorpickerChange - * @param {String|Color} val - */ - - }, { - key: 'setValue', - value: function setValue(val) { - if (this.isDisabled()) { - return; - } - var ch = this.colorHandler; - - if (ch.hasColor() && !!val && ch.color.equals(val) || !ch.hasColor() && !val) { - // same color or still empty - return; - } - - ch.color = val ? ch.createColor(val, this.options.autoInputFallback) : null; - - /** - * (Colorpicker) When the color is set programmatically with setValue(). - * - * @event Colorpicker#colorpickerChange - */ - this.trigger('colorpickerChange', ch.color, val); - - // force update if color has changed to empty - this.update(); - } - - /** - * Updates the UI and the input color according to the internal color. - * - * @fires Colorpicker#colorpickerUpdate - */ - - }, { - key: 'update', - value: function update() { - if (this.colorHandler.hasColor()) { - this.inputHandler.update(); - } else { - this.colorHandler.assureColor(); - } - - this.addonHandler.update(); - this.pickerHandler.update(); - - /** - * (Colorpicker) Fired when the widget is updated. - * - * @event Colorpicker#colorpickerUpdate - */ - this.trigger('colorpickerUpdate'); - } - - /** - * Enables the widget and the input if any - * - * @fires Colorpicker#colorpickerEnable - * @returns {boolean} - */ - - }, { - key: 'enable', - value: function enable() { - this.inputHandler.enable(); - this.disabled = false; - this.picker.removeClass('colorpicker-disabled'); - - /** - * (Colorpicker) When the widget has been enabled. - * - * @event Colorpicker#colorpickerEnable - */ - this.trigger('colorpickerEnable'); - return true; - } - - /** - * Disables the widget and the input if any - * - * @fires Colorpicker#colorpickerDisable - * @returns {boolean} - */ - - }, { - key: 'disable', - value: function disable() { - this.inputHandler.disable(); - this.disabled = true; - this.picker.addClass('colorpicker-disabled'); - - /** - * (Colorpicker) When the widget has been disabled. - * - * @event Colorpicker#colorpickerDisable - */ - this.trigger('colorpickerDisable'); - return true; - } - - /** - * Returns true if this instance is enabled - * @returns {boolean} - */ - - }, { - key: 'isEnabled', - value: function isEnabled() { - return !this.isDisabled(); - } - - /** - * Returns true if this instance is disabled - * @returns {boolean} - */ - - }, { - key: 'isDisabled', - value: function isDisabled() { - return this.disabled === true; - } - - /** - * Triggers a Colorpicker event. - * - * @param eventName - * @param color - * @param value - */ - - }, { - key: 'trigger', - value: function trigger(eventName) { - var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; - var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; - - this.element.trigger({ - type: eventName, - colorpicker: this, - color: color ? color : this.color, - value: value ? value : this.getValue() - }); - } - }]); - - return Colorpicker; -}(); - -/** - * Colorpicker extension classes, indexed by extension name - * - * @static - * @type {Object} a map between the extension name and its class - */ - - -Colorpicker.extensions = _extensions2.default; - -exports.default = Colorpicker; -module.exports = exports.default; - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.Palette = exports.Swatches = exports.Preview = exports.Debugger = undefined; - -var _Debugger = __webpack_require__(10); - -var _Debugger2 = _interopRequireDefault(_Debugger); - -var _Preview = __webpack_require__(11); - -var _Preview2 = _interopRequireDefault(_Preview); - -var _Swatches = __webpack_require__(12); - -var _Swatches2 = _interopRequireDefault(_Swatches); - -var _Palette = __webpack_require__(4); - -var _Palette2 = _interopRequireDefault(_Palette); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.Debugger = _Debugger2.default; -exports.Preview = _Preview2.default; -exports.Swatches = _Swatches2.default; -exports.Palette = _Palette2.default; -exports.default = { - 'debugger': _Debugger2.default, - 'preview': _Preview2.default, - 'swatches': _Swatches2.default, - 'palette': _Palette2.default -}; - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _Extension2 = __webpack_require__(1); - -var _Extension3 = _interopRequireDefault(_Extension2); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Debugger extension class - * @alias DebuggerExtension - * @ignore - */ -var Debugger = function (_Extension) { - _inherits(Debugger, _Extension); - - function Debugger(colorpicker) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Debugger); - - /** - * @type {number} - */ - var _this = _possibleConstructorReturn(this, (Debugger.__proto__ || Object.getPrototypeOf(Debugger)).call(this, colorpicker, options)); - - _this.eventCounter = 0; - if (_this.colorpicker.inputHandler.hasInput()) { - _this.colorpicker.inputHandler.input.on('change.colorpicker-ext', _jquery2.default.proxy(_this.onChangeInput, _this)); - } - return _this; - } - - /** - * @fires DebuggerExtension#colorpickerDebug - * @param {string} eventName - * @param {*} args - */ - - - _createClass(Debugger, [{ - key: 'log', - value: function log(eventName) { - var _console; - - for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - this.eventCounter += 1; - - var logMessage = '#' + this.eventCounter + ': Colorpicker#' + this.colorpicker.id + ' [' + eventName + ']'; - - (_console = console).debug.apply(_console, [logMessage].concat(args)); - - /** - * Whenever the debugger logs an event, this other event is emitted. - * - * @event DebuggerExtension#colorpickerDebug - * @type {object} The event object - * @property {Colorpicker} colorpicker The Colorpicker instance - * @property {ColorItem} color The color instance - * @property {{debugger: DebuggerExtension, eventName: String, logArgs: Array, logMessage: String}} debug - * The debug info - */ - this.colorpicker.element.trigger({ - type: 'colorpickerDebug', - colorpicker: this.colorpicker, - color: this.color, - value: null, - debug: { - debugger: this, - eventName: eventName, - logArgs: args, - logMessage: logMessage - } - }); - } - }, { - key: 'resolveColor', - value: function resolveColor(color) { - var realColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - this.log('resolveColor()', color, realColor); - return false; - } - }, { - key: 'onCreate', - value: function onCreate(event) { - this.log('colorpickerCreate'); - return _get(Debugger.prototype.__proto__ || Object.getPrototypeOf(Debugger.prototype), 'onCreate', this).call(this, event); - } - }, { - key: 'onDestroy', - value: function onDestroy(event) { - this.log('colorpickerDestroy'); - this.eventCounter = 0; - - if (this.colorpicker.inputHandler.hasInput()) { - this.colorpicker.inputHandler.input.off('.colorpicker-ext'); - } - - return _get(Debugger.prototype.__proto__ || Object.getPrototypeOf(Debugger.prototype), 'onDestroy', this).call(this, event); - } - }, { - key: 'onUpdate', - value: function onUpdate(event) { - this.log('colorpickerUpdate'); - } - - /** - * @listens Colorpicker#change - * @param {Event} event - */ - - }, { - key: 'onChangeInput', - value: function onChangeInput(event) { - this.log('input:change.colorpicker', event.value, event.color); - } - }, { - key: 'onChange', - value: function onChange(event) { - this.log('colorpickerChange', event.value, event.color); - } - }, { - key: 'onInvalid', - value: function onInvalid(event) { - this.log('colorpickerInvalid', event.value, event.color); - } - }, { - key: 'onHide', - value: function onHide(event) { - this.log('colorpickerHide'); - this.eventCounter = 0; - } - }, { - key: 'onShow', - value: function onShow(event) { - this.log('colorpickerShow'); - } - }, { - key: 'onDisable', - value: function onDisable(event) { - this.log('colorpickerDisable'); - } - }, { - key: 'onEnable', - value: function onEnable(event) { - this.log('colorpickerEnable'); - } - }]); - - return Debugger; -}(_Extension3.default); - -exports.default = Debugger; -module.exports = exports.default; - -/***/ }), -/* 11 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _Extension2 = __webpack_require__(1); - -var _Extension3 = _interopRequireDefault(_Extension2); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -/** - * Color preview extension - * @ignore - */ -var Preview = function (_Extension) { - _inherits(Preview, _Extension); - - function Preview(colorpicker) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Preview); - - var _this = _possibleConstructorReturn(this, (Preview.__proto__ || Object.getPrototypeOf(Preview)).call(this, colorpicker, _jquery2.default.extend(true, {}, { - template: '
', - showText: true, - format: colorpicker.format - }, options))); - - _this.element = (0, _jquery2.default)(_this.options.template); - _this.elementInner = _this.element.find('div'); - return _this; - } - - _createClass(Preview, [{ - key: 'onCreate', - value: function onCreate(event) { - _get(Preview.prototype.__proto__ || Object.getPrototypeOf(Preview.prototype), 'onCreate', this).call(this, event); - this.colorpicker.picker.append(this.element); - } - }, { - key: 'onUpdate', - value: function onUpdate(event) { - _get(Preview.prototype.__proto__ || Object.getPrototypeOf(Preview.prototype), 'onUpdate', this).call(this, event); - - if (!event.color) { - this.elementInner.css('backgroundColor', null).css('color', null).html(''); - return; - } - - this.elementInner.css('backgroundColor', event.color.toRgbString()); - - if (this.options.showText) { - this.elementInner.html(event.color.string(this.options.format || this.colorpicker.format)); - - if (event.color.isDark() && event.color.alpha > 0.5) { - this.elementInner.css('color', 'white'); - } else { - this.elementInner.css('color', 'black'); - } - } - } - }]); - - return Preview; -}(_Extension3.default); - -exports.default = Preview; -module.exports = exports.default; - -/***/ }), -/* 12 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - -var _Palette2 = __webpack_require__(4); - -var _Palette3 = _interopRequireDefault(_Palette2); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var defaults = { - barTemplate: '
\n
\n
', - swatchTemplate: '' -}; - -/** - * Color swatches extension - * @ignore - */ - -var Swatches = function (_Palette) { - _inherits(Swatches, _Palette); - - function Swatches(colorpicker) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, Swatches); - - var _this = _possibleConstructorReturn(this, (Swatches.__proto__ || Object.getPrototypeOf(Swatches)).call(this, colorpicker, _jquery2.default.extend(true, {}, defaults, options))); - - _this.element = null; - return _this; - } - - _createClass(Swatches, [{ - key: 'isEnabled', - value: function isEnabled() { - return this.getLength() > 0; - } - }, { - key: 'onCreate', - value: function onCreate(event) { - _get(Swatches.prototype.__proto__ || Object.getPrototypeOf(Swatches.prototype), 'onCreate', this).call(this, event); - - if (!this.isEnabled()) { - return; - } - - this.element = (0, _jquery2.default)(this.options.barTemplate); - this.load(); - this.colorpicker.picker.append(this.element); - } - }, { - key: 'load', - value: function load() { - var _this2 = this; - - var colorpicker = this.colorpicker, - swatchContainer = this.element.find('.colorpicker-swatches--inner'), - isAliased = this.options.namesAsValues === true && !Array.isArray(this.colors); - - swatchContainer.empty(); - - _jquery2.default.each(this.colors, function (name, value) { - var $swatch = (0, _jquery2.default)(_this2.options.swatchTemplate).attr('data-name', name).attr('data-value', value).attr('title', isAliased ? name + ': ' + value : value).on('mousedown.colorpicker touchstart.colorpicker', function (e) { - var $sw = (0, _jquery2.default)(this); - - // e.preventDefault(); - - colorpicker.setValue(isAliased ? $sw.attr('data-name') : $sw.attr('data-value')); - }); - - $swatch.find('.colorpicker-swatch--inner').css('background-color', value); - - swatchContainer.append($swatch); - }); - - swatchContainer.append((0, _jquery2.default)('')); - } - }]); - - return Swatches; -}(_Palette3.default); - -exports.default = Swatches; -module.exports = exports.default; - -/***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Class that handles all configured sliders on mouse or touch events. - * @ignore - */ -var SliderHandler = function () { - /** - * @param {Colorpicker} colorpicker - */ - function SliderHandler(colorpicker) { - _classCallCheck(this, SliderHandler); - - /** - * @type {Colorpicker} - */ - this.colorpicker = colorpicker; - /** - * @type {*|String} - * @private - */ - this.currentSlider = null; - /** - * @type {{left: number, top: number}} - * @private - */ - this.mousePointer = { - left: 0, - top: 0 - }; - - /** - * @type {Function} - */ - this.onMove = _jquery2.default.proxy(this.defaultOnMove, this); - } - - /** - * This function is called every time a slider guide is moved - * The scope of "this" is the SliderHandler object. - * - * @param {int} top - * @param {int} left - */ - - - _createClass(SliderHandler, [{ - key: 'defaultOnMove', - value: function defaultOnMove(top, left) { - if (!this.currentSlider) { - return; - } - - var slider = this.currentSlider, - cp = this.colorpicker, - ch = cp.colorHandler; - - // Create a color object - var color = !ch.hasColor() ? ch.getFallbackColor() : ch.color.getClone(); - - // Adjust the guide position - slider.guideStyle.left = left + 'px'; - slider.guideStyle.top = top + 'px'; - - // Adjust the color - if (slider.callLeft) { - color[slider.callLeft](left / slider.maxLeft); - } - if (slider.callTop) { - color[slider.callTop](top / slider.maxTop); - } - - // Set the new color - cp.setValue(color); - cp.popupHandler.focus(); - } - - /** - * Binds the colorpicker sliders to the mouse/touch events - */ - - }, { - key: 'bind', - value: function bind() { - var sliders = this.colorpicker.options.horizontal ? this.colorpicker.options.slidersHorz : this.colorpicker.options.sliders; - - var sliderClasses = []; - - for (var sliderName in sliders) { - if (!sliders.hasOwnProperty(sliderName)) { - continue; - } - - sliderClasses.push(sliders[sliderName].selector); - } - - this.colorpicker.picker.find(sliderClasses.join(', ')).on('mousedown.colorpicker touchstart.colorpicker', _jquery2.default.proxy(this.pressed, this)); - } - - /** - * Unbinds any event bound by this handler - */ - - }, { - key: 'unbind', - value: function unbind() { - (0, _jquery2.default)(this.colorpicker.picker).off({ - 'mousemove.colorpicker': _jquery2.default.proxy(this.moved, this), - 'touchmove.colorpicker': _jquery2.default.proxy(this.moved, this), - 'mouseup.colorpicker': _jquery2.default.proxy(this.released, this), - 'touchend.colorpicker': _jquery2.default.proxy(this.released, this) - }); - } - - /** - * Function triggered when clicking in one of the color adjustment bars - * - * @private - * @fires Colorpicker#mousemove - * @param {Event} e - */ - - }, { - key: 'pressed', - value: function pressed(e) { - if (this.colorpicker.isDisabled()) { - return; - } - this.colorpicker.lastEvent.alias = 'pressed'; - this.colorpicker.lastEvent.e = e; - - if (!e.pageX && !e.pageY && e.originalEvent && e.originalEvent.touches) { - e.pageX = e.originalEvent.touches[0].pageX; - e.pageY = e.originalEvent.touches[0].pageY; - } - // e.stopPropagation(); - // e.preventDefault(); - - var target = (0, _jquery2.default)(e.target); - - // detect the slider and set the limits and callbacks - var zone = target.closest('div'); - - var sliders = this.colorpicker.options.horizontal ? this.colorpicker.options.slidersHorz : this.colorpicker.options.sliders; - - if (zone.is('.colorpicker')) { - return; - } - - this.currentSlider = null; - - for (var sliderName in sliders) { - if (!sliders.hasOwnProperty(sliderName)) { - continue; - } - - var slider = sliders[sliderName]; - - if (zone.is(slider.selector)) { - this.currentSlider = _jquery2.default.extend({}, slider, { name: sliderName }); - break; - } else if (slider.childSelector !== undefined && zone.is(slider.childSelector)) { - this.currentSlider = _jquery2.default.extend({}, slider, { name: sliderName }); - zone = zone.parent(); // zone.parents(slider.selector).first() ? - break; - } - } - - var guide = zone.find('.colorpicker-guide').get(0); - - if (this.currentSlider === null || guide === null) { - return; - } - - var offset = zone.offset(); - - // reference to guide's style - this.currentSlider.guideStyle = guide.style; - this.currentSlider.left = e.pageX - offset.left; - this.currentSlider.top = e.pageY - offset.top; - this.mousePointer = { - left: e.pageX, - top: e.pageY - }; - - // TODO: fix moving outside the picker makes the guides to keep moving. The event needs to be bound to the window. - /** - * (window.document) Triggered on mousedown for the document object, - * so the color adjustment guide is moved to the clicked position. - * - * @event Colorpicker#mousemove - */ - (0, _jquery2.default)(this.colorpicker.picker).on({ - 'mousemove.colorpicker': _jquery2.default.proxy(this.moved, this), - 'touchmove.colorpicker': _jquery2.default.proxy(this.moved, this), - 'mouseup.colorpicker': _jquery2.default.proxy(this.released, this), - 'touchend.colorpicker': _jquery2.default.proxy(this.released, this) - }).trigger('mousemove'); - } - - /** - * Function triggered when dragging a guide inside one of the color adjustment bars. - * - * @private - * @param {Event} e - */ - - }, { - key: 'moved', - value: function moved(e) { - this.colorpicker.lastEvent.alias = 'moved'; - this.colorpicker.lastEvent.e = e; - - if (!e.pageX && !e.pageY && e.originalEvent && e.originalEvent.touches) { - e.pageX = e.originalEvent.touches[0].pageX; - e.pageY = e.originalEvent.touches[0].pageY; - } - - // e.stopPropagation(); - e.preventDefault(); // prevents scrolling on mobile - - var left = Math.max(0, Math.min(this.currentSlider.maxLeft, this.currentSlider.left + ((e.pageX || this.mousePointer.left) - this.mousePointer.left))); - - var top = Math.max(0, Math.min(this.currentSlider.maxTop, this.currentSlider.top + ((e.pageY || this.mousePointer.top) - this.mousePointer.top))); - - this.onMove(top, left); - } - - /** - * Function triggered when releasing the click in one of the color adjustment bars. - * - * @private - * @param {Event} e - */ - - }, { - key: 'released', - value: function released(e) { - this.colorpicker.lastEvent.alias = 'released'; - this.colorpicker.lastEvent.e = e; - - // e.stopPropagation(); - // e.preventDefault(); - - (0, _jquery2.default)(this.colorpicker.picker).off({ - 'mousemove.colorpicker': this.moved, - 'touchmove.colorpicker': this.moved, - 'mouseup.colorpicker': this.released, - 'touchend.colorpicker': this.released - }); - } - }]); - - return SliderHandler; -}(); - -exports.default = SliderHandler; -module.exports = exports.default; - -/***/ }), -/* 14 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -var _options = __webpack_require__(3); - -var _options2 = _interopRequireDefault(_options); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Handles everything related to the UI of the colorpicker popup: show, hide, position,... - * @ignore - */ -var PopupHandler = function () { - /** - * @param {Colorpicker} colorpicker - * @param {Window} root - */ - function PopupHandler(colorpicker, root) { - _classCallCheck(this, PopupHandler); - - /** - * @type {Window} - */ - this.root = root; - /** - * @type {Colorpicker} - */ - this.colorpicker = colorpicker; - /** - * @type {jQuery} - */ - this.popoverTarget = null; - /** - * @type {jQuery} - */ - this.popoverTip = null; - - /** - * If true, the latest click was inside the popover - * @type {boolean} - */ - this.clicking = false; - /** - * @type {boolean} - */ - this.hidding = false; - /** - * @type {boolean} - */ - this.showing = false; - } - - /** - * @private - * @returns {jQuery|false} - */ - - - _createClass(PopupHandler, [{ - key: 'bind', - - - /** - * Binds the different colorpicker elements to the focus/mouse/touch events so it reacts in order to show or - * hide the colorpicker popup accordingly. It also adds the proper classes. - */ - value: function bind() { - var cp = this.colorpicker; - - if (cp.options.inline) { - cp.picker.addClass('colorpicker-inline colorpicker-visible'); - return; // no need to bind show/hide events for inline elements - } - - cp.picker.addClass('colorpicker-popup colorpicker-hidden'); - - // there is no input or addon - if (!this.hasInput && !this.hasAddon) { - return; - } - - // create Bootstrap 4 popover - if (cp.options.popover) { - this.createPopover(); - } - - // bind addon show/hide events - if (this.hasAddon) { - // enable focus on addons - if (!this.addon.attr('tabindex')) { - this.addon.attr('tabindex', 0); - } - - this.addon.on({ - 'mousedown.colorpicker touchstart.colorpicker': _jquery2.default.proxy(this.toggle, this) - }); - - this.addon.on({ - 'focus.colorpicker': _jquery2.default.proxy(this.show, this) - }); - - this.addon.on({ - 'focusout.colorpicker': _jquery2.default.proxy(this.hide, this) - }); - } - - // bind input show/hide events - if (this.hasInput && !this.hasAddon) { - this.input.on({ - 'mousedown.colorpicker touchstart.colorpicker': _jquery2.default.proxy(this.show, this), - 'focus.colorpicker': _jquery2.default.proxy(this.show, this) - }); - - this.input.on({ - 'focusout.colorpicker': _jquery2.default.proxy(this.hide, this) - }); - } - - // reposition popup on window resize - (0, _jquery2.default)(this.root).on('resize.colorpicker', _jquery2.default.proxy(this.reposition, this)); - } - - /** - * Unbinds any event bound by this handler - */ - - }, { - key: 'unbind', - value: function unbind() { - if (this.hasInput) { - this.input.off({ - 'mousedown.colorpicker touchstart.colorpicker': _jquery2.default.proxy(this.show, this), - 'focus.colorpicker': _jquery2.default.proxy(this.show, this) - }); - this.input.off({ - 'focusout.colorpicker': _jquery2.default.proxy(this.hide, this) - }); - } - - if (this.hasAddon) { - this.addon.off({ - 'mousedown.colorpicker touchstart.colorpicker': _jquery2.default.proxy(this.toggle, this) - }); - this.addon.off({ - 'focus.colorpicker': _jquery2.default.proxy(this.show, this) - }); - this.addon.off({ - 'focusout.colorpicker': _jquery2.default.proxy(this.hide, this) - }); - } - - if (this.popoverTarget) { - this.popoverTarget.popover('dispose'); - } - - (0, _jquery2.default)(this.root).off('resize.colorpicker', _jquery2.default.proxy(this.reposition, this)); - (0, _jquery2.default)(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', _jquery2.default.proxy(this.hide, this)); - (0, _jquery2.default)(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', _jquery2.default.proxy(this.onClickingInside, this)); - } - }, { - key: 'isClickingInside', - value: function isClickingInside(e) { - if (!e) { - return false; - } - - return this.isOrIsInside(this.popoverTip, e.currentTarget) || this.isOrIsInside(this.popoverTip, e.target) || this.isOrIsInside(this.colorpicker.picker, e.currentTarget) || this.isOrIsInside(this.colorpicker.picker, e.target); - } - }, { - key: 'isOrIsInside', - value: function isOrIsInside(container, element) { - if (!container || !element) { - return false; - } - - element = (0, _jquery2.default)(element); - - return element.is(container) || container.find(element).length > 0; - } - }, { - key: 'onClickingInside', - value: function onClickingInside(e) { - this.clicking = this.isClickingInside(e); - } - }, { - key: 'createPopover', - value: function createPopover() { - var cp = this.colorpicker; - - this.popoverTarget = this.hasAddon ? this.addon : this.input; - - cp.picker.addClass('colorpicker-bs-popover-content'); - - this.popoverTarget.popover(_jquery2.default.extend(true, {}, _options2.default.popover, cp.options.popover, { trigger: 'manual', content: cp.picker, html: true })); - - this.popoverTip = (0, _jquery2.default)(this.popoverTarget.popover('getTipElement').data('bs.popover').tip); - this.popoverTip.addClass('colorpicker-bs-popover'); - - this.popoverTarget.on('shown.bs.popover', _jquery2.default.proxy(this.fireShow, this)); - this.popoverTarget.on('hidden.bs.popover', _jquery2.default.proxy(this.fireHide, this)); - } - - /** - * If the widget is not inside a container or inline, rearranges its position relative to its element offset. - * - * @param {Event} [e] - * @private - */ - - }, { - key: 'reposition', - value: function reposition(e) { - if (this.popoverTarget && this.isVisible()) { - this.popoverTarget.popover('update'); - } - } - - /** - * Toggles the colorpicker between visible or hidden - * - * @fires Colorpicker#colorpickerShow - * @fires Colorpicker#colorpickerHide - * @param {Event} [e] - */ - - }, { - key: 'toggle', - value: function toggle(e) { - if (this.isVisible()) { - this.hide(e); - } else { - this.show(e); - } - } - - /** - * Shows the colorpicker widget if hidden. - * - * @fires Colorpicker#colorpickerShow - * @param {Event} [e] - */ - - }, { - key: 'show', - value: function show(e) { - if (this.isVisible() || this.showing || this.hidding) { - return; - } - - this.showing = true; - this.hidding = false; - this.clicking = false; - - var cp = this.colorpicker; - - cp.lastEvent.alias = 'show'; - cp.lastEvent.e = e; - - // Prevent showing browser native HTML5 colorpicker - if (e && (!this.hasInput || this.input.attr('type') === 'color') && e && e.preventDefault) { - e.stopPropagation(); - e.preventDefault(); - } - - // If it's a popover, add event to the document to hide the picker when clicking outside of it - if (this.isPopover) { - (0, _jquery2.default)(this.root).on('resize.colorpicker', _jquery2.default.proxy(this.reposition, this)); - } - - // add visible class before popover is shown - cp.picker.addClass('colorpicker-visible').removeClass('colorpicker-hidden'); - - if (this.popoverTarget) { - this.popoverTarget.popover('show'); - } else { - this.fireShow(); - } - } - }, { - key: 'fireShow', - value: function fireShow() { - this.hidding = false; - this.showing = false; - - if (this.isPopover) { - // Add event to hide on outside click - (0, _jquery2.default)(this.root.document).on('mousedown.colorpicker touchstart.colorpicker', _jquery2.default.proxy(this.hide, this)); - (0, _jquery2.default)(this.root.document).on('mousedown.colorpicker touchstart.colorpicker', _jquery2.default.proxy(this.onClickingInside, this)); - } - - /** - * (Colorpicker) When show() is called and the widget can be shown. - * - * @event Colorpicker#colorpickerShow - */ - this.colorpicker.trigger('colorpickerShow'); - } - - /** - * Hides the colorpicker widget. - * Hide is prevented when it is triggered by an event whose target element has been clicked/touched. - * - * @fires Colorpicker#colorpickerHide - * @param {Event} [e] - */ - - }, { - key: 'hide', - value: function hide(e) { - if (this.isHidden() || this.showing || this.hidding) { - return; - } - - var cp = this.colorpicker, - clicking = this.clicking || this.isClickingInside(e); - - this.hidding = true; - this.showing = false; - this.clicking = false; - - cp.lastEvent.alias = 'hide'; - cp.lastEvent.e = e; - - // TODO: fix having to click twice outside when losing focus and last 2 clicks where inside the colorpicker - - // Prevent hide if triggered by an event and an element inside the colorpicker has been clicked/touched - if (clicking) { - this.hidding = false; - return; - } - - if (this.popoverTarget) { - this.popoverTarget.popover('hide'); - } else { - this.fireHide(); - } - } - }, { - key: 'fireHide', - value: function fireHide() { - this.hidding = false; - this.showing = false; - - var cp = this.colorpicker; - - // add hidden class after popover is hidden - cp.picker.addClass('colorpicker-hidden').removeClass('colorpicker-visible'); - - // Unbind window and document events, since there is no need to keep them while the popup is hidden - (0, _jquery2.default)(this.root).off('resize.colorpicker', _jquery2.default.proxy(this.reposition, this)); - (0, _jquery2.default)(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', _jquery2.default.proxy(this.hide, this)); - (0, _jquery2.default)(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', _jquery2.default.proxy(this.onClickingInside, this)); - - /** - * (Colorpicker) When hide() is called and the widget can be hidden. - * - * @event Colorpicker#colorpickerHide - */ - cp.trigger('colorpickerHide'); - } - }, { - key: 'focus', - value: function focus() { - if (this.hasAddon) { - return this.addon.focus(); - } - if (this.hasInput) { - return this.input.focus(); - } - return false; - } - - /** - * Returns true if the colorpicker element has the colorpicker-visible class and not the colorpicker-hidden one. - * False otherwise. - * - * @returns {boolean} - */ - - }, { - key: 'isVisible', - value: function isVisible() { - return this.colorpicker.picker.hasClass('colorpicker-visible') && !this.colorpicker.picker.hasClass('colorpicker-hidden'); - } - - /** - * Returns true if the colorpicker element has the colorpicker-hidden class and not the colorpicker-visible one. - * False otherwise. - * - * @returns {boolean} - */ - - }, { - key: 'isHidden', - value: function isHidden() { - return this.colorpicker.picker.hasClass('colorpicker-hidden') && !this.colorpicker.picker.hasClass('colorpicker-visible'); - } - }, { - key: 'input', - get: function get() { - return this.colorpicker.inputHandler.input; - } - - /** - * @private - * @returns {boolean} - */ - - }, { - key: 'hasInput', - get: function get() { - return this.colorpicker.inputHandler.hasInput(); - } - - /** - * @private - * @returns {jQuery|false} - */ - - }, { - key: 'addon', - get: function get() { - return this.colorpicker.addonHandler.addon; - } - - /** - * @private - * @returns {boolean} - */ - - }, { - key: 'hasAddon', - get: function get() { - return this.colorpicker.addonHandler.hasAddon(); - } - - /** - * @private - * @returns {boolean} - */ - - }, { - key: 'isPopover', - get: function get() { - return !this.colorpicker.options.inline && !!this.popoverTip; - } - }]); - - return PopupHandler; -}(); - -exports.default = PopupHandler; -module.exports = exports.default; - -/***/ }), -/* 15 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -var _ColorItem = __webpack_require__(2); - -var _ColorItem2 = _interopRequireDefault(_ColorItem); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Handles everything related to the colorpicker input - * @ignore - */ -var InputHandler = function () { - /** - * @param {Colorpicker} colorpicker - */ - function InputHandler(colorpicker) { - _classCallCheck(this, InputHandler); - - /** - * @type {Colorpicker} - */ - this.colorpicker = colorpicker; - /** - * @type {jQuery|false} - */ - this.input = this.colorpicker.element.is('input') ? this.colorpicker.element : this.colorpicker.options.input ? this.colorpicker.element.find(this.colorpicker.options.input) : false; - - if (this.input && this.input.length === 0) { - this.input = false; - } - - this._initValue(); - } - - _createClass(InputHandler, [{ - key: 'bind', - value: function bind() { - if (!this.hasInput()) { - return; - } - this.input.on({ - 'keyup.colorpicker': _jquery2.default.proxy(this.onkeyup, this) - }); - this.input.on({ - 'change.colorpicker': _jquery2.default.proxy(this.onchange, this) - }); - } - }, { - key: 'unbind', - value: function unbind() { - if (!this.hasInput()) { - return; - } - this.input.off('.colorpicker'); - } - }, { - key: '_initValue', - value: function _initValue() { - if (!this.hasInput()) { - return; - } - - var val = ''; - - [ - // candidates: - this.input.val(), this.input.data('color'), this.input.attr('data-color')].map(function (item) { - if (item && val === '') { - val = item; - } - }); - - if (val instanceof _ColorItem2.default) { - val = this.getFormattedColor(val.string(this.colorpicker.format)); - } else if (!(typeof val === 'string' || val instanceof String)) { - val = ''; - } - - this.input.prop('value', val); - } - - /** - * Returns the color string from the input value. - * If there is no input the return value is false. - * - * @returns {String|boolean} - */ - - }, { - key: 'getValue', - value: function getValue() { - if (!this.hasInput()) { - return false; - } - - return this.input.val(); - } - - /** - * If the input element is present, it updates the value with the current color object color string. - * If the value is changed, this method fires a "change" event on the input element. - * - * @param {String} val - * - * @fires Colorpicker#change - */ - - }, { - key: 'setValue', - value: function setValue(val) { - if (!this.hasInput()) { - return; - } - - var inputVal = this.input.prop('value'); - - val = val ? val : ''; - - if (val === (inputVal ? inputVal : '')) { - // No need to set value or trigger any event if nothing changed - return; - } - - this.input.prop('value', val); - - /** - * (Input) Triggered on the input element when a new color is selected. - * - * @event Colorpicker#change - */ - this.input.trigger({ - type: 'change', - colorpicker: this.colorpicker, - color: this.colorpicker.color, - value: val - }); - } - - /** - * Returns the formatted color string, with the formatting options applied - * (e.g. useHashPrefix) - * - * @param {String|null} val - * - * @returns {String} - */ - - }, { - key: 'getFormattedColor', - value: function getFormattedColor() { - var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - - val = val ? val : this.colorpicker.colorHandler.getColorString(); - - if (!val) { - return ''; - } - - val = this.colorpicker.colorHandler.resolveColorDelegate(val, false); - - if (this.colorpicker.options.useHashPrefix === false) { - val = val.replace(/^#/g, ''); - } - - return val; - } - - /** - * Returns true if the widget has an associated input element, false otherwise - * @returns {boolean} - */ - - }, { - key: 'hasInput', - value: function hasInput() { - return this.input !== false; - } - - /** - * Returns true if the input exists and is disabled - * @returns {boolean} - */ - - }, { - key: 'isEnabled', - value: function isEnabled() { - return this.hasInput() && !this.isDisabled(); - } - - /** - * Returns true if the input exists and is disabled - * @returns {boolean} - */ - - }, { - key: 'isDisabled', - value: function isDisabled() { - return this.hasInput() && this.input.prop('disabled') === true; - } - - /** - * Disables the input if any - * - * @fires Colorpicker#colorpickerDisable - * @returns {boolean} - */ - - }, { - key: 'disable', - value: function disable() { - if (this.hasInput()) { - this.input.prop('disabled', true); - } - } - - /** - * Enables the input if any - * - * @fires Colorpicker#colorpickerEnable - * @returns {boolean} - */ - - }, { - key: 'enable', - value: function enable() { - if (this.hasInput()) { - this.input.prop('disabled', false); - } - } - - /** - * Calls setValue with the current internal color value - * - * @fires Colorpicker#change - */ - - }, { - key: 'update', - value: function update() { - if (!this.hasInput()) { - return; - } - - if (this.colorpicker.options.autoInputFallback === false && this.colorpicker.colorHandler.isInvalidColor()) { - // prevent update if color is invalid, autoInputFallback is disabled and the last event is keyup. - return; - } - - this.setValue(this.getFormattedColor()); - } - - /** - * Function triggered when the input has changed, so the colorpicker gets updated. - * - * @private - * @param {Event} e - * @returns {boolean} - */ - - }, { - key: 'onchange', - value: function onchange(e) { - this.colorpicker.lastEvent.alias = 'input.change'; - this.colorpicker.lastEvent.e = e; - - var val = this.getValue(); - - if (val !== e.value) { - this.colorpicker.setValue(val); - } - } - - /** - * Function triggered after a keyboard key has been released. - * - * @private - * @param {Event} e - * @returns {boolean} - */ - - }, { - key: 'onkeyup', - value: function onkeyup(e) { - this.colorpicker.lastEvent.alias = 'input.keyup'; - this.colorpicker.lastEvent.e = e; - - var val = this.getValue(); - - if (val !== e.value) { - this.colorpicker.setValue(val); - } - } - }]); - - return InputHandler; -}(); - -exports.default = InputHandler; -module.exports = exports.default; - -/***/ }), -/* 16 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var colorString = __webpack_require__(17); -var convert = __webpack_require__(20); - -var _slice = [].slice; - -var skippedModels = [ - // to be honest, I don't really feel like keyword belongs in color convert, but eh. - 'keyword', - - // gray conflicts with some method names, and has its own method defined. - 'gray', - - // shouldn't really be in color-convert either... - 'hex' -]; - -var hashedModelKeys = {}; -Object.keys(convert).forEach(function (model) { - hashedModelKeys[_slice.call(convert[model].labels).sort().join('')] = model; -}); - -var limiters = {}; - -function Color(obj, model) { - if (!(this instanceof Color)) { - return new Color(obj, model); - } - - if (model && model in skippedModels) { - model = null; - } - - if (model && !(model in convert)) { - throw new Error('Unknown model: ' + model); - } - - var i; - var channels; - - if (obj == null) { // eslint-disable-line no-eq-null,eqeqeq - this.model = 'rgb'; - this.color = [0, 0, 0]; - this.valpha = 1; - } else if (obj instanceof Color) { - this.model = obj.model; - this.color = obj.color.slice(); - this.valpha = obj.valpha; - } else if (typeof obj === 'string') { - var result = colorString.get(obj); - if (result === null) { - throw new Error('Unable to parse color from string: ' + obj); - } - - this.model = result.model; - channels = convert[this.model].channels; - this.color = result.value.slice(0, channels); - this.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1; - } else if (obj.length) { - this.model = model || 'rgb'; - channels = convert[this.model].channels; - var newArr = _slice.call(obj, 0, channels); - this.color = zeroArray(newArr, channels); - this.valpha = typeof obj[channels] === 'number' ? obj[channels] : 1; - } else if (typeof obj === 'number') { - // this is always RGB - can be converted later on. - obj &= 0xFFFFFF; - this.model = 'rgb'; - this.color = [ - (obj >> 16) & 0xFF, - (obj >> 8) & 0xFF, - obj & 0xFF - ]; - this.valpha = 1; - } else { - this.valpha = 1; - - var keys = Object.keys(obj); - if ('alpha' in obj) { - keys.splice(keys.indexOf('alpha'), 1); - this.valpha = typeof obj.alpha === 'number' ? obj.alpha : 0; - } - - var hashedKeys = keys.sort().join(''); - if (!(hashedKeys in hashedModelKeys)) { - throw new Error('Unable to parse color from object: ' + JSON.stringify(obj)); - } - - this.model = hashedModelKeys[hashedKeys]; - - var labels = convert[this.model].labels; - var color = []; - for (i = 0; i < labels.length; i++) { - color.push(obj[labels[i]]); - } - - this.color = zeroArray(color); - } - - // perform limitations (clamping, etc.) - if (limiters[this.model]) { - channels = convert[this.model].channels; - for (i = 0; i < channels; i++) { - var limit = limiters[this.model][i]; - if (limit) { - this.color[i] = limit(this.color[i]); - } - } - } - - this.valpha = Math.max(0, Math.min(1, this.valpha)); - - if (Object.freeze) { - Object.freeze(this); - } -} - -Color.prototype = { - toString: function () { - return this.string(); - }, - - toJSON: function () { - return this[this.model](); - }, - - string: function (places) { - var self = this.model in colorString.to ? this : this.rgb(); - self = self.round(typeof places === 'number' ? places : 1); - var args = self.valpha === 1 ? self.color : self.color.concat(this.valpha); - return colorString.to[self.model](args); - }, - - percentString: function (places) { - var self = this.rgb().round(typeof places === 'number' ? places : 1); - var args = self.valpha === 1 ? self.color : self.color.concat(this.valpha); - return colorString.to.rgb.percent(args); - }, - - array: function () { - return this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha); - }, - - object: function () { - var result = {}; - var channels = convert[this.model].channels; - var labels = convert[this.model].labels; - - for (var i = 0; i < channels; i++) { - result[labels[i]] = this.color[i]; - } - - if (this.valpha !== 1) { - result.alpha = this.valpha; - } - - return result; - }, - - unitArray: function () { - var rgb = this.rgb().color; - rgb[0] /= 255; - rgb[1] /= 255; - rgb[2] /= 255; - - if (this.valpha !== 1) { - rgb.push(this.valpha); - } - - return rgb; - }, - - unitObject: function () { - var rgb = this.rgb().object(); - rgb.r /= 255; - rgb.g /= 255; - rgb.b /= 255; - - if (this.valpha !== 1) { - rgb.alpha = this.valpha; - } - - return rgb; - }, - - round: function (places) { - places = Math.max(places || 0, 0); - return new Color(this.color.map(roundToPlace(places)).concat(this.valpha), this.model); - }, - - alpha: function (val) { - if (arguments.length) { - return new Color(this.color.concat(Math.max(0, Math.min(1, val))), this.model); - } - - return this.valpha; - }, - - // rgb - red: getset('rgb', 0, maxfn(255)), - green: getset('rgb', 1, maxfn(255)), - blue: getset('rgb', 2, maxfn(255)), - - hue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, function (val) { return ((val % 360) + 360) % 360; }), // eslint-disable-line brace-style - - saturationl: getset('hsl', 1, maxfn(100)), - lightness: getset('hsl', 2, maxfn(100)), - - saturationv: getset('hsv', 1, maxfn(100)), - value: getset('hsv', 2, maxfn(100)), - - chroma: getset('hcg', 1, maxfn(100)), - gray: getset('hcg', 2, maxfn(100)), - - white: getset('hwb', 1, maxfn(100)), - wblack: getset('hwb', 2, maxfn(100)), - - cyan: getset('cmyk', 0, maxfn(100)), - magenta: getset('cmyk', 1, maxfn(100)), - yellow: getset('cmyk', 2, maxfn(100)), - black: getset('cmyk', 3, maxfn(100)), - - x: getset('xyz', 0, maxfn(100)), - y: getset('xyz', 1, maxfn(100)), - z: getset('xyz', 2, maxfn(100)), - - l: getset('lab', 0, maxfn(100)), - a: getset('lab', 1), - b: getset('lab', 2), - - keyword: function (val) { - if (arguments.length) { - return new Color(val); - } - - return convert[this.model].keyword(this.color); - }, - - hex: function (val) { - if (arguments.length) { - return new Color(val); - } - - return colorString.to.hex(this.rgb().round().color); - }, - - rgbNumber: function () { - var rgb = this.rgb().color; - return ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF); - }, - - luminosity: function () { - // http://www.w3.org/TR/WCAG20/#relativeluminancedef - var rgb = this.rgb().color; - - var lum = []; - for (var i = 0; i < rgb.length; i++) { - var chan = rgb[i] / 255; - lum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4); - } - - return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2]; - }, - - contrast: function (color2) { - // http://www.w3.org/TR/WCAG20/#contrast-ratiodef - var lum1 = this.luminosity(); - var lum2 = color2.luminosity(); - - if (lum1 > lum2) { - return (lum1 + 0.05) / (lum2 + 0.05); - } - - return (lum2 + 0.05) / (lum1 + 0.05); - }, - - level: function (color2) { - var contrastRatio = this.contrast(color2); - if (contrastRatio >= 7.1) { - return 'AAA'; - } - - return (contrastRatio >= 4.5) ? 'AA' : ''; - }, - - isDark: function () { - // YIQ equation from http://24ways.org/2010/calculating-color-contrast - var rgb = this.rgb().color; - var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000; - return yiq < 128; - }, - - isLight: function () { - return !this.isDark(); - }, - - negate: function () { - var rgb = this.rgb(); - for (var i = 0; i < 3; i++) { - rgb.color[i] = 255 - rgb.color[i]; - } - return rgb; - }, - - lighten: function (ratio) { - var hsl = this.hsl(); - hsl.color[2] += hsl.color[2] * ratio; - return hsl; - }, - - darken: function (ratio) { - var hsl = this.hsl(); - hsl.color[2] -= hsl.color[2] * ratio; - return hsl; - }, - - saturate: function (ratio) { - var hsl = this.hsl(); - hsl.color[1] += hsl.color[1] * ratio; - return hsl; - }, - - desaturate: function (ratio) { - var hsl = this.hsl(); - hsl.color[1] -= hsl.color[1] * ratio; - return hsl; - }, - - whiten: function (ratio) { - var hwb = this.hwb(); - hwb.color[1] += hwb.color[1] * ratio; - return hwb; - }, - - blacken: function (ratio) { - var hwb = this.hwb(); - hwb.color[2] += hwb.color[2] * ratio; - return hwb; - }, - - grayscale: function () { - // http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale - var rgb = this.rgb().color; - var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11; - return Color.rgb(val, val, val); - }, - - fade: function (ratio) { - return this.alpha(this.valpha - (this.valpha * ratio)); - }, - - opaquer: function (ratio) { - return this.alpha(this.valpha + (this.valpha * ratio)); - }, - - rotate: function (degrees) { - var hsl = this.hsl(); - var hue = hsl.color[0]; - hue = (hue + degrees) % 360; - hue = hue < 0 ? 360 + hue : hue; - hsl.color[0] = hue; - return hsl; - }, - - mix: function (mixinColor, weight) { - // ported from sass implementation in C - // https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209 - if (!mixinColor || !mixinColor.rgb) { - throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof mixinColor); - } - var color1 = mixinColor.rgb(); - var color2 = this.rgb(); - var p = weight === undefined ? 0.5 : weight; - - var w = 2 * p - 1; - var a = color1.alpha() - color2.alpha(); - - var w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0; - var w2 = 1 - w1; - - return Color.rgb( - w1 * color1.red() + w2 * color2.red(), - w1 * color1.green() + w2 * color2.green(), - w1 * color1.blue() + w2 * color2.blue(), - color1.alpha() * p + color2.alpha() * (1 - p)); - } -}; - -// model conversion methods and static constructors -Object.keys(convert).forEach(function (model) { - if (skippedModels.indexOf(model) !== -1) { - return; - } - - var channels = convert[model].channels; - - // conversion methods - Color.prototype[model] = function () { - if (this.model === model) { - return new Color(this); - } - - if (arguments.length) { - return new Color(arguments, model); - } - - var newAlpha = typeof arguments[channels] === 'number' ? channels : this.valpha; - return new Color(assertArray(convert[this.model][model].raw(this.color)).concat(newAlpha), model); - }; - - // 'static' construction methods - Color[model] = function (color) { - if (typeof color === 'number') { - color = zeroArray(_slice.call(arguments), channels); - } - return new Color(color, model); - }; -}); - -function roundTo(num, places) { - return Number(num.toFixed(places)); -} - -function roundToPlace(places) { - return function (num) { - return roundTo(num, places); - }; -} - -function getset(model, channel, modifier) { - model = Array.isArray(model) ? model : [model]; - - model.forEach(function (m) { - (limiters[m] || (limiters[m] = []))[channel] = modifier; - }); - - model = model[0]; - - return function (val) { - var result; - - if (arguments.length) { - if (modifier) { - val = modifier(val); - } - - result = this[model](); - result.color[channel] = val; - return result; - } - - result = this[model]().color[channel]; - if (modifier) { - result = modifier(result); - } - - return result; - }; -} - -function maxfn(max) { - return function (v) { - return Math.max(0, Math.min(max, v)); - }; -} - -function assertArray(val) { - return Array.isArray(val) ? val : [val]; -} - -function zeroArray(arr, length) { - for (var i = 0; i < length; i++) { - if (typeof arr[i] !== 'number') { - arr[i] = 0; - } - } - - return arr; -} - -module.exports = Color; - - -/***/ }), -/* 17 */ -/***/ (function(module, exports, __webpack_require__) { - -/* MIT license */ -var colorNames = __webpack_require__(5); -var swizzle = __webpack_require__(18); - -var reverseNames = {}; - -// create a list of reverse color names -for (var name in colorNames) { - if (colorNames.hasOwnProperty(name)) { - reverseNames[colorNames[name]] = name; - } -} - -var cs = module.exports = { - to: {}, - get: {} -}; - -cs.get = function (string) { - var prefix = string.substring(0, 3).toLowerCase(); - var val; - var model; - switch (prefix) { - case 'hsl': - val = cs.get.hsl(string); - model = 'hsl'; - break; - case 'hwb': - val = cs.get.hwb(string); - model = 'hwb'; - break; - default: - val = cs.get.rgb(string); - model = 'rgb'; - break; - } - - if (!val) { - return null; - } - - return {model: model, value: val}; -}; - -cs.get.rgb = function (string) { - if (!string) { - return null; - } - - var abbr = /^#([a-f0-9]{3,4})$/i; - var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i; - var rgba = /^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/; - var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/; - var keyword = /(\D+)/; - - var rgb = [0, 0, 0, 1]; - var match; - var i; - var hexAlpha; - - if (match = string.match(hex)) { - hexAlpha = match[2]; - match = match[1]; - - for (i = 0; i < 3; i++) { - // https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19 - var i2 = i * 2; - rgb[i] = parseInt(match.slice(i2, i2 + 2), 16); - } - - if (hexAlpha) { - rgb[3] = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100; - } - } else if (match = string.match(abbr)) { - match = match[1]; - hexAlpha = match[3]; - - for (i = 0; i < 3; i++) { - rgb[i] = parseInt(match[i] + match[i], 16); - } - - if (hexAlpha) { - rgb[3] = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100; - } - } else if (match = string.match(rgba)) { - for (i = 0; i < 3; i++) { - rgb[i] = parseInt(match[i + 1], 0); - } - - if (match[4]) { - rgb[3] = parseFloat(match[4]); - } - } else if (match = string.match(per)) { - for (i = 0; i < 3; i++) { - rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55); - } - - if (match[4]) { - rgb[3] = parseFloat(match[4]); - } - } else if (match = string.match(keyword)) { - if (match[1] === 'transparent') { - return [0, 0, 0, 0]; - } - - rgb = colorNames[match[1]]; - - if (!rgb) { - return null; - } - - rgb[3] = 1; - - return rgb; - } else { - return null; - } - - for (i = 0; i < 3; i++) { - rgb[i] = clamp(rgb[i], 0, 255); - } - rgb[3] = clamp(rgb[3], 0, 1); - - return rgb; -}; - -cs.get.hsl = function (string) { - if (!string) { - return null; - } - - var hsl = /^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/; - var match = string.match(hsl); - - if (match) { - var alpha = parseFloat(match[4]); - var h = (parseFloat(match[1]) + 360) % 360; - var s = clamp(parseFloat(match[2]), 0, 100); - var l = clamp(parseFloat(match[3]), 0, 100); - var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1); - - return [h, s, l, a]; - } - - return null; -}; - -cs.get.hwb = function (string) { - if (!string) { - return null; - } - - var hwb = /^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/; - var match = string.match(hwb); - - if (match) { - var alpha = parseFloat(match[4]); - var h = ((parseFloat(match[1]) % 360) + 360) % 360; - var w = clamp(parseFloat(match[2]), 0, 100); - var b = clamp(parseFloat(match[3]), 0, 100); - var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1); - return [h, w, b, a]; - } - - return null; -}; - -cs.to.hex = function () { - var rgba = swizzle(arguments); - - return ( - '#' + - hexDouble(rgba[0]) + - hexDouble(rgba[1]) + - hexDouble(rgba[2]) + - (rgba[3] < 1 - ? (hexDouble(Math.round(rgba[3] * 255))) - : '') - ); -}; - -cs.to.rgb = function () { - var rgba = swizzle(arguments); - - return rgba.length < 4 || rgba[3] === 1 - ? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')' - : 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')'; -}; - -cs.to.rgb.percent = function () { - var rgba = swizzle(arguments); - - var r = Math.round(rgba[0] / 255 * 100); - var g = Math.round(rgba[1] / 255 * 100); - var b = Math.round(rgba[2] / 255 * 100); - - return rgba.length < 4 || rgba[3] === 1 - ? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)' - : 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')'; -}; - -cs.to.hsl = function () { - var hsla = swizzle(arguments); - return hsla.length < 4 || hsla[3] === 1 - ? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)' - : 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')'; -}; - -// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax -// (hwb have alpha optional & 1 is default value) -cs.to.hwb = function () { - var hwba = swizzle(arguments); - - var a = ''; - if (hwba.length >= 4 && hwba[3] !== 1) { - a = ', ' + hwba[3]; - } - - return 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')'; -}; - -cs.to.keyword = function (rgb) { - return reverseNames[rgb.slice(0, 3)]; -}; - -// helpers -function clamp(num, min, max) { - return Math.min(Math.max(min, num), max); -} - -function hexDouble(num) { - var str = num.toString(16).toUpperCase(); - return (str.length < 2) ? '0' + str : str; -} - - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var isArrayish = __webpack_require__(19); - -var concat = Array.prototype.concat; -var slice = Array.prototype.slice; - -var swizzle = module.exports = function swizzle(args) { - var results = []; - - for (var i = 0, len = args.length; i < len; i++) { - var arg = args[i]; - - if (isArrayish(arg)) { - // http://jsperf.com/javascript-array-concat-vs-push/98 - results = concat.call(results, slice.call(arg)); - } else { - results.push(arg); - } - } - - return results; -}; - -swizzle.wrap = function (fn) { - return function () { - return fn(swizzle(arguments)); - }; -}; - - -/***/ }), -/* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function isArrayish(obj) { - if (!obj) { - return false; - } - - return obj instanceof Array || Array.isArray(obj) || - (obj.length >= 0 && obj.splice instanceof Function); -}; - - -/***/ }), -/* 20 */ -/***/ (function(module, exports, __webpack_require__) { - -var conversions = __webpack_require__(6); -var route = __webpack_require__(21); - -var convert = {}; - -var models = Object.keys(conversions); - -function wrapRaw(fn) { - var wrappedFn = function (args) { - if (args === undefined || args === null) { - return args; - } - - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); - } - - return fn(args); - }; - - // preserve .conversion property if there is one - if ('conversion' in fn) { - wrappedFn.conversion = fn.conversion; - } - - return wrappedFn; -} - -function wrapRounded(fn) { - var wrappedFn = function (args) { - if (args === undefined || args === null) { - return args; - } - - if (arguments.length > 1) { - args = Array.prototype.slice.call(arguments); - } - - var result = fn(args); - - // we're assuming the result is an array here. - // see notice in conversions.js; don't use box types - // in conversion functions. - if (typeof result === 'object') { - for (var len = result.length, i = 0; i < len; i++) { - result[i] = Math.round(result[i]); - } - } - - return result; - }; - - // preserve .conversion property if there is one - if ('conversion' in fn) { - wrappedFn.conversion = fn.conversion; - } - - return wrappedFn; -} - -models.forEach(function (fromModel) { - convert[fromModel] = {}; - - Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels}); - Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels}); - - var routes = route(fromModel); - var routeModels = Object.keys(routes); - - routeModels.forEach(function (toModel) { - var fn = routes[toModel]; - - convert[fromModel][toModel] = wrapRounded(fn); - convert[fromModel][toModel].raw = wrapRaw(fn); - }); -}); - -module.exports = convert; - - -/***/ }), -/* 21 */ -/***/ (function(module, exports, __webpack_require__) { - -var conversions = __webpack_require__(6); - -/* - this function routes a model to all other models. - - all functions that are routed have a property `.conversion` attached - to the returned synthetic function. This property is an array - of strings, each with the steps in between the 'from' and 'to' - color models (inclusive). - - conversions that are not possible simply are not included. -*/ - -function buildGraph() { - var graph = {}; - // https://jsperf.com/object-keys-vs-for-in-with-closure/3 - var models = Object.keys(conversions); - - for (var len = models.length, i = 0; i < len; i++) { - graph[models[i]] = { - // http://jsperf.com/1-vs-infinity - // micro-opt, but this is simple. - distance: -1, - parent: null - }; - } - - return graph; -} - -// https://en.wikipedia.org/wiki/Breadth-first_search -function deriveBFS(fromModel) { - var graph = buildGraph(); - var queue = [fromModel]; // unshift -> queue -> pop - - graph[fromModel].distance = 0; - - while (queue.length) { - var current = queue.pop(); - var adjacents = Object.keys(conversions[current]); - - for (var len = adjacents.length, i = 0; i < len; i++) { - var adjacent = adjacents[i]; - var node = graph[adjacent]; - - if (node.distance === -1) { - node.distance = graph[current].distance + 1; - node.parent = current; - queue.unshift(adjacent); - } - } - } - - return graph; -} - -function link(from, to) { - return function (args) { - return to(from(args)); - }; -} - -function wrapConversion(toModel, graph) { - var path = [graph[toModel].parent, toModel]; - var fn = conversions[graph[toModel].parent][toModel]; - - var cur = graph[toModel].parent; - while (graph[cur].parent) { - path.unshift(graph[cur].parent); - fn = link(conversions[graph[cur].parent][cur], fn); - cur = graph[cur].parent; - } - - fn.conversion = path; - return fn; -} - -module.exports = function (fromModel) { - var graph = deriveBFS(fromModel); - var conversion = {}; - - var models = Object.keys(graph); - for (var len = models.length, i = 0; i < len; i++) { - var toModel = models[i]; - var node = graph[toModel]; - - if (node.parent === null) { - // no possible conversion, or this node is the source model. - continue; - } - - conversion[toModel] = wrapConversion(toModel, graph); - } - - return conversion; -}; - - - -/***/ }), -/* 22 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -var _ColorItem = __webpack_require__(2); - -var _ColorItem2 = _interopRequireDefault(_ColorItem); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Handles everything related to the colorpicker color - * @ignore - */ -var ColorHandler = function () { - /** - * @param {Colorpicker} colorpicker - */ - function ColorHandler(colorpicker) { - _classCallCheck(this, ColorHandler); - - /** - * @type {Colorpicker} - */ - this.colorpicker = colorpicker; - } - - /** - * @returns {*|String|ColorItem} - */ - - - _createClass(ColorHandler, [{ - key: 'bind', - value: function bind() { - // if the color option is set - if (this.colorpicker.options.color) { - this.color = this.createColor(this.colorpicker.options.color); - return; - } - - // if element[color] is empty and the input has a value - if (!this.color && !!this.colorpicker.inputHandler.getValue()) { - this.color = this.createColor(this.colorpicker.inputHandler.getValue(), this.colorpicker.options.autoInputFallback); - } - } - }, { - key: 'unbind', - value: function unbind() { - this.colorpicker.element.removeData('color'); - } - - /** - * Returns the color string from the input value or the 'data-color' attribute of the input or element. - * If empty, it returns the defaultValue parameter. - * - * @returns {String|*} - */ - - }, { - key: 'getColorString', - value: function getColorString() { - if (!this.hasColor()) { - return ''; - } - - return this.color.string(this.format); - } - - /** - * Sets the color value - * - * @param {String|ColorItem} val - */ - - }, { - key: 'setColorString', - value: function setColorString(val) { - var color = val ? this.createColor(val) : null; - - this.color = color ? color : null; - } - - /** - * Creates a new color using the widget instance options (fallbackColor, format). - * - * @fires Colorpicker#colorpickerInvalid - * @param {*} val - * @param {boolean} fallbackOnInvalid - * @returns {ColorItem} - */ - - }, { - key: 'createColor', - value: function createColor(val) { - var fallbackOnInvalid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - var color = new _ColorItem2.default(this.resolveColorDelegate(val), this.format); - - if (!color.isValid()) { - if (fallbackOnInvalid) { - color = this.getFallbackColor(); - } - - /** - * (Colorpicker) Fired when the color is invalid and the fallback color is going to be used. - * - * @event Colorpicker#colorpickerInvalid - */ - this.colorpicker.trigger('colorpickerInvalid', color, val); - } - - if (!this.isAlphaEnabled()) { - // Alpha is disabled - color.alpha = 1; - } - - return color; - } - }, { - key: 'getFallbackColor', - value: function getFallbackColor() { - if (this.fallback && this.fallback === this.color) { - return this.color; - } - - var fallback = this.resolveColorDelegate(this.fallback); - - var color = new _ColorItem2.default(fallback, this.format); - - if (!color.isValid()) { - console.warn('The fallback color is invalid. Falling back to the previous color or black if any.'); - return this.color ? this.color : new _ColorItem2.default('#000000', this.format); - } - - return color; - } - - /** - * @returns {ColorItem} - */ - - }, { - key: 'assureColor', - value: function assureColor() { - if (!this.hasColor()) { - this.color = this.getFallbackColor(); - } - - return this.color; - } - - /** - * Delegates the color resolution to the colorpicker extensions. - * - * @param {String|*} color - * @param {boolean} realColor if true, the color should resolve into a real (not named) color code - * @returns {ColorItem|String|*|null} - */ - - }, { - key: 'resolveColorDelegate', - value: function resolveColorDelegate(color) { - var realColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - - var extResolvedColor = false; - - _jquery2.default.each(this.colorpicker.extensions, function (name, ext) { - if (extResolvedColor !== false) { - // skip if resolved - return; - } - extResolvedColor = ext.resolveColor(color, realColor); - }); - - return extResolvedColor ? extResolvedColor : color; - } - - /** - * Checks if there is a color object, that it is valid and it is not a fallback - * @returns {boolean} - */ - - }, { - key: 'isInvalidColor', - value: function isInvalidColor() { - return !this.hasColor() || !this.color.isValid(); - } - - /** - * Returns true if the useAlpha option is exactly true, false otherwise - * @returns {boolean} - */ - - }, { - key: 'isAlphaEnabled', - value: function isAlphaEnabled() { - return this.colorpicker.options.useAlpha !== false; - } - - /** - * Returns true if the current color object is an instance of Color, false otherwise. - * @returns {boolean} - */ - - }, { - key: 'hasColor', - value: function hasColor() { - return this.color instanceof _ColorItem2.default; - } - }, { - key: 'fallback', - get: function get() { - return this.colorpicker.options.fallbackColor ? this.colorpicker.options.fallbackColor : this.hasColor() ? this.color : null; - } - - /** - * @returns {String|null} - */ - - }, { - key: 'format', - get: function get() { - if (this.colorpicker.options.format) { - return this.colorpicker.options.format; - } - - if (this.hasColor() && this.color.hasTransparency() && this.color.format.match(/^hex/)) { - return this.isAlphaEnabled() ? 'rgba' : 'hex'; - } - - if (this.hasColor()) { - return this.color.format; - } - - return 'rgb'; - } - - /** - * Internal color getter - * - * @type {ColorItem|null} - */ - - }, { - key: 'color', - get: function get() { - return this.colorpicker.element.data('color'); - } - - /** - * Internal color setter - * - * @ignore - * @param {ColorItem|null} value - */ - , - set: function set(value) { - this.colorpicker.element.data('color', value); - - if (value instanceof _ColorItem2.default && this.colorpicker.options.format === 'auto') { - // If format is 'auto', use the first parsed one from now on - this.colorpicker.options.format = this.color.format; - } - } - }]); - - return ColorHandler; -}(); - -exports.default = ColorHandler; -module.exports = exports.default; - -/***/ }), -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _jquery = __webpack_require__(0); - -var _jquery2 = _interopRequireDefault(_jquery); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -/** - * Handles everything related to the colorpicker UI - * @ignore - */ -var PickerHandler = function () { - /** - * @param {Colorpicker} colorpicker - */ - function PickerHandler(colorpicker) { - _classCallCheck(this, PickerHandler); - - /** - * @type {Colorpicker} - */ - this.colorpicker = colorpicker; - /** - * @type {jQuery} - */ - this.picker = null; - } - - _createClass(PickerHandler, [{ - key: 'bind', - value: function bind() { - /** - * @type {jQuery|HTMLElement} - */ - var picker = this.picker = (0, _jquery2.default)(this.options.template); - - if (this.options.customClass) { - picker.addClass(this.options.customClass); - } - - if (this.options.horizontal) { - picker.addClass('colorpicker-horizontal'); - } - - if (this._supportsAlphaBar()) { - this.options.useAlpha = true; - picker.addClass('colorpicker-with-alpha'); - } else { - this.options.useAlpha = false; - } - } - }, { - key: 'attach', - value: function attach() { - // Inject the colorpicker element into the DOM - var pickerParent = this.colorpicker.container ? this.colorpicker.container : null; - - if (pickerParent) { - this.picker.appendTo(pickerParent); - } - } - }, { - key: 'unbind', - value: function unbind() { - this.picker.remove(); - } - }, { - key: '_supportsAlphaBar', - value: function _supportsAlphaBar() { - return (this.options.useAlpha || this.colorpicker.colorHandler.hasColor() && this.color.hasTransparency()) && this.options.useAlpha !== false && (!this.options.format || this.options.format && !this.options.format.match(/^hex([36])?$/i)); - } - - /** - * Changes the color adjustment bars using the current color object information. - */ - - }, { - key: 'update', - value: function update() { - if (!this.colorpicker.colorHandler.hasColor()) { - return; - } - - var vertical = this.options.horizontal !== true, - slider = vertical ? this.options.sliders : this.options.slidersHorz; - - var saturationGuide = this.picker.find('.colorpicker-saturation .colorpicker-guide'), - hueGuide = this.picker.find('.colorpicker-hue .colorpicker-guide'), - alphaGuide = this.picker.find('.colorpicker-alpha .colorpicker-guide'); - - var hsva = this.color.toHsvaRatio(); - - // Set guides position - if (hueGuide.length) { - hueGuide.css(vertical ? 'top' : 'left', (vertical ? slider.hue.maxTop : slider.hue.maxLeft) * (1 - hsva.h)); - } - if (alphaGuide.length) { - alphaGuide.css(vertical ? 'top' : 'left', (vertical ? slider.alpha.maxTop : slider.alpha.maxLeft) * (1 - hsva.a)); - } - if (saturationGuide.length) { - saturationGuide.css({ - 'top': slider.saturation.maxTop - hsva.v * slider.saturation.maxTop, - 'left': hsva.s * slider.saturation.maxLeft - }); - } - - // Set saturation hue background - this.picker.find('.colorpicker-saturation').css('backgroundColor', this.color.getCloneHueOnly().toHexString()); // we only need hue - - // Set alpha color gradient - var hexColor = this.color.toHexString(); - - var alphaBg = ''; - - if (this.options.horizontal) { - alphaBg = 'linear-gradient(to right, ' + hexColor + ' 0%, transparent 100%)'; - } else { - alphaBg = 'linear-gradient(to bottom, ' + hexColor + ' 0%, transparent 100%)'; - } - - this.picker.find('.colorpicker-alpha-color').css('background', alphaBg); - } - }, { - key: 'options', - get: function get() { - return this.colorpicker.options; - } - }, { - key: 'color', - get: function get() { - return this.colorpicker.colorHandler.color; - } - }]); - - return PickerHandler; -}(); - -exports.default = PickerHandler; -module.exports = exports.default; - -/***/ }), -/* 24 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Handles everything related to the colorpicker addon - * @ignore - */ - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var AddonHandler = function () { - /** - * @param {Colorpicker} colorpicker - */ - function AddonHandler(colorpicker) { - _classCallCheck(this, AddonHandler); - - /** - * @type {Colorpicker} - */ - this.colorpicker = colorpicker; - /** - * @type {jQuery} - */ - this.addon = null; - } - - _createClass(AddonHandler, [{ - key: 'hasAddon', - value: function hasAddon() { - return !!this.addon; - } - }, { - key: 'bind', - value: function bind() { - /** - * @type {*|jQuery} - */ - this.addon = this.colorpicker.options.addon ? this.colorpicker.element.find(this.colorpicker.options.addon) : null; - - if (this.addon && this.addon.length === 0) { - // not found - this.addon = null; - } - } - }, { - key: 'unbind', - value: function unbind() { - if (this.hasAddon()) { - this.addon.off('.colorpicker'); - } - } - - /** - * If the addon element is present, its background color is updated - */ - - }, { - key: 'update', - value: function update() { - if (!this.colorpicker.colorHandler.hasColor() || !this.hasAddon()) { - return; - } - - var colorStr = this.colorpicker.colorHandler.getColorString(); - - var styles = { 'background': colorStr }; - - var icn = this.addon.find('i').eq(0); - - if (icn.length > 0) { - icn.css(styles); - } else { - this.addon.css(styles); - } - } - }]); - - return AddonHandler; -}(); - -exports.default = AddonHandler; -module.exports = exports.default; - -/***/ }) -/******/ ]); -}); -//# sourceMappingURL=bootstrap-colorpicker.js.map \ No newline at end of file diff --git a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js.map b/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js.map deleted file mode 100644 index 325018d0..00000000 --- a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://bootstrap-colorpicker/webpack/universalModuleDefinition","webpack://bootstrap-colorpicker/webpack/bootstrap","webpack://bootstrap-colorpicker/external {\"root\":\"jQuery\",\"commonjs2\":\"jquery\",\"commonjs\":\"jquery\",\"amd\":\"jquery\"}","webpack://bootstrap-colorpicker/./src/js/Extension.js","webpack://bootstrap-colorpicker/./src/js/ColorItem.js","webpack://bootstrap-colorpicker/./src/js/options.js","webpack://bootstrap-colorpicker/./src/js/extensions/Palette.js","webpack://bootstrap-colorpicker/./node_modules/color-name/index.js","webpack://bootstrap-colorpicker/./node_modules/color-convert/conversions.js","webpack://bootstrap-colorpicker/./src/js/plugin.js","webpack://bootstrap-colorpicker/./src/js/Colorpicker.js","webpack://bootstrap-colorpicker/./src/js/extensions/index.js","webpack://bootstrap-colorpicker/./src/js/extensions/Debugger.js","webpack://bootstrap-colorpicker/./src/js/extensions/Preview.js","webpack://bootstrap-colorpicker/./src/js/extensions/Swatches.js","webpack://bootstrap-colorpicker/./src/js/SliderHandler.js","webpack://bootstrap-colorpicker/./src/js/PopupHandler.js","webpack://bootstrap-colorpicker/./src/js/InputHandler.js","webpack://bootstrap-colorpicker/./node_modules/color/index.js","webpack://bootstrap-colorpicker/./node_modules/color-string/index.js","webpack://bootstrap-colorpicker/./node_modules/simple-swizzle/index.js","webpack://bootstrap-colorpicker/./node_modules/is-arrayish/index.js","webpack://bootstrap-colorpicker/./node_modules/color-convert/index.js","webpack://bootstrap-colorpicker/./node_modules/color-convert/route.js","webpack://bootstrap-colorpicker/./src/js/ColorHandler.js","webpack://bootstrap-colorpicker/./src/js/PickerHandler.js","webpack://bootstrap-colorpicker/./src/js/AddonHandler.js"],"names":["Extension","colorpicker","options","element","length","Error","on","$","proxy","onCreate","onDestroy","onUpdate","onChange","onInvalid","onShow","onHide","onEnable","onDisable","color","realColor","event","off","HSVAColor","h","s","v","a","isNaN","ColorItem","fn","args","arguments","_color","result","apply","QixColor","format","_original","replace","sanitizeFormat","valid","parse","_format","isHex","model","hue","saturation","value","alpha","hasAlpha","toObject","string","round","undefined","str","isValid","isDark","isLight","formula","hues","Array","isArray","colorFormulas","hasOwnProperty","colors","mainColor","forEach","levels","saturationv","push","Math","sanitizeString","e","String","match","toLowerCase","complementary","triad","tetrad","splitcomplement","sassVars","sliderSize","bar_size_short","columns","base_margin","customClass","fallbackColor","horizontal","inline","container","popover","animation","placement","fallbackPlacement","debug","input","addon","autoInputFallback","useHashPrefix","useAlpha","template","extensions","name","showText","sliders","selector","maxLeft","maxTop","callLeft","callTop","childSelector","slidersHorz","defaults","namesAsValues","Palette","extend","Object","keys","getLength","indexOf","toUpperCase","getValue","getName","defaultValue","plugin","Colorpicker","option","fnArgs","prototype","slice","call","isSingleElement","returnValue","$elements","each","$this","inst","data","isFunction","constructor","colorPickerIdCounter","root","self","colorHandler","pickerHandler","picker","id","lastEvent","alias","addClass","attr","disabled","inputHandler","InputHandler","ColorHandler","sliderHandler","SliderHandler","popupHandler","PopupHandler","PickerHandler","addonHandler","AddonHandler","init","trigger","bind","initExtensions","attach","update","isDisabled","disable","ext","registerExtension","ExtensionClass","config","unbind","removeClass","removeData","show","hide","toggle","val","ch","hasColor","equals","createColor","assureColor","enable","eventName","type","coreExtensions","Debugger","Preview","Swatches","eventCounter","hasInput","onChangeInput","logMessage","debugger","logArgs","log","elementInner","find","append","css","html","toRgbString","barTemplate","swatchTemplate","isEnabled","load","swatchContainer","isAliased","empty","$swatch","$sw","setValue","currentSlider","mousePointer","left","top","onMove","defaultOnMove","slider","cp","getFallbackColor","getClone","guideStyle","focus","sliderClasses","sliderName","join","pressed","moved","released","pageX","pageY","originalEvent","touches","target","zone","closest","is","parent","guide","get","offset","style","preventDefault","max","min","popoverTarget","popoverTip","clicking","hidding","showing","hasAddon","createPopover","reposition","document","onClickingInside","isOrIsInside","currentTarget","isClickingInside","_defaults","content","tip","fireShow","fireHide","isVisible","stopPropagation","isPopover","isHidden","hasClass","_initValue","onkeyup","onchange","map","item","getFormattedColor","prop","inputVal","getColorString","resolveColorDelegate","isInvalidColor","fallbackOnInvalid","isAlphaEnabled","fallback","console","warn","extResolvedColor","resolveColor","hasTransparency","_supportsAlphaBar","pickerParent","appendTo","remove","vertical","saturationGuide","hueGuide","alphaGuide","hsva","toHsvaRatio","getCloneHueOnly","toHexString","hexColor","alphaBg","colorStr","styles","icn","eq"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,gD;;;;;;;ACAa;;;;;;;;AAEb;;;;;;;;AAEA;;;IAGMA,S;AACJ;;;;AAIA,qBAAYC,WAAZ,EAAuC;AAAA,QAAdC,OAAc,uEAAJ,EAAI;;AAAA;;AACrC;;;;AAIA,SAAKD,WAAL,GAAmBA,WAAnB;AACA;;;;;AAKA,SAAKC,OAAL,GAAeA,OAAf;;AAEA,QAAI,EAAE,KAAKD,WAAL,CAAiBE,OAAjB,IAA4B,KAAKF,WAAL,CAAiBE,OAAjB,CAAyBC,MAAv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;;;;;;;;;6BAOSrB,I,EAA4B;AAAA,UAAtBqB,YAAsB,uEAAP,KAAO;;AACnC,UAAI,EAAE,OAAOrB,IAAP,KAAgB,QAAlB,KAA+B,CAAC,KAAKpG,OAAL,CAAa8D,MAAjD,EAAyD;AACvD,eAAO2D,YAAP;AACD;AACD,UAAI,KAAKzH,OAAL,CAAa8D,MAAb,CAAoBD,cAApB,CAAmCuC,IAAnC,CAAJ,EAA8C;AAC5C,eAAO,KAAKpG,OAAL,CAAa8D,MAAb,CAAoBsC,IAApB,CAAP;AACD;AACD,aAAOqB,YAAP;AACD;;;;EAvGmB3H,mB;;kBA0GPkH,O;;;;;;;;ACrJH;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvJA;AACA,kBAAkB,mBAAO,CAAC,CAAY;;AAEtC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO,2BAA2B;AAClC,OAAO,2BAA2B;AAClC,OAAO,2BAA2B;AAClC,OAAO,2BAA2B;AAClC,QAAQ,4BAA4B;AACpC,OAAO,2BAA2B;AAClC,OAAO,2BAA2B;AAClC,OAAO,2BAA2B;AAClC,OAAO,6BAA6B;AACpC,WAAW,iCAAiC;AAC5C,UAAU,gCAAgC;AAC1C,WAAW,iCAAiC;AAC5C,OAAO,qCAAqC;AAC5C,SAAS,2CAA2C;AACpD,QAAQ;AACR;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,qDAAqD,gBAAgB;AACrE,mDAAmD,cAAc;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,EAAE;AACF;AACA,EAAE;AACF;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA,gBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,uBAAuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,OAAO,QAAQ;AAC/B,gBAAgB,OAAO,QAAQ;AAC/B,iBAAiB,OAAO,OAAO;AAC/B,iBAAiB,OAAO,OAAO;AAC/B,gBAAgB,QAAQ,OAAO;AAC/B,gBAAgB,QAAQ,OAAO;AAC/B;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,sEAAsE;;AAEtE;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,+CAA+C,EAAE,UAAU,EAAE;AAC7D;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,EAAE;AACF;AACA;;AAEA;AACA;AACA;;AAEA;AAC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EA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;;AAED;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,aAAa,mBAAmB;AAChC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,aAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA,iBAAiB,cAAc;AAC/B;AACA;;AAEA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA,qEAAqE,kCAAkC,EAAE;;AAEzG;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;;AAEA;AACA,iBAAiB,gBAAgB;AACjC;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA,EAAE;;AAEF;AACA;AACA,iBAAiB,OAAO;AACxB;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA,EAAE;;AAEF;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAgB,YAAY;AAC5B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACjeA;AACA,iBAAiB,mBAAO,CAAC,CAAY;AACrC,cAAc,mBAAO,CAAC,EAAgB;;AAEtC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,OAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,SAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA,yBAAyB,IAAI;AAC7B,wBAAwB,EAAE,WAAW,EAAE;AACvC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,aAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;;AAEA,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF,aAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,EAAE;AACF;AACA;;AAEA,YAAY,OAAO;AACnB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;ACzOa;;AAEb,iBAAiB,mBAAO,CAAC,EAAa;;AAEtC;AACA;;AAEA;AACA;;AAEA,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;2BAEM;AACL;;;AAGA,WAAKA,KAAL,GAAa,KAAK/F,WAAL,CAAiBC,OAAjB,CAAyB8F,KAAzB,GACX,KAAK/F,WAAL,CAAiBE,OAAjB,CAAyBsM,IAAzB,CAA8B,KAAKxM,WAAL,CAAiBC,OAAjB,CAAyB8F,KAAvD,CADW,GACqD,IADlE;;AAGA,UAAI,KAAKA,KAAL,IAAe,KAAKA,KAAL,CAAW5F,MAAX,KAAsB,CAAzC,EAA6C;AAC3C;AACA,aAAK4F,KAAL,GAAa,IAAb;AACD;AACF;;;6BAEQ;AACP,UAAI,KAAK+J,QAAL,EAAJ,EAAqB;AACnB,aAAK/J,KAAL,CAAW3E,GAAX,CAAe,cAAf;AACD;AACF;;AAED;;;;;;6BAGS;AACP,UAAI,CAAC,KAAKpB,WAAL,CAAiB8I,YAAjB,CAA8BuC,QAA9B,EAAD,IAA6C,CAAC,KAAKyE,QAAL,EAAlD,EAAmE;AACjE;AACD;;AAED,UAAImD,WAAW,KAAKjT,WAAL,CAAiB8I,YAAjB,CAA8B0I,cAA9B,EAAf;;AAEA,UAAI0B,SAAS,EAAC,cAAcD,QAAf,EAAb;;AAEA,UAAIE,MAAM,KAAKpN,KAAL,CAAWyG,IAAX,CAAgB,GAAhB,EAAqB4G,EAArB,CAAwB,CAAxB,CAAV;;AAEA,UAAID,IAAIhT,MAAJ,GAAa,CAAjB,EAAoB;AAClBgT,YAAIzG,GAAJ,CAAQwG,MAAR;AACD,OAFD,MAEO;AACL,aAAKnN,KAAL,CAAW2G,GAAX,CAAewG,MAAf;AACD;AACF;;;;;;kBAGYlJ,Y","file":"bootstrap-colorpicker.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"jquery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"bootstrap-colorpicker\", [\"jquery\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"bootstrap-colorpicker\"] = factory(require(\"jquery\"));\n\telse\n\t\troot[\"bootstrap-colorpicker\"] = factory(root[\"jQuery\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Colorpicker extension class.\n */\nclass Extension {\n /**\n * @param {Colorpicker} colorpicker\n * @param {Object} options\n */\n constructor(colorpicker, options = {}) {\n /**\n * The colorpicker instance\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * Extension options\n *\n * @type {Object}\n */\n this.options = options;\n\n if (!(this.colorpicker.element && this.colorpicker.element.length)) {\n throw new Error('Extension: this.colorpicker.element is not valid');\n }\n\n this.colorpicker.element.on('colorpickerCreate.colorpicker-ext', $.proxy(this.onCreate, this));\n this.colorpicker.element.on('colorpickerDestroy.colorpicker-ext', $.proxy(this.onDestroy, this));\n this.colorpicker.element.on('colorpickerUpdate.colorpicker-ext', $.proxy(this.onUpdate, this));\n this.colorpicker.element.on('colorpickerChange.colorpicker-ext', $.proxy(this.onChange, this));\n this.colorpicker.element.on('colorpickerInvalid.colorpicker-ext', $.proxy(this.onInvalid, this));\n this.colorpicker.element.on('colorpickerShow.colorpicker-ext', $.proxy(this.onShow, this));\n this.colorpicker.element.on('colorpickerHide.colorpicker-ext', $.proxy(this.onHide, this));\n this.colorpicker.element.on('colorpickerEnable.colorpicker-ext', $.proxy(this.onEnable, this));\n this.colorpicker.element.on('colorpickerDisable.colorpicker-ext', $.proxy(this.onDisable, this));\n }\n\n /**\n * Function called every time a new color needs to be created.\n * Return false to skip this resolver and continue with other extensions' ones\n * or return anything else to consider the color resolved.\n *\n * @param {ColorItem|String|*} color\n * @param {boolean} realColor if true, the color should resolve into a real (not named) color code\n * @return {ColorItem|String|*}\n */\n resolveColor(color, realColor = true) {\n return false;\n }\n\n /**\n * Method called after the colorpicker is created\n *\n * @listens Colorpicker#colorpickerCreate\n * @param {Event} event\n */\n onCreate(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is destroyed\n *\n * @listens Colorpicker#colorpickerDestroy\n * @param {Event} event\n */\n onDestroy(event) {\n this.colorpicker.element.off('.colorpicker-ext');\n }\n\n /**\n * Method called after the colorpicker is updated\n *\n * @listens Colorpicker#colorpickerUpdate\n * @param {Event} event\n */\n onUpdate(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker color is changed\n *\n * @listens Colorpicker#colorpickerChange\n * @param {Event} event\n */\n onChange(event) {\n // to be extended\n }\n\n /**\n * Method called when the colorpicker color is invalid\n *\n * @listens Colorpicker#colorpickerInvalid\n * @param {Event} event\n */\n onInvalid(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is hidden\n *\n * @listens Colorpicker#colorpickerHide\n * @param {Event} event\n */\n onHide(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is shown\n *\n * @listens Colorpicker#colorpickerShow\n * @param {Event} event\n */\n onShow(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is disabled\n *\n * @listens Colorpicker#colorpickerDisable\n * @param {Event} event\n */\n onDisable(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is enabled\n *\n * @listens Colorpicker#colorpickerEnable\n * @param {Event} event\n */\n onEnable(event) {\n // to be extended\n }\n}\n\nexport default Extension;\n","/**\n * Color manipulation class, specific for Bootstrap Colorpicker\n */\nimport QixColor from 'color';\n\n/**\n * HSVA color data class, containing the hue, saturation, value and alpha\n * information.\n */\nclass HSVAColor {\n /**\n * @param {number|int} h\n * @param {number|int} s\n * @param {number|int} v\n * @param {number|int} a\n */\n constructor(h, s, v, a) {\n this.h = isNaN(h) ? 0 : h;\n this.s = isNaN(s) ? 0 : s;\n this.v = isNaN(v) ? 0 : v;\n this.a = isNaN(h) ? 1 : a;\n }\n\n toString() {\n return `${this.h}, ${this.s}%, ${this.v}%, ${this.a}`;\n }\n}\n\n/**\n * HSVA color manipulation\n */\nclass ColorItem {\n\n /**\n * Returns the HSVAColor class\n *\n * @static\n * @example let colorData = new ColorItem.HSVAColor(360, 100, 100, 1);\n * @returns {HSVAColor}\n */\n static get HSVAColor() {\n return HSVAColor;\n }\n\n /**\n * Applies a method of the QixColor API and returns a new Color object or\n * the return value of the method call.\n *\n * If no argument is provided, the internal QixColor object is returned.\n *\n * @param {String} fn QixColor function name\n * @param args QixColor function arguments\n * @example let darkerColor = color.api('darken', 0.25);\n * @example let luminosity = color.api('luminosity');\n * @example color = color.api('negate');\n * @example let qColor = color.api().negate();\n * @returns {ColorItem|QixColor|*}\n */\n api(fn, ...args) {\n if (arguments.length === 0) {\n return this._color;\n }\n\n let result = this._color[fn].apply(this._color, args);\n\n if (!(result instanceof QixColor)) {\n // return result of the method call\n return result;\n }\n\n return new ColorItem(result, this.format);\n }\n\n /**\n * Returns the original ColorItem constructor data,\n * plus a 'valid' flag to know if it's valid or not.\n *\n * @returns {{color: *, format: String, valid: boolean}}\n */\n get original() {\n return this._original;\n }\n\n /**\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data\n * @param {String|null} format Color model to convert to by default. Supported: 'rgb', 'hsl', 'hex'.\n */\n constructor(color = null, format = null) {\n this.replace(color, format);\n }\n\n /**\n * Replaces the internal QixColor object with a new one.\n * This also replaces the internal original color data.\n *\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data to be parsed (if needed)\n * @param {String|null} format Color model to convert to by default. Supported: 'rgb', 'hsl', 'hex'.\n * @example color.replace('rgb(255,0,0)', 'hsl');\n * @example color.replace(hsvaColorData);\n */\n replace(color, format = null) {\n format = ColorItem.sanitizeFormat(format);\n\n /**\n * @type {{color: *, format: String}}\n * @private\n */\n this._original = {\n color: color,\n format: format,\n valid: true\n };\n /**\n * @type {QixColor}\n * @private\n */\n this._color = ColorItem.parse(color);\n\n if (this._color === null) {\n this._color = QixColor();\n this._original.valid = false;\n return;\n }\n\n /**\n * @type {*|string}\n * @private\n */\n this._format = format ? format :\n (ColorItem.isHex(color) ? 'hex' : this._color.model);\n }\n\n /**\n * Parses the color returning a Qix Color object or null if cannot be\n * parsed.\n *\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data\n * @example let qColor = ColorItem.parse('rgb(255,0,0)');\n * @static\n * @returns {QixColor|null}\n */\n static parse(color) {\n if (color instanceof QixColor) {\n return color;\n }\n\n if (color instanceof ColorItem) {\n return color._color;\n }\n\n let format = null;\n\n if (color instanceof HSVAColor) {\n color = [color.h, color.s, color.v, isNaN(color.a) ? 1 : color.a];\n } else {\n color = ColorItem.sanitizeString(color);\n }\n\n if (color === null) {\n return null;\n }\n\n if (Array.isArray(color)) {\n format = 'hsv';\n }\n\n try {\n return QixColor(color, format);\n } catch (e) {\n return null;\n }\n }\n\n /**\n * Sanitizes a color string, adding missing hash to hexadecimal colors\n * and converting 'transparent' to a color code.\n *\n * @param {String|*} str Color string\n * @example let colorStr = ColorItem.sanitizeString('ffaa00');\n * @static\n * @returns {String|*}\n */\n static sanitizeString(str) {\n if (!(typeof str === 'string' || str instanceof String)) {\n return str;\n }\n\n if (str.match(/^[0-9a-f]{2,}$/i)) {\n return `#${str}`;\n }\n\n if (str.toLowerCase() === 'transparent') {\n return '#FFFFFF00';\n }\n\n return str;\n }\n\n /**\n * Detects if a value is a string and a color in hexadecimal format (in any variant).\n *\n * @param {String} str\n * @example ColorItem.isHex('rgba(0,0,0)'); // false\n * @example ColorItem.isHex('ffaa00'); // true\n * @example ColorItem.isHex('#ffaa00'); // true\n * @static\n * @returns {boolean}\n */\n static isHex(str) {\n if (!(typeof str === 'string' || str instanceof String)) {\n return false;\n }\n\n return !!str.match(/^#?[0-9a-f]{2,}$/i);\n }\n\n /**\n * Sanitizes a color format to one supported by web browsers.\n * Returns an empty string of the format can't be recognised.\n *\n * @param {String|*} format\n * @example ColorItem.sanitizeFormat('rgba'); // 'rgb'\n * @example ColorItem.isHex('hex8'); // 'hex'\n * @example ColorItem.isHex('invalid'); // ''\n * @static\n * @returns {String} 'rgb', 'hsl', 'hex' or ''.\n */\n static sanitizeFormat(format) {\n switch (format) {\n case 'hex':\n case 'hex3':\n case 'hex4':\n case 'hex6':\n case 'hex8':\n return 'hex';\n case 'rgb':\n case 'rgba':\n case 'keyword':\n case 'name':\n return 'rgb';\n case 'hsl':\n case 'hsla':\n case 'hsv':\n case 'hsva':\n case 'hwb': // HWB this is supported by Qix Color, but not by browsers\n case 'hwba':\n return 'hsl';\n default :\n return '';\n }\n }\n\n /**\n * Returns true if the color is valid, false if not.\n *\n * @returns {boolean}\n */\n isValid() {\n return this._original.valid === true;\n }\n\n /**\n * Hue value from 0 to 360\n *\n * @returns {int}\n */\n get hue() {\n return this._color.hue();\n }\n\n /**\n * Saturation value from 0 to 100\n *\n * @returns {int}\n */\n get saturation() {\n return this._color.saturationv();\n }\n\n /**\n * Value channel value from 0 to 100\n *\n * @returns {int}\n */\n get value() {\n return this._color.value();\n }\n\n /**\n * Alpha value from 0.0 to 1.0\n *\n * @returns {number}\n */\n get alpha() {\n let a = this._color.alpha();\n\n return isNaN(a) ? 1 : a;\n }\n\n /**\n * Default color format to convert to when calling toString() or string()\n *\n * @returns {String} 'rgb', 'hsl', 'hex' or ''\n */\n get format() {\n return this._format ? this._format : this._color.model;\n }\n\n /**\n * Sets the hue value\n *\n * @param {int} value Integer from 0 to 360\n */\n set hue(value) {\n this._color = this._color.hue(value);\n }\n\n /**\n * Sets the hue ratio, where 1.0 is 0, 0.5 is 180 and 0.0 is 360.\n *\n * @ignore\n * @param {number} h Ratio from 1.0 to 0.0\n */\n setHueRatio(h) {\n this.hue = ((1 - h) * 360);\n }\n\n /**\n * Sets the saturation value\n *\n * @param {int} value Integer from 0 to 100\n */\n set saturation(value) {\n this._color = this._color.saturationv(value);\n }\n\n /**\n * Sets the saturation ratio, where 1.0 is 100 and 0.0 is 0.\n *\n * @ignore\n * @param {number} s Ratio from 0.0 to 1.0\n */\n setSaturationRatio(s) {\n this.saturation = (s * 100);\n }\n\n /**\n * Sets the 'value' channel value\n *\n * @param {int} value Integer from 0 to 100\n */\n set value(value) {\n this._color = this._color.value(value);\n }\n\n /**\n * Sets the value ratio, where 1.0 is 0 and 0.0 is 100.\n *\n * @ignore\n * @param {number} v Ratio from 1.0 to 0.0\n */\n setValueRatio(v) {\n this.value = ((1 - v) * 100);\n }\n\n /**\n * Sets the alpha value. It will be rounded to 2 decimals.\n *\n * @param {int} value Float from 0.0 to 1.0\n */\n set alpha(value) {\n // 2 decimals max\n this._color = this._color.alpha(Math.round(value * 100) / 100);\n }\n\n /**\n * Sets the alpha ratio, where 1.0 is 0.0 and 0.0 is 1.0.\n *\n * @ignore\n * @param {number} a Ratio from 1.0 to 0.0\n */\n setAlphaRatio(a) {\n this.alpha = 1 - a;\n }\n\n /**\n * Sets the default color format\n *\n * @param {String} value Supported: 'rgb', 'hsl', 'hex'\n */\n set format(value) {\n this._format = ColorItem.sanitizeFormat(value);\n }\n\n /**\n * Returns true if the saturation value is zero, false otherwise\n *\n * @returns {boolean}\n */\n isDesaturated() {\n return this.saturation === 0;\n }\n\n /**\n * Returns true if the alpha value is zero, false otherwise\n *\n * @returns {boolean}\n */\n isTransparent() {\n return this.alpha === 0;\n }\n\n /**\n * Returns true if the alpha value is numeric and less than 1, false otherwise\n *\n * @returns {boolean}\n */\n hasTransparency() {\n return this.hasAlpha() && (this.alpha < 1);\n }\n\n /**\n * Returns true if the alpha value is numeric, false otherwise\n *\n * @returns {boolean}\n */\n hasAlpha() {\n return !isNaN(this.alpha);\n }\n\n /**\n * Returns a new HSVAColor object, based on the current color\n *\n * @returns {HSVAColor}\n */\n toObject() {\n return new HSVAColor(this.hue, this.saturation, this.value, this.alpha);\n }\n\n /**\n * Alias of toObject()\n *\n * @returns {HSVAColor}\n */\n toHsva() {\n return this.toObject();\n }\n\n /**\n * Returns a new HSVAColor object with the ratio values (from 0.0 to 1.0),\n * based on the current color.\n *\n * @ignore\n * @returns {HSVAColor}\n */\n toHsvaRatio() {\n return new HSVAColor(\n this.hue / 360,\n this.saturation / 100,\n this.value / 100,\n this.alpha\n );\n }\n\n /**\n * Converts the current color to its string representation,\n * using the internal format of this instance.\n *\n * @returns {String}\n */\n toString() {\n return this.string();\n }\n\n /**\n * Converts the current color to its string representation,\n * using the given format.\n *\n * @param {String|null} format Format to convert to. If empty or null, the internal format will be used.\n * @returns {String}\n */\n string(format = null) {\n format = ColorItem.sanitizeFormat(format ? format : this.format);\n\n if (!format) {\n return this._color.round().string();\n }\n\n if (this._color[format] === undefined) {\n throw new Error(`Unsupported color format: '${format}'`);\n }\n\n let str = this._color[format]();\n\n return str.round ? str.round().string() : str;\n }\n\n /**\n * Returns true if the given color values equals this one, false otherwise.\n * The format is not compared.\n * If any of the colors is invalid, the result will be false.\n *\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data\n *\n * @returns {boolean}\n */\n equals(color) {\n color = (color instanceof ColorItem) ? color : new ColorItem(color);\n\n if (!color.isValid() || !this.isValid()) {\n return false;\n }\n\n return (\n this.hue === color.hue &&\n this.saturation === color.saturation &&\n this.value === color.value &&\n this.alpha === color.alpha\n );\n }\n\n /**\n * Creates a copy of this instance\n *\n * @returns {ColorItem}\n */\n getClone() {\n return new ColorItem(this._color, this.format);\n }\n\n /**\n * Creates a copy of this instance, only copying the hue value,\n * and setting the others to its max value.\n *\n * @returns {ColorItem}\n */\n getCloneHueOnly() {\n return new ColorItem([this.hue, 100, 100, 1], this.format);\n }\n\n /**\n * Creates a copy of this instance setting the alpha to the max.\n *\n * @returns {ColorItem}\n */\n getCloneOpaque() {\n return new ColorItem(this._color.alpha(1), this.format);\n }\n\n /**\n * Converts the color to a RGB string\n *\n * @returns {String}\n */\n toRgbString() {\n return this.string('rgb');\n }\n\n /**\n * Converts the color to a Hexadecimal string\n *\n * @returns {String}\n */\n toHexString() {\n return this.string('hex');\n }\n\n /**\n * Converts the color to a HSL string\n *\n * @returns {String}\n */\n toHslString() {\n return this.string('hsl');\n }\n\n /**\n * Returns true if the color is dark, false otherwhise.\n * This is useful to decide a text color.\n *\n * @returns {boolean}\n */\n isDark() {\n return this._color.isDark();\n }\n\n /**\n * Returns true if the color is light, false otherwhise.\n * This is useful to decide a text color.\n *\n * @returns {boolean}\n */\n isLight() {\n return this._color.isLight();\n }\n\n /**\n * Generates a list of colors using the given hue-based formula or the given array of hue values.\n * Hue formulas can be extended using ColorItem.colorFormulas static property.\n *\n * @param {String|Number[]} formula Examples: 'complementary', 'triad', 'tetrad', 'splitcomplement', [180, 270]\n * @example let colors = color.generate('triad');\n * @example let colors = color.generate([45, 80, 112, 200]);\n * @returns {ColorItem[]}\n */\n generate(formula) {\n let hues = [];\n\n if (Array.isArray(formula)) {\n hues = formula;\n } else if (!ColorItem.colorFormulas.hasOwnProperty(formula)) {\n throw new Error(`No color formula found with the name '${formula}'.`);\n } else {\n hues = ColorItem.colorFormulas[formula];\n }\n\n let colors = [], mainColor = this._color, format = this.format;\n\n hues.forEach(function (hue) {\n let levels = [\n hue ? ((mainColor.hue() + hue) % 360) : mainColor.hue(),\n mainColor.saturationv(),\n mainColor.value(),\n mainColor.alpha()\n ];\n\n colors.push(new ColorItem(levels, format));\n });\n\n return colors;\n }\n}\n\n/**\n * List of hue-based color formulas used by ColorItem.prototype.generate()\n *\n * @static\n * @type {{complementary: number[], triad: number[], tetrad: number[], splitcomplement: number[]}}\n */\nColorItem.colorFormulas = {\n complementary: [180],\n triad: [0, 120, 240],\n tetrad: [0, 90, 180, 270],\n splitcomplement: [0, 72, 216]\n};\n\nexport default ColorItem;\n\nexport {\n HSVAColor,\n ColorItem\n};\n","'use strict';\n/**\n * @module\n */\n\n// adjust these values accordingly to the sass vars\nlet sassVars = {\n 'bar_size_short': 16,\n 'base_margin': 6,\n 'columns': 6\n};\n\nlet sliderSize = (sassVars.bar_size_short * sassVars.columns) + (sassVars.base_margin * (sassVars.columns - 1));\n\n/**\n * Colorpicker default options\n */\nexport default {\n /**\n * Custom class to be added to the `.colorpicker-element` element\n *\n * @type {String|null}\n * @default null\n */\n customClass: null,\n /**\n * Sets a initial color, ignoring the one from the element/input value or the data-color attribute.\n *\n * @type {(String|ColorItem|boolean)}\n * @default false\n */\n color: false,\n /**\n * Fallback color to use when the given color is invalid.\n * If false, the latest valid color will be used as a fallback.\n *\n * @type {String|ColorItem|boolean}\n * @default false\n */\n fallbackColor: false,\n /**\n * Forces an specific color format. If 'auto', it will be automatically detected the first time only,\n * but if null it will be always recalculated.\n *\n * Note that the ending 'a' of the format meaning \"alpha\" has currently no effect, meaning that rgb is the same as\n * rgba excepting if the alpha channel is disabled (see useAlpha).\n *\n * @type {('rgb'|'hex'|'hsl'|'auto'|null)}\n * @default 'auto'\n */\n format: 'auto',\n /**\n * Horizontal mode layout.\n *\n * If true, the hue and alpha channel bars will be rendered horizontally, above the saturation selector.\n *\n * @type {boolean}\n * @default false\n */\n horizontal: false,\n /**\n * Forces to show the colorpicker as an inline element.\n *\n * Note that if there is no container specified, the inline element\n * will be added to the body, so you may want to set the container option.\n *\n * @type {boolean}\n * @default false\n */\n inline: false,\n /**\n * Container where the colorpicker is appended to in the DOM.\n *\n * If is a string (CSS selector), the colorpicker will be placed inside this container.\n * If true, the `.colorpicker-element` element itself will be used as the container.\n * If false, the document body is used as the container, unless it is a popover (in this case it is appended to the\n * popover body instead).\n *\n * @type {String|boolean}\n * @default false\n */\n container: false,\n /**\n * Bootstrap Popover options.\n * The trigger, content and html options are always ignored.\n *\n * @type {boolean}\n * @default Object\n */\n popover: {\n animation: true,\n placement: 'bottom',\n fallbackPlacement: 'flip'\n },\n /**\n * If true, loads the 'debugger' extension automatically, which logs the events in the console\n * @type {boolean}\n * @default false\n */\n debug: false,\n /**\n * Child CSS selector for the colorpicker input.\n *\n * @type {String}\n * @default 'input'\n */\n input: 'input',\n /**\n * Child CSS selector for the colorpicker addon.\n * If it exists, the child element background will be changed on color change.\n *\n * @type {String}\n * @default '.colorpicker-trigger, .colorpicker-input-addon'\n */\n addon: '.colorpicker-input-addon',\n /**\n * If true, the input content will be replaced always with a valid color,\n * if false, the invalid color will be left in the input,\n * while the internal color object will still resolve into a valid one.\n *\n * @type {boolean}\n * @default true\n */\n autoInputFallback: true,\n /**\n * If true a hash will be prepended to hexadecimal colors.\n * If false, the hash will be removed.\n * This only affects the input values in hexadecimal format.\n *\n * @type {boolean}\n * @default true\n */\n useHashPrefix: true,\n /**\n * If true, the alpha channel bar will be displayed no matter what.\n *\n * If false, it will be always hidden and alpha channel will be disabled also programmatically, meaning that\n * the selected or typed color will be always opaque.\n *\n * If null, the alpha channel will be automatically disabled/enabled depending if the initial color format supports\n * alpha or not.\n *\n * @type {boolean}\n * @default true\n */\n useAlpha: true,\n /**\n * Colorpicker widget template\n * @type {String}\n * @example\n * \n *
\n *
\n *
\n *
\n *
\n * \n *
\n *
\n */\n template: `
\n
\n
\n
\n
\n \n
\n
`,\n /**\n *\n * Associative object with the extension class name and its config.\n * Colorpicker comes with many bundled extensions: debugger, palette, preview and swatches (a superset of palette).\n *\n * @type {Object[]}\n * @example\n * extensions: [\n * {\n * name: 'swatches'\n * options: {\n * colors: {\n * 'primary': '#337ab7',\n * 'success': '#5cb85c',\n * 'info': '#5bc0de',\n * 'warning': '#f0ad4e',\n * 'danger': '#d9534f'\n * },\n * namesAsValues: true\n * }\n * }\n * ]\n */\n extensions: [\n {\n name: 'preview',\n options: {\n showText: true\n }\n }\n ],\n /**\n * Vertical sliders configuration\n * @type {Object}\n */\n sliders: {\n saturation: {\n selector: '.colorpicker-saturation',\n maxLeft: sliderSize,\n maxTop: sliderSize,\n callLeft: 'setSaturationRatio',\n callTop: 'setValueRatio'\n },\n hue: {\n selector: '.colorpicker-hue',\n maxLeft: 0,\n maxTop: sliderSize,\n callLeft: false,\n callTop: 'setHueRatio'\n },\n alpha: {\n selector: '.colorpicker-alpha',\n childSelector: '.colorpicker-alpha-color',\n maxLeft: 0,\n maxTop: sliderSize,\n callLeft: false,\n callTop: 'setAlphaRatio'\n }\n },\n /**\n * Horizontal sliders configuration\n * @type {Object}\n */\n slidersHorz: {\n saturation: {\n selector: '.colorpicker-saturation',\n maxLeft: sliderSize,\n maxTop: sliderSize,\n callLeft: 'setSaturationRatio',\n callTop: 'setValueRatio'\n },\n hue: {\n selector: '.colorpicker-hue',\n maxLeft: sliderSize,\n maxTop: 0,\n callLeft: 'setHueRatio',\n callTop: false\n },\n alpha: {\n selector: '.colorpicker-alpha',\n childSelector: '.colorpicker-alpha-color',\n maxLeft: sliderSize,\n maxTop: 0,\n callLeft: 'setAlphaRatio',\n callTop: false\n }\n }\n};\n","'use strict';\n\nimport Extension from 'Extension';\nimport $ from 'jquery';\n\nlet defaults = {\n /**\n * Key-value pairs defining a color alias and its CSS color representation.\n *\n * They can also be just an array of values. In that case, no special names are used, only the real colors.\n *\n * @type {Object|Array}\n * @default null\n * @example\n * {\n * 'black': '#000000',\n * 'white': '#ffffff',\n * 'red': '#FF0000',\n * 'default': '#777777',\n * 'primary': '#337ab7',\n * 'success': '#5cb85c',\n * 'info': '#5bc0de',\n * 'warning': '#f0ad4e',\n * 'danger': '#d9534f'\n * }\n *\n * @example ['#f0ad4e', '#337ab7', '#5cb85c']\n */\n colors: null,\n /**\n * If true, when a color swatch is selected the name (alias) will be used as input value,\n * otherwise the swatch real color value will be used.\n *\n * @type {boolean}\n * @default true\n */\n namesAsValues: true\n};\n\n/**\n * Palette extension\n * @ignore\n */\nclass Palette extends Extension {\n\n /**\n * @returns {Object|Array}\n */\n get colors() {\n return this.options.colors;\n }\n\n constructor(colorpicker, options = {}) {\n super(colorpicker, $.extend(true, {}, defaults, options));\n\n if ((!Array.isArray(this.options.colors)) && (typeof this.options.colors !== 'object')) {\n this.options.colors = null;\n }\n }\n\n /**\n * @returns {int}\n */\n getLength() {\n if (!this.options.colors) {\n return 0;\n }\n\n if (Array.isArray(this.options.colors)) {\n return this.options.colors.length;\n }\n\n if (typeof this.options.colors === 'object') {\n return Object.keys(this.options.colors).length;\n }\n\n return 0;\n }\n\n resolveColor(color, realColor = true) {\n if (this.getLength() <= 0) {\n return false;\n }\n\n // Array of colors\n if (Array.isArray(this.options.colors)) {\n if (this.options.colors.indexOf(color) >= 0) {\n return color;\n }\n if (this.options.colors.indexOf(color.toUpperCase()) >= 0) {\n return color.toUpperCase();\n }\n if (this.options.colors.indexOf(color.toLowerCase()) >= 0) {\n return color.toLowerCase();\n }\n return false;\n }\n\n if (typeof this.options.colors !== 'object') {\n return false;\n }\n\n // Map of objects\n if (!this.options.namesAsValues || realColor) {\n return this.getValue(color, false);\n }\n return this.getName(color, this.getName('#' + color));\n }\n\n /**\n * Given a color value, returns the corresponding color name or defaultValue.\n *\n * @param {String} value\n * @param {*} defaultValue\n * @returns {*}\n */\n getName(value, defaultValue = false) {\n if (!(typeof value === 'string') || !this.options.colors) {\n return defaultValue;\n }\n for (let name in this.options.colors) {\n if (!this.options.colors.hasOwnProperty(name)) {\n continue;\n }\n if (this.options.colors[name].toLowerCase() === value.toLowerCase()) {\n return name;\n }\n }\n return defaultValue;\n }\n\n /**\n * Given a color name, returns the corresponding color value or defaultValue.\n *\n * @param {String} name\n * @param {*} defaultValue\n * @returns {*}\n */\n getValue(name, defaultValue = false) {\n if (!(typeof name === 'string') || !this.options.colors) {\n return defaultValue;\n }\n if (this.options.colors.hasOwnProperty(name)) {\n return this.options.colors[name];\n }\n return defaultValue;\n }\n}\n\nexport default Palette;\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\nvar cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nvar reverseKeywords = {};\nfor (var key in cssKeywords) {\n\tif (cssKeywords.hasOwnProperty(key)) {\n\t\treverseKeywords[cssKeywords[key]] = key;\n\t}\n}\n\nvar convert = module.exports = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\n// hide .channels and .labels properties\nfor (var model in convert) {\n\tif (convert.hasOwnProperty(model)) {\n\t\tif (!('channels' in convert[model])) {\n\t\t\tthrow new Error('missing channels property: ' + model);\n\t\t}\n\n\t\tif (!('labels' in convert[model])) {\n\t\t\tthrow new Error('missing channel labels property: ' + model);\n\t\t}\n\n\t\tif (convert[model].labels.length !== convert[model].channels) {\n\t\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t\t}\n\n\t\tvar channels = convert[model].channels;\n\t\tvar labels = convert[model].labels;\n\t\tdelete convert[model].channels;\n\t\tdelete convert[model].labels;\n\t\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\t\tObject.defineProperty(convert[model], 'labels', {value: labels});\n\t}\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar min = Math.min(r, g, b);\n\tvar max = Math.max(r, g, b);\n\tvar delta = max - min;\n\tvar h;\n\tvar s;\n\tvar l;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tl = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tvar rdif;\n\tvar gdif;\n\tvar bdif;\n\tvar h;\n\tvar s;\n\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar v = Math.max(r, g, b);\n\tvar diff = v - Math.min(r, g, b);\n\tvar diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = s = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tvar r = rgb[0];\n\tvar g = rgb[1];\n\tvar b = rgb[2];\n\tvar h = convert.rgb.hsl(rgb)[0];\n\tvar w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar c;\n\tvar m;\n\tvar y;\n\tvar k;\n\n\tk = Math.min(1 - r, 1 - g, 1 - b);\n\tc = (1 - r - k) / (1 - k) || 0;\n\tm = (1 - g - k) / (1 - k) || 0;\n\ty = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\n/**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\nfunction comparativeDistance(x, y) {\n\treturn (\n\t\tMath.pow(x[0] - y[0], 2) +\n\t\tMath.pow(x[1] - y[1], 2) +\n\t\tMath.pow(x[2] - y[2], 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tvar reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tvar currentClosestDistance = Infinity;\n\tvar currentClosestKeyword;\n\n\tfor (var keyword in cssKeywords) {\n\t\tif (cssKeywords.hasOwnProperty(keyword)) {\n\t\t\tvar value = cssKeywords[keyword];\n\n\t\t\t// Compute comparative distance\n\t\t\tvar distance = comparativeDistance(rgb, value);\n\n\t\t\t// Check if its less, if so set as closest\n\t\t\tif (distance < currentClosestDistance) {\n\t\t\t\tcurrentClosestDistance = distance;\n\t\t\t\tcurrentClosestKeyword = keyword;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\n\t// assume sRGB\n\tr = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);\n\n\tvar x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tvar y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tvar z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tvar xyz = convert.rgb.xyz(rgb);\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tvar h = hsl[0] / 360;\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar t1;\n\tvar t2;\n\tvar t3;\n\tvar rgb;\n\tvar val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tt1 = 2 * l - t2;\n\n\trgb = [0, 0, 0];\n\tfor (var i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tvar h = hsl[0];\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar smin = s;\n\tvar lmin = Math.max(l, 0.01);\n\tvar sv;\n\tvar v;\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tv = (l + s) / 2;\n\tsv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tvar h = hsv[0] / 60;\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar hi = Math.floor(h) % 6;\n\n\tvar f = h - Math.floor(h);\n\tvar p = 255 * v * (1 - s);\n\tvar q = 255 * v * (1 - (s * f));\n\tvar t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tvar h = hsv[0];\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar vmin = Math.max(v, 0.01);\n\tvar lmin;\n\tvar sl;\n\tvar l;\n\n\tl = (2 - s) * v;\n\tlmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tvar h = hwb[0] / 360;\n\tvar wh = hwb[1] / 100;\n\tvar bl = hwb[2] / 100;\n\tvar ratio = wh + bl;\n\tvar i;\n\tvar v;\n\tvar f;\n\tvar n;\n\n\t// wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\ti = Math.floor(6 * h);\n\tv = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tn = wh + f * (v - wh); // linear interpolation\n\n\tvar r;\n\tvar g;\n\tvar b;\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tvar c = cmyk[0] / 100;\n\tvar m = cmyk[1] / 100;\n\tvar y = cmyk[2] / 100;\n\tvar k = cmyk[3] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = 1 - Math.min(1, c * (1 - k) + k);\n\tg = 1 - Math.min(1, m * (1 - k) + k);\n\tb = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tvar x = xyz[0] / 100;\n\tvar y = xyz[1] / 100;\n\tvar z = xyz[2] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar x;\n\tvar y;\n\tvar z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tvar y2 = Math.pow(y, 3);\n\tvar x2 = Math.pow(x, 3);\n\tvar z2 = Math.pow(z, 3);\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar hr;\n\tvar h;\n\tvar c;\n\n\thr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tc = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tvar l = lch[0];\n\tvar c = lch[1];\n\tvar h = lch[2];\n\tvar a;\n\tvar b;\n\tvar hr;\n\n\thr = h / 360 * 2 * Math.PI;\n\ta = c * Math.cos(hr);\n\tb = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\tvar value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tvar ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\n\t// we use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tvar ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tvar color = args % 10;\n\n\t// handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tvar mult = (~~(args > 50) + 1) * 0.5;\n\tvar r = ((color & 1) * mult) * 255;\n\tvar g = (((color >> 1) & 1) * mult) * 255;\n\tvar b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// handle greyscale\n\tif (args >= 232) {\n\t\tvar c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tvar rem;\n\tvar r = Math.floor(args / 36) / 5 * 255;\n\tvar g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tvar b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tvar integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tvar match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tvar colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(function (char) {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tvar integer = parseInt(colorString, 16);\n\tvar r = (integer >> 16) & 0xFF;\n\tvar g = (integer >> 8) & 0xFF;\n\tvar b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar max = Math.max(Math.max(r, g), b);\n\tvar min = Math.min(Math.min(r, g), b);\n\tvar chroma = (max - min);\n\tvar grayscale;\n\tvar hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma + 4;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar c = 1;\n\tvar f = 0;\n\n\tif (l < 0.5) {\n\t\tc = 2.0 * s * l;\n\t} else {\n\t\tc = 2.0 * s * (1.0 - l);\n\t}\n\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\n\tvar c = s * v;\n\tvar f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tvar h = hcg[0] / 360;\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tvar pure = [0, 0, 0];\n\tvar hi = (h % 1) * 6;\n\tvar v = hi % 1;\n\tvar w = 1 - v;\n\tvar mg = 0;\n\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar v = c + g * (1.0 - c);\n\tvar f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar l = g * (1.0 - c) + 0.5 * c;\n\tvar s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\tvar v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tvar w = hwb[1] / 100;\n\tvar b = hwb[2] / 100;\n\tvar v = 1 - b;\n\tvar c = v - w;\n\tvar g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = convert.gray.hsv = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tvar val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tvar integer = (val << 16) + (val << 8) + val;\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tvar val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","'use strict';\n\nimport Colorpicker from './Colorpicker';\nimport $ from 'jquery';\n\nlet plugin = 'colorpicker';\n\n$[plugin] = Colorpicker;\n\n// Colorpicker jQuery Plugin API\n$.fn[plugin] = function (option) {\n let fnArgs = Array.prototype.slice.call(arguments, 1),\n isSingleElement = (this.length === 1),\n returnValue = null;\n\n let $elements = this.each(function () {\n let $this = $(this),\n inst = $this.data(plugin),\n options = ((typeof option === 'object') ? option : {});\n\n // Create instance if does not exist\n if (!inst) {\n inst = new Colorpicker(this, options);\n $this.data(plugin, inst);\n }\n\n if (!isSingleElement) {\n return;\n }\n\n returnValue = $this;\n\n if (typeof option === 'string') {\n if (option === 'colorpicker') {\n // Return colorpicker instance: e.g. .colorpicker('colorpicker')\n returnValue = inst;\n } else if ($.isFunction(inst[option])) {\n // Return method call return value: e.g. .colorpicker('isEnabled')\n returnValue = inst[option].apply(inst, fnArgs);\n } else {\n // Return property value: e.g. .colorpicker('element')\n returnValue = inst[option];\n }\n }\n });\n\n return isSingleElement ? returnValue : $elements;\n};\n\n$.fn[plugin].constructor = Colorpicker;\n","'use strict';\n\nimport Extension from './Extension';\nimport defaults from './options';\nimport coreExtensions from 'extensions';\nimport $ from 'jquery';\nimport SliderHandler from './SliderHandler';\nimport PopupHandler from './PopupHandler';\nimport InputHandler from './InputHandler';\nimport ColorHandler from './ColorHandler';\nimport PickerHandler from './PickerHandler';\nimport AddonHandler from './AddonHandler';\nimport ColorItem from './ColorItem';\n\nlet colorPickerIdCounter = 0;\n\nlet root = (typeof self !== 'undefined' ? self : this); // window\n\n/**\n * Colorpicker widget class\n */\nclass Colorpicker {\n /**\n * Color class\n *\n * @static\n * @type {Color}\n */\n static get Color() {\n return ColorItem;\n }\n\n /**\n * Extension class\n *\n * @static\n * @type {Extension}\n */\n static get Extension() {\n return Extension;\n }\n\n /**\n * Internal color object\n *\n * @type {Color|null}\n */\n get color() {\n return this.colorHandler.color;\n }\n\n /**\n * Internal color format\n *\n * @type {String|null}\n */\n get format() {\n return this.colorHandler.format;\n }\n\n /**\n * Getter of the picker element\n *\n * @returns {jQuery|HTMLElement}\n */\n get picker() {\n return this.pickerHandler.picker;\n }\n\n /**\n * @fires Colorpicker#colorpickerCreate\n * @param {Object|String} element\n * @param {Object} options\n * @constructor\n */\n constructor(element, options) {\n colorPickerIdCounter += 1;\n /**\n * The colorpicker instance number\n * @type {number}\n */\n this.id = colorPickerIdCounter;\n\n /**\n * Latest colorpicker event\n *\n * @type {{name: String, e: *}}\n */\n this.lastEvent = {\n alias: null,\n e: null\n };\n\n /**\n * The element that the colorpicker is bound to\n *\n * @type {*|jQuery}\n */\n this.element = $(element)\n .addClass('colorpicker-element')\n .attr('data-colorpicker-id', this.id);\n\n /**\n * @type {defaults}\n */\n this.options = $.extend(true, {}, defaults, options, this.element.data());\n\n /**\n * @type {boolean}\n * @private\n */\n this.disabled = false;\n\n /**\n * Extensions added to this instance\n *\n * @type {Extension[]}\n */\n this.extensions = [];\n\n /**\n * The element where the\n * @type {*|jQuery}\n */\n this.container = (\n this.options.container === true ||\n (this.options.container !== true && this.options.inline === true)\n ) ? this.element : this.options.container;\n\n this.container = (this.container !== false) ? $(this.container) : false;\n\n /**\n * @type {InputHandler}\n */\n this.inputHandler = new InputHandler(this);\n /**\n * @type {ColorHandler}\n */\n this.colorHandler = new ColorHandler(this);\n /**\n * @type {SliderHandler}\n */\n this.sliderHandler = new SliderHandler(this);\n /**\n * @type {PopupHandler}\n */\n this.popupHandler = new PopupHandler(this, root);\n /**\n * @type {PickerHandler}\n */\n this.pickerHandler = new PickerHandler(this);\n /**\n * @type {AddonHandler}\n */\n this.addonHandler = new AddonHandler(this);\n\n this.init();\n\n // Emit a create event\n $($.proxy(function () {\n /**\n * (Colorpicker) When the Colorpicker instance has been created and the DOM is ready.\n *\n * @event Colorpicker#colorpickerCreate\n */\n this.trigger('colorpickerCreate');\n }, this));\n }\n\n /**\n * Initializes the plugin\n * @private\n */\n init() {\n // Init addon\n this.addonHandler.bind();\n\n // Init input\n this.inputHandler.bind();\n\n // Init extensions (before initializing the color)\n this.initExtensions();\n\n // Init color\n this.colorHandler.bind();\n\n // Init picker\n this.pickerHandler.bind();\n\n // Init sliders and popup\n this.sliderHandler.bind();\n this.popupHandler.bind();\n\n // Inject into the DOM (this may make it visible)\n this.pickerHandler.attach();\n\n // Update all components\n this.update();\n\n if (this.inputHandler.isDisabled()) {\n this.disable();\n }\n }\n\n /**\n * Initializes the plugin extensions\n * @private\n */\n initExtensions() {\n if (!Array.isArray(this.options.extensions)) {\n this.options.extensions = [];\n }\n\n if (this.options.debug) {\n this.options.extensions.push({name: 'debugger'});\n }\n\n // Register and instantiate extensions\n this.options.extensions.forEach((ext) => {\n this.registerExtension(Colorpicker.extensions[ext.name.toLowerCase()], ext.options || {});\n });\n }\n\n /**\n * Creates and registers the given extension\n *\n * @param {Extension} ExtensionClass The extension class to instantiate\n * @param {Object} [config] Extension configuration\n * @returns {Extension}\n */\n registerExtension(ExtensionClass, config = {}) {\n let ext = new ExtensionClass(this, config);\n\n this.extensions.push(ext);\n return ext;\n }\n\n /**\n * Destroys the current instance\n *\n * @fires Colorpicker#colorpickerDestroy\n */\n destroy() {\n let color = this.color;\n\n this.sliderHandler.unbind();\n this.inputHandler.unbind();\n this.popupHandler.unbind();\n this.colorHandler.unbind();\n this.addonHandler.unbind();\n this.pickerHandler.unbind();\n\n this.element\n .removeClass('colorpicker-element')\n .removeData('colorpicker', 'color')\n .off('.colorpicker');\n\n /**\n * (Colorpicker) When the instance is destroyed with all events unbound.\n *\n * @event Colorpicker#colorpickerDestroy\n */\n this.trigger('colorpickerDestroy', color);\n }\n\n /**\n * Shows the colorpicker widget if hidden.\n * If the colorpicker is disabled this call will be ignored.\n *\n * @fires Colorpicker#colorpickerShow\n * @param {Event} [e]\n */\n show(e) {\n this.popupHandler.show(e);\n }\n\n /**\n * Hides the colorpicker widget.\n *\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n hide(e) {\n this.popupHandler.hide(e);\n }\n\n /**\n * Toggles the colorpicker between visible and hidden.\n *\n * @fires Colorpicker#colorpickerShow\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n toggle(e) {\n this.popupHandler.toggle(e);\n }\n\n /**\n * Returns the current color value as string\n *\n * @param {String|*} [defaultValue]\n * @returns {String|*}\n */\n getValue(defaultValue = null) {\n let val = this.colorHandler.color;\n\n val = (val instanceof ColorItem) ? val : defaultValue;\n\n if (val instanceof ColorItem) {\n return val.string(this.format);\n }\n\n return val;\n }\n\n /**\n * Sets the color manually\n *\n * @fires Colorpicker#colorpickerChange\n * @param {String|Color} val\n */\n setValue(val) {\n if (this.isDisabled()) {\n return;\n }\n let ch = this.colorHandler;\n\n if (\n (ch.hasColor() && !!val && ch.color.equals(val)) ||\n (!ch.hasColor() && !val)\n ) {\n // same color or still empty\n return;\n }\n\n ch.color = val ? ch.createColor(val, this.options.autoInputFallback) : null;\n\n /**\n * (Colorpicker) When the color is set programmatically with setValue().\n *\n * @event Colorpicker#colorpickerChange\n */\n this.trigger('colorpickerChange', ch.color, val);\n\n // force update if color has changed to empty\n this.update();\n }\n\n /**\n * Updates the UI and the input color according to the internal color.\n *\n * @fires Colorpicker#colorpickerUpdate\n */\n update() {\n if (this.colorHandler.hasColor()) {\n this.inputHandler.update();\n } else {\n this.colorHandler.assureColor();\n }\n\n this.addonHandler.update();\n this.pickerHandler.update();\n\n /**\n * (Colorpicker) Fired when the widget is updated.\n *\n * @event Colorpicker#colorpickerUpdate\n */\n this.trigger('colorpickerUpdate');\n }\n\n /**\n * Enables the widget and the input if any\n *\n * @fires Colorpicker#colorpickerEnable\n * @returns {boolean}\n */\n enable() {\n this.inputHandler.enable();\n this.disabled = false;\n this.picker.removeClass('colorpicker-disabled');\n\n /**\n * (Colorpicker) When the widget has been enabled.\n *\n * @event Colorpicker#colorpickerEnable\n */\n this.trigger('colorpickerEnable');\n return true;\n }\n\n /**\n * Disables the widget and the input if any\n *\n * @fires Colorpicker#colorpickerDisable\n * @returns {boolean}\n */\n disable() {\n this.inputHandler.disable();\n this.disabled = true;\n this.picker.addClass('colorpicker-disabled');\n\n /**\n * (Colorpicker) When the widget has been disabled.\n *\n * @event Colorpicker#colorpickerDisable\n */\n this.trigger('colorpickerDisable');\n return true;\n }\n\n /**\n * Returns true if this instance is enabled\n * @returns {boolean}\n */\n isEnabled() {\n return !this.isDisabled();\n }\n\n /**\n * Returns true if this instance is disabled\n * @returns {boolean}\n */\n isDisabled() {\n return this.disabled === true;\n }\n\n /**\n * Triggers a Colorpicker event.\n *\n * @param eventName\n * @param color\n * @param value\n */\n trigger(eventName, color = null, value = null) {\n this.element.trigger({\n type: eventName,\n colorpicker: this,\n color: color ? color : this.color,\n value: value ? value : this.getValue()\n });\n }\n}\n\n/**\n * Colorpicker extension classes, indexed by extension name\n *\n * @static\n * @type {Object} a map between the extension name and its class\n */\nColorpicker.extensions = coreExtensions;\n\nexport default Colorpicker;\n","import Debugger from './Debugger';\nimport Preview from './Preview';\nimport Swatches from './Swatches';\nimport Palette from './Palette';\n\nexport {\n Debugger, Preview, Swatches, Palette\n};\n\nexport default {\n 'debugger': Debugger,\n 'preview': Preview,\n 'swatches': Swatches,\n 'palette': Palette\n};\n","'use strict';\n\nimport Extension from 'Extension';\nimport $ from 'jquery';\n\n/**\n * Debugger extension class\n * @alias DebuggerExtension\n * @ignore\n */\nclass Debugger extends Extension {\n constructor(colorpicker, options = {}) {\n super(colorpicker, options);\n\n /**\n * @type {number}\n */\n this.eventCounter = 0;\n if (this.colorpicker.inputHandler.hasInput()) {\n this.colorpicker.inputHandler.input.on('change.colorpicker-ext', $.proxy(this.onChangeInput, this));\n }\n }\n\n /**\n * @fires DebuggerExtension#colorpickerDebug\n * @param {string} eventName\n * @param {*} args\n */\n log(eventName, ...args) {\n this.eventCounter += 1;\n\n let logMessage = `#${this.eventCounter}: Colorpicker#${this.colorpicker.id} [${eventName}]`;\n\n console.debug(logMessage, ...args);\n\n /**\n * Whenever the debugger logs an event, this other event is emitted.\n *\n * @event DebuggerExtension#colorpickerDebug\n * @type {object} The event object\n * @property {Colorpicker} colorpicker The Colorpicker instance\n * @property {ColorItem} color The color instance\n * @property {{debugger: DebuggerExtension, eventName: String, logArgs: Array, logMessage: String}} debug\n * The debug info\n */\n this.colorpicker.element.trigger({\n type: 'colorpickerDebug',\n colorpicker: this.colorpicker,\n color: this.color,\n value: null,\n debug: {\n debugger: this,\n eventName: eventName,\n logArgs: args,\n logMessage: logMessage\n }\n });\n }\n\n resolveColor(color, realColor = true) {\n this.log('resolveColor()', color, realColor);\n return false;\n }\n\n onCreate(event) {\n this.log('colorpickerCreate');\n return super.onCreate(event);\n }\n\n onDestroy(event) {\n this.log('colorpickerDestroy');\n this.eventCounter = 0;\n\n if (this.colorpicker.inputHandler.hasInput()) {\n this.colorpicker.inputHandler.input.off('.colorpicker-ext');\n }\n\n return super.onDestroy(event);\n }\n\n onUpdate(event) {\n this.log('colorpickerUpdate');\n }\n\n /**\n * @listens Colorpicker#change\n * @param {Event} event\n */\n onChangeInput(event) {\n this.log('input:change.colorpicker', event.value, event.color);\n }\n\n onChange(event) {\n this.log('colorpickerChange', event.value, event.color);\n }\n\n onInvalid(event) {\n this.log('colorpickerInvalid', event.value, event.color);\n }\n\n onHide(event) {\n this.log('colorpickerHide');\n this.eventCounter = 0;\n }\n\n onShow(event) {\n this.log('colorpickerShow');\n }\n\n onDisable(event) {\n this.log('colorpickerDisable');\n }\n\n onEnable(event) {\n this.log('colorpickerEnable');\n }\n}\n\nexport default Debugger;\n","'use strict';\n\nimport Extension from 'Extension';\nimport $ from 'jquery';\n\n/**\n * Color preview extension\n * @ignore\n */\nclass Preview extends Extension {\n constructor(colorpicker, options = {}) {\n super(colorpicker, $.extend(true, {},\n {\n template: '
',\n showText: true,\n format: colorpicker.format\n },\n options\n ));\n\n this.element = $(this.options.template);\n this.elementInner = this.element.find('div');\n }\n\n onCreate(event) {\n super.onCreate(event);\n this.colorpicker.picker.append(this.element);\n }\n\n onUpdate(event) {\n super.onUpdate(event);\n\n if (!event.color) {\n this.elementInner\n .css('backgroundColor', null)\n .css('color', null)\n .html('');\n return;\n }\n\n this.elementInner\n .css('backgroundColor', event.color.toRgbString());\n\n if (this.options.showText) {\n this.elementInner\n .html(event.color.string(this.options.format || this.colorpicker.format));\n\n if (event.color.isDark() && (event.color.alpha > 0.5)) {\n this.elementInner.css('color', 'white');\n } else {\n this.elementInner.css('color', 'black');\n }\n }\n }\n}\n\nexport default Preview;\n","'use strict';\n\nimport Palette from './Palette';\nimport $ from 'jquery';\n\nlet defaults = {\n barTemplate: `
\n
\n
`,\n swatchTemplate: ''\n};\n\n/**\n * Color swatches extension\n * @ignore\n */\nclass Swatches extends Palette {\n constructor(colorpicker, options = {}) {\n super(colorpicker, $.extend(true, {}, defaults, options));\n this.element = null;\n }\n\n isEnabled() {\n return this.getLength() > 0;\n }\n\n onCreate(event) {\n super.onCreate(event);\n\n if (!this.isEnabled()) {\n return;\n }\n\n this.element = $(this.options.barTemplate);\n this.load();\n this.colorpicker.picker.append(this.element);\n }\n\n load() {\n let colorpicker = this.colorpicker,\n swatchContainer = this.element.find('.colorpicker-swatches--inner'),\n isAliased = (this.options.namesAsValues === true) && !Array.isArray(this.colors);\n\n swatchContainer.empty();\n\n $.each(this.colors, (name, value) => {\n let $swatch = $(this.options.swatchTemplate)\n .attr('data-name', name)\n .attr('data-value', value)\n .attr('title', isAliased ? `${name}: ${value}` : value)\n .on('mousedown.colorpicker touchstart.colorpicker',\n function (e) {\n let $sw = $(this);\n\n // e.preventDefault();\n\n colorpicker.setValue(isAliased ? $sw.attr('data-name') : $sw.attr('data-value'));\n }\n );\n\n $swatch.find('.colorpicker-swatch--inner')\n .css('background-color', value);\n\n swatchContainer.append($swatch);\n });\n\n swatchContainer.append($(''));\n }\n}\n\nexport default Swatches;\n","'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Class that handles all configured sliders on mouse or touch events.\n * @ignore\n */\nclass SliderHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {*|String}\n * @private\n */\n this.currentSlider = null;\n /**\n * @type {{left: number, top: number}}\n * @private\n */\n this.mousePointer = {\n left: 0,\n top: 0\n };\n\n /**\n * @type {Function}\n */\n this.onMove = $.proxy(this.defaultOnMove, this);\n }\n\n /**\n * This function is called every time a slider guide is moved\n * The scope of \"this\" is the SliderHandler object.\n *\n * @param {int} top\n * @param {int} left\n */\n defaultOnMove(top, left) {\n if (!this.currentSlider) {\n return;\n }\n\n let slider = this.currentSlider, cp = this.colorpicker, ch = cp.colorHandler;\n\n // Create a color object\n let color = !ch.hasColor() ? ch.getFallbackColor() : ch.color.getClone();\n\n // Adjust the guide position\n slider.guideStyle.left = left + 'px';\n slider.guideStyle.top = top + 'px';\n\n // Adjust the color\n if (slider.callLeft) {\n color[slider.callLeft](left / slider.maxLeft);\n }\n if (slider.callTop) {\n color[slider.callTop](top / slider.maxTop);\n }\n\n // Set the new color\n cp.setValue(color);\n cp.popupHandler.focus();\n }\n\n /**\n * Binds the colorpicker sliders to the mouse/touch events\n */\n bind() {\n let sliders = this.colorpicker.options.horizontal ? this.colorpicker\n .options.slidersHorz : this.colorpicker.options.sliders;\n\n let sliderClasses = [];\n\n for (let sliderName in sliders) {\n if (!sliders.hasOwnProperty(sliderName)) {\n continue;\n }\n\n sliderClasses.push(sliders[sliderName].selector);\n }\n\n this.colorpicker.picker.find(sliderClasses.join(', '))\n .on('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.pressed, this));\n }\n\n /**\n * Unbinds any event bound by this handler\n */\n unbind() {\n $(this.colorpicker.picker).off({\n 'mousemove.colorpicker': $.proxy(this.moved, this),\n 'touchmove.colorpicker': $.proxy(this.moved, this),\n 'mouseup.colorpicker': $.proxy(this.released, this),\n 'touchend.colorpicker': $.proxy(this.released, this)\n });\n }\n\n /**\n * Function triggered when clicking in one of the color adjustment bars\n *\n * @private\n * @fires Colorpicker#mousemove\n * @param {Event} e\n */\n pressed(e) {\n if (this.colorpicker.isDisabled()) {\n return;\n }\n this.colorpicker.lastEvent.alias = 'pressed';\n this.colorpicker.lastEvent.e = e;\n\n if (!e.pageX && !e.pageY && e.originalEvent && e.originalEvent.touches) {\n e.pageX = e.originalEvent.touches[0].pageX;\n e.pageY = e.originalEvent.touches[0].pageY;\n }\n // e.stopPropagation();\n // e.preventDefault();\n\n let target = $(e.target);\n\n // detect the slider and set the limits and callbacks\n let zone = target.closest('div');\n\n let sliders = this.colorpicker.options.horizontal ? this.colorpicker\n .options.slidersHorz : this.colorpicker.options.sliders;\n\n if (zone.is('.colorpicker')) {\n return;\n }\n\n this.currentSlider = null;\n\n for (let sliderName in sliders) {\n if (!sliders.hasOwnProperty(sliderName)) {\n continue;\n }\n\n let slider = sliders[sliderName];\n\n if (zone.is(slider.selector)) {\n this.currentSlider = $.extend({}, slider, {name: sliderName});\n break;\n } else if (slider.childSelector !== undefined && zone.is(slider.childSelector)) {\n this.currentSlider = $.extend({}, slider, {name: sliderName});\n zone = zone.parent(); // zone.parents(slider.selector).first() ?\n break;\n }\n }\n\n let guide = zone.find('.colorpicker-guide').get(0);\n\n if (this.currentSlider === null || guide === null) {\n return;\n }\n\n let offset = zone.offset();\n\n // reference to guide's style\n this.currentSlider.guideStyle = guide.style;\n this.currentSlider.left = e.pageX - offset.left;\n this.currentSlider.top = e.pageY - offset.top;\n this.mousePointer = {\n left: e.pageX,\n top: e.pageY\n };\n\n // TODO: fix moving outside the picker makes the guides to keep moving. The event needs to be bound to the window.\n /**\n * (window.document) Triggered on mousedown for the document object,\n * so the color adjustment guide is moved to the clicked position.\n *\n * @event Colorpicker#mousemove\n */\n $(this.colorpicker.picker).on({\n 'mousemove.colorpicker': $.proxy(this.moved, this),\n 'touchmove.colorpicker': $.proxy(this.moved, this),\n 'mouseup.colorpicker': $.proxy(this.released, this),\n 'touchend.colorpicker': $.proxy(this.released, this)\n }).trigger('mousemove');\n }\n\n /**\n * Function triggered when dragging a guide inside one of the color adjustment bars.\n *\n * @private\n * @param {Event} e\n */\n moved(e) {\n this.colorpicker.lastEvent.alias = 'moved';\n this.colorpicker.lastEvent.e = e;\n\n if (!e.pageX && !e.pageY && e.originalEvent && e.originalEvent.touches) {\n e.pageX = e.originalEvent.touches[0].pageX;\n e.pageY = e.originalEvent.touches[0].pageY;\n }\n\n // e.stopPropagation();\n e.preventDefault(); // prevents scrolling on mobile\n\n let left = Math.max(\n 0,\n Math.min(\n this.currentSlider.maxLeft,\n this.currentSlider.left + ((e.pageX || this.mousePointer.left) - this.mousePointer.left)\n )\n );\n\n let top = Math.max(\n 0,\n Math.min(\n this.currentSlider.maxTop,\n this.currentSlider.top + ((e.pageY || this.mousePointer.top) - this.mousePointer.top)\n )\n );\n\n this.onMove(top, left);\n }\n\n /**\n * Function triggered when releasing the click in one of the color adjustment bars.\n *\n * @private\n * @param {Event} e\n */\n released(e) {\n this.colorpicker.lastEvent.alias = 'released';\n this.colorpicker.lastEvent.e = e;\n\n // e.stopPropagation();\n // e.preventDefault();\n\n $(this.colorpicker.picker).off({\n 'mousemove.colorpicker': this.moved,\n 'touchmove.colorpicker': this.moved,\n 'mouseup.colorpicker': this.released,\n 'touchend.colorpicker': this.released\n });\n }\n}\n\nexport default SliderHandler;\n","'use strict';\n\nimport $ from 'jquery';\nimport _defaults from './options';\n\n/**\n * Handles everything related to the UI of the colorpicker popup: show, hide, position,...\n * @ignore\n */\nclass PopupHandler {\n /**\n * @param {Colorpicker} colorpicker\n * @param {Window} root\n */\n constructor(colorpicker, root) {\n /**\n * @type {Window}\n */\n this.root = root;\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery}\n */\n this.popoverTarget = null;\n /**\n * @type {jQuery}\n */\n this.popoverTip = null;\n\n /**\n * If true, the latest click was inside the popover\n * @type {boolean}\n */\n this.clicking = false;\n /**\n * @type {boolean}\n */\n this.hidding = false;\n /**\n * @type {boolean}\n */\n this.showing = false;\n }\n\n /**\n * @private\n * @returns {jQuery|false}\n */\n get input() {\n return this.colorpicker.inputHandler.input;\n }\n\n /**\n * @private\n * @returns {boolean}\n */\n get hasInput() {\n return this.colorpicker.inputHandler.hasInput();\n }\n\n /**\n * @private\n * @returns {jQuery|false}\n */\n get addon() {\n return this.colorpicker.addonHandler.addon;\n }\n\n /**\n * @private\n * @returns {boolean}\n */\n get hasAddon() {\n return this.colorpicker.addonHandler.hasAddon();\n }\n\n /**\n * @private\n * @returns {boolean}\n */\n get isPopover() {\n return !this.colorpicker.options.inline && !!this.popoverTip;\n }\n\n /**\n * Binds the different colorpicker elements to the focus/mouse/touch events so it reacts in order to show or\n * hide the colorpicker popup accordingly. It also adds the proper classes.\n */\n bind() {\n let cp = this.colorpicker;\n\n if (cp.options.inline) {\n cp.picker.addClass('colorpicker-inline colorpicker-visible');\n return; // no need to bind show/hide events for inline elements\n }\n\n cp.picker.addClass('colorpicker-popup colorpicker-hidden');\n\n // there is no input or addon\n if (!this.hasInput && !this.hasAddon) {\n return;\n }\n\n // create Bootstrap 4 popover\n if (cp.options.popover) {\n this.createPopover();\n }\n\n // bind addon show/hide events\n if (this.hasAddon) {\n // enable focus on addons\n if (!this.addon.attr('tabindex')) {\n this.addon.attr('tabindex', 0);\n }\n\n this.addon.on({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.toggle, this)\n });\n\n this.addon.on({\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n\n this.addon.on({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n // bind input show/hide events\n if (this.hasInput && !this.hasAddon) {\n this.input.on({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.show, this),\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n\n this.input.on({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n // reposition popup on window resize\n $(this.root).on('resize.colorpicker', $.proxy(this.reposition, this));\n }\n\n /**\n * Unbinds any event bound by this handler\n */\n unbind() {\n if (this.hasInput) {\n this.input.off({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.show, this),\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n this.input.off({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n if (this.hasAddon) {\n this.addon.off({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.toggle, this)\n });\n this.addon.off({\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n this.addon.off({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n if (this.popoverTarget) {\n this.popoverTarget.popover('dispose');\n }\n\n $(this.root).off('resize.colorpicker', $.proxy(this.reposition, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.hide, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.onClickingInside, this));\n }\n\n isClickingInside(e) {\n if (!e) {\n return false;\n }\n\n return (\n this.isOrIsInside(this.popoverTip, e.currentTarget) ||\n this.isOrIsInside(this.popoverTip, e.target) ||\n this.isOrIsInside(this.colorpicker.picker, e.currentTarget) ||\n this.isOrIsInside(this.colorpicker.picker, e.target)\n );\n }\n\n isOrIsInside(container, element) {\n if (!container || !element) {\n return false;\n }\n\n element = $(element);\n\n return (\n element.is(container) ||\n container.find(element).length > 0\n );\n }\n\n onClickingInside(e) {\n this.clicking = this.isClickingInside(e);\n }\n\n createPopover() {\n let cp = this.colorpicker;\n\n this.popoverTarget = this.hasAddon ? this.addon : this.input;\n\n cp.picker.addClass('colorpicker-bs-popover-content');\n\n this.popoverTarget.popover(\n $.extend(\n true,\n {},\n _defaults.popover,\n cp.options.popover,\n {trigger: 'manual', content: cp.picker, html: true}\n )\n );\n\n this.popoverTip = $(this.popoverTarget.popover('getTipElement').data('bs.popover').tip);\n this.popoverTip.addClass('colorpicker-bs-popover');\n\n this.popoverTarget.on('shown.bs.popover', $.proxy(this.fireShow, this));\n this.popoverTarget.on('hidden.bs.popover', $.proxy(this.fireHide, this));\n }\n\n /**\n * If the widget is not inside a container or inline, rearranges its position relative to its element offset.\n *\n * @param {Event} [e]\n * @private\n */\n reposition(e) {\n if (this.popoverTarget && this.isVisible()) {\n this.popoverTarget.popover('update');\n }\n }\n\n /**\n * Toggles the colorpicker between visible or hidden\n *\n * @fires Colorpicker#colorpickerShow\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n toggle(e) {\n if (this.isVisible()) {\n this.hide(e);\n } else {\n this.show(e);\n }\n }\n\n /**\n * Shows the colorpicker widget if hidden.\n *\n * @fires Colorpicker#colorpickerShow\n * @param {Event} [e]\n */\n show(e) {\n if (this.isVisible() || this.showing || this.hidding) {\n return;\n }\n\n this.showing = true;\n this.hidding = false;\n this.clicking = false;\n\n let cp = this.colorpicker;\n\n cp.lastEvent.alias = 'show';\n cp.lastEvent.e = e;\n\n // Prevent showing browser native HTML5 colorpicker\n if (\n (e && (!this.hasInput || this.input.attr('type') === 'color')) &&\n (e && e.preventDefault)\n ) {\n e.stopPropagation();\n e.preventDefault();\n }\n\n // If it's a popover, add event to the document to hide the picker when clicking outside of it\n if (this.isPopover) {\n $(this.root).on('resize.colorpicker', $.proxy(this.reposition, this));\n }\n\n // add visible class before popover is shown\n cp.picker.addClass('colorpicker-visible').removeClass('colorpicker-hidden');\n\n if (this.popoverTarget) {\n this.popoverTarget.popover('show');\n } else {\n this.fireShow();\n }\n }\n\n fireShow() {\n this.hidding = false;\n this.showing = false;\n\n if (this.isPopover) {\n // Add event to hide on outside click\n $(this.root.document).on('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.hide, this));\n $(this.root.document).on('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.onClickingInside, this));\n }\n\n /**\n * (Colorpicker) When show() is called and the widget can be shown.\n *\n * @event Colorpicker#colorpickerShow\n */\n this.colorpicker.trigger('colorpickerShow');\n }\n\n /**\n * Hides the colorpicker widget.\n * Hide is prevented when it is triggered by an event whose target element has been clicked/touched.\n *\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n hide(e) {\n if (this.isHidden() || this.showing || this.hidding) {\n return;\n }\n\n let cp = this.colorpicker, clicking = (this.clicking || this.isClickingInside(e));\n\n this.hidding = true;\n this.showing = false;\n this.clicking = false;\n\n cp.lastEvent.alias = 'hide';\n cp.lastEvent.e = e;\n\n // TODO: fix having to click twice outside when losing focus and last 2 clicks where inside the colorpicker\n\n // Prevent hide if triggered by an event and an element inside the colorpicker has been clicked/touched\n if (clicking) {\n this.hidding = false;\n return;\n }\n\n if (this.popoverTarget) {\n this.popoverTarget.popover('hide');\n } else {\n this.fireHide();\n }\n }\n\n fireHide() {\n this.hidding = false;\n this.showing = false;\n\n let cp = this.colorpicker;\n\n // add hidden class after popover is hidden\n cp.picker.addClass('colorpicker-hidden').removeClass('colorpicker-visible');\n\n // Unbind window and document events, since there is no need to keep them while the popup is hidden\n $(this.root).off('resize.colorpicker', $.proxy(this.reposition, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.hide, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.onClickingInside, this));\n\n /**\n * (Colorpicker) When hide() is called and the widget can be hidden.\n *\n * @event Colorpicker#colorpickerHide\n */\n cp.trigger('colorpickerHide');\n }\n\n focus() {\n if (this.hasAddon) {\n return this.addon.focus();\n }\n if (this.hasInput) {\n return this.input.focus();\n }\n return false;\n }\n\n /**\n * Returns true if the colorpicker element has the colorpicker-visible class and not the colorpicker-hidden one.\n * False otherwise.\n *\n * @returns {boolean}\n */\n isVisible() {\n return this.colorpicker.picker.hasClass('colorpicker-visible') &&\n !this.colorpicker.picker.hasClass('colorpicker-hidden');\n }\n\n /**\n * Returns true if the colorpicker element has the colorpicker-hidden class and not the colorpicker-visible one.\n * False otherwise.\n *\n * @returns {boolean}\n */\n isHidden() {\n return this.colorpicker.picker.hasClass('colorpicker-hidden') &&\n !this.colorpicker.picker.hasClass('colorpicker-visible');\n }\n}\n\nexport default PopupHandler;\n","'use strict';\n\nimport $ from 'jquery';\nimport ColorItem from './ColorItem';\n\n/**\n * Handles everything related to the colorpicker input\n * @ignore\n */\nclass InputHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery|false}\n */\n this.input = this.colorpicker.element.is('input') ? this.colorpicker.element : (this.colorpicker.options.input ?\n this.colorpicker.element.find(this.colorpicker.options.input) : false);\n\n if (this.input && (this.input.length === 0)) {\n this.input = false;\n }\n\n this._initValue();\n }\n\n bind() {\n if (!this.hasInput()) {\n return;\n }\n this.input.on({\n 'keyup.colorpicker': $.proxy(this.onkeyup, this)\n });\n this.input.on({\n 'change.colorpicker': $.proxy(this.onchange, this)\n });\n }\n\n unbind() {\n if (!this.hasInput()) {\n return;\n }\n this.input.off('.colorpicker');\n }\n\n _initValue() {\n if (!this.hasInput()) {\n return;\n }\n\n let val = '';\n\n [\n // candidates:\n this.input.val(),\n this.input.data('color'),\n this.input.attr('data-color')\n ].map((item) => {\n if (item && (val === '')) {\n val = item;\n }\n });\n\n if (val instanceof ColorItem) {\n val = this.getFormattedColor(val.string(this.colorpicker.format));\n } else if (!(typeof val === 'string' || val instanceof String)) {\n val = '';\n }\n\n this.input.prop('value', val);\n }\n\n /**\n * Returns the color string from the input value.\n * If there is no input the return value is false.\n *\n * @returns {String|boolean}\n */\n getValue() {\n if (!this.hasInput()) {\n return false;\n }\n\n return this.input.val();\n }\n\n /**\n * If the input element is present, it updates the value with the current color object color string.\n * If the value is changed, this method fires a \"change\" event on the input element.\n *\n * @param {String} val\n *\n * @fires Colorpicker#change\n */\n setValue(val) {\n if (!this.hasInput()) {\n return;\n }\n\n let inputVal = this.input.prop('value');\n\n val = val ? val : '';\n\n if (val === (inputVal ? inputVal : '')) {\n // No need to set value or trigger any event if nothing changed\n return;\n }\n\n this.input.prop('value', val);\n\n /**\n * (Input) Triggered on the input element when a new color is selected.\n *\n * @event Colorpicker#change\n */\n this.input.trigger({\n type: 'change',\n colorpicker: this.colorpicker,\n color: this.colorpicker.color,\n value: val\n });\n }\n\n /**\n * Returns the formatted color string, with the formatting options applied\n * (e.g. useHashPrefix)\n *\n * @param {String|null} val\n *\n * @returns {String}\n */\n getFormattedColor(val = null) {\n val = val ? val : this.colorpicker.colorHandler.getColorString();\n\n if (!val) {\n return '';\n }\n\n val = this.colorpicker.colorHandler.resolveColorDelegate(val, false);\n\n if (this.colorpicker.options.useHashPrefix === false) {\n val = val.replace(/^#/g, '');\n }\n\n return val;\n }\n\n /**\n * Returns true if the widget has an associated input element, false otherwise\n * @returns {boolean}\n */\n hasInput() {\n return (this.input !== false);\n }\n\n /**\n * Returns true if the input exists and is disabled\n * @returns {boolean}\n */\n isEnabled() {\n return this.hasInput() && !this.isDisabled();\n }\n\n /**\n * Returns true if the input exists and is disabled\n * @returns {boolean}\n */\n isDisabled() {\n return this.hasInput() && (this.input.prop('disabled') === true);\n }\n\n /**\n * Disables the input if any\n *\n * @fires Colorpicker#colorpickerDisable\n * @returns {boolean}\n */\n disable() {\n if (this.hasInput()) {\n this.input.prop('disabled', true);\n }\n }\n\n /**\n * Enables the input if any\n *\n * @fires Colorpicker#colorpickerEnable\n * @returns {boolean}\n */\n enable() {\n if (this.hasInput()) {\n this.input.prop('disabled', false);\n }\n }\n\n /**\n * Calls setValue with the current internal color value\n *\n * @fires Colorpicker#change\n */\n update() {\n if (!this.hasInput()) {\n return;\n }\n\n if (\n (this.colorpicker.options.autoInputFallback === false) &&\n this.colorpicker.colorHandler.isInvalidColor()\n ) {\n // prevent update if color is invalid, autoInputFallback is disabled and the last event is keyup.\n return;\n }\n\n this.setValue(this.getFormattedColor());\n }\n\n /**\n * Function triggered when the input has changed, so the colorpicker gets updated.\n *\n * @private\n * @param {Event} e\n * @returns {boolean}\n */\n onchange(e) {\n this.colorpicker.lastEvent.alias = 'input.change';\n this.colorpicker.lastEvent.e = e;\n\n let val = this.getValue();\n\n if (val !== e.value) {\n this.colorpicker.setValue(val);\n }\n }\n\n /**\n * Function triggered after a keyboard key has been released.\n *\n * @private\n * @param {Event} e\n * @returns {boolean}\n */\n onkeyup(e) {\n this.colorpicker.lastEvent.alias = 'input.keyup';\n this.colorpicker.lastEvent.e = e;\n\n let val = this.getValue();\n\n if (val !== e.value) {\n this.colorpicker.setValue(val);\n }\n }\n}\n\nexport default InputHandler;\n","'use strict';\n\nvar colorString = require('color-string');\nvar convert = require('color-convert');\n\nvar _slice = [].slice;\n\nvar skippedModels = [\n\t// to be honest, I don't really feel like keyword belongs in color convert, but eh.\n\t'keyword',\n\n\t// gray conflicts with some method names, and has its own method defined.\n\t'gray',\n\n\t// shouldn't really be in color-convert either...\n\t'hex'\n];\n\nvar hashedModelKeys = {};\nObject.keys(convert).forEach(function (model) {\n\thashedModelKeys[_slice.call(convert[model].labels).sort().join('')] = model;\n});\n\nvar limiters = {};\n\nfunction Color(obj, model) {\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(obj, model);\n\t}\n\n\tif (model && model in skippedModels) {\n\t\tmodel = null;\n\t}\n\n\tif (model && !(model in convert)) {\n\t\tthrow new Error('Unknown model: ' + model);\n\t}\n\n\tvar i;\n\tvar channels;\n\n\tif (obj == null) { // eslint-disable-line no-eq-null,eqeqeq\n\t\tthis.model = 'rgb';\n\t\tthis.color = [0, 0, 0];\n\t\tthis.valpha = 1;\n\t} else if (obj instanceof Color) {\n\t\tthis.model = obj.model;\n\t\tthis.color = obj.color.slice();\n\t\tthis.valpha = obj.valpha;\n\t} else if (typeof obj === 'string') {\n\t\tvar result = colorString.get(obj);\n\t\tif (result === null) {\n\t\t\tthrow new Error('Unable to parse color from string: ' + obj);\n\t\t}\n\n\t\tthis.model = result.model;\n\t\tchannels = convert[this.model].channels;\n\t\tthis.color = result.value.slice(0, channels);\n\t\tthis.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;\n\t} else if (obj.length) {\n\t\tthis.model = model || 'rgb';\n\t\tchannels = convert[this.model].channels;\n\t\tvar newArr = _slice.call(obj, 0, channels);\n\t\tthis.color = zeroArray(newArr, channels);\n\t\tthis.valpha = typeof obj[channels] === 'number' ? obj[channels] : 1;\n\t} else if (typeof obj === 'number') {\n\t\t// this is always RGB - can be converted later on.\n\t\tobj &= 0xFFFFFF;\n\t\tthis.model = 'rgb';\n\t\tthis.color = [\n\t\t\t(obj >> 16) & 0xFF,\n\t\t\t(obj >> 8) & 0xFF,\n\t\t\tobj & 0xFF\n\t\t];\n\t\tthis.valpha = 1;\n\t} else {\n\t\tthis.valpha = 1;\n\n\t\tvar keys = Object.keys(obj);\n\t\tif ('alpha' in obj) {\n\t\t\tkeys.splice(keys.indexOf('alpha'), 1);\n\t\t\tthis.valpha = typeof obj.alpha === 'number' ? obj.alpha : 0;\n\t\t}\n\n\t\tvar hashedKeys = keys.sort().join('');\n\t\tif (!(hashedKeys in hashedModelKeys)) {\n\t\t\tthrow new Error('Unable to parse color from object: ' + JSON.stringify(obj));\n\t\t}\n\n\t\tthis.model = hashedModelKeys[hashedKeys];\n\n\t\tvar labels = convert[this.model].labels;\n\t\tvar color = [];\n\t\tfor (i = 0; i < labels.length; i++) {\n\t\t\tcolor.push(obj[labels[i]]);\n\t\t}\n\n\t\tthis.color = zeroArray(color);\n\t}\n\n\t// perform limitations (clamping, etc.)\n\tif (limiters[this.model]) {\n\t\tchannels = convert[this.model].channels;\n\t\tfor (i = 0; i < channels; i++) {\n\t\t\tvar limit = limiters[this.model][i];\n\t\t\tif (limit) {\n\t\t\t\tthis.color[i] = limit(this.color[i]);\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.valpha = Math.max(0, Math.min(1, this.valpha));\n\n\tif (Object.freeze) {\n\t\tObject.freeze(this);\n\t}\n}\n\nColor.prototype = {\n\ttoString: function () {\n\t\treturn this.string();\n\t},\n\n\ttoJSON: function () {\n\t\treturn this[this.model]();\n\t},\n\n\tstring: function (places) {\n\t\tvar self = this.model in colorString.to ? this : this.rgb();\n\t\tself = self.round(typeof places === 'number' ? places : 1);\n\t\tvar args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);\n\t\treturn colorString.to[self.model](args);\n\t},\n\n\tpercentString: function (places) {\n\t\tvar self = this.rgb().round(typeof places === 'number' ? places : 1);\n\t\tvar args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);\n\t\treturn colorString.to.rgb.percent(args);\n\t},\n\n\tarray: function () {\n\t\treturn this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha);\n\t},\n\n\tobject: function () {\n\t\tvar result = {};\n\t\tvar channels = convert[this.model].channels;\n\t\tvar labels = convert[this.model].labels;\n\n\t\tfor (var i = 0; i < channels; i++) {\n\t\t\tresult[labels[i]] = this.color[i];\n\t\t}\n\n\t\tif (this.valpha !== 1) {\n\t\t\tresult.alpha = this.valpha;\n\t\t}\n\n\t\treturn result;\n\t},\n\n\tunitArray: function () {\n\t\tvar rgb = this.rgb().color;\n\t\trgb[0] /= 255;\n\t\trgb[1] /= 255;\n\t\trgb[2] /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.push(this.valpha);\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tunitObject: function () {\n\t\tvar rgb = this.rgb().object();\n\t\trgb.r /= 255;\n\t\trgb.g /= 255;\n\t\trgb.b /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.alpha = this.valpha;\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tround: function (places) {\n\t\tplaces = Math.max(places || 0, 0);\n\t\treturn new Color(this.color.map(roundToPlace(places)).concat(this.valpha), this.model);\n\t},\n\n\talpha: function (val) {\n\t\tif (arguments.length) {\n\t\t\treturn new Color(this.color.concat(Math.max(0, Math.min(1, val))), this.model);\n\t\t}\n\n\t\treturn this.valpha;\n\t},\n\n\t// rgb\n\tred: getset('rgb', 0, maxfn(255)),\n\tgreen: getset('rgb', 1, maxfn(255)),\n\tblue: getset('rgb', 2, maxfn(255)),\n\n\thue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, function (val) { return ((val % 360) + 360) % 360; }), // eslint-disable-line brace-style\n\n\tsaturationl: getset('hsl', 1, maxfn(100)),\n\tlightness: getset('hsl', 2, maxfn(100)),\n\n\tsaturationv: getset('hsv', 1, maxfn(100)),\n\tvalue: getset('hsv', 2, maxfn(100)),\n\n\tchroma: getset('hcg', 1, maxfn(100)),\n\tgray: getset('hcg', 2, maxfn(100)),\n\n\twhite: getset('hwb', 1, maxfn(100)),\n\twblack: getset('hwb', 2, maxfn(100)),\n\n\tcyan: getset('cmyk', 0, maxfn(100)),\n\tmagenta: getset('cmyk', 1, maxfn(100)),\n\tyellow: getset('cmyk', 2, maxfn(100)),\n\tblack: getset('cmyk', 3, maxfn(100)),\n\n\tx: getset('xyz', 0, maxfn(100)),\n\ty: getset('xyz', 1, maxfn(100)),\n\tz: getset('xyz', 2, maxfn(100)),\n\n\tl: getset('lab', 0, maxfn(100)),\n\ta: getset('lab', 1),\n\tb: getset('lab', 2),\n\n\tkeyword: function (val) {\n\t\tif (arguments.length) {\n\t\t\treturn new Color(val);\n\t\t}\n\n\t\treturn convert[this.model].keyword(this.color);\n\t},\n\n\thex: function (val) {\n\t\tif (arguments.length) {\n\t\t\treturn new Color(val);\n\t\t}\n\n\t\treturn colorString.to.hex(this.rgb().round().color);\n\t},\n\n\trgbNumber: function () {\n\t\tvar rgb = this.rgb().color;\n\t\treturn ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);\n\t},\n\n\tluminosity: function () {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tvar rgb = this.rgb().color;\n\n\t\tvar lum = [];\n\t\tfor (var i = 0; i < rgb.length; i++) {\n\t\t\tvar chan = rgb[i] / 255;\n\t\t\tlum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);\n\t\t}\n\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast: function (color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tvar lum1 = this.luminosity();\n\t\tvar lum2 = color2.luminosity();\n\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel: function (color2) {\n\t\tvar contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7.1) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tisDark: function () {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tvar rgb = this.rgb().color;\n\t\tvar yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n\t\treturn yiq < 128;\n\t},\n\n\tisLight: function () {\n\t\treturn !this.isDark();\n\t},\n\n\tnegate: function () {\n\t\tvar rgb = this.rgb();\n\t\tfor (var i = 0; i < 3; i++) {\n\t\t\trgb.color[i] = 255 - rgb.color[i];\n\t\t}\n\t\treturn rgb;\n\t},\n\n\tlighten: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[2] += hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdarken: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[2] -= hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tsaturate: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[1] += hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdesaturate: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[1] -= hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\twhiten: function (ratio) {\n\t\tvar hwb = this.hwb();\n\t\thwb.color[1] += hwb.color[1] * ratio;\n\t\treturn hwb;\n\t},\n\n\tblacken: function (ratio) {\n\t\tvar hwb = this.hwb();\n\t\thwb.color[2] += hwb.color[2] * ratio;\n\t\treturn hwb;\n\t},\n\n\tgrayscale: function () {\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tvar rgb = this.rgb().color;\n\t\tvar val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\treturn Color.rgb(val, val, val);\n\t},\n\n\tfade: function (ratio) {\n\t\treturn this.alpha(this.valpha - (this.valpha * ratio));\n\t},\n\n\topaquer: function (ratio) {\n\t\treturn this.alpha(this.valpha + (this.valpha * ratio));\n\t},\n\n\trotate: function (degrees) {\n\t\tvar hsl = this.hsl();\n\t\tvar hue = hsl.color[0];\n\t\thue = (hue + degrees) % 360;\n\t\thue = hue < 0 ? 360 + hue : hue;\n\t\thsl.color[0] = hue;\n\t\treturn hsl;\n\t},\n\n\tmix: function (mixinColor, weight) {\n\t\t// ported from sass implementation in C\n\t\t// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t\tif (!mixinColor || !mixinColor.rgb) {\n\t\t\tthrow new Error('Argument to \"mix\" was not a Color instance, but rather an instance of ' + typeof mixinColor);\n\t\t}\n\t\tvar color1 = mixinColor.rgb();\n\t\tvar color2 = this.rgb();\n\t\tvar p = weight === undefined ? 0.5 : weight;\n\n\t\tvar w = 2 * p - 1;\n\t\tvar a = color1.alpha() - color2.alpha();\n\n\t\tvar w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n\t\tvar w2 = 1 - w1;\n\n\t\treturn Color.rgb(\n\t\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\t\tw1 * color1.blue() + w2 * color2.blue(),\n\t\t\t\tcolor1.alpha() * p + color2.alpha() * (1 - p));\n\t}\n};\n\n// model conversion methods and static constructors\nObject.keys(convert).forEach(function (model) {\n\tif (skippedModels.indexOf(model) !== -1) {\n\t\treturn;\n\t}\n\n\tvar channels = convert[model].channels;\n\n\t// conversion methods\n\tColor.prototype[model] = function () {\n\t\tif (this.model === model) {\n\t\t\treturn new Color(this);\n\t\t}\n\n\t\tif (arguments.length) {\n\t\t\treturn new Color(arguments, model);\n\t\t}\n\n\t\tvar newAlpha = typeof arguments[channels] === 'number' ? channels : this.valpha;\n\t\treturn new Color(assertArray(convert[this.model][model].raw(this.color)).concat(newAlpha), model);\n\t};\n\n\t// 'static' construction methods\n\tColor[model] = function (color) {\n\t\tif (typeof color === 'number') {\n\t\t\tcolor = zeroArray(_slice.call(arguments), channels);\n\t\t}\n\t\treturn new Color(color, model);\n\t};\n});\n\nfunction roundTo(num, places) {\n\treturn Number(num.toFixed(places));\n}\n\nfunction roundToPlace(places) {\n\treturn function (num) {\n\t\treturn roundTo(num, places);\n\t};\n}\n\nfunction getset(model, channel, modifier) {\n\tmodel = Array.isArray(model) ? model : [model];\n\n\tmodel.forEach(function (m) {\n\t\t(limiters[m] || (limiters[m] = []))[channel] = modifier;\n\t});\n\n\tmodel = model[0];\n\n\treturn function (val) {\n\t\tvar result;\n\n\t\tif (arguments.length) {\n\t\t\tif (modifier) {\n\t\t\t\tval = modifier(val);\n\t\t\t}\n\n\t\t\tresult = this[model]();\n\t\t\tresult.color[channel] = val;\n\t\t\treturn result;\n\t\t}\n\n\t\tresult = this[model]().color[channel];\n\t\tif (modifier) {\n\t\t\tresult = modifier(result);\n\t\t}\n\n\t\treturn result;\n\t};\n}\n\nfunction maxfn(max) {\n\treturn function (v) {\n\t\treturn Math.max(0, Math.min(max, v));\n\t};\n}\n\nfunction assertArray(val) {\n\treturn Array.isArray(val) ? val : [val];\n}\n\nfunction zeroArray(arr, length) {\n\tfor (var i = 0; i < length; i++) {\n\t\tif (typeof arr[i] !== 'number') {\n\t\t\tarr[i] = 0;\n\t\t}\n\t}\n\n\treturn arr;\n}\n\nmodule.exports = Color;\n","/* MIT license */\nvar colorNames = require('color-name');\nvar swizzle = require('simple-swizzle');\n\nvar reverseNames = {};\n\n// create a list of reverse color names\nfor (var name in colorNames) {\n\tif (colorNames.hasOwnProperty(name)) {\n\t\treverseNames[colorNames[name]] = name;\n\t}\n}\n\nvar cs = module.exports = {\n\tto: {},\n\tget: {}\n};\n\ncs.get = function (string) {\n\tvar prefix = string.substring(0, 3).toLowerCase();\n\tvar val;\n\tvar model;\n\tswitch (prefix) {\n\t\tcase 'hsl':\n\t\t\tval = cs.get.hsl(string);\n\t\t\tmodel = 'hsl';\n\t\t\tbreak;\n\t\tcase 'hwb':\n\t\t\tval = cs.get.hwb(string);\n\t\t\tmodel = 'hwb';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tval = cs.get.rgb(string);\n\t\t\tmodel = 'rgb';\n\t\t\tbreak;\n\t}\n\n\tif (!val) {\n\t\treturn null;\n\t}\n\n\treturn {model: model, value: val};\n};\n\ncs.get.rgb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar abbr = /^#([a-f0-9]{3,4})$/i;\n\tvar hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\tvar rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar keyword = /(\\D+)/;\n\n\tvar rgb = [0, 0, 0, 1];\n\tvar match;\n\tvar i;\n\tvar hexAlpha;\n\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\t// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19\n\t\t\tvar i2 = i * 2;\n\t\t\trgb[i] = parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;\n\t\t}\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i] + match[i], 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;\n\t\t}\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i + 1], 0);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\trgb[3] = parseFloat(match[4]);\n\t\t}\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\trgb[3] = parseFloat(match[4]);\n\t\t}\n\t} else if (match = string.match(keyword)) {\n\t\tif (match[1] === 'transparent') {\n\t\t\treturn [0, 0, 0, 0];\n\t\t}\n\n\t\trgb = colorNames[match[1]];\n\n\t\tif (!rgb) {\n\t\t\treturn null;\n\t\t}\n\n\t\trgb[3] = 1;\n\n\t\treturn rgb;\n\t} else {\n\t\treturn null;\n\t}\n\n\tfor (i = 0; i < 3; i++) {\n\t\trgb[i] = clamp(rgb[i], 0, 255);\n\t}\n\trgb[3] = clamp(rgb[3], 0, 1);\n\n\treturn rgb;\n};\n\ncs.get.hsl = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hsl = /^hsla?\\(\\s*([+-]?(?:\\d*\\.)?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar match = string.match(hsl);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = (parseFloat(match[1]) + 360) % 360;\n\t\tvar s = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar l = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\n\t\treturn [h, s, l, a];\n\t}\n\n\treturn null;\n};\n\ncs.get.hwb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hwb = /^hwb\\(\\s*([+-]?\\d*[\\.]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar match = string.match(hwb);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar w = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar b = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\t\treturn [h, w, b, a];\n\t}\n\n\treturn null;\n};\n\ncs.to.hex = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn (\n\t\t'#' +\n\t\thexDouble(rgba[0]) +\n\t\thexDouble(rgba[1]) +\n\t\thexDouble(rgba[2]) +\n\t\t(rgba[3] < 1\n\t\t\t? (hexDouble(Math.round(rgba[3] * 255)))\n\t\t\t: '')\n\t);\n};\n\ncs.to.rgb = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'\n\t\t: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';\n};\n\ncs.to.rgb.percent = function () {\n\tvar rgba = swizzle(arguments);\n\n\tvar r = Math.round(rgba[0] / 255 * 100);\n\tvar g = Math.round(rgba[1] / 255 * 100);\n\tvar b = Math.round(rgba[2] / 255 * 100);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'\n\t\t: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';\n};\n\ncs.to.hsl = function () {\n\tvar hsla = swizzle(arguments);\n\treturn hsla.length < 4 || hsla[3] === 1\n\t\t? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'\n\t\t: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';\n};\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\ncs.to.hwb = function () {\n\tvar hwba = swizzle(arguments);\n\n\tvar a = '';\n\tif (hwba.length >= 4 && hwba[3] !== 1) {\n\t\ta = ', ' + hwba[3];\n\t}\n\n\treturn 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';\n};\n\ncs.to.keyword = function (rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\n\n// helpers\nfunction clamp(num, min, max) {\n\treturn Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n\tvar str = num.toString(16).toUpperCase();\n\treturn (str.length < 2) ? '0' + str : str;\n}\n","'use strict';\n\nvar isArrayish = require('is-arrayish');\n\nvar concat = Array.prototype.concat;\nvar slice = Array.prototype.slice;\n\nvar swizzle = module.exports = function swizzle(args) {\n\tvar results = [];\n\n\tfor (var i = 0, len = args.length; i < len; i++) {\n\t\tvar arg = args[i];\n\n\t\tif (isArrayish(arg)) {\n\t\t\t// http://jsperf.com/javascript-array-concat-vs-push/98\n\t\t\tresults = concat.call(results, slice.call(arg));\n\t\t} else {\n\t\t\tresults.push(arg);\n\t\t}\n\t}\n\n\treturn results;\n};\n\nswizzle.wrap = function (fn) {\n\treturn function () {\n\t\treturn fn(swizzle(arguments));\n\t};\n};\n","'use strict';\n\nmodule.exports = function isArrayish(obj) {\n\tif (!obj) {\n\t\treturn false;\n\t}\n\n\treturn obj instanceof Array || Array.isArray(obj) ||\n\t\t(obj.length >= 0 && obj.splice instanceof Function);\n};\n","var conversions = require('./conversions');\nvar route = require('./route');\n\nvar convert = {};\n\nvar models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\tvar result = fn(args);\n\n\t\t// we're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (var len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(function (fromModel) {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tvar routes = route(fromModel);\n\tvar routeModels = Object.keys(routes);\n\n\trouteModels.forEach(function (toModel) {\n\t\tvar fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var conversions = require('./conversions');\n\n/*\n\tthis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tvar graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tvar models = Object.keys(conversions);\n\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tvar graph = buildGraph();\n\tvar queue = [fromModel]; // unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tvar current = queue.pop();\n\t\tvar adjacents = Object.keys(conversions[current]);\n\n\t\tfor (var len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tvar adjacent = adjacents[i];\n\t\t\tvar node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tvar path = [graph[toModel].parent, toModel];\n\tvar fn = conversions[graph[toModel].parent][toModel];\n\n\tvar cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tvar graph = deriveBFS(fromModel);\n\tvar conversion = {};\n\n\tvar models = Object.keys(graph);\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tvar toModel = models[i];\n\t\tvar node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// no possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","'use strict';\n\nimport $ from 'jquery';\nimport ColorItem from './ColorItem';\n\n/**\n * Handles everything related to the colorpicker color\n * @ignore\n */\nclass ColorHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n }\n\n /**\n * @returns {*|String|ColorItem}\n */\n get fallback() {\n return this.colorpicker.options.fallbackColor ?\n this.colorpicker.options.fallbackColor : (this.hasColor() ? this.color : null);\n }\n\n /**\n * @returns {String|null}\n */\n get format() {\n if (this.colorpicker.options.format) {\n return this.colorpicker.options.format;\n }\n\n if (this.hasColor() && this.color.hasTransparency() && this.color.format.match(/^hex/)) {\n return this.isAlphaEnabled() ? 'rgba' : 'hex';\n }\n\n if (this.hasColor()) {\n return this.color.format;\n }\n\n return 'rgb';\n }\n\n /**\n * Internal color getter\n *\n * @type {ColorItem|null}\n */\n get color() {\n return this.colorpicker.element.data('color');\n }\n\n /**\n * Internal color setter\n *\n * @ignore\n * @param {ColorItem|null} value\n */\n set color(value) {\n this.colorpicker.element.data('color', value);\n\n if ((value instanceof ColorItem) && (this.colorpicker.options.format === 'auto')) {\n // If format is 'auto', use the first parsed one from now on\n this.colorpicker.options.format = this.color.format;\n }\n }\n\n bind() {\n // if the color option is set\n if (this.colorpicker.options.color) {\n this.color = this.createColor(this.colorpicker.options.color);\n return;\n }\n\n // if element[color] is empty and the input has a value\n if (!this.color && !!this.colorpicker.inputHandler.getValue()) {\n this.color = this.createColor(\n this.colorpicker.inputHandler.getValue(), this.colorpicker.options.autoInputFallback\n );\n }\n }\n\n unbind() {\n this.colorpicker.element.removeData('color');\n }\n\n /**\n * Returns the color string from the input value or the 'data-color' attribute of the input or element.\n * If empty, it returns the defaultValue parameter.\n *\n * @returns {String|*}\n */\n getColorString() {\n if (!this.hasColor()) {\n return '';\n }\n\n return this.color.string(this.format);\n }\n\n /**\n * Sets the color value\n *\n * @param {String|ColorItem} val\n */\n setColorString(val) {\n let color = val ? this.createColor(val) : null;\n\n this.color = color ? color : null;\n }\n\n /**\n * Creates a new color using the widget instance options (fallbackColor, format).\n *\n * @fires Colorpicker#colorpickerInvalid\n * @param {*} val\n * @param {boolean} fallbackOnInvalid\n * @returns {ColorItem}\n */\n createColor(val, fallbackOnInvalid = true) {\n let color = new ColorItem(this.resolveColorDelegate(val), this.format);\n\n if (!color.isValid()) {\n if (fallbackOnInvalid) {\n color = this.getFallbackColor();\n }\n\n /**\n * (Colorpicker) Fired when the color is invalid and the fallback color is going to be used.\n *\n * @event Colorpicker#colorpickerInvalid\n */\n this.colorpicker.trigger('colorpickerInvalid', color, val);\n }\n\n if (!this.isAlphaEnabled()) {\n // Alpha is disabled\n color.alpha = 1;\n }\n\n return color;\n }\n\n getFallbackColor() {\n if (this.fallback && (this.fallback === this.color)) {\n return this.color;\n }\n\n let fallback = this.resolveColorDelegate(this.fallback);\n\n let color = new ColorItem(fallback, this.format);\n\n if (!color.isValid()) {\n console.warn('The fallback color is invalid. Falling back to the previous color or black if any.');\n return this.color ? this.color : new ColorItem('#000000', this.format);\n }\n\n return color;\n }\n\n /**\n * @returns {ColorItem}\n */\n assureColor() {\n if (!this.hasColor()) {\n this.color = this.getFallbackColor();\n }\n\n return this.color;\n }\n\n /**\n * Delegates the color resolution to the colorpicker extensions.\n *\n * @param {String|*} color\n * @param {boolean} realColor if true, the color should resolve into a real (not named) color code\n * @returns {ColorItem|String|*|null}\n */\n resolveColorDelegate(color, realColor = true) {\n let extResolvedColor = false;\n\n $.each(this.colorpicker.extensions, function (name, ext) {\n if (extResolvedColor !== false) {\n // skip if resolved\n return;\n }\n extResolvedColor = ext.resolveColor(color, realColor);\n });\n\n return extResolvedColor ? extResolvedColor : color;\n }\n\n /**\n * Checks if there is a color object, that it is valid and it is not a fallback\n * @returns {boolean}\n */\n isInvalidColor() {\n return !this.hasColor() || !this.color.isValid();\n }\n\n /**\n * Returns true if the useAlpha option is exactly true, false otherwise\n * @returns {boolean}\n */\n isAlphaEnabled() {\n return (this.colorpicker.options.useAlpha !== false);\n }\n\n /**\n * Returns true if the current color object is an instance of Color, false otherwise.\n * @returns {boolean}\n */\n hasColor() {\n return this.color instanceof ColorItem;\n }\n}\n\nexport default ColorHandler;\n","'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Handles everything related to the colorpicker UI\n * @ignore\n */\nclass PickerHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery}\n */\n this.picker = null;\n }\n\n get options() {\n return this.colorpicker.options;\n }\n\n get color() {\n return this.colorpicker.colorHandler.color;\n }\n\n bind() {\n /**\n * @type {jQuery|HTMLElement}\n */\n let picker = this.picker = $(this.options.template);\n\n if (this.options.customClass) {\n picker.addClass(this.options.customClass);\n }\n\n if (this.options.horizontal) {\n picker.addClass('colorpicker-horizontal');\n }\n\n if (this._supportsAlphaBar()) {\n this.options.useAlpha = true;\n picker.addClass('colorpicker-with-alpha');\n } else {\n this.options.useAlpha = false;\n }\n }\n\n attach() {\n // Inject the colorpicker element into the DOM\n let pickerParent = this.colorpicker.container ? this.colorpicker.container : null;\n\n if (pickerParent) {\n this.picker.appendTo(pickerParent);\n }\n }\n\n unbind() {\n this.picker.remove();\n }\n\n _supportsAlphaBar() {\n return (\n (this.options.useAlpha || (this.colorpicker.colorHandler.hasColor() && this.color.hasTransparency())) &&\n (this.options.useAlpha !== false) &&\n (!this.options.format || (this.options.format && !this.options.format.match(/^hex([36])?$/i)))\n );\n }\n\n /**\n * Changes the color adjustment bars using the current color object information.\n */\n update() {\n if (!this.colorpicker.colorHandler.hasColor()) {\n return;\n }\n\n let vertical = (this.options.horizontal !== true),\n slider = vertical ? this.options.sliders : this.options.slidersHorz;\n\n let saturationGuide = this.picker.find('.colorpicker-saturation .colorpicker-guide'),\n hueGuide = this.picker.find('.colorpicker-hue .colorpicker-guide'),\n alphaGuide = this.picker.find('.colorpicker-alpha .colorpicker-guide');\n\n let hsva = this.color.toHsvaRatio();\n\n // Set guides position\n if (hueGuide.length) {\n hueGuide.css(vertical ? 'top' : 'left', (vertical ? slider.hue.maxTop : slider.hue.maxLeft) * (1 - hsva.h));\n }\n if (alphaGuide.length) {\n alphaGuide.css(vertical ? 'top' : 'left', (vertical ? slider.alpha.maxTop : slider.alpha.maxLeft) * (1 - hsva.a));\n }\n if (saturationGuide.length) {\n saturationGuide.css({\n 'top': slider.saturation.maxTop - hsva.v * slider.saturation.maxTop,\n 'left': hsva.s * slider.saturation.maxLeft\n });\n }\n\n // Set saturation hue background\n this.picker.find('.colorpicker-saturation')\n .css('backgroundColor', this.color.getCloneHueOnly().toHexString()); // we only need hue\n\n // Set alpha color gradient\n let hexColor = this.color.toHexString();\n\n let alphaBg = '';\n\n if (this.options.horizontal) {\n alphaBg = `linear-gradient(to right, ${hexColor} 0%, transparent 100%)`;\n } else {\n alphaBg = `linear-gradient(to bottom, ${hexColor} 0%, transparent 100%)`;\n }\n\n this.picker.find('.colorpicker-alpha-color').css('background', alphaBg);\n }\n}\n\nexport default PickerHandler;\n","'use strict';\n\n/**\n * Handles everything related to the colorpicker addon\n * @ignore\n */\nclass AddonHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery}\n */\n this.addon = null;\n }\n\n hasAddon() {\n return !!this.addon;\n }\n\n bind() {\n /**\n * @type {*|jQuery}\n */\n this.addon = this.colorpicker.options.addon ?\n this.colorpicker.element.find(this.colorpicker.options.addon) : null;\n\n if (this.addon && (this.addon.length === 0)) {\n // not found\n this.addon = null;\n }\n }\n\n unbind() {\n if (this.hasAddon()) {\n this.addon.off('.colorpicker');\n }\n }\n\n /**\n * If the addon element is present, its background color is updated\n */\n update() {\n if (!this.colorpicker.colorHandler.hasColor() || !this.hasAddon()) {\n return;\n }\n\n let colorStr = this.colorpicker.colorHandler.getColorString();\n\n let styles = {'background': colorStr};\n\n let icn = this.addon.find('i').eq(0);\n\n if (icn.length > 0) {\n icn.css(styles);\n } else {\n this.addon.css(styles);\n }\n }\n}\n\nexport default AddonHandler;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js b/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js deleted file mode 100644 index bfdbed0c..00000000 --- a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * Bootstrap Colorpicker - Bootstrap Colorpicker is a modular color picker plugin for Bootstrap 4. - * @package bootstrap-colorpicker - * @version v3.2.0 - * @license MIT - * @link https://itsjavi.com/bootstrap-colorpicker/ - * @link https://github.com/itsjavi/bootstrap-colorpicker.git - */ -(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==="object"&&typeof module==="object")module.exports=factory(require("jquery"));else if(typeof define==="function"&&define.amd)define("bootstrap-colorpicker",["jquery"],factory);else if(typeof exports==="object")exports["bootstrap-colorpicker"]=factory(require("jquery"));else root["bootstrap-colorpicker"]=factory(root["jQuery"])})(window,function(__WEBPACK_EXTERNAL_MODULE__0__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:true,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.t=function(value,mode){if(mode&1)value=__webpack_require__(value);if(mode&8)return value;if(mode&4&&typeof value==="object"&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:true,value});if(mode&2&&typeof value!="string")for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=7)}([function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Extension);this.colorpicker=colorpicker;this.options=options;if(!(this.colorpicker.element&&this.colorpicker.element.length)){throw new Error("Extension: this.colorpicker.element is not valid")}this.colorpicker.element.on("colorpickerCreate.colorpicker-ext",_jquery2.default.proxy(this.onCreate,this));this.colorpicker.element.on("colorpickerDestroy.colorpicker-ext",_jquery2.default.proxy(this.onDestroy,this));this.colorpicker.element.on("colorpickerUpdate.colorpicker-ext",_jquery2.default.proxy(this.onUpdate,this));this.colorpicker.element.on("colorpickerChange.colorpicker-ext",_jquery2.default.proxy(this.onChange,this));this.colorpicker.element.on("colorpickerInvalid.colorpicker-ext",_jquery2.default.proxy(this.onInvalid,this));this.colorpicker.element.on("colorpickerShow.colorpicker-ext",_jquery2.default.proxy(this.onShow,this));this.colorpicker.element.on("colorpickerHide.colorpicker-ext",_jquery2.default.proxy(this.onHide,this));this.colorpicker.element.on("colorpickerEnable.colorpicker-ext",_jquery2.default.proxy(this.onEnable,this));this.colorpicker.element.on("colorpickerDisable.colorpicker-ext",_jquery2.default.proxy(this.onDisable,this))}_createClass(Extension,[{key:"resolveColor",value:function resolveColor(color){var realColor=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return false}},{key:"onCreate",value:function onCreate(event){}},{key:"onDestroy",value:function onDestroy(event){this.colorpicker.element.off(".colorpicker-ext")}},{key:"onUpdate",value:function onUpdate(event){}},{key:"onChange",value:function onChange(event){}},{key:"onInvalid",value:function onInvalid(event){}},{key:"onHide",value:function onHide(event){}},{key:"onShow",value:function onShow(event){}},{key:"onDisable",value:function onDisable(event){}},{key:"onEnable",value:function onEnable(event){}}]);return Extension}();exports.default=Extension;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.ColorItem=exports.HSVAColor=undefined;var _createClass=function(){function defineProperties(target,props){for(var i=0;i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}if(arguments.length===0){return this._color}var result=this._color[fn].apply(this._color,args);if(!(result instanceof _color2.default)){return result}return new ColorItem(result,this.format)}},{key:"original",get:function get(){return this._original}}],[{key:"HSVAColor",get:function get(){return HSVAColor}}]);function ColorItem(){var color=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var format=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;_classCallCheck(this,ColorItem);this.replace(color,format)}_createClass(ColorItem,[{key:"replace",value:function replace(color){var format=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;format=ColorItem.sanitizeFormat(format);this._original={color,format,valid:true};this._color=ColorItem.parse(color);if(this._color===null){this._color=(0,_color2.default)();this._original.valid=false;return}this._format=format?format:ColorItem.isHex(color)?"hex":this._color.model}},{key:"isValid",value:function isValid(){return this._original.valid===true}},{key:"setHueRatio",value:function setHueRatio(h){this.hue=(1-h)*360}},{key:"setSaturationRatio",value:function setSaturationRatio(s){this.saturation=s*100}},{key:"setValueRatio",value:function setValueRatio(v){this.value=(1-v)*100}},{key:"setAlphaRatio",value:function setAlphaRatio(a){this.alpha=1-a}},{key:"isDesaturated",value:function isDesaturated(){return this.saturation===0}},{key:"isTransparent",value:function isTransparent(){return this.alpha===0}},{key:"hasTransparency",value:function hasTransparency(){return this.hasAlpha()&&this.alpha<1}},{key:"hasAlpha",value:function hasAlpha(){return!isNaN(this.alpha)}},{key:"toObject",value:function toObject(){return new HSVAColor(this.hue,this.saturation,this.value,this.alpha)}},{key:"toHsva",value:function toHsva(){return this.toObject()}},{key:"toHsvaRatio",value:function toHsvaRatio(){return new HSVAColor(this.hue/360,this.saturation/100,this.value/100,this.alpha)}},{key:"toString",value:function toString(){return this.string()}},{key:"string",value:function string(){var format=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;format=ColorItem.sanitizeFormat(format?format:this.format);if(!format){return this._color.round().string()}if(this._color[format]===undefined){throw new Error("Unsupported color format: '"+format+"'")}var str=this._color[format]();return str.round?str.round().string():str}},{key:"equals",value:function equals(color){color=color instanceof ColorItem?color:new ColorItem(color);if(!color.isValid()||!this.isValid()){return false}return this.hue===color.hue&&this.saturation===color.saturation&&this.value===color.value&&this.alpha===color.alpha}},{key:"getClone",value:function getClone(){return new ColorItem(this._color,this.format)}},{key:"getCloneHueOnly",value:function getCloneHueOnly(){return new ColorItem([this.hue,100,100,1],this.format)}},{key:"getCloneOpaque",value:function getCloneOpaque(){return new ColorItem(this._color.alpha(1),this.format)}},{key:"toRgbString",value:function toRgbString(){return this.string("rgb")}},{key:"toHexString",value:function toHexString(){return this.string("hex")}},{key:"toHslString",value:function toHslString(){return this.string("hsl")}},{key:"isDark",value:function isDark(){return this._color.isDark()}},{key:"isLight",value:function isLight(){return this._color.isLight()}},{key:"generate",value:function generate(formula){var hues=[];if(Array.isArray(formula)){hues=formula}else if(!ColorItem.colorFormulas.hasOwnProperty(formula)){throw new Error("No color formula found with the name '"+formula+"'.")}else{hues=ColorItem.colorFormulas[formula]}var colors=[],mainColor=this._color,format=this.format;hues.forEach(function(hue){var levels=[hue?(mainColor.hue()+hue)%360:mainColor.hue(),mainColor.saturationv(),mainColor.value(),mainColor.alpha()];colors.push(new ColorItem(levels,format))});return colors}},{key:"hue",get:function get(){return this._color.hue()},set:function set(value){this._color=this._color.hue(value)}},{key:"saturation",get:function get(){return this._color.saturationv()},set:function set(value){this._color=this._color.saturationv(value)}},{key:"value",get:function get(){return this._color.value()},set:function set(value){this._color=this._color.value(value)}},{key:"alpha",get:function get(){var a=this._color.alpha();return isNaN(a)?1:a},set:function set(value){this._color=this._color.alpha(Math.round(value*100)/100)}},{key:"format",get:function get(){return this._format?this._format:this._color.model},set:function set(value){this._format=ColorItem.sanitizeFormat(value)}}],[{key:"parse",value:function parse(color){if(color instanceof _color2.default){return color}if(color instanceof ColorItem){return color._color}var format=null;if(color instanceof HSVAColor){color=[color.h,color.s,color.v,isNaN(color.a)?1:color.a]}else{color=ColorItem.sanitizeString(color)}if(color===null){return null}if(Array.isArray(color)){format="hsv"}try{return(0,_color2.default)(color,format)}catch(e){return null}}},{key:"sanitizeString",value:function sanitizeString(str){if(!(typeof str==="string"||str instanceof String)){return str}if(str.match(/^[0-9a-f]{2,}$/i)){return"#"+str}if(str.toLowerCase()==="transparent"){return"#FFFFFF00"}return str}},{key:"isHex",value:function isHex(str){if(!(typeof str==="string"||str instanceof String)){return false}return!!str.match(/^#?[0-9a-f]{2,}$/i)}},{key:"sanitizeFormat",value:function sanitizeFormat(format){switch(format){case"hex":case"hex3":case"hex4":case"hex6":case"hex8":return"hex";case"rgb":case"rgba":case"keyword":case"name":return"rgb";case"hsl":case"hsla":case"hsv":case"hsva":case"hwb":case"hwba":return"hsl";default:return""}}}]);return ColorItem}();ColorItem.colorFormulas={complementary:[180],triad:[0,120,240],tetrad:[0,90,180,270],splitcomplement:[0,72,216]};exports.default=ColorItem;exports.HSVAColor=HSVAColor;exports.ColorItem=ColorItem},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var sassVars={bar_size_short:16,base_margin:6,columns:6};var sliderSize=sassVars.bar_size_short*sassVars.columns+sassVars.base_margin*(sassVars.columns-1);exports.default={customClass:null,color:false,fallbackColor:false,format:"auto",horizontal:false,inline:false,container:false,popover:{animation:true,placement:"bottom",fallbackPlacement:"flip"},debug:false,input:"input",addon:".colorpicker-input-addon",autoInputFallback:true,useHashPrefix:true,useAlpha:true,template:'
\n
\n
\n
\n
\n \n
\n
',extensions:[{name:"preview",options:{showText:true}}],sliders:{saturation:{selector:".colorpicker-saturation",maxLeft:sliderSize,maxTop:sliderSize,callLeft:"setSaturationRatio",callTop:"setValueRatio"},hue:{selector:".colorpicker-hue",maxLeft:0,maxTop:sliderSize,callLeft:false,callTop:"setHueRatio"},alpha:{selector:".colorpicker-alpha",childSelector:".colorpicker-alpha-color",maxLeft:0,maxTop:sliderSize,callLeft:false,callTop:"setAlphaRatio"}},slidersHorz:{saturation:{selector:".colorpicker-saturation",maxLeft:sliderSize,maxTop:sliderSize,callLeft:"setSaturationRatio",callTop:"setValueRatio"},hue:{selector:".colorpicker-hue",maxLeft:sliderSize,maxTop:0,callLeft:"setHueRatio",callTop:false},alpha:{selector:".colorpicker-alpha",childSelector:".colorpicker-alpha-color",maxLeft:sliderSize,maxTop:0,callLeft:"setAlphaRatio",callTop:false}}};module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Palette);var _this=_possibleConstructorReturn(this,(Palette.__proto__||Object.getPrototypeOf(Palette)).call(this,colorpicker,_jquery2.default.extend(true,{},defaults,options)));if(!Array.isArray(_this.options.colors)&&_typeof(_this.options.colors)!=="object"){_this.options.colors=null}return _this}_createClass(Palette,[{key:"getLength",value:function getLength(){if(!this.options.colors){return 0}if(Array.isArray(this.options.colors)){return this.options.colors.length}if(_typeof(this.options.colors)==="object"){return Object.keys(this.options.colors).length}return 0}},{key:"resolveColor",value:function resolveColor(color){var realColor=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(this.getLength()<=0){return false}if(Array.isArray(this.options.colors)){if(this.options.colors.indexOf(color)>=0){return color}if(this.options.colors.indexOf(color.toUpperCase())>=0){return color.toUpperCase()}if(this.options.colors.indexOf(color.toLowerCase())>=0){return color.toLowerCase()}return false}if(_typeof(this.options.colors)!=="object"){return false}if(!this.options.namesAsValues||realColor){return this.getValue(color,false)}return this.getName(color,this.getName("#"+color))}},{key:"getName",value:function getName(value){var defaultValue=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!(typeof value==="string")||!this.options.colors){return defaultValue}for(var name in this.options.colors){if(!this.options.colors.hasOwnProperty(name)){continue}if(this.options.colors[name].toLowerCase()===value.toLowerCase()){return name}}return defaultValue}},{key:"getValue",value:function getValue(name){var defaultValue=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!(typeof name==="string")||!this.options.colors){return defaultValue}if(this.options.colors.hasOwnProperty(name)){return this.options.colors[name]}return defaultValue}}]);return Palette}(_Extension3.default);exports.default=Palette;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";module.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(module,exports,__webpack_require__){var cssKeywords=__webpack_require__(5);var reverseKeywords={};for(var key in cssKeywords){if(cssKeywords.hasOwnProperty(key)){reverseKeywords[cssKeywords[key]]=key}}var convert=module.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var model in convert){if(convert.hasOwnProperty(model)){if(!("channels"in convert[model])){throw new Error("missing channels property: "+model)}if(!("labels"in convert[model])){throw new Error("missing channel labels property: "+model)}if(convert[model].labels.length!==convert[model].channels){throw new Error("channel and label counts mismatch: "+model)}var channels=convert[model].channels;var labels=convert[model].labels;delete convert[model].channels;delete convert[model].labels;Object.defineProperty(convert[model],"channels",{value:channels});Object.defineProperty(convert[model],"labels",{value:labels})}}convert.rgb.hsl=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var min=Math.min(r,g,b);var max=Math.max(r,g,b);var delta=max-min;var h;var s;var l;if(max===min){h=0}else if(r===max){h=(g-b)/delta}else if(g===max){h=2+(b-r)/delta}else if(b===max){h=4+(r-g)/delta}h=Math.min(h*60,360);if(h<0){h+=360}l=(min+max)/2;if(max===min){s=0}else if(l<=.5){s=delta/(max+min)}else{s=delta/(2-max-min)}return[h,s*100,l*100]};convert.rgb.hsv=function(rgb){var rdif;var gdif;var bdif;var h;var s;var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var v=Math.max(r,g,b);var diff=v-Math.min(r,g,b);var diffc=function(c){return(v-c)/6/diff+1/2};if(diff===0){h=s=0}else{s=diff/v;rdif=diffc(r);gdif=diffc(g);bdif=diffc(b);if(r===v){h=bdif-gdif}else if(g===v){h=1/3+rdif-bdif}else if(b===v){h=2/3+gdif-rdif}if(h<0){h+=1}else if(h>1){h-=1}}return[h*360,s*100,v*100]};convert.rgb.hwb=function(rgb){var r=rgb[0];var g=rgb[1];var b=rgb[2];var h=convert.rgb.hsl(rgb)[0];var w=1/255*Math.min(r,Math.min(g,b));b=1-1/255*Math.max(r,Math.max(g,b));return[h,w*100,b*100]};convert.rgb.cmyk=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var c;var m;var y;var k;k=Math.min(1-r,1-g,1-b);c=(1-r-k)/(1-k)||0;m=(1-g-k)/(1-k)||0;y=(1-b-k)/(1-k)||0;return[c*100,m*100,y*100,k*100]};function comparativeDistance(x,y){return Math.pow(x[0]-y[0],2)+Math.pow(x[1]-y[1],2)+Math.pow(x[2]-y[2],2)}convert.rgb.keyword=function(rgb){var reversed=reverseKeywords[rgb];if(reversed){return reversed}var currentClosestDistance=Infinity;var currentClosestKeyword;for(var keyword in cssKeywords){if(cssKeywords.hasOwnProperty(keyword)){var value=cssKeywords[keyword];var distance=comparativeDistance(rgb,value);if(distance.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92;b=b>.04045?Math.pow((b+.055)/1.055,2.4):b/12.92;var x=r*.4124+g*.3576+b*.1805;var y=r*.2126+g*.7152+b*.0722;var z=r*.0193+g*.1192+b*.9505;return[x*100,y*100,z*100]};convert.rgb.lab=function(rgb){var xyz=convert.rgb.xyz(rgb);var x=xyz[0];var y=xyz[1];var z=xyz[2];var l;var a;var b;x/=95.047;y/=100;z/=108.883;x=x>.008856?Math.pow(x,1/3):7.787*x+16/116;y=y>.008856?Math.pow(y,1/3):7.787*y+16/116;z=z>.008856?Math.pow(z,1/3):7.787*z+16/116;l=116*y-16;a=500*(x-y);b=200*(y-z);return[l,a,b]};convert.hsl.rgb=function(hsl){var h=hsl[0]/360;var s=hsl[1]/100;var l=hsl[2]/100;var t1;var t2;var t3;var rgb;var val;if(s===0){val=l*255;return[val,val,val]}if(l<.5){t2=l*(1+s)}else{t2=l+s-l*s}t1=2*l-t2;rgb=[0,0,0];for(var i=0;i<3;i++){t3=h+1/3*-(i-1);if(t3<0){t3++}if(t3>1){t3--}if(6*t3<1){val=t1+(t2-t1)*6*t3}else if(2*t3<1){val=t2}else if(3*t3<2){val=t1+(t2-t1)*(2/3-t3)*6}else{val=t1}rgb[i]=val*255}return rgb};convert.hsl.hsv=function(hsl){var h=hsl[0];var s=hsl[1]/100;var l=hsl[2]/100;var smin=s;var lmin=Math.max(l,.01);var sv;var v;l*=2;s*=l<=1?l:2-l;smin*=lmin<=1?lmin:2-lmin;v=(l+s)/2;sv=l===0?2*smin/(lmin+smin):2*s/(l+s);return[h,sv*100,v*100]};convert.hsv.rgb=function(hsv){var h=hsv[0]/60;var s=hsv[1]/100;var v=hsv[2]/100;var hi=Math.floor(h)%6;var f=h-Math.floor(h);var p=255*v*(1-s);var q=255*v*(1-s*f);var t=255*v*(1-s*(1-f));v*=255;switch(hi){case 0:return[v,t,p];case 1:return[q,v,p];case 2:return[p,v,t];case 3:return[p,q,v];case 4:return[t,p,v];case 5:return[v,p,q]}};convert.hsv.hsl=function(hsv){var h=hsv[0];var s=hsv[1]/100;var v=hsv[2]/100;var vmin=Math.max(v,.01);var lmin;var sl;var l;l=(2-s)*v;lmin=(2-s)*vmin;sl=s*vmin;sl/=lmin<=1?lmin:2-lmin;sl=sl||0;l/=2;return[h,sl*100,l*100]};convert.hwb.rgb=function(hwb){var h=hwb[0]/360;var wh=hwb[1]/100;var bl=hwb[2]/100;var ratio=wh+bl;var i;var v;var f;var n;if(ratio>1){wh/=ratio;bl/=ratio}i=Math.floor(6*h);v=1-bl;f=6*h-i;if((i&1)!==0){f=1-f}n=wh+f*(v-wh);var r;var g;var b;switch(i){default:case 6:case 0:r=v;g=n;b=wh;break;case 1:r=n;g=v;b=wh;break;case 2:r=wh;g=v;b=n;break;case 3:r=wh;g=n;b=v;break;case 4:r=n;g=wh;b=v;break;case 5:r=v;g=wh;b=n;break}return[r*255,g*255,b*255]};convert.cmyk.rgb=function(cmyk){var c=cmyk[0]/100;var m=cmyk[1]/100;var y=cmyk[2]/100;var k=cmyk[3]/100;var r;var g;var b;r=1-Math.min(1,c*(1-k)+k);g=1-Math.min(1,m*(1-k)+k);b=1-Math.min(1,y*(1-k)+k);return[r*255,g*255,b*255]};convert.xyz.rgb=function(xyz){var x=xyz[0]/100;var y=xyz[1]/100;var z=xyz[2]/100;var r;var g;var b;r=x*3.2406+y*-1.5372+z*-.4986;g=x*-.9689+y*1.8758+z*.0415;b=x*.0557+y*-.204+z*1.057;r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*12.92;g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:g*12.92;b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92;r=Math.min(Math.max(0,r),1);g=Math.min(Math.max(0,g),1);b=Math.min(Math.max(0,b),1);return[r*255,g*255,b*255]};convert.xyz.lab=function(xyz){var x=xyz[0];var y=xyz[1];var z=xyz[2];var l;var a;var b;x/=95.047;y/=100;z/=108.883;x=x>.008856?Math.pow(x,1/3):7.787*x+16/116;y=y>.008856?Math.pow(y,1/3):7.787*y+16/116;z=z>.008856?Math.pow(z,1/3):7.787*z+16/116;l=116*y-16;a=500*(x-y);b=200*(y-z);return[l,a,b]};convert.lab.xyz=function(lab){var l=lab[0];var a=lab[1];var b=lab[2];var x;var y;var z;y=(l+16)/116;x=a/500+y;z=y-b/200;var y2=Math.pow(y,3);var x2=Math.pow(x,3);var z2=Math.pow(z,3);y=y2>.008856?y2:(y-16/116)/7.787;x=x2>.008856?x2:(x-16/116)/7.787;z=z2>.008856?z2:(z-16/116)/7.787;x*=95.047;y*=100;z*=108.883;return[x,y,z]};convert.lab.lch=function(lab){var l=lab[0];var a=lab[1];var b=lab[2];var hr;var h;var c;hr=Math.atan2(b,a);h=hr*360/2/Math.PI;if(h<0){h+=360}c=Math.sqrt(a*a+b*b);return[l,c,h]};convert.lch.lab=function(lch){var l=lch[0];var c=lch[1];var h=lch[2];var a;var b;var hr;hr=h/360*2*Math.PI;a=c*Math.cos(hr);b=c*Math.sin(hr);return[l,a,b]};convert.rgb.ansi16=function(args){var r=args[0];var g=args[1];var b=args[2];var value=1 in arguments?arguments[1]:convert.rgb.hsv(args)[2];value=Math.round(value/50);if(value===0){return 30}var ansi=30+(Math.round(b/255)<<2|Math.round(g/255)<<1|Math.round(r/255));if(value===2){ansi+=60}return ansi};convert.hsv.ansi16=function(args){return convert.rgb.ansi16(convert.hsv.rgb(args),args[2])};convert.rgb.ansi256=function(args){var r=args[0];var g=args[1];var b=args[2];if(r===g&&g===b){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}var ansi=16+36*Math.round(r/255*5)+6*Math.round(g/255*5)+Math.round(b/255*5);return ansi};convert.ansi16.rgb=function(args){var color=args%10;if(color===0||color===7){if(args>50){color+=3.5}color=color/10.5*255;return[color,color,color]}var mult=(~~(args>50)+1)*.5;var r=(color&1)*mult*255;var g=(color>>1&1)*mult*255;var b=(color>>2&1)*mult*255;return[r,g,b]};convert.ansi256.rgb=function(args){if(args>=232){var c=(args-232)*10+8;return[c,c,c]}args-=16;var rem;var r=Math.floor(args/36)/5*255;var g=Math.floor((rem=args%36)/6)/5*255;var b=rem%6/5*255;return[r,g,b]};convert.rgb.hex=function(args){var integer=((Math.round(args[0])&255)<<16)+((Math.round(args[1])&255)<<8)+(Math.round(args[2])&255);var string=integer.toString(16).toUpperCase();return"000000".substring(string.length)+string};convert.hex.rgb=function(args){var match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match){return[0,0,0]}var colorString=match[0];if(match[0].length===3){colorString=colorString.split("").map(function(char){return char+char}).join("")}var integer=parseInt(colorString,16);var r=integer>>16&255;var g=integer>>8&255;var b=integer&255;return[r,g,b]};convert.rgb.hcg=function(rgb){var r=rgb[0]/255;var g=rgb[1]/255;var b=rgb[2]/255;var max=Math.max(Math.max(r,g),b);var min=Math.min(Math.min(r,g),b);var chroma=max-min;var grayscale;var hue;if(chroma<1){grayscale=min/(1-chroma)}else{grayscale=0}if(chroma<=0){hue=0}else if(max===r){hue=(g-b)/chroma%6}else if(max===g){hue=2+(b-r)/chroma}else{hue=4+(r-g)/chroma+4}hue/=6;hue%=1;return[hue*360,chroma*100,grayscale*100]};convert.hsl.hcg=function(hsl){var s=hsl[1]/100;var l=hsl[2]/100;var c=1;var f=0;if(l<.5){c=2*s*l}else{c=2*s*(1-l)}if(c<1){f=(l-.5*c)/(1-c)}return[hsl[0],c*100,f*100]};convert.hsv.hcg=function(hsv){var s=hsv[1]/100;var v=hsv[2]/100;var c=s*v;var f=0;if(c<1){f=(v-c)/(1-c)}return[hsv[0],c*100,f*100]};convert.hcg.rgb=function(hcg){var h=hcg[0]/360;var c=hcg[1]/100;var g=hcg[2]/100;if(c===0){return[g*255,g*255,g*255]}var pure=[0,0,0];var hi=h%1*6;var v=hi%1;var w=1-v;var mg=0;switch(Math.floor(hi)){case 0:pure[0]=1;pure[1]=v;pure[2]=0;break;case 1:pure[0]=w;pure[1]=1;pure[2]=0;break;case 2:pure[0]=0;pure[1]=1;pure[2]=v;break;case 3:pure[0]=0;pure[1]=w;pure[2]=1;break;case 4:pure[0]=v;pure[1]=0;pure[2]=1;break;default:pure[0]=1;pure[1]=0;pure[2]=w}mg=(1-c)*g;return[(c*pure[0]+mg)*255,(c*pure[1]+mg)*255,(c*pure[2]+mg)*255]};convert.hcg.hsv=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var v=c+g*(1-c);var f=0;if(v>0){f=c/v}return[hcg[0],f*100,v*100]};convert.hcg.hsl=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var l=g*(1-c)+.5*c;var s=0;if(l>0&&l<.5){s=c/(2*l)}else if(l>=.5&&l<1){s=c/(2*(1-l))}return[hcg[0],s*100,l*100]};convert.hcg.hwb=function(hcg){var c=hcg[1]/100;var g=hcg[2]/100;var v=c+g*(1-c);return[hcg[0],(v-c)*100,(1-v)*100]};convert.hwb.hcg=function(hwb){var w=hwb[1]/100;var b=hwb[2]/100;var v=1-b;var c=v-w;var g=0;if(c<1){g=(v-c)/(1-c)}return[hwb[0],c*100,g*100]};convert.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]};convert.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]};convert.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]};convert.gray.hsl=convert.gray.hsv=function(args){return[0,0,args[0]]};convert.gray.hwb=function(gray){return[0,100,gray[0]]};convert.gray.cmyk=function(gray){return[0,0,0,gray[0]]};convert.gray.lab=function(gray){return[gray[0],0,0]};convert.gray.hex=function(gray){var val=Math.round(gray[0]/100*255)&255;var integer=(val<<16)+(val<<8)+val;var string=integer.toString(16).toUpperCase();return"000000".substring(string.length)+string};convert.rgb.gray=function(rgb){var val=(rgb[0]+rgb[1]+rgb[2])/3;return[val/255*100]}},function(module,exports,__webpack_require__){"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};var _Colorpicker=__webpack_require__(8);var _Colorpicker2=_interopRequireDefault(_Colorpicker);var _jquery=__webpack_require__(0);var _jquery2=_interopRequireDefault(_jquery);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var plugin="colorpicker";_jquery2.default[plugin]=_Colorpicker2.default;_jquery2.default.fn[plugin]=function(option){var fnArgs=Array.prototype.slice.call(arguments,1),isSingleElement=this.length===1,returnValue=null;var $elements=this.each(function(){var $this=(0,_jquery2.default)(this),inst=$this.data(plugin),options=(typeof option==="undefined"?"undefined":_typeof(option))==="object"?option:{};if(!inst){inst=new _Colorpicker2.default(this,options);$this.data(plugin,inst)}if(!isSingleElement){return}returnValue=$this;if(typeof option==="string"){if(option==="colorpicker"){returnValue=inst}else if(_jquery2.default.isFunction(inst[option])){returnValue=inst[option].apply(inst,fnArgs)}else{returnValue=inst[option]}}});return isSingleElement?returnValue:$elements};_jquery2.default.fn[plugin].constructor=_Colorpicker2.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};var ext=new ExtensionClass(this,config);this.extensions.push(ext);return ext}},{key:"destroy",value:function destroy(){var color=this.color;this.sliderHandler.unbind();this.inputHandler.unbind();this.popupHandler.unbind();this.colorHandler.unbind();this.addonHandler.unbind();this.pickerHandler.unbind();this.element.removeClass("colorpicker-element").removeData("colorpicker","color").off(".colorpicker");this.trigger("colorpickerDestroy",color)}},{key:"show",value:function show(e){this.popupHandler.show(e)}},{key:"hide",value:function hide(e){this.popupHandler.hide(e)}},{key:"toggle",value:function toggle(e){this.popupHandler.toggle(e)}},{key:"getValue",value:function getValue(){var defaultValue=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var val=this.colorHandler.color;val=val instanceof _ColorItem2.default?val:defaultValue;if(val instanceof _ColorItem2.default){return val.string(this.format)}return val}},{key:"setValue",value:function setValue(val){if(this.isDisabled()){return}var ch=this.colorHandler;if(ch.hasColor()&&!!val&&ch.color.equals(val)||!ch.hasColor()&&!val){return}ch.color=val?ch.createColor(val,this.options.autoInputFallback):null;this.trigger("colorpickerChange",ch.color,val);this.update()}},{key:"update",value:function update(){if(this.colorHandler.hasColor()){this.inputHandler.update()}else{this.colorHandler.assureColor()}this.addonHandler.update();this.pickerHandler.update();this.trigger("colorpickerUpdate")}},{key:"enable",value:function enable(){this.inputHandler.enable();this.disabled=false;this.picker.removeClass("colorpicker-disabled");this.trigger("colorpickerEnable");return true}},{key:"disable",value:function disable(){this.inputHandler.disable();this.disabled=true;this.picker.addClass("colorpicker-disabled");this.trigger("colorpickerDisable");return true}},{key:"isEnabled",value:function isEnabled(){return!this.isDisabled()}},{key:"isDisabled",value:function isDisabled(){return this.disabled===true}},{key:"trigger",value:function trigger(eventName){var color=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var value=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;this.element.trigger({type:eventName,colorpicker:this,color:color?color:this.color,value:value?value:this.getValue()})}}]);return Colorpicker}();Colorpicker.extensions=_extensions2.default;exports.default=Colorpicker;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.Palette=exports.Swatches=exports.Preview=exports.Debugger=undefined;var _Debugger=__webpack_require__(10);var _Debugger2=_interopRequireDefault(_Debugger);var _Preview=__webpack_require__(11);var _Preview2=_interopRequireDefault(_Preview);var _Swatches=__webpack_require__(12);var _Swatches2=_interopRequireDefault(_Swatches);var _Palette=__webpack_require__(4);var _Palette2=_interopRequireDefault(_Palette);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.Debugger=_Debugger2.default;exports.Preview=_Preview2.default;exports.Swatches=_Swatches2.default;exports.Palette=_Palette2.default;exports.default={debugger:_Debugger2.default,preview:_Preview2.default,swatches:_Swatches2.default,palette:_Palette2.default}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Debugger);var _this=_possibleConstructorReturn(this,(Debugger.__proto__||Object.getPrototypeOf(Debugger)).call(this,colorpicker,options));_this.eventCounter=0;if(_this.colorpicker.inputHandler.hasInput()){_this.colorpicker.inputHandler.input.on("change.colorpicker-ext",_jquery2.default.proxy(_this.onChangeInput,_this))}return _this}_createClass(Debugger,[{key:"log",value:function log(eventName){var _console;for(var _len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}this.eventCounter+=1;var logMessage="#"+this.eventCounter+": Colorpicker#"+this.colorpicker.id+" ["+eventName+"]";(_console=console).debug.apply(_console,[logMessage].concat(args));this.colorpicker.element.trigger({type:"colorpickerDebug",colorpicker:this.colorpicker,color:this.color,value:null,debug:{debugger:this,eventName,logArgs:args,logMessage}})}},{key:"resolveColor",value:function resolveColor(color){var realColor=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;this.log("resolveColor()",color,realColor);return false}},{key:"onCreate",value:function onCreate(event){this.log("colorpickerCreate");return _get(Debugger.prototype.__proto__||Object.getPrototypeOf(Debugger.prototype),"onCreate",this).call(this,event)}},{key:"onDestroy",value:function onDestroy(event){this.log("colorpickerDestroy");this.eventCounter=0;if(this.colorpicker.inputHandler.hasInput()){this.colorpicker.inputHandler.input.off(".colorpicker-ext")}return _get(Debugger.prototype.__proto__||Object.getPrototypeOf(Debugger.prototype),"onDestroy",this).call(this,event)}},{key:"onUpdate",value:function onUpdate(event){this.log("colorpickerUpdate")}},{key:"onChangeInput",value:function onChangeInput(event){this.log("input:change.colorpicker",event.value,event.color)}},{key:"onChange",value:function onChange(event){this.log("colorpickerChange",event.value,event.color)}},{key:"onInvalid",value:function onInvalid(event){this.log("colorpickerInvalid",event.value,event.color)}},{key:"onHide",value:function onHide(event){this.log("colorpickerHide");this.eventCounter=0}},{key:"onShow",value:function onShow(event){this.log("colorpickerShow")}},{key:"onDisable",value:function onDisable(event){this.log("colorpickerDisable")}},{key:"onEnable",value:function onEnable(event){this.log("colorpickerEnable")}}]);return Debugger}(_Extension3.default);exports.default=Debugger;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Preview);var _this=_possibleConstructorReturn(this,(Preview.__proto__||Object.getPrototypeOf(Preview)).call(this,colorpicker,_jquery2.default.extend(true,{},{template:'
',showText:true,format:colorpicker.format},options)));_this.element=(0,_jquery2.default)(_this.options.template);_this.elementInner=_this.element.find("div");return _this}_createClass(Preview,[{key:"onCreate",value:function onCreate(event){_get(Preview.prototype.__proto__||Object.getPrototypeOf(Preview.prototype),"onCreate",this).call(this,event);this.colorpicker.picker.append(this.element)}},{key:"onUpdate",value:function onUpdate(event){_get(Preview.prototype.__proto__||Object.getPrototypeOf(Preview.prototype),"onUpdate",this).call(this,event);if(!event.color){this.elementInner.css("backgroundColor",null).css("color",null).html("");return}this.elementInner.css("backgroundColor",event.color.toRgbString());if(this.options.showText){this.elementInner.html(event.color.string(this.options.format||this.colorpicker.format));if(event.color.isDark()&&event.color.alpha>.5){this.elementInner.css("color","white")}else{this.elementInner.css("color","black")}}}}]);return Preview}(_Extension3.default);exports.default=Preview;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i\n
\n
',swatchTemplate:''};var Swatches=function(_Palette){_inherits(Swatches,_Palette);function Swatches(colorpicker){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Swatches);var _this=_possibleConstructorReturn(this,(Swatches.__proto__||Object.getPrototypeOf(Swatches)).call(this,colorpicker,_jquery2.default.extend(true,{},defaults,options)));_this.element=null;return _this}_createClass(Swatches,[{key:"isEnabled",value:function isEnabled(){return this.getLength()>0}},{key:"onCreate",value:function onCreate(event){_get(Swatches.prototype.__proto__||Object.getPrototypeOf(Swatches.prototype),"onCreate",this).call(this,event);if(!this.isEnabled()){return}this.element=(0,_jquery2.default)(this.options.barTemplate);this.load();this.colorpicker.picker.append(this.element)}},{key:"load",value:function load(){var _this2=this;var colorpicker=this.colorpicker,swatchContainer=this.element.find(".colorpicker-swatches--inner"),isAliased=this.options.namesAsValues===true&&!Array.isArray(this.colors);swatchContainer.empty();_jquery2.default.each(this.colors,function(name,value){var $swatch=(0,_jquery2.default)(_this2.options.swatchTemplate).attr("data-name",name).attr("data-value",value).attr("title",isAliased?name+": "+value:value).on("mousedown.colorpicker touchstart.colorpicker",function(e){var $sw=(0,_jquery2.default)(this);colorpicker.setValue(isAliased?$sw.attr("data-name"):$sw.attr("data-value"))});$swatch.find(".colorpicker-swatch--inner").css("background-color",value);swatchContainer.append($swatch)});swatchContainer.append((0,_jquery2.default)(''))}}]);return Swatches}(_Palette3.default);exports.default=Swatches;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0}},{key:"onClickingInside",value:function onClickingInside(e){this.clicking=this.isClickingInside(e)}},{key:"createPopover",value:function createPopover(){var cp=this.colorpicker;this.popoverTarget=this.hasAddon?this.addon:this.input;cp.picker.addClass("colorpicker-bs-popover-content");this.popoverTarget.popover(_jquery2.default.extend(true,{},_options2.default.popover,cp.options.popover,{trigger:"manual",content:cp.picker,html:true}));this.popoverTip=(0,_jquery2.default)(this.popoverTarget.popover("getTipElement").data("bs.popover").tip);this.popoverTip.addClass("colorpicker-bs-popover");this.popoverTarget.on("shown.bs.popover",_jquery2.default.proxy(this.fireShow,this));this.popoverTarget.on("hidden.bs.popover",_jquery2.default.proxy(this.fireHide,this))}},{key:"reposition",value:function reposition(e){if(this.popoverTarget&&this.isVisible()){this.popoverTarget.popover("update")}}},{key:"toggle",value:function toggle(e){if(this.isVisible()){this.hide(e)}else{this.show(e)}}},{key:"show",value:function show(e){if(this.isVisible()||this.showing||this.hidding){return}this.showing=true;this.hidding=false;this.clicking=false;var cp=this.colorpicker;cp.lastEvent.alias="show";cp.lastEvent.e=e;if(e&&(!this.hasInput||this.input.attr("type")==="color")&&e&&e.preventDefault){e.stopPropagation();e.preventDefault()}if(this.isPopover){(0,_jquery2.default)(this.root).on("resize.colorpicker",_jquery2.default.proxy(this.reposition,this))}cp.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden");if(this.popoverTarget){this.popoverTarget.popover("show")}else{this.fireShow()}}},{key:"fireShow",value:function fireShow(){this.hidding=false;this.showing=false;if(this.isPopover){(0,_jquery2.default)(this.root.document).on("mousedown.colorpicker touchstart.colorpicker",_jquery2.default.proxy(this.hide,this));(0,_jquery2.default)(this.root.document).on("mousedown.colorpicker touchstart.colorpicker",_jquery2.default.proxy(this.onClickingInside,this))}this.colorpicker.trigger("colorpickerShow")}},{key:"hide",value:function hide(e){if(this.isHidden()||this.showing||this.hidding){return}var cp=this.colorpicker,clicking=this.clicking||this.isClickingInside(e);this.hidding=true;this.showing=false;this.clicking=false;cp.lastEvent.alias="hide";cp.lastEvent.e=e;if(clicking){this.hidding=false;return}if(this.popoverTarget){this.popoverTarget.popover("hide")}else{this.fireHide()}}},{key:"fireHide",value:function fireHide(){this.hidding=false;this.showing=false;var cp=this.colorpicker;cp.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible");(0,_jquery2.default)(this.root).off("resize.colorpicker",_jquery2.default.proxy(this.reposition,this));(0,_jquery2.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",_jquery2.default.proxy(this.hide,this));(0,_jquery2.default)(this.root.document).off("mousedown.colorpicker touchstart.colorpicker",_jquery2.default.proxy(this.onClickingInside,this));cp.trigger("colorpickerHide")}},{key:"focus",value:function focus(){if(this.hasAddon){return this.addon.focus()}if(this.hasInput){return this.input.focus()}return false}},{key:"isVisible",value:function isVisible(){return this.colorpicker.picker.hasClass("colorpicker-visible")&&!this.colorpicker.picker.hasClass("colorpicker-hidden")}},{key:"isHidden",value:function isHidden(){return this.colorpicker.picker.hasClass("colorpicker-hidden")&&!this.colorpicker.picker.hasClass("colorpicker-visible")}},{key:"input",get:function get(){return this.colorpicker.inputHandler.input}},{key:"hasInput",get:function get(){return this.colorpicker.inputHandler.hasInput()}},{key:"addon",get:function get(){return this.colorpicker.addonHandler.addon}},{key:"hasAddon",get:function get(){return this.colorpicker.addonHandler.hasAddon()}},{key:"isPopover",get:function get(){return!this.colorpicker.options.inline&&!!this.popoverTip}}]);return PopupHandler}();exports.default=PopupHandler;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:null;val=val?val:this.colorpicker.colorHandler.getColorString();if(!val){return""}val=this.colorpicker.colorHandler.resolveColorDelegate(val,false);if(this.colorpicker.options.useHashPrefix===false){val=val.replace(/^#/g,"")}return val}},{key:"hasInput",value:function hasInput(){return this.input!==false}},{key:"isEnabled",value:function isEnabled(){return this.hasInput()&&!this.isDisabled()}},{key:"isDisabled",value:function isDisabled(){return this.hasInput()&&this.input.prop("disabled")===true}},{key:"disable",value:function disable(){if(this.hasInput()){this.input.prop("disabled",true)}}},{key:"enable",value:function enable(){if(this.hasInput()){this.input.prop("disabled",false)}}},{key:"update",value:function update(){if(!this.hasInput()){return}if(this.colorpicker.options.autoInputFallback===false&&this.colorpicker.colorHandler.isInvalidColor()){return}this.setValue(this.getFormattedColor())}},{key:"onchange",value:function onchange(e){this.colorpicker.lastEvent.alias="input.change";this.colorpicker.lastEvent.e=e;var val=this.getValue();if(val!==e.value){this.colorpicker.setValue(val)}}},{key:"onkeyup",value:function onkeyup(e){this.colorpicker.lastEvent.alias="input.keyup";this.colorpicker.lastEvent.e=e;var val=this.getValue();if(val!==e.value){this.colorpicker.setValue(val)}}}]);return InputHandler}();exports.default=InputHandler;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";var colorString=__webpack_require__(17);var convert=__webpack_require__(20);var _slice=[].slice;var skippedModels=["keyword","gray","hex"];var hashedModelKeys={};Object.keys(convert).forEach(function(model){hashedModelKeys[_slice.call(convert[model].labels).sort().join("")]=model});var limiters={};function Color(obj,model){if(!(this instanceof Color)){return new Color(obj,model)}if(model&&model in skippedModels){model=null}if(model&&!(model in convert)){throw new Error("Unknown model: "+model)}var i;var channels;if(obj==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(obj instanceof Color){this.model=obj.model;this.color=obj.color.slice();this.valpha=obj.valpha}else if(typeof obj==="string"){var result=colorString.get(obj);if(result===null){throw new Error("Unable to parse color from string: "+obj)}this.model=result.model;channels=convert[this.model].channels;this.color=result.value.slice(0,channels);this.valpha=typeof result.value[channels]==="number"?result.value[channels]:1}else if(obj.length){this.model=model||"rgb";channels=convert[this.model].channels;var newArr=_slice.call(obj,0,channels);this.color=zeroArray(newArr,channels);this.valpha=typeof obj[channels]==="number"?obj[channels]:1}else if(typeof obj==="number"){obj&=16777215;this.model="rgb";this.color=[obj>>16&255,obj>>8&255,obj&255];this.valpha=1}else{this.valpha=1;var keys=Object.keys(obj);if("alpha"in obj){keys.splice(keys.indexOf("alpha"),1);this.valpha=typeof obj.alpha==="number"?obj.alpha:0}var hashedKeys=keys.sort().join("");if(!(hashedKeys in hashedModelKeys)){throw new Error("Unable to parse color from object: "+JSON.stringify(obj))}this.model=hashedModelKeys[hashedKeys];var labels=convert[this.model].labels;var color=[];for(i=0;ilum2){return(lum1+.05)/(lum2+.05)}return(lum2+.05)/(lum1+.05)},level:function(color2){var contrastRatio=this.contrast(color2);if(contrastRatio>=7.1){return"AAA"}return contrastRatio>=4.5?"AA":""},isDark:function(){var rgb=this.rgb().color;var yiq=(rgb[0]*299+rgb[1]*587+rgb[2]*114)/1e3;return yiq<128},isLight:function(){return!this.isDark()},negate:function(){var rgb=this.rgb();for(var i=0;i<3;i++){rgb.color[i]=255-rgb.color[i]}return rgb},lighten:function(ratio){var hsl=this.hsl();hsl.color[2]+=hsl.color[2]*ratio;return hsl},darken:function(ratio){var hsl=this.hsl();hsl.color[2]-=hsl.color[2]*ratio;return hsl},saturate:function(ratio){var hsl=this.hsl();hsl.color[1]+=hsl.color[1]*ratio;return hsl},desaturate:function(ratio){var hsl=this.hsl();hsl.color[1]-=hsl.color[1]*ratio;return hsl},whiten:function(ratio){var hwb=this.hwb();hwb.color[1]+=hwb.color[1]*ratio;return hwb},blacken:function(ratio){var hwb=this.hwb();hwb.color[2]+=hwb.color[2]*ratio;return hwb},grayscale:function(){var rgb=this.rgb().color;var val=rgb[0]*.3+rgb[1]*.59+rgb[2]*.11;return Color.rgb(val,val,val)},fade:function(ratio){return this.alpha(this.valpha-this.valpha*ratio)},opaquer:function(ratio){return this.alpha(this.valpha+this.valpha*ratio)},rotate:function(degrees){var hsl=this.hsl();var hue=hsl.color[0];hue=(hue+degrees)%360;hue=hue<0?360+hue:hue;hsl.color[0]=hue;return hsl},mix:function(mixinColor,weight){if(!mixinColor||!mixinColor.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof mixinColor)}var color1=mixinColor.rgb();var color2=this.rgb();var p=weight===undefined?.5:weight;var w=2*p-1;var a=color1.alpha()-color2.alpha();var w1=((w*a===-1?w:(w+a)/(1+w*a))+1)/2;var w2=1-w1;return Color.rgb(w1*color1.red()+w2*color2.red(),w1*color1.green()+w2*color2.green(),w1*color1.blue()+w2*color2.blue(),color1.alpha()*p+color2.alpha()*(1-p))}};Object.keys(convert).forEach(function(model){if(skippedModels.indexOf(model)!==-1){return}var channels=convert[model].channels;Color.prototype[model]=function(){if(this.model===model){return new Color(this)}if(arguments.length){return new Color(arguments,model)}var newAlpha=typeof arguments[channels]==="number"?channels:this.valpha;return new Color(assertArray(convert[this.model][model].raw(this.color)).concat(newAlpha),model)};Color[model]=function(color){if(typeof color==="number"){color=zeroArray(_slice.call(arguments),channels)}return new Color(color,model)}});function roundTo(num,places){return Number(num.toFixed(places))}function roundToPlace(places){return function(num){return roundTo(num,places)}}function getset(model,channel,modifier){model=Array.isArray(model)?model:[model];model.forEach(function(m){(limiters[m]||(limiters[m]=[]))[channel]=modifier});model=model[0];return function(val){var result;if(arguments.length){if(modifier){val=modifier(val)}result=this[model]();result.color[channel]=val;return result}result=this[model]().color[channel];if(modifier){result=modifier(result)}return result}}function maxfn(max){return function(v){return Math.max(0,Math.min(max,v))}}function assertArray(val){return Array.isArray(val)?val:[val]}function zeroArray(arr,length){for(var i=0;i=4&&hwba[3]!==1){a=", "+hwba[3]}return"hwb("+hwba[0]+", "+hwba[1]+"%, "+hwba[2]+"%"+a+")"};cs.to.keyword=function(rgb){return reverseNames[rgb.slice(0,3)]};function clamp(num,min,max){return Math.min(Math.max(min,num),max)}function hexDouble(num){var str=num.toString(16).toUpperCase();return str.length<2?"0"+str:str}},function(module,exports,__webpack_require__){"use strict";var isArrayish=__webpack_require__(19);var concat=Array.prototype.concat;var slice=Array.prototype.slice;var swizzle=module.exports=function swizzle(args){var results=[];for(var i=0,len=args.length;i=0&&obj.splice instanceof Function}},function(module,exports,__webpack_require__){var conversions=__webpack_require__(6);var route=__webpack_require__(21);var convert={};var models=Object.keys(conversions);function wrapRaw(fn){var wrappedFn=function(args){if(args===undefined||args===null){return args}if(arguments.length>1){args=Array.prototype.slice.call(arguments)}return fn(args)};if("conversion"in fn){wrappedFn.conversion=fn.conversion}return wrappedFn}function wrapRounded(fn){var wrappedFn=function(args){if(args===undefined||args===null){return args}if(arguments.length>1){args=Array.prototype.slice.call(arguments)}var result=fn(args);if(typeof result==="object"){for(var len=result.length,i=0;i1&&arguments[1]!==undefined?arguments[1]:true;var color=new _ColorItem2.default(this.resolveColorDelegate(val),this.format);if(!color.isValid()){if(fallbackOnInvalid){color=this.getFallbackColor()}this.colorpicker.trigger("colorpickerInvalid",color,val)}if(!this.isAlphaEnabled()){color.alpha=1}return color}},{key:"getFallbackColor",value:function getFallbackColor(){if(this.fallback&&this.fallback===this.color){return this.color}var fallback=this.resolveColorDelegate(this.fallback);var color=new _ColorItem2.default(fallback,this.format);if(!color.isValid()){console.warn("The fallback color is invalid. Falling back to the previous color or black if any.");return this.color?this.color:new _ColorItem2.default("#000000",this.format)}return color}},{key:"assureColor",value:function assureColor(){if(!this.hasColor()){this.color=this.getFallbackColor()}return this.color}},{key:"resolveColorDelegate",value:function resolveColorDelegate(color){var realColor=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var extResolvedColor=false;_jquery2.default.each(this.colorpicker.extensions,function(name,ext){if(extResolvedColor!==false){return}extResolvedColor=ext.resolveColor(color,realColor)});return extResolvedColor?extResolvedColor:color}},{key:"isInvalidColor",value:function isInvalidColor(){return!this.hasColor()||!this.color.isValid()}},{key:"isAlphaEnabled",value:function isAlphaEnabled(){return this.colorpicker.options.useAlpha!==false}},{key:"hasColor",value:function hasColor(){return this.color instanceof _ColorItem2.default}},{key:"fallback",get:function get(){return this.colorpicker.options.fallbackColor?this.colorpicker.options.fallbackColor:this.hasColor()?this.color:null}},{key:"format",get:function get(){if(this.colorpicker.options.format){return this.colorpicker.options.format}if(this.hasColor()&&this.color.hasTransparency()&&this.color.format.match(/^hex/)){return this.isAlphaEnabled()?"rgba":"hex"}if(this.hasColor()){return this.color.format}return"rgb"}},{key:"color",get:function get(){return this.colorpicker.element.data("color")},set:function set(value){this.colorpicker.element.data("color",value);if(value instanceof _ColorItem2.default&&this.colorpicker.options.format==="auto"){this.colorpicker.options.format=this.color.format}}}]);return ColorHandler}();exports.default=ColorHandler;module.exports=exports.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i0){icn.css(styles)}else{this.addon.css(styles)}}}]);return AddonHandler}();exports.default=AddonHandler;module.exports=exports.default}])}); -//# sourceMappingURL=bootstrap-colorpicker.min.js.map \ No newline at end of file diff --git a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js.map b/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js.map deleted file mode 100644 index 41a49aab..00000000 --- a/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack://bootstrap-colorpicker/webpack/universalModuleDefinition","webpack://bootstrap-colorpicker/webpack/bootstrap","webpack://bootstrap-colorpicker/external {\"root\":\"jQuery\",\"commonjs2\":\"jquery\",\"commonjs\":\"jquery\",\"amd\":\"jquery\"}","webpack://bootstrap-colorpicker/./src/js/Extension.js","webpack://bootstrap-colorpicker/./src/js/ColorItem.js","webpack://bootstrap-colorpicker/./src/js/options.js","webpack://bootstrap-colorpicker/./src/js/extensions/Palette.js","webpack://bootstrap-colorpicker/./node_modules/color-name/index.js","webpack://bootstrap-colorpicker/./node_modules/color-convert/conversions.js","webpack://bootstrap-colorpicker/./src/js/plugin.js","webpack://bootstrap-colorpicker/./src/js/Colorpicker.js","webpack://bootstrap-colorpicker/./src/js/extensions/index.js","webpack://bootstrap-colorpicker/./src/js/extensions/Debugger.js","webpack://bootstrap-colorpicker/./src/js/extensions/Preview.js","webpack://bootstrap-colorpicker/./src/js/extensions/Swatches.js","webpack://bootstrap-colorpicker/./src/js/SliderHandler.js","webpack://bootstrap-colorpicker/./src/js/PopupHandler.js","webpack://bootstrap-colorpicker/./src/js/InputHandler.js","webpack://bootstrap-colorpicker/./node_modules/color/index.js","webpack://bootstrap-colorpicker/./node_modules/color-string/index.js","webpack://bootstrap-colorpicker/./node_modules/simple-swizzle/index.js","webpack://bootstrap-colorpicker/./node_modules/is-arrayish/index.js","webpack://bootstrap-colorpicker/./node_modules/color-convert/index.js","webpack://bootstrap-colorpicker/./node_modules/color-convert/route.js","webpack://bootstrap-colorpicker/./src/js/ColorHandler.js","webpack://bootstrap-colorpicker/./src/js/PickerHandler.js","webpack://bootstrap-colorpicker/./src/js/AddonHandler.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__0__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","getDefault","getModuleExports","object","property","prototype","hasOwnProperty","p","s","_jquery","Extension","colorpicker","options","arguments","length","undefined","_classCallCheck","this","element","Error","on","$","proxy","onCreate","onDestroy","onUpdate","onChange","onInvalid","onShow","onHide","onEnable","onDisable","color","realColor","event","off","_color","HSVAColor","h","v","a","isNaN","ColorItem","fn","_len","args","Array","_key","result","apply","QixColor","format","_original","replace","sanitizeFormat","valid","parse","_color2","default","_format","isHex","model","hue","saturation","alpha","hasAlpha","toObject","string","round","str","isValid","isDark","isLight","formula","hues","isArray","colorFormulas","colors","mainColor","forEach","levels","saturationv","push","Math","sanitizeString","e","String","match","toLowerCase","complementary","triad","tetrad","splitcomplement","sassVars","bar_size_short","base_margin","columns","sliderSize","customClass","fallbackColor","horizontal","inline","container","popover","animation","placement","fallbackPlacement","debug","input","addon","autoInputFallback","useHashPrefix","useAlpha","template","extensions","showText","sliders","selector","maxLeft","maxTop","callLeft","callTop","childSelector","slidersHorz","_Extension2","defaults","namesAsValues","Palette","_this","_possibleConstructorReturn","__proto__","getPrototypeOf","extend","_typeof","keys","getLength","indexOf","toUpperCase","getValue","getName","defaultValue","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","cssKeywords","reverseKeywords","convert","rgb","channels","labels","hsl","hsv","hwb","cmyk","xyz","lab","lch","hex","keyword","ansi16","ansi256","hcg","apple","g","b","min","max","delta","rdif","gdif","bdif","diff","diffc","w","y","k","comparativeDistance","x","pow","reversed","currentClosestDistance","Infinity","currentClosestKeyword","distance","z","t1","t2","t3","val","smin","lmin","sv","hi","floor","f","q","vmin","sl","wh","bl","ratio","y2","x2","z2","hr","atan2","PI","sqrt","cos","sin","ansi","mult","rem","integer","toString","substring","colorString","split","map","char","join","parseInt","chroma","grayscale","pure","mg","_Colorpicker","plugin","Colorpicker","option","fnArgs","slice","isSingleElement","returnValue","$elements","each","$this","_jquery2","inst","data","isFunction","constructor","_Extension","_options","_extensions","_SliderHandler","_PopupHandler","_InputHandler","_ColorHandler","_PickerHandler","_AddonHandler","_ColorItem","colorPickerIdCounter","self","colorHandler","pickerHandler","picker","id","lastEvent","alias","addClass","attr","disabled","inputHandler","InputHandler","ColorHandler","sliderHandler","SliderHandler","popupHandler","PopupHandler","PickerHandler","addonHandler","AddonHandler","init","trigger","initExtensions","attach","update","isDisabled","disable","ext","registerExtension","ExtensionClass","config","unbind","removeClass","removeData","show","hide","toggle","ch","hasColor","equals","createColor","assureColor","enable","eventName","type","coreExtensions","_Debugger","_Preview","_Swatches","_Palette","Debugger","Preview","Swatches","debugger","preview","swatches","palette","eventCounter","hasInput","onChangeInput","_console","logMessage","console","concat","logArgs","log","_get","elementInner","find","append","css","html","toRgbString","_Palette2","barTemplate","swatchTemplate","isEnabled","load","_this2","swatchContainer","isAliased","empty","$swatch","$sw","setValue","currentSlider","mousePointer","left","top","onMove","defaultOnMove","slider","cp","getFallbackColor","getClone","guideStyle","focus","sliderClasses","sliderName","pressed","mousemove.colorpicker","moved","touchmove.colorpicker","mouseup.colorpicker","released","touchend.colorpicker","pageX","pageY","originalEvent","touches","target","zone","closest","is","parent","guide","offset","style","preventDefault","popoverTarget","popoverTip","clicking","hidding","showing","hasAddon","createPopover","mousedown.colorpicker touchstart.colorpicker","focus.colorpicker","focusout.colorpicker","reposition","document","onClickingInside","isOrIsInside","currentTarget","isClickingInside","_defaults","content","tip","fireShow","fireHide","isVisible","stopPropagation","isPopover","isHidden","hasClass","_initValue","keyup.colorpicker","onkeyup","change.colorpicker","onchange","item","getFormattedColor","prop","inputVal","getColorString","resolveColorDelegate","isInvalidColor","_slice","skippedModels","hashedModelKeys","sort","limiters","Color","obj","valpha","newArr","zeroArray","splice","hashedKeys","JSON","stringify","limit","freeze","toJSON","places","to","percentString","percent","array","unitArray","unitObject","roundToPlace","getset","maxfn","saturationl","lightness","wblack","rgbNumber","luminosity","lum","chan","contrast","color2","lum1","lum2","level","contrastRatio","yiq","negate","lighten","darken","saturate","desaturate","whiten","blacken","fade","opaquer","rotate","degrees","mix","mixinColor","weight","color1","w1","w2","newAlpha","assertArray","raw","roundTo","num","Number","toFixed","channel","modifier","arr","colorNames","swizzle","reverseNames","cs","prefix","abbr","rgba","per","hexAlpha","i2","parseFloat","clamp","hexDouble","hsla","hwba","isArrayish","results","len","arg","wrap","Function","conversions","route","models","wrapRaw","wrappedFn","conversion","wrapRounded","fromModel","routes","routeModels","toModel","buildGraph","graph","deriveBFS","queue","current","pop","adjacents","adjacent","node","unshift","link","from","wrapConversion","path","cur","fallbackOnInvalid","isAlphaEnabled","fallback","warn","extResolvedColor","resolveColor","hasTransparency","_supportsAlphaBar","pickerParent","appendTo","remove","vertical","saturationGuide","hueGuide","alphaGuide","hsva","toHsvaRatio","getCloneHueOnly","toHexString","hexColor","alphaBg","colorStr","styles","background","icn","eq"],"mappings":"CAAA,SAAAA,iCAAAC,KAAAC,SACA,UAAAC,UAAA,iBAAAC,SAAA,SACAA,OAAAD,QAAAD,QAAAG,QAAA,gBACA,UAAAC,SAAA,YAAAA,OAAAC,IACAD,OAAA,mCAAAJ,cACA,UAAAC,UAAA,SACAA,QAAA,yBAAAD,QAAAG,QAAA,gBAEAJ,KAAA,yBAAAC,QAAAD,KAAA,YARA,CASCO,OAAA,SAAAC,gCACD,yBCTA,IAAAC,oBAGA,SAAAC,oBAAAC,UAGA,GAAAF,iBAAAE,UAAA,CACA,OAAAF,iBAAAE,UAAAT,QAGA,IAAAC,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NnR","file":"bootstrap-colorpicker.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"jquery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"bootstrap-colorpicker\", [\"jquery\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"bootstrap-colorpicker\"] = factory(require(\"jquery\"));\n\telse\n\t\troot[\"bootstrap-colorpicker\"] = factory(root[\"jQuery\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Colorpicker extension class.\n */\nclass Extension {\n /**\n * @param {Colorpicker} colorpicker\n * @param {Object} options\n */\n constructor(colorpicker, options = {}) {\n /**\n * The colorpicker instance\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * Extension options\n *\n * @type {Object}\n */\n this.options = options;\n\n if (!(this.colorpicker.element && this.colorpicker.element.length)) {\n throw new Error('Extension: this.colorpicker.element is not valid');\n }\n\n this.colorpicker.element.on('colorpickerCreate.colorpicker-ext', $.proxy(this.onCreate, this));\n this.colorpicker.element.on('colorpickerDestroy.colorpicker-ext', $.proxy(this.onDestroy, this));\n this.colorpicker.element.on('colorpickerUpdate.colorpicker-ext', $.proxy(this.onUpdate, this));\n this.colorpicker.element.on('colorpickerChange.colorpicker-ext', $.proxy(this.onChange, this));\n this.colorpicker.element.on('colorpickerInvalid.colorpicker-ext', $.proxy(this.onInvalid, this));\n this.colorpicker.element.on('colorpickerShow.colorpicker-ext', $.proxy(this.onShow, this));\n this.colorpicker.element.on('colorpickerHide.colorpicker-ext', $.proxy(this.onHide, this));\n this.colorpicker.element.on('colorpickerEnable.colorpicker-ext', $.proxy(this.onEnable, this));\n this.colorpicker.element.on('colorpickerDisable.colorpicker-ext', $.proxy(this.onDisable, this));\n }\n\n /**\n * Function called every time a new color needs to be created.\n * Return false to skip this resolver and continue with other extensions' ones\n * or return anything else to consider the color resolved.\n *\n * @param {ColorItem|String|*} color\n * @param {boolean} realColor if true, the color should resolve into a real (not named) color code\n * @return {ColorItem|String|*}\n */\n resolveColor(color, realColor = true) {\n return false;\n }\n\n /**\n * Method called after the colorpicker is created\n *\n * @listens Colorpicker#colorpickerCreate\n * @param {Event} event\n */\n onCreate(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is destroyed\n *\n * @listens Colorpicker#colorpickerDestroy\n * @param {Event} event\n */\n onDestroy(event) {\n this.colorpicker.element.off('.colorpicker-ext');\n }\n\n /**\n * Method called after the colorpicker is updated\n *\n * @listens Colorpicker#colorpickerUpdate\n * @param {Event} event\n */\n onUpdate(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker color is changed\n *\n * @listens Colorpicker#colorpickerChange\n * @param {Event} event\n */\n onChange(event) {\n // to be extended\n }\n\n /**\n * Method called when the colorpicker color is invalid\n *\n * @listens Colorpicker#colorpickerInvalid\n * @param {Event} event\n */\n onInvalid(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is hidden\n *\n * @listens Colorpicker#colorpickerHide\n * @param {Event} event\n */\n onHide(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is shown\n *\n * @listens Colorpicker#colorpickerShow\n * @param {Event} event\n */\n onShow(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is disabled\n *\n * @listens Colorpicker#colorpickerDisable\n * @param {Event} event\n */\n onDisable(event) {\n // to be extended\n }\n\n /**\n * Method called after the colorpicker is enabled\n *\n * @listens Colorpicker#colorpickerEnable\n * @param {Event} event\n */\n onEnable(event) {\n // to be extended\n }\n}\n\nexport default Extension;\n","/**\n * Color manipulation class, specific for Bootstrap Colorpicker\n */\nimport QixColor from 'color';\n\n/**\n * HSVA color data class, containing the hue, saturation, value and alpha\n * information.\n */\nclass HSVAColor {\n /**\n * @param {number|int} h\n * @param {number|int} s\n * @param {number|int} v\n * @param {number|int} a\n */\n constructor(h, s, v, a) {\n this.h = isNaN(h) ? 0 : h;\n this.s = isNaN(s) ? 0 : s;\n this.v = isNaN(v) ? 0 : v;\n this.a = isNaN(h) ? 1 : a;\n }\n\n toString() {\n return `${this.h}, ${this.s}%, ${this.v}%, ${this.a}`;\n }\n}\n\n/**\n * HSVA color manipulation\n */\nclass ColorItem {\n\n /**\n * Returns the HSVAColor class\n *\n * @static\n * @example let colorData = new ColorItem.HSVAColor(360, 100, 100, 1);\n * @returns {HSVAColor}\n */\n static get HSVAColor() {\n return HSVAColor;\n }\n\n /**\n * Applies a method of the QixColor API and returns a new Color object or\n * the return value of the method call.\n *\n * If no argument is provided, the internal QixColor object is returned.\n *\n * @param {String} fn QixColor function name\n * @param args QixColor function arguments\n * @example let darkerColor = color.api('darken', 0.25);\n * @example let luminosity = color.api('luminosity');\n * @example color = color.api('negate');\n * @example let qColor = color.api().negate();\n * @returns {ColorItem|QixColor|*}\n */\n api(fn, ...args) {\n if (arguments.length === 0) {\n return this._color;\n }\n\n let result = this._color[fn].apply(this._color, args);\n\n if (!(result instanceof QixColor)) {\n // return result of the method call\n return result;\n }\n\n return new ColorItem(result, this.format);\n }\n\n /**\n * Returns the original ColorItem constructor data,\n * plus a 'valid' flag to know if it's valid or not.\n *\n * @returns {{color: *, format: String, valid: boolean}}\n */\n get original() {\n return this._original;\n }\n\n /**\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data\n * @param {String|null} format Color model to convert to by default. Supported: 'rgb', 'hsl', 'hex'.\n */\n constructor(color = null, format = null) {\n this.replace(color, format);\n }\n\n /**\n * Replaces the internal QixColor object with a new one.\n * This also replaces the internal original color data.\n *\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data to be parsed (if needed)\n * @param {String|null} format Color model to convert to by default. Supported: 'rgb', 'hsl', 'hex'.\n * @example color.replace('rgb(255,0,0)', 'hsl');\n * @example color.replace(hsvaColorData);\n */\n replace(color, format = null) {\n format = ColorItem.sanitizeFormat(format);\n\n /**\n * @type {{color: *, format: String}}\n * @private\n */\n this._original = {\n color: color,\n format: format,\n valid: true\n };\n /**\n * @type {QixColor}\n * @private\n */\n this._color = ColorItem.parse(color);\n\n if (this._color === null) {\n this._color = QixColor();\n this._original.valid = false;\n return;\n }\n\n /**\n * @type {*|string}\n * @private\n */\n this._format = format ? format :\n (ColorItem.isHex(color) ? 'hex' : this._color.model);\n }\n\n /**\n * Parses the color returning a Qix Color object or null if cannot be\n * parsed.\n *\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data\n * @example let qColor = ColorItem.parse('rgb(255,0,0)');\n * @static\n * @returns {QixColor|null}\n */\n static parse(color) {\n if (color instanceof QixColor) {\n return color;\n }\n\n if (color instanceof ColorItem) {\n return color._color;\n }\n\n let format = null;\n\n if (color instanceof HSVAColor) {\n color = [color.h, color.s, color.v, isNaN(color.a) ? 1 : color.a];\n } else {\n color = ColorItem.sanitizeString(color);\n }\n\n if (color === null) {\n return null;\n }\n\n if (Array.isArray(color)) {\n format = 'hsv';\n }\n\n try {\n return QixColor(color, format);\n } catch (e) {\n return null;\n }\n }\n\n /**\n * Sanitizes a color string, adding missing hash to hexadecimal colors\n * and converting 'transparent' to a color code.\n *\n * @param {String|*} str Color string\n * @example let colorStr = ColorItem.sanitizeString('ffaa00');\n * @static\n * @returns {String|*}\n */\n static sanitizeString(str) {\n if (!(typeof str === 'string' || str instanceof String)) {\n return str;\n }\n\n if (str.match(/^[0-9a-f]{2,}$/i)) {\n return `#${str}`;\n }\n\n if (str.toLowerCase() === 'transparent') {\n return '#FFFFFF00';\n }\n\n return str;\n }\n\n /**\n * Detects if a value is a string and a color in hexadecimal format (in any variant).\n *\n * @param {String} str\n * @example ColorItem.isHex('rgba(0,0,0)'); // false\n * @example ColorItem.isHex('ffaa00'); // true\n * @example ColorItem.isHex('#ffaa00'); // true\n * @static\n * @returns {boolean}\n */\n static isHex(str) {\n if (!(typeof str === 'string' || str instanceof String)) {\n return false;\n }\n\n return !!str.match(/^#?[0-9a-f]{2,}$/i);\n }\n\n /**\n * Sanitizes a color format to one supported by web browsers.\n * Returns an empty string of the format can't be recognised.\n *\n * @param {String|*} format\n * @example ColorItem.sanitizeFormat('rgba'); // 'rgb'\n * @example ColorItem.isHex('hex8'); // 'hex'\n * @example ColorItem.isHex('invalid'); // ''\n * @static\n * @returns {String} 'rgb', 'hsl', 'hex' or ''.\n */\n static sanitizeFormat(format) {\n switch (format) {\n case 'hex':\n case 'hex3':\n case 'hex4':\n case 'hex6':\n case 'hex8':\n return 'hex';\n case 'rgb':\n case 'rgba':\n case 'keyword':\n case 'name':\n return 'rgb';\n case 'hsl':\n case 'hsla':\n case 'hsv':\n case 'hsva':\n case 'hwb': // HWB this is supported by Qix Color, but not by browsers\n case 'hwba':\n return 'hsl';\n default :\n return '';\n }\n }\n\n /**\n * Returns true if the color is valid, false if not.\n *\n * @returns {boolean}\n */\n isValid() {\n return this._original.valid === true;\n }\n\n /**\n * Hue value from 0 to 360\n *\n * @returns {int}\n */\n get hue() {\n return this._color.hue();\n }\n\n /**\n * Saturation value from 0 to 100\n *\n * @returns {int}\n */\n get saturation() {\n return this._color.saturationv();\n }\n\n /**\n * Value channel value from 0 to 100\n *\n * @returns {int}\n */\n get value() {\n return this._color.value();\n }\n\n /**\n * Alpha value from 0.0 to 1.0\n *\n * @returns {number}\n */\n get alpha() {\n let a = this._color.alpha();\n\n return isNaN(a) ? 1 : a;\n }\n\n /**\n * Default color format to convert to when calling toString() or string()\n *\n * @returns {String} 'rgb', 'hsl', 'hex' or ''\n */\n get format() {\n return this._format ? this._format : this._color.model;\n }\n\n /**\n * Sets the hue value\n *\n * @param {int} value Integer from 0 to 360\n */\n set hue(value) {\n this._color = this._color.hue(value);\n }\n\n /**\n * Sets the hue ratio, where 1.0 is 0, 0.5 is 180 and 0.0 is 360.\n *\n * @ignore\n * @param {number} h Ratio from 1.0 to 0.0\n */\n setHueRatio(h) {\n this.hue = ((1 - h) * 360);\n }\n\n /**\n * Sets the saturation value\n *\n * @param {int} value Integer from 0 to 100\n */\n set saturation(value) {\n this._color = this._color.saturationv(value);\n }\n\n /**\n * Sets the saturation ratio, where 1.0 is 100 and 0.0 is 0.\n *\n * @ignore\n * @param {number} s Ratio from 0.0 to 1.0\n */\n setSaturationRatio(s) {\n this.saturation = (s * 100);\n }\n\n /**\n * Sets the 'value' channel value\n *\n * @param {int} value Integer from 0 to 100\n */\n set value(value) {\n this._color = this._color.value(value);\n }\n\n /**\n * Sets the value ratio, where 1.0 is 0 and 0.0 is 100.\n *\n * @ignore\n * @param {number} v Ratio from 1.0 to 0.0\n */\n setValueRatio(v) {\n this.value = ((1 - v) * 100);\n }\n\n /**\n * Sets the alpha value. It will be rounded to 2 decimals.\n *\n * @param {int} value Float from 0.0 to 1.0\n */\n set alpha(value) {\n // 2 decimals max\n this._color = this._color.alpha(Math.round(value * 100) / 100);\n }\n\n /**\n * Sets the alpha ratio, where 1.0 is 0.0 and 0.0 is 1.0.\n *\n * @ignore\n * @param {number} a Ratio from 1.0 to 0.0\n */\n setAlphaRatio(a) {\n this.alpha = 1 - a;\n }\n\n /**\n * Sets the default color format\n *\n * @param {String} value Supported: 'rgb', 'hsl', 'hex'\n */\n set format(value) {\n this._format = ColorItem.sanitizeFormat(value);\n }\n\n /**\n * Returns true if the saturation value is zero, false otherwise\n *\n * @returns {boolean}\n */\n isDesaturated() {\n return this.saturation === 0;\n }\n\n /**\n * Returns true if the alpha value is zero, false otherwise\n *\n * @returns {boolean}\n */\n isTransparent() {\n return this.alpha === 0;\n }\n\n /**\n * Returns true if the alpha value is numeric and less than 1, false otherwise\n *\n * @returns {boolean}\n */\n hasTransparency() {\n return this.hasAlpha() && (this.alpha < 1);\n }\n\n /**\n * Returns true if the alpha value is numeric, false otherwise\n *\n * @returns {boolean}\n */\n hasAlpha() {\n return !isNaN(this.alpha);\n }\n\n /**\n * Returns a new HSVAColor object, based on the current color\n *\n * @returns {HSVAColor}\n */\n toObject() {\n return new HSVAColor(this.hue, this.saturation, this.value, this.alpha);\n }\n\n /**\n * Alias of toObject()\n *\n * @returns {HSVAColor}\n */\n toHsva() {\n return this.toObject();\n }\n\n /**\n * Returns a new HSVAColor object with the ratio values (from 0.0 to 1.0),\n * based on the current color.\n *\n * @ignore\n * @returns {HSVAColor}\n */\n toHsvaRatio() {\n return new HSVAColor(\n this.hue / 360,\n this.saturation / 100,\n this.value / 100,\n this.alpha\n );\n }\n\n /**\n * Converts the current color to its string representation,\n * using the internal format of this instance.\n *\n * @returns {String}\n */\n toString() {\n return this.string();\n }\n\n /**\n * Converts the current color to its string representation,\n * using the given format.\n *\n * @param {String|null} format Format to convert to. If empty or null, the internal format will be used.\n * @returns {String}\n */\n string(format = null) {\n format = ColorItem.sanitizeFormat(format ? format : this.format);\n\n if (!format) {\n return this._color.round().string();\n }\n\n if (this._color[format] === undefined) {\n throw new Error(`Unsupported color format: '${format}'`);\n }\n\n let str = this._color[format]();\n\n return str.round ? str.round().string() : str;\n }\n\n /**\n * Returns true if the given color values equals this one, false otherwise.\n * The format is not compared.\n * If any of the colors is invalid, the result will be false.\n *\n * @param {ColorItem|HSVAColor|QixColor|String|*|null} color Color data\n *\n * @returns {boolean}\n */\n equals(color) {\n color = (color instanceof ColorItem) ? color : new ColorItem(color);\n\n if (!color.isValid() || !this.isValid()) {\n return false;\n }\n\n return (\n this.hue === color.hue &&\n this.saturation === color.saturation &&\n this.value === color.value &&\n this.alpha === color.alpha\n );\n }\n\n /**\n * Creates a copy of this instance\n *\n * @returns {ColorItem}\n */\n getClone() {\n return new ColorItem(this._color, this.format);\n }\n\n /**\n * Creates a copy of this instance, only copying the hue value,\n * and setting the others to its max value.\n *\n * @returns {ColorItem}\n */\n getCloneHueOnly() {\n return new ColorItem([this.hue, 100, 100, 1], this.format);\n }\n\n /**\n * Creates a copy of this instance setting the alpha to the max.\n *\n * @returns {ColorItem}\n */\n getCloneOpaque() {\n return new ColorItem(this._color.alpha(1), this.format);\n }\n\n /**\n * Converts the color to a RGB string\n *\n * @returns {String}\n */\n toRgbString() {\n return this.string('rgb');\n }\n\n /**\n * Converts the color to a Hexadecimal string\n *\n * @returns {String}\n */\n toHexString() {\n return this.string('hex');\n }\n\n /**\n * Converts the color to a HSL string\n *\n * @returns {String}\n */\n toHslString() {\n return this.string('hsl');\n }\n\n /**\n * Returns true if the color is dark, false otherwhise.\n * This is useful to decide a text color.\n *\n * @returns {boolean}\n */\n isDark() {\n return this._color.isDark();\n }\n\n /**\n * Returns true if the color is light, false otherwhise.\n * This is useful to decide a text color.\n *\n * @returns {boolean}\n */\n isLight() {\n return this._color.isLight();\n }\n\n /**\n * Generates a list of colors using the given hue-based formula or the given array of hue values.\n * Hue formulas can be extended using ColorItem.colorFormulas static property.\n *\n * @param {String|Number[]} formula Examples: 'complementary', 'triad', 'tetrad', 'splitcomplement', [180, 270]\n * @example let colors = color.generate('triad');\n * @example let colors = color.generate([45, 80, 112, 200]);\n * @returns {ColorItem[]}\n */\n generate(formula) {\n let hues = [];\n\n if (Array.isArray(formula)) {\n hues = formula;\n } else if (!ColorItem.colorFormulas.hasOwnProperty(formula)) {\n throw new Error(`No color formula found with the name '${formula}'.`);\n } else {\n hues = ColorItem.colorFormulas[formula];\n }\n\n let colors = [], mainColor = this._color, format = this.format;\n\n hues.forEach(function (hue) {\n let levels = [\n hue ? ((mainColor.hue() + hue) % 360) : mainColor.hue(),\n mainColor.saturationv(),\n mainColor.value(),\n mainColor.alpha()\n ];\n\n colors.push(new ColorItem(levels, format));\n });\n\n return colors;\n }\n}\n\n/**\n * List of hue-based color formulas used by ColorItem.prototype.generate()\n *\n * @static\n * @type {{complementary: number[], triad: number[], tetrad: number[], splitcomplement: number[]}}\n */\nColorItem.colorFormulas = {\n complementary: [180],\n triad: [0, 120, 240],\n tetrad: [0, 90, 180, 270],\n splitcomplement: [0, 72, 216]\n};\n\nexport default ColorItem;\n\nexport {\n HSVAColor,\n ColorItem\n};\n","'use strict';\n/**\n * @module\n */\n\n// adjust these values accordingly to the sass vars\nlet sassVars = {\n 'bar_size_short': 16,\n 'base_margin': 6,\n 'columns': 6\n};\n\nlet sliderSize = (sassVars.bar_size_short * sassVars.columns) + (sassVars.base_margin * (sassVars.columns - 1));\n\n/**\n * Colorpicker default options\n */\nexport default {\n /**\n * Custom class to be added to the `.colorpicker-element` element\n *\n * @type {String|null}\n * @default null\n */\n customClass: null,\n /**\n * Sets a initial color, ignoring the one from the element/input value or the data-color attribute.\n *\n * @type {(String|ColorItem|boolean)}\n * @default false\n */\n color: false,\n /**\n * Fallback color to use when the given color is invalid.\n * If false, the latest valid color will be used as a fallback.\n *\n * @type {String|ColorItem|boolean}\n * @default false\n */\n fallbackColor: false,\n /**\n * Forces an specific color format. If 'auto', it will be automatically detected the first time only,\n * but if null it will be always recalculated.\n *\n * Note that the ending 'a' of the format meaning \"alpha\" has currently no effect, meaning that rgb is the same as\n * rgba excepting if the alpha channel is disabled (see useAlpha).\n *\n * @type {('rgb'|'hex'|'hsl'|'auto'|null)}\n * @default 'auto'\n */\n format: 'auto',\n /**\n * Horizontal mode layout.\n *\n * If true, the hue and alpha channel bars will be rendered horizontally, above the saturation selector.\n *\n * @type {boolean}\n * @default false\n */\n horizontal: false,\n /**\n * Forces to show the colorpicker as an inline element.\n *\n * Note that if there is no container specified, the inline element\n * will be added to the body, so you may want to set the container option.\n *\n * @type {boolean}\n * @default false\n */\n inline: false,\n /**\n * Container where the colorpicker is appended to in the DOM.\n *\n * If is a string (CSS selector), the colorpicker will be placed inside this container.\n * If true, the `.colorpicker-element` element itself will be used as the container.\n * If false, the document body is used as the container, unless it is a popover (in this case it is appended to the\n * popover body instead).\n *\n * @type {String|boolean}\n * @default false\n */\n container: false,\n /**\n * Bootstrap Popover options.\n * The trigger, content and html options are always ignored.\n *\n * @type {boolean}\n * @default Object\n */\n popover: {\n animation: true,\n placement: 'bottom',\n fallbackPlacement: 'flip'\n },\n /**\n * If true, loads the 'debugger' extension automatically, which logs the events in the console\n * @type {boolean}\n * @default false\n */\n debug: false,\n /**\n * Child CSS selector for the colorpicker input.\n *\n * @type {String}\n * @default 'input'\n */\n input: 'input',\n /**\n * Child CSS selector for the colorpicker addon.\n * If it exists, the child element background will be changed on color change.\n *\n * @type {String}\n * @default '.colorpicker-trigger, .colorpicker-input-addon'\n */\n addon: '.colorpicker-input-addon',\n /**\n * If true, the input content will be replaced always with a valid color,\n * if false, the invalid color will be left in the input,\n * while the internal color object will still resolve into a valid one.\n *\n * @type {boolean}\n * @default true\n */\n autoInputFallback: true,\n /**\n * If true a hash will be prepended to hexadecimal colors.\n * If false, the hash will be removed.\n * This only affects the input values in hexadecimal format.\n *\n * @type {boolean}\n * @default true\n */\n useHashPrefix: true,\n /**\n * If true, the alpha channel bar will be displayed no matter what.\n *\n * If false, it will be always hidden and alpha channel will be disabled also programmatically, meaning that\n * the selected or typed color will be always opaque.\n *\n * If null, the alpha channel will be automatically disabled/enabled depending if the initial color format supports\n * alpha or not.\n *\n * @type {boolean}\n * @default true\n */\n useAlpha: true,\n /**\n * Colorpicker widget template\n * @type {String}\n * @example\n * \n *
\n *
\n *
\n *
\n *
\n * \n *
\n *
\n */\n template: `
\n
\n
\n
\n
\n \n
\n
`,\n /**\n *\n * Associative object with the extension class name and its config.\n * Colorpicker comes with many bundled extensions: debugger, palette, preview and swatches (a superset of palette).\n *\n * @type {Object[]}\n * @example\n * extensions: [\n * {\n * name: 'swatches'\n * options: {\n * colors: {\n * 'primary': '#337ab7',\n * 'success': '#5cb85c',\n * 'info': '#5bc0de',\n * 'warning': '#f0ad4e',\n * 'danger': '#d9534f'\n * },\n * namesAsValues: true\n * }\n * }\n * ]\n */\n extensions: [\n {\n name: 'preview',\n options: {\n showText: true\n }\n }\n ],\n /**\n * Vertical sliders configuration\n * @type {Object}\n */\n sliders: {\n saturation: {\n selector: '.colorpicker-saturation',\n maxLeft: sliderSize,\n maxTop: sliderSize,\n callLeft: 'setSaturationRatio',\n callTop: 'setValueRatio'\n },\n hue: {\n selector: '.colorpicker-hue',\n maxLeft: 0,\n maxTop: sliderSize,\n callLeft: false,\n callTop: 'setHueRatio'\n },\n alpha: {\n selector: '.colorpicker-alpha',\n childSelector: '.colorpicker-alpha-color',\n maxLeft: 0,\n maxTop: sliderSize,\n callLeft: false,\n callTop: 'setAlphaRatio'\n }\n },\n /**\n * Horizontal sliders configuration\n * @type {Object}\n */\n slidersHorz: {\n saturation: {\n selector: '.colorpicker-saturation',\n maxLeft: sliderSize,\n maxTop: sliderSize,\n callLeft: 'setSaturationRatio',\n callTop: 'setValueRatio'\n },\n hue: {\n selector: '.colorpicker-hue',\n maxLeft: sliderSize,\n maxTop: 0,\n callLeft: 'setHueRatio',\n callTop: false\n },\n alpha: {\n selector: '.colorpicker-alpha',\n childSelector: '.colorpicker-alpha-color',\n maxLeft: sliderSize,\n maxTop: 0,\n callLeft: 'setAlphaRatio',\n callTop: false\n }\n }\n};\n","'use strict';\n\nimport Extension from 'Extension';\nimport $ from 'jquery';\n\nlet defaults = {\n /**\n * Key-value pairs defining a color alias and its CSS color representation.\n *\n * They can also be just an array of values. In that case, no special names are used, only the real colors.\n *\n * @type {Object|Array}\n * @default null\n * @example\n * {\n * 'black': '#000000',\n * 'white': '#ffffff',\n * 'red': '#FF0000',\n * 'default': '#777777',\n * 'primary': '#337ab7',\n * 'success': '#5cb85c',\n * 'info': '#5bc0de',\n * 'warning': '#f0ad4e',\n * 'danger': '#d9534f'\n * }\n *\n * @example ['#f0ad4e', '#337ab7', '#5cb85c']\n */\n colors: null,\n /**\n * If true, when a color swatch is selected the name (alias) will be used as input value,\n * otherwise the swatch real color value will be used.\n *\n * @type {boolean}\n * @default true\n */\n namesAsValues: true\n};\n\n/**\n * Palette extension\n * @ignore\n */\nclass Palette extends Extension {\n\n /**\n * @returns {Object|Array}\n */\n get colors() {\n return this.options.colors;\n }\n\n constructor(colorpicker, options = {}) {\n super(colorpicker, $.extend(true, {}, defaults, options));\n\n if ((!Array.isArray(this.options.colors)) && (typeof this.options.colors !== 'object')) {\n this.options.colors = null;\n }\n }\n\n /**\n * @returns {int}\n */\n getLength() {\n if (!this.options.colors) {\n return 0;\n }\n\n if (Array.isArray(this.options.colors)) {\n return this.options.colors.length;\n }\n\n if (typeof this.options.colors === 'object') {\n return Object.keys(this.options.colors).length;\n }\n\n return 0;\n }\n\n resolveColor(color, realColor = true) {\n if (this.getLength() <= 0) {\n return false;\n }\n\n // Array of colors\n if (Array.isArray(this.options.colors)) {\n if (this.options.colors.indexOf(color) >= 0) {\n return color;\n }\n if (this.options.colors.indexOf(color.toUpperCase()) >= 0) {\n return color.toUpperCase();\n }\n if (this.options.colors.indexOf(color.toLowerCase()) >= 0) {\n return color.toLowerCase();\n }\n return false;\n }\n\n if (typeof this.options.colors !== 'object') {\n return false;\n }\n\n // Map of objects\n if (!this.options.namesAsValues || realColor) {\n return this.getValue(color, false);\n }\n return this.getName(color, this.getName('#' + color));\n }\n\n /**\n * Given a color value, returns the corresponding color name or defaultValue.\n *\n * @param {String} value\n * @param {*} defaultValue\n * @returns {*}\n */\n getName(value, defaultValue = false) {\n if (!(typeof value === 'string') || !this.options.colors) {\n return defaultValue;\n }\n for (let name in this.options.colors) {\n if (!this.options.colors.hasOwnProperty(name)) {\n continue;\n }\n if (this.options.colors[name].toLowerCase() === value.toLowerCase()) {\n return name;\n }\n }\n return defaultValue;\n }\n\n /**\n * Given a color name, returns the corresponding color value or defaultValue.\n *\n * @param {String} name\n * @param {*} defaultValue\n * @returns {*}\n */\n getValue(name, defaultValue = false) {\n if (!(typeof name === 'string') || !this.options.colors) {\n return defaultValue;\n }\n if (this.options.colors.hasOwnProperty(name)) {\n return this.options.colors[name];\n }\n return defaultValue;\n }\n}\n\nexport default Palette;\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\nvar cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nvar reverseKeywords = {};\nfor (var key in cssKeywords) {\n\tif (cssKeywords.hasOwnProperty(key)) {\n\t\treverseKeywords[cssKeywords[key]] = key;\n\t}\n}\n\nvar convert = module.exports = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\n// hide .channels and .labels properties\nfor (var model in convert) {\n\tif (convert.hasOwnProperty(model)) {\n\t\tif (!('channels' in convert[model])) {\n\t\t\tthrow new Error('missing channels property: ' + model);\n\t\t}\n\n\t\tif (!('labels' in convert[model])) {\n\t\t\tthrow new Error('missing channel labels property: ' + model);\n\t\t}\n\n\t\tif (convert[model].labels.length !== convert[model].channels) {\n\t\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t\t}\n\n\t\tvar channels = convert[model].channels;\n\t\tvar labels = convert[model].labels;\n\t\tdelete convert[model].channels;\n\t\tdelete convert[model].labels;\n\t\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\t\tObject.defineProperty(convert[model], 'labels', {value: labels});\n\t}\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar min = Math.min(r, g, b);\n\tvar max = Math.max(r, g, b);\n\tvar delta = max - min;\n\tvar h;\n\tvar s;\n\tvar l;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tl = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tvar rdif;\n\tvar gdif;\n\tvar bdif;\n\tvar h;\n\tvar s;\n\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar v = Math.max(r, g, b);\n\tvar diff = v - Math.min(r, g, b);\n\tvar diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = s = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tvar r = rgb[0];\n\tvar g = rgb[1];\n\tvar b = rgb[2];\n\tvar h = convert.rgb.hsl(rgb)[0];\n\tvar w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar c;\n\tvar m;\n\tvar y;\n\tvar k;\n\n\tk = Math.min(1 - r, 1 - g, 1 - b);\n\tc = (1 - r - k) / (1 - k) || 0;\n\tm = (1 - g - k) / (1 - k) || 0;\n\ty = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\n/**\n * See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n * */\nfunction comparativeDistance(x, y) {\n\treturn (\n\t\tMath.pow(x[0] - y[0], 2) +\n\t\tMath.pow(x[1] - y[1], 2) +\n\t\tMath.pow(x[2] - y[2], 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tvar reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tvar currentClosestDistance = Infinity;\n\tvar currentClosestKeyword;\n\n\tfor (var keyword in cssKeywords) {\n\t\tif (cssKeywords.hasOwnProperty(keyword)) {\n\t\t\tvar value = cssKeywords[keyword];\n\n\t\t\t// Compute comparative distance\n\t\t\tvar distance = comparativeDistance(rgb, value);\n\n\t\t\t// Check if its less, if so set as closest\n\t\t\tif (distance < currentClosestDistance) {\n\t\t\t\tcurrentClosestDistance = distance;\n\t\t\t\tcurrentClosestKeyword = keyword;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\n\t// assume sRGB\n\tr = r > 0.04045 ? Math.pow(((r + 0.055) / 1.055), 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? Math.pow(((g + 0.055) / 1.055), 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? Math.pow(((b + 0.055) / 1.055), 2.4) : (b / 12.92);\n\n\tvar x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tvar y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tvar z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tvar xyz = convert.rgb.xyz(rgb);\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tvar h = hsl[0] / 360;\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar t1;\n\tvar t2;\n\tvar t3;\n\tvar rgb;\n\tvar val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tt1 = 2 * l - t2;\n\n\trgb = [0, 0, 0];\n\tfor (var i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tvar h = hsl[0];\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar smin = s;\n\tvar lmin = Math.max(l, 0.01);\n\tvar sv;\n\tvar v;\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tv = (l + s) / 2;\n\tsv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tvar h = hsv[0] / 60;\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar hi = Math.floor(h) % 6;\n\n\tvar f = h - Math.floor(h);\n\tvar p = 255 * v * (1 - s);\n\tvar q = 255 * v * (1 - (s * f));\n\tvar t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tvar h = hsv[0];\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\tvar vmin = Math.max(v, 0.01);\n\tvar lmin;\n\tvar sl;\n\tvar l;\n\n\tl = (2 - s) * v;\n\tlmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tvar h = hwb[0] / 360;\n\tvar wh = hwb[1] / 100;\n\tvar bl = hwb[2] / 100;\n\tvar ratio = wh + bl;\n\tvar i;\n\tvar v;\n\tvar f;\n\tvar n;\n\n\t// wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\ti = Math.floor(6 * h);\n\tv = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tn = wh + f * (v - wh); // linear interpolation\n\n\tvar r;\n\tvar g;\n\tvar b;\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tvar c = cmyk[0] / 100;\n\tvar m = cmyk[1] / 100;\n\tvar y = cmyk[2] / 100;\n\tvar k = cmyk[3] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = 1 - Math.min(1, c * (1 - k) + k);\n\tg = 1 - Math.min(1, m * (1 - k) + k);\n\tb = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tvar x = xyz[0] / 100;\n\tvar y = xyz[1] / 100;\n\tvar z = xyz[2] / 100;\n\tvar r;\n\tvar g;\n\tvar b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * Math.pow(r, 1.0 / 2.4)) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * Math.pow(g, 1.0 / 2.4)) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * Math.pow(b, 1.0 / 2.4)) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tvar x = xyz[0];\n\tvar y = xyz[1];\n\tvar z = xyz[2];\n\tvar l;\n\tvar a;\n\tvar b;\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? Math.pow(x, 1 / 3) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? Math.pow(y, 1 / 3) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? Math.pow(z, 1 / 3) : (7.787 * z) + (16 / 116);\n\n\tl = (116 * y) - 16;\n\ta = 500 * (x - y);\n\tb = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar x;\n\tvar y;\n\tvar z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tvar y2 = Math.pow(y, 3);\n\tvar x2 = Math.pow(x, 3);\n\tvar z2 = Math.pow(z, 3);\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tvar l = lab[0];\n\tvar a = lab[1];\n\tvar b = lab[2];\n\tvar hr;\n\tvar h;\n\tvar c;\n\n\thr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tc = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tvar l = lch[0];\n\tvar c = lch[1];\n\tvar h = lch[2];\n\tvar a;\n\tvar b;\n\tvar hr;\n\n\thr = h / 360 * 2 * Math.PI;\n\ta = c * Math.cos(hr);\n\tb = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\tvar value = 1 in arguments ? arguments[1] : convert.rgb.hsv(args)[2]; // hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tvar ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tvar r = args[0];\n\tvar g = args[1];\n\tvar b = args[2];\n\n\t// we use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tvar ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tvar color = args % 10;\n\n\t// handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tvar mult = (~~(args > 50) + 1) * 0.5;\n\tvar r = ((color & 1) * mult) * 255;\n\tvar g = (((color >> 1) & 1) * mult) * 255;\n\tvar b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// handle greyscale\n\tif (args >= 232) {\n\t\tvar c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tvar rem;\n\tvar r = Math.floor(args / 36) / 5 * 255;\n\tvar g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tvar b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tvar integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tvar match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tvar colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(function (char) {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tvar integer = parseInt(colorString, 16);\n\tvar r = (integer >> 16) & 0xFF;\n\tvar g = (integer >> 8) & 0xFF;\n\tvar b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tvar r = rgb[0] / 255;\n\tvar g = rgb[1] / 255;\n\tvar b = rgb[2] / 255;\n\tvar max = Math.max(Math.max(r, g), b);\n\tvar min = Math.min(Math.min(r, g), b);\n\tvar chroma = (max - min);\n\tvar grayscale;\n\tvar hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma + 4;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tvar s = hsl[1] / 100;\n\tvar l = hsl[2] / 100;\n\tvar c = 1;\n\tvar f = 0;\n\n\tif (l < 0.5) {\n\t\tc = 2.0 * s * l;\n\t} else {\n\t\tc = 2.0 * s * (1.0 - l);\n\t}\n\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tvar s = hsv[1] / 100;\n\tvar v = hsv[2] / 100;\n\n\tvar c = s * v;\n\tvar f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tvar h = hcg[0] / 360;\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tvar pure = [0, 0, 0];\n\tvar hi = (h % 1) * 6;\n\tvar v = hi % 1;\n\tvar w = 1 - v;\n\tvar mg = 0;\n\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar v = c + g * (1.0 - c);\n\tvar f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\n\tvar l = g * (1.0 - c) + 0.5 * c;\n\tvar s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tvar c = hcg[1] / 100;\n\tvar g = hcg[2] / 100;\n\tvar v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tvar w = hwb[1] / 100;\n\tvar b = hwb[2] / 100;\n\tvar v = 1 - b;\n\tvar c = v - w;\n\tvar g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = convert.gray.hsv = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tvar val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tvar integer = (val << 16) + (val << 8) + val;\n\n\tvar string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tvar val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","'use strict';\n\nimport Colorpicker from './Colorpicker';\nimport $ from 'jquery';\n\nlet plugin = 'colorpicker';\n\n$[plugin] = Colorpicker;\n\n// Colorpicker jQuery Plugin API\n$.fn[plugin] = function (option) {\n let fnArgs = Array.prototype.slice.call(arguments, 1),\n isSingleElement = (this.length === 1),\n returnValue = null;\n\n let $elements = this.each(function () {\n let $this = $(this),\n inst = $this.data(plugin),\n options = ((typeof option === 'object') ? option : {});\n\n // Create instance if does not exist\n if (!inst) {\n inst = new Colorpicker(this, options);\n $this.data(plugin, inst);\n }\n\n if (!isSingleElement) {\n return;\n }\n\n returnValue = $this;\n\n if (typeof option === 'string') {\n if (option === 'colorpicker') {\n // Return colorpicker instance: e.g. .colorpicker('colorpicker')\n returnValue = inst;\n } else if ($.isFunction(inst[option])) {\n // Return method call return value: e.g. .colorpicker('isEnabled')\n returnValue = inst[option].apply(inst, fnArgs);\n } else {\n // Return property value: e.g. .colorpicker('element')\n returnValue = inst[option];\n }\n }\n });\n\n return isSingleElement ? returnValue : $elements;\n};\n\n$.fn[plugin].constructor = Colorpicker;\n","'use strict';\n\nimport Extension from './Extension';\nimport defaults from './options';\nimport coreExtensions from 'extensions';\nimport $ from 'jquery';\nimport SliderHandler from './SliderHandler';\nimport PopupHandler from './PopupHandler';\nimport InputHandler from './InputHandler';\nimport ColorHandler from './ColorHandler';\nimport PickerHandler from './PickerHandler';\nimport AddonHandler from './AddonHandler';\nimport ColorItem from './ColorItem';\n\nlet colorPickerIdCounter = 0;\n\nlet root = (typeof self !== 'undefined' ? self : this); // window\n\n/**\n * Colorpicker widget class\n */\nclass Colorpicker {\n /**\n * Color class\n *\n * @static\n * @type {Color}\n */\n static get Color() {\n return ColorItem;\n }\n\n /**\n * Extension class\n *\n * @static\n * @type {Extension}\n */\n static get Extension() {\n return Extension;\n }\n\n /**\n * Internal color object\n *\n * @type {Color|null}\n */\n get color() {\n return this.colorHandler.color;\n }\n\n /**\n * Internal color format\n *\n * @type {String|null}\n */\n get format() {\n return this.colorHandler.format;\n }\n\n /**\n * Getter of the picker element\n *\n * @returns {jQuery|HTMLElement}\n */\n get picker() {\n return this.pickerHandler.picker;\n }\n\n /**\n * @fires Colorpicker#colorpickerCreate\n * @param {Object|String} element\n * @param {Object} options\n * @constructor\n */\n constructor(element, options) {\n colorPickerIdCounter += 1;\n /**\n * The colorpicker instance number\n * @type {number}\n */\n this.id = colorPickerIdCounter;\n\n /**\n * Latest colorpicker event\n *\n * @type {{name: String, e: *}}\n */\n this.lastEvent = {\n alias: null,\n e: null\n };\n\n /**\n * The element that the colorpicker is bound to\n *\n * @type {*|jQuery}\n */\n this.element = $(element)\n .addClass('colorpicker-element')\n .attr('data-colorpicker-id', this.id);\n\n /**\n * @type {defaults}\n */\n this.options = $.extend(true, {}, defaults, options, this.element.data());\n\n /**\n * @type {boolean}\n * @private\n */\n this.disabled = false;\n\n /**\n * Extensions added to this instance\n *\n * @type {Extension[]}\n */\n this.extensions = [];\n\n /**\n * The element where the\n * @type {*|jQuery}\n */\n this.container = (\n this.options.container === true ||\n (this.options.container !== true && this.options.inline === true)\n ) ? this.element : this.options.container;\n\n this.container = (this.container !== false) ? $(this.container) : false;\n\n /**\n * @type {InputHandler}\n */\n this.inputHandler = new InputHandler(this);\n /**\n * @type {ColorHandler}\n */\n this.colorHandler = new ColorHandler(this);\n /**\n * @type {SliderHandler}\n */\n this.sliderHandler = new SliderHandler(this);\n /**\n * @type {PopupHandler}\n */\n this.popupHandler = new PopupHandler(this, root);\n /**\n * @type {PickerHandler}\n */\n this.pickerHandler = new PickerHandler(this);\n /**\n * @type {AddonHandler}\n */\n this.addonHandler = new AddonHandler(this);\n\n this.init();\n\n // Emit a create event\n $($.proxy(function () {\n /**\n * (Colorpicker) When the Colorpicker instance has been created and the DOM is ready.\n *\n * @event Colorpicker#colorpickerCreate\n */\n this.trigger('colorpickerCreate');\n }, this));\n }\n\n /**\n * Initializes the plugin\n * @private\n */\n init() {\n // Init addon\n this.addonHandler.bind();\n\n // Init input\n this.inputHandler.bind();\n\n // Init extensions (before initializing the color)\n this.initExtensions();\n\n // Init color\n this.colorHandler.bind();\n\n // Init picker\n this.pickerHandler.bind();\n\n // Init sliders and popup\n this.sliderHandler.bind();\n this.popupHandler.bind();\n\n // Inject into the DOM (this may make it visible)\n this.pickerHandler.attach();\n\n // Update all components\n this.update();\n\n if (this.inputHandler.isDisabled()) {\n this.disable();\n }\n }\n\n /**\n * Initializes the plugin extensions\n * @private\n */\n initExtensions() {\n if (!Array.isArray(this.options.extensions)) {\n this.options.extensions = [];\n }\n\n if (this.options.debug) {\n this.options.extensions.push({name: 'debugger'});\n }\n\n // Register and instantiate extensions\n this.options.extensions.forEach((ext) => {\n this.registerExtension(Colorpicker.extensions[ext.name.toLowerCase()], ext.options || {});\n });\n }\n\n /**\n * Creates and registers the given extension\n *\n * @param {Extension} ExtensionClass The extension class to instantiate\n * @param {Object} [config] Extension configuration\n * @returns {Extension}\n */\n registerExtension(ExtensionClass, config = {}) {\n let ext = new ExtensionClass(this, config);\n\n this.extensions.push(ext);\n return ext;\n }\n\n /**\n * Destroys the current instance\n *\n * @fires Colorpicker#colorpickerDestroy\n */\n destroy() {\n let color = this.color;\n\n this.sliderHandler.unbind();\n this.inputHandler.unbind();\n this.popupHandler.unbind();\n this.colorHandler.unbind();\n this.addonHandler.unbind();\n this.pickerHandler.unbind();\n\n this.element\n .removeClass('colorpicker-element')\n .removeData('colorpicker', 'color')\n .off('.colorpicker');\n\n /**\n * (Colorpicker) When the instance is destroyed with all events unbound.\n *\n * @event Colorpicker#colorpickerDestroy\n */\n this.trigger('colorpickerDestroy', color);\n }\n\n /**\n * Shows the colorpicker widget if hidden.\n * If the colorpicker is disabled this call will be ignored.\n *\n * @fires Colorpicker#colorpickerShow\n * @param {Event} [e]\n */\n show(e) {\n this.popupHandler.show(e);\n }\n\n /**\n * Hides the colorpicker widget.\n *\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n hide(e) {\n this.popupHandler.hide(e);\n }\n\n /**\n * Toggles the colorpicker between visible and hidden.\n *\n * @fires Colorpicker#colorpickerShow\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n toggle(e) {\n this.popupHandler.toggle(e);\n }\n\n /**\n * Returns the current color value as string\n *\n * @param {String|*} [defaultValue]\n * @returns {String|*}\n */\n getValue(defaultValue = null) {\n let val = this.colorHandler.color;\n\n val = (val instanceof ColorItem) ? val : defaultValue;\n\n if (val instanceof ColorItem) {\n return val.string(this.format);\n }\n\n return val;\n }\n\n /**\n * Sets the color manually\n *\n * @fires Colorpicker#colorpickerChange\n * @param {String|Color} val\n */\n setValue(val) {\n if (this.isDisabled()) {\n return;\n }\n let ch = this.colorHandler;\n\n if (\n (ch.hasColor() && !!val && ch.color.equals(val)) ||\n (!ch.hasColor() && !val)\n ) {\n // same color or still empty\n return;\n }\n\n ch.color = val ? ch.createColor(val, this.options.autoInputFallback) : null;\n\n /**\n * (Colorpicker) When the color is set programmatically with setValue().\n *\n * @event Colorpicker#colorpickerChange\n */\n this.trigger('colorpickerChange', ch.color, val);\n\n // force update if color has changed to empty\n this.update();\n }\n\n /**\n * Updates the UI and the input color according to the internal color.\n *\n * @fires Colorpicker#colorpickerUpdate\n */\n update() {\n if (this.colorHandler.hasColor()) {\n this.inputHandler.update();\n } else {\n this.colorHandler.assureColor();\n }\n\n this.addonHandler.update();\n this.pickerHandler.update();\n\n /**\n * (Colorpicker) Fired when the widget is updated.\n *\n * @event Colorpicker#colorpickerUpdate\n */\n this.trigger('colorpickerUpdate');\n }\n\n /**\n * Enables the widget and the input if any\n *\n * @fires Colorpicker#colorpickerEnable\n * @returns {boolean}\n */\n enable() {\n this.inputHandler.enable();\n this.disabled = false;\n this.picker.removeClass('colorpicker-disabled');\n\n /**\n * (Colorpicker) When the widget has been enabled.\n *\n * @event Colorpicker#colorpickerEnable\n */\n this.trigger('colorpickerEnable');\n return true;\n }\n\n /**\n * Disables the widget and the input if any\n *\n * @fires Colorpicker#colorpickerDisable\n * @returns {boolean}\n */\n disable() {\n this.inputHandler.disable();\n this.disabled = true;\n this.picker.addClass('colorpicker-disabled');\n\n /**\n * (Colorpicker) When the widget has been disabled.\n *\n * @event Colorpicker#colorpickerDisable\n */\n this.trigger('colorpickerDisable');\n return true;\n }\n\n /**\n * Returns true if this instance is enabled\n * @returns {boolean}\n */\n isEnabled() {\n return !this.isDisabled();\n }\n\n /**\n * Returns true if this instance is disabled\n * @returns {boolean}\n */\n isDisabled() {\n return this.disabled === true;\n }\n\n /**\n * Triggers a Colorpicker event.\n *\n * @param eventName\n * @param color\n * @param value\n */\n trigger(eventName, color = null, value = null) {\n this.element.trigger({\n type: eventName,\n colorpicker: this,\n color: color ? color : this.color,\n value: value ? value : this.getValue()\n });\n }\n}\n\n/**\n * Colorpicker extension classes, indexed by extension name\n *\n * @static\n * @type {Object} a map between the extension name and its class\n */\nColorpicker.extensions = coreExtensions;\n\nexport default Colorpicker;\n","import Debugger from './Debugger';\nimport Preview from './Preview';\nimport Swatches from './Swatches';\nimport Palette from './Palette';\n\nexport {\n Debugger, Preview, Swatches, Palette\n};\n\nexport default {\n 'debugger': Debugger,\n 'preview': Preview,\n 'swatches': Swatches,\n 'palette': Palette\n};\n","'use strict';\n\nimport Extension from 'Extension';\nimport $ from 'jquery';\n\n/**\n * Debugger extension class\n * @alias DebuggerExtension\n * @ignore\n */\nclass Debugger extends Extension {\n constructor(colorpicker, options = {}) {\n super(colorpicker, options);\n\n /**\n * @type {number}\n */\n this.eventCounter = 0;\n if (this.colorpicker.inputHandler.hasInput()) {\n this.colorpicker.inputHandler.input.on('change.colorpicker-ext', $.proxy(this.onChangeInput, this));\n }\n }\n\n /**\n * @fires DebuggerExtension#colorpickerDebug\n * @param {string} eventName\n * @param {*} args\n */\n log(eventName, ...args) {\n this.eventCounter += 1;\n\n let logMessage = `#${this.eventCounter}: Colorpicker#${this.colorpicker.id} [${eventName}]`;\n\n console.debug(logMessage, ...args);\n\n /**\n * Whenever the debugger logs an event, this other event is emitted.\n *\n * @event DebuggerExtension#colorpickerDebug\n * @type {object} The event object\n * @property {Colorpicker} colorpicker The Colorpicker instance\n * @property {ColorItem} color The color instance\n * @property {{debugger: DebuggerExtension, eventName: String, logArgs: Array, logMessage: String}} debug\n * The debug info\n */\n this.colorpicker.element.trigger({\n type: 'colorpickerDebug',\n colorpicker: this.colorpicker,\n color: this.color,\n value: null,\n debug: {\n debugger: this,\n eventName: eventName,\n logArgs: args,\n logMessage: logMessage\n }\n });\n }\n\n resolveColor(color, realColor = true) {\n this.log('resolveColor()', color, realColor);\n return false;\n }\n\n onCreate(event) {\n this.log('colorpickerCreate');\n return super.onCreate(event);\n }\n\n onDestroy(event) {\n this.log('colorpickerDestroy');\n this.eventCounter = 0;\n\n if (this.colorpicker.inputHandler.hasInput()) {\n this.colorpicker.inputHandler.input.off('.colorpicker-ext');\n }\n\n return super.onDestroy(event);\n }\n\n onUpdate(event) {\n this.log('colorpickerUpdate');\n }\n\n /**\n * @listens Colorpicker#change\n * @param {Event} event\n */\n onChangeInput(event) {\n this.log('input:change.colorpicker', event.value, event.color);\n }\n\n onChange(event) {\n this.log('colorpickerChange', event.value, event.color);\n }\n\n onInvalid(event) {\n this.log('colorpickerInvalid', event.value, event.color);\n }\n\n onHide(event) {\n this.log('colorpickerHide');\n this.eventCounter = 0;\n }\n\n onShow(event) {\n this.log('colorpickerShow');\n }\n\n onDisable(event) {\n this.log('colorpickerDisable');\n }\n\n onEnable(event) {\n this.log('colorpickerEnable');\n }\n}\n\nexport default Debugger;\n","'use strict';\n\nimport Extension from 'Extension';\nimport $ from 'jquery';\n\n/**\n * Color preview extension\n * @ignore\n */\nclass Preview extends Extension {\n constructor(colorpicker, options = {}) {\n super(colorpicker, $.extend(true, {},\n {\n template: '
',\n showText: true,\n format: colorpicker.format\n },\n options\n ));\n\n this.element = $(this.options.template);\n this.elementInner = this.element.find('div');\n }\n\n onCreate(event) {\n super.onCreate(event);\n this.colorpicker.picker.append(this.element);\n }\n\n onUpdate(event) {\n super.onUpdate(event);\n\n if (!event.color) {\n this.elementInner\n .css('backgroundColor', null)\n .css('color', null)\n .html('');\n return;\n }\n\n this.elementInner\n .css('backgroundColor', event.color.toRgbString());\n\n if (this.options.showText) {\n this.elementInner\n .html(event.color.string(this.options.format || this.colorpicker.format));\n\n if (event.color.isDark() && (event.color.alpha > 0.5)) {\n this.elementInner.css('color', 'white');\n } else {\n this.elementInner.css('color', 'black');\n }\n }\n }\n}\n\nexport default Preview;\n","'use strict';\n\nimport Palette from './Palette';\nimport $ from 'jquery';\n\nlet defaults = {\n barTemplate: `
\n
\n
`,\n swatchTemplate: ''\n};\n\n/**\n * Color swatches extension\n * @ignore\n */\nclass Swatches extends Palette {\n constructor(colorpicker, options = {}) {\n super(colorpicker, $.extend(true, {}, defaults, options));\n this.element = null;\n }\n\n isEnabled() {\n return this.getLength() > 0;\n }\n\n onCreate(event) {\n super.onCreate(event);\n\n if (!this.isEnabled()) {\n return;\n }\n\n this.element = $(this.options.barTemplate);\n this.load();\n this.colorpicker.picker.append(this.element);\n }\n\n load() {\n let colorpicker = this.colorpicker,\n swatchContainer = this.element.find('.colorpicker-swatches--inner'),\n isAliased = (this.options.namesAsValues === true) && !Array.isArray(this.colors);\n\n swatchContainer.empty();\n\n $.each(this.colors, (name, value) => {\n let $swatch = $(this.options.swatchTemplate)\n .attr('data-name', name)\n .attr('data-value', value)\n .attr('title', isAliased ? `${name}: ${value}` : value)\n .on('mousedown.colorpicker touchstart.colorpicker',\n function (e) {\n let $sw = $(this);\n\n // e.preventDefault();\n\n colorpicker.setValue(isAliased ? $sw.attr('data-name') : $sw.attr('data-value'));\n }\n );\n\n $swatch.find('.colorpicker-swatch--inner')\n .css('background-color', value);\n\n swatchContainer.append($swatch);\n });\n\n swatchContainer.append($(''));\n }\n}\n\nexport default Swatches;\n","'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Class that handles all configured sliders on mouse or touch events.\n * @ignore\n */\nclass SliderHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {*|String}\n * @private\n */\n this.currentSlider = null;\n /**\n * @type {{left: number, top: number}}\n * @private\n */\n this.mousePointer = {\n left: 0,\n top: 0\n };\n\n /**\n * @type {Function}\n */\n this.onMove = $.proxy(this.defaultOnMove, this);\n }\n\n /**\n * This function is called every time a slider guide is moved\n * The scope of \"this\" is the SliderHandler object.\n *\n * @param {int} top\n * @param {int} left\n */\n defaultOnMove(top, left) {\n if (!this.currentSlider) {\n return;\n }\n\n let slider = this.currentSlider, cp = this.colorpicker, ch = cp.colorHandler;\n\n // Create a color object\n let color = !ch.hasColor() ? ch.getFallbackColor() : ch.color.getClone();\n\n // Adjust the guide position\n slider.guideStyle.left = left + 'px';\n slider.guideStyle.top = top + 'px';\n\n // Adjust the color\n if (slider.callLeft) {\n color[slider.callLeft](left / slider.maxLeft);\n }\n if (slider.callTop) {\n color[slider.callTop](top / slider.maxTop);\n }\n\n // Set the new color\n cp.setValue(color);\n cp.popupHandler.focus();\n }\n\n /**\n * Binds the colorpicker sliders to the mouse/touch events\n */\n bind() {\n let sliders = this.colorpicker.options.horizontal ? this.colorpicker\n .options.slidersHorz : this.colorpicker.options.sliders;\n\n let sliderClasses = [];\n\n for (let sliderName in sliders) {\n if (!sliders.hasOwnProperty(sliderName)) {\n continue;\n }\n\n sliderClasses.push(sliders[sliderName].selector);\n }\n\n this.colorpicker.picker.find(sliderClasses.join(', '))\n .on('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.pressed, this));\n }\n\n /**\n * Unbinds any event bound by this handler\n */\n unbind() {\n $(this.colorpicker.picker).off({\n 'mousemove.colorpicker': $.proxy(this.moved, this),\n 'touchmove.colorpicker': $.proxy(this.moved, this),\n 'mouseup.colorpicker': $.proxy(this.released, this),\n 'touchend.colorpicker': $.proxy(this.released, this)\n });\n }\n\n /**\n * Function triggered when clicking in one of the color adjustment bars\n *\n * @private\n * @fires Colorpicker#mousemove\n * @param {Event} e\n */\n pressed(e) {\n if (this.colorpicker.isDisabled()) {\n return;\n }\n this.colorpicker.lastEvent.alias = 'pressed';\n this.colorpicker.lastEvent.e = e;\n\n if (!e.pageX && !e.pageY && e.originalEvent && e.originalEvent.touches) {\n e.pageX = e.originalEvent.touches[0].pageX;\n e.pageY = e.originalEvent.touches[0].pageY;\n }\n // e.stopPropagation();\n // e.preventDefault();\n\n let target = $(e.target);\n\n // detect the slider and set the limits and callbacks\n let zone = target.closest('div');\n\n let sliders = this.colorpicker.options.horizontal ? this.colorpicker\n .options.slidersHorz : this.colorpicker.options.sliders;\n\n if (zone.is('.colorpicker')) {\n return;\n }\n\n this.currentSlider = null;\n\n for (let sliderName in sliders) {\n if (!sliders.hasOwnProperty(sliderName)) {\n continue;\n }\n\n let slider = sliders[sliderName];\n\n if (zone.is(slider.selector)) {\n this.currentSlider = $.extend({}, slider, {name: sliderName});\n break;\n } else if (slider.childSelector !== undefined && zone.is(slider.childSelector)) {\n this.currentSlider = $.extend({}, slider, {name: sliderName});\n zone = zone.parent(); // zone.parents(slider.selector).first() ?\n break;\n }\n }\n\n let guide = zone.find('.colorpicker-guide').get(0);\n\n if (this.currentSlider === null || guide === null) {\n return;\n }\n\n let offset = zone.offset();\n\n // reference to guide's style\n this.currentSlider.guideStyle = guide.style;\n this.currentSlider.left = e.pageX - offset.left;\n this.currentSlider.top = e.pageY - offset.top;\n this.mousePointer = {\n left: e.pageX,\n top: e.pageY\n };\n\n // TODO: fix moving outside the picker makes the guides to keep moving. The event needs to be bound to the window.\n /**\n * (window.document) Triggered on mousedown for the document object,\n * so the color adjustment guide is moved to the clicked position.\n *\n * @event Colorpicker#mousemove\n */\n $(this.colorpicker.picker).on({\n 'mousemove.colorpicker': $.proxy(this.moved, this),\n 'touchmove.colorpicker': $.proxy(this.moved, this),\n 'mouseup.colorpicker': $.proxy(this.released, this),\n 'touchend.colorpicker': $.proxy(this.released, this)\n }).trigger('mousemove');\n }\n\n /**\n * Function triggered when dragging a guide inside one of the color adjustment bars.\n *\n * @private\n * @param {Event} e\n */\n moved(e) {\n this.colorpicker.lastEvent.alias = 'moved';\n this.colorpicker.lastEvent.e = e;\n\n if (!e.pageX && !e.pageY && e.originalEvent && e.originalEvent.touches) {\n e.pageX = e.originalEvent.touches[0].pageX;\n e.pageY = e.originalEvent.touches[0].pageY;\n }\n\n // e.stopPropagation();\n e.preventDefault(); // prevents scrolling on mobile\n\n let left = Math.max(\n 0,\n Math.min(\n this.currentSlider.maxLeft,\n this.currentSlider.left + ((e.pageX || this.mousePointer.left) - this.mousePointer.left)\n )\n );\n\n let top = Math.max(\n 0,\n Math.min(\n this.currentSlider.maxTop,\n this.currentSlider.top + ((e.pageY || this.mousePointer.top) - this.mousePointer.top)\n )\n );\n\n this.onMove(top, left);\n }\n\n /**\n * Function triggered when releasing the click in one of the color adjustment bars.\n *\n * @private\n * @param {Event} e\n */\n released(e) {\n this.colorpicker.lastEvent.alias = 'released';\n this.colorpicker.lastEvent.e = e;\n\n // e.stopPropagation();\n // e.preventDefault();\n\n $(this.colorpicker.picker).off({\n 'mousemove.colorpicker': this.moved,\n 'touchmove.colorpicker': this.moved,\n 'mouseup.colorpicker': this.released,\n 'touchend.colorpicker': this.released\n });\n }\n}\n\nexport default SliderHandler;\n","'use strict';\n\nimport $ from 'jquery';\nimport _defaults from './options';\n\n/**\n * Handles everything related to the UI of the colorpicker popup: show, hide, position,...\n * @ignore\n */\nclass PopupHandler {\n /**\n * @param {Colorpicker} colorpicker\n * @param {Window} root\n */\n constructor(colorpicker, root) {\n /**\n * @type {Window}\n */\n this.root = root;\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery}\n */\n this.popoverTarget = null;\n /**\n * @type {jQuery}\n */\n this.popoverTip = null;\n\n /**\n * If true, the latest click was inside the popover\n * @type {boolean}\n */\n this.clicking = false;\n /**\n * @type {boolean}\n */\n this.hidding = false;\n /**\n * @type {boolean}\n */\n this.showing = false;\n }\n\n /**\n * @private\n * @returns {jQuery|false}\n */\n get input() {\n return this.colorpicker.inputHandler.input;\n }\n\n /**\n * @private\n * @returns {boolean}\n */\n get hasInput() {\n return this.colorpicker.inputHandler.hasInput();\n }\n\n /**\n * @private\n * @returns {jQuery|false}\n */\n get addon() {\n return this.colorpicker.addonHandler.addon;\n }\n\n /**\n * @private\n * @returns {boolean}\n */\n get hasAddon() {\n return this.colorpicker.addonHandler.hasAddon();\n }\n\n /**\n * @private\n * @returns {boolean}\n */\n get isPopover() {\n return !this.colorpicker.options.inline && !!this.popoverTip;\n }\n\n /**\n * Binds the different colorpicker elements to the focus/mouse/touch events so it reacts in order to show or\n * hide the colorpicker popup accordingly. It also adds the proper classes.\n */\n bind() {\n let cp = this.colorpicker;\n\n if (cp.options.inline) {\n cp.picker.addClass('colorpicker-inline colorpicker-visible');\n return; // no need to bind show/hide events for inline elements\n }\n\n cp.picker.addClass('colorpicker-popup colorpicker-hidden');\n\n // there is no input or addon\n if (!this.hasInput && !this.hasAddon) {\n return;\n }\n\n // create Bootstrap 4 popover\n if (cp.options.popover) {\n this.createPopover();\n }\n\n // bind addon show/hide events\n if (this.hasAddon) {\n // enable focus on addons\n if (!this.addon.attr('tabindex')) {\n this.addon.attr('tabindex', 0);\n }\n\n this.addon.on({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.toggle, this)\n });\n\n this.addon.on({\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n\n this.addon.on({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n // bind input show/hide events\n if (this.hasInput && !this.hasAddon) {\n this.input.on({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.show, this),\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n\n this.input.on({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n // reposition popup on window resize\n $(this.root).on('resize.colorpicker', $.proxy(this.reposition, this));\n }\n\n /**\n * Unbinds any event bound by this handler\n */\n unbind() {\n if (this.hasInput) {\n this.input.off({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.show, this),\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n this.input.off({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n if (this.hasAddon) {\n this.addon.off({\n 'mousedown.colorpicker touchstart.colorpicker': $.proxy(this.toggle, this)\n });\n this.addon.off({\n 'focus.colorpicker': $.proxy(this.show, this)\n });\n this.addon.off({\n 'focusout.colorpicker': $.proxy(this.hide, this)\n });\n }\n\n if (this.popoverTarget) {\n this.popoverTarget.popover('dispose');\n }\n\n $(this.root).off('resize.colorpicker', $.proxy(this.reposition, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.hide, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.onClickingInside, this));\n }\n\n isClickingInside(e) {\n if (!e) {\n return false;\n }\n\n return (\n this.isOrIsInside(this.popoverTip, e.currentTarget) ||\n this.isOrIsInside(this.popoverTip, e.target) ||\n this.isOrIsInside(this.colorpicker.picker, e.currentTarget) ||\n this.isOrIsInside(this.colorpicker.picker, e.target)\n );\n }\n\n isOrIsInside(container, element) {\n if (!container || !element) {\n return false;\n }\n\n element = $(element);\n\n return (\n element.is(container) ||\n container.find(element).length > 0\n );\n }\n\n onClickingInside(e) {\n this.clicking = this.isClickingInside(e);\n }\n\n createPopover() {\n let cp = this.colorpicker;\n\n this.popoverTarget = this.hasAddon ? this.addon : this.input;\n\n cp.picker.addClass('colorpicker-bs-popover-content');\n\n this.popoverTarget.popover(\n $.extend(\n true,\n {},\n _defaults.popover,\n cp.options.popover,\n {trigger: 'manual', content: cp.picker, html: true}\n )\n );\n\n this.popoverTip = $(this.popoverTarget.popover('getTipElement').data('bs.popover').tip);\n this.popoverTip.addClass('colorpicker-bs-popover');\n\n this.popoverTarget.on('shown.bs.popover', $.proxy(this.fireShow, this));\n this.popoverTarget.on('hidden.bs.popover', $.proxy(this.fireHide, this));\n }\n\n /**\n * If the widget is not inside a container or inline, rearranges its position relative to its element offset.\n *\n * @param {Event} [e]\n * @private\n */\n reposition(e) {\n if (this.popoverTarget && this.isVisible()) {\n this.popoverTarget.popover('update');\n }\n }\n\n /**\n * Toggles the colorpicker between visible or hidden\n *\n * @fires Colorpicker#colorpickerShow\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n toggle(e) {\n if (this.isVisible()) {\n this.hide(e);\n } else {\n this.show(e);\n }\n }\n\n /**\n * Shows the colorpicker widget if hidden.\n *\n * @fires Colorpicker#colorpickerShow\n * @param {Event} [e]\n */\n show(e) {\n if (this.isVisible() || this.showing || this.hidding) {\n return;\n }\n\n this.showing = true;\n this.hidding = false;\n this.clicking = false;\n\n let cp = this.colorpicker;\n\n cp.lastEvent.alias = 'show';\n cp.lastEvent.e = e;\n\n // Prevent showing browser native HTML5 colorpicker\n if (\n (e && (!this.hasInput || this.input.attr('type') === 'color')) &&\n (e && e.preventDefault)\n ) {\n e.stopPropagation();\n e.preventDefault();\n }\n\n // If it's a popover, add event to the document to hide the picker when clicking outside of it\n if (this.isPopover) {\n $(this.root).on('resize.colorpicker', $.proxy(this.reposition, this));\n }\n\n // add visible class before popover is shown\n cp.picker.addClass('colorpicker-visible').removeClass('colorpicker-hidden');\n\n if (this.popoverTarget) {\n this.popoverTarget.popover('show');\n } else {\n this.fireShow();\n }\n }\n\n fireShow() {\n this.hidding = false;\n this.showing = false;\n\n if (this.isPopover) {\n // Add event to hide on outside click\n $(this.root.document).on('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.hide, this));\n $(this.root.document).on('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.onClickingInside, this));\n }\n\n /**\n * (Colorpicker) When show() is called and the widget can be shown.\n *\n * @event Colorpicker#colorpickerShow\n */\n this.colorpicker.trigger('colorpickerShow');\n }\n\n /**\n * Hides the colorpicker widget.\n * Hide is prevented when it is triggered by an event whose target element has been clicked/touched.\n *\n * @fires Colorpicker#colorpickerHide\n * @param {Event} [e]\n */\n hide(e) {\n if (this.isHidden() || this.showing || this.hidding) {\n return;\n }\n\n let cp = this.colorpicker, clicking = (this.clicking || this.isClickingInside(e));\n\n this.hidding = true;\n this.showing = false;\n this.clicking = false;\n\n cp.lastEvent.alias = 'hide';\n cp.lastEvent.e = e;\n\n // TODO: fix having to click twice outside when losing focus and last 2 clicks where inside the colorpicker\n\n // Prevent hide if triggered by an event and an element inside the colorpicker has been clicked/touched\n if (clicking) {\n this.hidding = false;\n return;\n }\n\n if (this.popoverTarget) {\n this.popoverTarget.popover('hide');\n } else {\n this.fireHide();\n }\n }\n\n fireHide() {\n this.hidding = false;\n this.showing = false;\n\n let cp = this.colorpicker;\n\n // add hidden class after popover is hidden\n cp.picker.addClass('colorpicker-hidden').removeClass('colorpicker-visible');\n\n // Unbind window and document events, since there is no need to keep them while the popup is hidden\n $(this.root).off('resize.colorpicker', $.proxy(this.reposition, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.hide, this));\n $(this.root.document).off('mousedown.colorpicker touchstart.colorpicker', $.proxy(this.onClickingInside, this));\n\n /**\n * (Colorpicker) When hide() is called and the widget can be hidden.\n *\n * @event Colorpicker#colorpickerHide\n */\n cp.trigger('colorpickerHide');\n }\n\n focus() {\n if (this.hasAddon) {\n return this.addon.focus();\n }\n if (this.hasInput) {\n return this.input.focus();\n }\n return false;\n }\n\n /**\n * Returns true if the colorpicker element has the colorpicker-visible class and not the colorpicker-hidden one.\n * False otherwise.\n *\n * @returns {boolean}\n */\n isVisible() {\n return this.colorpicker.picker.hasClass('colorpicker-visible') &&\n !this.colorpicker.picker.hasClass('colorpicker-hidden');\n }\n\n /**\n * Returns true if the colorpicker element has the colorpicker-hidden class and not the colorpicker-visible one.\n * False otherwise.\n *\n * @returns {boolean}\n */\n isHidden() {\n return this.colorpicker.picker.hasClass('colorpicker-hidden') &&\n !this.colorpicker.picker.hasClass('colorpicker-visible');\n }\n}\n\nexport default PopupHandler;\n","'use strict';\n\nimport $ from 'jquery';\nimport ColorItem from './ColorItem';\n\n/**\n * Handles everything related to the colorpicker input\n * @ignore\n */\nclass InputHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery|false}\n */\n this.input = this.colorpicker.element.is('input') ? this.colorpicker.element : (this.colorpicker.options.input ?\n this.colorpicker.element.find(this.colorpicker.options.input) : false);\n\n if (this.input && (this.input.length === 0)) {\n this.input = false;\n }\n\n this._initValue();\n }\n\n bind() {\n if (!this.hasInput()) {\n return;\n }\n this.input.on({\n 'keyup.colorpicker': $.proxy(this.onkeyup, this)\n });\n this.input.on({\n 'change.colorpicker': $.proxy(this.onchange, this)\n });\n }\n\n unbind() {\n if (!this.hasInput()) {\n return;\n }\n this.input.off('.colorpicker');\n }\n\n _initValue() {\n if (!this.hasInput()) {\n return;\n }\n\n let val = '';\n\n [\n // candidates:\n this.input.val(),\n this.input.data('color'),\n this.input.attr('data-color')\n ].map((item) => {\n if (item && (val === '')) {\n val = item;\n }\n });\n\n if (val instanceof ColorItem) {\n val = this.getFormattedColor(val.string(this.colorpicker.format));\n } else if (!(typeof val === 'string' || val instanceof String)) {\n val = '';\n }\n\n this.input.prop('value', val);\n }\n\n /**\n * Returns the color string from the input value.\n * If there is no input the return value is false.\n *\n * @returns {String|boolean}\n */\n getValue() {\n if (!this.hasInput()) {\n return false;\n }\n\n return this.input.val();\n }\n\n /**\n * If the input element is present, it updates the value with the current color object color string.\n * If the value is changed, this method fires a \"change\" event on the input element.\n *\n * @param {String} val\n *\n * @fires Colorpicker#change\n */\n setValue(val) {\n if (!this.hasInput()) {\n return;\n }\n\n let inputVal = this.input.prop('value');\n\n val = val ? val : '';\n\n if (val === (inputVal ? inputVal : '')) {\n // No need to set value or trigger any event if nothing changed\n return;\n }\n\n this.input.prop('value', val);\n\n /**\n * (Input) Triggered on the input element when a new color is selected.\n *\n * @event Colorpicker#change\n */\n this.input.trigger({\n type: 'change',\n colorpicker: this.colorpicker,\n color: this.colorpicker.color,\n value: val\n });\n }\n\n /**\n * Returns the formatted color string, with the formatting options applied\n * (e.g. useHashPrefix)\n *\n * @param {String|null} val\n *\n * @returns {String}\n */\n getFormattedColor(val = null) {\n val = val ? val : this.colorpicker.colorHandler.getColorString();\n\n if (!val) {\n return '';\n }\n\n val = this.colorpicker.colorHandler.resolveColorDelegate(val, false);\n\n if (this.colorpicker.options.useHashPrefix === false) {\n val = val.replace(/^#/g, '');\n }\n\n return val;\n }\n\n /**\n * Returns true if the widget has an associated input element, false otherwise\n * @returns {boolean}\n */\n hasInput() {\n return (this.input !== false);\n }\n\n /**\n * Returns true if the input exists and is disabled\n * @returns {boolean}\n */\n isEnabled() {\n return this.hasInput() && !this.isDisabled();\n }\n\n /**\n * Returns true if the input exists and is disabled\n * @returns {boolean}\n */\n isDisabled() {\n return this.hasInput() && (this.input.prop('disabled') === true);\n }\n\n /**\n * Disables the input if any\n *\n * @fires Colorpicker#colorpickerDisable\n * @returns {boolean}\n */\n disable() {\n if (this.hasInput()) {\n this.input.prop('disabled', true);\n }\n }\n\n /**\n * Enables the input if any\n *\n * @fires Colorpicker#colorpickerEnable\n * @returns {boolean}\n */\n enable() {\n if (this.hasInput()) {\n this.input.prop('disabled', false);\n }\n }\n\n /**\n * Calls setValue with the current internal color value\n *\n * @fires Colorpicker#change\n */\n update() {\n if (!this.hasInput()) {\n return;\n }\n\n if (\n (this.colorpicker.options.autoInputFallback === false) &&\n this.colorpicker.colorHandler.isInvalidColor()\n ) {\n // prevent update if color is invalid, autoInputFallback is disabled and the last event is keyup.\n return;\n }\n\n this.setValue(this.getFormattedColor());\n }\n\n /**\n * Function triggered when the input has changed, so the colorpicker gets updated.\n *\n * @private\n * @param {Event} e\n * @returns {boolean}\n */\n onchange(e) {\n this.colorpicker.lastEvent.alias = 'input.change';\n this.colorpicker.lastEvent.e = e;\n\n let val = this.getValue();\n\n if (val !== e.value) {\n this.colorpicker.setValue(val);\n }\n }\n\n /**\n * Function triggered after a keyboard key has been released.\n *\n * @private\n * @param {Event} e\n * @returns {boolean}\n */\n onkeyup(e) {\n this.colorpicker.lastEvent.alias = 'input.keyup';\n this.colorpicker.lastEvent.e = e;\n\n let val = this.getValue();\n\n if (val !== e.value) {\n this.colorpicker.setValue(val);\n }\n }\n}\n\nexport default InputHandler;\n","'use strict';\n\nvar colorString = require('color-string');\nvar convert = require('color-convert');\n\nvar _slice = [].slice;\n\nvar skippedModels = [\n\t// to be honest, I don't really feel like keyword belongs in color convert, but eh.\n\t'keyword',\n\n\t// gray conflicts with some method names, and has its own method defined.\n\t'gray',\n\n\t// shouldn't really be in color-convert either...\n\t'hex'\n];\n\nvar hashedModelKeys = {};\nObject.keys(convert).forEach(function (model) {\n\thashedModelKeys[_slice.call(convert[model].labels).sort().join('')] = model;\n});\n\nvar limiters = {};\n\nfunction Color(obj, model) {\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(obj, model);\n\t}\n\n\tif (model && model in skippedModels) {\n\t\tmodel = null;\n\t}\n\n\tif (model && !(model in convert)) {\n\t\tthrow new Error('Unknown model: ' + model);\n\t}\n\n\tvar i;\n\tvar channels;\n\n\tif (obj == null) { // eslint-disable-line no-eq-null,eqeqeq\n\t\tthis.model = 'rgb';\n\t\tthis.color = [0, 0, 0];\n\t\tthis.valpha = 1;\n\t} else if (obj instanceof Color) {\n\t\tthis.model = obj.model;\n\t\tthis.color = obj.color.slice();\n\t\tthis.valpha = obj.valpha;\n\t} else if (typeof obj === 'string') {\n\t\tvar result = colorString.get(obj);\n\t\tif (result === null) {\n\t\t\tthrow new Error('Unable to parse color from string: ' + obj);\n\t\t}\n\n\t\tthis.model = result.model;\n\t\tchannels = convert[this.model].channels;\n\t\tthis.color = result.value.slice(0, channels);\n\t\tthis.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;\n\t} else if (obj.length) {\n\t\tthis.model = model || 'rgb';\n\t\tchannels = convert[this.model].channels;\n\t\tvar newArr = _slice.call(obj, 0, channels);\n\t\tthis.color = zeroArray(newArr, channels);\n\t\tthis.valpha = typeof obj[channels] === 'number' ? obj[channels] : 1;\n\t} else if (typeof obj === 'number') {\n\t\t// this is always RGB - can be converted later on.\n\t\tobj &= 0xFFFFFF;\n\t\tthis.model = 'rgb';\n\t\tthis.color = [\n\t\t\t(obj >> 16) & 0xFF,\n\t\t\t(obj >> 8) & 0xFF,\n\t\t\tobj & 0xFF\n\t\t];\n\t\tthis.valpha = 1;\n\t} else {\n\t\tthis.valpha = 1;\n\n\t\tvar keys = Object.keys(obj);\n\t\tif ('alpha' in obj) {\n\t\t\tkeys.splice(keys.indexOf('alpha'), 1);\n\t\t\tthis.valpha = typeof obj.alpha === 'number' ? obj.alpha : 0;\n\t\t}\n\n\t\tvar hashedKeys = keys.sort().join('');\n\t\tif (!(hashedKeys in hashedModelKeys)) {\n\t\t\tthrow new Error('Unable to parse color from object: ' + JSON.stringify(obj));\n\t\t}\n\n\t\tthis.model = hashedModelKeys[hashedKeys];\n\n\t\tvar labels = convert[this.model].labels;\n\t\tvar color = [];\n\t\tfor (i = 0; i < labels.length; i++) {\n\t\t\tcolor.push(obj[labels[i]]);\n\t\t}\n\n\t\tthis.color = zeroArray(color);\n\t}\n\n\t// perform limitations (clamping, etc.)\n\tif (limiters[this.model]) {\n\t\tchannels = convert[this.model].channels;\n\t\tfor (i = 0; i < channels; i++) {\n\t\t\tvar limit = limiters[this.model][i];\n\t\t\tif (limit) {\n\t\t\t\tthis.color[i] = limit(this.color[i]);\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.valpha = Math.max(0, Math.min(1, this.valpha));\n\n\tif (Object.freeze) {\n\t\tObject.freeze(this);\n\t}\n}\n\nColor.prototype = {\n\ttoString: function () {\n\t\treturn this.string();\n\t},\n\n\ttoJSON: function () {\n\t\treturn this[this.model]();\n\t},\n\n\tstring: function (places) {\n\t\tvar self = this.model in colorString.to ? this : this.rgb();\n\t\tself = self.round(typeof places === 'number' ? places : 1);\n\t\tvar args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);\n\t\treturn colorString.to[self.model](args);\n\t},\n\n\tpercentString: function (places) {\n\t\tvar self = this.rgb().round(typeof places === 'number' ? places : 1);\n\t\tvar args = self.valpha === 1 ? self.color : self.color.concat(this.valpha);\n\t\treturn colorString.to.rgb.percent(args);\n\t},\n\n\tarray: function () {\n\t\treturn this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha);\n\t},\n\n\tobject: function () {\n\t\tvar result = {};\n\t\tvar channels = convert[this.model].channels;\n\t\tvar labels = convert[this.model].labels;\n\n\t\tfor (var i = 0; i < channels; i++) {\n\t\t\tresult[labels[i]] = this.color[i];\n\t\t}\n\n\t\tif (this.valpha !== 1) {\n\t\t\tresult.alpha = this.valpha;\n\t\t}\n\n\t\treturn result;\n\t},\n\n\tunitArray: function () {\n\t\tvar rgb = this.rgb().color;\n\t\trgb[0] /= 255;\n\t\trgb[1] /= 255;\n\t\trgb[2] /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.push(this.valpha);\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tunitObject: function () {\n\t\tvar rgb = this.rgb().object();\n\t\trgb.r /= 255;\n\t\trgb.g /= 255;\n\t\trgb.b /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.alpha = this.valpha;\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tround: function (places) {\n\t\tplaces = Math.max(places || 0, 0);\n\t\treturn new Color(this.color.map(roundToPlace(places)).concat(this.valpha), this.model);\n\t},\n\n\talpha: function (val) {\n\t\tif (arguments.length) {\n\t\t\treturn new Color(this.color.concat(Math.max(0, Math.min(1, val))), this.model);\n\t\t}\n\n\t\treturn this.valpha;\n\t},\n\n\t// rgb\n\tred: getset('rgb', 0, maxfn(255)),\n\tgreen: getset('rgb', 1, maxfn(255)),\n\tblue: getset('rgb', 2, maxfn(255)),\n\n\thue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, function (val) { return ((val % 360) + 360) % 360; }), // eslint-disable-line brace-style\n\n\tsaturationl: getset('hsl', 1, maxfn(100)),\n\tlightness: getset('hsl', 2, maxfn(100)),\n\n\tsaturationv: getset('hsv', 1, maxfn(100)),\n\tvalue: getset('hsv', 2, maxfn(100)),\n\n\tchroma: getset('hcg', 1, maxfn(100)),\n\tgray: getset('hcg', 2, maxfn(100)),\n\n\twhite: getset('hwb', 1, maxfn(100)),\n\twblack: getset('hwb', 2, maxfn(100)),\n\n\tcyan: getset('cmyk', 0, maxfn(100)),\n\tmagenta: getset('cmyk', 1, maxfn(100)),\n\tyellow: getset('cmyk', 2, maxfn(100)),\n\tblack: getset('cmyk', 3, maxfn(100)),\n\n\tx: getset('xyz', 0, maxfn(100)),\n\ty: getset('xyz', 1, maxfn(100)),\n\tz: getset('xyz', 2, maxfn(100)),\n\n\tl: getset('lab', 0, maxfn(100)),\n\ta: getset('lab', 1),\n\tb: getset('lab', 2),\n\n\tkeyword: function (val) {\n\t\tif (arguments.length) {\n\t\t\treturn new Color(val);\n\t\t}\n\n\t\treturn convert[this.model].keyword(this.color);\n\t},\n\n\thex: function (val) {\n\t\tif (arguments.length) {\n\t\t\treturn new Color(val);\n\t\t}\n\n\t\treturn colorString.to.hex(this.rgb().round().color);\n\t},\n\n\trgbNumber: function () {\n\t\tvar rgb = this.rgb().color;\n\t\treturn ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);\n\t},\n\n\tluminosity: function () {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tvar rgb = this.rgb().color;\n\n\t\tvar lum = [];\n\t\tfor (var i = 0; i < rgb.length; i++) {\n\t\t\tvar chan = rgb[i] / 255;\n\t\t\tlum[i] = (chan <= 0.03928) ? chan / 12.92 : Math.pow(((chan + 0.055) / 1.055), 2.4);\n\t\t}\n\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast: function (color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tvar lum1 = this.luminosity();\n\t\tvar lum2 = color2.luminosity();\n\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel: function (color2) {\n\t\tvar contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7.1) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tisDark: function () {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tvar rgb = this.rgb().color;\n\t\tvar yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1000;\n\t\treturn yiq < 128;\n\t},\n\n\tisLight: function () {\n\t\treturn !this.isDark();\n\t},\n\n\tnegate: function () {\n\t\tvar rgb = this.rgb();\n\t\tfor (var i = 0; i < 3; i++) {\n\t\t\trgb.color[i] = 255 - rgb.color[i];\n\t\t}\n\t\treturn rgb;\n\t},\n\n\tlighten: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[2] += hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdarken: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[2] -= hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tsaturate: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[1] += hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdesaturate: function (ratio) {\n\t\tvar hsl = this.hsl();\n\t\thsl.color[1] -= hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\twhiten: function (ratio) {\n\t\tvar hwb = this.hwb();\n\t\thwb.color[1] += hwb.color[1] * ratio;\n\t\treturn hwb;\n\t},\n\n\tblacken: function (ratio) {\n\t\tvar hwb = this.hwb();\n\t\thwb.color[2] += hwb.color[2] * ratio;\n\t\treturn hwb;\n\t},\n\n\tgrayscale: function () {\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale\n\t\tvar rgb = this.rgb().color;\n\t\tvar val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\treturn Color.rgb(val, val, val);\n\t},\n\n\tfade: function (ratio) {\n\t\treturn this.alpha(this.valpha - (this.valpha * ratio));\n\t},\n\n\topaquer: function (ratio) {\n\t\treturn this.alpha(this.valpha + (this.valpha * ratio));\n\t},\n\n\trotate: function (degrees) {\n\t\tvar hsl = this.hsl();\n\t\tvar hue = hsl.color[0];\n\t\thue = (hue + degrees) % 360;\n\t\thue = hue < 0 ? 360 + hue : hue;\n\t\thsl.color[0] = hue;\n\t\treturn hsl;\n\t},\n\n\tmix: function (mixinColor, weight) {\n\t\t// ported from sass implementation in C\n\t\t// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t\tif (!mixinColor || !mixinColor.rgb) {\n\t\t\tthrow new Error('Argument to \"mix\" was not a Color instance, but rather an instance of ' + typeof mixinColor);\n\t\t}\n\t\tvar color1 = mixinColor.rgb();\n\t\tvar color2 = this.rgb();\n\t\tvar p = weight === undefined ? 0.5 : weight;\n\n\t\tvar w = 2 * p - 1;\n\t\tvar a = color1.alpha() - color2.alpha();\n\n\t\tvar w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2.0;\n\t\tvar w2 = 1 - w1;\n\n\t\treturn Color.rgb(\n\t\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\t\tw1 * color1.blue() + w2 * color2.blue(),\n\t\t\t\tcolor1.alpha() * p + color2.alpha() * (1 - p));\n\t}\n};\n\n// model conversion methods and static constructors\nObject.keys(convert).forEach(function (model) {\n\tif (skippedModels.indexOf(model) !== -1) {\n\t\treturn;\n\t}\n\n\tvar channels = convert[model].channels;\n\n\t// conversion methods\n\tColor.prototype[model] = function () {\n\t\tif (this.model === model) {\n\t\t\treturn new Color(this);\n\t\t}\n\n\t\tif (arguments.length) {\n\t\t\treturn new Color(arguments, model);\n\t\t}\n\n\t\tvar newAlpha = typeof arguments[channels] === 'number' ? channels : this.valpha;\n\t\treturn new Color(assertArray(convert[this.model][model].raw(this.color)).concat(newAlpha), model);\n\t};\n\n\t// 'static' construction methods\n\tColor[model] = function (color) {\n\t\tif (typeof color === 'number') {\n\t\t\tcolor = zeroArray(_slice.call(arguments), channels);\n\t\t}\n\t\treturn new Color(color, model);\n\t};\n});\n\nfunction roundTo(num, places) {\n\treturn Number(num.toFixed(places));\n}\n\nfunction roundToPlace(places) {\n\treturn function (num) {\n\t\treturn roundTo(num, places);\n\t};\n}\n\nfunction getset(model, channel, modifier) {\n\tmodel = Array.isArray(model) ? model : [model];\n\n\tmodel.forEach(function (m) {\n\t\t(limiters[m] || (limiters[m] = []))[channel] = modifier;\n\t});\n\n\tmodel = model[0];\n\n\treturn function (val) {\n\t\tvar result;\n\n\t\tif (arguments.length) {\n\t\t\tif (modifier) {\n\t\t\t\tval = modifier(val);\n\t\t\t}\n\n\t\t\tresult = this[model]();\n\t\t\tresult.color[channel] = val;\n\t\t\treturn result;\n\t\t}\n\n\t\tresult = this[model]().color[channel];\n\t\tif (modifier) {\n\t\t\tresult = modifier(result);\n\t\t}\n\n\t\treturn result;\n\t};\n}\n\nfunction maxfn(max) {\n\treturn function (v) {\n\t\treturn Math.max(0, Math.min(max, v));\n\t};\n}\n\nfunction assertArray(val) {\n\treturn Array.isArray(val) ? val : [val];\n}\n\nfunction zeroArray(arr, length) {\n\tfor (var i = 0; i < length; i++) {\n\t\tif (typeof arr[i] !== 'number') {\n\t\t\tarr[i] = 0;\n\t\t}\n\t}\n\n\treturn arr;\n}\n\nmodule.exports = Color;\n","/* MIT license */\nvar colorNames = require('color-name');\nvar swizzle = require('simple-swizzle');\n\nvar reverseNames = {};\n\n// create a list of reverse color names\nfor (var name in colorNames) {\n\tif (colorNames.hasOwnProperty(name)) {\n\t\treverseNames[colorNames[name]] = name;\n\t}\n}\n\nvar cs = module.exports = {\n\tto: {},\n\tget: {}\n};\n\ncs.get = function (string) {\n\tvar prefix = string.substring(0, 3).toLowerCase();\n\tvar val;\n\tvar model;\n\tswitch (prefix) {\n\t\tcase 'hsl':\n\t\t\tval = cs.get.hsl(string);\n\t\t\tmodel = 'hsl';\n\t\t\tbreak;\n\t\tcase 'hwb':\n\t\t\tval = cs.get.hwb(string);\n\t\t\tmodel = 'hwb';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tval = cs.get.rgb(string);\n\t\t\tmodel = 'rgb';\n\t\t\tbreak;\n\t}\n\n\tif (!val) {\n\t\treturn null;\n\t}\n\n\treturn {model: model, value: val};\n};\n\ncs.get.rgb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar abbr = /^#([a-f0-9]{3,4})$/i;\n\tvar hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;\n\tvar rgba = /^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar per = /^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar keyword = /(\\D+)/;\n\n\tvar rgb = [0, 0, 0, 1];\n\tvar match;\n\tvar i;\n\tvar hexAlpha;\n\n\tif (match = string.match(hex)) {\n\t\thexAlpha = match[2];\n\t\tmatch = match[1];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\t// https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19\n\t\t\tvar i2 = i * 2;\n\t\t\trgb[i] = parseInt(match.slice(i2, i2 + 2), 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = Math.round((parseInt(hexAlpha, 16) / 255) * 100) / 100;\n\t\t}\n\t} else if (match = string.match(abbr)) {\n\t\tmatch = match[1];\n\t\thexAlpha = match[3];\n\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i] + match[i], 16);\n\t\t}\n\n\t\tif (hexAlpha) {\n\t\t\trgb[3] = Math.round((parseInt(hexAlpha + hexAlpha, 16) / 255) * 100) / 100;\n\t\t}\n\t} else if (match = string.match(rgba)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = parseInt(match[i + 1], 0);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\trgb[3] = parseFloat(match[4]);\n\t\t}\n\t} else if (match = string.match(per)) {\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\trgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);\n\t\t}\n\n\t\tif (match[4]) {\n\t\t\trgb[3] = parseFloat(match[4]);\n\t\t}\n\t} else if (match = string.match(keyword)) {\n\t\tif (match[1] === 'transparent') {\n\t\t\treturn [0, 0, 0, 0];\n\t\t}\n\n\t\trgb = colorNames[match[1]];\n\n\t\tif (!rgb) {\n\t\t\treturn null;\n\t\t}\n\n\t\trgb[3] = 1;\n\n\t\treturn rgb;\n\t} else {\n\t\treturn null;\n\t}\n\n\tfor (i = 0; i < 3; i++) {\n\t\trgb[i] = clamp(rgb[i], 0, 255);\n\t}\n\trgb[3] = clamp(rgb[3], 0, 1);\n\n\treturn rgb;\n};\n\ncs.get.hsl = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hsl = /^hsla?\\(\\s*([+-]?(?:\\d*\\.)?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar match = string.match(hsl);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = (parseFloat(match[1]) + 360) % 360;\n\t\tvar s = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar l = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\n\t\treturn [h, s, l, a];\n\t}\n\n\treturn null;\n};\n\ncs.get.hwb = function (string) {\n\tif (!string) {\n\t\treturn null;\n\t}\n\n\tvar hwb = /^hwb\\(\\s*([+-]?\\d*[\\.]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/;\n\tvar match = string.match(hwb);\n\n\tif (match) {\n\t\tvar alpha = parseFloat(match[4]);\n\t\tvar h = ((parseFloat(match[1]) % 360) + 360) % 360;\n\t\tvar w = clamp(parseFloat(match[2]), 0, 100);\n\t\tvar b = clamp(parseFloat(match[3]), 0, 100);\n\t\tvar a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);\n\t\treturn [h, w, b, a];\n\t}\n\n\treturn null;\n};\n\ncs.to.hex = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn (\n\t\t'#' +\n\t\thexDouble(rgba[0]) +\n\t\thexDouble(rgba[1]) +\n\t\thexDouble(rgba[2]) +\n\t\t(rgba[3] < 1\n\t\t\t? (hexDouble(Math.round(rgba[3] * 255)))\n\t\t\t: '')\n\t);\n};\n\ncs.to.rgb = function () {\n\tvar rgba = swizzle(arguments);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'\n\t\t: 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';\n};\n\ncs.to.rgb.percent = function () {\n\tvar rgba = swizzle(arguments);\n\n\tvar r = Math.round(rgba[0] / 255 * 100);\n\tvar g = Math.round(rgba[1] / 255 * 100);\n\tvar b = Math.round(rgba[2] / 255 * 100);\n\n\treturn rgba.length < 4 || rgba[3] === 1\n\t\t? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'\n\t\t: 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';\n};\n\ncs.to.hsl = function () {\n\tvar hsla = swizzle(arguments);\n\treturn hsla.length < 4 || hsla[3] === 1\n\t\t? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'\n\t\t: 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';\n};\n\n// hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax\n// (hwb have alpha optional & 1 is default value)\ncs.to.hwb = function () {\n\tvar hwba = swizzle(arguments);\n\n\tvar a = '';\n\tif (hwba.length >= 4 && hwba[3] !== 1) {\n\t\ta = ', ' + hwba[3];\n\t}\n\n\treturn 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';\n};\n\ncs.to.keyword = function (rgb) {\n\treturn reverseNames[rgb.slice(0, 3)];\n};\n\n// helpers\nfunction clamp(num, min, max) {\n\treturn Math.min(Math.max(min, num), max);\n}\n\nfunction hexDouble(num) {\n\tvar str = num.toString(16).toUpperCase();\n\treturn (str.length < 2) ? '0' + str : str;\n}\n","'use strict';\n\nvar isArrayish = require('is-arrayish');\n\nvar concat = Array.prototype.concat;\nvar slice = Array.prototype.slice;\n\nvar swizzle = module.exports = function swizzle(args) {\n\tvar results = [];\n\n\tfor (var i = 0, len = args.length; i < len; i++) {\n\t\tvar arg = args[i];\n\n\t\tif (isArrayish(arg)) {\n\t\t\t// http://jsperf.com/javascript-array-concat-vs-push/98\n\t\t\tresults = concat.call(results, slice.call(arg));\n\t\t} else {\n\t\t\tresults.push(arg);\n\t\t}\n\t}\n\n\treturn results;\n};\n\nswizzle.wrap = function (fn) {\n\treturn function () {\n\t\treturn fn(swizzle(arguments));\n\t};\n};\n","'use strict';\n\nmodule.exports = function isArrayish(obj) {\n\tif (!obj) {\n\t\treturn false;\n\t}\n\n\treturn obj instanceof Array || Array.isArray(obj) ||\n\t\t(obj.length >= 0 && obj.splice instanceof Function);\n};\n","var conversions = require('./conversions');\nvar route = require('./route');\n\nvar convert = {};\n\nvar models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tvar wrappedFn = function (args) {\n\t\tif (args === undefined || args === null) {\n\t\t\treturn args;\n\t\t}\n\n\t\tif (arguments.length > 1) {\n\t\t\targs = Array.prototype.slice.call(arguments);\n\t\t}\n\n\t\tvar result = fn(args);\n\n\t\t// we're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (var len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(function (fromModel) {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tvar routes = route(fromModel);\n\tvar routeModels = Object.keys(routes);\n\n\trouteModels.forEach(function (toModel) {\n\t\tvar fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var conversions = require('./conversions');\n\n/*\n\tthis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tvar graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tvar models = Object.keys(conversions);\n\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tvar graph = buildGraph();\n\tvar queue = [fromModel]; // unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tvar current = queue.pop();\n\t\tvar adjacents = Object.keys(conversions[current]);\n\n\t\tfor (var len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tvar adjacent = adjacents[i];\n\t\t\tvar node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tvar path = [graph[toModel].parent, toModel];\n\tvar fn = conversions[graph[toModel].parent][toModel];\n\n\tvar cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tvar graph = deriveBFS(fromModel);\n\tvar conversion = {};\n\n\tvar models = Object.keys(graph);\n\tfor (var len = models.length, i = 0; i < len; i++) {\n\t\tvar toModel = models[i];\n\t\tvar node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// no possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","'use strict';\n\nimport $ from 'jquery';\nimport ColorItem from './ColorItem';\n\n/**\n * Handles everything related to the colorpicker color\n * @ignore\n */\nclass ColorHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n }\n\n /**\n * @returns {*|String|ColorItem}\n */\n get fallback() {\n return this.colorpicker.options.fallbackColor ?\n this.colorpicker.options.fallbackColor : (this.hasColor() ? this.color : null);\n }\n\n /**\n * @returns {String|null}\n */\n get format() {\n if (this.colorpicker.options.format) {\n return this.colorpicker.options.format;\n }\n\n if (this.hasColor() && this.color.hasTransparency() && this.color.format.match(/^hex/)) {\n return this.isAlphaEnabled() ? 'rgba' : 'hex';\n }\n\n if (this.hasColor()) {\n return this.color.format;\n }\n\n return 'rgb';\n }\n\n /**\n * Internal color getter\n *\n * @type {ColorItem|null}\n */\n get color() {\n return this.colorpicker.element.data('color');\n }\n\n /**\n * Internal color setter\n *\n * @ignore\n * @param {ColorItem|null} value\n */\n set color(value) {\n this.colorpicker.element.data('color', value);\n\n if ((value instanceof ColorItem) && (this.colorpicker.options.format === 'auto')) {\n // If format is 'auto', use the first parsed one from now on\n this.colorpicker.options.format = this.color.format;\n }\n }\n\n bind() {\n // if the color option is set\n if (this.colorpicker.options.color) {\n this.color = this.createColor(this.colorpicker.options.color);\n return;\n }\n\n // if element[color] is empty and the input has a value\n if (!this.color && !!this.colorpicker.inputHandler.getValue()) {\n this.color = this.createColor(\n this.colorpicker.inputHandler.getValue(), this.colorpicker.options.autoInputFallback\n );\n }\n }\n\n unbind() {\n this.colorpicker.element.removeData('color');\n }\n\n /**\n * Returns the color string from the input value or the 'data-color' attribute of the input or element.\n * If empty, it returns the defaultValue parameter.\n *\n * @returns {String|*}\n */\n getColorString() {\n if (!this.hasColor()) {\n return '';\n }\n\n return this.color.string(this.format);\n }\n\n /**\n * Sets the color value\n *\n * @param {String|ColorItem} val\n */\n setColorString(val) {\n let color = val ? this.createColor(val) : null;\n\n this.color = color ? color : null;\n }\n\n /**\n * Creates a new color using the widget instance options (fallbackColor, format).\n *\n * @fires Colorpicker#colorpickerInvalid\n * @param {*} val\n * @param {boolean} fallbackOnInvalid\n * @returns {ColorItem}\n */\n createColor(val, fallbackOnInvalid = true) {\n let color = new ColorItem(this.resolveColorDelegate(val), this.format);\n\n if (!color.isValid()) {\n if (fallbackOnInvalid) {\n color = this.getFallbackColor();\n }\n\n /**\n * (Colorpicker) Fired when the color is invalid and the fallback color is going to be used.\n *\n * @event Colorpicker#colorpickerInvalid\n */\n this.colorpicker.trigger('colorpickerInvalid', color, val);\n }\n\n if (!this.isAlphaEnabled()) {\n // Alpha is disabled\n color.alpha = 1;\n }\n\n return color;\n }\n\n getFallbackColor() {\n if (this.fallback && (this.fallback === this.color)) {\n return this.color;\n }\n\n let fallback = this.resolveColorDelegate(this.fallback);\n\n let color = new ColorItem(fallback, this.format);\n\n if (!color.isValid()) {\n console.warn('The fallback color is invalid. Falling back to the previous color or black if any.');\n return this.color ? this.color : new ColorItem('#000000', this.format);\n }\n\n return color;\n }\n\n /**\n * @returns {ColorItem}\n */\n assureColor() {\n if (!this.hasColor()) {\n this.color = this.getFallbackColor();\n }\n\n return this.color;\n }\n\n /**\n * Delegates the color resolution to the colorpicker extensions.\n *\n * @param {String|*} color\n * @param {boolean} realColor if true, the color should resolve into a real (not named) color code\n * @returns {ColorItem|String|*|null}\n */\n resolveColorDelegate(color, realColor = true) {\n let extResolvedColor = false;\n\n $.each(this.colorpicker.extensions, function (name, ext) {\n if (extResolvedColor !== false) {\n // skip if resolved\n return;\n }\n extResolvedColor = ext.resolveColor(color, realColor);\n });\n\n return extResolvedColor ? extResolvedColor : color;\n }\n\n /**\n * Checks if there is a color object, that it is valid and it is not a fallback\n * @returns {boolean}\n */\n isInvalidColor() {\n return !this.hasColor() || !this.color.isValid();\n }\n\n /**\n * Returns true if the useAlpha option is exactly true, false otherwise\n * @returns {boolean}\n */\n isAlphaEnabled() {\n return (this.colorpicker.options.useAlpha !== false);\n }\n\n /**\n * Returns true if the current color object is an instance of Color, false otherwise.\n * @returns {boolean}\n */\n hasColor() {\n return this.color instanceof ColorItem;\n }\n}\n\nexport default ColorHandler;\n","'use strict';\n\nimport $ from 'jquery';\n\n/**\n * Handles everything related to the colorpicker UI\n * @ignore\n */\nclass PickerHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery}\n */\n this.picker = null;\n }\n\n get options() {\n return this.colorpicker.options;\n }\n\n get color() {\n return this.colorpicker.colorHandler.color;\n }\n\n bind() {\n /**\n * @type {jQuery|HTMLElement}\n */\n let picker = this.picker = $(this.options.template);\n\n if (this.options.customClass) {\n picker.addClass(this.options.customClass);\n }\n\n if (this.options.horizontal) {\n picker.addClass('colorpicker-horizontal');\n }\n\n if (this._supportsAlphaBar()) {\n this.options.useAlpha = true;\n picker.addClass('colorpicker-with-alpha');\n } else {\n this.options.useAlpha = false;\n }\n }\n\n attach() {\n // Inject the colorpicker element into the DOM\n let pickerParent = this.colorpicker.container ? this.colorpicker.container : null;\n\n if (pickerParent) {\n this.picker.appendTo(pickerParent);\n }\n }\n\n unbind() {\n this.picker.remove();\n }\n\n _supportsAlphaBar() {\n return (\n (this.options.useAlpha || (this.colorpicker.colorHandler.hasColor() && this.color.hasTransparency())) &&\n (this.options.useAlpha !== false) &&\n (!this.options.format || (this.options.format && !this.options.format.match(/^hex([36])?$/i)))\n );\n }\n\n /**\n * Changes the color adjustment bars using the current color object information.\n */\n update() {\n if (!this.colorpicker.colorHandler.hasColor()) {\n return;\n }\n\n let vertical = (this.options.horizontal !== true),\n slider = vertical ? this.options.sliders : this.options.slidersHorz;\n\n let saturationGuide = this.picker.find('.colorpicker-saturation .colorpicker-guide'),\n hueGuide = this.picker.find('.colorpicker-hue .colorpicker-guide'),\n alphaGuide = this.picker.find('.colorpicker-alpha .colorpicker-guide');\n\n let hsva = this.color.toHsvaRatio();\n\n // Set guides position\n if (hueGuide.length) {\n hueGuide.css(vertical ? 'top' : 'left', (vertical ? slider.hue.maxTop : slider.hue.maxLeft) * (1 - hsva.h));\n }\n if (alphaGuide.length) {\n alphaGuide.css(vertical ? 'top' : 'left', (vertical ? slider.alpha.maxTop : slider.alpha.maxLeft) * (1 - hsva.a));\n }\n if (saturationGuide.length) {\n saturationGuide.css({\n 'top': slider.saturation.maxTop - hsva.v * slider.saturation.maxTop,\n 'left': hsva.s * slider.saturation.maxLeft\n });\n }\n\n // Set saturation hue background\n this.picker.find('.colorpicker-saturation')\n .css('backgroundColor', this.color.getCloneHueOnly().toHexString()); // we only need hue\n\n // Set alpha color gradient\n let hexColor = this.color.toHexString();\n\n let alphaBg = '';\n\n if (this.options.horizontal) {\n alphaBg = `linear-gradient(to right, ${hexColor} 0%, transparent 100%)`;\n } else {\n alphaBg = `linear-gradient(to bottom, ${hexColor} 0%, transparent 100%)`;\n }\n\n this.picker.find('.colorpicker-alpha-color').css('background', alphaBg);\n }\n}\n\nexport default PickerHandler;\n","'use strict';\n\n/**\n * Handles everything related to the colorpicker addon\n * @ignore\n */\nclass AddonHandler {\n /**\n * @param {Colorpicker} colorpicker\n */\n constructor(colorpicker) {\n /**\n * @type {Colorpicker}\n */\n this.colorpicker = colorpicker;\n /**\n * @type {jQuery}\n */\n this.addon = null;\n }\n\n hasAddon() {\n return !!this.addon;\n }\n\n bind() {\n /**\n * @type {*|jQuery}\n */\n this.addon = this.colorpicker.options.addon ?\n this.colorpicker.element.find(this.colorpicker.options.addon) : null;\n\n if (this.addon && (this.addon.length === 0)) {\n // not found\n this.addon = null;\n }\n }\n\n unbind() {\n if (this.hasAddon()) {\n this.addon.off('.colorpicker');\n }\n }\n\n /**\n * If the addon element is present, its background color is updated\n */\n update() {\n if (!this.colorpicker.colorHandler.hasColor() || !this.hasAddon()) {\n return;\n }\n\n let colorStr = this.colorpicker.colorHandler.getColorString();\n\n let styles = {'background': colorStr};\n\n let icn = this.addon.find('i').eq(0);\n\n if (icn.length > 0) {\n icn.css(styles);\n } else {\n this.addon.css(styles);\n }\n }\n}\n\nexport default AddonHandler;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/bootstrap-slider/bootstrap-slider.js b/plugins/bootstrap-slider/bootstrap-slider.js deleted file mode 100644 index 5d02d348..00000000 --- a/plugins/bootstrap-slider/bootstrap-slider.js +++ /dev/null @@ -1,2061 +0,0 @@ -/*! ======================================================= - VERSION 10.6.2 -========================================================= */ -"use strict"; - -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -/*! ========================================================= - * bootstrap-slider.js - * - * Maintainers: - * Kyle Kemp - * - Twitter: @seiyria - * - Github: seiyria - * Rohit Kalkur - * - Twitter: @Rovolutionary - * - Github: rovolution - * - * ========================================================= - * - * bootstrap-slider is released under the MIT License - * Copyright (c) 2019 Kyle Kemp, Rohit Kalkur, and contributors - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, - * copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following - * conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - * - * ========================================================= */ - -/** - * Bridget makes jQuery widgets - * v1.0.1 - * MIT license - */ -var windowIsDefined = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object"; - -(function (factory) { - if (typeof define === "function" && define.amd) { - define(["jquery"], factory); - } else if ((typeof module === "undefined" ? "undefined" : _typeof(module)) === "object" && module.exports) { - var jQuery; - try { - jQuery = require("jquery"); - } catch (err) { - jQuery = null; - } - module.exports = factory(jQuery); - } else if (window) { - window.Slider = factory(window.jQuery); - } -})(function ($) { - // Constants - var NAMESPACE_MAIN = 'slider'; - var NAMESPACE_ALTERNATE = 'bootstrapSlider'; - - // Polyfill console methods - if (windowIsDefined && !window.console) { - window.console = {}; - } - if (windowIsDefined && !window.console.log) { - window.console.log = function () {}; - } - if (windowIsDefined && !window.console.warn) { - window.console.warn = function () {}; - } - - // Reference to Slider constructor - var Slider; - - (function ($) { - - 'use strict'; - - // -------------------------- utils -------------------------- // - - var slice = Array.prototype.slice; - - function noop() {} - - // -------------------------- definition -------------------------- // - - function defineBridget($) { - - // bail if no jQuery - if (!$) { - return; - } - - // -------------------------- addOptionMethod -------------------------- // - - /** - * adds option method -> $().plugin('option', {...}) - * @param {Function} PluginClass - constructor class - */ - function addOptionMethod(PluginClass) { - // don't overwrite original option method - if (PluginClass.prototype.option) { - return; - } - - // option setter - PluginClass.prototype.option = function (opts) { - // bail out if not an object - if (!$.isPlainObject(opts)) { - return; - } - this.options = $.extend(true, this.options, opts); - }; - } - - // -------------------------- plugin bridge -------------------------- // - - // helper function for logging errors - // $.error breaks jQuery chaining - var logError = typeof console === 'undefined' ? noop : function (message) { - console.error(message); - }; - - /** - * jQuery plugin bridge, access methods like $elem.plugin('method') - * @param {String} namespace - plugin name - * @param {Function} PluginClass - constructor class - */ - function bridge(namespace, PluginClass) { - // add to jQuery fn namespace - $.fn[namespace] = function (options) { - if (typeof options === 'string') { - // call plugin method when first argument is a string - // get arguments for method - var args = slice.call(arguments, 1); - - for (var i = 0, len = this.length; i < len; i++) { - var elem = this[i]; - var instance = $.data(elem, namespace); - if (!instance) { - logError("cannot call methods on " + namespace + " prior to initialization; " + "attempted to call '" + options + "'"); - continue; - } - if (!$.isFunction(instance[options]) || options.charAt(0) === '_') { - logError("no such method '" + options + "' for " + namespace + " instance"); - continue; - } - - // trigger method with arguments - var returnValue = instance[options].apply(instance, args); - - // break look and return first value if provided - if (returnValue !== undefined && returnValue !== instance) { - return returnValue; - } - } - // return this if no return value - return this; - } else { - var objects = this.map(function () { - var instance = $.data(this, namespace); - if (instance) { - // apply options & init - instance.option(options); - instance._init(); - } else { - // initialize new instance - instance = new PluginClass(this, options); - $.data(this, namespace, instance); - } - return $(this); - }); - - if (objects.length === 1) { - return objects[0]; - } - return objects; - } - }; - } - - // -------------------------- bridget -------------------------- // - - /** - * converts a Prototypical class into a proper jQuery plugin - * the class must have a ._init method - * @param {String} namespace - plugin name, used in $().pluginName - * @param {Function} PluginClass - constructor class - */ - $.bridget = function (namespace, PluginClass) { - addOptionMethod(PluginClass); - bridge(namespace, PluginClass); - }; - - return $.bridget; - } - - // get jquery from browser global - defineBridget($); - })($); - - /************************************************* - BOOTSTRAP-SLIDER SOURCE CODE - **************************************************/ - - (function ($) { - var autoRegisterNamespace = void 0; - - var ErrorMsgs = { - formatInvalidInputErrorMsg: function formatInvalidInputErrorMsg(input) { - return "Invalid input value '" + input + "' passed in"; - }, - callingContextNotSliderInstance: "Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method" - }; - - var SliderScale = { - linear: { - getValue: function getValue(value, options) { - if (value < options.min) { - return options.min; - } else if (value > options.max) { - return options.max; - } else { - return value; - } - }, - toValue: function toValue(percentage) { - var rawValue = percentage / 100 * (this.options.max - this.options.min); - var shouldAdjustWithBase = true; - if (this.options.ticks_positions.length > 0) { - var minv, - maxv, - minp, - maxp = 0; - for (var i = 1; i < this.options.ticks_positions.length; i++) { - if (percentage <= this.options.ticks_positions[i]) { - minv = this.options.ticks[i - 1]; - minp = this.options.ticks_positions[i - 1]; - maxv = this.options.ticks[i]; - maxp = this.options.ticks_positions[i]; - - break; - } - } - var partialPercentage = (percentage - minp) / (maxp - minp); - rawValue = minv + partialPercentage * (maxv - minv); - shouldAdjustWithBase = false; - } - - var adjustment = shouldAdjustWithBase ? this.options.min : 0; - var value = adjustment + Math.round(rawValue / this.options.step) * this.options.step; - return SliderScale.linear.getValue(value, this.options); - }, - toPercentage: function toPercentage(value) { - if (this.options.max === this.options.min) { - return 0; - } - - if (this.options.ticks_positions.length > 0) { - var minv, - maxv, - minp, - maxp = 0; - for (var i = 0; i < this.options.ticks.length; i++) { - if (value <= this.options.ticks[i]) { - minv = i > 0 ? this.options.ticks[i - 1] : 0; - minp = i > 0 ? this.options.ticks_positions[i - 1] : 0; - maxv = this.options.ticks[i]; - maxp = this.options.ticks_positions[i]; - - break; - } - } - if (i > 0) { - var partialPercentage = (value - minv) / (maxv - minv); - return minp + partialPercentage * (maxp - minp); - } - } - - return 100 * (value - this.options.min) / (this.options.max - this.options.min); - } - }, - - logarithmic: { - /* Based on http://stackoverflow.com/questions/846221/logarithmic-slider */ - toValue: function toValue(percentage) { - var offset = 1 - this.options.min; - var min = Math.log(this.options.min + offset); - var max = Math.log(this.options.max + offset); - var value = Math.exp(min + (max - min) * percentage / 100) - offset; - if (Math.round(value) === max) { - return max; - } - value = this.options.min + Math.round((value - this.options.min) / this.options.step) * this.options.step; - /* Rounding to the nearest step could exceed the min or - * max, so clip to those values. */ - return SliderScale.linear.getValue(value, this.options); - }, - toPercentage: function toPercentage(value) { - if (this.options.max === this.options.min) { - return 0; - } else { - var offset = 1 - this.options.min; - var max = Math.log(this.options.max + offset); - var min = Math.log(this.options.min + offset); - var v = Math.log(value + offset); - return 100 * (v - min) / (max - min); - } - } - } - }; - - /************************************************* - CONSTRUCTOR - **************************************************/ - Slider = function Slider(element, options) { - createNewSlider.call(this, element, options); - return this; - }; - - function createNewSlider(element, options) { - - /* - The internal state object is used to store data about the current 'state' of slider. - This includes values such as the `value`, `enabled`, etc... - */ - this._state = { - value: null, - enabled: null, - offset: null, - size: null, - percentage: null, - inDrag: false, - over: false, - tickIndex: null - }; - - // The objects used to store the reference to the tick methods if ticks_tooltip is on - this.ticksCallbackMap = {}; - this.handleCallbackMap = {}; - - if (typeof element === "string") { - this.element = document.querySelector(element); - } else if (element instanceof HTMLElement) { - this.element = element; - } - - /************************************************* - Process Options - **************************************************/ - options = options ? options : {}; - var optionTypes = Object.keys(this.defaultOptions); - - var isMinSet = options.hasOwnProperty('min'); - var isMaxSet = options.hasOwnProperty('max'); - - for (var i = 0; i < optionTypes.length; i++) { - var optName = optionTypes[i]; - - // First check if an option was passed in via the constructor - var val = options[optName]; - // If no data attrib, then check data atrributes - val = typeof val !== 'undefined' ? val : getDataAttrib(this.element, optName); - // Finally, if nothing was specified, use the defaults - val = val !== null ? val : this.defaultOptions[optName]; - - // Set all options on the instance of the Slider - if (!this.options) { - this.options = {}; - } - this.options[optName] = val; - } - - this.ticksAreValid = Array.isArray(this.options.ticks) && this.options.ticks.length > 0; - - // Lock to ticks only when ticks[] is defined and set - if (!this.ticksAreValid) { - this.options.lock_to_ticks = false; - } - - // Check options.rtl - if (this.options.rtl === 'auto') { - var computedStyle = window.getComputedStyle(this.element); - if (computedStyle != null) { - this.options.rtl = computedStyle.direction === 'rtl'; - } else { - // Fix for Firefox bug in versions less than 62: - // https://bugzilla.mozilla.org/show_bug.cgi?id=548397 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1467722 - this.options.rtl = this.element.style.direction === 'rtl'; - } - } - - /* - Validate `tooltip_position` against 'orientation` - - if `tooltip_position` is incompatible with orientation, swith it to a default compatible with specified `orientation` - -- default for "vertical" -> "right", "left" if rtl - -- default for "horizontal" -> "top" - */ - if (this.options.orientation === "vertical" && (this.options.tooltip_position === "top" || this.options.tooltip_position === "bottom")) { - if (this.options.rtl) { - this.options.tooltip_position = "left"; - } else { - this.options.tooltip_position = "right"; - } - } else if (this.options.orientation === "horizontal" && (this.options.tooltip_position === "left" || this.options.tooltip_position === "right")) { - - this.options.tooltip_position = "top"; - } - - function getDataAttrib(element, optName) { - var dataName = "data-slider-" + optName.replace(/_/g, '-'); - var dataValString = element.getAttribute(dataName); - - try { - return JSON.parse(dataValString); - } catch (err) { - return dataValString; - } - } - - /************************************************* - Create Markup - **************************************************/ - - var origWidth = this.element.style.width; - var updateSlider = false; - var parent = this.element.parentNode; - var sliderTrackSelection; - var sliderTrackLow, sliderTrackHigh; - var sliderMinHandle; - var sliderMaxHandle; - - if (this.sliderElem) { - updateSlider = true; - } else { - /* Create elements needed for slider */ - this.sliderElem = document.createElement("div"); - this.sliderElem.className = "slider"; - - /* Create slider track elements */ - var sliderTrack = document.createElement("div"); - sliderTrack.className = "slider-track"; - - sliderTrackLow = document.createElement("div"); - sliderTrackLow.className = "slider-track-low"; - - sliderTrackSelection = document.createElement("div"); - sliderTrackSelection.className = "slider-selection"; - - sliderTrackHigh = document.createElement("div"); - sliderTrackHigh.className = "slider-track-high"; - - sliderMinHandle = document.createElement("div"); - sliderMinHandle.className = "slider-handle min-slider-handle"; - sliderMinHandle.setAttribute('role', 'slider'); - sliderMinHandle.setAttribute('aria-valuemin', this.options.min); - sliderMinHandle.setAttribute('aria-valuemax', this.options.max); - - sliderMaxHandle = document.createElement("div"); - sliderMaxHandle.className = "slider-handle max-slider-handle"; - sliderMaxHandle.setAttribute('role', 'slider'); - sliderMaxHandle.setAttribute('aria-valuemin', this.options.min); - sliderMaxHandle.setAttribute('aria-valuemax', this.options.max); - - sliderTrack.appendChild(sliderTrackLow); - sliderTrack.appendChild(sliderTrackSelection); - sliderTrack.appendChild(sliderTrackHigh); - - /* Create highlight range elements */ - this.rangeHighlightElements = []; - var rangeHighlightsOpts = this.options.rangeHighlights; - if (Array.isArray(rangeHighlightsOpts) && rangeHighlightsOpts.length > 0) { - for (var j = 0; j < rangeHighlightsOpts.length; j++) { - var rangeHighlightElement = document.createElement("div"); - var customClassString = rangeHighlightsOpts[j].class || ""; - rangeHighlightElement.className = "slider-rangeHighlight slider-selection " + customClassString; - this.rangeHighlightElements.push(rangeHighlightElement); - sliderTrack.appendChild(rangeHighlightElement); - } - } - - /* Add aria-labelledby to handle's */ - var isLabelledbyArray = Array.isArray(this.options.labelledby); - if (isLabelledbyArray && this.options.labelledby[0]) { - sliderMinHandle.setAttribute('aria-labelledby', this.options.labelledby[0]); - } - if (isLabelledbyArray && this.options.labelledby[1]) { - sliderMaxHandle.setAttribute('aria-labelledby', this.options.labelledby[1]); - } - if (!isLabelledbyArray && this.options.labelledby) { - sliderMinHandle.setAttribute('aria-labelledby', this.options.labelledby); - sliderMaxHandle.setAttribute('aria-labelledby', this.options.labelledby); - } - - /* Create ticks */ - this.ticks = []; - if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) { - this.ticksContainer = document.createElement('div'); - this.ticksContainer.className = 'slider-tick-container'; - - for (i = 0; i < this.options.ticks.length; i++) { - var tick = document.createElement('div'); - tick.className = 'slider-tick'; - if (this.options.ticks_tooltip) { - var tickListenerReference = this._addTickListener(); - var enterCallback = tickListenerReference.addMouseEnter(this, tick, i); - var leaveCallback = tickListenerReference.addMouseLeave(this, tick); - - this.ticksCallbackMap[i] = { - mouseEnter: enterCallback, - mouseLeave: leaveCallback - }; - } - this.ticks.push(tick); - this.ticksContainer.appendChild(tick); - } - - sliderTrackSelection.className += " tick-slider-selection"; - } - - this.tickLabels = []; - if (Array.isArray(this.options.ticks_labels) && this.options.ticks_labels.length > 0) { - this.tickLabelContainer = document.createElement('div'); - this.tickLabelContainer.className = 'slider-tick-label-container'; - - for (i = 0; i < this.options.ticks_labels.length; i++) { - var label = document.createElement('div'); - var noTickPositionsSpecified = this.options.ticks_positions.length === 0; - var tickLabelsIndex = this.options.reversed && noTickPositionsSpecified ? this.options.ticks_labels.length - (i + 1) : i; - label.className = 'slider-tick-label'; - label.innerHTML = this.options.ticks_labels[tickLabelsIndex]; - - this.tickLabels.push(label); - this.tickLabelContainer.appendChild(label); - } - } - - var createAndAppendTooltipSubElements = function createAndAppendTooltipSubElements(tooltipElem) { - var arrow = document.createElement("div"); - arrow.className = "tooltip-arrow"; - - var inner = document.createElement("div"); - inner.className = "tooltip-inner"; - - tooltipElem.appendChild(arrow); - tooltipElem.appendChild(inner); - }; - - /* Create tooltip elements */ - var sliderTooltip = document.createElement("div"); - sliderTooltip.className = "tooltip tooltip-main"; - sliderTooltip.setAttribute('role', 'presentation'); - createAndAppendTooltipSubElements(sliderTooltip); - - var sliderTooltipMin = document.createElement("div"); - sliderTooltipMin.className = "tooltip tooltip-min"; - sliderTooltipMin.setAttribute('role', 'presentation'); - createAndAppendTooltipSubElements(sliderTooltipMin); - - var sliderTooltipMax = document.createElement("div"); - sliderTooltipMax.className = "tooltip tooltip-max"; - sliderTooltipMax.setAttribute('role', 'presentation'); - createAndAppendTooltipSubElements(sliderTooltipMax); - - /* Append components to sliderElem */ - this.sliderElem.appendChild(sliderTrack); - this.sliderElem.appendChild(sliderTooltip); - this.sliderElem.appendChild(sliderTooltipMin); - this.sliderElem.appendChild(sliderTooltipMax); - - if (this.tickLabelContainer) { - this.sliderElem.appendChild(this.tickLabelContainer); - } - if (this.ticksContainer) { - this.sliderElem.appendChild(this.ticksContainer); - } - - this.sliderElem.appendChild(sliderMinHandle); - this.sliderElem.appendChild(sliderMaxHandle); - - /* Append slider element to parent container, right before the original element */ - parent.insertBefore(this.sliderElem, this.element); - - /* Hide original element */ - this.element.style.display = "none"; - } - /* If JQuery exists, cache JQ references */ - if ($) { - this.$element = $(this.element); - this.$sliderElem = $(this.sliderElem); - } - - /************************************************* - Setup - **************************************************/ - this.eventToCallbackMap = {}; - this.sliderElem.id = this.options.id; - - this.touchCapable = 'ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch; - - this.touchX = 0; - this.touchY = 0; - - this.tooltip = this.sliderElem.querySelector('.tooltip-main'); - this.tooltipInner = this.tooltip.querySelector('.tooltip-inner'); - - this.tooltip_min = this.sliderElem.querySelector('.tooltip-min'); - this.tooltipInner_min = this.tooltip_min.querySelector('.tooltip-inner'); - - this.tooltip_max = this.sliderElem.querySelector('.tooltip-max'); - this.tooltipInner_max = this.tooltip_max.querySelector('.tooltip-inner'); - - if (SliderScale[this.options.scale]) { - this.options.scale = SliderScale[this.options.scale]; - } - - if (updateSlider === true) { - // Reset classes - this._removeClass(this.sliderElem, 'slider-horizontal'); - this._removeClass(this.sliderElem, 'slider-vertical'); - this._removeClass(this.sliderElem, 'slider-rtl'); - this._removeClass(this.tooltip, 'hide'); - this._removeClass(this.tooltip_min, 'hide'); - this._removeClass(this.tooltip_max, 'hide'); - - // Undo existing inline styles for track - ["left", "right", "top", "width", "height"].forEach(function (prop) { - this._removeProperty(this.trackLow, prop); - this._removeProperty(this.trackSelection, prop); - this._removeProperty(this.trackHigh, prop); - }, this); - - // Undo inline styles on handles - [this.handle1, this.handle2].forEach(function (handle) { - this._removeProperty(handle, 'left'); - this._removeProperty(handle, 'right'); - this._removeProperty(handle, 'top'); - }, this); - - // Undo inline styles and classes on tooltips - [this.tooltip, this.tooltip_min, this.tooltip_max].forEach(function (tooltip) { - this._removeProperty(tooltip, 'left'); - this._removeProperty(tooltip, 'right'); - this._removeProperty(tooltip, 'top'); - - this._removeClass(tooltip, 'right'); - this._removeClass(tooltip, 'left'); - this._removeClass(tooltip, 'top'); - }, this); - } - - if (this.options.orientation === 'vertical') { - this._addClass(this.sliderElem, 'slider-vertical'); - this.stylePos = 'top'; - this.mousePos = 'pageY'; - this.sizePos = 'offsetHeight'; - } else { - this._addClass(this.sliderElem, 'slider-horizontal'); - this.sliderElem.style.width = origWidth; - this.options.orientation = 'horizontal'; - if (this.options.rtl) { - this.stylePos = 'right'; - } else { - this.stylePos = 'left'; - } - this.mousePos = 'clientX'; - this.sizePos = 'offsetWidth'; - } - // specific rtl class - if (this.options.rtl) { - this._addClass(this.sliderElem, 'slider-rtl'); - } - this._setTooltipPosition(); - /* In case ticks are specified, overwrite the min and max bounds */ - if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) { - if (!isMaxSet) { - this.options.max = Math.max.apply(Math, this.options.ticks); - } - if (!isMinSet) { - this.options.min = Math.min.apply(Math, this.options.ticks); - } - } - - if (Array.isArray(this.options.value)) { - this.options.range = true; - this._state.value = this.options.value; - } else if (this.options.range) { - // User wants a range, but value is not an array - this._state.value = [this.options.value, this.options.max]; - } else { - this._state.value = this.options.value; - } - - this.trackLow = sliderTrackLow || this.trackLow; - this.trackSelection = sliderTrackSelection || this.trackSelection; - this.trackHigh = sliderTrackHigh || this.trackHigh; - - if (this.options.selection === 'none') { - this._addClass(this.trackLow, 'hide'); - this._addClass(this.trackSelection, 'hide'); - this._addClass(this.trackHigh, 'hide'); - } else if (this.options.selection === 'after' || this.options.selection === 'before') { - this._removeClass(this.trackLow, 'hide'); - this._removeClass(this.trackSelection, 'hide'); - this._removeClass(this.trackHigh, 'hide'); - } - - this.handle1 = sliderMinHandle || this.handle1; - this.handle2 = sliderMaxHandle || this.handle2; - - if (updateSlider === true) { - // Reset classes - this._removeClass(this.handle1, 'round triangle'); - this._removeClass(this.handle2, 'round triangle hide'); - - for (i = 0; i < this.ticks.length; i++) { - this._removeClass(this.ticks[i], 'round triangle hide'); - } - } - - var availableHandleModifiers = ['round', 'triangle', 'custom']; - var isValidHandleType = availableHandleModifiers.indexOf(this.options.handle) !== -1; - if (isValidHandleType) { - this._addClass(this.handle1, this.options.handle); - this._addClass(this.handle2, this.options.handle); - - for (i = 0; i < this.ticks.length; i++) { - this._addClass(this.ticks[i], this.options.handle); - } - } - - this._state.offset = this._offset(this.sliderElem); - this._state.size = this.sliderElem[this.sizePos]; - this.setValue(this._state.value); - - /****************************************** - Bind Event Listeners - ******************************************/ - - // Bind keyboard handlers - this.handle1Keydown = this._keydown.bind(this, 0); - this.handle1.addEventListener("keydown", this.handle1Keydown, false); - - this.handle2Keydown = this._keydown.bind(this, 1); - this.handle2.addEventListener("keydown", this.handle2Keydown, false); - - this.mousedown = this._mousedown.bind(this); - this.touchstart = this._touchstart.bind(this); - this.touchmove = this._touchmove.bind(this); - - if (this.touchCapable) { - this.sliderElem.addEventListener("touchstart", this.touchstart, false); - this.sliderElem.addEventListener("touchmove", this.touchmove, false); - } - - this.sliderElem.addEventListener("mousedown", this.mousedown, false); - - // Bind window handlers - this.resize = this._resize.bind(this); - window.addEventListener("resize", this.resize, false); - - // Bind tooltip-related handlers - if (this.options.tooltip === 'hide') { - this._addClass(this.tooltip, 'hide'); - this._addClass(this.tooltip_min, 'hide'); - this._addClass(this.tooltip_max, 'hide'); - } else if (this.options.tooltip === 'always') { - this._showTooltip(); - this._alwaysShowTooltip = true; - } else { - this.showTooltip = this._showTooltip.bind(this); - this.hideTooltip = this._hideTooltip.bind(this); - - if (this.options.ticks_tooltip) { - var callbackHandle = this._addTickListener(); - //create handle1 listeners and store references in map - var mouseEnter = callbackHandle.addMouseEnter(this, this.handle1); - var mouseLeave = callbackHandle.addMouseLeave(this, this.handle1); - this.handleCallbackMap.handle1 = { - mouseEnter: mouseEnter, - mouseLeave: mouseLeave - }; - //create handle2 listeners and store references in map - mouseEnter = callbackHandle.addMouseEnter(this, this.handle2); - mouseLeave = callbackHandle.addMouseLeave(this, this.handle2); - this.handleCallbackMap.handle2 = { - mouseEnter: mouseEnter, - mouseLeave: mouseLeave - }; - } else { - this.sliderElem.addEventListener("mouseenter", this.showTooltip, false); - this.sliderElem.addEventListener("mouseleave", this.hideTooltip, false); - - if (this.touchCapable) { - this.sliderElem.addEventListener("touchstart", this.showTooltip, false); - this.sliderElem.addEventListener("touchmove", this.showTooltip, false); - this.sliderElem.addEventListener("touchend", this.hideTooltip, false); - } - } - - this.handle1.addEventListener("focus", this.showTooltip, false); - this.handle1.addEventListener("blur", this.hideTooltip, false); - - this.handle2.addEventListener("focus", this.showTooltip, false); - this.handle2.addEventListener("blur", this.hideTooltip, false); - - if (this.touchCapable) { - this.handle1.addEventListener("touchstart", this.showTooltip, false); - this.handle1.addEventListener("touchmove", this.showTooltip, false); - this.handle1.addEventListener("touchend", this.hideTooltip, false); - - this.handle2.addEventListener("touchstart", this.showTooltip, false); - this.handle2.addEventListener("touchmove", this.showTooltip, false); - this.handle2.addEventListener("touchend", this.hideTooltip, false); - } - } - - if (this.options.enabled) { - this.enable(); - } else { - this.disable(); - } - } - - /************************************************* - INSTANCE PROPERTIES/METHODS - - Any methods bound to the prototype are considered - part of the plugin's `public` interface - **************************************************/ - Slider.prototype = { - _init: function _init() {}, // NOTE: Must exist to support bridget - - constructor: Slider, - - defaultOptions: { - id: "", - min: 0, - max: 10, - step: 1, - precision: 0, - orientation: 'horizontal', - value: 5, - range: false, - selection: 'before', - tooltip: 'show', - tooltip_split: false, - lock_to_ticks: false, - handle: 'round', - reversed: false, - rtl: 'auto', - enabled: true, - formatter: function formatter(val) { - if (Array.isArray(val)) { - return val[0] + " : " + val[1]; - } else { - return val; - } - }, - natural_arrow_keys: false, - ticks: [], - ticks_positions: [], - ticks_labels: [], - ticks_snap_bounds: 0, - ticks_tooltip: false, - scale: 'linear', - focus: false, - tooltip_position: null, - labelledby: null, - rangeHighlights: [] - }, - - getElement: function getElement() { - return this.sliderElem; - }, - - getValue: function getValue() { - if (this.options.range) { - return this._state.value; - } else { - return this._state.value[0]; - } - }, - - setValue: function setValue(val, triggerSlideEvent, triggerChangeEvent) { - if (!val) { - val = 0; - } - var oldValue = this.getValue(); - this._state.value = this._validateInputValue(val); - var applyPrecision = this._applyPrecision.bind(this); - - if (this.options.range) { - this._state.value[0] = applyPrecision(this._state.value[0]); - this._state.value[1] = applyPrecision(this._state.value[1]); - - if (this.ticksAreValid && this.options.lock_to_ticks) { - this._state.value[0] = this.options.ticks[this._getClosestTickIndex(this._state.value[0])]; - this._state.value[1] = this.options.ticks[this._getClosestTickIndex(this._state.value[1])]; - } - - this._state.value[0] = Math.max(this.options.min, Math.min(this.options.max, this._state.value[0])); - this._state.value[1] = Math.max(this.options.min, Math.min(this.options.max, this._state.value[1])); - } else { - this._state.value = applyPrecision(this._state.value); - - if (this.ticksAreValid && this.options.lock_to_ticks) { - this._state.value = this.options.ticks[this._getClosestTickIndex(this._state.value)]; - } - - this._state.value = [Math.max(this.options.min, Math.min(this.options.max, this._state.value))]; - this._addClass(this.handle2, 'hide'); - if (this.options.selection === 'after') { - this._state.value[1] = this.options.max; - } else { - this._state.value[1] = this.options.min; - } - } - - // Determine which ticks the handle(s) are set at (if applicable) - this._setTickIndex(); - - if (this.options.max > this.options.min) { - this._state.percentage = [this._toPercentage(this._state.value[0]), this._toPercentage(this._state.value[1]), this.options.step * 100 / (this.options.max - this.options.min)]; - } else { - this._state.percentage = [0, 0, 100]; - } - - this._layout(); - var newValue = this.options.range ? this._state.value : this._state.value[0]; - - this._setDataVal(newValue); - if (triggerSlideEvent === true) { - this._trigger('slide', newValue); - } - - var hasChanged = false; - if (Array.isArray(newValue)) { - hasChanged = oldValue[0] !== newValue[0] || oldValue[1] !== newValue[1]; - } else { - hasChanged = oldValue !== newValue; - } - - if (hasChanged && triggerChangeEvent === true) { - this._trigger('change', { - oldValue: oldValue, - newValue: newValue - }); - } - - return this; - }, - - destroy: function destroy() { - // Remove event handlers on slider elements - this._removeSliderEventHandlers(); - - // Remove the slider from the DOM - this.sliderElem.parentNode.removeChild(this.sliderElem); - /* Show original element */ - this.element.style.display = ""; - - // Clear out custom event bindings - this._cleanUpEventCallbacksMap(); - - // Remove data values - this.element.removeAttribute("data"); - - // Remove JQuery handlers/data - if ($) { - this._unbindJQueryEventHandlers(); - if (autoRegisterNamespace === NAMESPACE_MAIN) { - this.$element.removeData(autoRegisterNamespace); - } - this.$element.removeData(NAMESPACE_ALTERNATE); - } - }, - - disable: function disable() { - this._state.enabled = false; - this.handle1.removeAttribute("tabindex"); - this.handle2.removeAttribute("tabindex"); - this._addClass(this.sliderElem, 'slider-disabled'); - this._trigger('slideDisabled'); - - return this; - }, - - enable: function enable() { - this._state.enabled = true; - this.handle1.setAttribute("tabindex", 0); - this.handle2.setAttribute("tabindex", 0); - this._removeClass(this.sliderElem, 'slider-disabled'); - this._trigger('slideEnabled'); - - return this; - }, - - toggle: function toggle() { - if (this._state.enabled) { - this.disable(); - } else { - this.enable(); - } - return this; - }, - - isEnabled: function isEnabled() { - return this._state.enabled; - }, - - on: function on(evt, callback) { - this._bindNonQueryEventHandler(evt, callback); - return this; - }, - - off: function off(evt, callback) { - if ($) { - this.$element.off(evt, callback); - this.$sliderElem.off(evt, callback); - } else { - this._unbindNonQueryEventHandler(evt, callback); - } - }, - - getAttribute: function getAttribute(attribute) { - if (attribute) { - return this.options[attribute]; - } else { - return this.options; - } - }, - - setAttribute: function setAttribute(attribute, value) { - this.options[attribute] = value; - return this; - }, - - refresh: function refresh(options) { - var currentValue = this.getValue(); - this._removeSliderEventHandlers(); - createNewSlider.call(this, this.element, this.options); - // Don't reset slider's value on refresh if `useCurrentValue` is true - if (options && options.useCurrentValue === true) { - this.setValue(currentValue); - } - if ($) { - // Bind new instance of slider to the element - if (autoRegisterNamespace === NAMESPACE_MAIN) { - $.data(this.element, NAMESPACE_MAIN, this); - $.data(this.element, NAMESPACE_ALTERNATE, this); - } else { - $.data(this.element, NAMESPACE_ALTERNATE, this); - } - } - return this; - }, - - relayout: function relayout() { - this._resize(); - return this; - }, - - /******************************+ - HELPERS - - Any method that is not part of the public interface. - - Place it underneath this comment block and write its signature like so: - _fnName : function() {...} - ********************************/ - _removeTooltipListener: function _removeTooltipListener(event, handler) { - this.handle1.removeEventListener(event, handler, false); - this.handle2.removeEventListener(event, handler, false); - }, - _removeSliderEventHandlers: function _removeSliderEventHandlers() { - // Remove keydown event listeners - this.handle1.removeEventListener("keydown", this.handle1Keydown, false); - this.handle2.removeEventListener("keydown", this.handle2Keydown, false); - - //remove the listeners from the ticks and handles if they had their own listeners - if (this.options.ticks_tooltip) { - var ticks = this.ticksContainer.getElementsByClassName('slider-tick'); - for (var i = 0; i < ticks.length; i++) { - ticks[i].removeEventListener('mouseenter', this.ticksCallbackMap[i].mouseEnter, false); - ticks[i].removeEventListener('mouseleave', this.ticksCallbackMap[i].mouseLeave, false); - } - if (this.handleCallbackMap.handle1 && this.handleCallbackMap.handle2) { - this.handle1.removeEventListener('mouseenter', this.handleCallbackMap.handle1.mouseEnter, false); - this.handle2.removeEventListener('mouseenter', this.handleCallbackMap.handle2.mouseEnter, false); - this.handle1.removeEventListener('mouseleave', this.handleCallbackMap.handle1.mouseLeave, false); - this.handle2.removeEventListener('mouseleave', this.handleCallbackMap.handle2.mouseLeave, false); - } - } - - this.handleCallbackMap = null; - this.ticksCallbackMap = null; - - if (this.showTooltip) { - this._removeTooltipListener("focus", this.showTooltip); - } - if (this.hideTooltip) { - this._removeTooltipListener("blur", this.hideTooltip); - } - - // Remove event listeners from sliderElem - if (this.showTooltip) { - this.sliderElem.removeEventListener("mouseenter", this.showTooltip, false); - } - if (this.hideTooltip) { - this.sliderElem.removeEventListener("mouseleave", this.hideTooltip, false); - } - - this.sliderElem.removeEventListener("mousedown", this.mousedown, false); - - if (this.touchCapable) { - // Remove touch event listeners from handles - if (this.showTooltip) { - this.handle1.removeEventListener("touchstart", this.showTooltip, false); - this.handle1.removeEventListener("touchmove", this.showTooltip, false); - this.handle2.removeEventListener("touchstart", this.showTooltip, false); - this.handle2.removeEventListener("touchmove", this.showTooltip, false); - } - if (this.hideTooltip) { - this.handle1.removeEventListener("touchend", this.hideTooltip, false); - this.handle2.removeEventListener("touchend", this.hideTooltip, false); - } - - // Remove event listeners from sliderElem - if (this.showTooltip) { - this.sliderElem.removeEventListener("touchstart", this.showTooltip, false); - this.sliderElem.removeEventListener("touchmove", this.showTooltip, false); - } - if (this.hideTooltip) { - this.sliderElem.removeEventListener("touchend", this.hideTooltip, false); - } - - this.sliderElem.removeEventListener("touchstart", this.touchstart, false); - this.sliderElem.removeEventListener("touchmove", this.touchmove, false); - } - - // Remove window event listener - window.removeEventListener("resize", this.resize, false); - }, - _bindNonQueryEventHandler: function _bindNonQueryEventHandler(evt, callback) { - if (this.eventToCallbackMap[evt] === undefined) { - this.eventToCallbackMap[evt] = []; - } - this.eventToCallbackMap[evt].push(callback); - }, - _unbindNonQueryEventHandler: function _unbindNonQueryEventHandler(evt, callback) { - var callbacks = this.eventToCallbackMap[evt]; - if (callbacks !== undefined) { - for (var i = 0; i < callbacks.length; i++) { - if (callbacks[i] === callback) { - callbacks.splice(i, 1); - break; - } - } - } - }, - _cleanUpEventCallbacksMap: function _cleanUpEventCallbacksMap() { - var eventNames = Object.keys(this.eventToCallbackMap); - for (var i = 0; i < eventNames.length; i++) { - var eventName = eventNames[i]; - delete this.eventToCallbackMap[eventName]; - } - }, - _showTooltip: function _showTooltip() { - if (this.options.tooltip_split === false) { - this._addClass(this.tooltip, 'in'); - this.tooltip_min.style.display = 'none'; - this.tooltip_max.style.display = 'none'; - } else { - this._addClass(this.tooltip_min, 'in'); - this._addClass(this.tooltip_max, 'in'); - this.tooltip.style.display = 'none'; - } - this._state.over = true; - }, - _hideTooltip: function _hideTooltip() { - if (this._state.inDrag === false && this._alwaysShowTooltip !== true) { - this._removeClass(this.tooltip, 'in'); - this._removeClass(this.tooltip_min, 'in'); - this._removeClass(this.tooltip_max, 'in'); - } - this._state.over = false; - }, - _setToolTipOnMouseOver: function _setToolTipOnMouseOver(tempState) { - var self = this; - var formattedTooltipVal = this.options.formatter(!tempState ? this._state.value[0] : tempState.value[0]); - var positionPercentages = !tempState ? getPositionPercentages(this._state, this.options.reversed) : getPositionPercentages(tempState, this.options.reversed); - this._setText(this.tooltipInner, formattedTooltipVal); - - this.tooltip.style[this.stylePos] = positionPercentages[0] + "%"; - - function getPositionPercentages(state, reversed) { - if (reversed) { - return [100 - state.percentage[0], self.options.range ? 100 - state.percentage[1] : state.percentage[1]]; - } - return [state.percentage[0], state.percentage[1]]; - } - }, - _copyState: function _copyState() { - return { - value: [this._state.value[0], this._state.value[1]], - enabled: this._state.enabled, - offset: this._state.offset, - size: this._state.size, - percentage: [this._state.percentage[0], this._state.percentage[1], this._state.percentage[2]], - inDrag: this._state.inDrag, - over: this._state.over, - // deleted or null'd keys - dragged: this._state.dragged, - keyCtrl: this._state.keyCtrl - }; - }, - _addTickListener: function _addTickListener() { - return { - addMouseEnter: function addMouseEnter(reference, element, index) { - var enter = function enter() { - var tempState = reference._copyState(); - // Which handle is being hovered over? - var val = element === reference.handle1 ? tempState.value[0] : tempState.value[1]; - var per = void 0; - - // Setup value and percentage for tick's 'mouseenter' - if (index !== undefined) { - val = reference.options.ticks[index]; - per = reference.options.ticks_positions.length > 0 && reference.options.ticks_positions[index] || reference._toPercentage(reference.options.ticks[index]); - } else { - per = reference._toPercentage(val); - } - - tempState.value[0] = val; - tempState.percentage[0] = per; - reference._setToolTipOnMouseOver(tempState); - reference._showTooltip(); - }; - element.addEventListener("mouseenter", enter, false); - return enter; - }, - addMouseLeave: function addMouseLeave(reference, element) { - var leave = function leave() { - reference._hideTooltip(); - }; - element.addEventListener("mouseleave", leave, false); - return leave; - } - }; - }, - _layout: function _layout() { - var positionPercentages; - var formattedValue; - - if (this.options.reversed) { - positionPercentages = [100 - this._state.percentage[0], this.options.range ? 100 - this._state.percentage[1] : this._state.percentage[1]]; - } else { - positionPercentages = [this._state.percentage[0], this._state.percentage[1]]; - } - - this.handle1.style[this.stylePos] = positionPercentages[0] + "%"; - this.handle1.setAttribute('aria-valuenow', this._state.value[0]); - formattedValue = this.options.formatter(this._state.value[0]); - if (isNaN(formattedValue)) { - this.handle1.setAttribute('aria-valuetext', formattedValue); - } else { - this.handle1.removeAttribute('aria-valuetext'); - } - - this.handle2.style[this.stylePos] = positionPercentages[1] + "%"; - this.handle2.setAttribute('aria-valuenow', this._state.value[1]); - formattedValue = this.options.formatter(this._state.value[1]); - if (isNaN(formattedValue)) { - this.handle2.setAttribute('aria-valuetext', formattedValue); - } else { - this.handle2.removeAttribute('aria-valuetext'); - } - - /* Position highlight range elements */ - if (this.rangeHighlightElements.length > 0 && Array.isArray(this.options.rangeHighlights) && this.options.rangeHighlights.length > 0) { - for (var _i = 0; _i < this.options.rangeHighlights.length; _i++) { - var startPercent = this._toPercentage(this.options.rangeHighlights[_i].start); - var endPercent = this._toPercentage(this.options.rangeHighlights[_i].end); - - if (this.options.reversed) { - var sp = 100 - endPercent; - endPercent = 100 - startPercent; - startPercent = sp; - } - - var currentRange = this._createHighlightRange(startPercent, endPercent); - - if (currentRange) { - if (this.options.orientation === 'vertical') { - this.rangeHighlightElements[_i].style.top = currentRange.start + "%"; - this.rangeHighlightElements[_i].style.height = currentRange.size + "%"; - } else { - if (this.options.rtl) { - this.rangeHighlightElements[_i].style.right = currentRange.start + "%"; - } else { - this.rangeHighlightElements[_i].style.left = currentRange.start + "%"; - } - this.rangeHighlightElements[_i].style.width = currentRange.size + "%"; - } - } else { - this.rangeHighlightElements[_i].style.display = "none"; - } - } - } - - /* Position ticks and labels */ - if (Array.isArray(this.options.ticks) && this.options.ticks.length > 0) { - - var styleSize = this.options.orientation === 'vertical' ? 'height' : 'width'; - var styleMargin; - if (this.options.orientation === 'vertical') { - styleMargin = 'marginTop'; - } else { - if (this.options.rtl) { - styleMargin = 'marginRight'; - } else { - styleMargin = 'marginLeft'; - } - } - var labelSize = this._state.size / (this.options.ticks.length - 1); - - if (this.tickLabelContainer) { - var extraMargin = 0; - if (this.options.ticks_positions.length === 0) { - if (this.options.orientation !== 'vertical') { - this.tickLabelContainer.style[styleMargin] = -labelSize / 2 + "px"; - } - - extraMargin = this.tickLabelContainer.offsetHeight; - } else { - /* Chidren are position absolute, calculate height by finding the max offsetHeight of a child */ - for (i = 0; i < this.tickLabelContainer.childNodes.length; i++) { - if (this.tickLabelContainer.childNodes[i].offsetHeight > extraMargin) { - extraMargin = this.tickLabelContainer.childNodes[i].offsetHeight; - } - } - } - if (this.options.orientation === 'horizontal') { - this.sliderElem.style.marginBottom = extraMargin + "px"; - } - } - for (var i = 0; i < this.options.ticks.length; i++) { - - var percentage = this.options.ticks_positions[i] || this._toPercentage(this.options.ticks[i]); - - if (this.options.reversed) { - percentage = 100 - percentage; - } - - this.ticks[i].style[this.stylePos] = percentage + "%"; - - /* Set class labels to denote whether ticks are in the selection */ - this._removeClass(this.ticks[i], 'in-selection'); - if (!this.options.range) { - if (this.options.selection === 'after' && percentage >= positionPercentages[0]) { - this._addClass(this.ticks[i], 'in-selection'); - } else if (this.options.selection === 'before' && percentage <= positionPercentages[0]) { - this._addClass(this.ticks[i], 'in-selection'); - } - } else if (percentage >= positionPercentages[0] && percentage <= positionPercentages[1]) { - this._addClass(this.ticks[i], 'in-selection'); - } - - if (this.tickLabels[i]) { - this.tickLabels[i].style[styleSize] = labelSize + "px"; - - if (this.options.orientation !== 'vertical' && this.options.ticks_positions[i] !== undefined) { - this.tickLabels[i].style.position = 'absolute'; - this.tickLabels[i].style[this.stylePos] = percentage + "%"; - this.tickLabels[i].style[styleMargin] = -labelSize / 2 + 'px'; - } else if (this.options.orientation === 'vertical') { - if (this.options.rtl) { - this.tickLabels[i].style['marginRight'] = this.sliderElem.offsetWidth + "px"; - } else { - this.tickLabels[i].style['marginLeft'] = this.sliderElem.offsetWidth + "px"; - } - this.tickLabelContainer.style[styleMargin] = this.sliderElem.offsetWidth / 2 * -1 + 'px'; - } - - /* Set class labels to indicate tick labels are in the selection or selected */ - this._removeClass(this.tickLabels[i], 'label-in-selection label-is-selection'); - if (!this.options.range) { - if (this.options.selection === 'after' && percentage >= positionPercentages[0]) { - this._addClass(this.tickLabels[i], 'label-in-selection'); - } else if (this.options.selection === 'before' && percentage <= positionPercentages[0]) { - this._addClass(this.tickLabels[i], 'label-in-selection'); - } - if (percentage === positionPercentages[0]) { - this._addClass(this.tickLabels[i], 'label-is-selection'); - } - } else if (percentage >= positionPercentages[0] && percentage <= positionPercentages[1]) { - this._addClass(this.tickLabels[i], 'label-in-selection'); - if (percentage === positionPercentages[0] || positionPercentages[1]) { - this._addClass(this.tickLabels[i], 'label-is-selection'); - } - } - } - } - } - - var formattedTooltipVal; - - if (this.options.range) { - formattedTooltipVal = this.options.formatter(this._state.value); - this._setText(this.tooltipInner, formattedTooltipVal); - this.tooltip.style[this.stylePos] = (positionPercentages[1] + positionPercentages[0]) / 2 + "%"; - - var innerTooltipMinText = this.options.formatter(this._state.value[0]); - this._setText(this.tooltipInner_min, innerTooltipMinText); - - var innerTooltipMaxText = this.options.formatter(this._state.value[1]); - this._setText(this.tooltipInner_max, innerTooltipMaxText); - - this.tooltip_min.style[this.stylePos] = positionPercentages[0] + "%"; - - this.tooltip_max.style[this.stylePos] = positionPercentages[1] + "%"; - } else { - formattedTooltipVal = this.options.formatter(this._state.value[0]); - this._setText(this.tooltipInner, formattedTooltipVal); - - this.tooltip.style[this.stylePos] = positionPercentages[0] + "%"; - } - - if (this.options.orientation === 'vertical') { - this.trackLow.style.top = '0'; - this.trackLow.style.height = Math.min(positionPercentages[0], positionPercentages[1]) + '%'; - - this.trackSelection.style.top = Math.min(positionPercentages[0], positionPercentages[1]) + '%'; - this.trackSelection.style.height = Math.abs(positionPercentages[0] - positionPercentages[1]) + '%'; - - this.trackHigh.style.bottom = '0'; - this.trackHigh.style.height = 100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1]) + '%'; - } else { - if (this.stylePos === 'right') { - this.trackLow.style.right = '0'; - } else { - this.trackLow.style.left = '0'; - } - this.trackLow.style.width = Math.min(positionPercentages[0], positionPercentages[1]) + '%'; - - if (this.stylePos === 'right') { - this.trackSelection.style.right = Math.min(positionPercentages[0], positionPercentages[1]) + '%'; - } else { - this.trackSelection.style.left = Math.min(positionPercentages[0], positionPercentages[1]) + '%'; - } - this.trackSelection.style.width = Math.abs(positionPercentages[0] - positionPercentages[1]) + '%'; - - if (this.stylePos === 'right') { - this.trackHigh.style.left = '0'; - } else { - this.trackHigh.style.right = '0'; - } - this.trackHigh.style.width = 100 - Math.min(positionPercentages[0], positionPercentages[1]) - Math.abs(positionPercentages[0] - positionPercentages[1]) + '%'; - - var offset_min = this.tooltip_min.getBoundingClientRect(); - var offset_max = this.tooltip_max.getBoundingClientRect(); - - if (this.options.tooltip_position === 'bottom') { - if (offset_min.right > offset_max.left) { - this._removeClass(this.tooltip_max, 'bottom'); - this._addClass(this.tooltip_max, 'top'); - this.tooltip_max.style.top = ''; - this.tooltip_max.style.bottom = 22 + 'px'; - } else { - this._removeClass(this.tooltip_max, 'top'); - this._addClass(this.tooltip_max, 'bottom'); - this.tooltip_max.style.top = this.tooltip_min.style.top; - this.tooltip_max.style.bottom = ''; - } - } else { - if (offset_min.right > offset_max.left) { - this._removeClass(this.tooltip_max, 'top'); - this._addClass(this.tooltip_max, 'bottom'); - this.tooltip_max.style.top = 18 + 'px'; - } else { - this._removeClass(this.tooltip_max, 'bottom'); - this._addClass(this.tooltip_max, 'top'); - this.tooltip_max.style.top = this.tooltip_min.style.top; - } - } - } - }, - _createHighlightRange: function _createHighlightRange(start, end) { - if (this._isHighlightRange(start, end)) { - if (start > end) { - return { 'start': end, 'size': start - end }; - } - return { 'start': start, 'size': end - start }; - } - return null; - }, - _isHighlightRange: function _isHighlightRange(start, end) { - if (0 <= start && start <= 100 && 0 <= end && end <= 100) { - return true; - } else { - return false; - } - }, - _resize: function _resize(ev) { - /*jshint unused:false*/ - this._state.offset = this._offset(this.sliderElem); - this._state.size = this.sliderElem[this.sizePos]; - this._layout(); - }, - _removeProperty: function _removeProperty(element, prop) { - if (element.style.removeProperty) { - element.style.removeProperty(prop); - } else { - element.style.removeAttribute(prop); - } - }, - _mousedown: function _mousedown(ev) { - if (!this._state.enabled) { - return false; - } - - if (ev.preventDefault) { - ev.preventDefault(); - } - - this._state.offset = this._offset(this.sliderElem); - this._state.size = this.sliderElem[this.sizePos]; - - var percentage = this._getPercentage(ev); - - if (this.options.range) { - var diff1 = Math.abs(this._state.percentage[0] - percentage); - var diff2 = Math.abs(this._state.percentage[1] - percentage); - this._state.dragged = diff1 < diff2 ? 0 : 1; - this._adjustPercentageForRangeSliders(percentage); - } else { - this._state.dragged = 0; - } - - this._state.percentage[this._state.dragged] = percentage; - - if (this.touchCapable) { - document.removeEventListener("touchmove", this.mousemove, false); - document.removeEventListener("touchend", this.mouseup, false); - } - - if (this.mousemove) { - document.removeEventListener("mousemove", this.mousemove, false); - } - if (this.mouseup) { - document.removeEventListener("mouseup", this.mouseup, false); - } - - this.mousemove = this._mousemove.bind(this); - this.mouseup = this._mouseup.bind(this); - - if (this.touchCapable) { - // Touch: Bind touch events: - document.addEventListener("touchmove", this.mousemove, false); - document.addEventListener("touchend", this.mouseup, false); - } - // Bind mouse events: - document.addEventListener("mousemove", this.mousemove, false); - document.addEventListener("mouseup", this.mouseup, false); - - this._state.inDrag = true; - var newValue = this._calculateValue(); - - this._trigger('slideStart', newValue); - - this.setValue(newValue, false, true); - - ev.returnValue = false; - - if (this.options.focus) { - this._triggerFocusOnHandle(this._state.dragged); - } - - return true; - }, - _touchstart: function _touchstart(ev) { - this._mousedown(ev); - }, - _triggerFocusOnHandle: function _triggerFocusOnHandle(handleIdx) { - if (handleIdx === 0) { - this.handle1.focus(); - } - if (handleIdx === 1) { - this.handle2.focus(); - } - }, - _keydown: function _keydown(handleIdx, ev) { - if (!this._state.enabled) { - return false; - } - - var dir; - switch (ev.keyCode) { - case 37: // left - case 40: - // down - dir = -1; - break; - case 39: // right - case 38: - // up - dir = 1; - break; - } - if (!dir) { - return; - } - - // use natural arrow keys instead of from min to max - if (this.options.natural_arrow_keys) { - var isHorizontal = this.options.orientation === 'horizontal'; - var isVertical = this.options.orientation === 'vertical'; - var isRTL = this.options.rtl; - var isReversed = this.options.reversed; - - if (isHorizontal) { - if (isRTL) { - if (!isReversed) { - dir = -dir; - } - } else { - if (isReversed) { - dir = -dir; - } - } - } else if (isVertical) { - if (!isReversed) { - dir = -dir; - } - } - } - - var val; - if (this.ticksAreValid && this.options.lock_to_ticks) { - var index = void 0; - // Find tick index that handle 1/2 is currently on - index = this.options.ticks.indexOf(this._state.value[handleIdx]); - if (index === -1) { - // Set default to first tick - index = 0; - window.console.warn('(lock_to_ticks) _keydown: index should not be -1'); - } - index += dir; - index = Math.max(0, Math.min(this.options.ticks.length - 1, index)); - val = this.options.ticks[index]; - } else { - val = this._state.value[handleIdx] + dir * this.options.step; - } - var percentage = this._toPercentage(val); - this._state.keyCtrl = handleIdx; - if (this.options.range) { - this._adjustPercentageForRangeSliders(percentage); - var val1 = !this._state.keyCtrl ? val : this._state.value[0]; - var val2 = this._state.keyCtrl ? val : this._state.value[1]; - // Restrict values within limits - val = [Math.max(this.options.min, Math.min(this.options.max, val1)), Math.max(this.options.min, Math.min(this.options.max, val2))]; - } else { - val = Math.max(this.options.min, Math.min(this.options.max, val)); - } - - this._trigger('slideStart', val); - - this.setValue(val, true, true); - - this._trigger('slideStop', val); - - this._pauseEvent(ev); - delete this._state.keyCtrl; - - return false; - }, - _pauseEvent: function _pauseEvent(ev) { - if (ev.stopPropagation) { - ev.stopPropagation(); - } - if (ev.preventDefault) { - ev.preventDefault(); - } - ev.cancelBubble = true; - ev.returnValue = false; - }, - _mousemove: function _mousemove(ev) { - if (!this._state.enabled) { - return false; - } - - var percentage = this._getPercentage(ev); - this._adjustPercentageForRangeSliders(percentage); - this._state.percentage[this._state.dragged] = percentage; - - var val = this._calculateValue(true); - this.setValue(val, true, true); - - return false; - }, - _touchmove: function _touchmove(ev) { - if (ev.changedTouches === undefined) { - return; - } - - // Prevent page from scrolling and only drag the slider - if (ev.preventDefault) { - ev.preventDefault(); - } - }, - _adjustPercentageForRangeSliders: function _adjustPercentageForRangeSliders(percentage) { - if (this.options.range) { - var precision = this._getNumDigitsAfterDecimalPlace(percentage); - precision = precision ? precision - 1 : 0; - var percentageWithAdjustedPrecision = this._applyToFixedAndParseFloat(percentage, precision); - if (this._state.dragged === 0 && this._applyToFixedAndParseFloat(this._state.percentage[1], precision) < percentageWithAdjustedPrecision) { - this._state.percentage[0] = this._state.percentage[1]; - this._state.dragged = 1; - } else if (this._state.dragged === 1 && this._applyToFixedAndParseFloat(this._state.percentage[0], precision) > percentageWithAdjustedPrecision) { - this._state.percentage[1] = this._state.percentage[0]; - this._state.dragged = 0; - } else if (this._state.keyCtrl === 0 && this._toPercentage(this._state.value[1]) < percentage) { - this._state.percentage[0] = this._state.percentage[1]; - this._state.keyCtrl = 1; - this.handle2.focus(); - } else if (this._state.keyCtrl === 1 && this._toPercentage(this._state.value[0]) > percentage) { - this._state.percentage[1] = this._state.percentage[0]; - this._state.keyCtrl = 0; - this.handle1.focus(); - } - } - }, - _mouseup: function _mouseup(ev) { - if (!this._state.enabled) { - return false; - } - - var percentage = this._getPercentage(ev); - this._adjustPercentageForRangeSliders(percentage); - this._state.percentage[this._state.dragged] = percentage; - - if (this.touchCapable) { - // Touch: Unbind touch event handlers: - document.removeEventListener("touchmove", this.mousemove, false); - document.removeEventListener("touchend", this.mouseup, false); - } - // Unbind mouse event handlers: - document.removeEventListener("mousemove", this.mousemove, false); - document.removeEventListener("mouseup", this.mouseup, false); - - this._state.inDrag = false; - if (this._state.over === false) { - this._hideTooltip(); - } - var val = this._calculateValue(true); - - this.setValue(val, false, true); - this._trigger('slideStop', val); - - // No longer need 'dragged' after mouse up - this._state.dragged = null; - - return false; - }, - _setValues: function _setValues(index, val) { - var comp = 0 === index ? 0 : 100; - if (this._state.percentage[index] !== comp) { - val.data[index] = this._toValue(this._state.percentage[index]); - val.data[index] = this._applyPrecision(val.data[index]); - } - }, - _calculateValue: function _calculateValue(snapToClosestTick) { - var val = {}; - if (this.options.range) { - val.data = [this.options.min, this.options.max]; - this._setValues(0, val); - this._setValues(1, val); - if (snapToClosestTick) { - val.data[0] = this._snapToClosestTick(val.data[0]); - val.data[1] = this._snapToClosestTick(val.data[1]); - } - } else { - val.data = this._toValue(this._state.percentage[0]); - val.data = parseFloat(val.data); - val.data = this._applyPrecision(val.data); - if (snapToClosestTick) { - val.data = this._snapToClosestTick(val.data); - } - } - - return val.data; - }, - _snapToClosestTick: function _snapToClosestTick(val) { - var min = [val, Infinity]; - for (var i = 0; i < this.options.ticks.length; i++) { - var diff = Math.abs(this.options.ticks[i] - val); - if (diff <= min[1]) { - min = [this.options.ticks[i], diff]; - } - } - if (min[1] <= this.options.ticks_snap_bounds) { - return min[0]; - } - return val; - }, - - _applyPrecision: function _applyPrecision(val) { - var precision = this.options.precision || this._getNumDigitsAfterDecimalPlace(this.options.step); - return this._applyToFixedAndParseFloat(val, precision); - }, - _getNumDigitsAfterDecimalPlace: function _getNumDigitsAfterDecimalPlace(num) { - var match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); - if (!match) { - return 0; - } - return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0)); - }, - _applyToFixedAndParseFloat: function _applyToFixedAndParseFloat(num, toFixedInput) { - var truncatedNum = num.toFixed(toFixedInput); - return parseFloat(truncatedNum); - }, - /* - Credits to Mike Samuel for the following method! - Source: http://stackoverflow.com/questions/10454518/javascript-how-to-retrieve-the-number-of-decimals-of-a-string-number - */ - _getPercentage: function _getPercentage(ev) { - if (this.touchCapable && (ev.type === 'touchstart' || ev.type === 'touchmove' || ev.type === 'touchend')) { - ev = ev.changedTouches[0]; - } - - var eventPosition = ev[this.mousePos]; - var sliderOffset = this._state.offset[this.stylePos]; - var distanceToSlide = eventPosition - sliderOffset; - if (this.stylePos === 'right') { - distanceToSlide = -distanceToSlide; - } - // Calculate what percent of the length the slider handle has slid - var percentage = distanceToSlide / this._state.size * 100; - percentage = Math.round(percentage / this._state.percentage[2]) * this._state.percentage[2]; - if (this.options.reversed) { - percentage = 100 - percentage; - } - - // Make sure the percent is within the bounds of the slider. - // 0% corresponds to the 'min' value of the slide - // 100% corresponds to the 'max' value of the slide - return Math.max(0, Math.min(100, percentage)); - }, - _validateInputValue: function _validateInputValue(val) { - if (!isNaN(+val)) { - return +val; - } else if (Array.isArray(val)) { - this._validateArray(val); - return val; - } else { - throw new Error(ErrorMsgs.formatInvalidInputErrorMsg(val)); - } - }, - _validateArray: function _validateArray(val) { - for (var i = 0; i < val.length; i++) { - var input = val[i]; - if (typeof input !== 'number') { - throw new Error(ErrorMsgs.formatInvalidInputErrorMsg(input)); - } - } - }, - _setDataVal: function _setDataVal(val) { - this.element.setAttribute('data-value', val); - this.element.setAttribute('value', val); - this.element.value = val; - }, - _trigger: function _trigger(evt, val) { - val = val || val === 0 ? val : undefined; - - var callbackFnArray = this.eventToCallbackMap[evt]; - if (callbackFnArray && callbackFnArray.length) { - for (var i = 0; i < callbackFnArray.length; i++) { - var callbackFn = callbackFnArray[i]; - callbackFn(val); - } - } - - /* If JQuery exists, trigger JQuery events */ - if ($) { - this._triggerJQueryEvent(evt, val); - } - }, - _triggerJQueryEvent: function _triggerJQueryEvent(evt, val) { - var eventData = { - type: evt, - value: val - }; - this.$element.trigger(eventData); - this.$sliderElem.trigger(eventData); - }, - _unbindJQueryEventHandlers: function _unbindJQueryEventHandlers() { - this.$element.off(); - this.$sliderElem.off(); - }, - _setText: function _setText(element, text) { - if (typeof element.textContent !== "undefined") { - element.textContent = text; - } else if (typeof element.innerText !== "undefined") { - element.innerText = text; - } - }, - _removeClass: function _removeClass(element, classString) { - var classes = classString.split(" "); - var newClasses = element.className; - - for (var i = 0; i < classes.length; i++) { - var classTag = classes[i]; - var regex = new RegExp("(?:\\s|^)" + classTag + "(?:\\s|$)"); - newClasses = newClasses.replace(regex, " "); - } - - element.className = newClasses.trim(); - }, - _addClass: function _addClass(element, classString) { - var classes = classString.split(" "); - var newClasses = element.className; - - for (var i = 0; i < classes.length; i++) { - var classTag = classes[i]; - var regex = new RegExp("(?:\\s|^)" + classTag + "(?:\\s|$)"); - var ifClassExists = regex.test(newClasses); - - if (!ifClassExists) { - newClasses += " " + classTag; - } - } - - element.className = newClasses.trim(); - }, - _offsetLeft: function _offsetLeft(obj) { - return obj.getBoundingClientRect().left; - }, - _offsetRight: function _offsetRight(obj) { - return obj.getBoundingClientRect().right; - }, - _offsetTop: function _offsetTop(obj) { - var offsetTop = obj.offsetTop; - while ((obj = obj.offsetParent) && !isNaN(obj.offsetTop)) { - offsetTop += obj.offsetTop; - if (obj.tagName !== 'BODY') { - offsetTop -= obj.scrollTop; - } - } - return offsetTop; - }, - _offset: function _offset(obj) { - return { - left: this._offsetLeft(obj), - right: this._offsetRight(obj), - top: this._offsetTop(obj) - }; - }, - _css: function _css(elementRef, styleName, value) { - if ($) { - $.style(elementRef, styleName, value); - } else { - var style = styleName.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function (all, letter) { - return letter.toUpperCase(); - }); - elementRef.style[style] = value; - } - }, - _toValue: function _toValue(percentage) { - return this.options.scale.toValue.apply(this, [percentage]); - }, - _toPercentage: function _toPercentage(value) { - return this.options.scale.toPercentage.apply(this, [value]); - }, - _setTooltipPosition: function _setTooltipPosition() { - var tooltips = [this.tooltip, this.tooltip_min, this.tooltip_max]; - if (this.options.orientation === 'vertical') { - var tooltipPos; - if (this.options.tooltip_position) { - tooltipPos = this.options.tooltip_position; - } else { - if (this.options.rtl) { - tooltipPos = 'left'; - } else { - tooltipPos = 'right'; - } - } - var oppositeSide = tooltipPos === 'left' ? 'right' : 'left'; - tooltips.forEach(function (tooltip) { - this._addClass(tooltip, tooltipPos); - tooltip.style[oppositeSide] = '100%'; - }.bind(this)); - } else if (this.options.tooltip_position === 'bottom') { - tooltips.forEach(function (tooltip) { - this._addClass(tooltip, 'bottom'); - tooltip.style.top = 22 + 'px'; - }.bind(this)); - } else { - tooltips.forEach(function (tooltip) { - this._addClass(tooltip, 'top'); - tooltip.style.top = -this.tooltip.outerHeight - 14 + 'px'; - }.bind(this)); - } - }, - _getClosestTickIndex: function _getClosestTickIndex(val) { - var difference = Math.abs(val - this.options.ticks[0]); - var index = 0; - for (var i = 0; i < this.options.ticks.length; ++i) { - var d = Math.abs(val - this.options.ticks[i]); - if (d < difference) { - difference = d; - index = i; - } - } - return index; - }, - /** - * Attempts to find the index in `ticks[]` the slider values are set at. - * The indexes can be -1 to indicate the slider value is not set at a value in `ticks[]`. - */ - _setTickIndex: function _setTickIndex() { - if (this.ticksAreValid) { - this._state.tickIndex = [this.options.ticks.indexOf(this._state.value[0]), this.options.ticks.indexOf(this._state.value[1])]; - } - } - }; - - /********************************* - Attach to global namespace - *********************************/ - if ($ && $.fn) { - if (!$.fn.slider) { - $.bridget(NAMESPACE_MAIN, Slider); - autoRegisterNamespace = NAMESPACE_MAIN; - } else { - if (windowIsDefined) { - window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."); - } - autoRegisterNamespace = NAMESPACE_ALTERNATE; - } - $.bridget(NAMESPACE_ALTERNATE, Slider); - - // Auto-Register data-provide="slider" Elements - $(function () { - $("input[data-provide=slider]")[autoRegisterNamespace](); - }); - } - })($); - - return Slider; -}); diff --git a/plugins/bootstrap-slider/bootstrap-slider.min.js b/plugins/bootstrap-slider/bootstrap-slider.min.js deleted file mode 100644 index 90e52004..00000000 --- a/plugins/bootstrap-slider/bootstrap-slider.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! ======================================================= - VERSION 10.6.2 -========================================================= */ -"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},windowIsDefined="object"===("undefined"==typeof window?"undefined":_typeof(window));!function(a){if("function"==typeof define&&define.amd)define(["jquery"],a);else if("object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports){var b;try{b=require("jquery")}catch(c){b=null}module.exports=a(b)}else window&&(window.Slider=a(window.jQuery))}(function(a){var b="slider",c="bootstrapSlider";windowIsDefined&&!window.console&&(window.console={}),windowIsDefined&&!window.console.log&&(window.console.log=function(){}),windowIsDefined&&!window.console.warn&&(window.console.warn=function(){});var d;return function(a){function b(){}function c(a){function c(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}function e(b,c){a.fn[b]=function(e){if("string"==typeof e){for(var g=d.call(arguments,1),h=0,i=this.length;i>h;h++){var j=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){var l=k[e].apply(k,g);if(void 0!==l&&l!==k)return l}else f("no such method '"+e+"' for "+b+" instance");else f("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}return this}var m=this.map(function(){var d=a.data(this,b);return d?(d.option(e),d._init()):(d=new c(this,e),a.data(this,b,d)),a(this)});return 1===m.length?m[0]:m}}if(a){var f="undefined"==typeof console?b:function(a){console.error(a)};return a.bridget=function(a,b){c(b),e(a,b)},a.bridget}}var d=Array.prototype.slice;c(a)}(a),function(a){function e(b,c){function d(a,b){var c="data-slider-"+b.replace(/_/g,"-"),d=a.getAttribute(c);try{return JSON.parse(d)}catch(e){return d}}this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null},this.ticksCallbackMap={},this.handleCallbackMap={},"string"==typeof b?this.element=document.querySelector(b):b instanceof HTMLElement&&(this.element=b),c=c?c:{};for(var e=Object.keys(this.defaultOptions),f=c.hasOwnProperty("min"),g=c.hasOwnProperty("max"),i=0;i0,this.ticksAreValid||(this.options.lock_to_ticks=!1),"auto"===this.options.rtl){var l=window.getComputedStyle(this.element);null!=l?this.options.rtl="rtl"===l.direction:this.options.rtl="rtl"===this.element.style.direction}"vertical"!==this.options.orientation||"top"!==this.options.tooltip_position&&"bottom"!==this.options.tooltip_position?"horizontal"!==this.options.orientation||"left"!==this.options.tooltip_position&&"right"!==this.options.tooltip_position||(this.options.tooltip_position="top"):this.options.rtl?this.options.tooltip_position="left":this.options.tooltip_position="right";var m,n,o,p,q,r=this.element.style.width,s=!1,t=this.element.parentNode;if(this.sliderElem)s=!0;else{this.sliderElem=document.createElement("div"),this.sliderElem.className="slider";var u=document.createElement("div");u.className="slider-track",n=document.createElement("div"),n.className="slider-track-low",m=document.createElement("div"),m.className="slider-selection",o=document.createElement("div"),o.className="slider-track-high",p=document.createElement("div"),p.className="slider-handle min-slider-handle",p.setAttribute("role","slider"),p.setAttribute("aria-valuemin",this.options.min),p.setAttribute("aria-valuemax",this.options.max),q=document.createElement("div"),q.className="slider-handle max-slider-handle",q.setAttribute("role","slider"),q.setAttribute("aria-valuemin",this.options.min),q.setAttribute("aria-valuemax",this.options.max),u.appendChild(n),u.appendChild(m),u.appendChild(o),this.rangeHighlightElements=[];var v=this.options.rangeHighlights;if(Array.isArray(v)&&v.length>0)for(var w=0;w0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",i=0;i0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",i=0;i0&&(g||(this.options.max=Math.max.apply(Math,this.options.ticks)),f||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this.options.range?this._state.value=[this.options.value,this.options.max]:this._state.value=this.options.value,this.trackLow=n||this.trackLow,this.trackSelection=m||this.trackSelection,this.trackHigh=o||this.trackHigh,"none"===this.options.selection?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):("after"===this.options.selection||"before"===this.options.selection)&&(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=p||this.handle1,this.handle2=q||this.handle2,s===!0)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),i=0;ib.max?b.max:a},toValue:function(a){var b=a/100*(this.options.max-this.options.min),c=!0;if(this.options.ticks_positions.length>0){for(var d,e,f,g=0,i=1;i0){for(var b,c,d,e=0,f=0;f0?this.options.ticks[f-1]:0,d=f>0?this.options.ticks_positions[f-1]:0,c=this.options.ticks[f],e=this.options.ticks_positions[f];break}if(f>0){var g=(a-b)/(c-b);return d+g*(e-d)}}return 100*(a-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(a){var b=1-this.options.min,c=Math.log(this.options.min+b),d=Math.log(this.options.max+b),e=Math.exp(c+(d-c)*a/100)-b;return Math.round(e)===d?d:(e=this.options.min+Math.round((e-this.options.min)/this.options.step)*this.options.step,h.linear.getValue(e,this.options))},toPercentage:function(a){if(this.options.max===this.options.min)return 0;var b=1-this.options.min,c=Math.log(this.options.max+b),d=Math.log(this.options.min+b),e=Math.log(a+b);return 100*(e-d)/(c-d)}}};d=function(a,b){return e.call(this,a,b),this},d.prototype={_init:function(){},constructor:d,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(a){return Array.isArray(a)?a[0]+" : "+a[1]:a},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(a,b,c){a||(a=0);var d=this.getValue();this._state.value=this._validateInputValue(a);var e=this._applyPrecision.bind(this);this.options.range?(this._state.value[0]=e(this._state.value[0]),this._state.value[1]=e(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=e(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),"after"===this.options.selection?this._state.value[1]=this.options.max:this._state.value[1]=this.options.min),this._setTickIndex(),this.options.max>this.options.min?this._state.percentage=[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),100*this.options.step/(this.options.max-this.options.min)]:this._state.percentage=[0,0,100],this._layout();var f=this.options.range?this._state.value:this._state.value[0];this._setDataVal(f),b===!0&&this._trigger("slide",f);var g=!1;return g=Array.isArray(f)?d[0]!==f[0]||d[1]!==f[1]:d!==f,g&&c===!0&&this._trigger("change",{oldValue:d,newValue:f}),this},destroy:function(){this._removeSliderEventHandlers(),this.sliderElem.parentNode.removeChild(this.sliderElem),this.element.style.display="",this._cleanUpEventCallbacksMap(),this.element.removeAttribute("data"),a&&(this._unbindJQueryEventHandlers(),f===b&&this.$element.removeData(f),this.$element.removeData(c))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(a,b){return this._bindNonQueryEventHandler(a,b),this},off:function(b,c){a?(this.$element.off(b,c),this.$sliderElem.off(b,c)):this._unbindNonQueryEventHandler(b,c)},getAttribute:function(a){return a?this.options[a]:this.options},setAttribute:function(a,b){return this.options[a]=b,this},refresh:function(d){var g=this.getValue();return this._removeSliderEventHandlers(),e.call(this,this.element,this.options),d&&d.useCurrentValue===!0&&this.setValue(g),a&&(f===b?(a.data(this.element,b,this),a.data(this.element,c,this)):a.data(this.element,c,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(a,b){this.handle1.removeEventListener(a,b,!1),this.handle2.removeEventListener(a,b,!1)},_removeSliderEventHandlers:function(){if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(var a=this.ticksContainer.getElementsByClassName("slider-tick"),b=0;b0&&a.options.ticks_positions[c]||a._toPercentage(a.options.ticks[c])):f=a._toPercentage(e),d.value[0]=e,d.percentage[0]=f,a._setToolTipOnMouseOver(d),a._showTooltip()};return b.addEventListener("mouseenter",d,!1),d},addMouseLeave:function(a,b){var c=function(){a._hideTooltip()};return b.addEventListener("mouseleave",c,!1),c}}},_layout:function(){var a,b;if(a=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=a[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),b=this.options.formatter(this._state.value[0]),isNaN(b)?this.handle1.setAttribute("aria-valuetext",b):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=a[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),b=this.options.formatter(this._state.value[1]),isNaN(b)?this.handle2.setAttribute("aria-valuetext",b):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(var c=0;c0){var h,i="vertical"===this.options.orientation?"height":"width";h="vertical"===this.options.orientation?"marginTop":this.options.rtl?"marginRight":"marginLeft";var j=this._state.size/(this.options.ticks.length-1);if(this.tickLabelContainer){var k=0;if(0===this.options.ticks_positions.length)"vertical"!==this.options.orientation&&(this.tickLabelContainer.style[h]=-j/2+"px"),k=this.tickLabelContainer.offsetHeight;else for(l=0;lk&&(k=this.tickLabelContainer.childNodes[l].offsetHeight);"horizontal"===this.options.orientation&&(this.sliderElem.style.marginBottom=k+"px")}for(var l=0;l=a[0]&&m<=a[1]&&this._addClass(this.ticks[l],"in-selection"):"after"===this.options.selection&&m>=a[0]?this._addClass(this.ticks[l],"in-selection"):"before"===this.options.selection&&m<=a[0]&&this._addClass(this.ticks[l],"in-selection"),this.tickLabels[l]&&(this.tickLabels[l].style[i]=j+"px","vertical"!==this.options.orientation&&void 0!==this.options.ticks_positions[l]?(this.tickLabels[l].style.position="absolute",this.tickLabels[l].style[this.stylePos]=m+"%",this.tickLabels[l].style[h]=-j/2+"px"):"vertical"===this.options.orientation&&(this.options.rtl?this.tickLabels[l].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[l].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[h]=this.sliderElem.offsetWidth/2*-1+"px"),this._removeClass(this.tickLabels[l],"label-in-selection label-is-selection"),this.options.range?m>=a[0]&&m<=a[1]&&(this._addClass(this.tickLabels[l],"label-in-selection"),(m===a[0]||a[1])&&this._addClass(this.tickLabels[l],"label-is-selection")):("after"===this.options.selection&&m>=a[0]?this._addClass(this.tickLabels[l],"label-in-selection"):"before"===this.options.selection&&m<=a[0]&&this._addClass(this.tickLabels[l],"label-in-selection"),m===a[0]&&this._addClass(this.tickLabels[l],"label-is-selection")))}}var n;if(this.options.range){n=this.options.formatter(this._state.value),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=(a[1]+a[0])/2+"%";var o=this.options.formatter(this._state.value[0]);this._setText(this.tooltipInner_min,o);var p=this.options.formatter(this._state.value[1]);this._setText(this.tooltipInner_max,p),this.tooltip_min.style[this.stylePos]=a[0]+"%",this.tooltip_max.style[this.stylePos]=a[1]+"%"}else n=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,n),this.tooltip.style[this.stylePos]=a[0]+"%";if("vertical"===this.options.orientation)this.trackLow.style.top="0",this.trackLow.style.height=Math.min(a[0],a[1])+"%",this.trackSelection.style.top=Math.min(a[0],a[1])+"%",this.trackSelection.style.height=Math.abs(a[0]-a[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(a[0],a[1])-Math.abs(a[0]-a[1])+"%";else{"right"===this.stylePos?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(a[0],a[1])+"%","right"===this.stylePos?this.trackSelection.style.right=Math.min(a[0],a[1])+"%":this.trackSelection.style.left=Math.min(a[0],a[1])+"%",this.trackSelection.style.width=Math.abs(a[0]-a[1])+"%","right"===this.stylePos?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(a[0],a[1])-Math.abs(a[0]-a[1])+"%";var q=this.tooltip_min.getBoundingClientRect(),r=this.tooltip_max.getBoundingClientRect();"bottom"===this.options.tooltip_position?q.right>r.left?(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):q.right>r.left?(this._removeClass(this.tooltip_max,"top"),this._addClass(this.tooltip_max,"bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bottom"),this._addClass(this.tooltip_max,"top"),this.tooltip_max.style.top=this.tooltip_min.style.top)}},_createHighlightRange:function(a,b){return this._isHighlightRange(a,b)?a>b?{start:b,size:a-b}:{start:a,size:b-a}:null},_isHighlightRange:function(a,b){return a>=0&&100>=a&&b>=0&&100>=b?!0:!1},_resize:function(a){this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this._layout()},_removeProperty:function(a,b){a.style.removeProperty?a.style.removeProperty(b):a.style.removeAttribute(b)},_mousedown:function(a){if(!this._state.enabled)return!1;a.preventDefault&&a.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos];var b=this._getPercentage(a);if(this.options.range){var c=Math.abs(this._state.percentage[0]-b),d=Math.abs(this._state.percentage[1]-b);this._state.dragged=d>c?0:1,this._adjustPercentageForRangeSliders(b)}else this._state.dragged=0;this._state.percentage[this._state.dragged]=b,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0;var e=this._calculateValue();return this._trigger("slideStart",e),this.setValue(e,!1,!0),a.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0},_touchstart:function(a){this._mousedown(a)},_triggerFocusOnHandle:function(a){0===a&&this.handle1.focus(),1===a&&this.handle2.focus()},_keydown:function(a,b){if(!this._state.enabled)return!1;var c;switch(b.keyCode){case 37:case 40:c=-1;break;case 39:case 38:c=1}if(c){if(this.options.natural_arrow_keys){var d="horizontal"===this.options.orientation,e="vertical"===this.options.orientation,f=this.options.rtl,g=this.options.reversed;d?f?g||(c=-c):g&&(c=-c):e&&(g||(c=-c))}var h;if(this.ticksAreValid&&this.options.lock_to_ticks){var i=void 0;i=this.options.ticks.indexOf(this._state.value[a]),-1===i&&(i=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),i+=c,i=Math.max(0,Math.min(this.options.ticks.length-1,i)),h=this.options.ticks[i]}else h=this._state.value[a]+c*this.options.step;var j=this._toPercentage(h);if(this._state.keyCtrl=a,this.options.range){this._adjustPercentageForRangeSliders(j);var k=this._state.keyCtrl?this._state.value[0]:h,l=this._state.keyCtrl?h:this._state.value[1];h=[Math.max(this.options.min,Math.min(this.options.max,k)),Math.max(this.options.min,Math.min(this.options.max,l))]}else h=Math.max(this.options.min,Math.min(this.options.max,h));return this._trigger("slideStart",h),this.setValue(h,!0,!0),this._trigger("slideStop",h),this._pauseEvent(b),delete this._state.keyCtrl,!1}},_pauseEvent:function(a){a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault(),a.cancelBubble=!0,a.returnValue=!1},_mousemove:function(a){if(!this._state.enabled)return!1; -var b=this._getPercentage(a);this._adjustPercentageForRangeSliders(b),this._state.percentage[this._state.dragged]=b;var c=this._calculateValue(!0);return this.setValue(c,!0,!0),!1},_touchmove:function(a){void 0!==a.changedTouches&&a.preventDefault&&a.preventDefault()},_adjustPercentageForRangeSliders:function(a){if(this.options.range){var b=this._getNumDigitsAfterDecimalPlace(a);b=b?b-1:0;var c=this._applyToFixedAndParseFloat(a,b);0===this._state.dragged&&this._applyToFixedAndParseFloat(this._state.percentage[1],b)c?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):0===this._state.keyCtrl&&this._toPercentage(this._state.value[1])a&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus())}},_mouseup:function(a){if(!this._state.enabled)return!1;var b=this._getPercentage(a);this._adjustPercentageForRangeSliders(b),this._state.percentage[this._state.dragged]=b,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,this._state.over===!1&&this._hideTooltip();var c=this._calculateValue(!0);return this.setValue(c,!1,!0),this._trigger("slideStop",c),this._state.dragged=null,!1},_setValues:function(a,b){var c=0===a?0:100;this._state.percentage[a]!==c&&(b.data[a]=this._toValue(this._state.percentage[a]),b.data[a]=this._applyPrecision(b.data[a]))},_calculateValue:function(a){var b={};return this.options.range?(b.data=[this.options.min,this.options.max],this._setValues(0,b),this._setValues(1,b),a&&(b.data[0]=this._snapToClosestTick(b.data[0]),b.data[1]=this._snapToClosestTick(b.data[1]))):(b.data=this._toValue(this._state.percentage[0]),b.data=parseFloat(b.data),b.data=this._applyPrecision(b.data),a&&(b.data=this._snapToClosestTick(b.data))),b.data},_snapToClosestTick:function(a){for(var b=[a,1/0],c=0;ce&&(b=e,c=d)}return c},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}},a&&a.fn&&(a.fn.slider?(windowIsDefined&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),f=c):(a.bridget(b,d),f=b),a.bridget(c,d),a(function(){a("input[data-provide=slider]")[f]()}))}(a),d}); \ No newline at end of file diff --git a/plugins/bootstrap-slider/css/bootstrap-slider.css b/plugins/bootstrap-slider/css/bootstrap-slider.css deleted file mode 100644 index 203e41a5..00000000 --- a/plugins/bootstrap-slider/css/bootstrap-slider.css +++ /dev/null @@ -1,328 +0,0 @@ -/*! ======================================================= - VERSION 10.6.2 -========================================================= */ -/*! ========================================================= - * bootstrap-slider.js - * - * Maintainers: - * Kyle Kemp - * - Twitter: @seiyria - * - Github: seiyria - * Rohit Kalkur - * - Twitter: @Rovolutionary - * - Github: rovolution - * - * ========================================================= - * - * bootstrap-slider is released under the MIT License - * Copyright (c) 2019 Kyle Kemp, Rohit Kalkur, and contributors - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, - * copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following - * conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - * - * ========================================================= */ -.slider { - display: inline-block; - vertical-align: middle; - position: relative; -} -.slider.slider-horizontal { - width: 210px; - height: 20px; -} -.slider.slider-horizontal .slider-track { - height: 10px; - width: 100%; - margin-top: -5px; - top: 50%; - left: 0; -} -.slider.slider-horizontal .slider-selection, -.slider.slider-horizontal .slider-track-low, -.slider.slider-horizontal .slider-track-high { - height: 100%; - top: 0; - bottom: 0; -} -.slider.slider-horizontal .slider-tick, -.slider.slider-horizontal .slider-handle { - margin-left: -10px; -} -.slider.slider-horizontal .slider-tick.triangle, -.slider.slider-horizontal .slider-handle.triangle { - position: relative; - top: 50%; - -ms-transform: translateY(-50%); - transform: translateY(-50%); - border-width: 0 10px 10px 10px; - width: 0; - height: 0; - border-bottom-color: #2e6da4; - margin-top: 0; -} -.slider.slider-horizontal .slider-tick-container { - white-space: nowrap; - position: absolute; - top: 0; - left: 0; - width: 100%; -} -.slider.slider-horizontal .slider-tick-label-container { - white-space: nowrap; - margin-top: 20px; -} -.slider.slider-horizontal .slider-tick-label-container .slider-tick-label { - padding-top: 4px; - display: inline-block; - text-align: center; -} -.slider.slider-horizontal .tooltip { - -ms-transform: translateX(-50%); - transform: translateX(-50%); -} -.slider.slider-horizontal.slider-rtl .slider-track { - left: initial; - right: 0; -} -.slider.slider-horizontal.slider-rtl .slider-tick, -.slider.slider-horizontal.slider-rtl .slider-handle { - margin-left: initial; - margin-right: -10px; -} -.slider.slider-horizontal.slider-rtl .slider-tick-container { - left: initial; - right: 0; -} -.slider.slider-horizontal.slider-rtl .tooltip { - -ms-transform: translateX(50%); - transform: translateX(50%); -} -.slider.slider-vertical { - height: 210px; - width: 20px; -} -.slider.slider-vertical .slider-track { - width: 10px; - height: 100%; - left: 25%; - top: 0; -} -.slider.slider-vertical .slider-selection { - width: 100%; - left: 0; - top: 0; - bottom: 0; -} -.slider.slider-vertical .slider-track-low, -.slider.slider-vertical .slider-track-high { - width: 100%; - left: 0; - right: 0; -} -.slider.slider-vertical .slider-tick, -.slider.slider-vertical .slider-handle { - margin-top: -10px; -} -.slider.slider-vertical .slider-tick.triangle, -.slider.slider-vertical .slider-handle.triangle { - border-width: 10px 0 10px 10px; - width: 1px; - height: 1px; - border-left-color: #2e6da4; - border-right-color: #2e6da4; - margin-left: 0; - margin-right: 0; -} -.slider.slider-vertical .slider-tick-label-container { - white-space: nowrap; -} -.slider.slider-vertical .slider-tick-label-container .slider-tick-label { - padding-left: 4px; -} -.slider.slider-vertical .tooltip { - -ms-transform: translateY(-50%); - transform: translateY(-50%); -} -.slider.slider-vertical.slider-rtl .slider-track { - left: initial; - right: 25%; -} -.slider.slider-vertical.slider-rtl .slider-selection { - left: initial; - right: 0; -} -.slider.slider-vertical.slider-rtl .slider-tick.triangle, -.slider.slider-vertical.slider-rtl .slider-handle.triangle { - border-width: 10px 10px 10px 0; -} -.slider.slider-vertical.slider-rtl .slider-tick-label-container .slider-tick-label { - padding-left: initial; - padding-right: 4px; -} -.slider.slider-disabled .slider-handle { - background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%); - background-image: -o-linear-gradient(top, #dfdfdf 0%, #bebebe 100%); - background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0); - background-repeat: repeat-x; -} -.slider.slider-disabled .slider-track { - background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%); - background-image: -o-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%); - background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0); - background-repeat: repeat-x; - cursor: not-allowed; -} -.slider input { - display: none; -} -.slider .tooltip { - pointer-events: none; -} -.slider .tooltip.top { - margin-top: -36px; -} -.slider .tooltip-inner { - white-space: nowrap; - max-width: none; -} -.slider .hide { - display: none; -} -.slider-track { - position: absolute; - cursor: pointer; - background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%); - background-image: -o-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%); - background-image: linear-gradient(to bottom, #f5f5f5 0%, #f9f9f9 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); - background-repeat: repeat-x; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - border-radius: 4px; -} -.slider-selection { - position: absolute; - background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); - background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); - background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0); - background-repeat: repeat-x; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - border-radius: 4px; -} -.slider-selection.tick-slider-selection { - background-image: -webkit-linear-gradient(top, #8ac1ef 0%, #82b3de 100%); - background-image: -o-linear-gradient(top, #8ac1ef 0%, #82b3de 100%); - background-image: linear-gradient(to bottom, #8ac1ef 0%, #82b3de 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8ac1ef', endColorstr='#ff82b3de', GradientType=0); - background-repeat: repeat-x; -} -.slider-track-low, -.slider-track-high { - position: absolute; - background: transparent; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - border-radius: 4px; -} -.slider-handle { - position: absolute; - top: 0; - width: 20px; - height: 20px; - background-color: #337ab7; - background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%); - background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%); - background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0); - background-repeat: repeat-x; - filter: none; - -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); - box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); - border: 0px solid transparent; -} -.slider-handle:hover { - cursor: pointer; -} -.slider-handle.round { - border-radius: 50%; -} -.slider-handle.triangle { - background: transparent none; -} -.slider-handle.custom { - background: transparent none; -} -.slider-handle.custom::before { - line-height: 20px; - font-size: 20px; - content: '\2605'; - color: #726204; -} -.slider-tick { - position: absolute; - cursor: pointer; - width: 20px; - height: 20px; - background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); - background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%); - background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0); - background-repeat: repeat-x; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - filter: none; - opacity: 0.8; - border: 0px solid transparent; -} -.slider-tick.round { - border-radius: 50%; -} -.slider-tick.triangle { - background: transparent none; -} -.slider-tick.custom { - background: transparent none; -} -.slider-tick.custom::before { - line-height: 20px; - font-size: 20px; - content: '\2605'; - color: #726204; -} -.slider-tick.in-selection { - background-image: -webkit-linear-gradient(top, #8ac1ef 0%, #82b3de 100%); - background-image: -o-linear-gradient(top, #8ac1ef 0%, #82b3de 100%); - background-image: linear-gradient(to bottom, #8ac1ef 0%, #82b3de 100%); - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8ac1ef', endColorstr='#ff82b3de', GradientType=0); - background-repeat: repeat-x; - opacity: 1; -} diff --git a/plugins/bootstrap-slider/css/bootstrap-slider.min.css b/plugins/bootstrap-slider/css/bootstrap-slider.min.css deleted file mode 100644 index 578d3606..00000000 --- a/plugins/bootstrap-slider/css/bootstrap-slider.min.css +++ /dev/null @@ -1,41 +0,0 @@ -/*! ======================================================= - VERSION 10.6.2 -========================================================= */ -/*! ========================================================= - * bootstrap-slider.js - * - * Maintainers: - * Kyle Kemp - * - Twitter: @seiyria - * - Github: seiyria - * Rohit Kalkur - * - Twitter: @Rovolutionary - * - Github: rovolution - * - * ========================================================= - * - * bootstrap-slider is released under the MIT License - * Copyright (c) 2019 Kyle Kemp, Rohit Kalkur, and contributors - * - * Permission is hereby granted, free of charge, to any person - * obtaining a copy of this software and associated documentation - * files (the "Software"), to deal in the Software without - * restriction, including without limitation the rights to use, - * copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following - * conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - * OTHER DEALINGS IN THE SOFTWARE. - * - * ========================================================= */.slider{display:inline-block;vertical-align:middle;position:relative}.slider.slider-horizontal{width:210px;height:20px}.slider.slider-horizontal .slider-track{height:10px;width:100%;margin-top:-5px;top:50%;left:0}.slider.slider-horizontal .slider-selection,.slider.slider-horizontal .slider-track-low,.slider.slider-horizontal .slider-track-high{height:100%;top:0;bottom:0}.slider.slider-horizontal .slider-tick,.slider.slider-horizontal .slider-handle{margin-left:-10px}.slider.slider-horizontal .slider-tick.triangle,.slider.slider-horizontal .slider-handle.triangle{position:relative;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);border-width:0 10px 10px 10px;width:0;height:0;border-bottom-color:#2e6da4;margin-top:0}.slider.slider-horizontal .slider-tick-container{white-space:nowrap;position:absolute;top:0;left:0;width:100%}.slider.slider-horizontal .slider-tick-label-container{white-space:nowrap;margin-top:20px}.slider.slider-horizontal .slider-tick-label-container .slider-tick-label{padding-top:4px;display:inline-block;text-align:center}.slider.slider-horizontal .tooltip{-ms-transform:translateX(-50%);transform:translateX(-50%)}.slider.slider-horizontal.slider-rtl .slider-track{left:initial;right:0}.slider.slider-horizontal.slider-rtl .slider-tick,.slider.slider-horizontal.slider-rtl .slider-handle{margin-left:initial;margin-right:-10px}.slider.slider-horizontal.slider-rtl .slider-tick-container{left:initial;right:0}.slider.slider-horizontal.slider-rtl .tooltip{-ms-transform:translateX(50%);transform:translateX(50%)}.slider.slider-vertical{height:210px;width:20px}.slider.slider-vertical .slider-track{width:10px;height:100%;left:25%;top:0}.slider.slider-vertical .slider-selection{width:100%;left:0;top:0;bottom:0}.slider.slider-vertical .slider-track-low,.slider.slider-vertical .slider-track-high{width:100%;left:0;right:0}.slider.slider-vertical .slider-tick,.slider.slider-vertical .slider-handle{margin-top:-10px}.slider.slider-vertical .slider-tick.triangle,.slider.slider-vertical .slider-handle.triangle{border-width:10px 0 10px 10px;width:1px;height:1px;border-left-color:#2e6da4;border-right-color:#2e6da4;margin-left:0;margin-right:0}.slider.slider-vertical .slider-tick-label-container{white-space:nowrap}.slider.slider-vertical .slider-tick-label-container .slider-tick-label{padding-left:4px}.slider.slider-vertical .tooltip{-ms-transform:translateY(-50%);transform:translateY(-50%)}.slider.slider-vertical.slider-rtl .slider-track{left:initial;right:25%}.slider.slider-vertical.slider-rtl .slider-selection{left:initial;right:0}.slider.slider-vertical.slider-rtl .slider-tick.triangle,.slider.slider-vertical.slider-rtl .slider-handle.triangle{border-width:10px 10px 10px 0}.slider.slider-vertical.slider-rtl .slider-tick-label-container .slider-tick-label{padding-left:initial;padding-right:4px}.slider.slider-disabled .slider-handle{background-image:-webkit-linear-gradient(top,#dfdfdf 0,#bebebe 100%);background-image:-o-linear-gradient(top,#dfdfdf 0,#bebebe 100%);background-image:linear-gradient(to bottom,#dfdfdf 0,#bebebe 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf',endColorstr='#ffbebebe',GradientType=0);background-repeat:repeat-x}.slider.slider-disabled .slider-track{background-image:-webkit-linear-gradient(top,#e5e5e5 0,#e9e9e9 100%);background-image:-o-linear-gradient(top,#e5e5e5 0,#e9e9e9 100%);background-image:linear-gradient(to bottom,#e5e5e5 0,#e9e9e9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5',endColorstr='#ffe9e9e9',GradientType=0);background-repeat:repeat-x;cursor:not-allowed}.slider input{display:none}.slider .tooltip{pointer-events:none}.slider .tooltip.top{margin-top:-36px}.slider .tooltip-inner{white-space:nowrap;max-width:none}.slider .hide{display:none}.slider-track{position:absolute;cursor:pointer;background-image:-webkit-linear-gradient(top,#f5f5f5 0,#f9f9f9 100%);background-image:-o-linear-gradient(top,#f5f5f5 0,#f9f9f9 100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#f9f9f9 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5',endColorstr='#fff9f9f9',GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);border-radius:4px}.slider-selection{position:absolute;background-image:-webkit-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#f9f9f9 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9',endColorstr='#fff5f5f5',GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:4px}.slider-selection.tick-slider-selection{background-image:-webkit-linear-gradient(top,#8ac1ef 0,#82b3de 100%);background-image:-o-linear-gradient(top,#8ac1ef 0,#82b3de 100%);background-image:linear-gradient(to bottom,#8ac1ef 0,#82b3de 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8ac1ef',endColorstr='#ff82b3de',GradientType=0);background-repeat:repeat-x}.slider-track-low,.slider-track-high{position:absolute;background:transparent;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:4px}.slider-handle{position:absolute;top:0;width:20px;height:20px;background-color:#337ab7;background-image:-webkit-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:-o-linear-gradient(top,#337ab7 0,#2e6da4 100%);background-image:linear-gradient(to bottom,#337ab7 0,#2e6da4 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7',endColorstr='#ff2e6da4',GradientType=0);background-repeat:repeat-x;filter:none;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);border:0 solid transparent}.slider-handle:hover{cursor:pointer}.slider-handle.round{border-radius:50%}.slider-handle.triangle{background:transparent none}.slider-handle.custom{background:transparent none}.slider-handle.custom::before{line-height:20px;font-size:20px;content:'\2605';color:#726204}.slider-tick{position:absolute;cursor:pointer;width:20px;height:20px;background-image:-webkit-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:-o-linear-gradient(top,#f9f9f9 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#f9f9f9 0,#f5f5f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9',endColorstr='#fff5f5f5',GradientType=0);background-repeat:repeat-x;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;filter:none;opacity:.8;border:0 solid transparent}.slider-tick.round{border-radius:50%}.slider-tick.triangle{background:transparent none}.slider-tick.custom{background:transparent none}.slider-tick.custom::before{line-height:20px;font-size:20px;content:'\2605';color:#726204}.slider-tick.in-selection{background-image:-webkit-linear-gradient(top,#8ac1ef 0,#82b3de 100%);background-image:-o-linear-gradient(top,#8ac1ef 0,#82b3de 100%);background-image:linear-gradient(to bottom,#8ac1ef 0,#82b3de 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8ac1ef',endColorstr='#ff82b3de',GradientType=0);background-repeat:repeat-x;opacity:1} \ No newline at end of file diff --git a/plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.css b/plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.css deleted file mode 100644 index cb18a3b3..00000000 --- a/plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.css +++ /dev/null @@ -1,510 +0,0 @@ -/** - * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches. - * - * @version v3.3.4 - * @homepage https://bttstrp.github.io/bootstrap-switch - * @author Mattia Larentis (http://larentis.eu) - * @license Apache-2.0 - */ - -.clearfix { - *zoom: 1; -} -.clearfix:before, -.clearfix:after { - display: table; - content: ""; - line-height: 0; -} -.clearfix:after { - clear: both; -} -.hide-text { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} -.input-block-level { - display: block; - width: 100%; - min-height: 30px; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} -.bootstrap-switch { - display: inline-block; - direction: ltr; - cursor: pointer; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; - border: 1px solid; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - position: relative; - text-align: left; - overflow: hidden; - line-height: 8px; - z-index: 0; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -o-user-select: none; - user-select: none; - vertical-align: middle; - -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - -moz-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -} -.bootstrap-switch .bootstrap-switch-container { - display: inline-block; - top: 0; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - -webkit-transform: translate3d(0, 0, 0); - -moz-transform: translate3d(0, 0, 0); - -o-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} -.bootstrap-switch .bootstrap-switch-handle-on, -.bootstrap-switch .bootstrap-switch-handle-off, -.bootstrap-switch .bootstrap-switch-label { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - cursor: pointer; - display: inline-block !important; - padding-top: 4px; - padding-bottom: 4px; - padding-left: 8px; - padding-right: 8px; - font-size: 14px; - line-height: 20px; -} -.bootstrap-switch .bootstrap-switch-handle-on, -.bootstrap-switch .bootstrap-switch-handle-off { - text-align: center; - z-index: 1; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #005fcc; - background-image: -moz-linear-gradient(top, #0044cc, #08c); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0044cc), to(#08c)); - background-image: -webkit-linear-gradient(top, #0044cc, #08c); - background-image: -o-linear-gradient(top, #0044cc, #08c); - background-image: linear-gradient(to bottom, #0044cc, #08c); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0044cc', endColorstr='#ff0088cc', GradientType=0); - border-color: #08c #08c #005580; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - *background-color: #08c; - /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:hover, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:hover, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:focus, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:focus, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.disabled, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.disabled, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary[disabled], -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary[disabled] { - color: #fff; - background-color: #08c; - *background-color: #0077b3; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active { - background-color: #006699 \9; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #41a7c5; - background-image: -moz-linear-gradient(top, #2f96b4, #5bc0de); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#2f96b4), to(#5bc0de)); - background-image: -webkit-linear-gradient(top, #2f96b4, #5bc0de); - background-image: -o-linear-gradient(top, #2f96b4, #5bc0de); - background-image: linear-gradient(to bottom, #2f96b4, #5bc0de); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f96b4', endColorstr='#ff5bc0de', GradientType=0); - border-color: #5bc0de #5bc0de #28a1c5; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - *background-color: #5bc0de; - /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:hover, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:hover, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:focus, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:focus, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.disabled, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.disabled, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info[disabled], -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info[disabled] { - color: #fff; - background-color: #5bc0de; - *background-color: #46b8da; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active { - background-color: #31b0d5 \9; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #58b058; - background-image: -moz-linear-gradient(top, #51a351, #62c462); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#51a351), to(#62c462)); - background-image: -webkit-linear-gradient(top, #51a351, #62c462); - background-image: -o-linear-gradient(top, #51a351, #62c462); - background-image: linear-gradient(to bottom, #51a351, #62c462); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff51a351', endColorstr='#ff62c462', GradientType=0); - border-color: #62c462 #62c462 #3b9e3b; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - *background-color: #62c462; - /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:hover, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:hover, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:focus, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:focus, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.disabled, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.disabled, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[disabled], -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[disabled] { - color: #fff; - background-color: #62c462; - *background-color: #4fbd4f; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active { - background-color: #42b142 \9; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #f9a123; - background-image: -moz-linear-gradient(top, #f89406, #fbb450); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f89406), to(#fbb450)); - background-image: -webkit-linear-gradient(top, #f89406, #fbb450); - background-image: -o-linear-gradient(top, #f89406, #fbb450); - background-image: linear-gradient(to bottom, #f89406, #fbb450); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff89406', endColorstr='#fffbb450', GradientType=0); - border-color: #fbb450 #fbb450 #f89406; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - *background-color: #fbb450; - /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:hover, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:hover, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:focus, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:focus, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.disabled, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.disabled, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning[disabled], -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning[disabled] { - color: #fff; - background-color: #fbb450; - *background-color: #faa937; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active { - background-color: #fa9f1e \9; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger { - color: #fff; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #d14641; - background-image: -moz-linear-gradient(top, #bd362f, #ee5f5b); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bd362f), to(#ee5f5b)); - background-image: -webkit-linear-gradient(top, #bd362f, #ee5f5b); - background-image: -o-linear-gradient(top, #bd362f, #ee5f5b); - background-image: linear-gradient(to bottom, #bd362f, #ee5f5b); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbd362f', endColorstr='#ffee5f5b', GradientType=0); - border-color: #ee5f5b #ee5f5b #e51d18; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - *background-color: #ee5f5b; - /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:hover, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:hover, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:focus, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:focus, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.disabled, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.disabled, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger[disabled], -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger[disabled] { - color: #fff; - background-color: #ee5f5b; - *background-color: #ec4844; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active { - background-color: #e9322d \9; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default { - color: #333; - text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); - background-color: #f0f0f0; - background-image: -moz-linear-gradient(top, #e6e6e6, #fff); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#fff)); - background-image: -webkit-linear-gradient(top, #e6e6e6, #fff); - background-image: -o-linear-gradient(top, #e6e6e6, #fff); - background-image: linear-gradient(to bottom, #e6e6e6, #fff); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe6e6e6', endColorstr='#ffffffff', GradientType=0); - border-color: #fff #fff #d9d9d9; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - *background-color: #fff; - /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:hover, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:hover, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:focus, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:focus, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.disabled, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.disabled, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default[disabled], -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default[disabled] { - color: #333; - background-color: #fff; - *background-color: #f2f2f2; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active, -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active { - background-color: #e6e6e6 \9; -} -.bootstrap-switch .bootstrap-switch-label { - text-align: center; - margin-top: -1px; - margin-bottom: -1px; - z-index: 100; - border-left: 1px solid #ccc; - border-right: 1px solid #ccc; - color: #333; - text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); - background-color: #f5f5f5; - background-image: -moz-linear-gradient(top, #fff, #e6e6e6); - background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#e6e6e6)); - background-image: -webkit-linear-gradient(top, #fff, #e6e6e6); - background-image: -o-linear-gradient(top, #fff, #e6e6e6); - background-image: linear-gradient(to bottom, #fff, #e6e6e6); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); - border-color: #e6e6e6 #e6e6e6 #bfbfbf; - border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); - *background-color: #e6e6e6; - /* Darken IE7 buttons by default so they stand out more given they won't have borders */ - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -} -.bootstrap-switch .bootstrap-switch-label:hover, -.bootstrap-switch .bootstrap-switch-label:focus, -.bootstrap-switch .bootstrap-switch-label:active, -.bootstrap-switch .bootstrap-switch-label.active, -.bootstrap-switch .bootstrap-switch-label.disabled, -.bootstrap-switch .bootstrap-switch-label[disabled] { - color: #333; - background-color: #e6e6e6; - *background-color: #d9d9d9; -} -.bootstrap-switch .bootstrap-switch-label:active, -.bootstrap-switch .bootstrap-switch-label.active { - background-color: #cccccc \9; -} -.bootstrap-switch span::before { - content: "\200b"; -} -.bootstrap-switch .bootstrap-switch-handle-on { - -webkit-border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; - border-top-left-radius: 4px; - -webkit-border-bottom-left-radius: 4px; - -moz-border-radius-bottomleft: 4px; - border-bottom-left-radius: 4px; -} -.bootstrap-switch .bootstrap-switch-handle-off { - -webkit-border-top-right-radius: 4px; - -moz-border-radius-topright: 4px; - border-top-right-radius: 4px; - -webkit-border-bottom-right-radius: 4px; - -moz-border-radius-bottomright: 4px; - border-bottom-right-radius: 4px; -} -.bootstrap-switch input[type='radio'], -.bootstrap-switch input[type='checkbox'] { - position: absolute !important; - top: 0; - left: 0; - opacity: 0; - filter: alpha(opacity=0); - z-index: -1; - visibility: hidden; -} -.bootstrap-switch input[type='radio'].form-control, -.bootstrap-switch input[type='checkbox'].form-control { - height: auto; -} -.bootstrap-switch.bootstrap-switch-mini { - min-width: 71px; -} -.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label { - padding: 3px 6px; - font-size: 10px; - line-height: 9px; -} -.bootstrap-switch.bootstrap-switch-small { - min-width: 79px; -} -.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label { - padding: 3px 6px; - font-size: 12px; - line-height: 18px; -} -.bootstrap-switch.bootstrap-switch-large { - min-width: 120px; -} -.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label { - padding: 9px 12px; - font-size: 16px; - line-height: normal; -} -.bootstrap-switch.bootstrap-switch-disabled, -.bootstrap-switch.bootstrap-switch-readonly, -.bootstrap-switch.bootstrap-switch-indeterminate { - cursor: default !important; -} -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label { - opacity: 0.5; - filter: alpha(opacity=50); - cursor: default !important; -} -.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container { - -webkit-transition: margin-left 0.5s; - -moz-transition: margin-left 0.5s; - -o-transition: margin-left 0.5s; - transition: margin-left 0.5s; -} -.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on { - -webkit-border-top-left-radius: 0; - -moz-border-radius-topleft: 0; - border-top-left-radius: 0; - -webkit-border-bottom-left-radius: 0; - -moz-border-radius-bottomleft: 0; - border-bottom-left-radius: 0; - -webkit-border-top-right-radius: 4px; - -moz-border-radius-topright: 4px; - border-top-right-radius: 4px; - -webkit-border-bottom-right-radius: 4px; - -moz-border-radius-bottomright: 4px; - border-bottom-right-radius: 4px; -} -.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off { - -webkit-border-top-right-radius: 0; - -moz-border-radius-topright: 0; - border-top-right-radius: 0; - -webkit-border-bottom-right-radius: 0; - -moz-border-radius-bottomright: 0; - border-bottom-right-radius: 0; - -webkit-border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; - border-top-left-radius: 4px; - -webkit-border-bottom-left-radius: 4px; - -moz-border-radius-bottomleft: 4px; - border-bottom-left-radius: 4px; -} -.bootstrap-switch.bootstrap-switch-focused { - border-color: rgba(82, 168, 236, 0.8); - outline: 0; - outline: thin dotted \9; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6); - -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 168, 236, .6); -} -.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label { - -webkit-border-top-right-radius: 4px; - -moz-border-radius-topright: 4px; - border-top-right-radius: 4px; - -webkit-border-bottom-right-radius: 4px; - -moz-border-radius-bottomright: 4px; - border-bottom-right-radius: 4px; -} -.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label { - -webkit-border-top-left-radius: 4px; - -moz-border-radius-topleft: 4px; - border-top-left-radius: 4px; - -webkit-border-bottom-left-radius: 4px; - -moz-border-radius-bottomleft: 4px; - border-bottom-left-radius: 4px; -} diff --git a/plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.min.css b/plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.min.css deleted file mode 100644 index db24e2a4..00000000 --- a/plugins/bootstrap-switch/css/bootstrap2/bootstrap-switch.min.css +++ /dev/null @@ -1,10 +0,0 @@ -/** - * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches. - * - * @version v3.3.4 - * @homepage https://bttstrp.github.io/bootstrap-switch - * @author Mattia Larentis (http://larentis.eu) - * @license Apache-2.0 - */ - -.clearfix:after,.clearfix:before{display:table;content:"";line-height:0}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-switch{display:inline-block;direction:ltr;cursor:pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:1px solid;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);position:relative;text-align:left;overflow:hidden;line-height:8px;z-index:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;vertical-align:middle;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-moz-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bootstrap-switch .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px}.bootstrap-switch .bootstrap-switch-container{display:inline-block;top:0;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.bootstrap-switch .bootstrap-switch-handle-off,.bootstrap-switch .bootstrap-switch-handle-on,.bootstrap-switch .bootstrap-switch-label{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block!important;font-size:14px;line-height:20px;padding:4px 8px}.bootstrap-switch .bootstrap-switch-handle-off,.bootstrap-switch .bootstrap-switch-handle-on{text-align:center;z-index:1}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#005fcc;background-image:-moz-linear-gradient(top,#04c,#08c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#04c),to(#08c));background-image:-webkit-linear-gradient(top,#04c,#08c);background-image:-o-linear-gradient(top,#04c,#08c);background-image:linear-gradient(to bottom,#04c,#08c);background-repeat:repeat-x;border-color:#08c #08c #005580;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.disabled,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:focus,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:hover,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary[disabled],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.disabled,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:focus,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:hover,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary[disabled]{color:#fff;background-color:#08c}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:active{background-color:#069\9}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#41a7c5;background-image:-moz-linear-gradient(top,#2f96b4,#5bc0de);background-image:-webkit-gradient(linear,0 0,0 100%,from(#2f96b4),to(#5bc0de));background-image:-webkit-linear-gradient(top,#2f96b4,#5bc0de);background-image:-o-linear-gradient(top,#2f96b4,#5bc0de);background-image:linear-gradient(to bottom,#2f96b4,#5bc0de);background-repeat:repeat-x;border-color:#5bc0de #5bc0de #28a1c5;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.disabled,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:focus,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:hover,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info[disabled],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.disabled,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:focus,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:hover,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info[disabled]{color:#fff;background-color:#5bc0de}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info:active{background-color:#31b0d5\9}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#58b058;background-image:-moz-linear-gradient(top,#51a351,#62c462);background-image:-webkit-gradient(linear,0 0,0 100%,from(#51a351),to(#62c462));background-image:-webkit-linear-gradient(top,#51a351,#62c462);background-image:-o-linear-gradient(top,#51a351,#62c462);background-image:linear-gradient(to bottom,#51a351,#62c462);background-repeat:repeat-x;border-color:#62c462 #62c462 #3b9e3b;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.disabled,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:focus,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:hover,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success[disabled],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.disabled,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:focus,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:hover,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success[disabled]{color:#fff;background-color:#62c462}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success:active{background-color:#42b142\9}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#f9a123;background-image:-moz-linear-gradient(top,#f89406,#fbb450);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f89406),to(#fbb450));background-image:-webkit-linear-gradient(top,#f89406,#fbb450);background-image:-o-linear-gradient(top,#f89406,#fbb450);background-image:linear-gradient(to bottom,#f89406,#fbb450);background-repeat:repeat-x;border-color:#fbb450 #fbb450 #f89406;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.disabled,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:focus,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:hover,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning[disabled],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.disabled,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:focus,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:hover,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning[disabled]{color:#fff;background-color:#fbb450}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning:active{background-color:#fa9f1e\9}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#d14641;background-image:-moz-linear-gradient(top,#bd362f,#ee5f5b);background-image:-webkit-gradient(linear,0 0,0 100%,from(#bd362f),to(#ee5f5b));background-image:-webkit-linear-gradient(top,#bd362f,#ee5f5b);background-image:-o-linear-gradient(top,#bd362f,#ee5f5b);background-image:linear-gradient(to bottom,#bd362f,#ee5f5b);background-repeat:repeat-x;border-color:#ee5f5b #ee5f5b #e51d18;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.disabled,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:focus,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:hover,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger[disabled],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.disabled,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:focus,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:hover,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger[disabled]{color:#fff;background-color:#ee5f5b}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger:active{background-color:#e9322d\9}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default{color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f0f0f0;background-image:-moz-linear-gradient(top,#e6e6e6,#fff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e6e6e6),to(#fff));background-image:-webkit-linear-gradient(top,#e6e6e6,#fff);background-image:-o-linear-gradient(top,#e6e6e6,#fff);background-image:linear-gradient(to bottom,#e6e6e6,#fff);background-repeat:repeat-x;border-color:#fff #fff #d9d9d9;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.disabled,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:focus,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:hover,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default[disabled],.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.disabled,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:focus,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:hover,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default[disabled]{color:#333;background-color:#fff}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default.active,.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default:active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default.active,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default:active{background-color:#e6e6e6\9}.bootstrap-switch .bootstrap-switch-label{text-align:center;margin-top:-1px;margin-bottom:-1px;z-index:100;border-left:1px solid #ccc;border-right:1px solid #ccc;color:#333;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.bootstrap-switch .bootstrap-switch-label.active,.bootstrap-switch .bootstrap-switch-label.disabled,.bootstrap-switch .bootstrap-switch-label:active,.bootstrap-switch .bootstrap-switch-label:focus,.bootstrap-switch .bootstrap-switch-label:hover,.bootstrap-switch .bootstrap-switch-label[disabled]{color:#333;background-color:#e6e6e6}.bootstrap-switch .bootstrap-switch-label.active,.bootstrap-switch .bootstrap-switch-label:active{background-color:#ccc\9}.bootstrap-switch span::before{content:"\200b"}.bootstrap-switch .bootstrap-switch-handle-on{border-top-left-radius:4px;border-bottom-left-radius:4px}.bootstrap-switch .bootstrap-switch-handle-off{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px}.bootstrap-switch input[type=radio],.bootstrap-switch input[type=checkbox]{position:absolute!important;top:0;left:0;opacity:0;filter:alpha(opacity=0);z-index:-1;visibility:hidden}.bootstrap-switch input[type=radio].form-control,.bootstrap-switch input[type=checkbox].form-control{height:auto}.bootstrap-switch.bootstrap-switch-mini{min-width:71px}.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label{padding:3px 6px;font-size:10px;line-height:9px}.bootstrap-switch.bootstrap-switch-small{min-width:79px}.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label{padding:3px 6px;font-size:12px;line-height:18px}.bootstrap-switch.bootstrap-switch-large{min-width:120px}.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label{padding:9px 12px;font-size:16px;line-height:normal}.bootstrap-switch.bootstrap-switch-disabled,.bootstrap-switch.bootstrap-switch-indeterminate,.bootstrap-switch.bootstrap-switch-readonly{cursor:default!important}.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label{opacity:.5;filter:alpha(opacity=50);cursor:default!important}.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container{-webkit-transition:margin-left .5s;-moz-transition:margin-left .5s;-o-transition:margin-left .5s;transition:margin-left .5s}.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on{-webkit-border-top-left-radius:0;-moz-border-radius-topleft:0;-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-radius:0 4px 4px 0}.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off{-webkit-border-top-right-radius:0;-moz-border-radius-topright:0;-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-radius:4px 0 0 4px}.bootstrap-switch.bootstrap-switch-focused{border-color:rgba(82,168,236,.8);outline:0;outline:dotted thin\9;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(82,168,236,.6)}.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px}.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px} \ No newline at end of file diff --git a/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.css b/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.css deleted file mode 100644 index 608fc698..00000000 --- a/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.css +++ /dev/null @@ -1,187 +0,0 @@ -/** - * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches. - * - * @version v3.3.4 - * @homepage https://bttstrp.github.io/bootstrap-switch - * @author Mattia Larentis (http://larentis.eu) - * @license Apache-2.0 - */ - -.bootstrap-switch { - display: inline-block; - direction: ltr; - cursor: pointer; - border-radius: 4px; - border: 1px solid; - border-color: #ccc; - position: relative; - text-align: left; - overflow: hidden; - line-height: 8px; - z-index: 0; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - vertical-align: middle; - -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; - transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -} -.bootstrap-switch .bootstrap-switch-container { - display: inline-block; - top: 0; - border-radius: 4px; - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); -} -.bootstrap-switch .bootstrap-switch-handle-on, -.bootstrap-switch .bootstrap-switch-handle-off, -.bootstrap-switch .bootstrap-switch-label { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - cursor: pointer; - display: table-cell; - vertical-align: middle; - padding: 6px 12px; - font-size: 14px; - line-height: 20px; -} -.bootstrap-switch .bootstrap-switch-handle-on, -.bootstrap-switch .bootstrap-switch-handle-off { - text-align: center; - z-index: 1; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary { - color: #fff; - background: #337ab7; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info { - color: #fff; - background: #5bc0de; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success { - color: #fff; - background: #5cb85c; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning { - background: #f0ad4e; - color: #fff; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger { - color: #fff; - background: #d9534f; -} -.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default, -.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default { - color: #000; - background: #eeeeee; -} -.bootstrap-switch .bootstrap-switch-label { - text-align: center; - margin-top: -1px; - margin-bottom: -1px; - z-index: 100; - color: #333; - background: #fff; -} -.bootstrap-switch span::before { - content: "\200b"; -} -.bootstrap-switch .bootstrap-switch-handle-on { - border-bottom-left-radius: 3px; - border-top-left-radius: 3px; -} -.bootstrap-switch .bootstrap-switch-handle-off { - border-bottom-right-radius: 3px; - border-top-right-radius: 3px; -} -.bootstrap-switch input[type='radio'], -.bootstrap-switch input[type='checkbox'] { - position: absolute !important; - top: 0; - left: 0; - margin: 0; - z-index: -1; - opacity: 0; - filter: alpha(opacity=0); - visibility: hidden; -} -.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label { - padding: 1px 5px; - font-size: 12px; - line-height: 1.5; -} -.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label { - padding: 5px 10px; - font-size: 12px; - line-height: 1.5; -} -.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label { - padding: 6px 16px; - font-size: 18px; - line-height: 1.3333333; -} -.bootstrap-switch.bootstrap-switch-disabled, -.bootstrap-switch.bootstrap-switch-readonly, -.bootstrap-switch.bootstrap-switch-indeterminate { - cursor: default !important; -} -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on, -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off, -.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label { - opacity: 0.5; - filter: alpha(opacity=50); - cursor: default !important; -} -.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container { - -webkit-transition: margin-left 0.5s; - -o-transition: margin-left 0.5s; - transition: margin-left 0.5s; -} -.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on { - border-bottom-left-radius: 0; - border-top-left-radius: 0; - border-bottom-right-radius: 3px; - border-top-right-radius: 3px; -} -.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off { - border-bottom-right-radius: 0; - border-top-right-radius: 0; - border-bottom-left-radius: 3px; - border-top-left-radius: 3px; -} -.bootstrap-switch.bootstrap-switch-focused { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); - box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); -} -.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label { - border-bottom-right-radius: 3px; - border-top-right-radius: 3px; -} -.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label, -.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label { - border-bottom-left-radius: 3px; - border-top-left-radius: 3px; -} diff --git a/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css b/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css deleted file mode 100644 index 77006595..00000000 --- a/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css +++ /dev/null @@ -1,10 +0,0 @@ -/** - * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches. - * - * @version v3.3.4 - * @homepage https://bttstrp.github.io/bootstrap-switch - * @author Mattia Larentis (http://larentis.eu) - * @license Apache-2.0 - */ - -.bootstrap-switch{display:inline-block;direction:ltr;cursor:pointer;border-radius:4px;border:1px solid #ccc;position:relative;text-align:left;overflow:hidden;line-height:8px;z-index:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.bootstrap-switch .bootstrap-switch-container{display:inline-block;top:0;border-radius:4px;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.bootstrap-switch .bootstrap-switch-handle-off,.bootstrap-switch .bootstrap-switch-handle-on,.bootstrap-switch .bootstrap-switch-label{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:table-cell;vertical-align:middle;padding:6px 12px;font-size:14px;line-height:20px}.bootstrap-switch .bootstrap-switch-handle-off,.bootstrap-switch .bootstrap-switch-handle-on{text-align:center;z-index:1}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary{color:#fff;background:#337ab7}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-info,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info{color:#fff;background:#5bc0de}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success{color:#fff;background:#5cb85c}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-warning,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-warning{background:#f0ad4e;color:#fff}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-danger{color:#fff;background:#d9534f}.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default,.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-default{color:#000;background:#eee}.bootstrap-switch .bootstrap-switch-label{text-align:center;margin-top:-1px;margin-bottom:-1px;z-index:100;color:#333;background:#fff}.bootstrap-switch span::before{content:"\200b"}.bootstrap-switch .bootstrap-switch-handle-on{border-bottom-left-radius:3px;border-top-left-radius:3px}.bootstrap-switch .bootstrap-switch-handle-off{border-bottom-right-radius:3px;border-top-right-radius:3px}.bootstrap-switch input[type=radio],.bootstrap-switch input[type=checkbox]{position:absolute!important;top:0;left:0;margin:0;z-index:-1;opacity:0;filter:alpha(opacity=0);visibility:hidden}.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-mini .bootstrap-switch-label{padding:1px 5px;font-size:12px;line-height:1.5}.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-small .bootstrap-switch-label{padding:5px 10px;font-size:12px;line-height:1.5}.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-large .bootstrap-switch-label{padding:6px 16px;font-size:18px;line-height:1.3333333}.bootstrap-switch.bootstrap-switch-disabled,.bootstrap-switch.bootstrap-switch-indeterminate,.bootstrap-switch.bootstrap-switch-readonly{cursor:default!important}.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-disabled .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-indeterminate .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-off,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-handle-on,.bootstrap-switch.bootstrap-switch-readonly .bootstrap-switch-label{opacity:.5;filter:alpha(opacity=50);cursor:default!important}.bootstrap-switch.bootstrap-switch-animate .bootstrap-switch-container{-webkit-transition:margin-left .5s;-o-transition:margin-left .5s;transition:margin-left .5s}.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-on{border-radius:0 3px 3px 0}.bootstrap-switch.bootstrap-switch-inverse .bootstrap-switch-handle-off{border-radius:3px 0 0 3px}.bootstrap-switch.bootstrap-switch-focused{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-off .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-label{border-bottom-right-radius:3px;border-top-right-radius:3px}.bootstrap-switch.bootstrap-switch-inverse.bootstrap-switch-on .bootstrap-switch-label,.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label{border-bottom-left-radius:3px;border-top-left-radius:3px} \ No newline at end of file diff --git a/plugins/bootstrap-switch/js/bootstrap-switch.js b/plugins/bootstrap-switch/js/bootstrap-switch.js deleted file mode 100644 index 511f08fa..00000000 --- a/plugins/bootstrap-switch/js/bootstrap-switch.js +++ /dev/null @@ -1,784 +0,0 @@ -/** - * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches. - * - * @version v3.3.4 - * @homepage https://bttstrp.github.io/bootstrap-switch - * @author Mattia Larentis (http://larentis.eu) - * @license Apache-2.0 - */ - -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define(['jquery'], factory); - } else if (typeof exports !== "undefined") { - factory(require('jquery')); - } else { - var mod = { - exports: {} - }; - factory(global.jquery); - global.bootstrapSwitch = mod.exports; - } -})(this, function (_jquery) { - 'use strict'; - - var _jquery2 = _interopRequireDefault(_jquery); - - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; - } - - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - - var _createClass = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; - }(); - - var $ = _jquery2.default || window.jQuery || window.$; - - var BootstrapSwitch = function () { - function BootstrapSwitch(element) { - var _this = this; - - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - _classCallCheck(this, BootstrapSwitch); - - this.$element = $(element); - this.options = $.extend({}, $.fn.bootstrapSwitch.defaults, this._getElementOptions(), options); - this.prevOptions = {}; - this.$wrapper = $('
', { - class: function _class() { - var classes = []; - classes.push(_this.options.state ? 'on' : 'off'); - if (_this.options.size) { - classes.push(_this.options.size); - } - if (_this.options.disabled) { - classes.push('disabled'); - } - if (_this.options.readonly) { - classes.push('readonly'); - } - if (_this.options.indeterminate) { - classes.push('indeterminate'); - } - if (_this.options.inverse) { - classes.push('inverse'); - } - if (_this.$element.attr('id')) { - classes.push('id-' + _this.$element.attr('id')); - } - return classes.map(_this._getClass.bind(_this)).concat([_this.options.baseClass], _this._getClasses(_this.options.wrapperClass)).join(' '); - } - }); - this.$container = $('
', { class: this._getClass('container') }); - this.$on = $('', { - html: this.options.onText, - class: this._getClass('handle-on') + ' ' + this._getClass(this.options.onColor) - }); - this.$off = $('', { - html: this.options.offText, - class: this._getClass('handle-off') + ' ' + this._getClass(this.options.offColor) - }); - this.$label = $('', { - html: this.options.labelText, - class: this._getClass('label') - }); - - this.$element.on('init.bootstrapSwitch', this.options.onInit.bind(this, element)); - this.$element.on('switchChange.bootstrapSwitch', function () { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - if (_this.options.onSwitchChange.apply(element, args) === false) { - if (_this.$element.is(':radio')) { - $('[name="' + _this.$element.attr('name') + '"]').trigger('previousState.bootstrapSwitch', true); - } else { - _this.$element.trigger('previousState.bootstrapSwitch', true); - } - } - }); - - this.$container = this.$element.wrap(this.$container).parent(); - this.$wrapper = this.$container.wrap(this.$wrapper).parent(); - this.$element.before(this.options.inverse ? this.$off : this.$on).before(this.$label).before(this.options.inverse ? this.$on : this.$off); - - if (this.options.indeterminate) { - this.$element.prop('indeterminate', true); - } - - this._init(); - this._elementHandlers(); - this._handleHandlers(); - this._labelHandlers(); - this._formHandler(); - this._externalLabelHandler(); - this.$element.trigger('init.bootstrapSwitch', this.options.state); - } - - _createClass(BootstrapSwitch, [{ - key: 'setPrevOptions', - value: function setPrevOptions() { - this.prevOptions = _extends({}, this.options); - } - }, { - key: 'state', - value: function state(value, skip) { - if (typeof value === 'undefined') { - return this.options.state; - } - if (this.options.disabled || this.options.readonly || this.options.state && !this.options.radioAllOff && this.$element.is(':radio')) { - return this.$element; - } - if (this.$element.is(':radio')) { - $('[name="' + this.$element.attr('name') + '"]').trigger('setPreviousOptions.bootstrapSwitch'); - } else { - this.$element.trigger('setPreviousOptions.bootstrapSwitch'); - } - if (this.options.indeterminate) { - this.indeterminate(false); - } - this.$element.prop('checked', Boolean(value)).trigger('change.bootstrapSwitch', skip); - return this.$element; - } - }, { - key: 'toggleState', - value: function toggleState(skip) { - if (this.options.disabled || this.options.readonly) { - return this.$element; - } - if (this.options.indeterminate) { - this.indeterminate(false); - return this.state(true); - } else { - return this.$element.prop('checked', !this.options.state).trigger('change.bootstrapSwitch', skip); - } - } - }, { - key: 'size', - value: function size(value) { - if (typeof value === 'undefined') { - return this.options.size; - } - if (this.options.size != null) { - this.$wrapper.removeClass(this._getClass(this.options.size)); - } - if (value) { - this.$wrapper.addClass(this._getClass(value)); - } - this._width(); - this._containerPosition(); - this.options.size = value; - return this.$element; - } - }, { - key: 'animate', - value: function animate(value) { - if (typeof value === 'undefined') { - return this.options.animate; - } - if (this.options.animate === Boolean(value)) { - return this.$element; - } - return this.toggleAnimate(); - } - }, { - key: 'toggleAnimate', - value: function toggleAnimate() { - this.options.animate = !this.options.animate; - this.$wrapper.toggleClass(this._getClass('animate')); - return this.$element; - } - }, { - key: 'disabled', - value: function disabled(value) { - if (typeof value === 'undefined') { - return this.options.disabled; - } - if (this.options.disabled === Boolean(value)) { - return this.$element; - } - return this.toggleDisabled(); - } - }, { - key: 'toggleDisabled', - value: function toggleDisabled() { - this.options.disabled = !this.options.disabled; - this.$element.prop('disabled', this.options.disabled); - this.$wrapper.toggleClass(this._getClass('disabled')); - return this.$element; - } - }, { - key: 'readonly', - value: function readonly(value) { - if (typeof value === 'undefined') { - return this.options.readonly; - } - if (this.options.readonly === Boolean(value)) { - return this.$element; - } - return this.toggleReadonly(); - } - }, { - key: 'toggleReadonly', - value: function toggleReadonly() { - this.options.readonly = !this.options.readonly; - this.$element.prop('readonly', this.options.readonly); - this.$wrapper.toggleClass(this._getClass('readonly')); - return this.$element; - } - }, { - key: 'indeterminate', - value: function indeterminate(value) { - if (typeof value === 'undefined') { - return this.options.indeterminate; - } - if (this.options.indeterminate === Boolean(value)) { - return this.$element; - } - return this.toggleIndeterminate(); - } - }, { - key: 'toggleIndeterminate', - value: function toggleIndeterminate() { - this.options.indeterminate = !this.options.indeterminate; - this.$element.prop('indeterminate', this.options.indeterminate); - this.$wrapper.toggleClass(this._getClass('indeterminate')); - this._containerPosition(); - return this.$element; - } - }, { - key: 'inverse', - value: function inverse(value) { - if (typeof value === 'undefined') { - return this.options.inverse; - } - if (this.options.inverse === Boolean(value)) { - return this.$element; - } - return this.toggleInverse(); - } - }, { - key: 'toggleInverse', - value: function toggleInverse() { - this.$wrapper.toggleClass(this._getClass('inverse')); - var $on = this.$on.clone(true); - var $off = this.$off.clone(true); - this.$on.replaceWith($off); - this.$off.replaceWith($on); - this.$on = $off; - this.$off = $on; - this.options.inverse = !this.options.inverse; - return this.$element; - } - }, { - key: 'onColor', - value: function onColor(value) { - if (typeof value === 'undefined') { - return this.options.onColor; - } - if (this.options.onColor) { - this.$on.removeClass(this._getClass(this.options.onColor)); - } - this.$on.addClass(this._getClass(value)); - this.options.onColor = value; - return this.$element; - } - }, { - key: 'offColor', - value: function offColor(value) { - if (typeof value === 'undefined') { - return this.options.offColor; - } - if (this.options.offColor) { - this.$off.removeClass(this._getClass(this.options.offColor)); - } - this.$off.addClass(this._getClass(value)); - this.options.offColor = value; - return this.$element; - } - }, { - key: 'onText', - value: function onText(value) { - if (typeof value === 'undefined') { - return this.options.onText; - } - this.$on.html(value); - this._width(); - this._containerPosition(); - this.options.onText = value; - return this.$element; - } - }, { - key: 'offText', - value: function offText(value) { - if (typeof value === 'undefined') { - return this.options.offText; - } - this.$off.html(value); - this._width(); - this._containerPosition(); - this.options.offText = value; - return this.$element; - } - }, { - key: 'labelText', - value: function labelText(value) { - if (typeof value === 'undefined') { - return this.options.labelText; - } - this.$label.html(value); - this._width(); - this.options.labelText = value; - return this.$element; - } - }, { - key: 'handleWidth', - value: function handleWidth(value) { - if (typeof value === 'undefined') { - return this.options.handleWidth; - } - this.options.handleWidth = value; - this._width(); - this._containerPosition(); - return this.$element; - } - }, { - key: 'labelWidth', - value: function labelWidth(value) { - if (typeof value === 'undefined') { - return this.options.labelWidth; - } - this.options.labelWidth = value; - this._width(); - this._containerPosition(); - return this.$element; - } - }, { - key: 'baseClass', - value: function baseClass(value) { - return this.options.baseClass; - } - }, { - key: 'wrapperClass', - value: function wrapperClass(value) { - if (typeof value === 'undefined') { - return this.options.wrapperClass; - } - if (!value) { - value = $.fn.bootstrapSwitch.defaults.wrapperClass; - } - this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(' ')); - this.$wrapper.addClass(this._getClasses(value).join(' ')); - this.options.wrapperClass = value; - return this.$element; - } - }, { - key: 'radioAllOff', - value: function radioAllOff(value) { - if (typeof value === 'undefined') { - return this.options.radioAllOff; - } - var val = Boolean(value); - if (this.options.radioAllOff === val) { - return this.$element; - } - this.options.radioAllOff = val; - return this.$element; - } - }, { - key: 'onInit', - value: function onInit(value) { - if (typeof value === 'undefined') { - return this.options.onInit; - } - if (!value) { - value = $.fn.bootstrapSwitch.defaults.onInit; - } - this.options.onInit = value; - return this.$element; - } - }, { - key: 'onSwitchChange', - value: function onSwitchChange(value) { - if (typeof value === 'undefined') { - return this.options.onSwitchChange; - } - if (!value) { - value = $.fn.bootstrapSwitch.defaults.onSwitchChange; - } - this.options.onSwitchChange = value; - return this.$element; - } - }, { - key: 'destroy', - value: function destroy() { - var $form = this.$element.closest('form'); - if ($form.length) { - $form.off('reset.bootstrapSwitch').removeData('bootstrap-switch'); - } - this.$container.children().not(this.$element).remove(); - this.$element.unwrap().unwrap().off('.bootstrapSwitch').removeData('bootstrap-switch'); - return this.$element; - } - }, { - key: '_getElementOptions', - value: function _getElementOptions() { - return { - state: this.$element.is(':checked'), - size: this.$element.data('size'), - animate: this.$element.data('animate'), - disabled: this.$element.is(':disabled'), - readonly: this.$element.is('[readonly]'), - indeterminate: this.$element.data('indeterminate'), - inverse: this.$element.data('inverse'), - radioAllOff: this.$element.data('radio-all-off'), - onColor: this.$element.data('on-color'), - offColor: this.$element.data('off-color'), - onText: this.$element.data('on-text'), - offText: this.$element.data('off-text'), - labelText: this.$element.data('label-text'), - handleWidth: this.$element.data('handle-width'), - labelWidth: this.$element.data('label-width'), - baseClass: this.$element.data('base-class'), - wrapperClass: this.$element.data('wrapper-class') - }; - } - }, { - key: '_width', - value: function _width() { - var _this2 = this; - - var $handles = this.$on.add(this.$off).add(this.$label).css('width', ''); - var handleWidth = this.options.handleWidth === 'auto' ? Math.round(Math.max(this.$on.width(), this.$off.width())) : this.options.handleWidth; - $handles.width(handleWidth); - this.$label.width(function (index, width) { - if (_this2.options.labelWidth !== 'auto') { - return _this2.options.labelWidth; - } - if (width < handleWidth) { - return handleWidth; - } - return width; - }); - this._handleWidth = this.$on.outerWidth(); - this._labelWidth = this.$label.outerWidth(); - this.$container.width(this._handleWidth * 2 + this._labelWidth); - return this.$wrapper.width(this._handleWidth + this._labelWidth); - } - }, { - key: '_containerPosition', - value: function _containerPosition() { - var _this3 = this; - - var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.state; - var callback = arguments[1]; - - this.$container.css('margin-left', function () { - var values = [0, '-' + _this3._handleWidth + 'px']; - if (_this3.options.indeterminate) { - return '-' + _this3._handleWidth / 2 + 'px'; - } - if (state) { - if (_this3.options.inverse) { - return values[1]; - } else { - return values[0]; - } - } else { - if (_this3.options.inverse) { - return values[0]; - } else { - return values[1]; - } - } - }); - } - }, { - key: '_init', - value: function _init() { - var _this4 = this; - - var init = function init() { - _this4.setPrevOptions(); - _this4._width(); - _this4._containerPosition(); - setTimeout(function () { - if (_this4.options.animate) { - return _this4.$wrapper.addClass(_this4._getClass('animate')); - } - }, 50); - }; - if (this.$wrapper.is(':visible')) { - init(); - return; - } - var initInterval = window.setInterval(function () { - if (_this4.$wrapper.is(':visible')) { - init(); - return window.clearInterval(initInterval); - } - }, 50); - } - }, { - key: '_elementHandlers', - value: function _elementHandlers() { - var _this5 = this; - - return this.$element.on({ - 'setPreviousOptions.bootstrapSwitch': this.setPrevOptions.bind(this), - - 'previousState.bootstrapSwitch': function previousStateBootstrapSwitch() { - _this5.options = _this5.prevOptions; - if (_this5.options.indeterminate) { - _this5.$wrapper.addClass(_this5._getClass('indeterminate')); - } - _this5.$element.prop('checked', _this5.options.state).trigger('change.bootstrapSwitch', true); - }, - - 'change.bootstrapSwitch': function changeBootstrapSwitch(event, skip) { - event.preventDefault(); - event.stopImmediatePropagation(); - var state = _this5.$element.is(':checked'); - _this5._containerPosition(state); - if (state === _this5.options.state) { - return; - } - _this5.options.state = state; - _this5.$wrapper.toggleClass(_this5._getClass('off')).toggleClass(_this5._getClass('on')); - if (!skip) { - if (_this5.$element.is(':radio')) { - $('[name="' + _this5.$element.attr('name') + '"]').not(_this5.$element).prop('checked', false).trigger('change.bootstrapSwitch', true); - } - _this5.$element.trigger('switchChange.bootstrapSwitch', [state]); - } - }, - - 'focus.bootstrapSwitch': function focusBootstrapSwitch(event) { - event.preventDefault(); - _this5.$wrapper.addClass(_this5._getClass('focused')); - }, - - 'blur.bootstrapSwitch': function blurBootstrapSwitch(event) { - event.preventDefault(); - _this5.$wrapper.removeClass(_this5._getClass('focused')); - }, - - 'keydown.bootstrapSwitch': function keydownBootstrapSwitch(event) { - if (!event.which || _this5.options.disabled || _this5.options.readonly) { - return; - } - if (event.which === 37 || event.which === 39) { - event.preventDefault(); - event.stopImmediatePropagation(); - _this5.state(event.which === 39); - } - } - }); - } - }, { - key: '_handleHandlers', - value: function _handleHandlers() { - var _this6 = this; - - this.$on.on('click.bootstrapSwitch', function (event) { - event.preventDefault(); - event.stopPropagation(); - _this6.state(false); - return _this6.$element.trigger('focus.bootstrapSwitch'); - }); - return this.$off.on('click.bootstrapSwitch', function (event) { - event.preventDefault(); - event.stopPropagation(); - _this6.state(true); - return _this6.$element.trigger('focus.bootstrapSwitch'); - }); - } - }, { - key: '_labelHandlers', - value: function _labelHandlers() { - var _this7 = this; - - var handlers = { - click: function click(event) { - event.stopPropagation(); - }, - - - 'mousedown.bootstrapSwitch touchstart.bootstrapSwitch': function mousedownBootstrapSwitchTouchstartBootstrapSwitch(event) { - if (_this7._dragStart || _this7.options.disabled || _this7.options.readonly) { - return; - } - event.preventDefault(); - event.stopPropagation(); - _this7._dragStart = (event.pageX || event.originalEvent.touches[0].pageX) - parseInt(_this7.$container.css('margin-left'), 10); - if (_this7.options.animate) { - _this7.$wrapper.removeClass(_this7._getClass('animate')); - } - _this7.$element.trigger('focus.bootstrapSwitch'); - }, - - 'mousemove.bootstrapSwitch touchmove.bootstrapSwitch': function mousemoveBootstrapSwitchTouchmoveBootstrapSwitch(event) { - if (_this7._dragStart == null) { - return; - } - var difference = (event.pageX || event.originalEvent.touches[0].pageX) - _this7._dragStart; - event.preventDefault(); - if (difference < -_this7._handleWidth || difference > 0) { - return; - } - _this7._dragEnd = difference; - _this7.$container.css('margin-left', _this7._dragEnd + 'px'); - }, - - 'mouseup.bootstrapSwitch touchend.bootstrapSwitch': function mouseupBootstrapSwitchTouchendBootstrapSwitch(event) { - if (!_this7._dragStart) { - return; - } - event.preventDefault(); - if (_this7.options.animate) { - _this7.$wrapper.addClass(_this7._getClass('animate')); - } - if (_this7._dragEnd) { - var state = _this7._dragEnd > -(_this7._handleWidth / 2); - _this7._dragEnd = false; - _this7.state(_this7.options.inverse ? !state : state); - } else { - _this7.state(!_this7.options.state); - } - _this7._dragStart = false; - }, - - 'mouseleave.bootstrapSwitch': function mouseleaveBootstrapSwitch() { - _this7.$label.trigger('mouseup.bootstrapSwitch'); - } - }; - this.$label.on(handlers); - } - }, { - key: '_externalLabelHandler', - value: function _externalLabelHandler() { - var _this8 = this; - - var $externalLabel = this.$element.closest('label'); - $externalLabel.on('click', function (event) { - event.preventDefault(); - event.stopImmediatePropagation(); - if (event.target === $externalLabel[0]) { - _this8.toggleState(); - } - }); - } - }, { - key: '_formHandler', - value: function _formHandler() { - var $form = this.$element.closest('form'); - if ($form.data('bootstrap-switch')) { - return; - } - $form.on('reset.bootstrapSwitch', function () { - window.setTimeout(function () { - $form.find('input').filter(function () { - return $(this).data('bootstrap-switch'); - }).each(function () { - return $(this).bootstrapSwitch('state', this.checked); - }); - }, 1); - }).data('bootstrap-switch', true); - } - }, { - key: '_getClass', - value: function _getClass(name) { - return this.options.baseClass + '-' + name; - } - }, { - key: '_getClasses', - value: function _getClasses(classes) { - if (!$.isArray(classes)) { - return [this._getClass(classes)]; - } - return classes.map(this._getClass.bind(this)); - } - }]); - - return BootstrapSwitch; - }(); - - $.fn.bootstrapSwitch = function (option) { - for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - function reducer(ret, next) { - var $this = $(next); - var existingData = $this.data('bootstrap-switch'); - var data = existingData || new BootstrapSwitch(next, option); - if (!existingData) { - $this.data('bootstrap-switch', data); - } - if (typeof option === 'string') { - return data[option].apply(data, args); - } - return ret; - } - return Array.prototype.reduce.call(this, reducer, this); - }; - $.fn.bootstrapSwitch.Constructor = BootstrapSwitch; - $.fn.bootstrapSwitch.defaults = { - state: true, - size: null, - animate: true, - disabled: false, - readonly: false, - indeterminate: false, - inverse: false, - radioAllOff: false, - onColor: 'primary', - offColor: 'default', - onText: 'ON', - offText: 'OFF', - labelText: ' ', - handleWidth: 'auto', - labelWidth: 'auto', - baseClass: 'bootstrap-switch', - wrapperClass: 'wrapper', - onInit: function onInit() {}, - onSwitchChange: function onSwitchChange() {} - }; -}); diff --git a/plugins/bootstrap-switch/js/bootstrap-switch.min.js b/plugins/bootstrap-switch/js/bootstrap-switch.min.js deleted file mode 100644 index 1381dc11..00000000 --- a/plugins/bootstrap-switch/js/bootstrap-switch.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches. - * - * @version v3.3.4 - * @homepage https://bttstrp.github.io/bootstrap-switch - * @author Mattia Larentis (http://larentis.eu) - * @license Apache-2.0 - */ - -(function(a,b){if('function'==typeof define&&define.amd)define(['jquery'],b);else if('undefined'!=typeof exports)b(require('jquery'));else{b(a.jquery),a.bootstrapSwitch={exports:{}}.exports}})(this,function(a){'use strict';function c(j,k){if(!(j instanceof k))throw new TypeError('Cannot call a class as a function')}var d=function(j){return j&&j.__esModule?j:{default:j}}(a),e=Object.assign||function(j){for(var l,k=1;k',{class:function(){var o=[];return o.push(l.options.state?'on':'off'),l.options.size&&o.push(l.options.size),l.options.disabled&&o.push('disabled'),l.options.readonly&&o.push('readonly'),l.options.indeterminate&&o.push('indeterminate'),l.options.inverse&&o.push('inverse'),l.$element.attr('id')&&o.push('id-'+l.$element.attr('id')),o.map(l._getClass.bind(l)).concat([l.options.baseClass],l._getClasses(l.options.wrapperClass)).join(' ')}}),this.$container=g('
',{class:this._getClass('container')}),this.$on=g('',{html:this.options.onText,class:this._getClass('handle-on')+' '+this._getClass(this.options.onColor)}),this.$off=g('',{html:this.options.offText,class:this._getClass('handle-off')+' '+this._getClass(this.options.offColor)}),this.$label=g('',{html:this.options.labelText,class:this._getClass('label')}),this.$element.on('init.bootstrapSwitch',this.options.onInit.bind(this,k)),this.$element.on('switchChange.bootstrapSwitch',function(){for(var n=arguments.length,o=Array(n),p=0;p-(l._handleWidth/2);l._dragEnd=!1,l.state(l.options.inverse?!p:p)}else l.state(!l.options.state);l._dragStart=!1}},'mouseleave.bootstrapSwitch':function(){l.$label.trigger('mouseup.bootstrapSwitch')}})}},{key:'_externalLabelHandler',value:function(){var l=this,m=this.$element.closest('label');m.on('click',function(n){n.preventDefault(),n.stopImmediatePropagation(),n.target===m[0]&&l.toggleState()})}},{key:'_formHandler',value:function(){var l=this.$element.closest('form');l.data('bootstrap-switch')||l.on('reset.bootstrapSwitch',function(){window.setTimeout(function(){l.find('input').filter(function(){return g(this).data('bootstrap-switch')}).each(function(){return g(this).bootstrapSwitch('state',this.checked)})},1)}).data('bootstrap-switch',!0)}},{key:'_getClass',value:function(l){return this.options.baseClass+'-'+l}},{key:'_getClasses',value:function(l){return g.isArray(l)?l.map(this._getClass.bind(this)):[this._getClass(l)]}}]),j}();g.fn.bootstrapSwitch=function(j){for(var l=arguments.length,m=Array(1 .btn + .btn { - margin-left: 0; -} - -.bootstrap-duallistbox-container select { - width: 100%; - height: 300px; - padding: 0; -} - -.bootstrap-duallistbox-container .filter { - display: inline-block; - width: 100%; - height: 31px; - margin: 0 0 5px 0; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -.bootstrap-duallistbox-container .filter.placeholder { - color: #aaa; -} - -.bootstrap-duallistbox-container.moveonselect .move, -.bootstrap-duallistbox-container.moveonselect .remove { - display:none; -} - -.bootstrap-duallistbox-container.moveonselect .moveall, -.bootstrap-duallistbox-container.moveonselect .removeall { - width: 100%; -} diff --git a/plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css b/plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css deleted file mode 100644 index c957314b..00000000 --- a/plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css +++ /dev/null @@ -1 +0,0 @@ -.bootstrap-duallistbox-container .buttons{width:100%;margin-bottom:-1px}.bootstrap-duallistbox-container label{display:block}.bootstrap-duallistbox-container .info{display:inline-block;margin-bottom:5px;font-size:11px}.bootstrap-duallistbox-container .clear1,.bootstrap-duallistbox-container .clear2{display:none;font-size:10px}.bootstrap-duallistbox-container .box1.filtered .clear1,.bootstrap-duallistbox-container .box2.filtered .clear2{display:inline-block}.bootstrap-duallistbox-container .move,.bootstrap-duallistbox-container .remove{width:50%;box-sizing:content-box}.bootstrap-duallistbox-container .btn-group .btn{border-bottom-left-radius:0;border-bottom-right-radius:0}.bootstrap-duallistbox-container:not(.moveonselect) select{border-top-left-radius:0;border-top-right-radius:0}.bootstrap-duallistbox-container .moveall,.bootstrap-duallistbox-container .removeall{width:50%;box-sizing:content-box}.bootstrap-duallistbox-container.bs2compatible .btn-group>.btn+.btn{margin-left:0}.bootstrap-duallistbox-container select{width:100%;height:300px;padding:0}.bootstrap-duallistbox-container .filter{display:inline-block;width:100%;height:31px;margin:0 0 5px 0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap-duallistbox-container .filter.placeholder{color:#aaa}.bootstrap-duallistbox-container.moveonselect .move,.bootstrap-duallistbox-container.moveonselect .remove{display:none}.bootstrap-duallistbox-container.moveonselect .moveall,.bootstrap-duallistbox-container.moveonselect .removeall{width:100%} \ No newline at end of file diff --git a/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.js b/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.js deleted file mode 100644 index 725db664..00000000 --- a/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.js +++ /dev/null @@ -1,890 +0,0 @@ -/* - * Bootstrap Duallistbox - v4.0.1 - * A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices. - * http://www.virtuosoft.eu/code/bootstrap-duallistbox/ - * - * Made by István Ujj-Mészáros - * Under Apache License v2.0 License - */ -(function(factory) { - if (typeof define === 'function' && define.amd) { - define(['jquery'], factory); - } else if (typeof module === 'object' && module.exports) { - module.exports = function(root, jQuery) { - if (jQuery === undefined) { - if (typeof window !== 'undefined') { - jQuery = require('jquery'); - } - else { - jQuery = require('jquery')(root); - } - } - factory(jQuery); - return jQuery; - }; - } else { - factory(jQuery); - } -}(function($) { - // Create the defaults once - var pluginName = 'bootstrapDualListbox', - defaults = { - filterTextClear: 'show all', - filterPlaceHolder: 'Filter', - moveSelectedLabel: 'Move selected', - moveAllLabel: 'Move all', - removeSelectedLabel: 'Remove selected', - removeAllLabel: 'Remove all', - moveOnSelect: true, // true/false (forced true on androids, see the comment later) - moveOnDoubleClick: true, // true/false (forced false on androids, cause moveOnSelect is forced to true) - preserveSelectionOnMove: false, // 'all' / 'moved' / false - selectedListLabel: false, // 'string', false - nonSelectedListLabel: false, // 'string', false - helperSelectNamePostfix: '_helper', // 'string_of_postfix' / false - selectorMinimalHeight: 100, - showFilterInputs: true, // whether to show filter inputs - nonSelectedFilter: '', // string, filter the non selected options - selectedFilter: '', // string, filter the selected options - infoText: 'Showing all {0}', // text when all options are visible / false for no info text - infoTextFiltered: 'Filtered {0} from {1}', // when not all of the options are visible due to the filter - infoTextEmpty: 'Empty list', // when there are no options present in the list - filterOnValues: false, // filter by selector's values, boolean - sortByInputOrder: false, - eventMoveOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead - eventMoveAllOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead - eventRemoveOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead - eventRemoveAllOverride: false, // boolean, allows user to unbind default event behaviour and run their own instead - btnClass: 'btn-outline-secondary', // sets the button style class for all the buttons - btnMoveText: '>', // string, sets the text for the "Move" button - btnRemoveText: '<', // string, sets the text for the "Remove" button - btnMoveAllText: '>>', // string, sets the text for the "Move All" button - btnRemoveAllText: '<<' // string, sets the text for the "Remove All" button - }, - // Selections are invisible on android if the containing select is styled with CSS - // http://code.google.com/p/android/issues/detail?id=16922 - isBuggyAndroid = /android/i.test(navigator.userAgent.toLowerCase()); - - // The actual plugin constructor - function BootstrapDualListbox(element, options) { - this.element = $(element); - // jQuery has an extend method which merges the contents of two or - // more objects, storing the result in the first object. The first object - // is generally empty as we don't want to alter the default options for - // future instances of the plugin - this.settings = $.extend({}, defaults, options); - this._defaults = defaults; - this._name = pluginName; - this.init(); - } - - function triggerChangeEvent(dualListbox) { - dualListbox.element.trigger('change'); - } - - function updateSelectionStates(dualListbox) { - dualListbox.element.find('option').each(function(index, item) { - var $item = $(item); - if (typeof($item.data('original-index')) === 'undefined') { - $item.data('original-index', dualListbox.elementCount++); - } - if (typeof($item.data('_selected')) === 'undefined') { - $item.data('_selected', false); - } - }); - } - - function changeSelectionState(dualListbox, original_index, selected) { - dualListbox.element.find('option').each(function(index, item) { - var $item = $(item); - if ($item.data('original-index') === original_index) { - $item.prop('selected', selected); - if(selected){ - $item.attr('data-sortindex', dualListbox.sortIndex); - dualListbox.sortIndex++; - } else { - $item.removeAttr('data-sortindex'); - } - } - }); - } - - function formatString(s, args) { - console.log(s, args); - return s.replace(/{(\d+)}/g, function(match, number) { - return typeof args[number] !== 'undefined' ? args[number] : match; - }); - } - - function refreshInfo(dualListbox) { - if (!dualListbox.settings.infoText) { - return; - } - - var visible1 = dualListbox.elements.select1.find('option').length, - visible2 = dualListbox.elements.select2.find('option').length, - all1 = dualListbox.element.find('option').length - dualListbox.selectedElements, - all2 = dualListbox.selectedElements, - content = ''; - - if (all1 === 0) { - content = dualListbox.settings.infoTextEmpty; - } else if (visible1 === all1) { - content = formatString(dualListbox.settings.infoText, [visible1, all1]); - } else { - content = formatString(dualListbox.settings.infoTextFiltered, [visible1, all1]); - } - - dualListbox.elements.info1.html(content); - dualListbox.elements.box1.toggleClass('filtered', !(visible1 === all1 || all1 === 0)); - - if (all2 === 0) { - content = dualListbox.settings.infoTextEmpty; - } else if (visible2 === all2) { - content = formatString(dualListbox.settings.infoText, [visible2, all2]); - } else { - content = formatString(dualListbox.settings.infoTextFiltered, [visible2, all2]); - } - - dualListbox.elements.info2.html(content); - dualListbox.elements.box2.toggleClass('filtered', !(visible2 === all2 || all2 === 0)); - } - - function refreshSelects(dualListbox) { - dualListbox.selectedElements = 0; - - dualListbox.elements.select1.empty(); - dualListbox.elements.select2.empty(); - - dualListbox.element.find('option').each(function(index, item) { - var $item = $(item); - if ($item.prop('selected')) { - dualListbox.selectedElements++; - dualListbox.elements.select2.append($item.clone(true).prop('selected', $item.data('_selected'))); - } else { - dualListbox.elements.select1.append($item.clone(true).prop('selected', $item.data('_selected'))); - } - }); - - if (dualListbox.settings.showFilterInputs) { - filter(dualListbox, 1); - filter(dualListbox, 2); - } - refreshInfo(dualListbox); - } - - function filter(dualListbox, selectIndex) { - if (!dualListbox.settings.showFilterInputs) { - return; - } - - saveSelections(dualListbox, selectIndex); - - dualListbox.elements['select'+selectIndex].empty().scrollTop(0); - var regex, - allOptions = dualListbox.element.find('option'), - options = dualListbox.element; - - if (selectIndex === 1) { - options = allOptions.not(':selected'); - } else { - options = options.find('option:selected'); - } - - try { - regex = new RegExp($.trim(dualListbox.elements['filterInput'+selectIndex].val()), 'gi'); - } - catch(e) { - // a regex to match nothing - regex = new RegExp('/a^/', 'gi'); - } - - options.each(function(index, item) { - var $item = $(item), - isFiltered = true; - if (item.text.match(regex) || (dualListbox.settings.filterOnValues && $item.attr('value').match(regex) ) ) { - isFiltered = false; - dualListbox.elements['select'+selectIndex].append($item.clone(true).prop('selected', $item.data('_selected'))); - } - allOptions.eq($item.data('original-index')).data('filtered'+selectIndex, isFiltered); - }); - - refreshInfo(dualListbox); - } - - function saveSelections(dualListbox, selectIndex) { - var options = dualListbox.element.find('option'); - dualListbox.elements['select'+selectIndex].find('option').each(function(index, item) { - var $item = $(item); - options.eq($item.data('original-index')).data('_selected', $item.prop('selected')); - }); - } - - function sortOptionsByInputOrder(select){ - var selectopt = select.children('option'); - - selectopt.sort(function(a,b){ - var an = parseInt(a.getAttribute('data-sortindex')), - bn = parseInt(b.getAttribute('data-sortindex')); - - if(an > bn) { - return 1; - } - if(an < bn) { - return -1; - } - return 0; - }); - - selectopt.detach().appendTo(select); - } - - function sortOptions(select) { - select.find('option').sort(function(a, b) { - return ($(a).data('original-index') > $(b).data('original-index')) ? 1 : -1; - }).appendTo(select); - } - - function clearSelections(dualListbox) { - dualListbox.elements.select1.find('option').each(function() { - dualListbox.element.find('option').data('_selected', false); - }); - } - - function move(dualListbox) { - if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 1); - saveSelections(dualListbox, 2); - } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 1); - } - - dualListbox.elements.select1.find('option:selected').each(function(index, item) { - var $item = $(item); - if (!$item.data('filtered1')) { - changeSelectionState(dualListbox, $item.data('original-index'), true); - } - }); - - refreshSelects(dualListbox); - triggerChangeEvent(dualListbox); - if(dualListbox.settings.sortByInputOrder){ - sortOptionsByInputOrder(dualListbox.elements.select2); - } else { - sortOptions(dualListbox.elements.select2); - } - } - - function remove(dualListbox) { - if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 1); - saveSelections(dualListbox, 2); - } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 2); - } - - dualListbox.elements.select2.find('option:selected').each(function(index, item) { - var $item = $(item); - if (!$item.data('filtered2')) { - changeSelectionState(dualListbox, $item.data('original-index'), false); - } - }); - - refreshSelects(dualListbox); - triggerChangeEvent(dualListbox); - sortOptions(dualListbox.elements.select1); - if(dualListbox.settings.sortByInputOrder){ - sortOptionsByInputOrder(dualListbox.elements.select2); - } - } - - function moveAll(dualListbox) { - if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 1); - saveSelections(dualListbox, 2); - } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 1); - } - - dualListbox.element.find('option').each(function(index, item) { - var $item = $(item); - if (!$item.data('filtered1')) { - $item.prop('selected', true); - $item.attr('data-sortindex', dualListbox.sortIndex); - dualListbox.sortIndex++; - } - }); - - refreshSelects(dualListbox); - triggerChangeEvent(dualListbox); - } - - function removeAll(dualListbox) { - if (dualListbox.settings.preserveSelectionOnMove === 'all' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 1); - saveSelections(dualListbox, 2); - } else if (dualListbox.settings.preserveSelectionOnMove === 'moved' && !dualListbox.settings.moveOnSelect) { - saveSelections(dualListbox, 2); - } - - dualListbox.element.find('option').each(function(index, item) { - var $item = $(item); - if (!$item.data('filtered2')) { - $item.prop('selected', false); - $item.removeAttr('data-sortindex'); - } - }); - - refreshSelects(dualListbox); - triggerChangeEvent(dualListbox); - } - - function bindEvents(dualListbox) { - dualListbox.elements.form.submit(function(e) { - if (dualListbox.elements.filterInput1.is(':focus')) { - e.preventDefault(); - dualListbox.elements.filterInput1.focusout(); - } else if (dualListbox.elements.filterInput2.is(':focus')) { - e.preventDefault(); - dualListbox.elements.filterInput2.focusout(); - } - }); - - dualListbox.element.on('bootstrapDualListbox.refresh', function(e, mustClearSelections){ - dualListbox.refresh(mustClearSelections); - }); - - dualListbox.elements.filterClear1.on('click', function() { - dualListbox.setNonSelectedFilter('', true); - }); - - dualListbox.elements.filterClear2.on('click', function() { - dualListbox.setSelectedFilter('', true); - }); - - if (dualListbox.settings.eventMoveOverride === false) { - dualListbox.elements.moveButton.on('click', function() { - move(dualListbox); - }); - } - - if (dualListbox.settings.eventMoveAllOverride === false) { - dualListbox.elements.moveAllButton.on('click', function() { - moveAll(dualListbox); - }); - } - - if (dualListbox.settings.eventRemoveOverride === false) { - dualListbox.elements.removeButton.on('click', function() { - remove(dualListbox); - }); - } - - if (dualListbox.settings.eventRemoveAllOverride === false) { - dualListbox.elements.removeAllButton.on('click', function() { - removeAll(dualListbox); - }); - } - - dualListbox.elements.filterInput1.on('change keyup', function() { - filter(dualListbox, 1); - }); - - dualListbox.elements.filterInput2.on('change keyup', function() { - filter(dualListbox, 2); - }); - } - - BootstrapDualListbox.prototype = { - init: function () { - // Add the custom HTML template - this.container = $('' + - '
' + - '
' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - '
' + - ' ' + - ' ' + - '
' + - ' ' + - '
' + - '
' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - ' ' + - '
' + - ' ' + - ' ' + - '
' + - ' ' + - '
' + - '
') - .insertBefore(this.element); - - // Cache the inner elements - this.elements = { - originalSelect: this.element, - box1: $('.box1', this.container), - box2: $('.box2', this.container), - filterInput1: $('.box1 .filter', this.container), - filterInput2: $('.box2 .filter', this.container), - filterClear1: $('.box1 .clear1', this.container), - filterClear2: $('.box2 .clear2', this.container), - label1: $('.box1 > label', this.container), - label2: $('.box2 > label', this.container), - info1: $('.box1 .info', this.container), - info2: $('.box2 .info', this.container), - select1: $('.box1 select', this.container), - select2: $('.box2 select', this.container), - moveButton: $('.box1 .move', this.container), - removeButton: $('.box2 .remove', this.container), - moveAllButton: $('.box1 .moveall', this.container), - removeAllButton: $('.box2 .removeall', this.container), - form: $($('.box1 .filter', this.container)[0].form) - }; - - // Set select IDs - this.originalSelectName = this.element.attr('name') || ''; - var select1Id = 'bootstrap-duallistbox-nonselected-list_' + this.originalSelectName, - select2Id = 'bootstrap-duallistbox-selected-list_' + this.originalSelectName; - this.elements.select1.attr('id', select1Id); - this.elements.select2.attr('id', select2Id); - this.elements.label1.attr('for', select1Id); - this.elements.label2.attr('for', select2Id); - - // Apply all settings - this.selectedElements = 0; - this.sortIndex = 0; - this.elementCount = 0; - this.setFilterTextClear(this.settings.filterTextClear); - this.setFilterPlaceHolder(this.settings.filterPlaceHolder); - this.setMoveSelectedLabel(this.settings.moveSelectedLabel); - this.setMoveAllLabel(this.settings.moveAllLabel); - this.setRemoveSelectedLabel(this.settings.removeSelectedLabel); - this.setRemoveAllLabel(this.settings.removeAllLabel); - this.setMoveOnSelect(this.settings.moveOnSelect); - this.setMoveOnDoubleClick(this.settings.moveOnDoubleClick); - this.setPreserveSelectionOnMove(this.settings.preserveSelectionOnMove); - this.setSelectedListLabel(this.settings.selectedListLabel); - this.setNonSelectedListLabel(this.settings.nonSelectedListLabel); - this.setHelperSelectNamePostfix(this.settings.helperSelectNamePostfix); - this.setSelectOrMinimalHeight(this.settings.selectorMinimalHeight); - - updateSelectionStates(this); - - this.setShowFilterInputs(this.settings.showFilterInputs); - this.setNonSelectedFilter(this.settings.nonSelectedFilter); - this.setSelectedFilter(this.settings.selectedFilter); - this.setInfoText(this.settings.infoText); - this.setInfoTextFiltered(this.settings.infoTextFiltered); - this.setInfoTextEmpty(this.settings.infoTextEmpty); - this.setFilterOnValues(this.settings.filterOnValues); - this.setSortByInputOrder(this.settings.sortByInputOrder); - this.setEventMoveOverride(this.settings.eventMoveOverride); - this.setEventMoveAllOverride(this.settings.eventMoveAllOverride); - this.setEventRemoveOverride(this.settings.eventRemoveOverride); - this.setEventRemoveAllOverride(this.settings.eventRemoveAllOverride); - this.setBtnClass(this.settings.btnClass); - this.setBtnMoveText(this.settings.btnMoveText); - this.setBtnRemoveText(this.settings.btnRemoveText); - this.setBtnMoveAllText(this.settings.btnMoveAllText); - this.setBtnRemoveAllText(this.settings.btnRemoveAllText); - - // Hide the original select - this.element.hide(); - - bindEvents(this); - refreshSelects(this); - - return this.element; - }, - setFilterTextClear: function(value, refresh) { - this.settings.filterTextClear = value; - this.elements.filterClear1.html(value); - this.elements.filterClear2.html(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setFilterPlaceHolder: function(value, refresh) { - this.settings.filterPlaceHolder = value; - this.elements.filterInput1.attr('placeholder', value); - this.elements.filterInput2.attr('placeholder', value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setMoveSelectedLabel: function(value, refresh) { - this.settings.moveSelectedLabel = value; - this.elements.moveButton.attr('title', value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setMoveAllLabel: function(value, refresh) { - this.settings.moveAllLabel = value; - this.elements.moveAllButton.attr('title', value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setRemoveSelectedLabel: function(value, refresh) { - this.settings.removeSelectedLabel = value; - this.elements.removeButton.attr('title', value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setRemoveAllLabel: function(value, refresh) { - this.settings.removeAllLabel = value; - this.elements.removeAllButton.attr('title', value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setMoveOnSelect: function(value, refresh) { - if (isBuggyAndroid) { - value = true; - } - this.settings.moveOnSelect = value; - if (this.settings.moveOnSelect) { - this.container.addClass('moveonselect'); - var self = this; - this.elements.select1.on('change', function() { - move(self); - }); - this.elements.select2.on('change', function() { - remove(self); - }); - this.elements.moveButton.detach(); - this.elements.removeButton.detach(); - } else { - this.container.removeClass('moveonselect'); - this.elements.select1.off('change'); - this.elements.select2.off('change'); - this.elements.moveButton.insertAfter(this.elements.moveAllButton); - this.elements.removeButton.insertBefore(this.elements.removeAllButton); - } - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setMoveOnDoubleClick: function(value, refresh) { - if (isBuggyAndroid) { - value = false; - } - this.settings.moveOnDoubleClick = value; - if (this.settings.moveOnDoubleClick) { - this.container.addClass('moveondoubleclick'); - var self = this; - this.elements.select1.on('dblclick', function() { - move(self); - }); - this.elements.select2.on('dblclick', function() { - remove(self); - }); - } else { - this.container.removeClass('moveondoubleclick'); - this.elements.select1.off('dblclick'); - this.elements.select2.off('dblclick'); - } - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setPreserveSelectionOnMove: function(value, refresh) { - // We are forcing to move on select and disabling preserveSelectionOnMove on Android - if (isBuggyAndroid) { - value = false; - } - this.settings.preserveSelectionOnMove = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setSelectedListLabel: function(value, refresh) { - this.settings.selectedListLabel = value; - if (value) { - this.elements.label2.show().html(value); - } else { - this.elements.label2.hide().html(value); - } - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setNonSelectedListLabel: function(value, refresh) { - this.settings.nonSelectedListLabel = value; - if (value) { - this.elements.label1.show().html(value); - } else { - this.elements.label1.hide().html(value); - } - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setHelperSelectNamePostfix: function(value, refresh) { - this.settings.helperSelectNamePostfix = value; - if (value) { - this.elements.select1.attr('name', this.originalSelectName + value + '1'); - this.elements.select2.attr('name', this.originalSelectName + value + '2'); - } else { - this.elements.select1.removeAttr('name'); - this.elements.select2.removeAttr('name'); - } - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setSelectOrMinimalHeight: function(value, refresh) { - this.settings.selectorMinimalHeight = value; - var height = this.element.height(); - if (this.element.height() < value) { - height = value; - } - this.elements.select1.height(height); - this.elements.select2.height(height); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setShowFilterInputs: function(value, refresh) { - if (!value) { - this.setNonSelectedFilter(''); - this.setSelectedFilter(''); - refreshSelects(this); - this.elements.filterInput1.hide(); - this.elements.filterInput2.hide(); - } else { - this.elements.filterInput1.show(); - this.elements.filterInput2.show(); - } - this.settings.showFilterInputs = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setNonSelectedFilter: function(value, refresh) { - if (this.settings.showFilterInputs) { - this.settings.nonSelectedFilter = value; - this.elements.filterInput1.val(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - } - }, - setSelectedFilter: function(value, refresh) { - if (this.settings.showFilterInputs) { - this.settings.selectedFilter = value; - this.elements.filterInput2.val(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - } - }, - setInfoText: function(value, refresh) { - this.settings.infoText = value; - if (value) { - this.elements.info1.show(); - this.elements.info2.show(); - } else { - this.elements.info1.hide(); - this.elements.info2.hide(); - } - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setInfoTextFiltered: function(value, refresh) { - this.settings.infoTextFiltered = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setInfoTextEmpty: function(value, refresh) { - this.settings.infoTextEmpty = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setFilterOnValues: function(value, refresh) { - this.settings.filterOnValues = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setSortByInputOrder: function(value, refresh){ - this.settings.sortByInputOrder = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setEventMoveOverride: function(value, refresh) { - this.settings.eventMoveOverride = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setEventMoveAllOverride: function(value, refresh) { - this.settings.eventMoveAllOverride = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setEventRemoveOverride: function(value, refresh) { - this.settings.eventRemoveOverride = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setEventRemoveAllOverride: function(value, refresh) { - this.settings.eventRemoveAllOverride = value; - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setBtnClass: function(value, refresh) { - this.settings.btnClass = value; - this.elements.moveButton.attr('class', 'btn move').addClass(value); - this.elements.removeButton.attr('class', 'btn remove').addClass(value); - this.elements.moveAllButton.attr('class', 'btn moveall').addClass(value); - this.elements.removeAllButton.attr('class', 'btn removeall').addClass(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setBtnMoveText: function(value, refresh) { - this.settings.btnMoveText = value; - this.elements.moveButton.html(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setBtnRemoveText: function(value, refresh) { - this.settings.btnMoveText = value; - this.elements.removeButton.html(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setBtnMoveAllText: function(value, refresh) { - this.settings.btnMoveText = value; - this.elements.moveAllButton.html(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - setBtnRemoveAllText: function(value, refresh) { - this.settings.btnMoveText = value; - this.elements.removeAllButton.html(value); - if (refresh) { - refreshSelects(this); - } - return this.element; - }, - getContainer: function() { - return this.container; - }, - refresh: function(mustClearSelections) { - updateSelectionStates(this); - - if (!mustClearSelections) { - saveSelections(this, 1); - saveSelections(this, 2); - } else { - clearSelections(this); - } - - refreshSelects(this); - }, - destroy: function() { - this.container.remove(); - this.element.show(); - $.data(this, 'plugin_' + pluginName, null); - return this.element; - } - }; - - // A really lightweight plugin wrapper around the constructor, - // preventing against multiple instantiations - $.fn[ pluginName ] = function (options) { - var args = arguments; - - // Is the first parameter an object (options), or was omitted, instantiate a new instance of the plugin. - if (options === undefined || typeof options === 'object') { - return this.each(function () { - // If this is not a select - if (!$(this).is('select')) { - $(this).find('select').each(function(index, item) { - // For each nested select, instantiate the Dual List Box - $(item).bootstrapDualListbox(options); - }); - } else if (!$.data(this, 'plugin_' + pluginName)) { - // Only allow the plugin to be instantiated once so we check that the element has no plugin instantiation yet - - // if it has no instance, create a new one, pass options to our plugin constructor, - // and store the plugin instance in the elements jQuery data object. - $.data(this, 'plugin_' + pluginName, new BootstrapDualListbox(this, options)); - } - }); - // If the first parameter is a string and it doesn't start with an underscore or "contains" the `init`-function, - // treat this as a call to a public method. - } else if (typeof options === 'string' && options[0] !== '_' && options !== 'init') { - - // Cache the method call to make it possible to return a value - var returns; - - this.each(function () { - var instance = $.data(this, 'plugin_' + pluginName); - // Tests that there's already a plugin-instance and checks that the requested public method exists - if (instance instanceof BootstrapDualListbox && typeof instance[options] === 'function') { - // Call the method of our plugin instance, and pass it the supplied arguments. - returns = instance[options].apply(instance, Array.prototype.slice.call(args, 1)); - } - }); - - // If the earlier cached method gives a value back return the value, - // otherwise return this to preserve chainability. - return returns !== undefined ? returns : this; - } - - }; - -})); diff --git a/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js b/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js deleted file mode 100644 index 28ffbe28..00000000 --- a/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - * Bootstrap Duallistbox - v4.0.1 - * A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices. - * http://www.virtuosoft.eu/code/bootstrap-duallistbox/ - * - * Made by István Ujj-Mészáros - * Under Apache License v2.0 License - */ - -!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(a){var i="bootstrapDualListbox",n={filterTextClear:"show all",filterPlaceHolder:"Filter",moveSelectedLabel:"Move selected",moveAllLabel:"Move all",removeSelectedLabel:"Remove selected",removeAllLabel:"Remove all",moveOnSelect:!0,moveOnDoubleClick:!0,preserveSelectionOnMove:!1,selectedListLabel:!1,nonSelectedListLabel:!1,helperSelectNamePostfix:"_helper",selectorMinimalHeight:100,showFilterInputs:!0,nonSelectedFilter:"",selectedFilter:"",infoText:"Showing all {0}",infoTextFiltered:'Filtered {0} from {1}',infoTextEmpty:"Empty list",filterOnValues:!1,sortByInputOrder:!1,eventMoveOverride:!1,eventMoveAllOverride:!1,eventRemoveOverride:!1,eventRemoveAllOverride:!1,btnClass:"btn-outline-secondary",btnMoveText:">",btnRemoveText:"<",btnMoveAllText:">>",btnRemoveAllText:"<<"},s=/android/i.test(navigator.userAgent.toLowerCase());function l(e,t){this.element=a(e),this.settings=a.extend({},n,t),this._defaults=n,this._name=i,this.init()}function t(e){e.element.trigger("change")}function o(s){s.element.find("option").each(function(e,t){var n=a(t);void 0===n.data("original-index")&&n.data("original-index",s.elementCount++),void 0===n.data("_selected")&&n.data("_selected",!1)})}function r(s,i,l){s.element.find("option").each(function(e,t){var n=a(t);n.data("original-index")===i&&(n.prop("selected",l),l?(n.attr("data-sortindex",s.sortIndex),s.sortIndex++):n.removeAttr("data-sortindex"))})}function c(e,n){return console.log(e,n),e.replace(/{(\d+)}/g,function(e,t){return void 0!==n[t]?n[t]:e})}function h(e){if(e.settings.infoText){var t=e.elements.select1.find("option").length,n=e.elements.select2.find("option").length,s=e.element.find("option").length-e.selectedElements,i=e.selectedElements,l="";l=0===s?e.settings.infoTextEmpty:c(t===s?e.settings.infoText:e.settings.infoTextFiltered,[t,s]),e.elements.info1.html(l),e.elements.box1.toggleClass("filtered",!(t===s||0===s)),l=0===i?e.settings.infoTextEmpty:c(n===i?e.settings.infoText:e.settings.infoTextFiltered,[n,i]),e.elements.info2.html(l),e.elements.box2.toggleClass("filtered",!(n===i||0===i))}}function m(s){s.selectedElements=0,s.elements.select1.empty(),s.elements.select2.empty(),s.element.find("option").each(function(e,t){var n=a(t);n.prop("selected")?(s.selectedElements++,s.elements.select2.append(n.clone(!0).prop("selected",n.data("_selected")))):s.elements.select1.append(n.clone(!0).prop("selected",n.data("_selected")))}),s.settings.showFilterInputs&&(e(s,1),e(s,2)),h(s)}function e(i,l){if(i.settings.showFilterInputs){d(i,l),i.elements["select"+l].empty().scrollTop(0);var o,r=i.element.find("option"),e=i.element;e=1===l?r.not(":selected"):e.find("option:selected");try{o=new RegExp(a.trim(i.elements["filterInput"+l].val()),"gi")}catch(e){o=new RegExp("/a^/","gi")}e.each(function(e,t){var n=a(t),s=!0;(t.text.match(o)||i.settings.filterOnValues&&n.attr("value").match(o))&&(s=!1,i.elements["select"+l].append(n.clone(!0).prop("selected",n.data("_selected")))),r.eq(n.data("original-index")).data("filtered"+l,s)}),h(i)}}function d(e,t){var s=e.element.find("option");e.elements["select"+t].find("option").each(function(e,t){var n=a(t);s.eq(n.data("original-index")).data("_selected",n.prop("selected"))})}function u(e){var t=e.children("option");t.sort(function(e,t){var n=parseInt(e.getAttribute("data-sortindex")),s=parseInt(t.getAttribute("data-sortindex"));return sa(t).data("original-index")?1:-1}).appendTo(e)}function f(s){"all"!==s.settings.preserveSelectionOnMove||s.settings.moveOnSelect?"moved"!==s.settings.preserveSelectionOnMove||s.settings.moveOnSelect||d(s,1):(d(s,1),d(s,2)),s.elements.select1.find("option:selected").each(function(e,t){var n=a(t);n.data("filtered1")||r(s,n.data("original-index"),!0)}),m(s),t(s),s.settings.sortByInputOrder?u(s.elements.select2):v(s.elements.select2)}function p(s){"all"!==s.settings.preserveSelectionOnMove||s.settings.moveOnSelect?"moved"!==s.settings.preserveSelectionOnMove||s.settings.moveOnSelect||d(s,2):(d(s,1),d(s,2)),s.elements.select2.find("option:selected").each(function(e,t){var n=a(t);n.data("filtered2")||r(s,n.data("original-index"),!1)}),m(s),t(s),v(s.elements.select1),s.settings.sortByInputOrder&&u(s.elements.select2)}function g(n){n.elements.form.submit(function(e){n.elements.filterInput1.is(":focus")?(e.preventDefault(),n.elements.filterInput1.focusout()):n.elements.filterInput2.is(":focus")&&(e.preventDefault(),n.elements.filterInput2.focusout())}),n.element.on("bootstrapDualListbox.refresh",function(e,t){n.refresh(t)}),n.elements.filterClear1.on("click",function(){n.setNonSelectedFilter("",!0)}),n.elements.filterClear2.on("click",function(){n.setSelectedFilter("",!0)}),!1===n.settings.eventMoveOverride&&n.elements.moveButton.on("click",function(){f(n)}),!1===n.settings.eventMoveAllOverride&&n.elements.moveAllButton.on("click",function(){var s;"all"!==(s=n).settings.preserveSelectionOnMove||s.settings.moveOnSelect?"moved"!==s.settings.preserveSelectionOnMove||s.settings.moveOnSelect||d(s,1):(d(s,1),d(s,2)),s.element.find("option").each(function(e,t){var n=a(t);n.data("filtered1")||(n.prop("selected",!0),n.attr("data-sortindex",s.sortIndex),s.sortIndex++)}),m(s),t(s)}),!1===n.settings.eventRemoveOverride&&n.elements.removeButton.on("click",function(){p(n)}),!1===n.settings.eventRemoveAllOverride&&n.elements.removeAllButton.on("click",function(){var e;"all"!==(e=n).settings.preserveSelectionOnMove||e.settings.moveOnSelect?"moved"!==e.settings.preserveSelectionOnMove||e.settings.moveOnSelect||d(e,2):(d(e,1),d(e,2)),e.element.find("option").each(function(e,t){var n=a(t);n.data("filtered2")||(n.prop("selected",!1),n.removeAttr("data-sortindex"))}),m(e),t(e)}),n.elements.filterInput1.on("change keyup",function(){e(n,1)}),n.elements.filterInput2.on("change keyup",function(){e(n,2)})}l.prototype={init:function(){this.container=a('
').insertBefore(this.element),this.elements={originalSelect:this.element,box1:a(".box1",this.container),box2:a(".box2",this.container),filterInput1:a(".box1 .filter",this.container),filterInput2:a(".box2 .filter",this.container),filterClear1:a(".box1 .clear1",this.container),filterClear2:a(".box2 .clear2",this.container),label1:a(".box1 > label",this.container),label2:a(".box2 > label",this.container),info1:a(".box1 .info",this.container),info2:a(".box2 .info",this.container),select1:a(".box1 select",this.container),select2:a(".box2 select",this.container),moveButton:a(".box1 .move",this.container),removeButton:a(".box2 .remove",this.container),moveAllButton:a(".box1 .moveall",this.container),removeAllButton:a(".box2 .removeall",this.container),form:a(a(".box1 .filter",this.container)[0].form)},this.originalSelectName=this.element.attr("name")||"";var e="bootstrap-duallistbox-nonselected-list_"+this.originalSelectName,t="bootstrap-duallistbox-selected-list_"+this.originalSelectName;return this.elements.select1.attr("id",e),this.elements.select2.attr("id",t),this.elements.label1.attr("for",e),this.elements.label2.attr("for",t),this.selectedElements=0,this.sortIndex=0,this.elementCount=0,this.setFilterTextClear(this.settings.filterTextClear),this.setFilterPlaceHolder(this.settings.filterPlaceHolder),this.setMoveSelectedLabel(this.settings.moveSelectedLabel),this.setMoveAllLabel(this.settings.moveAllLabel),this.setRemoveSelectedLabel(this.settings.removeSelectedLabel),this.setRemoveAllLabel(this.settings.removeAllLabel),this.setMoveOnSelect(this.settings.moveOnSelect),this.setMoveOnDoubleClick(this.settings.moveOnDoubleClick),this.setPreserveSelectionOnMove(this.settings.preserveSelectionOnMove),this.setSelectedListLabel(this.settings.selectedListLabel),this.setNonSelectedListLabel(this.settings.nonSelectedListLabel),this.setHelperSelectNamePostfix(this.settings.helperSelectNamePostfix),this.setSelectOrMinimalHeight(this.settings.selectorMinimalHeight),o(this),this.setShowFilterInputs(this.settings.showFilterInputs),this.setNonSelectedFilter(this.settings.nonSelectedFilter),this.setSelectedFilter(this.settings.selectedFilter),this.setInfoText(this.settings.infoText),this.setInfoTextFiltered(this.settings.infoTextFiltered),this.setInfoTextEmpty(this.settings.infoTextEmpty),this.setFilterOnValues(this.settings.filterOnValues),this.setSortByInputOrder(this.settings.sortByInputOrder),this.setEventMoveOverride(this.settings.eventMoveOverride),this.setEventMoveAllOverride(this.settings.eventMoveAllOverride),this.setEventRemoveOverride(this.settings.eventRemoveOverride),this.setEventRemoveAllOverride(this.settings.eventRemoveAllOverride),this.setBtnClass(this.settings.btnClass),this.setBtnMoveText(this.settings.btnMoveText),this.setBtnRemoveText(this.settings.btnRemoveText),this.setBtnMoveAllText(this.settings.btnMoveAllText),this.setBtnRemoveAllText(this.settings.btnRemoveAllText),this.element.hide(),g(this),m(this),this.element},setFilterTextClear:function(e,t){return this.settings.filterTextClear=e,this.elements.filterClear1.html(e),this.elements.filterClear2.html(e),t&&m(this),this.element},setFilterPlaceHolder:function(e,t){return this.settings.filterPlaceHolder=e,this.elements.filterInput1.attr("placeholder",e),this.elements.filterInput2.attr("placeholder",e),t&&m(this),this.element},setMoveSelectedLabel:function(e,t){return this.settings.moveSelectedLabel=e,this.elements.moveButton.attr("title",e),t&&m(this),this.element},setMoveAllLabel:function(e,t){return this.settings.moveAllLabel=e,this.elements.moveAllButton.attr("title",e),t&&m(this),this.element},setRemoveSelectedLabel:function(e,t){return this.settings.removeSelectedLabel=e,this.elements.removeButton.attr("title",e),t&&m(this),this.element},setRemoveAllLabel:function(e,t){return this.settings.removeAllLabel=e,this.elements.removeAllButton.attr("title",e),t&&m(this),this.element},setMoveOnSelect:function(e,t){if(s&&(e=!0),this.settings.moveOnSelect=e,this.settings.moveOnSelect){this.container.addClass("moveonselect");var n=this;this.elements.select1.on("change",function(){f(n)}),this.elements.select2.on("change",function(){p(n)}),this.elements.moveButton.detach(),this.elements.removeButton.detach()}else this.container.removeClass("moveonselect"),this.elements.select1.off("change"),this.elements.select2.off("change"),this.elements.moveButton.insertAfter(this.elements.moveAllButton),this.elements.removeButton.insertBefore(this.elements.removeAllButton);return t&&m(this),this.element},setMoveOnDoubleClick:function(e,t){if(s&&(e=!1),this.settings.moveOnDoubleClick=e,this.settings.moveOnDoubleClick){this.container.addClass("moveondoubleclick");var n=this;this.elements.select1.on("dblclick",function(){f(n)}),this.elements.select2.on("dblclick",function(){p(n)})}else this.container.removeClass("moveondoubleclick"),this.elements.select1.off("dblclick"),this.elements.select2.off("dblclick");return t&&m(this),this.element},setPreserveSelectionOnMove:function(e,t){return s&&(e=!1),this.settings.preserveSelectionOnMove=e,t&&m(this),this.element},setSelectedListLabel:function(e,t){return(this.settings.selectedListLabel=e)?this.elements.label2.show().html(e):this.elements.label2.hide().html(e),t&&m(this),this.element},setNonSelectedListLabel:function(e,t){return(this.settings.nonSelectedListLabel=e)?this.elements.label1.show().html(e):this.elements.label1.hide().html(e),t&&m(this),this.element},setHelperSelectNamePostfix:function(e,t){return(this.settings.helperSelectNamePostfix=e)?(this.elements.select1.attr("name",this.originalSelectName+e+"1"),this.elements.select2.attr("name",this.originalSelectName+e+"2")):(this.elements.select1.removeAttr("name"),this.elements.select2.removeAttr("name")),t&&m(this),this.element},setSelectOrMinimalHeight:function(e,t){this.settings.selectorMinimalHeight=e;var n=this.element.height();return this.element.height() - * Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE) - */ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global = global || self, global.bsCustomFileInput = factory()); -}(this, (function () { 'use strict'; - - var Selector = { - CUSTOMFILE: '.custom-file input[type="file"]', - CUSTOMFILELABEL: '.custom-file-label', - FORM: 'form', - INPUT: 'input' - }; - - var textNodeType = 3; - - var getDefaultText = function getDefaultText(input) { - var defaultText = ''; - var label = input.parentNode.querySelector(Selector.CUSTOMFILELABEL); - - if (label) { - defaultText = label.textContent; - } - - return defaultText; - }; - - var findFirstChildNode = function findFirstChildNode(element) { - if (element.childNodes.length > 0) { - var childNodes = [].slice.call(element.childNodes); - - for (var i = 0; i < childNodes.length; i++) { - var node = childNodes[i]; - - if (node.nodeType !== textNodeType) { - return node; - } - } - } - - return element; - }; - - var restoreDefaultText = function restoreDefaultText(input) { - var defaultText = input.bsCustomFileInput.defaultText; - var label = input.parentNode.querySelector(Selector.CUSTOMFILELABEL); - - if (label) { - var element = findFirstChildNode(label); - element.textContent = defaultText; - } - }; - - var fileApi = !!window.File; - var FAKE_PATH = 'fakepath'; - var FAKE_PATH_SEPARATOR = '\\'; - - var getSelectedFiles = function getSelectedFiles(input) { - if (input.hasAttribute('multiple') && fileApi) { - return [].slice.call(input.files).map(function (file) { - return file.name; - }).join(', '); - } - - if (input.value.indexOf(FAKE_PATH) !== -1) { - var splittedValue = input.value.split(FAKE_PATH_SEPARATOR); - return splittedValue[splittedValue.length - 1]; - } - - return input.value; - }; - - function handleInputChange() { - var label = this.parentNode.querySelector(Selector.CUSTOMFILELABEL); - - if (label) { - var element = findFirstChildNode(label); - var inputValue = getSelectedFiles(this); - - if (inputValue.length) { - element.textContent = inputValue; - } else { - restoreDefaultText(this); - } - } - } - - function handleFormReset() { - var customFileList = [].slice.call(this.querySelectorAll(Selector.INPUT)).filter(function (input) { - return !!input.bsCustomFileInput; - }); - - for (var i = 0, len = customFileList.length; i < len; i++) { - restoreDefaultText(customFileList[i]); - } - } - - var customProperty = 'bsCustomFileInput'; - var Event = { - FORMRESET: 'reset', - INPUTCHANGE: 'change' - }; - var bsCustomFileInput = { - init: function init(inputSelector, formSelector) { - if (inputSelector === void 0) { - inputSelector = Selector.CUSTOMFILE; - } - - if (formSelector === void 0) { - formSelector = Selector.FORM; - } - - var customFileInputList = [].slice.call(document.querySelectorAll(inputSelector)); - var formList = [].slice.call(document.querySelectorAll(formSelector)); - - for (var i = 0, len = customFileInputList.length; i < len; i++) { - var input = customFileInputList[i]; - Object.defineProperty(input, customProperty, { - value: { - defaultText: getDefaultText(input) - }, - writable: true - }); - handleInputChange.call(input); - input.addEventListener(Event.INPUTCHANGE, handleInputChange); - } - - for (var _i = 0, _len = formList.length; _i < _len; _i++) { - formList[_i].addEventListener(Event.FORMRESET, handleFormReset); - - Object.defineProperty(formList[_i], customProperty, { - value: true, - writable: true - }); - } - }, - destroy: function destroy() { - var formList = [].slice.call(document.querySelectorAll(Selector.FORM)).filter(function (form) { - return !!form.bsCustomFileInput; - }); - var customFileInputList = [].slice.call(document.querySelectorAll(Selector.INPUT)).filter(function (input) { - return !!input.bsCustomFileInput; - }); - - for (var i = 0, len = customFileInputList.length; i < len; i++) { - var input = customFileInputList[i]; - restoreDefaultText(input); - input[customProperty] = undefined; - input.removeEventListener(Event.INPUTCHANGE, handleInputChange); - } - - for (var _i2 = 0, _len2 = formList.length; _i2 < _len2; _i2++) { - formList[_i2].removeEventListener(Event.FORMRESET, handleFormReset); - - formList[_i2][customProperty] = undefined; - } - } - }; - - return bsCustomFileInput; - -}))); -//# sourceMappingURL=bs-custom-file-input.js.map diff --git a/plugins/bs-custom-file-input/bs-custom-file-input.js.map b/plugins/bs-custom-file-input/bs-custom-file-input.js.map deleted file mode 100644 index 6f717245..00000000 --- a/plugins/bs-custom-file-input/bs-custom-file-input.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bs-custom-file-input.js","sources":["../src/selector.js","../src/util.js","../src/eventHandlers.js","../src/index.js"],"sourcesContent":["const Selector = {\n CUSTOMFILE: '.custom-file input[type=\"file\"]',\n CUSTOMFILELABEL: '.custom-file-label',\n FORM: 'form',\n INPUT: 'input',\n}\n\nexport default Selector\n","import Selector from './selector'\n\nconst textNodeType = 3\nconst getDefaultText = (input) => {\n let defaultText = ''\n\n const label = input.parentNode.querySelector(Selector.CUSTOMFILELABEL)\n\n if (label) {\n defaultText = label.textContent\n }\n\n return defaultText\n}\n\nconst findFirstChildNode = (element) => {\n if (element.childNodes.length > 0) {\n const childNodes = [].slice.call(element.childNodes)\n\n for (let i = 0; i < childNodes.length; i++) {\n const node = childNodes[i]\n if (node.nodeType !== textNodeType) {\n return node\n }\n }\n }\n\n return element\n}\n\nconst restoreDefaultText = (input) => {\n const defaultText = input.bsCustomFileInput.defaultText\n const label = input.parentNode.querySelector(Selector.CUSTOMFILELABEL)\n\n if (label) {\n const element = findFirstChildNode(label)\n\n element.textContent = defaultText\n }\n}\n\nexport {\n getDefaultText,\n findFirstChildNode,\n restoreDefaultText,\n}\n","import { findFirstChildNode, restoreDefaultText } from './util'\nimport Selector from './selector'\n\nconst fileApi = !!window.File\nconst FAKE_PATH = 'fakepath'\nconst FAKE_PATH_SEPARATOR = '\\\\'\n\nconst getSelectedFiles = (input) => {\n if (input.hasAttribute('multiple') && fileApi) {\n return [].slice.call(input.files)\n .map((file) => file.name)\n .join(', ')\n }\n\n if (input.value.indexOf(FAKE_PATH) !== -1) {\n const splittedValue = input.value.split(FAKE_PATH_SEPARATOR)\n\n return splittedValue[splittedValue.length - 1]\n }\n\n return input.value\n}\n\nfunction handleInputChange() {\n const label = this.parentNode.querySelector(Selector.CUSTOMFILELABEL)\n\n if (label) {\n const element = findFirstChildNode(label)\n const inputValue = getSelectedFiles(this)\n\n if (inputValue.length) {\n element.textContent = inputValue\n } else {\n restoreDefaultText(this)\n }\n }\n}\n\nfunction handleFormReset() {\n const customFileList = [].slice.call(this.querySelectorAll(Selector.INPUT))\n .filter((input) => !!input.bsCustomFileInput)\n\n for (let i = 0, len = customFileList.length; i < len; i++) {\n restoreDefaultText(customFileList[i])\n }\n}\n\nexport {\n handleInputChange,\n handleFormReset,\n}\n","import { getDefaultText, restoreDefaultText } from './util'\nimport { handleFormReset, handleInputChange } from './eventHandlers'\nimport Selector from './selector'\n\nconst customProperty = 'bsCustomFileInput'\nconst Event = {\n FORMRESET : 'reset',\n INPUTCHANGE : 'change',\n}\n\nconst bsCustomFileInput = {\n init(inputSelector = Selector.CUSTOMFILE, formSelector = Selector.FORM) {\n const customFileInputList = [].slice.call(document.querySelectorAll(inputSelector))\n const formList = [].slice.call(document.querySelectorAll(formSelector))\n\n for (let i = 0, len = customFileInputList.length; i < len; i++) {\n const input = customFileInputList[i]\n\n Object.defineProperty(input, customProperty, {\n value: {\n defaultText: getDefaultText(input),\n },\n writable: true,\n })\n\n handleInputChange.call(input)\n input.addEventListener(Event.INPUTCHANGE, handleInputChange)\n }\n\n for (let i = 0, len = formList.length; i < len; i++) {\n formList[i].addEventListener(Event.FORMRESET, handleFormReset)\n Object.defineProperty(formList[i], customProperty, {\n value: true,\n writable: true,\n })\n }\n },\n\n destroy() {\n const formList = [].slice.call(document.querySelectorAll(Selector.FORM))\n .filter((form) => !!form.bsCustomFileInput)\n const customFileInputList = [].slice.call(document.querySelectorAll(Selector.INPUT))\n .filter((input) => !!input.bsCustomFileInput)\n\n for (let i = 0, len = customFileInputList.length; i < len; i++) {\n const input = customFileInputList[i]\n\n restoreDefaultText(input)\n input[customProperty] = undefined\n\n input.removeEventListener(Event.INPUTCHANGE, handleInputChange)\n }\n\n for (let i = 0, len = formList.length; i < len; i++) {\n formList[i].removeEventListener(Event.FORMRESET, handleFormReset)\n formList[i][customProperty] = undefined\n }\n },\n}\n\nexport default bsCustomFileInput\n"],"names":["Selector","CUSTOMFILE","CUSTOMFILELABEL","FORM","INPUT","textNodeType","getDefaultText","input","defaultText","label","parentNode","querySelector","textContent","findFirstChildNode","element","childNodes","length","slice","call","i","node","nodeType","restoreDefaultText","bsCustomFileInput","fileApi","window","File","FAKE_PATH","FAKE_PATH_SEPARATOR","getSelectedFiles","hasAttribute","files","map","file","name","join","value","indexOf","splittedValue","split","handleInputChange","inputValue","handleFormReset","customFileList","querySelectorAll","filter","len","customProperty","Event","FORMRESET","INPUTCHANGE","init","inputSelector","formSelector","customFileInputList","document","formList","Object","defineProperty","writable","addEventListener","destroy","form","undefined","removeEventListener"],"mappings":";;;;;;;;;;;EAAA,IAAMA,QAAQ,GAAG;EACfC,EAAAA,UAAU,EAAE,iCADG;EAEfC,EAAAA,eAAe,EAAE,oBAFF;EAGfC,EAAAA,IAAI,EAAE,MAHS;EAIfC,EAAAA,KAAK,EAAE;EAJQ,CAAjB;;ECEA,IAAMC,YAAY,GAAG,CAArB;;EACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAW;EAChC,MAAIC,WAAW,GAAG,EAAlB;EAEA,MAAMC,KAAK,GAAGF,KAAK,CAACG,UAAN,CAAiBC,aAAjB,CAA+BX,QAAQ,CAACE,eAAxC,CAAd;;EAEA,MAAIO,KAAJ,EAAW;EACTD,IAAAA,WAAW,GAAGC,KAAK,CAACG,WAApB;EACD;;EAED,SAAOJ,WAAP;EACD,CAVD;;EAYA,IAAMK,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,OAAD,EAAa;EACtC,MAAIA,OAAO,CAACC,UAAR,CAAmBC,MAAnB,GAA4B,CAAhC,EAAmC;EACjC,QAAMD,UAAU,GAAG,GAAGE,KAAH,CAASC,IAAT,CAAcJ,OAAO,CAACC,UAAtB,CAAnB;;EAEA,SAAK,IAAII,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGJ,UAAU,CAACC,MAA/B,EAAuCG,CAAC,EAAxC,EAA4C;EAC1C,UAAMC,IAAI,GAAGL,UAAU,CAACI,CAAD,CAAvB;;EACA,UAAIC,IAAI,CAACC,QAAL,KAAkBhB,YAAtB,EAAoC;EAClC,eAAOe,IAAP;EACD;EACF;EACF;;EAED,SAAON,OAAP;EACD,CAbD;;EAeA,IAAMQ,kBAAkB,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AA,aAAU,CAAC,CAACA,IAAI,CAACvC,iBAAjB;EAAA,KADO,CAAjB;EAEA,QAAM+B,mBAAmB,GAAG,GAAGrC,KAAH,CAASC,IAAT,CAAcqC,QAAQ,CAACX,gBAAT,CAA0B5C,QAAQ,CAACI,KAAnC,CAAd,EACzByC,MADyB,CAClB,UAACtC,KAAD;EAAA,aAAW,CAAC,CAACA,KAAK,CAACgB,iBAAnB;EAAA,KADkB,CAA5B;;EAGA,SAAK,IAAIJ,CAAC,GAAG,CAAR,EAAW2B,GAAG,GAAGQ,mBAAmB,CAACtC,MAA1C,EAAkDG,CAAC,GAAG2B,GAAtD,EAA2D3B,CAAC,EAA5D,EAAgE;EAC9D,UAAMZ,KAAK,GAAG+C,mBAAmB,CAACnC,CAAD,CAAjC;EAEAG,MAAAA,kBAAkB,CAACf,KAAD,CAAlB;EACAA,MAAAA,KAAK,CAACwC,cAAD,CAAL,GAAwBgB,SAAxB;EAEAxD,MAAAA,KAAK,CAACyD,mBAAN,CAA0BhB,KAAK,CAACE,WAAhC,EAA6CV,iBAA7C;EACD;;EAED,SAAK,IAAIrB,GAAC,GAAG,CAAR,EAAW2B,KAAG,GAAGU,QAAQ,CAACxC,MAA/B,EAAuCG,GAAC,GAAG2B,KAA3C,EAAgD3B,GAAC,EAAjD,EAAqD;EACnDqC,MAAAA,QAAQ,CAACrC,GAAD,CAAR,CAAY6C,mBAAZ,CAAgChB,KAAK,CAACC,SAAtC,EAAiDP,eAAjD;;EACAc,MAAAA,QAAQ,CAACrC,GAAD,CAAR,CAAY4B,cAAZ,IAA8BgB,SAA9B;EACD;EACF;EA/CuB,CAA1B;;;;;;;;"} \ No newline at end of file diff --git a/plugins/bs-custom-file-input/bs-custom-file-input.min.js b/plugins/bs-custom-file-input/bs-custom-file-input.min.js deleted file mode 100644 index 0815f376..00000000 --- a/plugins/bs-custom-file-input/bs-custom-file-input.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * bsCustomFileInput v1.3.4 (https://github.com/Johann-S/bs-custom-file-input) - * Copyright 2018 - 2020 Johann-S - * Licensed under MIT (https://github.com/Johann-S/bs-custom-file-input/blob/master/LICENSE) - */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).bsCustomFileInput=t()}(this,function(){"use strict";var s={CUSTOMFILE:'.custom-file input[type="file"]',CUSTOMFILELABEL:".custom-file-label",FORM:"form",INPUT:"input"},l=function(e){if(0 {\n let defaultText = ''\n\n const label = input.parentNode.querySelector(Selector.CUSTOMFILELABEL)\n\n if (label) {\n defaultText = label.textContent\n }\n\n return defaultText\n}\n\nconst findFirstChildNode = (element) => {\n if (element.childNodes.length > 0) {\n const childNodes = [].slice.call(element.childNodes)\n\n for (let i = 0; i < childNodes.length; i++) {\n const node = childNodes[i]\n if (node.nodeType !== textNodeType) {\n return node\n }\n }\n }\n\n return element\n}\n\nconst restoreDefaultText = (input) => {\n const defaultText = input.bsCustomFileInput.defaultText\n const label = input.parentNode.querySelector(Selector.CUSTOMFILELABEL)\n\n if (label) {\n const element = findFirstChildNode(label)\n\n element.textContent = defaultText\n }\n}\n\nexport {\n getDefaultText,\n findFirstChildNode,\n restoreDefaultText,\n}\n","import { findFirstChildNode, restoreDefaultText } from './util'\nimport Selector from './selector'\n\nconst fileApi = !!window.File\nconst FAKE_PATH = 'fakepath'\nconst FAKE_PATH_SEPARATOR = '\\\\'\n\nconst getSelectedFiles = (input) => {\n if (input.hasAttribute('multiple') && fileApi) {\n return [].slice.call(input.files)\n .map((file) => file.name)\n .join(', ')\n }\n\n if (input.value.indexOf(FAKE_PATH) !== -1) {\n const splittedValue = input.value.split(FAKE_PATH_SEPARATOR)\n\n return splittedValue[splittedValue.length - 1]\n }\n\n return input.value\n}\n\nfunction handleInputChange() {\n const label = this.parentNode.querySelector(Selector.CUSTOMFILELABEL)\n\n if (label) {\n const element = findFirstChildNode(label)\n const inputValue = getSelectedFiles(this)\n\n if (inputValue.length) {\n element.textContent = inputValue\n } else {\n restoreDefaultText(this)\n }\n }\n}\n\nfunction handleFormReset() {\n const customFileList = [].slice.call(this.querySelectorAll(Selector.INPUT))\n .filter((input) => !!input.bsCustomFileInput)\n\n for (let i = 0, len = customFileList.length; i < len; i++) {\n restoreDefaultText(customFileList[i])\n }\n}\n\nexport {\n handleInputChange,\n handleFormReset,\n}\n","import { getDefaultText, restoreDefaultText } from './util'\nimport { handleFormReset, handleInputChange } from './eventHandlers'\nimport Selector from './selector'\n\nconst customProperty = 'bsCustomFileInput'\nconst Event = {\n FORMRESET : 'reset',\n INPUTCHANGE : 'change',\n}\n\nconst bsCustomFileInput = {\n init(inputSelector = Selector.CUSTOMFILE, formSelector = Selector.FORM) {\n const customFileInputList = [].slice.call(document.querySelectorAll(inputSelector))\n const formList = [].slice.call(document.querySelectorAll(formSelector))\n\n for (let i = 0, len = customFileInputList.length; i < len; i++) {\n const input = customFileInputList[i]\n\n Object.defineProperty(input, customProperty, {\n value: {\n defaultText: getDefaultText(input),\n },\n writable: true,\n })\n\n handleInputChange.call(input)\n input.addEventListener(Event.INPUTCHANGE, handleInputChange)\n }\n\n for (let i = 0, len = formList.length; i < len; i++) {\n formList[i].addEventListener(Event.FORMRESET, handleFormReset)\n Object.defineProperty(formList[i], customProperty, {\n value: true,\n writable: true,\n })\n }\n },\n\n destroy() {\n const formList = [].slice.call(document.querySelectorAll(Selector.FORM))\n .filter((form) => !!form.bsCustomFileInput)\n const customFileInputList = [].slice.call(document.querySelectorAll(Selector.INPUT))\n .filter((input) => !!input.bsCustomFileInput)\n\n for (let i = 0, len = customFileInputList.length; i < len; i++) {\n const input = customFileInputList[i]\n\n restoreDefaultText(input)\n input[customProperty] = undefined\n\n input.removeEventListener(Event.INPUTCHANGE, handleInputChange)\n }\n\n for (let i = 0, len = formList.length; i < len; i++) {\n formList[i].removeEventListener(Event.FORMRESET, handleFormReset)\n formList[i][customProperty] = undefined\n }\n },\n}\n\nexport default bsCustomFileInput\n"],"names":["Selector","CUSTOMFILE","CUSTOMFILELABEL","FORM","INPUT","findFirstChildNode","element","childNodes","length","slice","call","i","node","nodeType","restoreDefaultText","input","defaultText","bsCustomFileInput","label","parentNode","querySelector","textContent","fileApi","window","File","getSelectedFiles","hasAttribute","files","map","file","name","join","value","indexOf","splittedValue","split","handleInputChange","this","inputValue","handleFormReset","customFileList","querySelectorAll","filter","len","customProperty","Event","init","inputSelector","formSelector","customFileInputList","document","formList","Object","defineProperty","writable","addEventListener","destroy","form","undefined","removeEventListener"],"mappings":";;;;;uMAAA,IAAMA,EAAW,CACfC,WAAY,kCACZC,gBAAiB,qBACjBC,KAAM,OACNC,MAAO,SCWHC,EAAqB,SAACC,MACM,EAA5BA,EAAQC,WAAWC,eACfD,EAAa,GAAGE,MAAMC,KAAKJ,EAAQC,YAEhCI,EAAI,EAAGA,EAAIJ,EAAWC,OAAQG,IAAK,KACpCC,EAAOL,EAAWI,MAlBT,IAmBXC,EAAKC,gBACAD,SAKNN,GAGHQ,EAAqB,SAACC,OACpBC,EAAcD,EAAME,kBAAkBD,YACtCE,EAAQH,EAAMI,WAAWC,cAAcpB,EAASE,iBAElDgB,IACcb,EAAmBa,GAE3BG,YAAcL,IClCpBM,IAAYC,OAAOC,KAInBC,EAAmB,SAACV,MACpBA,EAAMW,aAAa,aAAeJ,QAC7B,GAAGb,MAAMC,KAAKK,EAAMY,OACxBC,IAAI,SAACC,UAASA,EAAKC,OACnBC,KAAK,UAG8B,IAApChB,EAAMiB,MAAMC,QAVA,mBAgBTlB,EAAMiB,UALLE,EAAgBnB,EAAMiB,MAAMG,MAVV,aAYjBD,EAAcA,EAAc1B,OAAS,IAMhD,SAAS4B,QACDlB,EAAQmB,KAAKlB,WAAWC,cAAcpB,EAASE,oBAEjDgB,EAAO,KACHZ,EAAUD,EAAmBa,GAC7BoB,EAAab,EAAiBY,MAEhCC,EAAW9B,OACbF,EAAQe,YAAciB,EAEtBxB,EAAmBuB,OAKzB,SAASE,YACDC,EAAiB,GAAG/B,MA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I,EAAQkC,EAAoBtC,GAElCG,EAAmBC,GACnBA,EAAM6B,QAAkBc,EAExB3C,EAAM4C,oBAAoBd,EAAmBT,OAG1C,IAAIzB,EAAI,EAAGgC,EAAMQ,EAAS3C,OAAQG,EAAIgC,EAAKhC,IAC9CwC,EAASxC,GAAGgD,oBAAoBd,EAAiBN,GACjDY,EAASxC,GAAGiC,QAAkBc"} \ No newline at end of file diff --git a/plugins/datatables-autofill/css/autoFill.bootstrap4.css b/plugins/datatables-autofill/css/autoFill.bootstrap4.css deleted file mode 100644 index 6abac442..00000000 --- a/plugins/datatables-autofill/css/autoFill.bootstrap4.css +++ /dev/null @@ -1,91 +0,0 @@ -div.dt-autofill-handle { - position: absolute; - height: 8px; - width: 8px; - z-index: 102; - box-sizing: border-box; - background: #0275d8; - cursor: pointer; -} - -div.dtk-focus-alt div.dt-autofill-handle { - background: #ff8b33; -} - -div.dt-autofill-select { - position: absolute; - z-index: 1001; - background-color: #0275d8; - background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 255, 255, 0.5) 5px, rgba(255, 255, 255, 0.5) 10px); -} -div.dt-autofill-select.top, div.dt-autofill-select.bottom { - height: 3px; - margin-top: -1px; -} -div.dt-autofill-select.left, div.dt-autofill-select.right { - width: 3px; - margin-left: -1px; -} - -div.dt-autofill-list { - position: fixed; - top: 50%; - left: 50%; - width: 500px; - margin-left: -250px; - background-color: white; - border-radius: 6px; - box-shadow: 0 0 5px #555; - border: 2px solid #444; - z-index: 11; - box-sizing: border-box; - padding: 1.5em 2em; -} -div.dt-autofill-list ul { - display: table; - margin: 0; - padding: 0; - list-style: none; - width: 100%; -} -div.dt-autofill-list ul li { - display: table-row; -} -div.dt-autofill-list ul li:last-child div.dt-autofill-question, div.dt-autofill-list ul li:last-child div.dt-autofill-button { - border-bottom: none; -} -div.dt-autofill-list ul li:hover { - background-color: #f6f6f6; -} -div.dt-autofill-list div.dt-autofill-question { - display: table-cell; - padding: 0.5em 0; - border-bottom: 1px solid #ccc; -} -div.dt-autofill-list div.dt-autofill-question input[type=number] { - padding: 6px; - width: 30px; - margin: -2px 0; -} -div.dt-autofill-list div.dt-autofill-button { - display: table-cell; - padding: 0.5em 0; - border-bottom: 1px solid #ccc; -} - -div.dt-autofill-background { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: rgba(0, 0, 0, 0.7); - background: radial-gradient(ellipse farthest-corner at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%); - z-index: 10; -} - -div.dt-autofill-list div.dt-autofill-question input[type=number] { - padding: 6px; - width: 60px; - margin: -2px 0; -} diff --git a/plugins/datatables-autofill/css/autoFill.bootstrap4.min.css b/plugins/datatables-autofill/css/autoFill.bootstrap4.min.css deleted file mode 100644 index c40c1f98..00000000 --- a/plugins/datatables-autofill/css/autoFill.bootstrap4.min.css +++ /dev/null @@ -1 +0,0 @@ -div.dt-autofill-handle{position:absolute;height:8px;width:8px;z-index:102;box-sizing:border-box;background:#0275d8;cursor:pointer}div.dtk-focus-alt div.dt-autofill-handle{background:#ff8b33}div.dt-autofill-select{position:absolute;z-index:1001;background-color:#0275d8;background-image:repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,0.5) 5px, rgba(255,255,255,0.5) 10px)}div.dt-autofill-select.top,div.dt-autofill-select.bottom{height:3px;margin-top:-1px}div.dt-autofill-select.left,div.dt-autofill-select.right{width:3px;margin-left:-1px}div.dt-autofill-list{position:fixed;top:50%;left:50%;width:500px;margin-left:-250px;background-color:white;border-radius:6px;box-shadow:0 0 5px #555;border:2px solid #444;z-index:11;box-sizing:border-box;padding:1.5em 2em}div.dt-autofill-list ul{display:table;margin:0;padding:0;list-style:none;width:100%}div.dt-autofill-list ul li{display:table-row}div.dt-autofill-list ul li:last-child div.dt-autofill-question,div.dt-autofill-list ul li:last-child div.dt-autofill-button{border-bottom:none}div.dt-autofill-list ul li:hover{background-color:#f6f6f6}div.dt-autofill-list div.dt-autofill-question{display:table-cell;padding:0.5em 0;border-bottom:1px solid #ccc}div.dt-autofill-list div.dt-autofill-question input[type=number]{padding:6px;width:30px;margin:-2px 0}div.dt-autofill-list div.dt-autofill-button{display:table-cell;padding:0.5em 0;border-bottom:1px solid #ccc}div.dt-autofill-background{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);background:radial-gradient(ellipse farthest-corner at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);z-index:10}div.dt-autofill-list div.dt-autofill-question input[type=number]{padding:6px;width:60px;margin:-2px 0} diff --git a/plugins/datatables-autofill/js/autoFill.bootstrap4.js b/plugins/datatables-autofill/js/autoFill.bootstrap4.js deleted file mode 100644 index 40037e4f..00000000 --- a/plugins/datatables-autofill/js/autoFill.bootstrap4.js +++ /dev/null @@ -1,43 +0,0 @@ -/*! Bootstrap integration for DataTables' AutoFill - * ©2015 SpryMedia Ltd - datatables.net/license - */ - -(function( factory ){ - if ( typeof define === 'function' && define.amd ) { - // AMD - define( ['jquery', 'datatables.net-bs4', 'datatables.net-autofill'], function ( $ ) { - return factory( $, window, document ); - } ); - } - else if ( typeof exports === 'object' ) { - // CommonJS - module.exports = function (root, $) { - if ( ! root ) { - root = window; - } - - if ( ! $ || ! $.fn.dataTable ) { - $ = require('datatables.net-bs4')(root, $).$; - } - - if ( ! $.fn.dataTable.AutoFill ) { - require('datatables.net-autofill')(root, $); - } - - return factory( $, root, root.document ); - }; - } - else { - // Browser - factory( jQuery, window, document ); - } -}(function( $, window, document, undefined ) { -'use strict'; -var DataTable = $.fn.dataTable; - - -DataTable.AutoFill.classes.btn = 'btn btn-primary'; - - -return DataTable; -})); \ No newline at end of file diff --git a/plugins/datatables-autofill/js/autoFill.bootstrap4.min.js b/plugins/datatables-autofill/js/autoFill.bootstrap4.min.js deleted file mode 100644 index 87ea58cd..00000000 --- a/plugins/datatables-autofill/js/autoFill.bootstrap4.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! - Bootstrap integration for DataTables' AutoFill - ©2015 SpryMedia Ltd - datatables.net/license -*/ -(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-autofill"],function(b){return a(b,window,document)}):"object"===typeof exports?module.exports=function(b,c){b||(b=window);if(!c||!c.fn.dataTable)c=require("datatables.net-bs4")(b,c).$;c.fn.dataTable.AutoFill||require("datatables.net-autofill")(b,c);return a(c,b,b.document)}:a(jQuery,window,document)})(function(a){a=a.fn.dataTable;a.AutoFill.classes.btn="btn btn-primary";return a}); diff --git a/plugins/datatables-autofill/js/dataTables.autoFill.js b/plugins/datatables-autofill/js/dataTables.autoFill.js deleted file mode 100644 index e359a355..00000000 --- a/plugins/datatables-autofill/js/dataTables.autoFill.js +++ /dev/null @@ -1,1212 +0,0 @@ -/*! AutoFill 2.3.4 - * ©2008-2019 SpryMedia Ltd - datatables.net/license - */ - -/** - * @summary AutoFill - * @description Add Excel like click and drag auto-fill options to DataTables - * @version 2.3.4 - * @file dataTables.autoFill.js - * @author SpryMedia Ltd (www.sprymedia.co.uk) - * @contact www.sprymedia.co.uk/contact - * @copyright Copyright 2010-2019 SpryMedia Ltd. - * - * This source file is free software, available under the following license: - * MIT license - http://datatables.net/license/mit - * - * This source file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. - * - * For details please refer to: http://www.datatables.net - */ -(function( factory ){ - if ( typeof define === 'function' && define.amd ) { - // AMD - define( ['jquery', 'datatables.net'], function ( $ ) { - return factory( $, window, document ); - } ); - } - else if ( typeof exports === 'object' ) { - // CommonJS - module.exports = function (root, $) { - if ( ! root ) { - root = window; - } - - if ( ! $ || ! $.fn.dataTable ) { - $ = require('datatables.net')(root, $).$; - } - - return factory( $, root, root.document ); - }; - } - else { - // Browser - factory( jQuery, window, document ); - } -}(function( $, window, document, undefined ) { -'use strict'; -var DataTable = $.fn.dataTable; - - -var _instance = 0; - -/** - * AutoFill provides Excel like auto-fill features for a DataTable - * - * @class AutoFill - * @constructor - * @param {object} oTD DataTables settings object - * @param {object} oConfig Configuration object for AutoFill - */ -var AutoFill = function( dt, opts ) -{ - if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.8' ) ) { - throw( "Warning: AutoFill requires DataTables 1.10.8 or greater"); - } - - // User and defaults configuration object - this.c = $.extend( true, {}, - DataTable.defaults.autoFill, - AutoFill.defaults, - opts - ); - - /** - * @namespace Settings object which contains customisable information for AutoFill instance - */ - this.s = { - /** @type {DataTable.Api} DataTables' API instance */ - dt: new DataTable.Api( dt ), - - /** @type {String} Unique namespace for events attached to the document */ - namespace: '.autoFill'+(_instance++), - - /** @type {Object} Cached dimension information for use in the mouse move event handler */ - scroll: {}, - - /** @type {integer} Interval object used for smooth scrolling */ - scrollInterval: null, - - handle: { - height: 0, - width: 0 - }, - - /** - * Enabled setting - * @type {Boolean} - */ - enabled: false - }; - - - /** - * @namespace Common and useful DOM elements for the class instance - */ - this.dom = { - /** @type {jQuery} AutoFill handle */ - handle: $('
'), - - /** - * @type {Object} Selected cells outline - Need to use 4 elements, - * otherwise the mouse over if you back into the selected rectangle - * will be over that element, rather than the cells! - */ - select: { - top: $('
'), - right: $('
'), - bottom: $('
'), - left: $('
') - }, - - /** @type {jQuery} Fill type chooser background */ - background: $('
'), - - /** @type {jQuery} Fill type chooser */ - list: $('
'+this.s.dt.i18n('autoFill.info', '')+'
    '), - - /** @type {jQuery} DataTables scrolling container */ - dtScroll: null, - - /** @type {jQuery} Offset parent element */ - offsetParent: null - }; - - - /* Constructor logic */ - this._constructor(); -}; - - - -$.extend( AutoFill.prototype, { - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Public methods (exposed via the DataTables API below) - */ - enabled: function () - { - return this.s.enabled; - }, - - - enable: function ( flag ) - { - var that = this; - - if ( flag === false ) { - return this.disable(); - } - - this.s.enabled = true; - - this._focusListener(); - - this.dom.handle.on( 'mousedown', function (e) { - that._mousedown( e ); - return false; - } ); - - return this; - }, - - disable: function () - { - this.s.enabled = false; - - this._focusListenerRemove(); - - return this; - }, - - - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Constructor - */ - - /** - * Initialise the RowReorder instance - * - * @private - */ - _constructor: function () - { - var that = this; - var dt = this.s.dt; - var dtScroll = $('div.dataTables_scrollBody', this.s.dt.table().container()); - - // Make the instance accessible to the API - dt.settings()[0].autoFill = this; - - if ( dtScroll.length ) { - this.dom.dtScroll = dtScroll; - - // Need to scroll container to be the offset parent - if ( dtScroll.css('position') === 'static' ) { - dtScroll.css( 'position', 'relative' ); - } - } - - if ( this.c.enable !== false ) { - this.enable(); - } - - dt.on( 'destroy.autoFill', function () { - that._focusListenerRemove(); - } ); - }, - - - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Private methods - */ - - /** - * Display the AutoFill drag handle by appending it to a table cell. This - * is the opposite of the _detach method. - * - * @param {node} node TD/TH cell to insert the handle into - * @private - */ - _attach: function ( node ) - { - var dt = this.s.dt; - var idx = dt.cell( node ).index(); - var handle = this.dom.handle; - var handleDim = this.s.handle; - - if ( ! idx || dt.columns( this.c.columns ).indexes().indexOf( idx.column ) === -1 ) { - this._detach(); - return; - } - - if ( ! this.dom.offsetParent ) { - // We attach to the table's offset parent - this.dom.offsetParent = $( dt.table().node() ).offsetParent(); - } - - if ( ! handleDim.height || ! handleDim.width ) { - // Append to document so we can get its size. Not expecting it to - // change during the life time of the page - handle.appendTo( 'body' ); - handleDim.height = handle.outerHeight(); - handleDim.width = handle.outerWidth(); - } - - // Might need to go through multiple offset parents - var offset = this._getPosition( node, this.dom.offsetParent ); - - this.dom.attachedTo = node; - handle - .css( { - top: offset.top + node.offsetHeight - handleDim.height, - left: offset.left + node.offsetWidth - handleDim.width - } ) - .appendTo( this.dom.offsetParent ); - }, - - - /** - * Determine can the fill type should be. This can be automatic, or ask the - * end user. - * - * @param {array} cells Information about the selected cells from the key - * up function - * @private - */ - _actionSelector: function ( cells ) - { - var that = this; - var dt = this.s.dt; - var actions = AutoFill.actions; - var available = []; - - // "Ask" each plug-in if it wants to handle this data - $.each( actions, function ( key, action ) { - if ( action.available( dt, cells ) ) { - available.push( key ); - } - } ); - - if ( available.length === 1 && this.c.alwaysAsk === false ) { - // Only one action available - enact it immediately - var result = actions[ available[0] ].execute( dt, cells ); - this._update( result, cells ); - } - else { - // Multiple actions available - ask the end user what they want to do - var list = this.dom.list.children('ul').empty(); - - // Add a cancel option - available.push( 'cancel' ); - - $.each( available, function ( i, name ) { - list.append( $('
  • ') - .append( - '
    '+ - actions[ name ].option( dt, cells )+ - '
    ' - ) - .append( $('
    ' ) - .append( $('') - .on( 'click', function () { - var result = actions[ name ].execute( - dt, cells, $(this).closest('li') - ); - that._update( result, cells ); - - that.dom.background.remove(); - that.dom.list.remove(); - } ) - ) - ) - ); - } ); - - this.dom.background.appendTo( 'body' ); - this.dom.list.appendTo( 'body' ); - - this.dom.list.css( 'margin-top', this.dom.list.outerHeight()/2 * -1 ); - } - }, - - - /** - * Remove the AutoFill handle from the document - * - * @private - */ - _detach: function () - { - this.dom.attachedTo = null; - this.dom.handle.detach(); - }, - - - /** - * Draw the selection outline by calculating the range between the start - * and end cells, then placing the highlighting elements to draw a rectangle - * - * @param {node} target End cell - * @param {object} e Originating event - * @private - */ - _drawSelection: function ( target, e ) - { - // Calculate boundary for start cell to this one - var dt = this.s.dt; - var start = this.s.start; - var startCell = $(this.dom.start); - var end = { - row: this.c.vertical ? - dt.rows( { page: 'current' } ).nodes().indexOf( target.parentNode ) : - start.row, - column: this.c.horizontal ? - $(target).index() : - start.column - }; - var colIndx = dt.column.index( 'toData', end.column ); - var endRow = dt.row( ':eq('+end.row+')', { page: 'current' } ); // Workaround for M581 - var endCell = $( dt.cell( endRow.index(), colIndx ).node() ); - - // Be sure that is a DataTables controlled cell - if ( ! dt.cell( endCell ).any() ) { - return; - } - - // if target is not in the columns available - do nothing - if ( dt.columns( this.c.columns ).indexes().indexOf( colIndx ) === -1 ) { - return; - } - - this.s.end = end; - - var top, bottom, left, right, height, width; - - top = start.row < end.row ? startCell : endCell; - bottom = start.row < end.row ? endCell : startCell; - left = start.column < end.column ? startCell : endCell; - right = start.column < end.column ? endCell : startCell; - - top = this._getPosition( top.get(0) ).top; - left = this._getPosition( left.get(0) ).left; - height = this._getPosition( bottom.get(0) ).top + bottom.outerHeight() - top; - width = this._getPosition( right.get(0) ).left + right.outerWidth() - left; - - var select = this.dom.select; - select.top.css( { - top: top, - left: left, - width: width - } ); - - select.left.css( { - top: top, - left: left, - height: height - } ); - - select.bottom.css( { - top: top + height, - left: left, - width: width - } ); - - select.right.css( { - top: top, - left: left + width, - height: height - } ); - }, - - - /** - * Use the Editor API to perform an update based on the new data for the - * cells - * - * @param {array} cells Information about the selected cells from the key - * up function - * @private - */ - _editor: function ( cells ) - { - var dt = this.s.dt; - var editor = this.c.editor; - - if ( ! editor ) { - return; - } - - // Build the object structure for Editor's multi-row editing - var idValues = {}; - var nodes = []; - var fields = editor.fields(); - - for ( var i=0, ien=cells.length ; i=end ; i-- ) { - out.push( i ); - } - } - - return out; - }, - - - /** - * Move the window and DataTables scrolling during a drag to scroll new - * content into view. This is done by proximity to the edge of the scrolling - * container of the mouse - for example near the top edge of the window - * should scroll up. This is a little complicated as there are two elements - * that can be scrolled - the window and the DataTables scrolling view port - * (if scrollX and / or scrollY is enabled). - * - * @param {object} e Mouse move event object - * @private - */ - _shiftScroll: function ( e ) - { - var that = this; - var dt = this.s.dt; - var scroll = this.s.scroll; - var runInterval = false; - var scrollSpeed = 5; - var buffer = 65; - var - windowY = e.pageY - document.body.scrollTop, - windowX = e.pageX - document.body.scrollLeft, - windowVert, windowHoriz, - dtVert, dtHoriz; - - // Window calculations - based on the mouse position in the window, - // regardless of scrolling - if ( windowY < buffer ) { - windowVert = scrollSpeed * -1; - } - else if ( windowY > scroll.windowHeight - buffer ) { - windowVert = scrollSpeed; - } - - if ( windowX < buffer ) { - windowHoriz = scrollSpeed * -1; - } - else if ( windowX > scroll.windowWidth - buffer ) { - windowHoriz = scrollSpeed; - } - - // DataTables scrolling calculations - based on the table's position in - // the document and the mouse position on the page - if ( scroll.dtTop !== null && e.pageY < scroll.dtTop + buffer ) { - dtVert = scrollSpeed * -1; - } - else if ( scroll.dtTop !== null && e.pageY > scroll.dtTop + scroll.dtHeight - buffer ) { - dtVert = scrollSpeed; - } - - if ( scroll.dtLeft !== null && e.pageX < scroll.dtLeft + buffer ) { - dtHoriz = scrollSpeed * -1; - } - else if ( scroll.dtLeft !== null && e.pageX > scroll.dtLeft + scroll.dtWidth - buffer ) { - dtHoriz = scrollSpeed; - } - - // This is where it gets interesting. We want to continue scrolling - // without requiring a mouse move, so we need an interval to be - // triggered. The interval should continue until it is no longer needed, - // but it must also use the latest scroll commands (for example consider - // that the mouse might move from scrolling up to scrolling left, all - // with the same interval running. We use the `scroll` object to "pass" - // this information to the interval. Can't use local variables as they - // wouldn't be the ones that are used by an already existing interval! - if ( windowVert || windowHoriz || dtVert || dtHoriz ) { - scroll.windowVert = windowVert; - scroll.windowHoriz = windowHoriz; - scroll.dtVert = dtVert; - scroll.dtHoriz = dtHoriz; - runInterval = true; - } - else if ( this.s.scrollInterval ) { - // Don't need to scroll - remove any existing timer - clearInterval( this.s.scrollInterval ); - this.s.scrollInterval = null; - } - - // If we need to run the interval to scroll and there is no existing - // interval (if there is an existing one, it will continue to run) - if ( ! this.s.scrollInterval && runInterval ) { - this.s.scrollInterval = setInterval( function () { - // Don't need to worry about setting scroll <0 or beyond the - // scroll bound as the browser will just reject that. - if ( scroll.windowVert ) { - document.body.scrollTop += scroll.windowVert; - } - if ( scroll.windowHoriz ) { - document.body.scrollLeft += scroll.windowHoriz; - } - - // DataTables scrolling - if ( scroll.dtVert || scroll.dtHoriz ) { - var scroller = that.dom.dtScroll[0]; - - if ( scroll.dtVert ) { - scroller.scrollTop += scroll.dtVert; - } - if ( scroll.dtHoriz ) { - scroller.scrollLeft += scroll.dtHoriz; - } - } - }, 20 ); - } - }, - - - /** - * Update the DataTable after the user has selected what they want to do - * - * @param {false|undefined} result Return from the `execute` method - can - * be false internally to do nothing. This is not documented for plug-ins - * and is used only by the cancel option. - * @param {array} cells Information about the selected cells from the key - * up function, argumented with the set values - * @private - */ - _update: function ( result, cells ) - { - // Do nothing on `false` return from an execute function - if ( result === false ) { - return; - } - - var dt = this.s.dt; - var cell; - var columns = dt.columns( this.c.columns ).indexes(); - - // Potentially allow modifications to the cells matrix - this._emitEvent( 'preAutoFill', [ dt, cells ] ); - - this._editor( cells ); - - // Automatic updates are not performed if `update` is null and the - // `editor` parameter is passed in - the reason being that Editor will - // update the data once submitted - var update = this.c.update !== null ? - this.c.update : - this.c.editor ? - false : - true; - - if ( update ) { - for ( var i=0, ien=cells.length ; i' - ); - }, - - execute: function ( dt, cells, node ) { - var value = cells[0][0].data * 1; - var increment = $('input', node).val() * 1; - - for ( var i=0, ien=cells.length ; i'+cells[0][0].label+'' ); - }, - - execute: function ( dt, cells, node ) { - var value = cells[0][0].data; - - for ( var i=0, ien=cells.length ; i 1 && cells[0].length > 1; - }, - - option: function ( dt, cells ) { - return dt.i18n('autoFill.fillHorizontal', 'Fill cells horizontally' ); - }, - - execute: function ( dt, cells, node ) { - for ( var i=0, ien=cells.length ; i 1 && cells[0].length > 1; - }, - - option: function ( dt, cells ) { - return dt.i18n('autoFill.fillVertical', 'Fill cells vertically' ); - }, - - execute: function ( dt, cells, node ) { - for ( var i=0, ien=cells.length ; i'),select:{top:e('
    '),right:e('
    '),bottom:e('
    '),left:e('
    ')},background:e('
    '),list:e('
    '+this.s.dt.i18n("autoFill.info", -"")+"
      "),dtScroll:null,offsetParent:null};this._constructor()};e.extend(k.prototype,{enabled:function(){return this.s.enabled},enable:function(b){var c=this;if(!1===b)return this.disable();this.s.enabled=!0;this._focusListener();this.dom.handle.on("mousedown",function(a){c._mousedown(a);return!1});return this},disable:function(){this.s.enabled=!1;this._focusListenerRemove();return this},_constructor:function(){var b=this,c=this.s.dt,a=e("div.dataTables_scrollBody",this.s.dt.table().container()); -c.settings()[0].autoFill=this;a.length&&(this.dom.dtScroll=a,"static"===a.css("position")&&a.css("position","relative"));!1!==this.c.enable&&this.enable();c.on("destroy.autoFill",function(){b._focusListenerRemove()})},_attach:function(b){var c=this.s.dt,a=c.cell(b).index(),d=this.dom.handle,f=this.s.handle;if(!a||-1===c.columns(this.c.columns).indexes().indexOf(a.column))this._detach();else{this.dom.offsetParent||(this.dom.offsetParent=e(c.table().node()).offsetParent());if(!f.height||!f.width)d.appendTo("body"), -f.height=d.outerHeight(),f.width=d.outerWidth();c=this._getPosition(b,this.dom.offsetParent);this.dom.attachedTo=b;d.css({top:c.top+b.offsetHeight-f.height,left:c.left+b.offsetWidth-f.width}).appendTo(this.dom.offsetParent)}},_actionSelector:function(b){var c=this,a=this.s.dt,d=k.actions,f=[];e.each(d,function(c,d){d.available(a,b)&&f.push(c)});if(1===f.length&&!1===this.c.alwaysAsk){var j=d[f[0]].execute(a,b);this._update(j,b)}else{var h=this.dom.list.children("ul").empty();f.push("cancel");e.each(f, -function(f,j){h.append(e("
    • ").append('
      '+d[j].option(a,b)+"
      ").append(e('
      ').append(e('").on("click",function(){var f=d[j].execute(a,b,e(this).closest("li"));c._update(f,b);c.dom.background.remove();c.dom.list.remove()}))))});this.dom.background.appendTo("body");this.dom.list.appendTo("body");this.dom.list.css("margin-top",-1*(this.dom.list.outerHeight()/ -2))}},_detach:function(){this.dom.attachedTo=null;this.dom.handle.detach()},_drawSelection:function(b){var c=this.s.dt,a=this.s.start,d=e(this.dom.start),f={row:this.c.vertical?c.rows({page:"current"}).nodes().indexOf(b.parentNode):a.row,column:this.c.horizontal?e(b).index():a.column},b=c.column.index("toData",f.column),j=c.row(":eq("+f.row+")",{page:"current"}),j=e(c.cell(j.index(),b).node());if(c.cell(j).any()&&-1!==c.columns(this.c.columns).indexes().indexOf(b)){this.s.end=f;var h,c=a.row=c;d--)a.push(d);return a},_shiftScroll:function(b){var c=this,a=this.s.scroll,d=!1,f=b.pageY-i.body.scrollTop,e=b.pageX-i.body.scrollLeft,h,g,k,l;65>f?h=-5:f>a.windowHeight-65&&(h=5);65>e?g=-5:e>a.windowWidth-65&&(g=5);null!==a.dtTop&&b.pageYa.dtTop+a.dtHeight-65&&(k=5);null!==a.dtLeft&&b.pageXa.dtLeft+a.dtWidth-65&&(l=5);h||g||k||l?(a.windowVert=h,a.windowHoriz=g,a.dtVert=k,a.dtHoriz=l,d=!0):this.s.scrollInterval&&(clearInterval(this.s.scrollInterval),this.s.scrollInterval=null);!this.s.scrollInterval&&d&&(this.s.scrollInterval=setInterval(function(){if(a.windowVert)i.body.scrollTop=i.body.scrollTop+a.windowVert;if(a.windowHoriz)i.body.scrollLeft=i.body.scrollLeft+a.windowHoriz;if(a.dtVert||a.dtHoriz){var b=c.dom.dtScroll[0];if(a.dtVert)b.scrollTop=b.scrollTop+ -a.dtVert;if(a.dtHoriz)b.scrollLeft=b.scrollLeft+a.dtHoriz}},20))},_update:function(b,c){if(!1!==b){var a=this.s.dt,d,f=a.columns(this.c.columns).indexes();this._emitEvent("preAutoFill",[a,c]);this._editor(c);if(null!==this.c.update?this.c.update:!this.c.editor){for(var e=0,h=c.length;e')},execute:function(b,c,a){for(var b=1*c[0][0].data,a=1*e("input",a).val(),d=0,f=c.length;d"+c[0][0].label+"")},execute:function(b,c){for(var a=c[0][0].data,d=0,f=c.length;d< -f;d++)for(var e=0,g=c[d].length;e tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting, -table.dataTable thead > tr > td.sorting_asc, -table.dataTable thead > tr > td.sorting_desc, -table.dataTable thead > tr > td.sorting { - padding-right: 30px; -} -table.dataTable thead > tr > th:active, -table.dataTable thead > tr > td:active { - outline: none; -} -table.dataTable thead .sorting, -table.dataTable thead .sorting_asc, -table.dataTable thead .sorting_desc, -table.dataTable thead .sorting_asc_disabled, -table.dataTable thead .sorting_desc_disabled { - cursor: pointer; - position: relative; -} -table.dataTable thead .sorting:before, table.dataTable thead .sorting:after, -table.dataTable thead .sorting_asc:before, -table.dataTable thead .sorting_asc:after, -table.dataTable thead .sorting_desc:before, -table.dataTable thead .sorting_desc:after, -table.dataTable thead .sorting_asc_disabled:before, -table.dataTable thead .sorting_asc_disabled:after, -table.dataTable thead .sorting_desc_disabled:before, -table.dataTable thead .sorting_desc_disabled:after { - position: absolute; - bottom: 0.9em; - display: block; - opacity: 0.3; -} -table.dataTable thead .sorting:before, -table.dataTable thead .sorting_asc:before, -table.dataTable thead .sorting_desc:before, -table.dataTable thead .sorting_asc_disabled:before, -table.dataTable thead .sorting_desc_disabled:before { - right: 1em; - content: "\2191"; -} -table.dataTable thead .sorting:after, -table.dataTable thead .sorting_asc:after, -table.dataTable thead .sorting_desc:after, -table.dataTable thead .sorting_asc_disabled:after, -table.dataTable thead .sorting_desc_disabled:after { - right: 0.5em; - content: "\2193"; -} -table.dataTable thead .sorting_asc:before, -table.dataTable thead .sorting_desc:after { - opacity: 1; -} -table.dataTable thead .sorting_asc_disabled:before, -table.dataTable thead .sorting_desc_disabled:after { - opacity: 0; -} - -div.dataTables_scrollHead table.dataTable { - margin-bottom: 0 !important; -} - -div.dataTables_scrollBody table { - border-top: none; - margin-top: 0 !important; - margin-bottom: 0 !important; -} -div.dataTables_scrollBody table thead .sorting:before, -div.dataTables_scrollBody table thead .sorting_asc:before, -div.dataTables_scrollBody table thead .sorting_desc:before, -div.dataTables_scrollBody table thead .sorting:after, -div.dataTables_scrollBody table thead .sorting_asc:after, -div.dataTables_scrollBody table thead .sorting_desc:after { - display: none; -} -div.dataTables_scrollBody table tbody tr:first-child th, -div.dataTables_scrollBody table tbody tr:first-child td { - border-top: none; -} - -div.dataTables_scrollFoot > .dataTables_scrollFootInner { - box-sizing: content-box; -} -div.dataTables_scrollFoot > .dataTables_scrollFootInner > table { - margin-top: 0 !important; - border-top: none; -} - -@media screen and (max-width: 767px) { - div.dataTables_wrapper div.dataTables_length, - div.dataTables_wrapper div.dataTables_filter, - div.dataTables_wrapper div.dataTables_info, - div.dataTables_wrapper div.dataTables_paginate { - text-align: center; - } -} -table.dataTable.table-sm > thead > tr > th { - padding-right: 20px; -} -table.dataTable.table-sm .sorting:before, -table.dataTable.table-sm .sorting_asc:before, -table.dataTable.table-sm .sorting_desc:before { - top: 5px; - right: 0.85em; -} -table.dataTable.table-sm .sorting:after, -table.dataTable.table-sm .sorting_asc:after, -table.dataTable.table-sm .sorting_desc:after { - top: 5px; -} - -table.table-bordered.dataTable th, -table.table-bordered.dataTable td { - border-left-width: 0; -} -table.table-bordered.dataTable th:last-child, table.table-bordered.dataTable th:last-child, -table.table-bordered.dataTable td:last-child, -table.table-bordered.dataTable td:last-child { - border-right-width: 0; -} -table.table-bordered.dataTable tbody th, -table.table-bordered.dataTable tbody td { - border-bottom-width: 0; -} - -div.dataTables_scrollHead table.table-bordered { - border-bottom-width: 0; -} - -div.table-responsive > div.dataTables_wrapper > div.row { - margin: 0; -} -div.table-responsive > div.dataTables_wrapper > div.row > div[class^="col-"]:first-child { - padding-left: 0; -} -div.table-responsive > div.dataTables_wrapper > div.row > div[class^="col-"]:last-child { - padding-right: 0; -} diff --git a/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css b/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css deleted file mode 100644 index f1930be0..00000000 --- a/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css +++ /dev/null @@ -1 +0,0 @@ -table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important;border-spacing:0}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:auto;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:0.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:0.85em;white-space:nowrap}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap;justify-content:flex-end}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting{padding-right:30px}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:before,table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:before,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:before,table.dataTable thead .sorting_desc_disabled:after{position:absolute;bottom:0.9em;display:block;opacity:0.3}table.dataTable thead .sorting:before,table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_desc:before,table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_desc_disabled:before{right:1em;content:"\2191"}table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after,table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{right:0.5em;content:"\2193"}table.dataTable thead .sorting_asc:before,table.dataTable thead .sorting_desc:after{opacity:1}table.dataTable thead .sorting_asc_disabled:before,table.dataTable thead .sorting_desc_disabled:after{opacity:0}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody table thead .sorting:before,div.dataTables_scrollBody table thead .sorting_asc:before,div.dataTables_scrollBody table thead .sorting_desc:before,div.dataTables_scrollBody table thead .sorting:after,div.dataTables_scrollBody table thead .sorting_asc:after,div.dataTables_scrollBody table thead .sorting_desc:after{display:none}div.dataTables_scrollBody table tbody tr:first-child th,div.dataTables_scrollBody table tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot>.dataTables_scrollFootInner{box-sizing:content-box}div.dataTables_scrollFoot>.dataTables_scrollFootInner>table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}}table.dataTable.table-sm>thead>tr>th{padding-right:20px}table.dataTable.table-sm .sorting:before,table.dataTable.table-sm .sorting_asc:before,table.dataTable.table-sm .sorting_desc:before{top:5px;right:0.85em}table.dataTable.table-sm .sorting:after,table.dataTable.table-sm .sorting_asc:after,table.dataTable.table-sm .sorting_desc:after{top:5px}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:0}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^="col-"]:last-child{padding-right:0} diff --git a/plugins/datatables-bs4/js/dataTables.bootstrap4.js b/plugins/datatables-bs4/js/dataTables.bootstrap4.js deleted file mode 100644 index f2d2ad58..00000000 --- a/plugins/datatables-bs4/js/dataTables.bootstrap4.js +++ /dev/null @@ -1,184 +0,0 @@ -/*! DataTables Bootstrap 4 integration - * ©2011-2017 SpryMedia Ltd - datatables.net/license - */ - -/** - * DataTables integration for Bootstrap 4. This requires Bootstrap 4 and - * DataTables 1.10 or newer. - * - * This file sets the defaults and adds options to DataTables to style its - * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap - * for further information. - */ -(function( factory ){ - if ( typeof define === 'function' && define.amd ) { - // AMD - define( ['jquery', 'datatables.net'], function ( $ ) { - return factory( $, window, document ); - } ); - } - else if ( typeof exports === 'object' ) { - // CommonJS - module.exports = function (root, $) { - if ( ! root ) { - root = window; - } - - if ( ! $ || ! $.fn.dataTable ) { - // Require DataTables, which attaches to jQuery, including - // jQuery if needed and have a $ property so we can access the - // jQuery object that is used - $ = require('datatables.net')(root, $).$; - } - - return factory( $, root, root.document ); - }; - } - else { - // Browser - factory( jQuery, window, document ); - } -}(function( $, window, document, undefined ) { -'use strict'; -var DataTable = $.fn.dataTable; - - -/* Set the defaults for DataTables initialisation */ -$.extend( true, DataTable.defaults, { - dom: - "<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" + - "<'row'<'col-sm-12'tr>>" + - "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>", - renderer: 'bootstrap' -} ); - - -/* Default class modification */ -$.extend( DataTable.ext.classes, { - sWrapper: "dataTables_wrapper dt-bootstrap4", - sFilterInput: "form-control form-control-sm", - sLengthSelect: "custom-select custom-select-sm form-control form-control-sm", - sProcessing: "dataTables_processing card", - sPageButton: "paginate_button page-item" -} ); - - -/* Bootstrap paging button renderer */ -DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) { - var api = new DataTable.Api( settings ); - var classes = settings.oClasses; - var lang = settings.oLanguage.oPaginate; - var aria = settings.oLanguage.oAria.paginate || {}; - var btnDisplay, btnClass, counter=0; - - var attach = function( container, buttons ) { - var i, ien, node, button; - var clickHandler = function ( e ) { - e.preventDefault(); - if ( !$(e.currentTarget).hasClass('disabled') && api.page() != e.data.action ) { - api.page( e.data.action ).draw( 'page' ); - } - }; - - for ( i=0, ien=buttons.length ; i 0 ? - '' : ' disabled'); - break; - - case 'previous': - btnDisplay = lang.sPrevious; - btnClass = button + (page > 0 ? - '' : ' disabled'); - break; - - case 'next': - btnDisplay = lang.sNext; - btnClass = button + (page < pages-1 ? - '' : ' disabled'); - break; - - case 'last': - btnDisplay = lang.sLast; - btnClass = button + (page < pages-1 ? - '' : ' disabled'); - break; - - default: - btnDisplay = button + 1; - btnClass = page === button ? - 'active' : ''; - break; - } - - if ( btnDisplay ) { - node = $('
    • ', { - 'class': classes.sPageButton+' '+btnClass, - 'id': idx === 0 && typeof button === 'string' ? - settings.sTableId +'_'+ button : - null - } ) - .append( $('', { - 'href': '#', - 'aria-controls': settings.sTableId, - 'aria-label': aria[ button ], - 'data-dt-idx': counter, - 'tabindex': settings.iTabIndex, - 'class': 'page-link' - } ) - .html( btnDisplay ) - ) - .appendTo( container ); - - settings.oApi._fnBindAction( - node, {action: button}, clickHandler - ); - - counter++; - } - } - } - }; - - // IE9 throws an 'unknown error' if document.activeElement is used - // inside an iframe or frame. - var activeEl; - - try { - // Because this approach is destroying and recreating the paging - // elements, focus is lost on the select button which is bad for - // accessibility. So we want to restore focus once the draw has - // completed - activeEl = $(host).find(document.activeElement).data('dt-idx'); - } - catch (e) {} - - attach( - $(host).empty().html('