@luzmo/analytics-components-kit 1.0.1-alpha.5 → 1.0.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{async-directive-FGzMycjH-CeG35vZ3.cjs → async-directive-DWRUSKKF-C2JoUGYR.cjs} +3 -3
- package/components/{async-directive-FGzMycjH-Bgeca09f.js → async-directive-DWRUSKKF-CNTJHpgh.js} +1 -1
- package/components/{button-base-CDLQV7Vk-C_3zTrbV.js → button-base-B7v4eeRh-B4fczZlv.js} +3 -3
- package/components/{button-base-CDLQV7Vk-BXgdcJZo.cjs → button-base-B7v4eeRh-CjngVDsD.cjs} +4 -4
- package/components/{checkbox-mixin-DXUIwtea-wiCZr_KI.js → checkbox-mixin-BFGTmw17-BR4ufh0S.js} +6 -6
- package/components/{checkbox-mixin-DXUIwtea-DNISZS47.cjs → checkbox-mixin-BFGTmw17-lIHmn1jk.cjs} +4 -4
- package/components/{directive-helpers-BLDZnGQv-DYFfxaqA.cjs → directive-helpers-nlQRAaQt-CQ_hWlbQ.cjs} +2 -2
- package/components/{directive-helpers-BLDZnGQv-oKMCBvb2.js → directive-helpers-nlQRAaQt-arNFWD5u.js} +10 -10
- package/components/display-settings/index.cjs +3 -3
- package/components/display-settings/index.js +11 -11
- package/components/display-settings-binning/display-settings-binning.d.ts +2 -2
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +17 -18
- package/components/display-settings-datetime/index.cjs +1 -1
- package/components/display-settings-datetime/index.js +1 -1
- package/components/display-settings-grand-totals/index.cjs +2 -2
- package/components/display-settings-grand-totals/index.js +12 -12
- package/components/display-settings-numeric/index.cjs +2 -2
- package/components/display-settings-numeric/index.js +36 -36
- package/components/display-settings-period-over-period/index.cjs +5 -5
- package/components/display-settings-period-over-period/index.js +85 -85
- package/components/draggable-data-item/index.cjs +2 -2
- package/components/draggable-data-item/index.js +2 -2
- package/components/draggable-data-item-level/index.cjs +5 -5
- package/components/draggable-data-item-level/index.js +85 -85
- package/components/droppable-slot/index.cjs +4 -4
- package/components/droppable-slot/index.js +8 -8
- package/components/edit-item/index.cjs +7 -7
- package/components/edit-item/index.js +72 -72
- package/components/edit-option/index.cjs +3 -3
- package/components/edit-option/index.js +3 -3
- package/components/edit-option-action-button-group/index.cjs +2 -2
- package/components/edit-option-action-button-group/index.js +37 -37
- package/components/{edit-option-base-DnrerC_T.cjs → edit-option-base-Ck3NFAli.cjs} +2 -2
- package/components/{edit-option-base-oIvlolV9.js → edit-option-base-w3UBiCoU.js} +4 -4
- package/components/edit-option-color-picker/index.cjs +33 -33
- package/components/edit-option-color-picker/index.js +131 -131
- package/components/edit-option-multi-language-field/index.cjs +1 -1
- package/components/edit-option-multi-language-field/index.js +3 -3
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +3 -3
- package/components/edit-option-picker/index.cjs +1 -1
- package/components/edit-option-picker/index.js +4 -4
- package/components/edit-option-positions-number-field/index.cjs +3 -3
- package/components/edit-option-positions-number-field/index.js +7 -7
- package/components/edit-option-radio-button-group/index.cjs +1 -1
- package/components/edit-option-radio-button-group/index.js +4 -4
- package/components/edit-option-slider/index.cjs +3 -3
- package/components/edit-option-slider/index.js +217 -217
- package/components/edit-option-switch/index.cjs +4 -4
- package/components/edit-option-switch/index.js +30 -30
- package/components/edit-option-text-field/index.cjs +1 -1
- package/components/edit-option-text-field/index.js +3 -3
- package/components/{en-GB-g8rSQSba.cjs → en-BvtH5B9A.cjs} +1 -1
- package/components/en-CN4CDOzo.js +23 -0
- package/components/{en-GB-qub-Kemt.js → en-GB-BMvD7axC.js} +1 -1
- package/components/en-GB-DrOGXwdM.cjs +20 -0
- package/components/en-US-BvtH5B9A.cjs +20 -0
- package/components/en-US-CN4CDOzo.js +23 -0
- package/components/{if-defined-CYpcjGCb-Bzbg7zmM.cjs → if-defined-BSAr_4u4-CNmaFBUP.cjs} +2 -2
- package/components/{if-defined-CYpcjGCb-tXzyj9Dq.js → if-defined-BSAr_4u4-CVDyXUmc.js} +4 -4
- package/components/{if-defined-Ch2dtEOS.js → if-defined-_S7apvH1.js} +1 -1
- package/components/{if-defined-DMSuo5Qx.cjs → if-defined-aQZR75uI.cjs} +1 -1
- package/components/{index-B0cBkCaq.cjs → index-B0ZqIWfU.cjs} +4 -4
- package/components/{index-DQiQXn8N.cjs → index-BEi8DTwW.cjs} +1 -1
- package/components/{index-3ewegRbb.cjs → index-Bti4K2L2.cjs} +4 -4
- package/components/{index-BGaxFTL4.js → index-BuW8doNV.js} +4 -4
- package/components/{index-Bofs4Q2E.cjs → index-BxFGd_xp.cjs} +1 -1
- package/components/{index-liTHhAef.cjs → index-ByfMhxDr.cjs} +2 -2
- package/components/{index-Cp-lHUlX.js → index-C44nA7Wn.js} +3 -3
- package/components/{index-BqTdFs1o.js → index-CHLcEawI.js} +3 -3
- package/components/{index-CTPox3yS.cjs → index-CKbGBBId.cjs} +3 -3
- package/components/{index-C2qG2Sm8-BQUlk-w0.js → index-CMvLpPKD-CgGXdNKs.js} +20 -20
- package/components/{index-C2qG2Sm8-CbVWlbag.cjs → index-CMvLpPKD-DoxJRhRP.cjs} +14 -14
- package/components/index-CQjWiSIp.cjs +202 -0
- package/components/{index-B2N_PZf3.js → index-C_Cxv6xn.js} +4 -4
- package/components/index-C_xCeCrL.cjs +185 -0
- package/components/{index-C_3Ak4MQ.cjs → index-CdHFj3ra.cjs} +5 -5
- package/components/{index-DskAouD-.js → index-Ci0Pe5UA.js} +4 -4
- package/components/{index-CayjvyyX.cjs → index-DC2Pby0z.cjs} +4 -4
- package/components/index-DDleIdd8.cjs +192 -0
- package/components/{index-CtHO6VyI.cjs → index-DLrQ4hc5.cjs} +4 -4
- package/components/{index-BC-nmKjU.js → index-DMbzEC_s.js} +13 -13
- package/components/{index-BRk42NQn.js → index-DUlH3hbL.js} +166 -166
- package/components/{en-BsAhbMzm.js → index-DeyQ1JGg.js} +404 -411
- package/components/{index-B2z7i1-X.js → index-DiSrnT1e.js} +7 -7
- package/components/{index-DVaeDCbe.js → index-Dkom_Qy5.js} +1 -1
- package/components/{index-ON4x-yZ7.cjs → index-DxXcY78P.cjs} +2 -2
- package/components/{index-D9vzXhtJ.cjs → index-EkTLplXl.cjs} +8 -8
- package/components/{index-BD3VxQBH.js → index-FSUV_4nO.js} +1 -1
- package/components/{index-CkDDDzuJ.js → index-Pmv-d4iw.js} +25 -25
- package/components/{index-DszPbTTD.js → index-aLxc3xA_.js} +17 -17
- package/components/{index-EQldC-LR.js → index-dJXOanPE.js} +4 -4
- package/components/{index-gfU9TGd5.cjs → index-f8GtjOLn.cjs} +3 -3
- package/components/{index-B5VaT0lQ.js → index-fbS4OrPM.js} +3 -3
- package/components/index.cjs +1 -1
- package/components/index.js +1 -1
- package/components/{language-resolution-8yZa5r_P-CTSmbE1U.js → language-resolution-8yZa5r_P-CLZhU076.js} +3 -3
- package/components/{language-resolution-8yZa5r_P-DQ3rZzW5.cjs → language-resolution-8yZa5r_P-CpbzT4ej.cjs} +3 -3
- package/components/{observe-slot-text-BG0H7bQK-CrkAqUMj.cjs → observe-slot-text-ggb4kKgY-DqsddtTd.cjs} +4 -4
- package/components/{observe-slot-text-BG0H7bQK-C0wmc4DO.js → observe-slot-text-ggb4kKgY-yUxhPbbJ.js} +4 -4
- package/components/{popover-bg0EQQ8p-D4-hrhIx.js → popover-DlkzrLpl-DFIvgCjc.js} +3 -3
- package/components/{popover-bg0EQQ8p-Dha09dhV.cjs → popover-DlkzrLpl-TYw7ejnD.cjs} +5 -5
- package/components/{property-CD3dwBJC.js → property-CXJD1jOW.js} +661 -628
- package/components/property-ChsOQ1Yj.cjs +112 -0
- package/components/{sized-mixin-PyCYpyQq-B40Ek2UB.js → sized-mixin-BxMraZLS-Dc6r-Wg4.js} +1 -1
- package/components/{sized-mixin-PyCYpyQq-sKzDjc75.cjs → sized-mixin-BxMraZLS-w9I35lP7.cjs} +2 -2
- package/components/slot-menu/index.cjs +4 -4
- package/components/slot-menu/index.js +4 -4
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +19 -19
- package/components/{state-ByiKNRhp.cjs → state-DLrsMPet.cjs} +1 -1
- package/components/{state-B1a8XIDm.js → state-DwFtyqCc.js} +1 -1
- package/components/{task-HFsHfTra.cjs → task-CgK9ztaw.cjs} +1 -1
- package/components/{task-BPD0PyaQ.js → task-DYLITx7R.js} +1 -1
- package/components/{text-field-7ITo3Lac-DqVO04kR.js → text-field-CvKSS59x-BzSqtt2_.js} +29 -29
- package/components/text-field-CvKSS59x-D0MM0fDH.cjs +131 -0
- package/package.json +1 -1
- package/components/en-CdROUdjt.cjs +0 -202
- package/components/index-Bjs6Yqet.cjs +0 -185
- package/components/index-D4x-O9Uc.cjs +0 -192
- package/components/luzmo-icons-BrtBl3E5.cjs +0 -31
- package/components/luzmo-icons-CZEpXpvy.js +0 -613
- package/components/property-Su1Q6aME.cjs +0 -124
- package/components/text-field-7ITo3Lac-CKXsSqJP.cjs +0 -131
@@ -17,19 +17,19 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
var
|
21
|
-
var
|
22
|
-
var
|
23
|
-
import {
|
24
|
-
import { m as
|
25
|
-
import { L as
|
26
|
-
const
|
20
|
+
var Vt = Object.getPrototypeOf;
|
21
|
+
var At = Reflect.get;
|
22
|
+
var Be = (o, e, i) => At(Vt(o), i, e);
|
23
|
+
import { k as Ot, H as Mt, h as Dt, R as W, x as Lt, n as B } from "../property-CXJD1jOW.js";
|
24
|
+
import { m as Ht } from "../sized-mixin-BxMraZLS-Dc6r-Wg4.js";
|
25
|
+
import { L as jt } from "../edit-option-base-w3UBiCoU.js";
|
26
|
+
const Pt = () => {
|
27
27
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
28
28
|
const o = document.createElement("style");
|
29
29
|
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
|
30
30
|
}
|
31
31
|
};
|
32
|
-
|
32
|
+
Pt();
|
33
33
|
/*! * Lucero - The design system for Luzmo.
|
34
34
|
*
|
35
35
|
* Copyright © 2025 Luzmo
|
@@ -47,17 +47,17 @@ Ot();
|
|
47
47
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
48
48
|
* SOFTWARE.
|
49
49
|
* */
|
50
|
-
const
|
50
|
+
const Rt = () => {
|
51
51
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
52
52
|
const o = document.createElement("style");
|
53
53
|
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-color-negative: #ca221c;--luzmo-color-negative-hover: #b3241f;--luzmo-color-negative-down: #9f231f;--luzmo-color-negative-focus: #b3241f;--luzmo-color-negative-rgb: 202, 34, 28;--luzmo-color-positive: rgb(20, 150, 101);--luzmo-color-positive-hover: rgb(17, 128, 86);--luzmo-color-positive-down: rgb(16, 105, 71);--luzmo-color-positive-focus: rgb(17, 128, 86);--luzmo-color-positive-rgb: 20, 150, 101;--luzmo-color-selected: rgb(110, 110, 110);--luzmo-color-selected-hover: rgb(70, 70, 70);--luzmo-color-selected-down: rgb(40, 40, 40);--luzmo-color-selected-focus: rgb(70, 70, 70);--luzmo-color-selected-hard: #1e1e1e;--luzmo-color-selected-hard-hover: rgb(0, 0, 0);--luzmo-color-selected-hard-down: rgb(0, 0, 0);--luzmo-color-selected-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
|
54
54
|
}
|
55
55
|
};
|
56
|
-
|
57
|
-
var
|
56
|
+
Rt();
|
57
|
+
var $;
|
58
58
|
(function(o) {
|
59
59
|
o.Range = "range", o.Steps = "steps", o.Positions = "positions", o.Count = "count", o.Values = "values";
|
60
|
-
})(
|
60
|
+
})($ || ($ = {}));
|
61
61
|
var M;
|
62
62
|
(function(o) {
|
63
63
|
o[o.None = -1] = "None", o[o.NoValue = 0] = "NoValue", o[o.LargeValue = 1] = "LargeValue", o[o.SmallValue = 2] = "SmallValue";
|
@@ -77,27 +77,27 @@ function ke(o) {
|
|
77
77
|
function Ye(o) {
|
78
78
|
o.preventDefault();
|
79
79
|
}
|
80
|
-
function
|
80
|
+
function Tt(o) {
|
81
81
|
return o.filter(function(e) {
|
82
82
|
return this[e] ? !1 : this[e] = !0;
|
83
83
|
}, {});
|
84
84
|
}
|
85
|
-
function
|
85
|
+
function _t(o, e) {
|
86
86
|
return Math.round(o / e) * e;
|
87
87
|
}
|
88
|
-
function
|
89
|
-
var i = o.getBoundingClientRect(), c = o.ownerDocument, l = c.documentElement, m =
|
88
|
+
function $t(o, e) {
|
89
|
+
var i = o.getBoundingClientRect(), c = o.ownerDocument, l = c.documentElement, m = We(c);
|
90
90
|
return /webkit.*Chrome.*Mobile/i.test(navigator.userAgent) && (m.x = 0), e ? i.top + m.y - l.clientTop : i.left + m.x - l.clientLeft;
|
91
91
|
}
|
92
92
|
function L(o) {
|
93
93
|
return typeof o == "number" && !isNaN(o) && isFinite(o);
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function Xe(o, e, i) {
|
96
96
|
i > 0 && (O(o, e), setTimeout(function() {
|
97
97
|
le(o, e);
|
98
98
|
}, i));
|
99
99
|
}
|
100
|
-
function
|
100
|
+
function Ie(o) {
|
101
101
|
return Math.max(Math.min(o, 100), 0);
|
102
102
|
}
|
103
103
|
function ue(o) {
|
@@ -114,17 +114,17 @@ function O(o, e) {
|
|
114
114
|
function le(o, e) {
|
115
115
|
o.classList && !/\s/.test(e) ? o.classList.remove(e) : o.className = o.className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)", "gi"), " ");
|
116
116
|
}
|
117
|
-
function
|
117
|
+
function qt(o, e) {
|
118
118
|
return o.classList ? o.classList.contains(e) : new RegExp("\\b" + e + "\\b").test(o.className);
|
119
119
|
}
|
120
|
-
function
|
120
|
+
function We(o) {
|
121
121
|
var e = window.pageXOffset !== void 0, i = (o.compatMode || "") === "CSS1Compat", c = e ? window.pageXOffset : i ? o.documentElement.scrollLeft : o.body.scrollLeft, l = e ? window.pageYOffset : i ? o.documentElement.scrollTop : o.body.scrollTop;
|
122
122
|
return {
|
123
123
|
x: c,
|
124
124
|
y: l
|
125
125
|
};
|
126
126
|
}
|
127
|
-
function
|
127
|
+
function Yt() {
|
128
128
|
return window.navigator.pointerEnabled ? {
|
129
129
|
start: "pointerdown",
|
130
130
|
move: "pointermove",
|
@@ -139,7 +139,7 @@ function qt() {
|
|
139
139
|
end: "mouseup touchend"
|
140
140
|
};
|
141
141
|
}
|
142
|
-
function
|
142
|
+
function Xt() {
|
143
143
|
var o = !1;
|
144
144
|
try {
|
145
145
|
var e = Object.defineProperty({}, "passive", {
|
@@ -161,10 +161,10 @@ function Ce(o, e) {
|
|
161
161
|
function Ee(o, e, i) {
|
162
162
|
return e * 100 / (o[i + 1] - o[i]);
|
163
163
|
}
|
164
|
-
function
|
164
|
+
function Gt(o, e) {
|
165
165
|
return Ee(o, o[0] < 0 ? e + Math.abs(o[0]) : e - o[0], 0);
|
166
166
|
}
|
167
|
-
function
|
167
|
+
function Wt(o, e) {
|
168
168
|
return e * (o[1] - o[0]) / 100 + o[0];
|
169
169
|
}
|
170
170
|
function te(o, e) {
|
@@ -172,25 +172,25 @@ function te(o, e) {
|
|
172
172
|
i += 1;
|
173
173
|
return i;
|
174
174
|
}
|
175
|
-
function
|
175
|
+
function Jt(o, e, i) {
|
176
176
|
if (i >= o.slice(-1)[0])
|
177
177
|
return 100;
|
178
178
|
var c = te(i, o), l = o[c - 1], m = o[c], p = e[c - 1], x = e[c];
|
179
|
-
return p +
|
179
|
+
return p + Gt([l, m], i) / Ce(p, x);
|
180
180
|
}
|
181
|
-
function
|
181
|
+
function Kt(o, e, i) {
|
182
182
|
if (i >= 100)
|
183
183
|
return o.slice(-1)[0];
|
184
184
|
var c = te(i, e), l = o[c - 1], m = o[c], p = e[c - 1], x = e[c];
|
185
|
-
return
|
185
|
+
return Wt([l, m], (i - p) * Ce(p, x));
|
186
186
|
}
|
187
|
-
function
|
187
|
+
function Qt(o, e, i, c) {
|
188
188
|
if (c === 100)
|
189
189
|
return c;
|
190
190
|
var l = te(c, o), m = o[l - 1], p = o[l];
|
191
|
-
return i ? c - m > (p - m) / 2 ? p : m : e[l - 1] ? o[l - 1] +
|
191
|
+
return i ? c - m > (p - m) / 2 ? p : m : e[l - 1] ? o[l - 1] + _t(c - o[l - 1], e[l - 1]) : c;
|
192
192
|
}
|
193
|
-
var
|
193
|
+
var Je = (
|
194
194
|
/** @class */
|
195
195
|
function() {
|
196
196
|
function o(e, i, c) {
|
@@ -221,11 +221,11 @@ var Ke = (
|
|
221
221
|
y = this.xPct[l + 1 + A] - this.xPct[l + A], i[l + A] * p + 100 - m * 100 > 100 ? (h = y * m, p = (x - 100 * m) / i[l + A], m = 1) : (h = i[l + A] * y / 100 * p, p = 0), c ? (N = N - h, this.xPct.length + A >= 1 && A--) : (N = N + h, this.xPct.length - A >= 1 && A++), x = i[l + A] * p;
|
222
222
|
return e + N;
|
223
223
|
}, o.prototype.toStepping = function(e) {
|
224
|
-
return e =
|
224
|
+
return e = Jt(this.xVal, this.xPct, e), e;
|
225
225
|
}, o.prototype.fromStepping = function(e) {
|
226
|
-
return
|
226
|
+
return Kt(this.xVal, this.xPct, e);
|
227
227
|
}, o.prototype.getStep = function(e) {
|
228
|
-
return e =
|
228
|
+
return e = Qt(this.xPct, this.xSteps, this.snap, e), e;
|
229
229
|
}, o.prototype.getDefaultStep = function(e, i, c) {
|
230
230
|
var l = te(e, this.xPct);
|
231
231
|
return (e === 100 || i && e === this.xPct[l - 1]) && (l = Math.max(l - 1, 1)), (this.xVal[l] - this.xVal[l - 1]) / c;
|
@@ -279,7 +279,7 @@ var Ke = (
|
|
279
279
|
return o === void 0 ? "" : o.toFixed(2);
|
280
280
|
},
|
281
281
|
from: Number
|
282
|
-
},
|
282
|
+
}, Ke = {
|
283
283
|
target: "target",
|
284
284
|
base: "base",
|
285
285
|
origin: "origin",
|
@@ -320,54 +320,54 @@ var Ke = (
|
|
320
320
|
tooltips: ".__tooltips",
|
321
321
|
aria: ".__aria"
|
322
322
|
};
|
323
|
-
function
|
323
|
+
function Zt(o, e) {
|
324
324
|
if (!L(e))
|
325
325
|
throw new Error("noUiSlider: 'step' is not numeric.");
|
326
326
|
o.singleStep = e;
|
327
327
|
}
|
328
|
-
function
|
328
|
+
function eo(o, e) {
|
329
329
|
if (!L(e))
|
330
330
|
throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");
|
331
331
|
o.keyboardPageMultiplier = e;
|
332
332
|
}
|
333
|
-
function
|
333
|
+
function to(o, e) {
|
334
334
|
if (!L(e))
|
335
335
|
throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");
|
336
336
|
o.keyboardMultiplier = e;
|
337
337
|
}
|
338
|
-
function
|
338
|
+
function oo(o, e) {
|
339
339
|
if (!L(e))
|
340
340
|
throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");
|
341
341
|
o.keyboardDefaultStep = e;
|
342
342
|
}
|
343
|
-
function
|
343
|
+
function ro(o, e) {
|
344
344
|
if (typeof e != "object" || Array.isArray(e))
|
345
345
|
throw new Error("noUiSlider: 'range' is not an object.");
|
346
346
|
if (e.min === void 0 || e.max === void 0)
|
347
347
|
throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");
|
348
|
-
o.spectrum = new
|
348
|
+
o.spectrum = new Je(e, o.snap || !1, o.singleStep);
|
349
349
|
}
|
350
|
-
function
|
350
|
+
function no(o, e) {
|
351
351
|
if (e = ue(e), !Array.isArray(e) || !e.length)
|
352
352
|
throw new Error("noUiSlider: 'start' option is incorrect.");
|
353
353
|
o.handles = e.length, o.start = e;
|
354
354
|
}
|
355
|
-
function
|
355
|
+
function io(o, e) {
|
356
356
|
if (typeof e != "boolean")
|
357
357
|
throw new Error("noUiSlider: 'snap' option must be a boolean.");
|
358
358
|
o.snap = e;
|
359
359
|
}
|
360
|
-
function
|
360
|
+
function ao(o, e) {
|
361
361
|
if (typeof e != "boolean")
|
362
362
|
throw new Error("noUiSlider: 'animate' option must be a boolean.");
|
363
363
|
o.animate = e;
|
364
364
|
}
|
365
|
-
function
|
365
|
+
function lo(o, e) {
|
366
366
|
if (typeof e != "number")
|
367
367
|
throw new Error("noUiSlider: 'animationDuration' option must be a number.");
|
368
368
|
o.animationDuration = e;
|
369
369
|
}
|
370
|
-
function
|
370
|
+
function Qe(o, e) {
|
371
371
|
var i = [!1], c;
|
372
372
|
if (e === "lower" ? e = [!0, !1] : e === "upper" && (e = [!1, !0]), e === !0 || e === !1) {
|
373
373
|
for (c = 1; c < o.handles; c++)
|
@@ -380,7 +380,7 @@ function Ze(o, e) {
|
|
380
380
|
}
|
381
381
|
o.connect = i;
|
382
382
|
}
|
383
|
-
function
|
383
|
+
function so(o, e) {
|
384
384
|
switch (e) {
|
385
385
|
case "horizontal":
|
386
386
|
o.ort = 0;
|
@@ -392,18 +392,18 @@ function lo(o, e) {
|
|
392
392
|
throw new Error("noUiSlider: 'orientation' option is invalid.");
|
393
393
|
}
|
394
394
|
}
|
395
|
-
function
|
395
|
+
function Ze(o, e) {
|
396
396
|
if (!L(e))
|
397
397
|
throw new Error("noUiSlider: 'margin' option must be numeric.");
|
398
398
|
e !== 0 && (o.margin = o.spectrum.getDistance(e));
|
399
399
|
}
|
400
|
-
function
|
400
|
+
function uo(o, e) {
|
401
401
|
if (!L(e))
|
402
402
|
throw new Error("noUiSlider: 'limit' option must be numeric.");
|
403
403
|
if (o.limit = o.spectrum.getDistance(e), !o.limit || o.handles < 2)
|
404
404
|
throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.");
|
405
405
|
}
|
406
|
-
function
|
406
|
+
function co(o, e) {
|
407
407
|
var i;
|
408
408
|
if (!L(e) && !Array.isArray(e))
|
409
409
|
throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");
|
@@ -418,7 +418,7 @@ function uo(o, e) {
|
|
418
418
|
throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.");
|
419
419
|
}
|
420
420
|
}
|
421
|
-
function
|
421
|
+
function fo(o, e) {
|
422
422
|
switch (e) {
|
423
423
|
case "ltr":
|
424
424
|
o.dir = 0;
|
@@ -430,14 +430,14 @@ function co(o, e) {
|
|
430
430
|
throw new Error("noUiSlider: 'direction' option was not recognized.");
|
431
431
|
}
|
432
432
|
}
|
433
|
-
function
|
433
|
+
function po(o, e) {
|
434
434
|
if (typeof e != "string")
|
435
435
|
throw new Error("noUiSlider: 'behaviour' must be a string containing options.");
|
436
436
|
var i = e.indexOf("tap") >= 0, c = e.indexOf("drag") >= 0, l = e.indexOf("fixed") >= 0, m = e.indexOf("snap") >= 0, p = e.indexOf("hover") >= 0, x = e.indexOf("unconstrained") >= 0, y = e.indexOf("invert-connects") >= 0, h = e.indexOf("drag-all") >= 0, N = e.indexOf("smooth-steps") >= 0;
|
437
437
|
if (l) {
|
438
438
|
if (o.handles !== 2)
|
439
439
|
throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");
|
440
|
-
|
440
|
+
Ze(o, o.start[1] - o.start[0]);
|
441
441
|
}
|
442
442
|
if (y && o.handles !== 2)
|
443
443
|
throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");
|
@@ -455,7 +455,7 @@ function fo(o, e) {
|
|
455
455
|
invertConnects: y
|
456
456
|
};
|
457
457
|
}
|
458
|
-
function
|
458
|
+
function mo(o, e) {
|
459
459
|
if (e !== !1)
|
460
460
|
if (e === !0 || se(e)) {
|
461
461
|
o.tooltips = [];
|
@@ -470,42 +470,42 @@ function po(o, e) {
|
|
470
470
|
}), o.tooltips = e;
|
471
471
|
}
|
472
472
|
}
|
473
|
-
function
|
473
|
+
function ho(o, e) {
|
474
474
|
if (e.length !== o.handles)
|
475
475
|
throw new Error("noUiSlider: must pass a attributes for all handles.");
|
476
476
|
o.handleAttributes = e;
|
477
477
|
}
|
478
|
-
function
|
478
|
+
function go(o, e) {
|
479
479
|
if (!se(e))
|
480
480
|
throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");
|
481
481
|
o.ariaFormat = e;
|
482
482
|
}
|
483
|
-
function
|
483
|
+
function bo(o, e) {
|
484
484
|
if (!Ft(e))
|
485
485
|
throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");
|
486
486
|
o.format = e;
|
487
487
|
}
|
488
|
-
function
|
488
|
+
function vo(o, e) {
|
489
489
|
if (typeof e != "boolean")
|
490
490
|
throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");
|
491
491
|
o.keyboardSupport = e;
|
492
492
|
}
|
493
|
-
function
|
493
|
+
function zo(o, e) {
|
494
494
|
o.documentElement = e;
|
495
495
|
}
|
496
|
-
function
|
496
|
+
function xo(o, e) {
|
497
497
|
if (typeof e != "string" && e !== !1)
|
498
498
|
throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");
|
499
499
|
o.cssPrefix = e;
|
500
500
|
}
|
501
|
-
function
|
501
|
+
function yo(o, e) {
|
502
502
|
if (typeof e != "object")
|
503
503
|
throw new Error("noUiSlider: 'cssClasses' must be an object.");
|
504
504
|
typeof o.cssPrefix == "string" ? (o.cssClasses = {}, Object.keys(e).forEach(function(i) {
|
505
505
|
o.cssClasses[i] = o.cssPrefix + e[i];
|
506
506
|
})) : o.cssClasses = e;
|
507
507
|
}
|
508
|
-
function
|
508
|
+
function et(o) {
|
509
509
|
var e = {
|
510
510
|
margin: null,
|
511
511
|
limit: null,
|
@@ -515,30 +515,30 @@ function tt(o) {
|
|
515
515
|
ariaFormat: Ge,
|
516
516
|
format: Ge
|
517
517
|
}, i = {
|
518
|
-
step: { r: !1, t:
|
519
|
-
keyboardPageMultiplier: { r: !1, t:
|
520
|
-
keyboardMultiplier: { r: !1, t:
|
521
|
-
keyboardDefaultStep: { r: !1, t:
|
522
|
-
start: { r: !0, t:
|
523
|
-
connect: { r: !0, t:
|
524
|
-
direction: { r: !0, t:
|
525
|
-
snap: { r: !1, t:
|
526
|
-
animate: { r: !1, t:
|
527
|
-
animationDuration: { r: !1, t:
|
528
|
-
range: { r: !0, t:
|
529
|
-
orientation: { r: !1, t:
|
530
|
-
margin: { r: !1, t:
|
531
|
-
limit: { r: !1, t:
|
532
|
-
padding: { r: !1, t:
|
533
|
-
behaviour: { r: !0, t:
|
534
|
-
ariaFormat: { r: !1, t:
|
535
|
-
format: { r: !1, t:
|
536
|
-
tooltips: { r: !1, t:
|
537
|
-
keyboardSupport: { r: !0, t:
|
538
|
-
documentElement: { r: !1, t:
|
539
|
-
cssPrefix: { r: !0, t:
|
540
|
-
cssClasses: { r: !0, t:
|
541
|
-
handleAttributes: { r: !1, t:
|
518
|
+
step: { r: !1, t: Zt },
|
519
|
+
keyboardPageMultiplier: { r: !1, t: eo },
|
520
|
+
keyboardMultiplier: { r: !1, t: to },
|
521
|
+
keyboardDefaultStep: { r: !1, t: oo },
|
522
|
+
start: { r: !0, t: no },
|
523
|
+
connect: { r: !0, t: Qe },
|
524
|
+
direction: { r: !0, t: fo },
|
525
|
+
snap: { r: !1, t: io },
|
526
|
+
animate: { r: !1, t: ao },
|
527
|
+
animationDuration: { r: !1, t: lo },
|
528
|
+
range: { r: !0, t: ro },
|
529
|
+
orientation: { r: !1, t: so },
|
530
|
+
margin: { r: !1, t: Ze },
|
531
|
+
limit: { r: !1, t: uo },
|
532
|
+
padding: { r: !1, t: co },
|
533
|
+
behaviour: { r: !0, t: po },
|
534
|
+
ariaFormat: { r: !1, t: go },
|
535
|
+
format: { r: !1, t: bo },
|
536
|
+
tooltips: { r: !1, t: mo },
|
537
|
+
keyboardSupport: { r: !0, t: vo },
|
538
|
+
documentElement: { r: !1, t: zo },
|
539
|
+
cssPrefix: { r: !0, t: xo },
|
540
|
+
cssClasses: { r: !0, t: yo },
|
541
|
+
handleAttributes: { r: !1, t: ho }
|
542
542
|
}, c = {
|
543
543
|
connect: !1,
|
544
544
|
direction: "ltr",
|
@@ -546,7 +546,7 @@ function tt(o) {
|
|
546
546
|
orientation: "horizontal",
|
547
547
|
keyboardSupport: !0,
|
548
548
|
cssPrefix: "noUi-",
|
549
|
-
cssClasses:
|
549
|
+
cssClasses: Ke,
|
550
550
|
keyboardPageMultiplier: 5,
|
551
551
|
keyboardMultiplier: 1,
|
552
552
|
keyboardDefaultStep: 10
|
@@ -567,16 +567,16 @@ function tt(o) {
|
|
567
567
|
];
|
568
568
|
return e.style = x[e.dir][e.ort], e;
|
569
569
|
}
|
570
|
-
function
|
571
|
-
var c =
|
572
|
-
function
|
570
|
+
function wo(o, e, i) {
|
571
|
+
var c = Yt(), l = It(), m = l && Xt(), p = o, x, y, h, N, A, T, g = e.spectrum, j = [], S = [], D = [], ce = 0, R = {}, K = !1, G = o.ownerDocument, oe = e.documentElement || G.documentElement, re = G.body, ot = G.dir === "rtl" || e.ort === 1 ? 0 : 100;
|
572
|
+
function F(t, r) {
|
573
573
|
var n = G.createElement("div");
|
574
574
|
return r && O(n, r), t.appendChild(n), n;
|
575
575
|
}
|
576
|
-
function
|
577
|
-
var n =
|
578
|
-
if (
|
579
|
-
return
|
576
|
+
function rt(t, r) {
|
577
|
+
var n = F(t, e.cssClasses.origin), a = F(n, e.cssClasses.handle);
|
578
|
+
if (F(a, e.cssClasses.touchArea), a.setAttribute("data-handle", String(r)), e.keyboardSupport && (a.setAttribute("tabindex", "0"), a.addEventListener("keydown", function(u) {
|
579
|
+
return zt(u, r);
|
580
580
|
})), e.handleAttributes !== void 0) {
|
581
581
|
var s = e.handleAttributes[r];
|
582
582
|
Object.keys(s).forEach(function(u) {
|
@@ -586,20 +586,20 @@ function yo(o, e, i) {
|
|
586
586
|
return a.setAttribute("role", "slider"), a.setAttribute("aria-orientation", e.ort ? "vertical" : "horizontal"), r === 0 ? O(a, e.cssClasses.handleLower) : r === e.handles - 1 && O(a, e.cssClasses.handleUpper), n.handle = a, n;
|
587
587
|
}
|
588
588
|
function de(t, r) {
|
589
|
-
return r ?
|
589
|
+
return r ? F(t, e.cssClasses.connect) : !1;
|
590
590
|
}
|
591
|
-
function
|
592
|
-
y =
|
591
|
+
function nt(t, r) {
|
592
|
+
y = F(r, e.cssClasses.connects), h = [], N = [], N.push(de(y, t[0]));
|
593
593
|
for (var n = 0; n < e.handles; n++)
|
594
|
-
h.push(
|
594
|
+
h.push(rt(r, n)), D[n] = n, N.push(de(y, t[n + 1]));
|
595
595
|
}
|
596
|
-
function
|
596
|
+
function it(t) {
|
597
597
|
O(t, e.cssClasses.target), e.dir === 0 ? O(t, e.cssClasses.ltr) : O(t, e.cssClasses.rtl), e.ort === 0 ? O(t, e.cssClasses.horizontal) : O(t, e.cssClasses.vertical);
|
598
598
|
var r = getComputedStyle(t).direction;
|
599
|
-
return r === "rtl" ? O(t, e.cssClasses.textDirectionRtl) : O(t, e.cssClasses.textDirectionLtr),
|
599
|
+
return r === "rtl" ? O(t, e.cssClasses.textDirectionRtl) : O(t, e.cssClasses.textDirectionLtr), F(t, e.cssClasses.base);
|
600
600
|
}
|
601
|
-
function
|
602
|
-
return !e.tooltips || !e.tooltips[r] ? !1 :
|
601
|
+
function at(t, r) {
|
602
|
+
return !e.tooltips || !e.tooltips[r] ? !1 : F(t.firstChild, e.cssClasses.tooltip);
|
603
603
|
}
|
604
604
|
function Ne() {
|
605
605
|
return p.hasAttribute("disabled");
|
@@ -608,12 +608,12 @@ function yo(o, e, i) {
|
|
608
608
|
var r = h[t];
|
609
609
|
return r.hasAttribute("disabled");
|
610
610
|
}
|
611
|
-
function
|
611
|
+
function lt(t) {
|
612
612
|
t != null ? (h[t].setAttribute("disabled", ""), h[t].handle.removeAttribute("tabindex")) : (p.setAttribute("disabled", ""), h.forEach(function(r) {
|
613
613
|
r.handle.removeAttribute("tabindex");
|
614
614
|
}));
|
615
615
|
}
|
616
|
-
function
|
616
|
+
function st(t) {
|
617
617
|
t != null ? (h[t].removeAttribute("disabled"), h[t].handle.setAttribute("tabindex", "0")) : (p.removeAttribute("disabled"), h.forEach(function(r) {
|
618
618
|
r.removeAttribute("disabled"), r.handle.setAttribute("tabindex", "0");
|
619
619
|
}));
|
@@ -624,14 +624,14 @@ function yo(o, e, i) {
|
|
624
624
|
}), T = null);
|
625
625
|
}
|
626
626
|
function Ve() {
|
627
|
-
pe(), T = h.map(
|
627
|
+
pe(), T = h.map(at), ve("update" + _.tooltips, function(t, r, n) {
|
628
628
|
if (!(!T || !e.tooltips) && T[r] !== !1) {
|
629
629
|
var a = t[r];
|
630
630
|
e.tooltips[r] !== !0 && (a = e.tooltips[r].to(n[r])), T[r].innerHTML = a;
|
631
631
|
}
|
632
632
|
});
|
633
633
|
}
|
634
|
-
function
|
634
|
+
function ut() {
|
635
635
|
Q("update" + _.aria), ve("update" + _.aria, function(t, r, n, a, s) {
|
636
636
|
D.forEach(function(u) {
|
637
637
|
var f = h[u], d = ne(S, u, 0, !0, !0, !0), v = ne(S, u, 100, !0, !0, !0), z = s[u], w = String(e.ariaFormat.to(n[u]));
|
@@ -639,17 +639,17 @@ function yo(o, e, i) {
|
|
639
639
|
});
|
640
640
|
});
|
641
641
|
}
|
642
|
-
function
|
643
|
-
if (t.mode ===
|
642
|
+
function ct(t) {
|
643
|
+
if (t.mode === $.Range || t.mode === $.Steps)
|
644
644
|
return g.xVal;
|
645
|
-
if (t.mode ===
|
645
|
+
if (t.mode === $.Count) {
|
646
646
|
if (t.values < 2)
|
647
647
|
throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");
|
648
648
|
for (var r = t.values - 1, n = 100 / r, a = []; r--; )
|
649
649
|
a[r] = r * n;
|
650
650
|
return a.push(100), Ae(a, t.stepped);
|
651
651
|
}
|
652
|
-
return t.mode ===
|
652
|
+
return t.mode === $.Positions ? Ae(t.values, t.stepped) : t.mode === $.Values ? t.stepped ? t.values.map(function(s) {
|
653
653
|
return g.fromStepping(g.getStep(g.toStepping(s)));
|
654
654
|
}) : t.values : [];
|
655
655
|
}
|
@@ -658,23 +658,23 @@ function yo(o, e, i) {
|
|
658
658
|
return g.fromStepping(r ? g.getStep(n) : n);
|
659
659
|
});
|
660
660
|
}
|
661
|
-
function
|
661
|
+
function dt(t) {
|
662
662
|
function r(z, w) {
|
663
663
|
return Number((z + w).toFixed(7));
|
664
664
|
}
|
665
|
-
var n =
|
666
|
-
return n =
|
665
|
+
var n = ct(t), a = {}, s = g.xVal[0], u = g.xVal[g.xVal.length - 1], f = !1, d = !1, v = 0;
|
666
|
+
return n = Tt(n.slice().sort(function(z, w) {
|
667
667
|
return z - w;
|
668
668
|
})), n[0] !== s && (n.unshift(s), f = !0), n[n.length - 1] !== u && (n.push(u), d = !0), n.forEach(function(z, w) {
|
669
|
-
var U, b, E, P = z, C = n[w + 1], V, ye, we, Ue, Te, Se, _e,
|
670
|
-
for (
|
669
|
+
var U, b, E, P = z, C = n[w + 1], V, ye, we, Ue, Te, Se, _e, $e = t.mode === $.Steps;
|
670
|
+
for ($e && (U = g.xNumSteps[w]), U || (U = C - P), C === void 0 && (C = P), U = Math.max(U, 1e-7), b = P; b <= C; b = r(b, U)) {
|
671
671
|
for (V = g.toStepping(b), ye = V - v, Te = ye / (t.density || 1), Se = Math.round(Te), _e = ye / Se, E = 1; E <= Se; E += 1)
|
672
672
|
we = v + E * _e, a[we.toFixed(5)] = [g.fromStepping(we), 0];
|
673
|
-
Ue = n.indexOf(b) > -1 ? M.LargeValue :
|
673
|
+
Ue = n.indexOf(b) > -1 ? M.LargeValue : $e ? M.SmallValue : M.NoValue, !w && f && b !== C && (Ue = 0), b === C && d || (a[V.toFixed(5)] = [b, Ue]), v = V;
|
674
674
|
}
|
675
675
|
}), a;
|
676
676
|
}
|
677
|
-
function
|
677
|
+
function ft(t, r, n) {
|
678
678
|
var a, s, u = G.createElement("div"), f = (a = {}, a[M.None] = "", a[M.NoValue] = e.cssClasses.valueNormal, a[M.LargeValue] = e.cssClasses.valueLarge, a[M.SmallValue] = e.cssClasses.valueSub, a), d = (s = {}, s[M.None] = "", s[M.NoValue] = e.cssClasses.markerNormal, s[M.LargeValue] = e.cssClasses.markerLarge, s[M.SmallValue] = e.cssClasses.markerSub, s), v = [e.cssClasses.valueHorizontal, e.cssClasses.valueVertical], z = [e.cssClasses.markerHorizontal, e.cssClasses.markerVertical];
|
679
679
|
O(u, e.cssClasses.pips), O(u, e.ort === 0 ? e.cssClasses.pipsHorizontal : e.cssClasses.pipsVertical);
|
680
680
|
function w(b, E) {
|
@@ -683,8 +683,8 @@ function yo(o, e, i) {
|
|
683
683
|
}
|
684
684
|
function U(b, E, P) {
|
685
685
|
if (P = r ? r(E, P) : P, P !== M.None) {
|
686
|
-
var C =
|
687
|
-
C.className = w(P, e.cssClasses.marker), C.style[e.style] = b + "%", P > M.NoValue && (C =
|
686
|
+
var C = F(u, !1);
|
687
|
+
C.className = w(P, e.cssClasses.marker), C.style[e.style] = b + "%", P > M.NoValue && (C = F(u, !1), C.className = w(P, e.cssClasses.value), C.setAttribute("data-value", String(E)), C.style[e.style] = b + "%", C.innerHTML = String(n.to(E)));
|
688
688
|
}
|
689
689
|
}
|
690
690
|
return Object.keys(t).forEach(function(b) {
|
@@ -696,12 +696,12 @@ function yo(o, e, i) {
|
|
696
696
|
}
|
697
697
|
function he(t) {
|
698
698
|
me();
|
699
|
-
var r =
|
699
|
+
var r = dt(t), n = t.filter, a = t.format || {
|
700
700
|
to: function(s) {
|
701
701
|
return String(Math.round(s));
|
702
702
|
}
|
703
703
|
};
|
704
|
-
return A = p.appendChild(
|
704
|
+
return A = p.appendChild(ft(r, n, a)), A;
|
705
705
|
}
|
706
706
|
function Pe() {
|
707
707
|
var t = x.getBoundingClientRect(), r = "offset" + ["Width", "Height"][e.ort];
|
@@ -709,8 +709,8 @@ function yo(o, e, i) {
|
|
709
709
|
}
|
710
710
|
function Y(t, r, n, a) {
|
711
711
|
var s = function(f) {
|
712
|
-
var d =
|
713
|
-
if (!d || Ne() && !a.doNotReject ||
|
712
|
+
var d = pt(f, a.pageOffset, a.target || r);
|
713
|
+
if (!d || Ne() && !a.doNotReject || qt(p, e.cssClasses.tap) && !a.doNotReject || t === c.start && d.buttons !== void 0 && d.buttons > 1 || a.hover && d.buttons)
|
714
714
|
return !1;
|
715
715
|
m || d.preventDefault(), d.calcPoint = d.points[e.ort], n(d, a);
|
716
716
|
}, u = [];
|
@@ -718,7 +718,7 @@ function yo(o, e, i) {
|
|
718
718
|
r.addEventListener(f, s, m ? { passive: !0 } : !1), u.push([f, s]);
|
719
719
|
}), u;
|
720
720
|
}
|
721
|
-
function
|
721
|
+
function pt(t, r, n) {
|
722
722
|
var a = t.type.indexOf("touch") === 0, s = t.type.indexOf("mouse") === 0, u = t.type.indexOf("pointer") === 0, f = 0, d = 0;
|
723
723
|
if (t.type.indexOf("MSPointer") === 0 && (u = !0), t.type === "mousedown" && !t.buttons && !t.touches)
|
724
724
|
return !1;
|
@@ -739,13 +739,13 @@ function yo(o, e, i) {
|
|
739
739
|
f = w.pageX, d = w.pageY;
|
740
740
|
}
|
741
741
|
}
|
742
|
-
return r = r ||
|
742
|
+
return r = r || We(G), (s || u) && (f = t.clientX + r.x, d = t.clientY + r.y), t.pageOffset = r, t.points = [f, d], t.cursor = s || u, t;
|
743
743
|
}
|
744
744
|
function Oe(t) {
|
745
|
-
var r = t -
|
746
|
-
return n =
|
745
|
+
var r = t - $t(x, e.ort), n = r * 100 / Pe();
|
746
|
+
return n = Ie(n), e.dir ? 100 - n : n;
|
747
747
|
}
|
748
|
-
function
|
748
|
+
function mt(t) {
|
749
749
|
var r = 100, n = !1;
|
750
750
|
return h.forEach(function(a, s) {
|
751
751
|
if (!fe(s)) {
|
@@ -754,10 +754,10 @@ function yo(o, e, i) {
|
|
754
754
|
}
|
755
755
|
}), n;
|
756
756
|
}
|
757
|
-
function
|
757
|
+
function ht(t, r) {
|
758
758
|
t.type === "mouseout" && t.target.nodeName === "HTML" && t.relatedTarget === null && ge(t, r);
|
759
759
|
}
|
760
|
-
function
|
760
|
+
function gt(t, r) {
|
761
761
|
if (navigator.appVersion.indexOf("MSIE 9") === -1 && t.buttons === 0 && r.buttonsProperty !== 0)
|
762
762
|
return ge(t, r);
|
763
763
|
var n = (e.dir ? -1 : 1) * (t.calcPoint - r.startCalcPoint), a = n * 100 / r.baseSize;
|
@@ -767,7 +767,7 @@ function yo(o, e, i) {
|
|
767
767
|
r.handle && (le(r.handle, e.cssClasses.active), ce -= 1), r.listeners.forEach(function(n) {
|
768
768
|
oe.removeEventListener(n[0], n[1]);
|
769
769
|
}), ce === 0 && (le(p, e.cssClasses.drag), xe(), t.cursor && (re.style.cursor = "", re.removeEventListener("selectstart", Ye))), e.events.smoothSteps && (r.handleNumbers.forEach(function(n) {
|
770
|
-
|
770
|
+
X(n, S[n], !0, !0, !1, !1);
|
771
771
|
}), r.handleNumbers.forEach(function(n) {
|
772
772
|
k("update", n);
|
773
773
|
})), r.handleNumbers.forEach(function(n) {
|
@@ -782,7 +782,7 @@ function yo(o, e, i) {
|
|
782
782
|
n = a.children[0], ce += 1, O(n, e.cssClasses.active);
|
783
783
|
}
|
784
784
|
t.stopPropagation();
|
785
|
-
var s = [], u = Y(c.move, oe,
|
785
|
+
var s = [], u = Y(c.move, oe, gt, {
|
786
786
|
// The event target has changed so we need to propagate the original one so that we keep
|
787
787
|
// relying on it to extract target touches.
|
788
788
|
target: t.target,
|
@@ -801,7 +801,7 @@ function yo(o, e, i) {
|
|
801
801
|
listeners: s,
|
802
802
|
doNotReject: !0,
|
803
803
|
handleNumbers: r.handleNumbers
|
804
|
-
}), d = Y("mouseout", oe,
|
804
|
+
}), d = Y("mouseout", oe, ht, {
|
805
805
|
target: t.target,
|
806
806
|
handle: n,
|
807
807
|
listeners: s,
|
@@ -813,20 +813,20 @@ function yo(o, e, i) {
|
|
813
813
|
});
|
814
814
|
}
|
815
815
|
}
|
816
|
-
function
|
816
|
+
function bt(t) {
|
817
817
|
t.stopPropagation();
|
818
|
-
var r = Oe(t.calcPoint), n =
|
819
|
-
n !== !1 && (e.events.snap ||
|
818
|
+
var r = Oe(t.calcPoint), n = mt(r);
|
819
|
+
n !== !1 && (e.events.snap || Xe(p, e.cssClasses.tap, e.animationDuration), X(n, r, !0, !0), xe(), k("slide", n, !0), k("update", n, !0), e.events.snap ? be(t, { handleNumbers: [n] }) : (k("change", n, !0), k("set", n, !0)));
|
820
820
|
}
|
821
|
-
function
|
821
|
+
function vt(t) {
|
822
822
|
var r = Oe(t.calcPoint), n = g.getStep(r), a = g.fromStepping(n);
|
823
|
-
Object.keys(
|
824
|
-
s.split(".")[0] === "hover" &&
|
823
|
+
Object.keys(R).forEach(function(s) {
|
824
|
+
s.split(".")[0] === "hover" && R[s].forEach(function(u) {
|
825
825
|
u.call(ae, a);
|
826
826
|
});
|
827
827
|
});
|
828
828
|
}
|
829
|
-
function
|
829
|
+
function zt(t, r) {
|
830
830
|
if (Ne() || fe(r))
|
831
831
|
return !1;
|
832
832
|
var n = ["Left", "Right"], a = ["Down", "Up"], s = ["PageDown", "PageUp"], u = ["Home", "End"];
|
@@ -837,19 +837,19 @@ function yo(o, e, i) {
|
|
837
837
|
t.preventDefault();
|
838
838
|
var E;
|
839
839
|
if (w || z) {
|
840
|
-
var P = z ? 0 : 1, C =
|
840
|
+
var P = z ? 0 : 1, C = Re(r), V = C[P];
|
841
841
|
if (V === null)
|
842
842
|
return !1;
|
843
843
|
V === !1 && (V = g.getDefaultStep(S[r], z, e.keyboardDefaultStep)), v || d ? V *= e.keyboardPageMultiplier : V *= e.keyboardMultiplier, V = Math.max(V, 1e-7), V = (z ? -1 : 1) * V, E = j[r] + V;
|
844
844
|
} else b ? E = e.spectrum.xVal[e.spectrum.xVal.length - 1] : E = e.spectrum.xVal[0];
|
845
|
-
return
|
845
|
+
return X(r, g.toStepping(E), !0, !0), k("slide", r), k("update", r), k("change", r), k("set", r), !1;
|
846
846
|
}
|
847
847
|
function Me(t) {
|
848
848
|
t.fixed || h.forEach(function(r, n) {
|
849
849
|
Y(c.start, r.children[0], be, {
|
850
850
|
handleNumbers: [n]
|
851
851
|
});
|
852
|
-
}), t.tap && Y(c.start, x,
|
852
|
+
}), t.tap && Y(c.start, x, bt, {}), t.hover && Y(c.move, x, vt, {
|
853
853
|
hover: !0
|
854
854
|
}), t.drag && N.forEach(function(r, n) {
|
855
855
|
if (!(r === !1 || n === 0 || n === N.length - 1)) {
|
@@ -865,24 +865,24 @@ function yo(o, e, i) {
|
|
865
865
|
});
|
866
866
|
}
|
867
867
|
function ve(t, r) {
|
868
|
-
|
868
|
+
R[t] = R[t] || [], R[t].push(r), t.split(".")[0] === "update" && h.forEach(function(n, a) {
|
869
869
|
k("update", a);
|
870
870
|
});
|
871
871
|
}
|
872
|
-
function
|
872
|
+
function xt(t) {
|
873
873
|
return t === _.aria || t === _.tooltips;
|
874
874
|
}
|
875
875
|
function Q(t) {
|
876
876
|
var r = t && t.split(".")[0], n = r ? t.substring(r.length) : t;
|
877
|
-
Object.keys(
|
877
|
+
Object.keys(R).forEach(function(a) {
|
878
878
|
var s = a.split(".")[0], u = a.substring(s.length);
|
879
|
-
(!r || r === s) && (!n || n === u) && (!
|
879
|
+
(!r || r === s) && (!n || n === u) && (!xt(u) || n === u) && delete R[a];
|
880
880
|
});
|
881
881
|
}
|
882
882
|
function k(t, r, n) {
|
883
|
-
Object.keys(
|
883
|
+
Object.keys(R).forEach(function(a) {
|
884
884
|
var s = a.split(".")[0];
|
885
|
-
t === s &&
|
885
|
+
t === s && R[a].forEach(function(u) {
|
886
886
|
u.call(
|
887
887
|
// Use the slider public API as the scope ('this')
|
888
888
|
ae,
|
@@ -904,7 +904,7 @@ function yo(o, e, i) {
|
|
904
904
|
}
|
905
905
|
function ne(t, r, n, a, s, u, f) {
|
906
906
|
var d;
|
907
|
-
return h.length > 1 && !e.events.unconstrained && (a && r > 0 && (d = g.getAbsoluteDistance(t[r - 1], e.margin, !1), n = Math.max(n, d)), s && r < h.length - 1 && (d = g.getAbsoluteDistance(t[r + 1], e.margin, !0), n = Math.min(n, d))), h.length > 1 && e.limit && (a && r > 0 && (d = g.getAbsoluteDistance(t[r - 1], e.limit, !1), n = Math.min(n, d)), s && r < h.length - 1 && (d = g.getAbsoluteDistance(t[r + 1], e.limit, !0), n = Math.max(n, d))), e.padding && (r === 0 && (d = g.getAbsoluteDistance(0, e.padding[0], !1), n = Math.max(n, d)), r === h.length - 1 && (d = g.getAbsoluteDistance(100, e.padding[1], !0), n = Math.min(n, d))), f || (n = g.getStep(n)), n =
|
907
|
+
return h.length > 1 && !e.events.unconstrained && (a && r > 0 && (d = g.getAbsoluteDistance(t[r - 1], e.margin, !1), n = Math.max(n, d)), s && r < h.length - 1 && (d = g.getAbsoluteDistance(t[r + 1], e.margin, !0), n = Math.min(n, d))), h.length > 1 && e.limit && (a && r > 0 && (d = g.getAbsoluteDistance(t[r - 1], e.limit, !1), n = Math.min(n, d)), s && r < h.length - 1 && (d = g.getAbsoluteDistance(t[r + 1], e.limit, !0), n = Math.max(n, d))), e.padding && (r === 0 && (d = g.getAbsoluteDistance(0, e.padding[0], !1), n = Math.max(n, d)), r === h.length - 1 && (d = g.getAbsoluteDistance(100, e.padding[1], !0), n = Math.min(n, d))), f || (n = g.getStep(n)), n = Ie(n), n === t[r] && !u ? !1 : n;
|
908
908
|
}
|
909
909
|
function ze(t, r) {
|
910
910
|
var n = e.ort;
|
@@ -918,7 +918,7 @@ function yo(o, e, i) {
|
|
918
918
|
}) : v = z = [!0];
|
919
919
|
var w = !1;
|
920
920
|
a.forEach(function(U, b) {
|
921
|
-
w =
|
921
|
+
w = X(U, n[U] + r, v[b], z[b], !1, d) || w;
|
922
922
|
}), w && (a.forEach(function(U) {
|
923
923
|
k("update", U), k("slide", U);
|
924
924
|
}), s != null && k("drag", f));
|
@@ -926,15 +926,15 @@ function yo(o, e, i) {
|
|
926
926
|
function Le(t, r) {
|
927
927
|
return e.dir ? 100 - t - r : t;
|
928
928
|
}
|
929
|
-
function
|
929
|
+
function yt(t, r) {
|
930
930
|
S[t] = r, j[t] = g.fromStepping(r);
|
931
|
-
var n = Le(r, 0) -
|
931
|
+
var n = Le(r, 0) - ot, a = "translate(" + ze(n + "%", "0") + ")";
|
932
932
|
if (h[t].style[e.transformRule] = a, e.events.invertConnects && S.length > 1) {
|
933
933
|
var s = S.every(function(u, f, d) {
|
934
934
|
return f === 0 || u >= d[f - 1];
|
935
935
|
});
|
936
936
|
if (K !== !s) {
|
937
|
-
|
937
|
+
Ct();
|
938
938
|
return;
|
939
939
|
}
|
940
940
|
}
|
@@ -946,8 +946,8 @@ function yo(o, e, i) {
|
|
946
946
|
h[t].style.zIndex = String(n);
|
947
947
|
});
|
948
948
|
}
|
949
|
-
function
|
950
|
-
return s || (r = ne(S, t, r, n, a, !1, u)), r === !1 ? !1 : (
|
949
|
+
function X(t, r, n, a, s, u) {
|
950
|
+
return s || (r = ne(S, t, r, n, a, !1, u)), r === !1 ? !1 : (yt(t, r), !0);
|
951
951
|
}
|
952
952
|
function Z(t) {
|
953
953
|
if (N[t]) {
|
@@ -966,8 +966,8 @@ function yo(o, e, i) {
|
|
966
966
|
}
|
967
967
|
function ie(t, r, n) {
|
968
968
|
var a = ue(t), s = S[0] === void 0;
|
969
|
-
r = r === void 0 ? !0 : r, e.animate && !s &&
|
970
|
-
|
969
|
+
r = r === void 0 ? !0 : r, e.animate && !s && Xe(p, e.cssClasses.tap, e.animationDuration), D.forEach(function(d) {
|
970
|
+
X(d, He(a[d], d), !0, !1, n);
|
971
971
|
});
|
972
972
|
var u = D.length === 1 ? 0 : 1;
|
973
973
|
if (s && g.hasNoSize() && (n = !0, S[0] = 0, D.length > 1)) {
|
@@ -978,19 +978,19 @@ function yo(o, e, i) {
|
|
978
978
|
}
|
979
979
|
for (; u < D.length; ++u)
|
980
980
|
D.forEach(function(d) {
|
981
|
-
|
981
|
+
X(d, S[d], !0, !0, n);
|
982
982
|
});
|
983
983
|
xe(), D.forEach(function(d) {
|
984
984
|
k("update", d), a[d] !== null && r && k("set", d);
|
985
985
|
});
|
986
986
|
}
|
987
|
-
function
|
987
|
+
function wt(t) {
|
988
988
|
ie(e.start, t);
|
989
989
|
}
|
990
|
-
function
|
990
|
+
function Ut(t, r, n, a) {
|
991
991
|
if (t = Number(t), !(t >= 0 && t < D.length))
|
992
992
|
throw new Error("noUiSlider: invalid handle number, got: " + t);
|
993
|
-
|
993
|
+
X(t, He(r, t), !0, !0, a), k("update", t), n && k("set", t);
|
994
994
|
}
|
995
995
|
function je(t) {
|
996
996
|
if (t === void 0 && (t = !1), t)
|
@@ -998,14 +998,14 @@ function yo(o, e, i) {
|
|
998
998
|
var r = j.map(e.format.to);
|
999
999
|
return r.length === 1 ? r[0] : r;
|
1000
1000
|
}
|
1001
|
-
function
|
1001
|
+
function St() {
|
1002
1002
|
for (Q(_.aria), Q(_.tooltips), Object.keys(e.cssClasses).forEach(function(t) {
|
1003
1003
|
le(p, e.cssClasses[t]);
|
1004
1004
|
}); p.firstChild; )
|
1005
1005
|
p.removeChild(p.firstChild);
|
1006
1006
|
delete p.noUiSlider;
|
1007
1007
|
}
|
1008
|
-
function
|
1008
|
+
function Re(t) {
|
1009
1009
|
var r = S[t], n = g.getNearbySteps(r), a = j[t], s = n.thisStep.step, u = null;
|
1010
1010
|
if (e.snap)
|
1011
1011
|
return [
|
@@ -1016,10 +1016,10 @@ function yo(o, e, i) {
|
|
1016
1016
|
var f = g.countStepDecimals();
|
1017
1017
|
return s !== null && s !== !1 && (s = Number(s.toFixed(f))), u !== null && u !== !1 && (u = Number(u.toFixed(f))), [u, s];
|
1018
1018
|
}
|
1019
|
-
function
|
1020
|
-
return D.map(
|
1019
|
+
function kt() {
|
1020
|
+
return D.map(Re);
|
1021
1021
|
}
|
1022
|
-
function
|
1022
|
+
function Et(t, r) {
|
1023
1023
|
var n = je(), a = [
|
1024
1024
|
"margin",
|
1025
1025
|
"limit",
|
@@ -1036,48 +1036,48 @@ function yo(o, e, i) {
|
|
1036
1036
|
a.forEach(function(u) {
|
1037
1037
|
t[u] !== void 0 && (i[u] = t[u]);
|
1038
1038
|
});
|
1039
|
-
var s =
|
1039
|
+
var s = et(i);
|
1040
1040
|
a.forEach(function(u) {
|
1041
1041
|
t[u] !== void 0 && (e[u] = s[u]);
|
1042
|
-
}), g = s.spectrum, e.margin = s.margin, e.limit = s.limit, e.padding = s.padding, e.pips ? he(e.pips) : me(), e.tooltips ? Ve() : pe(), S = [], ie(ke(t.start) ? t.start : n, r), t.connect &&
|
1042
|
+
}), g = s.spectrum, e.margin = s.margin, e.limit = s.limit, e.padding = s.padding, e.pips ? he(e.pips) : me(), e.tooltips ? Ve() : pe(), S = [], ie(ke(t.start) ? t.start : n, r), t.connect && Fe();
|
1043
1043
|
}
|
1044
|
-
function
|
1044
|
+
function Fe() {
|
1045
1045
|
for (; y.firstChild; )
|
1046
1046
|
y.removeChild(y.firstChild);
|
1047
1047
|
for (var t = 0; t <= e.handles; t++)
|
1048
1048
|
N[t] = de(y, e.connect[t]), Z(t);
|
1049
1049
|
Me({ drag: e.events.drag, fixed: !0 });
|
1050
1050
|
}
|
1051
|
-
function
|
1052
|
-
K = !K,
|
1051
|
+
function Ct() {
|
1052
|
+
K = !K, Qe(
|
1053
1053
|
e,
|
1054
1054
|
// inverse the connect boolean array
|
1055
1055
|
e.connect.map(function(t) {
|
1056
1056
|
return !t;
|
1057
1057
|
})
|
1058
|
-
),
|
1058
|
+
), Fe();
|
1059
1059
|
}
|
1060
|
-
function
|
1061
|
-
x =
|
1060
|
+
function Nt() {
|
1061
|
+
x = it(p), nt(e.connect, x), Me(e.events), ie(e.start), e.pips && he(e.pips), e.tooltips && Ve(), ut();
|
1062
1062
|
}
|
1063
|
-
|
1063
|
+
Nt();
|
1064
1064
|
var ae = {
|
1065
|
-
destroy:
|
1066
|
-
steps:
|
1065
|
+
destroy: St,
|
1066
|
+
steps: kt,
|
1067
1067
|
on: ve,
|
1068
1068
|
off: Q,
|
1069
1069
|
get: je,
|
1070
1070
|
set: ie,
|
1071
|
-
setHandle:
|
1072
|
-
reset:
|
1073
|
-
disable:
|
1074
|
-
enable:
|
1071
|
+
setHandle: Ut,
|
1072
|
+
reset: wt,
|
1073
|
+
disable: lt,
|
1074
|
+
enable: st,
|
1075
1075
|
// Exposed for unit testing, don't use this in your application.
|
1076
1076
|
__moveHandles: function(t, r, n) {
|
1077
1077
|
De(t, r, S, n);
|
1078
1078
|
},
|
1079
1079
|
options: i,
|
1080
|
-
updateOptions:
|
1080
|
+
updateOptions: Et,
|
1081
1081
|
target: p,
|
1082
1082
|
removePips: me,
|
1083
1083
|
removeTooltips: pe,
|
@@ -1095,28 +1095,28 @@ function yo(o, e, i) {
|
|
1095
1095
|
};
|
1096
1096
|
return ae;
|
1097
1097
|
}
|
1098
|
-
function
|
1098
|
+
function Uo(o, e) {
|
1099
1099
|
if (!o || !o.nodeName)
|
1100
1100
|
throw new Error("noUiSlider: create requires a single element, got: " + o);
|
1101
1101
|
if (o.noUiSlider)
|
1102
1102
|
throw new Error("noUiSlider: Slider was already initialized.");
|
1103
|
-
var i =
|
1103
|
+
var i = et(e), c = wo(o, i, e);
|
1104
1104
|
return o.noUiSlider = c, c;
|
1105
1105
|
}
|
1106
|
-
const
|
1106
|
+
const So = {
|
1107
1107
|
// Exposed for unit testing, don't use this in your application.
|
1108
|
-
__spectrum:
|
1108
|
+
__spectrum: Je,
|
1109
1109
|
// A reference to the default classes, allows global changes.
|
1110
1110
|
// Use the cssClasses option for changes to one slider.
|
1111
|
-
cssClasses:
|
1112
|
-
create:
|
1113
|
-
},
|
1114
|
-
var
|
1111
|
+
cssClasses: Ke,
|
1112
|
+
create: Uo
|
1113
|
+
}, ko = '.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#fafafa;border-radius:4px;border:1px solid #d3d3d3;box-shadow:inset 0 1px 1px #f0f0f0,0 3px 6px -5px #bbb}.noUi-connects{border-radius:3px}.noUi-connect{background:#3fb8af}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #d9d9d9;border-radius:3px;background:#fff;cursor:default;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb}.noUi-active{box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect,.noUi-horizontal[disabled] .noUi-connects .noUi-connect{background:var(--luzmo-slider-background-color-disabled, var(--luzmo-disabled-color, #b8b8b8))}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed!important}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#ccc}.noUi-marker-sub,.noUi-marker-large{background:#aaa}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translateY(-50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translateY(50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #d9d9d9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translateY(-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translateY(-18px);top:auto;right:28px}.noUi-handle.noUi-handle-lower:focus-visible{outline:calc(var(--luzmo-border-width) / var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5))) solid var(--luzmo-primary)}:host{flex-grow:1;height:1rem}.luzmo-slider-container{width:100%}.noUi-horizontal{height:var(--luzmo-slider-track-height, var(--slider-track-height, 18px));top:var(--luzmo-slider-top-to-track, var(--slider-top-to-track, 0));border:none;box-shadow:none}.noUi-horizontal .noUi-base{background:var(--luzmo-background-color);cursor:pointer}.noUi-horizontal .noUi-connects{width:100%;left:0;background:var(--luzmo-border-color);border-radius:.625rem}.noUi-horizontal .noUi-connects .noUi-connect{background:var(--luzmo-primary)}.noUi-horizontal .noUi-origin .noUi-handle{transform:scale(var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5)));width:var(--luzmo-slider-handle-size, var(--slider-handle-size, 2rem));height:var(--luzmo-slider-handle-size, var(--slider-handle-size, 2rem));right:var(--luzmo-slider-edge-to-handle, var(--slider-edge-to-handle, 14px));top:var(--luzmo-slider-top-to-handle, var(--slider-top-to-handle, -.875rem));background:var(--luzmo-background-color);transition:background-color var(--luzmo-animation-duration);box-shadow:0 .125rem .25rem var(--luzmo-border-color),inset 0 0 0 .0625rem var(--luzmo-border-color);border-radius:50%;border:none;cursor:pointer}.noUi-horizontal .noUi-origin .noUi-handle:before,.noUi-horizontal .noUi-origin .noUi-handle:after{display:none}.noUi-horizontal .noUi-origin .noUi-handle:hover,.noUi-horizontal .noUi-origin .noUi-handle.noUi-active{background-color:var(--luzmo-slider-background-color-hover, var(--luzmo-background-color-hover))}.noUi-horizontal[disabled] .noUi-connects{background:var(--luzmo-slider-background-color-disabled, var(--luzmo-background-color-disabled))}.noUi-horizontal[disabled] .noUi-origin .noUi-handle:hover{background-color:var(--luzmo-slider-background-color-disabled-hover, var(--luzmo-background-color))}.noUi-tooltip{padding:.5rem;font-size:calc(var(--luzmo-slider-tooltip-font-size, var(--slider-tooltip-font-size)) / var(--luzmo-slider-handle-scale, var(--slider-handle-scale, .5)));background:var(--luzmo-background-color);color:var(--luzmo-font-color);display:none}.noUi-active .noUi-tooltip{display:block}:host{font-family:var(--luzmo-slider-font-family, var(--luzmo-font-family));min-block-size:var(--luzmo-slider-item-height, var(--slider-item-height));--slider-edge-to-handle: calc(-1 * var(--slider-handle-size) / 2);--slider-top-to-track: calc( ( var(--luzmo-slider-item-height, var(--slider-item-height)) - var(--luzmo-slider-track-height, var(--slider-track-height)) ) / 2 );--slider-top-to-handle: calc( ( ( (var(--luzmo-slider-track-height, var(--slider-track-height))) / 2 - var(--luzmo-slider-handle-size, var(--slider-handle-size)) * var(--luzmo-slider-handle-scale, var(--slider-handle-scale)) ) ) )}:host([size=s]){--slider-item-height: 24px;--slider-track-height: 3px;--slider-handle-scale: .5;--slider-handle-size: 32px;--slider-tooltip-font-size: var(--luzmo-font-size-xs)}:host{--slider-item-height: 32px;--slider-track-height: 4px;--slider-handle-scale: .5;--slider-handle-size: 36px;--slider-tooltip-font-size: var(--luzmo-font-size-s)}:host([size=l]){--slider-min-height: 40px;--slider-track-height: 6px;--slider-handle-scale: .5;--slider-handle-size: 40px;--slider-tooltip-font-size: var(--luzmo-font-size)}:host([size=xl]){--slider-min-height: 48px;--slider-track-height: 7px;--slider-handle-scale: .5;--slider-handle-size: 44px;--slider-tooltip-font-size: var(--luzmo-font-size)}';
|
1114
|
+
var Eo = Object.defineProperty, J = (o, e, i, c) => {
|
1115
1115
|
for (var l = void 0, m = o.length - 1, p; m >= 0; m--)
|
1116
1116
|
(p = o[m]) && (l = p(e, i, l) || l);
|
1117
|
-
return l &&
|
1117
|
+
return l && Eo(e, i, l), l;
|
1118
1118
|
};
|
1119
|
-
const
|
1119
|
+
const tt = class extends Ht(Ot) {
|
1120
1120
|
constructor() {
|
1121
1121
|
super(...arguments), this.value = 0, this.min = 0, this.max = 100, this.step = 100, this.disabled = !1, this.debounce = 200, this._doingUpdate = !1;
|
1122
1122
|
}
|
@@ -1124,7 +1124,7 @@ const ot = class extends Lt(Mt) {
|
|
1124
1124
|
return this.renderRoot.querySelector("div");
|
1125
1125
|
}
|
1126
1126
|
firstUpdated() {
|
1127
|
-
this.noUiSlider =
|
1127
|
+
this.noUiSlider = So.create(
|
1128
1128
|
this.renderRoot.querySelector("div"),
|
1129
1129
|
{
|
1130
1130
|
start: this.value ?? 0,
|
@@ -1159,36 +1159,36 @@ const ot = class extends Lt(Mt) {
|
|
1159
1159
|
);
|
1160
1160
|
}
|
1161
1161
|
render() {
|
1162
|
-
return
|
1162
|
+
return Mt`<div class="luzmo-slider-container"></div>`;
|
1163
1163
|
}
|
1164
1164
|
};
|
1165
|
-
|
1166
|
-
let
|
1165
|
+
tt.styles = [Dt(ko)];
|
1166
|
+
let I = tt;
|
1167
1167
|
J([
|
1168
1168
|
W({ type: Number, reflect: !0 })
|
1169
|
-
],
|
1169
|
+
], I.prototype, "value");
|
1170
1170
|
J([
|
1171
1171
|
W({ type: Number, reflect: !0 })
|
1172
|
-
],
|
1172
|
+
], I.prototype, "min");
|
1173
1173
|
J([
|
1174
1174
|
W({ type: Number, reflect: !0 })
|
1175
|
-
],
|
1175
|
+
], I.prototype, "max");
|
1176
1176
|
J([
|
1177
1177
|
W({ type: Number, reflect: !0 })
|
1178
|
-
],
|
1178
|
+
], I.prototype, "step");
|
1179
1179
|
J([
|
1180
1180
|
W({ type: Boolean, reflect: !0 })
|
1181
|
-
],
|
1181
|
+
], I.prototype, "disabled");
|
1182
1182
|
J([
|
1183
1183
|
W({ type: Number, reflect: !0 })
|
1184
|
-
],
|
1185
|
-
customElements.get("luzmo-slider") || customElements.define("luzmo-slider",
|
1186
|
-
var
|
1184
|
+
], I.prototype, "debounce");
|
1185
|
+
customElements.get("luzmo-slider") || customElements.define("luzmo-slider", I);
|
1186
|
+
var Co = Object.defineProperty, q = (o, e, i, c) => {
|
1187
1187
|
for (var l = void 0, m = o.length - 1, p; m >= 0; m--)
|
1188
1188
|
(p = o[m]) && (l = p(e, i, l) || l);
|
1189
|
-
return l &&
|
1189
|
+
return l && Co(e, i, l), l;
|
1190
1190
|
};
|
1191
|
-
const ee = class ee extends
|
1191
|
+
const ee = class ee extends jt {
|
1192
1192
|
constructor() {
|
1193
1193
|
super(...arguments), this.value = 0, this.default = 0, this.min = 0, this.max = 100, this.step = 100, this.debounce = 200;
|
1194
1194
|
}
|
@@ -1206,7 +1206,7 @@ const ee = class ee extends Ht {
|
|
1206
1206
|
}
|
1207
1207
|
renderController() {
|
1208
1208
|
const e = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.value) : this.value, i = typeof this.fromOptionValue == "function" ? this.fromOptionValue(this.default) : this.default;
|
1209
|
-
return
|
1209
|
+
return Lt`
|
1210
1210
|
<luzmo-slider
|
1211
1211
|
id="luzmo-edit-option-control"
|
1212
1212
|
.min=${this.min}
|
@@ -1221,31 +1221,31 @@ const ee = class ee extends Ht {
|
|
1221
1221
|
`;
|
1222
1222
|
}
|
1223
1223
|
};
|
1224
|
-
ee.styles = [
|
1224
|
+
ee.styles = [Be(ee, ee, "styles")];
|
1225
1225
|
let H = ee;
|
1226
1226
|
q([
|
1227
|
-
|
1227
|
+
B({ type: Number, reflect: !0 })
|
1228
1228
|
], H.prototype, "value");
|
1229
1229
|
q([
|
1230
|
-
|
1230
|
+
B({ type: Number, reflect: !0 })
|
1231
1231
|
], H.prototype, "default");
|
1232
1232
|
q([
|
1233
|
-
|
1233
|
+
B({ type: Number, reflect: !0 })
|
1234
1234
|
], H.prototype, "min");
|
1235
1235
|
q([
|
1236
|
-
|
1236
|
+
B({ type: Number, reflect: !0 })
|
1237
1237
|
], H.prototype, "max");
|
1238
1238
|
q([
|
1239
|
-
|
1239
|
+
B({ type: Number, reflect: !0 })
|
1240
1240
|
], H.prototype, "step");
|
1241
1241
|
q([
|
1242
|
-
|
1242
|
+
B({ type: Number, reflect: !0 })
|
1243
1243
|
], H.prototype, "debounce");
|
1244
1244
|
q([
|
1245
|
-
|
1245
|
+
B()
|
1246
1246
|
], H.prototype, "fromOptionValue");
|
1247
1247
|
q([
|
1248
|
-
|
1248
|
+
B()
|
1249
1249
|
], H.prototype, "toOptionValue");
|
1250
1250
|
customElements.get("luzmo-edit-option-slider") || customElements.define("luzmo-edit-option-slider", H);
|
1251
1251
|
export {
|