@covalent/components 8.23.2 → 9.0.0-beta.1
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/{_commonjsHelpers-2f131a27.mjs → _commonjsHelpers-DjF3Plf2.mjs} +2 -4
- package/action-ribbon.js +5 -6
- package/action-ribbon.mjs +47 -51
- package/alert.js +5 -6
- package/alert.mjs +48 -52
- package/app-shell.js +1 -2
- package/app-shell.mjs +13 -30
- package/{async-directive-99a01ec7.mjs → async-directive-Cx1B9M5C.mjs} +11 -23
- package/{async-directive-4a34f75e.js → async-directive-y3fBDDSk.js} +1 -1
- package/badge.js +1 -2
- package/badge.mjs +10 -12
- package/{base-element-acf30176.mjs → base-element-C-U4OfWx.mjs} +2 -2
- package/{base-element-58a3f9ea.js → base-element-aUDWLn36.js} +1 -1
- package/button.js +2 -3
- package/button.mjs +18 -23
- package/card.js +8 -9
- package/card.mjs +36 -38
- package/check-list-item.js +11 -15
- package/check-list-item.mjs +53 -70
- package/checkbox.js +1 -2
- package/checkbox.mjs +15 -31
- package/{chip-c65a4549.js → chip-BsDYOEFW.js} +31 -32
- package/{chip-fb0ea5c5.mjs → chip-C8L37ovG.mjs} +110 -117
- package/chip-set.js +5 -6
- package/chip-set.mjs +73 -83
- package/chip.js +1 -1
- package/chip.mjs +4 -13
- package/circular-progress.js +1 -1
- package/circular-progress.mjs +9 -10
- package/{class-map-6e504a9a.mjs → class-map-C1SJpero.mjs} +4 -6
- package/{class-map-0a4c6ca9.js → class-map-C8G1ALWK.js} +1 -1
- package/{code-editor-712d0ce9.mjs → code-editor-CxQzms2S.mjs} +13485 -13720
- package/code-editor-hT6MTCL6.js +660 -0
- package/code-editor.js +1 -1
- package/code-editor.mjs +3 -6
- package/code-snippet.js +5 -6
- package/code-snippet.mjs +235 -284
- package/{dialog-78a9fd0e.mjs → dialog-BoNH4r3n.mjs} +23 -25
- package/{dialog-83104700.js → dialog-LUOzoMeO.js} +6 -7
- package/dialog.js +1 -1
- package/dialog.mjs +4 -13
- package/directive-C7oCP5Bh.js +5 -0
- package/{directive-helpers-e3ea6592.mjs → directive-helpers-CllkNDrI.mjs} +1 -1
- package/{directive-helpers-0ce1f995.js → directive-helpers-Duf3sfLn.js} +1 -1
- package/{directive-daf4e9b6.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer.js +2 -3
- package/drawer.mjs +7 -17
- package/empty-state.js +2 -3
- package/empty-state.mjs +12 -15
- package/{event-options-3f5eb195.js → event-options-BH8ks-kz.js} +1 -1
- package/{event-options-78d6cf94.mjs → event-options-CNykeE2u.mjs} +1 -1
- package/expansion-panel-item.js +1 -2
- package/expansion-panel-item.mjs +6 -9
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +2 -2
- package/focused-page.js +1 -2
- package/focused-page.mjs +13 -16
- package/{form-element-abadd335.mjs → form-element-CxSqbssX.mjs} +4 -4
- package/{form-element-c553d6f5.js → form-element-DwqUbs65.js} +1 -1
- package/formfield.js +6 -7
- package/formfield.mjs +19 -23
- package/{foundation-e980aa3d.js → foundation-CySCCTUE.js} +3 -3
- package/{foundation-d533452a.mjs → foundation-qQ4jzaAu.mjs} +11 -13
- package/full-screen-dialog.js +4 -5
- package/full-screen-dialog.mjs +13 -22
- package/{html-021d0b5b.mjs → html-BFM6gjw5.mjs} +13 -18
- package/html-BMgGKfr0.js +6 -0
- package/icon-button-toggle.js +11 -16
- package/icon-button-toggle.mjs +68 -78
- package/icon-button.js +6 -11
- package/icon-button.mjs +56 -66
- package/icon-check-toggle.js +6 -7
- package/icon-check-toggle.mjs +10 -23
- package/icon-radio-toggle.js +4 -5
- package/icon-radio-toggle.mjs +13 -29
- package/icon.js +1 -5
- package/icon.mjs +13 -20
- package/{if-defined-c367f208.mjs → if-defined-BsNkRMMG.mjs} +1 -1
- package/{if-defined-f1c45245.js → if-defined-D8C6ewRn.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +110 -150
- package/{inert.esm-359d4581.mjs → inert.esm-BJ7IrRxy.mjs} +3 -4
- package/{javascript-5b83986c.js → javascript-20JK5_5Y.js} +1 -1
- package/{javascript-d2604785.mjs → javascript-BVQ0GGQP.mjs} +4 -10
- package/linear-progress.js +2 -3
- package/linear-progress.mjs +12 -14
- package/list-item-BZVW1fmJ.js +5 -0
- package/list-item-DCzzLVZh.mjs +11 -0
- package/list-item.js +5 -5
- package/list-item.mjs +21 -32
- package/list.js +3 -8
- package/list.mjs +18 -38
- package/menu.js +3 -8
- package/menu.mjs +18 -39
- package/{mwc-checkbox.css-b3434429.js → mwc-checkbox.css-Cd0yCOHu.js} +42 -2
- package/{mwc-checkbox.css-8f4f1a9b.mjs → mwc-checkbox.css-MBOzkrQg.mjs} +198 -3
- package/{mwc-drawer-base-bbae43c3.js → mwc-drawer-base-D-48lqfn.js} +5 -5
- package/{mwc-drawer-base-ca75f41f.mjs → mwc-drawer-base-Dgs9327G.mjs} +24 -26
- package/{mwc-icon-5227aec3.mjs → mwc-icon-BZRds8SY.mjs} +6 -5
- package/{mwc-icon-f87639bc.js → mwc-icon-BumH81hp.js} +2 -2
- package/mwc-icon-button.css-BtgKBOl3.js +5 -0
- package/mwc-icon-button.css-DJMY7U7e.mjs +10 -0
- package/{mwc-line-ripple-directive-40145003.js → mwc-line-ripple-directive-DvPWr3ER.js} +1 -1
- package/{mwc-line-ripple-directive-aabd8778.mjs → mwc-line-ripple-directive-zhm5Zc8i.mjs} +7 -7
- package/{list-item-8b940ec8.js → mwc-list-item.css-CtRq5wSu.js} +28 -6
- package/{list-item-ef175b93.mjs → mwc-list-item.css-g34xqhLC.mjs} +199 -9
- package/mwc-list.css-CaMJWsDp.js +111 -0
- package/{mwc-list-base-402e1d8e.mjs → mwc-list.css-DFOdJyFB.mjs} +213 -213
- package/{mwc-menu-base-04586160.mjs → mwc-menu.css-BEiPghgR.mjs} +90 -92
- package/{mwc-menu-base-08f54c38.js → mwc-menu.css-pxcxlTrh.js} +22 -22
- package/mwc-radio.css-CVMtIq-L.js +105 -0
- package/{mwc-radio-base-768b4221.mjs → mwc-radio.css-XRx0vL1k.mjs} +124 -118
- package/{mwc-slider.css-cda43bd0.mjs → mwc-slider.css-2Bqk43z7.mjs} +200 -211
- package/{mwc-slider.css-c5f99704.js → mwc-slider.css-WrkrmqkL.js} +6 -6
- package/{mwc-tab-base-0814a3ef.mjs → mwc-tab.css-B9yQpkYf.mjs} +126 -122
- package/{mwc-tab-base-f2269fd1.js → mwc-tab.css-CgdXMZBB.js} +26 -22
- package/{mwc-top-app-bar-base-8a7f7312.mjs → mwc-top-app-bar-base-B0EW9eNk.mjs} +13 -15
- package/{mwc-top-app-bar-base-8c8cde51.js → mwc-top-app-bar-base-CSXRBOiX.js} +3 -3
- package/nav-list-item.js +4 -5
- package/nav-list-item.mjs +12 -23
- package/notebook-cell.js +8 -9
- package/notebook-cell.mjs +14 -29
- package/package.json +1 -1
- package/python-B8sEpp0H.js +6 -0
- package/{python-0707b744.mjs → python-BRZC-1dQ.mjs} +11 -16
- package/query-BBDQWsft.mjs +15 -0
- package/query-BxDs8ftQ.js +5 -0
- package/{query-assigned-elements-4a39219d.mjs → query-assigned-elements-DCt2xozt.mjs} +32 -57
- package/{query-assigned-nodes-df691e78.mjs → query-assigned-nodes-B9zBfkh6.mjs} +1 -1
- package/{query-assigned-nodes-99eae71d.js → query-assigned-nodes-CckKHm2z.js} +1 -1
- package/radio-list-item.js +9 -13
- package/radio-list-item.mjs +50 -66
- package/radio.js +1 -2
- package/radio.mjs +15 -32
- package/{ripple-handlers-9fb4a31a.js → ripple-handlers-CzfSBjWo.js} +8 -8
- package/{ripple-handlers-8883e893.mjs → ripple-handlers-i3WPEBiO.mjs} +20 -25
- package/select.js +15 -20
- package/select.mjs +196 -213
- package/side-sheet.js +1 -2
- package/side-sheet.mjs +18 -27
- package/slider-range.js +1 -1
- package/slider-range.mjs +15 -19
- package/slider.js +1 -1
- package/slider.mjs +18 -26
- package/snackbar.js +9 -10
- package/snackbar.mjs +30 -33
- package/{state-0974a8e5.js → state-C3HoXfoa.js} +1 -1
- package/{state-b5e865db.mjs → state-DaD9o2aK.mjs} +1 -1
- package/status-dialog/status-dialog.d.ts.map +1 -1
- package/status-dialog.js +15 -37
- package/status-dialog.mjs +47 -116
- package/status-header-item.js +1 -2
- package/status-header-item.mjs +7 -8
- package/status-header.js +4 -5
- package/status-header.mjs +22 -24
- package/{style-map-a135c6ab.js → style-map-BJBXlSqn.js} +1 -1
- package/{style-map-e7ec6d41.mjs → style-map-CCsABR5m.mjs} +4 -6
- package/style.css +1 -1
- package/switch.js +6 -7
- package/switch.mjs +20 -29
- package/tab-bar.js +18 -22
- package/tab-bar.mjs +192 -205
- package/tab.js +1 -6
- package/tab.mjs +13 -31
- package/text-lockup.js +1 -2
- package/text-lockup.mjs +14 -16
- package/textarea.js +15 -19
- package/textarea.mjs +53 -68
- package/textfield-BwmiygD8.js +136 -0
- package/textfield-C6sUZIeA.mjs +927 -0
- package/textfield.js +3 -7
- package/textfield.mjs +17 -37
- package/toolbar.js +1 -2
- package/toolbar.mjs +6 -13
- package/tooltip.js +3 -4
- package/tooltip.mjs +29 -40
- package/{top-app-bar-f83386e0.mjs → top-app-bar-4SA3DjLX.mjs} +2 -3
- package/{top-app-bar-a531c1b4.js → top-app-bar-CGjBuyiD.js} +2 -3
- package/top-app-bar-fixed.js +6 -6
- package/top-app-bar-fixed.mjs +24 -32
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -25
- package/tree-list-item.js +1 -2
- package/tree-list-item.mjs +9 -13
- package/tree-list.js +1 -2
- package/tree-list.mjs +6 -7
- package/{tslib.es6-c4b0f3b1.mjs → tslib.es6-pPsSiLLK.mjs} +15 -26
- package/typescript-CqVUCaiQ.js +6 -0
- package/{typescript-399a453a.mjs → typescript-qqbekFoQ.mjs} +10 -15
- package/typography.js +1 -2
- package/typography.mjs +7 -8
- package/code-editor-b36fad77.js +0 -662
- package/directive-1186bc23.js +0 -5
- package/html-b2900c6a.js +0 -6
- package/mwc-checkbox-base-02b4eb91.mjs +0 -198
- package/mwc-checkbox-base-935d9566.js +0 -41
- package/mwc-list-base-22616d0a.js +0 -111
- package/mwc-list-item-base-06d93e6e.js +0 -28
- package/mwc-list-item-base-3c6a3bfb.mjs +0 -202
- package/mwc-radio-base-147cf999.js +0 -101
- package/mwc-radio.css-4e140252.js +0 -5
- package/mwc-radio.css-7454bb11.mjs +0 -10
- package/python-6a1f2ad7.js +0 -6
- package/query-680f1868.js +0 -5
- package/query-d843aa92.mjs +0 -25
- package/textfield-83e78e56.js +0 -133
- package/textfield-853ebae5.mjs +0 -933
- package/typescript-98fbdb3d.js +0 -6
- /package/{_commonjsHelpers-2367a3a2.js → _commonjsHelpers-6jR-N8xe.js} +0 -0
- /package/{aria-property-fa2717fe.mjs → aria-property-6O5bK0tV.mjs} +0 -0
- /package/{aria-property-849c8816.js → aria-property-Dl2ZKBbP.js} +0 -0
- /package/{css-9be95551.js → css-Bn4le2Sp.js} +0 -0
- /package/{css-5dd354ac.mjs → css-DjwjINlv.mjs} +0 -0
- /package/{foundation-2334d146.mjs → foundation-PL3XY-m_.mjs} +0 -0
- /package/{foundation-e830bd94.js → foundation-pgmPu2iJ.js} +0 -0
- /package/{inert.esm-2cee6f2e.js → inert.esm-CNFtJ8pb.js} +0 -0
- /package/{keyboard-983b121c.mjs → keyboard-BLpVBEDM.mjs} +0 -0
- /package/{keyboard-39125691.js → keyboard-CZlaSOb1.js} +0 -0
- /package/{markdown-eae8e3ba.js → markdown-CrnizovQ.js} +0 -0
- /package/{markdown-9b448c46.mjs → markdown-bAu8rWEZ.mjs} +0 -0
- /package/{observer-be7b92e2.mjs → observer-DQ8OfVDQ.mjs} +0 -0
- /package/{observer-a096ab43.js → observer-N9cgkDqh.js} +0 -0
- /package/{property-9b6ea53b.mjs → property-DJzm_oB9.mjs} +0 -0
- /package/{property-57f6f6fe.js → property-DYTC_2-m.js} +0 -0
- /package/{query-assigned-elements-f623705d.js → query-assigned-elements-4CafVNR8.js} +0 -0
- /package/{r-42c6f0aa.js → r-DKABafMl.js} +0 -0
- /package/{r-630f5d6b.mjs → r-rF4J5dF2.mjs} +0 -0
- /package/{sql-63ec8e76.mjs → sql-CL8qgBkR.mjs} +0 -0
- /package/{sql-faf05577.js → sql-CXm05EUD.js} +0 -0
- /package/{tslib.es6-98719205.js → tslib.es6-CHeFCc6E.js} +0 -0
- /package/{utils-dc65fdc9.mjs → utils-Dr5MegQq.mjs} +0 -0
- /package/{utils-a8190a39.js → utils-wMBJ9n_n.js} +0 -0
@@ -1,14 +1,14 @@
|
|
1
|
-
import { a as F, b as
|
2
|
-
import {
|
3
|
-
import { a as
|
4
|
-
import { F as B } from "./form-element-
|
5
|
-
import { x as _, A as g, i as $ } from "./query-assigned-elements-
|
6
|
-
import { n as
|
7
|
-
import { t as b } from "./state-
|
8
|
-
import { i as y } from "./query-
|
9
|
-
import { o as P } from "./class-map-
|
10
|
-
import { l as
|
11
|
-
import { o as W } from "./style-map-
|
1
|
+
import { a as F, b as M, _ as o } from "./tslib.es6-pPsSiLLK.mjs";
|
2
|
+
import { R as H, e as O } from "./ripple-handlers-i3WPEBiO.mjs";
|
3
|
+
import { a as x } from "./aria-property-6O5bK0tV.mjs";
|
4
|
+
import { F as B } from "./form-element-CxSqbssX.mjs";
|
5
|
+
import { x as _, A as g, i as $ } from "./query-assigned-elements-DCt2xozt.mjs";
|
6
|
+
import { n as T } from "./property-DJzm_oB9.mjs";
|
7
|
+
import { t as b } from "./state-DaD9o2aK.mjs";
|
8
|
+
import { i as y } from "./query-BBDQWsft.mjs";
|
9
|
+
import { o as P } from "./class-map-C1SJpero.mjs";
|
10
|
+
import { l as I } from "./if-defined-BsNkRMMG.mjs";
|
11
|
+
import { o as W } from "./style-map-CCsABR5m.mjs";
|
12
12
|
/**
|
13
13
|
* @license
|
14
14
|
* Copyright 2020 Google Inc.
|
@@ -35,10 +35,10 @@ var E;
|
|
35
35
|
(function(s) {
|
36
36
|
s[s.ACTIVE = 0] = "ACTIVE", s[s.INACTIVE = 1] = "INACTIVE";
|
37
37
|
})(E || (E = {}));
|
38
|
-
var
|
38
|
+
var i;
|
39
39
|
(function(s) {
|
40
40
|
s[s.START = 1] = "START", s[s.END = 2] = "END";
|
41
|
-
})(
|
41
|
+
})(i || (i = {}));
|
42
42
|
/**
|
43
43
|
* @license
|
44
44
|
* Copyright 2020 Google Inc.
|
@@ -67,26 +67,26 @@ var X = (
|
|
67
67
|
function s() {
|
68
68
|
this.rafIDs = /* @__PURE__ */ new Map();
|
69
69
|
}
|
70
|
-
return s.prototype.request = function(
|
70
|
+
return s.prototype.request = function(r, t) {
|
71
71
|
var e = this;
|
72
|
-
this.cancel(
|
72
|
+
this.cancel(r);
|
73
73
|
var n = requestAnimationFrame(function(a) {
|
74
|
-
e.rafIDs.delete(
|
74
|
+
e.rafIDs.delete(r), t(a);
|
75
75
|
});
|
76
|
-
this.rafIDs.set(
|
77
|
-
}, s.prototype.cancel = function(
|
78
|
-
var t = this.rafIDs.get(
|
79
|
-
t && (cancelAnimationFrame(t), this.rafIDs.delete(
|
76
|
+
this.rafIDs.set(r, n);
|
77
|
+
}, s.prototype.cancel = function(r) {
|
78
|
+
var t = this.rafIDs.get(r);
|
79
|
+
t && (cancelAnimationFrame(t), this.rafIDs.delete(r));
|
80
80
|
}, s.prototype.cancelAll = function() {
|
81
|
-
var
|
81
|
+
var r = this;
|
82
82
|
this.rafIDs.forEach(function(t, e) {
|
83
|
-
|
83
|
+
r.cancel(e);
|
84
84
|
});
|
85
85
|
}, s.prototype.getQueue = function() {
|
86
|
-
var
|
86
|
+
var r = [];
|
87
87
|
return this.rafIDs.forEach(function(t, e) {
|
88
|
-
|
89
|
-
}),
|
88
|
+
r.push(e);
|
89
|
+
}), r;
|
90
90
|
}, s;
|
91
91
|
}()
|
92
92
|
);
|
@@ -112,7 +112,7 @@ var X = (
|
|
112
112
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
113
113
|
* THE SOFTWARE.
|
114
114
|
*/
|
115
|
-
var
|
115
|
+
var L = {
|
116
116
|
animation: {
|
117
117
|
prefixed: "-webkit-animation",
|
118
118
|
standard: "animation"
|
@@ -126,15 +126,15 @@ var V = {
|
|
126
126
|
standard: "transition"
|
127
127
|
}
|
128
128
|
};
|
129
|
-
function
|
129
|
+
function z(s) {
|
130
130
|
return !!s.document && typeof s.document.createElement == "function";
|
131
131
|
}
|
132
|
-
function
|
133
|
-
if (
|
134
|
-
var t = s.document.createElement("div"), e =
|
132
|
+
function V(s, r) {
|
133
|
+
if (z(s) && r in L) {
|
134
|
+
var t = s.document.createElement("div"), e = L[r], n = e.standard, a = e.prefixed, d = n in t.style;
|
135
135
|
return d ? n : a;
|
136
136
|
}
|
137
|
-
return
|
137
|
+
return r;
|
138
138
|
}
|
139
139
|
/**
|
140
140
|
* @license
|
@@ -158,11 +158,11 @@ function L(s, i) {
|
|
158
158
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
159
159
|
* THE SOFTWARE.
|
160
160
|
*/
|
161
|
-
var
|
161
|
+
var K = (
|
162
162
|
/** @class */
|
163
163
|
function() {
|
164
|
-
function s(
|
165
|
-
|
164
|
+
function s(r) {
|
165
|
+
r === void 0 && (r = {}), this.adapter = r;
|
166
166
|
}
|
167
167
|
return Object.defineProperty(s, "cssClasses", {
|
168
168
|
get: function() {
|
@@ -218,24 +218,13 @@ var z = (
|
|
218
218
|
var h = {
|
219
219
|
DISABLED: "mdc-slider--disabled",
|
220
220
|
DISCRETE: "mdc-slider--discrete",
|
221
|
-
INPUT: "mdc-slider__input",
|
222
221
|
RANGE: "mdc-slider--range",
|
223
|
-
THUMB: "mdc-slider__thumb",
|
224
222
|
// Applied when thumb is in the focused state.
|
225
223
|
THUMB_FOCUSED: "mdc-slider__thumb--focused",
|
226
|
-
THUMB_KNOB: "mdc-slider__thumb-knob",
|
227
224
|
// Class added to the top thumb (for overlapping thumbs in range slider).
|
228
225
|
THUMB_TOP: "mdc-slider__thumb--top",
|
229
226
|
THUMB_WITH_INDICATOR: "mdc-slider__thumb--with-indicator",
|
230
|
-
TICK_MARKS: "mdc-slider--tick-marks"
|
231
|
-
TICK_MARKS_CONTAINER: "mdc-slider__tick-marks",
|
232
|
-
TICK_MARK_ACTIVE: "mdc-slider__tick-mark--active",
|
233
|
-
TICK_MARK_INACTIVE: "mdc-slider__tick-mark--inactive",
|
234
|
-
TRACK: "mdc-slider__track",
|
235
|
-
// The active track fill element that will be scaled as the value changes.
|
236
|
-
TRACK_ACTIVE: "mdc-slider__track--active_fill",
|
237
|
-
VALUE_INDICATOR_CONTAINER: "mdc-slider__value-indicator-container",
|
238
|
-
VALUE_INDICATOR_TEXT: "mdc-slider__value-indicator-text"
|
227
|
+
TICK_MARKS: "mdc-slider--tick-marks"
|
239
228
|
}, k = {
|
240
229
|
// Default step size.
|
241
230
|
STEP_SIZE: 1,
|
@@ -288,15 +277,15 @@ var S;
|
|
288
277
|
(function(s) {
|
289
278
|
s.SLIDER_UPDATE = "slider_update";
|
290
279
|
})(S || (S = {}));
|
291
|
-
var
|
280
|
+
var w = typeof window < "u", G = (
|
292
281
|
/** @class */
|
293
282
|
function(s) {
|
294
|
-
F(
|
295
|
-
function
|
296
|
-
var e = s.call(this,
|
283
|
+
F(r, s);
|
284
|
+
function r(t) {
|
285
|
+
var e = s.call(this, M(M({}, r.defaultAdapter), t)) || this;
|
297
286
|
return e.initialStylesRemoved = !1, e.isDisabled = !1, e.isDiscrete = !1, e.step = k.STEP_SIZE, e.minRange = k.MIN_RANGE, e.hasTickMarks = !1, e.isRange = !1, e.thumb = null, e.downEventClientX = null, e.startThumbKnobWidth = 0, e.endThumbKnobWidth = 0, e.animFrame = new X(), e;
|
298
287
|
}
|
299
|
-
return Object.defineProperty(
|
288
|
+
return Object.defineProperty(r, "defaultAdapter", {
|
300
289
|
get: function() {
|
301
290
|
return {
|
302
291
|
hasClass: function() {
|
@@ -399,52 +388,52 @@ var M = typeof window < "u", G = (
|
|
399
388
|
},
|
400
389
|
enumerable: !1,
|
401
390
|
configurable: !0
|
402
|
-
}),
|
391
|
+
}), r.prototype.init = function() {
|
403
392
|
var t = this;
|
404
393
|
this.isDisabled = this.adapter.hasClass(h.DISABLED), this.isDiscrete = this.adapter.hasClass(h.DISCRETE), this.hasTickMarks = this.adapter.hasClass(h.TICK_MARKS), this.isRange = this.adapter.hasClass(h.RANGE);
|
405
|
-
var e = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.INPUT_MIN, this.isRange ?
|
406
|
-
this.validateProperties({ min: e, max: n, value: a, valueStart: d, step: m, minRange:
|
407
|
-
t.handleInputChange(
|
394
|
+
var e = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.INPUT_MIN, this.isRange ? i.START : i.END), c.INPUT_MIN), n = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.INPUT_MAX, i.END), c.INPUT_MAX), a = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.INPUT_VALUE, i.END), c.INPUT_VALUE), d = this.isRange ? this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.INPUT_VALUE, i.START), c.INPUT_VALUE) : e, l = this.adapter.getInputAttribute(c.INPUT_STEP, i.END), m = l ? this.convertAttributeValueToNumber(l, c.INPUT_STEP) : this.step, v = this.adapter.getAttribute(c.DATA_MIN_RANGE), f = v ? this.convertAttributeValueToNumber(v, c.DATA_MIN_RANGE) : this.minRange;
|
395
|
+
this.validateProperties({ min: e, max: n, value: a, valueStart: d, step: m, minRange: f }), this.min = e, this.max = n, this.value = a, this.valueStart = d, this.step = m, this.minRange = f, this.numDecimalPlaces = U(this.step), this.valueBeforeDownEvent = a, this.valueStartBeforeDownEvent = d, this.mousedownOrTouchstartListener = this.handleMousedownOrTouchstart.bind(this), this.moveListener = this.handleMove.bind(this), this.pointerdownListener = this.handlePointerdown.bind(this), this.pointerupListener = this.handlePointerup.bind(this), this.thumbMouseenterListener = this.handleThumbMouseenter.bind(this), this.thumbMouseleaveListener = this.handleThumbMouseleave.bind(this), this.inputStartChangeListener = function() {
|
396
|
+
t.handleInputChange(i.START);
|
408
397
|
}, this.inputEndChangeListener = function() {
|
409
|
-
t.handleInputChange(
|
398
|
+
t.handleInputChange(i.END);
|
410
399
|
}, this.inputStartFocusListener = function() {
|
411
|
-
t.handleInputFocus(
|
400
|
+
t.handleInputFocus(i.START);
|
412
401
|
}, this.inputEndFocusListener = function() {
|
413
|
-
t.handleInputFocus(
|
402
|
+
t.handleInputFocus(i.END);
|
414
403
|
}, this.inputStartBlurListener = function() {
|
415
|
-
t.handleInputBlur(
|
404
|
+
t.handleInputBlur(i.START);
|
416
405
|
}, this.inputEndBlurListener = function() {
|
417
|
-
t.handleInputBlur(
|
406
|
+
t.handleInputBlur(i.END);
|
418
407
|
}, this.resizeListener = this.handleResize.bind(this), this.registerEventHandlers();
|
419
|
-
},
|
408
|
+
}, r.prototype.destroy = function() {
|
420
409
|
this.deregisterEventHandlers();
|
421
|
-
},
|
410
|
+
}, r.prototype.setMin = function(t) {
|
422
411
|
this.min = t, this.isRange || (this.valueStart = t), this.updateUI();
|
423
|
-
},
|
412
|
+
}, r.prototype.setMax = function(t) {
|
424
413
|
this.max = t, this.updateUI();
|
425
|
-
},
|
414
|
+
}, r.prototype.getMin = function() {
|
426
415
|
return this.min;
|
427
|
-
},
|
416
|
+
}, r.prototype.getMax = function() {
|
428
417
|
return this.max;
|
429
|
-
},
|
418
|
+
}, r.prototype.getValue = function() {
|
430
419
|
return this.value;
|
431
|
-
},
|
420
|
+
}, r.prototype.setValue = function(t) {
|
432
421
|
if (this.isRange && t < this.valueStart + this.minRange)
|
433
422
|
throw new Error("end thumb value (" + t + ") must be >= start thumb " + ("value (" + this.valueStart + ") + min range (" + this.minRange + ")"));
|
434
|
-
this.updateValue(t,
|
435
|
-
},
|
423
|
+
this.updateValue(t, i.END);
|
424
|
+
}, r.prototype.getValueStart = function() {
|
436
425
|
if (!this.isRange)
|
437
426
|
throw new Error("`valueStart` is only applicable for range sliders.");
|
438
427
|
return this.valueStart;
|
439
|
-
},
|
428
|
+
}, r.prototype.setValueStart = function(t) {
|
440
429
|
if (!this.isRange)
|
441
430
|
throw new Error("`valueStart` is only applicable for range sliders.");
|
442
431
|
if (this.isRange && t > this.value - this.minRange)
|
443
432
|
throw new Error("start thumb value (" + t + ") must be <= end thumb " + ("value (" + this.value + ") - min range (" + this.minRange + ")"));
|
444
|
-
this.updateValue(t,
|
445
|
-
},
|
433
|
+
this.updateValue(t, i.START);
|
434
|
+
}, r.prototype.setStep = function(t) {
|
446
435
|
this.step = t, this.numDecimalPlaces = U(t), this.updateUI();
|
447
|
-
},
|
436
|
+
}, r.prototype.setMinRange = function(t) {
|
448
437
|
if (!this.isRange)
|
449
438
|
throw new Error("`minRange` is only applicable for range sliders.");
|
450
439
|
if (t < 0)
|
@@ -452,28 +441,28 @@ var M = typeof window < "u", G = (
|
|
452
441
|
if (this.value - this.valueStart < t)
|
453
442
|
throw new Error("start thumb value (" + this.valueStart + ") and end thumb value " + ("(" + this.value + ") must differ by at least " + t + "."));
|
454
443
|
this.minRange = t;
|
455
|
-
},
|
444
|
+
}, r.prototype.setIsDiscrete = function(t) {
|
456
445
|
this.isDiscrete = t, this.updateValueIndicatorUI(), this.updateTickMarksUI();
|
457
|
-
},
|
446
|
+
}, r.prototype.getStep = function() {
|
458
447
|
return this.step;
|
459
|
-
},
|
448
|
+
}, r.prototype.getMinRange = function() {
|
460
449
|
if (!this.isRange)
|
461
450
|
throw new Error("`minRange` is only applicable for range sliders.");
|
462
451
|
return this.minRange;
|
463
|
-
},
|
452
|
+
}, r.prototype.setHasTickMarks = function(t) {
|
464
453
|
this.hasTickMarks = t, this.updateTickMarksUI();
|
465
|
-
},
|
454
|
+
}, r.prototype.getDisabled = function() {
|
466
455
|
return this.isDisabled;
|
467
|
-
},
|
468
|
-
this.isDisabled = t, t ? (this.adapter.addClass(h.DISABLED), this.isRange && this.adapter.setInputAttribute(c.INPUT_DISABLED, "",
|
469
|
-
},
|
456
|
+
}, r.prototype.setDisabled = function(t) {
|
457
|
+
this.isDisabled = t, t ? (this.adapter.addClass(h.DISABLED), this.isRange && this.adapter.setInputAttribute(c.INPUT_DISABLED, "", i.START), this.adapter.setInputAttribute(c.INPUT_DISABLED, "", i.END)) : (this.adapter.removeClass(h.DISABLED), this.isRange && this.adapter.removeInputAttribute(c.INPUT_DISABLED, i.START), this.adapter.removeInputAttribute(c.INPUT_DISABLED, i.END));
|
458
|
+
}, r.prototype.getIsRange = function() {
|
470
459
|
return this.isRange;
|
471
|
-
},
|
460
|
+
}, r.prototype.layout = function(t) {
|
472
461
|
var e = t === void 0 ? {} : t, n = e.skipUpdateUI;
|
473
|
-
this.rect = this.adapter.getBoundingClientRect(), this.isRange && (this.startThumbKnobWidth = this.adapter.getThumbKnobWidth(
|
474
|
-
},
|
462
|
+
this.rect = this.adapter.getBoundingClientRect(), this.isRange && (this.startThumbKnobWidth = this.adapter.getThumbKnobWidth(i.START), this.endThumbKnobWidth = this.adapter.getThumbKnobWidth(i.END)), n || this.updateUI();
|
463
|
+
}, r.prototype.handleResize = function() {
|
475
464
|
this.layout();
|
476
|
-
},
|
465
|
+
}, r.prototype.handleDown = function(t) {
|
477
466
|
if (!this.isDisabled) {
|
478
467
|
this.valueStartBeforeDownEvent = this.valueStart, this.valueBeforeDownEvent = this.value;
|
479
468
|
var e = t.clientX != null ? t.clientX : t.targetTouches[0].clientX;
|
@@ -481,7 +470,7 @@ var M = typeof window < "u", G = (
|
|
481
470
|
var n = this.mapClientXOnSliderScale(e);
|
482
471
|
this.thumb = this.getThumbFromDownEvent(e, n), this.thumb !== null && (this.handleDragStart(t, n, this.thumb), this.updateValue(n, this.thumb, { emitInputEvent: !0 }));
|
483
472
|
}
|
484
|
-
},
|
473
|
+
}, r.prototype.handleMove = function(t) {
|
485
474
|
if (!this.isDisabled) {
|
486
475
|
t.preventDefault();
|
487
476
|
var e = t.clientX != null ? t.clientX : t.targetTouches[0].clientX, n = this.thumb != null;
|
@@ -490,50 +479,50 @@ var M = typeof window < "u", G = (
|
|
490
479
|
n || (this.handleDragStart(t, a, this.thumb), this.adapter.emitDragStartEvent(a, this.thumb)), this.updateValue(a, this.thumb, { emitInputEvent: !0 });
|
491
480
|
}
|
492
481
|
}
|
493
|
-
},
|
482
|
+
}, r.prototype.handleUp = function() {
|
494
483
|
var t, e;
|
495
484
|
if (!(this.isDisabled || this.thumb === null)) {
|
496
485
|
!((e = (t = this.adapter).shouldHideFocusStylesForPointerEvents) === null || e === void 0) && e.call(t) && this.handleInputBlur(this.thumb);
|
497
|
-
var n = this.thumb ===
|
486
|
+
var n = this.thumb === i.START ? this.valueStartBeforeDownEvent : this.valueBeforeDownEvent, a = this.thumb === i.START ? this.valueStart : this.value;
|
498
487
|
n !== a && this.adapter.emitChangeEvent(a, this.thumb), this.adapter.emitDragEndEvent(a, this.thumb), this.thumb = null;
|
499
488
|
}
|
500
|
-
},
|
501
|
-
!this.isDiscrete || !this.isRange || (this.adapter.addThumbClass(h.THUMB_WITH_INDICATOR,
|
502
|
-
},
|
489
|
+
}, r.prototype.handleThumbMouseenter = function() {
|
490
|
+
!this.isDiscrete || !this.isRange || (this.adapter.addThumbClass(h.THUMB_WITH_INDICATOR, i.START), this.adapter.addThumbClass(h.THUMB_WITH_INDICATOR, i.END));
|
491
|
+
}, r.prototype.handleThumbMouseleave = function() {
|
503
492
|
var t, e;
|
504
|
-
!this.isDiscrete || !this.isRange || !(!((e = (t = this.adapter).shouldHideFocusStylesForPointerEvents) === null || e === void 0) && e.call(t)) && (this.adapter.isInputFocused(
|
505
|
-
},
|
493
|
+
!this.isDiscrete || !this.isRange || !(!((e = (t = this.adapter).shouldHideFocusStylesForPointerEvents) === null || e === void 0) && e.call(t)) && (this.adapter.isInputFocused(i.START) || this.adapter.isInputFocused(i.END)) || this.thumb || (this.adapter.removeThumbClass(h.THUMB_WITH_INDICATOR, i.START), this.adapter.removeThumbClass(h.THUMB_WITH_INDICATOR, i.END));
|
494
|
+
}, r.prototype.handleMousedownOrTouchstart = function(t) {
|
506
495
|
var e = this, n = t.type === "mousedown" ? "mousemove" : "touchmove";
|
507
496
|
this.adapter.registerBodyEventHandler(n, this.moveListener);
|
508
497
|
var a = function() {
|
509
498
|
e.handleUp(), e.adapter.deregisterBodyEventHandler(n, e.moveListener), e.adapter.deregisterEventHandler("mouseup", a), e.adapter.deregisterEventHandler("touchend", a);
|
510
499
|
};
|
511
500
|
this.adapter.registerBodyEventHandler("mouseup", a), this.adapter.registerBodyEventHandler("touchend", a), this.handleDown(t);
|
512
|
-
},
|
501
|
+
}, r.prototype.handlePointerdown = function(t) {
|
513
502
|
var e = t.button === 0;
|
514
503
|
e && (t.pointerId != null && this.adapter.setPointerCapture(t.pointerId), this.adapter.registerEventHandler("pointermove", this.moveListener), this.handleDown(t));
|
515
|
-
},
|
504
|
+
}, r.prototype.handleInputChange = function(t) {
|
516
505
|
var e = Number(this.adapter.getInputValue(t));
|
517
|
-
t ===
|
518
|
-
},
|
506
|
+
t === i.START ? this.setValueStart(e) : this.setValue(e), this.adapter.emitChangeEvent(t === i.START ? this.valueStart : this.value, t), this.adapter.emitInputEvent(t === i.START ? this.valueStart : this.value, t);
|
507
|
+
}, r.prototype.handleInputFocus = function(t) {
|
519
508
|
if (this.adapter.addThumbClass(h.THUMB_FOCUSED, t), !!this.isDiscrete && (this.adapter.addThumbClass(h.THUMB_WITH_INDICATOR, t), this.isRange)) {
|
520
|
-
var e = t ===
|
509
|
+
var e = t === i.START ? i.END : i.START;
|
521
510
|
this.adapter.addThumbClass(h.THUMB_WITH_INDICATOR, e);
|
522
511
|
}
|
523
|
-
},
|
512
|
+
}, r.prototype.handleInputBlur = function(t) {
|
524
513
|
if (this.adapter.removeThumbClass(h.THUMB_FOCUSED, t), !!this.isDiscrete && (this.adapter.removeThumbClass(h.THUMB_WITH_INDICATOR, t), this.isRange)) {
|
525
|
-
var e = t ===
|
514
|
+
var e = t === i.START ? i.END : i.START;
|
526
515
|
this.adapter.removeThumbClass(h.THUMB_WITH_INDICATOR, e);
|
527
516
|
}
|
528
|
-
},
|
517
|
+
}, r.prototype.handleDragStart = function(t, e, n) {
|
529
518
|
var a, d;
|
530
519
|
this.adapter.emitDragStartEvent(e, n), this.adapter.focusInput(n), !((d = (a = this.adapter).shouldHideFocusStylesForPointerEvents) === null || d === void 0) && d.call(a) && this.handleInputFocus(n), t.preventDefault();
|
531
|
-
},
|
520
|
+
}, r.prototype.getThumbFromDownEvent = function(t, e) {
|
532
521
|
if (!this.isRange)
|
533
|
-
return
|
534
|
-
var n = this.adapter.getThumbBoundingClientRect(
|
535
|
-
return d && l ? null : d ?
|
536
|
-
},
|
522
|
+
return i.END;
|
523
|
+
var n = this.adapter.getThumbBoundingClientRect(i.START), a = this.adapter.getThumbBoundingClientRect(i.END), d = t >= n.left && t <= n.right, l = t >= a.left && t <= a.right;
|
524
|
+
return d && l ? null : d ? i.START : l ? i.END : e < this.valueStart ? i.START : e > this.value ? i.END : e - this.valueStart <= this.value - e ? i.START : i.END;
|
525
|
+
}, r.prototype.getThumbFromMoveEvent = function(t) {
|
537
526
|
if (this.thumb !== null)
|
538
527
|
return this.thumb;
|
539
528
|
if (this.downEventClientX === null)
|
@@ -542,37 +531,37 @@ var M = typeof window < "u", G = (
|
|
542
531
|
if (e)
|
543
532
|
return this.thumb;
|
544
533
|
var n = t < this.downEventClientX;
|
545
|
-
return n ? this.adapter.isRTL() ?
|
546
|
-
},
|
547
|
-
t ? this.updateThumbAndInputAttributes(t) : (this.updateThumbAndInputAttributes(
|
548
|
-
},
|
534
|
+
return n ? this.adapter.isRTL() ? i.END : i.START : this.adapter.isRTL() ? i.START : i.END;
|
535
|
+
}, r.prototype.updateUI = function(t) {
|
536
|
+
t ? this.updateThumbAndInputAttributes(t) : (this.updateThumbAndInputAttributes(i.START), this.updateThumbAndInputAttributes(i.END)), this.updateThumbAndTrackUI(t), this.updateValueIndicatorUI(t), this.updateTickMarksUI();
|
537
|
+
}, r.prototype.updateThumbAndInputAttributes = function(t) {
|
549
538
|
if (t) {
|
550
|
-
var e = this.isRange && t ===
|
551
|
-
this.adapter.setInputAttribute(c.INPUT_VALUE, n, t), this.isRange && t ===
|
539
|
+
var e = this.isRange && t === i.START ? this.valueStart : this.value, n = String(e);
|
540
|
+
this.adapter.setInputAttribute(c.INPUT_VALUE, n, t), this.isRange && t === i.START ? this.adapter.setInputAttribute(c.INPUT_MIN, String(e + this.minRange), i.END) : this.isRange && t === i.END && this.adapter.setInputAttribute(c.INPUT_MAX, String(e - this.minRange), i.START), this.adapter.getInputValue(t) !== n && this.adapter.setInputValue(n, t);
|
552
541
|
var a = this.adapter.getValueToAriaValueTextFn();
|
553
542
|
a && this.adapter.setInputAttribute(c.ARIA_VALUETEXT, a(e, t), t);
|
554
543
|
}
|
555
|
-
},
|
544
|
+
}, r.prototype.updateValueIndicatorUI = function(t) {
|
556
545
|
if (this.isDiscrete) {
|
557
|
-
var e = this.isRange && t ===
|
558
|
-
this.adapter.setValueIndicatorText(e, t ===
|
546
|
+
var e = this.isRange && t === i.START ? this.valueStart : this.value;
|
547
|
+
this.adapter.setValueIndicatorText(e, t === i.START ? i.START : i.END), !t && this.isRange && this.adapter.setValueIndicatorText(this.valueStart, i.START);
|
559
548
|
}
|
560
|
-
},
|
549
|
+
}, r.prototype.updateTickMarksUI = function() {
|
561
550
|
if (!(!this.isDiscrete || !this.hasTickMarks)) {
|
562
551
|
var t = (this.valueStart - this.min) / this.step, e = (this.value - this.valueStart) / this.step + 1, n = (this.max - this.value) / this.step, a = Array.from({ length: t }).fill(E.INACTIVE), d = Array.from({ length: e }).fill(E.ACTIVE), l = Array.from({ length: n }).fill(E.INACTIVE);
|
563
552
|
this.adapter.updateTickMarks(a.concat(d).concat(l));
|
564
553
|
}
|
565
|
-
},
|
554
|
+
}, r.prototype.mapClientXOnSliderScale = function(t) {
|
566
555
|
var e = t - this.rect.left, n = e / this.rect.width;
|
567
556
|
this.adapter.isRTL() && (n = 1 - n);
|
568
557
|
var a = this.min + n * (this.max - this.min);
|
569
558
|
return a === this.max || a === this.min ? a : Number(this.quantize(a).toFixed(this.numDecimalPlaces));
|
570
|
-
},
|
559
|
+
}, r.prototype.quantize = function(t) {
|
571
560
|
var e = Math.round((t - this.min) / this.step);
|
572
561
|
return this.min + e * this.step;
|
573
|
-
},
|
562
|
+
}, r.prototype.updateValue = function(t, e, n) {
|
574
563
|
var a = n === void 0 ? {} : n, d = a.emitInputEvent;
|
575
|
-
if (t = this.clampValue(t, e), this.isRange && e ===
|
564
|
+
if (t = this.clampValue(t, e), this.isRange && e === i.START) {
|
576
565
|
if (this.valueStart === t)
|
577
566
|
return;
|
578
567
|
this.valueStart = t;
|
@@ -581,48 +570,48 @@ var M = typeof window < "u", G = (
|
|
581
570
|
return;
|
582
571
|
this.value = t;
|
583
572
|
}
|
584
|
-
this.updateUI(e), d && this.adapter.emitInputEvent(e ===
|
585
|
-
},
|
573
|
+
this.updateUI(e), d && this.adapter.emitInputEvent(e === i.START ? this.valueStart : this.value, e);
|
574
|
+
}, r.prototype.clampValue = function(t, e) {
|
586
575
|
t = Math.min(Math.max(t, this.min), this.max);
|
587
|
-
var n = this.isRange && e ===
|
576
|
+
var n = this.isRange && e === i.START && t > this.value - this.minRange;
|
588
577
|
if (n)
|
589
578
|
return this.value - this.minRange;
|
590
|
-
var a = this.isRange && e ===
|
579
|
+
var a = this.isRange && e === i.END && t < this.valueStart + this.minRange;
|
591
580
|
return a ? this.valueStart + this.minRange : t;
|
592
|
-
},
|
593
|
-
var e = this, n = this, a = n.max, d = n.min, l = (this.value - this.valueStart) / (a - d), m = l * this.rect.width, v = this.adapter.isRTL(),
|
581
|
+
}, r.prototype.updateThumbAndTrackUI = function(t) {
|
582
|
+
var e = this, n = this, a = n.max, d = n.min, l = (this.value - this.valueStart) / (a - d), m = l * this.rect.width, v = this.adapter.isRTL(), f = w ? V(window, "transform") : "transform";
|
594
583
|
if (this.isRange) {
|
595
584
|
var A = this.adapter.isRTL() ? (a - this.value) / (a - d) * this.rect.width : (this.valueStart - d) / (a - d) * this.rect.width, D = A + m;
|
596
585
|
this.animFrame.request(S.SLIDER_UPDATE, function() {
|
597
|
-
var
|
598
|
-
|
586
|
+
var R = !v && t === i.START || v && t !== i.START;
|
587
|
+
R ? (e.adapter.setTrackActiveStyleProperty("transform-origin", "right"), e.adapter.setTrackActiveStyleProperty("left", "auto"), e.adapter.setTrackActiveStyleProperty("right", e.rect.width - D + "px")) : (e.adapter.setTrackActiveStyleProperty("transform-origin", "left"), e.adapter.setTrackActiveStyleProperty("right", "auto"), e.adapter.setTrackActiveStyleProperty("left", A + "px")), e.adapter.setTrackActiveStyleProperty(f, "scaleX(" + l + ")");
|
599
588
|
var N = v ? D : A, C = e.adapter.isRTL() ? A : D;
|
600
|
-
(t ===
|
589
|
+
(t === i.START || !t || !e.initialStylesRemoved) && (e.adapter.setThumbStyleProperty(f, "translateX(" + N + "px)", i.START), e.alignValueIndicator(i.START, N)), (t === i.END || !t || !e.initialStylesRemoved) && (e.adapter.setThumbStyleProperty(f, "translateX(" + C + "px)", i.END), e.alignValueIndicator(i.END, C)), e.removeInitialStyles(v), e.updateOverlappingThumbsUI(N, C, t);
|
601
590
|
});
|
602
591
|
} else
|
603
592
|
this.animFrame.request(S.SLIDER_UPDATE, function() {
|
604
|
-
var
|
605
|
-
e.adapter.setThumbStyleProperty(
|
593
|
+
var R = v ? e.rect.width - m : m;
|
594
|
+
e.adapter.setThumbStyleProperty(f, "translateX(" + R + "px)", i.END), e.alignValueIndicator(i.END, R), e.adapter.setTrackActiveStyleProperty(f, "scaleX(" + l + ")"), e.removeInitialStyles(v);
|
606
595
|
});
|
607
|
-
},
|
596
|
+
}, r.prototype.alignValueIndicator = function(t, e) {
|
608
597
|
if (this.isDiscrete) {
|
609
598
|
var n = this.adapter.getThumbBoundingClientRect(t).width / 2, a = this.adapter.getValueIndicatorContainerWidth(t), d = this.adapter.getBoundingClientRect().width;
|
610
599
|
a / 2 > e + n ? (this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT, n + "px", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT, "auto", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM, "translateX(-50%)", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT, "0", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT, "auto", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM, "none", t)) : a / 2 > d - e + n ? (this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT, "auto", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT, n + "px", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM, "translateX(50%)", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT, "auto", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT, "0", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM, "none", t)) : (this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_LEFT, "50%", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_RIGHT, "auto", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CARET_TRANSFORM, "translateX(-50%)", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_LEFT, "50%", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_RIGHT, "auto", t), this.adapter.setThumbStyleProperty(p.VAR_VALUE_INDICATOR_CONTAINER_TRANSFORM, "translateX(-50%)", t));
|
611
600
|
}
|
612
|
-
},
|
601
|
+
}, r.prototype.removeInitialStyles = function(t) {
|
613
602
|
if (!this.initialStylesRemoved) {
|
614
603
|
var e = t ? "right" : "left";
|
615
|
-
this.adapter.removeThumbStyleProperty(e,
|
604
|
+
this.adapter.removeThumbStyleProperty(e, i.END), this.isRange && this.adapter.removeThumbStyleProperty(e, i.START), this.initialStylesRemoved = !0, this.resetTrackAndThumbAnimation();
|
616
605
|
}
|
617
|
-
},
|
606
|
+
}, r.prototype.resetTrackAndThumbAnimation = function() {
|
618
607
|
var t = this;
|
619
608
|
if (this.isDiscrete) {
|
620
|
-
var e =
|
621
|
-
this.adapter.setThumbStyleProperty(e, n,
|
622
|
-
t.adapter.removeThumbStyleProperty(e,
|
609
|
+
var e = w ? V(window, "transition") : "transition", n = "none 0s ease 0s";
|
610
|
+
this.adapter.setThumbStyleProperty(e, n, i.END), this.isRange && this.adapter.setThumbStyleProperty(e, n, i.START), this.adapter.setTrackActiveStyleProperty(e, n), requestAnimationFrame(function() {
|
611
|
+
t.adapter.removeThumbStyleProperty(e, i.END), t.adapter.removeTrackActiveStyleProperty(e), t.isRange && t.adapter.removeThumbStyleProperty(e, i.START);
|
623
612
|
});
|
624
613
|
}
|
625
|
-
},
|
614
|
+
}, r.prototype.updateOverlappingThumbsUI = function(t, e, n) {
|
626
615
|
var a = !1;
|
627
616
|
if (this.adapter.isRTL()) {
|
628
617
|
var d = t - this.startThumbKnobWidth / 2, l = e + this.endThumbKnobWidth / 2;
|
@@ -635,16 +624,16 @@ var M = typeof window < "u", G = (
|
|
635
624
|
h.THUMB_TOP,
|
636
625
|
// If no thumb was dragged (in the case of initial layout), end
|
637
626
|
// thumb is on top by default.
|
638
|
-
n ||
|
639
|
-
), this.adapter.removeThumbClass(h.THUMB_TOP, n ===
|
640
|
-
},
|
627
|
+
n || i.END
|
628
|
+
), this.adapter.removeThumbClass(h.THUMB_TOP, n === i.START ? i.END : i.START)) : (this.adapter.removeThumbClass(h.THUMB_TOP, i.START), this.adapter.removeThumbClass(h.THUMB_TOP, i.END));
|
629
|
+
}, r.prototype.convertAttributeValueToNumber = function(t, e) {
|
641
630
|
if (t === null)
|
642
631
|
throw new Error("MDCSliderFoundation: `" + e + "` must be non-null.");
|
643
632
|
var n = Number(t);
|
644
633
|
if (isNaN(n))
|
645
634
|
throw new Error("MDCSliderFoundation: `" + e + "` value is `" + t + "`, but must be a number.");
|
646
635
|
return n;
|
647
|
-
},
|
636
|
+
}, r.prototype.validateProperties = function(t) {
|
648
637
|
var e = t.min, n = t.max, a = t.value, d = t.valueStart, l = t.step, m = t.minRange;
|
649
638
|
if (e >= n)
|
650
639
|
throw new Error("MDCSliderFoundation: min must be strictly less than max. " + ("Current: [min: " + e + ", max: " + n + "]"));
|
@@ -659,27 +648,27 @@ var M = typeof window < "u", G = (
|
|
659
648
|
throw new Error("MDCSliderFoundation: minimum range must be non-negative. " + ("Current min range: " + m));
|
660
649
|
if (a - d < m)
|
661
650
|
throw new Error("MDCSliderFoundation: start value and end value must differ by at least " + (m + ". Current values: [start value: " + d + ", ") + ("end value: " + a + "]"));
|
662
|
-
var v = (d - e) / l,
|
663
|
-
if (!Number.isInteger(parseFloat(v.toFixed(6))) || !Number.isInteger(parseFloat(
|
651
|
+
var v = (d - e) / l, f = (a - e) / l;
|
652
|
+
if (!Number.isInteger(parseFloat(v.toFixed(6))) || !Number.isInteger(parseFloat(f.toFixed(6))))
|
664
653
|
throw new Error("MDCSliderFoundation: Slider values must be valid based on the " + ("step value (" + l + "). Current values: [start value: ") + (d + ", end value: " + a + ", min: " + e + "]"));
|
665
654
|
} else {
|
666
655
|
if (a < e || a > n)
|
667
656
|
throw new Error("MDCSliderFoundation: value must be in [min, max] range. " + ("Current values: [value: " + a + ", min: " + e + ", max: " + n + "]"));
|
668
|
-
var
|
669
|
-
if (!Number.isInteger(parseFloat(
|
657
|
+
var f = (a - e) / l;
|
658
|
+
if (!Number.isInteger(parseFloat(f.toFixed(6))))
|
670
659
|
throw new Error("MDCSliderFoundation: Slider value must be valid based on the " + ("step value (" + l + "). Current value: " + a));
|
671
660
|
}
|
672
|
-
},
|
673
|
-
this.adapter.registerWindowEventHandler("resize", this.resizeListener),
|
674
|
-
},
|
675
|
-
this.adapter.deregisterWindowEventHandler("resize", this.resizeListener),
|
676
|
-
},
|
661
|
+
}, r.prototype.registerEventHandlers = function() {
|
662
|
+
this.adapter.registerWindowEventHandler("resize", this.resizeListener), r.SUPPORTS_POINTER_EVENTS ? (this.adapter.registerEventHandler("pointerdown", this.pointerdownListener), this.adapter.registerEventHandler("pointerup", this.pointerupListener)) : (this.adapter.registerEventHandler("mousedown", this.mousedownOrTouchstartListener), this.adapter.registerEventHandler("touchstart", this.mousedownOrTouchstartListener)), this.isRange && (this.adapter.registerThumbEventHandler(i.START, "mouseenter", this.thumbMouseenterListener), this.adapter.registerThumbEventHandler(i.START, "mouseleave", this.thumbMouseleaveListener), this.adapter.registerInputEventHandler(i.START, "change", this.inputStartChangeListener), this.adapter.registerInputEventHandler(i.START, "focus", this.inputStartFocusListener), this.adapter.registerInputEventHandler(i.START, "blur", this.inputStartBlurListener)), this.adapter.registerThumbEventHandler(i.END, "mouseenter", this.thumbMouseenterListener), this.adapter.registerThumbEventHandler(i.END, "mouseleave", this.thumbMouseleaveListener), this.adapter.registerInputEventHandler(i.END, "change", this.inputEndChangeListener), this.adapter.registerInputEventHandler(i.END, "focus", this.inputEndFocusListener), this.adapter.registerInputEventHandler(i.END, "blur", this.inputEndBlurListener);
|
663
|
+
}, r.prototype.deregisterEventHandlers = function() {
|
664
|
+
this.adapter.deregisterWindowEventHandler("resize", this.resizeListener), r.SUPPORTS_POINTER_EVENTS ? (this.adapter.deregisterEventHandler("pointerdown", this.pointerdownListener), this.adapter.deregisterEventHandler("pointerup", this.pointerupListener)) : (this.adapter.deregisterEventHandler("mousedown", this.mousedownOrTouchstartListener), this.adapter.deregisterEventHandler("touchstart", this.mousedownOrTouchstartListener)), this.isRange && (this.adapter.deregisterThumbEventHandler(i.START, "mouseenter", this.thumbMouseenterListener), this.adapter.deregisterThumbEventHandler(i.START, "mouseleave", this.thumbMouseleaveListener), this.adapter.deregisterInputEventHandler(i.START, "change", this.inputStartChangeListener), this.adapter.deregisterInputEventHandler(i.START, "focus", this.inputStartFocusListener), this.adapter.deregisterInputEventHandler(i.START, "blur", this.inputStartBlurListener)), this.adapter.deregisterThumbEventHandler(i.END, "mouseenter", this.thumbMouseenterListener), this.adapter.deregisterThumbEventHandler(i.END, "mouseleave", this.thumbMouseleaveListener), this.adapter.deregisterInputEventHandler(i.END, "change", this.inputEndChangeListener), this.adapter.deregisterInputEventHandler(i.END, "focus", this.inputEndFocusListener), this.adapter.deregisterInputEventHandler(i.END, "blur", this.inputEndBlurListener);
|
665
|
+
}, r.prototype.handlePointerup = function() {
|
677
666
|
this.handleUp(), this.adapter.deregisterEventHandler("pointermove", this.moveListener);
|
678
|
-
},
|
667
|
+
}, r.SUPPORTS_POINTER_EVENTS = w && !!window.PointerEvent && // #setPointerCapture is buggy on iOS, so we can't use pointer events
|
679
668
|
// until the following bug is fixed:
|
680
669
|
// https://bugs.webkit.org/show_bug.cgi?id=220196
|
681
|
-
!q(),
|
682
|
-
}(
|
670
|
+
!q(), r;
|
671
|
+
}(K)
|
683
672
|
);
|
684
673
|
function q() {
|
685
674
|
return [
|
@@ -692,10 +681,10 @@ function q() {
|
|
692
681
|
].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
693
682
|
}
|
694
683
|
function U(s) {
|
695
|
-
var
|
696
|
-
if (!
|
684
|
+
var r = /(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(s));
|
685
|
+
if (!r)
|
697
686
|
return 0;
|
698
|
-
var t =
|
687
|
+
var t = r[1] || "", e = r[2] || 0;
|
699
688
|
return Math.max(
|
700
689
|
0,
|
701
690
|
// lower limit
|
@@ -709,15 +698,15 @@ function U(s) {
|
|
709
698
|
*/
|
710
699
|
class u extends B {
|
711
700
|
constructor() {
|
712
|
-
super(...arguments), this.mdcFoundationClass = G, this.disabled = !1, this.min = 0, this.max = 100, this.valueEnd = 0, this.name = "", this.step = 1, this.withTickMarks = !1, this.discrete = !1, this.tickMarks = [], this.trackTransformOriginStyle = "", this.trackLeftStyle = "", this.trackRightStyle = "", this.trackTransitionStyle = "", this.endThumbWithIndicator = !1, this.endThumbTop = !1, this.shouldRenderEndRipple = !1, this.endThumbTransformStyle = "", this.endThumbTransitionStyle = "", this.endThumbCssProperties = {}, this.valueToAriaTextTransform = null, this.valueToValueIndicatorTransform = (
|
701
|
+
super(...arguments), this.mdcFoundationClass = G, this.disabled = !1, this.min = 0, this.max = 100, this.valueEnd = 0, this.name = "", this.step = 1, this.withTickMarks = !1, this.discrete = !1, this.tickMarks = [], this.trackTransformOriginStyle = "", this.trackLeftStyle = "", this.trackRightStyle = "", this.trackTransitionStyle = "", this.endThumbWithIndicator = !1, this.endThumbTop = !1, this.shouldRenderEndRipple = !1, this.endThumbTransformStyle = "", this.endThumbTransitionStyle = "", this.endThumbCssProperties = {}, this.valueToAriaTextTransform = null, this.valueToValueIndicatorTransform = (r) => `${r}`, this.boundMoveListener = null, this.endRippleHandlers = new H(() => (this.shouldRenderEndRipple = !0, this.endRipple));
|
713
702
|
}
|
714
|
-
update(
|
715
|
-
if (
|
703
|
+
update(r) {
|
704
|
+
if (r.has("valueEnd") && this.mdcFoundation) {
|
716
705
|
this.mdcFoundation.setValue(this.valueEnd);
|
717
706
|
const t = this.mdcFoundation.getValue();
|
718
707
|
t !== this.valueEnd && (this.valueEnd = t);
|
719
708
|
}
|
720
|
-
|
709
|
+
r.has("discrete") && (this.discrete || (this.tickMarks = [])), super.update(r);
|
721
710
|
}
|
722
711
|
render() {
|
723
712
|
return this.renderRootEl(_`
|
@@ -728,7 +717,7 @@ class u extends B {
|
|
728
717
|
${this.renderStartThumb()}
|
729
718
|
${this.renderEndThumb()}`);
|
730
719
|
}
|
731
|
-
renderRootEl(
|
720
|
+
renderRootEl(r) {
|
732
721
|
const t = P({
|
733
722
|
"mdc-slider--disabled": this.disabled,
|
734
723
|
"mdc-slider--discrete": this.discrete
|
@@ -739,14 +728,14 @@ class u extends B {
|
|
739
728
|
@pointerdown=${this.onPointerdown}
|
740
729
|
@pointerup=${this.onPointerup}
|
741
730
|
@contextmenu=${this.onContextmenu}>
|
742
|
-
${
|
731
|
+
${r}
|
743
732
|
</div>`;
|
744
733
|
}
|
745
734
|
renderStartInput() {
|
746
735
|
return g;
|
747
736
|
}
|
748
737
|
renderEndInput() {
|
749
|
-
var
|
738
|
+
var r;
|
750
739
|
return _`
|
751
740
|
<input
|
752
741
|
class="mdc-slider__input end"
|
@@ -760,10 +749,10 @@ class u extends B {
|
|
760
749
|
@blur=${this.onEndBlur}
|
761
750
|
?disabled=${this.disabled}
|
762
751
|
name=${this.name}
|
763
|
-
aria-label=${
|
764
|
-
aria-labelledby=${
|
765
|
-
aria-describedby=${
|
766
|
-
aria-valuetext=${
|
752
|
+
aria-label=${I(this.ariaLabel)}
|
753
|
+
aria-labelledby=${I(this.ariaLabelledBy)}
|
754
|
+
aria-describedby=${I(this.ariaDescribedBy)}
|
755
|
+
aria-valuetext=${I((r = this.valueToAriaTextTransform) === null || r === void 0 ? void 0 : r.call(this, this.valueEnd))}>
|
767
756
|
`;
|
768
757
|
}
|
769
758
|
renderTrack() {
|
@@ -772,8 +761,8 @@ class u extends B {
|
|
772
761
|
renderTickMarks() {
|
773
762
|
return this.withTickMarks ? _`
|
774
763
|
<div class="mdc-slider__tick-marks">
|
775
|
-
${this.tickMarks.map((
|
776
|
-
const t =
|
764
|
+
${this.tickMarks.map((r) => {
|
765
|
+
const t = r === E.ACTIVE;
|
777
766
|
return _`<div class="${t ? "mdc-slider__tick-mark--active" : "mdc-slider__tick-mark--inactive"}"></div>`;
|
778
767
|
})}
|
779
768
|
</div>` : g;
|
@@ -782,13 +771,13 @@ class u extends B {
|
|
782
771
|
return g;
|
783
772
|
}
|
784
773
|
renderEndThumb() {
|
785
|
-
const
|
774
|
+
const r = P({
|
786
775
|
"mdc-slider__thumb--with-indicator": this.endThumbWithIndicator,
|
787
776
|
"mdc-slider__thumb--top": this.endThumbTop
|
788
777
|
}), t = W(Object.assign({ "-webkit-transform": this.endThumbTransformStyle, transform: this.endThumbTransformStyle, "-webkit-transition": this.endThumbTransitionStyle, transition: this.endThumbTransitionStyle, left: this.endThumbTransformStyle || getComputedStyle(this).direction === "rtl" ? "" : `calc(${(this.valueEnd - this.min) / (this.max - this.min) * 100}% - 24px)`, right: this.endThumbTransformStyle || getComputedStyle(this).direction !== "rtl" ? "" : `calc(${(this.valueEnd - this.min) / (this.max - this.min) * 100}% - 24px)` }, this.endThumbCssProperties)), e = this.shouldRenderEndRipple ? _`<mwc-ripple class="ripple" unbounded></mwc-ripple>` : g;
|
789
778
|
return _`
|
790
779
|
<div
|
791
|
-
class="mdc-slider__thumb end ${
|
780
|
+
class="mdc-slider__thumb end ${r}"
|
792
781
|
style=${t}
|
793
782
|
@mouseenter=${this.onEndMouseenter}
|
794
783
|
@mouseleave=${this.onEndMouseleave}>
|
@@ -798,12 +787,12 @@ class u extends B {
|
|
798
787
|
</div>
|
799
788
|
`;
|
800
789
|
}
|
801
|
-
renderValueIndicator(
|
790
|
+
renderValueIndicator(r) {
|
802
791
|
return this.discrete ? _`
|
803
792
|
<div class="mdc-slider__value-indicator-container" aria-hidden="true">
|
804
793
|
<div class="mdc-slider__value-indicator">
|
805
794
|
<span class="mdc-slider__value-indicator-text">
|
806
|
-
${
|
795
|
+
${r}
|
807
796
|
</span>
|
808
797
|
</div>
|
809
798
|
</div>` : g;
|
@@ -816,44 +805,44 @@ class u extends B {
|
|
816
805
|
async firstUpdated() {
|
817
806
|
super.firstUpdated(), await this.layout(!0);
|
818
807
|
}
|
819
|
-
updated(
|
820
|
-
super.updated(
|
808
|
+
updated(r) {
|
809
|
+
super.updated(r), this.mdcFoundation && (r.has("disabled") && this.mdcFoundation.setDisabled(this.disabled), r.has("min") && this.mdcFoundation.setMin(this.min), r.has("max") && this.mdcFoundation.setMax(this.max), r.has("step") && this.mdcFoundation.setStep(this.step), r.has("discrete") && this.mdcFoundation.setIsDiscrete(this.discrete), r.has("withTickMarks") && this.mdcFoundation.setHasTickMarks(this.withTickMarks));
|
821
810
|
}
|
822
|
-
async layout(
|
811
|
+
async layout(r = !1) {
|
823
812
|
var t;
|
824
|
-
(t = this.mdcFoundation) === null || t === void 0 || t.layout({ skipUpdateUI:
|
813
|
+
(t = this.mdcFoundation) === null || t === void 0 || t.layout({ skipUpdateUI: r }), this.requestUpdate(), await this.updateComplete;
|
825
814
|
}
|
826
|
-
onEndChange(
|
815
|
+
onEndChange(r) {
|
827
816
|
var t;
|
828
|
-
this.valueEnd = Number(
|
817
|
+
this.valueEnd = Number(r.target.value), (t = this.mdcFoundation) === null || t === void 0 || t.handleInputChange(i.END);
|
829
818
|
}
|
830
819
|
onEndFocus() {
|
831
|
-
var
|
832
|
-
(
|
820
|
+
var r;
|
821
|
+
(r = this.mdcFoundation) === null || r === void 0 || r.handleInputFocus(i.END), this.endRippleHandlers.startFocus();
|
833
822
|
}
|
834
823
|
onEndBlur() {
|
835
|
-
var
|
836
|
-
(
|
824
|
+
var r;
|
825
|
+
(r = this.mdcFoundation) === null || r === void 0 || r.handleInputBlur(i.END), this.endRippleHandlers.endFocus();
|
837
826
|
}
|
838
827
|
onEndMouseenter() {
|
839
|
-
var
|
840
|
-
(
|
828
|
+
var r;
|
829
|
+
(r = this.mdcFoundation) === null || r === void 0 || r.handleThumbMouseenter(), this.endRippleHandlers.startHover();
|
841
830
|
}
|
842
831
|
onEndMouseleave() {
|
843
|
-
var
|
844
|
-
(
|
832
|
+
var r;
|
833
|
+
(r = this.mdcFoundation) === null || r === void 0 || r.handleThumbMouseleave(), this.endRippleHandlers.endHover();
|
845
834
|
}
|
846
|
-
onPointerdown(
|
847
|
-
this.layout(), this.mdcFoundation && (this.mdcFoundation.handlePointerdown(
|
835
|
+
onPointerdown(r) {
|
836
|
+
this.layout(), this.mdcFoundation && (this.mdcFoundation.handlePointerdown(r), this.boundMoveListener = this.mdcFoundation.handleMove.bind(this.mdcFoundation), this.mdcRoot.addEventListener("pointermove", this.boundMoveListener));
|
848
837
|
}
|
849
838
|
onPointerup() {
|
850
839
|
this.mdcFoundation && (this.mdcFoundation.handleUp(), this.boundMoveListener && (this.mdcRoot.removeEventListener("pointermove", this.boundMoveListener), this.boundMoveListener = null));
|
851
840
|
}
|
852
|
-
onContextmenu(
|
853
|
-
|
841
|
+
onContextmenu(r) {
|
842
|
+
r.preventDefault();
|
854
843
|
}
|
855
|
-
setFormData(
|
856
|
-
this.name &&
|
844
|
+
setFormData(r) {
|
845
|
+
this.name && r.append(this.name, `${this.valueEnd}`);
|
857
846
|
}
|
858
847
|
}
|
859
848
|
o([
|
@@ -872,31 +861,31 @@ o([
|
|
872
861
|
y(".end.mdc-slider__thumb .mdc-slider__value-indicator-container")
|
873
862
|
], u.prototype, "endValueIndicatorContainer", void 0);
|
874
863
|
o([
|
875
|
-
|
864
|
+
O(".end .ripple")
|
876
865
|
], u.prototype, "endRipple", void 0);
|
877
866
|
o([
|
878
|
-
|
867
|
+
T({ type: Boolean, reflect: !0 })
|
879
868
|
], u.prototype, "disabled", void 0);
|
880
869
|
o([
|
881
|
-
|
870
|
+
T({ type: Number })
|
882
871
|
], u.prototype, "min", void 0);
|
883
872
|
o([
|
884
|
-
|
873
|
+
T({ type: Number })
|
885
874
|
], u.prototype, "max", void 0);
|
886
875
|
o([
|
887
|
-
|
876
|
+
T({ type: Number })
|
888
877
|
], u.prototype, "valueEnd", void 0);
|
889
878
|
o([
|
890
|
-
|
879
|
+
T({ type: String })
|
891
880
|
], u.prototype, "name", void 0);
|
892
881
|
o([
|
893
|
-
|
882
|
+
T({ type: Number })
|
894
883
|
], u.prototype, "step", void 0);
|
895
884
|
o([
|
896
|
-
|
885
|
+
T({ type: Boolean })
|
897
886
|
], u.prototype, "withTickMarks", void 0);
|
898
887
|
o([
|
899
|
-
|
888
|
+
T({ type: Boolean })
|
900
889
|
], u.prototype, "discrete", void 0);
|
901
890
|
o([
|
902
891
|
b()
|
@@ -932,16 +921,16 @@ o([
|
|
932
921
|
b()
|
933
922
|
], u.prototype, "endThumbCssProperties", void 0);
|
934
923
|
o([
|
935
|
-
|
936
|
-
|
924
|
+
x,
|
925
|
+
T({ type: String, attribute: "aria-label" })
|
937
926
|
], u.prototype, "ariaLabel", void 0);
|
938
927
|
o([
|
939
|
-
|
940
|
-
|
928
|
+
x,
|
929
|
+
T({ type: String, attribute: "aria-labelledby" })
|
941
930
|
], u.prototype, "ariaLabelledBy", void 0);
|
942
931
|
o([
|
943
|
-
|
944
|
-
|
932
|
+
x,
|
933
|
+
T({ type: String, attribute: "aria-describedby" })
|
945
934
|
], u.prototype, "ariaDescribedBy", void 0);
|
946
935
|
/**
|
947
936
|
* @license
|
@@ -951,6 +940,6 @@ o([
|
|
951
940
|
const st = $`.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{height:4px;position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{border-radius:3px;height:6px;overflow:hidden;top:-1px}.mdc-slider .mdc-slider__track--active_fill{border-top:6px solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{border-radius:2px;height:4px;left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__track--active_fill{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider .mdc-slider__track--inactive{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);opacity:.24}.mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:.24}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:50%;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:translateX(-50%);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid;bottom:-5px;content:"";height:0;left:50%;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:translateX(-50%);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__value-indicator-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle2-font-size, 0.875rem);line-height:1.375rem;line-height:var(--mdc-typography-subtitle2-line-height, 1.375rem);font-weight:500;font-weight:var(--mdc-typography-subtitle2-font-weight, 500);letter-spacing:0.0071428571em;letter-spacing:var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle2-text-transform, inherit)}.mdc-slider .mdc-slider__value-indicator{background-color:#000;opacity:.6}.mdc-slider .mdc-slider__value-indicator::before{border-top-color:#000}.mdc-slider .mdc-slider__value-indicator{color:#fff;color:var(--mdc-theme-on-primary, #fff)}.mdc-slider .mdc-slider__thumb{display:flex;height:48px;left:-24px;outline:none;position:absolute;user-select:none;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-shadow:0px 2px 1px -1px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0,0,0,.12);border:10px solid;border-radius:50%;box-sizing:border-box;height:20px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:20px}.mdc-slider .mdc-slider__thumb-knob{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);border-color:#000;border-color:var(--mdc-theme-on-surface, #000)}.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mdc-slider .mdc-slider__thumb::before,.mdc-slider .mdc-slider__thumb::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-slider .mdc-slider__thumb:hover::before,.mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider .mdc-slider__tick-mark--active,.mdc-slider .mdc-slider__tick-mark--inactive{border-radius:50%;height:2px;width:2px}.mdc-slider .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:#fff;background-color:var(--mdc-theme-on-primary, #fff);opacity:.6}.mdc-slider .mdc-slider__tick-mark--inactive{background-color:#6200ee;background-color:var(--mdc-theme-primary, #6200ee);opacity:.6}.mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:#000;background-color:var(--mdc-theme-on-surface, #000);opacity:.6}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{opacity:.38;cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:0;margin:0;height:100%;opacity:0;pointer-events:none;position:absolute;top:0;width:100%}:host{outline:none;display:block;-webkit-tap-highlight-color:transparent}.ripple{--mdc-ripple-color:#6200ee;--mdc-ripple-color:var(--mdc-theme-primary, #6200ee)}`;
|
952
941
|
export {
|
953
942
|
u as S,
|
954
|
-
|
943
|
+
i as T,
|
955
944
|
st as s
|
956
945
|
};
|