@hortiview/default-components 1.3.0 → 1.4.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/dist/{HealthCheckFailed-BA_vyKwG.js → HealthCheckFailed-DoqoTvwZ.js} +12 -11
- package/dist/Iconify-Cjdr-ccS.js +82 -0
- package/dist/{LoadingSpinner-5JYKhDod.js → LoadingSpinner-FRQEZvxs.js} +26 -25
- package/dist/OfflineView-HbuDPpQL-BX2tMPh9.js +46 -0
- package/dist/assets/DefaultFormSelect.css +1 -0
- package/dist/{component-DsB0poTj-uxpi4oSj.js → component-DsB0poTj-BZ89hFvY.js} +3 -3
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +239 -251
- package/dist/components/DefaultFormSelect/DefaultFormSelect.d.ts +14 -0
- package/dist/components/DefaultFormSelect/DefaultFormSelect.js +189 -0
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
- package/dist/components/GenericTable/GenericTable.js +9928 -23562
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
- package/dist/components/HealthChecks/PlatformHealthCheck.js +2 -2
- package/dist/components/ImpatienceLoadingSpinner/ImpatienceLoadingSpinner.js +2 -2
- package/dist/components/OfflineView/OfflineView.js +2 -2
- package/dist/index.es--yyG47az-DBKBm3yD.js +825 -0
- package/dist/{index.es-CiqbARoC-D-muiSwa.js → index.es-Bx1E5MPK-BWa0n8W0.js} +31 -31
- package/dist/index.es-CzUKBF7E-BPJhlGEA.js +13567 -0
- package/dist/{index.es-D-CKRzIB-DPq2PQz-.js → index.es-D-ph6ImM-CWxTa_iD.js} +15 -15
- package/dist/index.es-DDo_AHL0-Bnqdxr8c.js +1033 -0
- package/dist/index.es-Kg9soDed-DUORjY8X.js +440 -0
- package/dist/index.es-U5-b20Gv-Bta-iNSF.js +1010 -0
- package/dist/locales/en-US.js +9 -7
- package/dist/locales/en-US.json.d.ts +8 -2
- package/dist/locales/es-MX.js +8 -6
- package/dist/locales/es-MX.json.d.ts +8 -2
- package/dist/locales/tr-TR.js +15 -13
- package/dist/locales/tr-TR.json.d.ts +8 -2
- package/dist/main.d.ts +6 -3
- package/dist/main.js +22 -20
- package/dist/{index.es-25EARqhH-CciUgLci.js → omit-1Eom1PmQ-DluRHOwa.js} +748 -1314
- package/dist/useHelperText-BjFihJ7h.js +21 -0
- package/dist/useTranslation-B_ODv8uN.js +4306 -0
- package/package.json +3 -3
- package/dist/Iconify-B42tJF6q.js +0 -979
- package/dist/OfflineView-BW19N4Cu-CpgiY6nC.js +0 -45
- package/dist/index.es-6TJ1S8Jr-C4X_iaSC.js +0 -1468
- package/dist/useTranslation-v0qSkb40.js +0 -4223
- /package/dist/assets/{OfflineView-BW19N4Cu.css → OfflineView-HbuDPpQL.css} +0 -0
|
@@ -1,916 +1,7 @@
|
|
|
1
|
-
import { e as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const pn = {
|
|
6
|
-
/**
|
|
7
|
-
* Content to be rendered inside the portal.
|
|
8
|
-
*
|
|
9
|
-
* Defaults to **null**.
|
|
10
|
-
*/
|
|
11
|
-
children: a.node,
|
|
12
|
-
/**
|
|
13
|
-
* Disables the portal to rendering children in the natural flow of the DOM.
|
|
14
|
-
*
|
|
15
|
-
* Defaults to **false**.
|
|
16
|
-
*/
|
|
17
|
-
disabled: a.bool,
|
|
18
|
-
/**
|
|
19
|
-
* The DOM element the children will render in. If a string is sent it should be a valid DOM query selector. If one is not sent, Portal will default to `document.body`.
|
|
20
|
-
*
|
|
21
|
-
* Defaults to **'document.body'**.
|
|
22
|
-
*/
|
|
23
|
-
portalContainer: a.oneOfType([a.string, a.node])
|
|
24
|
-
}, hn = {
|
|
25
|
-
children: null,
|
|
26
|
-
disabled: !1,
|
|
27
|
-
portalContainer: "document.body"
|
|
28
|
-
}, bt = /* @__PURE__ */ M((i, e) => {
|
|
29
|
-
var t;
|
|
30
|
-
const [n, r] = j((t = document) === null || t === void 0 ? void 0 : t.body), {
|
|
31
|
-
children: o,
|
|
32
|
-
container: l,
|
|
33
|
-
disabled: s
|
|
34
|
-
} = i, u = v();
|
|
35
|
-
return K(e, () => u.current, []), g(() => {
|
|
36
|
-
var c;
|
|
37
|
-
const h = (c = document) === null || c === void 0 ? void 0 : c.body;
|
|
38
|
-
if (typeof l == "string")
|
|
39
|
-
if (l === "document.body")
|
|
40
|
-
r(h);
|
|
41
|
-
else {
|
|
42
|
-
const T = tn(l);
|
|
43
|
-
r(T || h);
|
|
44
|
-
}
|
|
45
|
-
else
|
|
46
|
-
r(l || h);
|
|
47
|
-
}, [l]), // eslint-disable-next-line react/jsx-no-useless-fragment
|
|
48
|
-
/* @__PURE__ */ d.createElement(d.Fragment, null, s || !n ? o : /* @__PURE__ */ fn.createPortal(o, n));
|
|
49
|
-
});
|
|
50
|
-
bt.displayName = "Portal";
|
|
51
|
-
bt.propTypes = pn;
|
|
52
|
-
bt.defaultProps = hn;
|
|
53
|
-
var mn = /* @__PURE__ */ d.memo(bt), Rt, le;
|
|
54
|
-
function _n() {
|
|
55
|
-
if (le) return Rt;
|
|
56
|
-
le = 1;
|
|
57
|
-
function i(e, t) {
|
|
58
|
-
for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
|
|
59
|
-
o[n] = t(e[n], n, e);
|
|
60
|
-
return o;
|
|
61
|
-
}
|
|
62
|
-
return Rt = i, Rt;
|
|
63
|
-
}
|
|
64
|
-
var Pt, ue;
|
|
65
|
-
function Gt() {
|
|
66
|
-
if (ue) return Pt;
|
|
67
|
-
ue = 1;
|
|
68
|
-
var i = nn(), e = rn(), t = "[object Symbol]";
|
|
69
|
-
function n(r) {
|
|
70
|
-
return typeof r == "symbol" || e(r) && i(r) == t;
|
|
71
|
-
}
|
|
72
|
-
return Pt = n, Pt;
|
|
73
|
-
}
|
|
74
|
-
var Ft, de;
|
|
75
|
-
function gn() {
|
|
76
|
-
if (de) return Ft;
|
|
77
|
-
de = 1;
|
|
78
|
-
var i = en(), e = _n(), t = qt(), n = Gt(), r = i ? i.prototype : void 0, o = r ? r.toString : void 0;
|
|
79
|
-
function l(s) {
|
|
80
|
-
if (typeof s == "string")
|
|
81
|
-
return s;
|
|
82
|
-
if (t(s))
|
|
83
|
-
return e(s, l) + "";
|
|
84
|
-
if (n(s))
|
|
85
|
-
return o ? o.call(s) : "";
|
|
86
|
-
var u = s + "";
|
|
87
|
-
return u == "0" && 1 / s == -1 / 0 ? "-0" : u;
|
|
88
|
-
}
|
|
89
|
-
return Ft = l, Ft;
|
|
90
|
-
}
|
|
91
|
-
var Ht, ce;
|
|
92
|
-
function bn() {
|
|
93
|
-
if (ce) return Ht;
|
|
94
|
-
ce = 1;
|
|
95
|
-
var i = gn();
|
|
96
|
-
function e(t) {
|
|
97
|
-
return t == null ? "" : i(t);
|
|
98
|
-
}
|
|
99
|
-
return Ht = e, Ht;
|
|
100
|
-
}
|
|
101
|
-
var St, fe;
|
|
102
|
-
function vn() {
|
|
103
|
-
if (fe) return St;
|
|
104
|
-
fe = 1;
|
|
105
|
-
var i = qt(), e = Gt(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/;
|
|
106
|
-
function r(o, l) {
|
|
107
|
-
if (i(o))
|
|
108
|
-
return !1;
|
|
109
|
-
var s = typeof o;
|
|
110
|
-
return s == "number" || s == "symbol" || s == "boolean" || o == null || e(o) ? !0 : n.test(o) || !t.test(o) || l != null && o in Object(l);
|
|
111
|
-
}
|
|
112
|
-
return St = r, St;
|
|
113
|
-
}
|
|
114
|
-
var Vt, pe;
|
|
115
|
-
function yn() {
|
|
116
|
-
if (pe) return Vt;
|
|
117
|
-
pe = 1;
|
|
118
|
-
var i = on(), e = "Expected a function";
|
|
119
|
-
function t(n, r) {
|
|
120
|
-
if (typeof n != "function" || r != null && typeof r != "function")
|
|
121
|
-
throw new TypeError(e);
|
|
122
|
-
var o = function() {
|
|
123
|
-
var l = arguments, s = r ? r.apply(this, l) : l[0], u = o.cache;
|
|
124
|
-
if (u.has(s))
|
|
125
|
-
return u.get(s);
|
|
126
|
-
var c = n.apply(this, l);
|
|
127
|
-
return o.cache = u.set(s, c) || u, c;
|
|
128
|
-
};
|
|
129
|
-
return o.cache = new (t.Cache || i)(), o;
|
|
130
|
-
}
|
|
131
|
-
return t.Cache = i, Vt = t, Vt;
|
|
132
|
-
}
|
|
133
|
-
var Dt, he;
|
|
134
|
-
function En() {
|
|
135
|
-
if (he) return Dt;
|
|
136
|
-
he = 1;
|
|
137
|
-
var i = yn(), e = 500;
|
|
138
|
-
function t(n) {
|
|
139
|
-
var r = i(n, function(l) {
|
|
140
|
-
return o.size === e && o.clear(), l;
|
|
141
|
-
}), o = r.cache;
|
|
142
|
-
return r;
|
|
143
|
-
}
|
|
144
|
-
return Dt = t, Dt;
|
|
145
|
-
}
|
|
146
|
-
var wt, me;
|
|
147
|
-
function In() {
|
|
148
|
-
if (me) return wt;
|
|
149
|
-
me = 1;
|
|
150
|
-
var i = En(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = i(function(r) {
|
|
151
|
-
var o = [];
|
|
152
|
-
return r.charCodeAt(0) === 46 && o.push(""), r.replace(e, function(l, s, u, c) {
|
|
153
|
-
o.push(u ? c.replace(t, "$1") : s || l);
|
|
154
|
-
}), o;
|
|
155
|
-
});
|
|
156
|
-
return wt = n, wt;
|
|
157
|
-
}
|
|
158
|
-
var jt, _e;
|
|
159
|
-
function Tn() {
|
|
160
|
-
if (_e) return jt;
|
|
161
|
-
_e = 1;
|
|
162
|
-
var i = qt(), e = vn(), t = In(), n = bn();
|
|
163
|
-
function r(o, l) {
|
|
164
|
-
return i(o) ? o : e(o, l) ? [o] : t(n(o));
|
|
165
|
-
}
|
|
166
|
-
return jt = r, jt;
|
|
167
|
-
}
|
|
168
|
-
var kt, ge;
|
|
169
|
-
function Cn() {
|
|
170
|
-
if (ge) return kt;
|
|
171
|
-
ge = 1;
|
|
172
|
-
var i = Gt();
|
|
173
|
-
function e(t) {
|
|
174
|
-
if (typeof t == "string" || i(t))
|
|
175
|
-
return t;
|
|
176
|
-
var n = t + "";
|
|
177
|
-
return n == "0" && 1 / t == -1 / 0 ? "-0" : n;
|
|
178
|
-
}
|
|
179
|
-
return kt = e, kt;
|
|
180
|
-
}
|
|
181
|
-
var Bt, be;
|
|
182
|
-
function xn() {
|
|
183
|
-
if (be) return Bt;
|
|
184
|
-
be = 1;
|
|
185
|
-
var i = Tn(), e = Cn();
|
|
186
|
-
function t(n, r) {
|
|
187
|
-
r = i(r, n);
|
|
188
|
-
for (var o = 0, l = r.length; n != null && o < l; )
|
|
189
|
-
n = n[e(r[o++])];
|
|
190
|
-
return o && o == l ? n : void 0;
|
|
191
|
-
}
|
|
192
|
-
return Bt = t, Bt;
|
|
193
|
-
}
|
|
194
|
-
var Mt, ve;
|
|
195
|
-
function er() {
|
|
196
|
-
if (ve) return Mt;
|
|
197
|
-
ve = 1;
|
|
198
|
-
var i = xn();
|
|
199
|
-
function e(t, n, r) {
|
|
200
|
-
var o = t == null ? void 0 : i(t, n);
|
|
201
|
-
return o === void 0 ? r : o;
|
|
202
|
-
}
|
|
203
|
-
return Mt = e, Mt;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* @license
|
|
207
|
-
* Copyright 2016 Google Inc.
|
|
208
|
-
*
|
|
209
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
210
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
211
|
-
* in the Software without restriction, including without limitation the rights
|
|
212
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
213
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
214
|
-
* furnished to do so, subject to the following conditions:
|
|
215
|
-
*
|
|
216
|
-
* The above copyright notice and this permission notice shall be included in
|
|
217
|
-
* all copies or substantial portions of the Software.
|
|
218
|
-
*
|
|
219
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
220
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
221
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
222
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
223
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
224
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
225
|
-
* THE SOFTWARE.
|
|
226
|
-
*/
|
|
227
|
-
var Ln = {
|
|
228
|
-
LABEL_FLOAT_ABOVE: "mdc-floating-label--float-above",
|
|
229
|
-
LABEL_REQUIRED: "mdc-floating-label--required",
|
|
230
|
-
LABEL_SHAKE: "mdc-floating-label--shake",
|
|
231
|
-
ROOT: "mdc-floating-label"
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* @license
|
|
235
|
-
* Copyright 2016 Google Inc.
|
|
236
|
-
*
|
|
237
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
238
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
239
|
-
* in the Software without restriction, including without limitation the rights
|
|
240
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
241
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
242
|
-
* furnished to do so, subject to the following conditions:
|
|
243
|
-
*
|
|
244
|
-
* The above copyright notice and this permission notice shall be included in
|
|
245
|
-
* all copies or substantial portions of the Software.
|
|
246
|
-
*
|
|
247
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
248
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
249
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
250
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
251
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
252
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
253
|
-
* THE SOFTWARE.
|
|
254
|
-
*/
|
|
255
|
-
var Re = (
|
|
256
|
-
/** @class */
|
|
257
|
-
function(i) {
|
|
258
|
-
I(e, i);
|
|
259
|
-
function e(t) {
|
|
260
|
-
var n = i.call(this, _(_({}, e.defaultAdapter), t)) || this;
|
|
261
|
-
return n.shakeAnimationEndHandler_ = function() {
|
|
262
|
-
return n.handleShakeAnimationEnd_();
|
|
263
|
-
}, n;
|
|
264
|
-
}
|
|
265
|
-
return Object.defineProperty(e, "cssClasses", {
|
|
266
|
-
get: function() {
|
|
267
|
-
return Ln;
|
|
268
|
-
},
|
|
269
|
-
enumerable: !1,
|
|
270
|
-
configurable: !0
|
|
271
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
|
272
|
-
/**
|
|
273
|
-
* See {@link MDCFloatingLabelAdapter} for typing information on parameters and return types.
|
|
274
|
-
*/
|
|
275
|
-
get: function() {
|
|
276
|
-
return {
|
|
277
|
-
addClass: function() {
|
|
278
|
-
},
|
|
279
|
-
removeClass: function() {
|
|
280
|
-
},
|
|
281
|
-
getWidth: function() {
|
|
282
|
-
return 0;
|
|
283
|
-
},
|
|
284
|
-
registerInteractionHandler: function() {
|
|
285
|
-
},
|
|
286
|
-
deregisterInteractionHandler: function() {
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
},
|
|
290
|
-
enumerable: !1,
|
|
291
|
-
configurable: !0
|
|
292
|
-
}), e.prototype.init = function() {
|
|
293
|
-
this.adapter.registerInteractionHandler("animationend", this.shakeAnimationEndHandler_);
|
|
294
|
-
}, e.prototype.destroy = function() {
|
|
295
|
-
this.adapter.deregisterInteractionHandler("animationend", this.shakeAnimationEndHandler_);
|
|
296
|
-
}, e.prototype.getWidth = function() {
|
|
297
|
-
return this.adapter.getWidth();
|
|
298
|
-
}, e.prototype.shake = function(t) {
|
|
299
|
-
var n = e.cssClasses.LABEL_SHAKE;
|
|
300
|
-
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
|
301
|
-
}, e.prototype.float = function(t) {
|
|
302
|
-
var n = e.cssClasses, r = n.LABEL_FLOAT_ABOVE, o = n.LABEL_SHAKE;
|
|
303
|
-
t ? this.adapter.addClass(r) : (this.adapter.removeClass(r), this.adapter.removeClass(o));
|
|
304
|
-
}, e.prototype.setRequired = function(t) {
|
|
305
|
-
var n = e.cssClasses.LABEL_REQUIRED;
|
|
306
|
-
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
|
307
|
-
}, e.prototype.handleShakeAnimationEnd_ = function() {
|
|
308
|
-
var t = e.cssClasses.LABEL_SHAKE;
|
|
309
|
-
this.adapter.removeClass(t);
|
|
310
|
-
}, e;
|
|
311
|
-
}(z)
|
|
312
|
-
);
|
|
313
|
-
/**
|
|
314
|
-
* @license
|
|
315
|
-
* Copyright 2016 Google Inc.
|
|
316
|
-
*
|
|
317
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
318
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
319
|
-
* in the Software without restriction, including without limitation the rights
|
|
320
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
321
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
322
|
-
* furnished to do so, subject to the following conditions:
|
|
323
|
-
*
|
|
324
|
-
* The above copyright notice and this permission notice shall be included in
|
|
325
|
-
* all copies or substantial portions of the Software.
|
|
326
|
-
*
|
|
327
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
328
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
329
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
330
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
331
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
332
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
333
|
-
* THE SOFTWARE.
|
|
334
|
-
*/
|
|
335
|
-
var Pe = (
|
|
336
|
-
/** @class */
|
|
337
|
-
function(i) {
|
|
338
|
-
I(e, i);
|
|
339
|
-
function e() {
|
|
340
|
-
return i !== null && i.apply(this, arguments) || this;
|
|
341
|
-
}
|
|
342
|
-
return e.attachTo = function(t) {
|
|
343
|
-
return new e(t);
|
|
344
|
-
}, e.prototype.shake = function(t) {
|
|
345
|
-
this.foundation.shake(t);
|
|
346
|
-
}, e.prototype.float = function(t) {
|
|
347
|
-
this.foundation.float(t);
|
|
348
|
-
}, e.prototype.setRequired = function(t) {
|
|
349
|
-
this.foundation.setRequired(t);
|
|
350
|
-
}, e.prototype.getWidth = function() {
|
|
351
|
-
return this.foundation.getWidth();
|
|
352
|
-
}, e.prototype.getDefaultFoundation = function() {
|
|
353
|
-
var t = this, n = {
|
|
354
|
-
addClass: function(r) {
|
|
355
|
-
return t.root.classList.add(r);
|
|
356
|
-
},
|
|
357
|
-
removeClass: function(r) {
|
|
358
|
-
return t.root.classList.remove(r);
|
|
359
|
-
},
|
|
360
|
-
getWidth: function() {
|
|
361
|
-
return un(t.root);
|
|
362
|
-
},
|
|
363
|
-
registerInteractionHandler: function(r, o) {
|
|
364
|
-
return t.listen(r, o);
|
|
365
|
-
},
|
|
366
|
-
deregisterInteractionHandler: function(r, o) {
|
|
367
|
-
return t.unlisten(r, o);
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
return new Re(n);
|
|
371
|
-
}, e;
|
|
372
|
-
}(X)
|
|
373
|
-
);
|
|
374
|
-
/**
|
|
375
|
-
* @license
|
|
376
|
-
* Copyright 2018 Google Inc.
|
|
377
|
-
*
|
|
378
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
379
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
380
|
-
* in the Software without restriction, including without limitation the rights
|
|
381
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
382
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
383
|
-
* furnished to do so, subject to the following conditions:
|
|
384
|
-
*
|
|
385
|
-
* The above copyright notice and this permission notice shall be included in
|
|
386
|
-
* all copies or substantial portions of the Software.
|
|
387
|
-
*
|
|
388
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
389
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
390
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
391
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
392
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
393
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
394
|
-
* THE SOFTWARE.
|
|
395
|
-
*/
|
|
396
|
-
var Fe = {
|
|
397
|
-
NOTCH_ELEMENT_SELECTOR: ".mdc-notched-outline__notch"
|
|
398
|
-
}, ye = {
|
|
399
|
-
// This should stay in sync with $mdc-notched-outline-padding * 2.
|
|
400
|
-
NOTCH_ELEMENT_PADDING: 8
|
|
401
|
-
}, Ut = {
|
|
402
|
-
NO_LABEL: "mdc-notched-outline--no-label",
|
|
403
|
-
OUTLINE_NOTCHED: "mdc-notched-outline--notched",
|
|
404
|
-
OUTLINE_UPGRADED: "mdc-notched-outline--upgraded"
|
|
405
|
-
};
|
|
406
|
-
/**
|
|
407
|
-
* @license
|
|
408
|
-
* Copyright 2017 Google Inc.
|
|
409
|
-
*
|
|
410
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
411
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
412
|
-
* in the Software without restriction, including without limitation the rights
|
|
413
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
414
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
415
|
-
* furnished to do so, subject to the following conditions:
|
|
416
|
-
*
|
|
417
|
-
* The above copyright notice and this permission notice shall be included in
|
|
418
|
-
* all copies or substantial portions of the Software.
|
|
419
|
-
*
|
|
420
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
421
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
422
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
423
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
424
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
425
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
426
|
-
* THE SOFTWARE.
|
|
427
|
-
*/
|
|
428
|
-
var On = (
|
|
429
|
-
/** @class */
|
|
430
|
-
function(i) {
|
|
431
|
-
I(e, i);
|
|
432
|
-
function e(t) {
|
|
433
|
-
return i.call(this, _(_({}, e.defaultAdapter), t)) || this;
|
|
434
|
-
}
|
|
435
|
-
return Object.defineProperty(e, "strings", {
|
|
436
|
-
get: function() {
|
|
437
|
-
return Fe;
|
|
438
|
-
},
|
|
439
|
-
enumerable: !1,
|
|
440
|
-
configurable: !0
|
|
441
|
-
}), Object.defineProperty(e, "cssClasses", {
|
|
442
|
-
get: function() {
|
|
443
|
-
return Ut;
|
|
444
|
-
},
|
|
445
|
-
enumerable: !1,
|
|
446
|
-
configurable: !0
|
|
447
|
-
}), Object.defineProperty(e, "numbers", {
|
|
448
|
-
get: function() {
|
|
449
|
-
return ye;
|
|
450
|
-
},
|
|
451
|
-
enumerable: !1,
|
|
452
|
-
configurable: !0
|
|
453
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
|
454
|
-
/**
|
|
455
|
-
* See {@link MDCNotchedOutlineAdapter} for typing information on parameters and return types.
|
|
456
|
-
*/
|
|
457
|
-
get: function() {
|
|
458
|
-
return {
|
|
459
|
-
addClass: function() {
|
|
460
|
-
},
|
|
461
|
-
removeClass: function() {
|
|
462
|
-
},
|
|
463
|
-
setNotchWidthProperty: function() {
|
|
464
|
-
},
|
|
465
|
-
removeNotchWidthProperty: function() {
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
},
|
|
469
|
-
enumerable: !1,
|
|
470
|
-
configurable: !0
|
|
471
|
-
}), e.prototype.notch = function(t) {
|
|
472
|
-
var n = e.cssClasses.OUTLINE_NOTCHED;
|
|
473
|
-
t > 0 && (t += ye.NOTCH_ELEMENT_PADDING), this.adapter.setNotchWidthProperty(t), this.adapter.addClass(n);
|
|
474
|
-
}, e.prototype.closeNotch = function() {
|
|
475
|
-
var t = e.cssClasses.OUTLINE_NOTCHED;
|
|
476
|
-
this.adapter.removeClass(t), this.adapter.removeNotchWidthProperty();
|
|
477
|
-
}, e;
|
|
478
|
-
}(z)
|
|
479
|
-
);
|
|
480
|
-
/**
|
|
481
|
-
* @license
|
|
482
|
-
* Copyright 2017 Google Inc.
|
|
483
|
-
*
|
|
484
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
485
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
486
|
-
* in the Software without restriction, including without limitation the rights
|
|
487
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
488
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
489
|
-
* furnished to do so, subject to the following conditions:
|
|
490
|
-
*
|
|
491
|
-
* The above copyright notice and this permission notice shall be included in
|
|
492
|
-
* all copies or substantial portions of the Software.
|
|
493
|
-
*
|
|
494
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
495
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
496
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
497
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
498
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
499
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
500
|
-
* THE SOFTWARE.
|
|
501
|
-
*/
|
|
502
|
-
var He = (
|
|
503
|
-
/** @class */
|
|
504
|
-
function(i) {
|
|
505
|
-
I(e, i);
|
|
506
|
-
function e() {
|
|
507
|
-
return i !== null && i.apply(this, arguments) || this;
|
|
508
|
-
}
|
|
509
|
-
return e.attachTo = function(t) {
|
|
510
|
-
return new e(t);
|
|
511
|
-
}, e.prototype.initialSyncWithDOM = function() {
|
|
512
|
-
this.notchElement_ = this.root.querySelector(Fe.NOTCH_ELEMENT_SELECTOR);
|
|
513
|
-
var t = this.root.querySelector("." + Re.cssClasses.ROOT);
|
|
514
|
-
t ? (t.style.transitionDuration = "0s", this.root.classList.add(Ut.OUTLINE_UPGRADED), requestAnimationFrame(function() {
|
|
515
|
-
t.style.transitionDuration = "";
|
|
516
|
-
})) : this.root.classList.add(Ut.NO_LABEL);
|
|
517
|
-
}, e.prototype.notch = function(t) {
|
|
518
|
-
this.foundation.notch(t);
|
|
519
|
-
}, e.prototype.closeNotch = function() {
|
|
520
|
-
this.foundation.closeNotch();
|
|
521
|
-
}, e.prototype.getDefaultFoundation = function() {
|
|
522
|
-
var t = this, n = {
|
|
523
|
-
addClass: function(r) {
|
|
524
|
-
return t.root.classList.add(r);
|
|
525
|
-
},
|
|
526
|
-
removeClass: function(r) {
|
|
527
|
-
return t.root.classList.remove(r);
|
|
528
|
-
},
|
|
529
|
-
setNotchWidthProperty: function(r) {
|
|
530
|
-
return t.notchElement_.style.setProperty("width", r + "px");
|
|
531
|
-
},
|
|
532
|
-
removeNotchWidthProperty: function() {
|
|
533
|
-
return t.notchElement_.style.removeProperty("width");
|
|
534
|
-
}
|
|
535
|
-
};
|
|
536
|
-
return new On(n);
|
|
537
|
-
}, e;
|
|
538
|
-
}(X)
|
|
539
|
-
);
|
|
540
|
-
const An = {
|
|
541
|
-
/**
|
|
542
|
-
* Content to be rendered inside the label. Expects a string, though accepts any valid markup.
|
|
543
|
-
*
|
|
544
|
-
* Defaults to **null**.
|
|
545
|
-
*/
|
|
546
|
-
children: a.node.isRequired,
|
|
547
|
-
/**
|
|
548
|
-
* The css class name to be passed through to the component markup.
|
|
549
|
-
*
|
|
550
|
-
* Defaults to **undefined**.
|
|
551
|
-
*/
|
|
552
|
-
className: a.string,
|
|
553
|
-
/**
|
|
554
|
-
* The label will appear in the floating state.
|
|
555
|
-
*
|
|
556
|
-
* Defaults to **false**.
|
|
557
|
-
*/
|
|
558
|
-
float: a.bool,
|
|
559
|
-
/**
|
|
560
|
-
* The id of the component to trigger on active
|
|
561
|
-
*
|
|
562
|
-
* Defaults to **empty string**.
|
|
563
|
-
*/
|
|
564
|
-
htmlFor: a.string,
|
|
565
|
-
/**
|
|
566
|
-
* The label will shake briefly when set.
|
|
567
|
-
*
|
|
568
|
-
* Defaults to **false**.
|
|
569
|
-
*/
|
|
570
|
-
shake: a.bool
|
|
571
|
-
}, Nn = {
|
|
572
|
-
children: null,
|
|
573
|
-
className: void 0,
|
|
574
|
-
float: !1,
|
|
575
|
-
htmlFor: "",
|
|
576
|
-
shake: !1
|
|
577
|
-
}, lt = /* @__PURE__ */ M((i, e) => {
|
|
578
|
-
const {
|
|
579
|
-
children: t,
|
|
580
|
-
htmlFor: n = "",
|
|
581
|
-
shake: r = !1,
|
|
582
|
-
float: o = !1,
|
|
583
|
-
className: l,
|
|
584
|
-
style: s,
|
|
585
|
-
...u
|
|
586
|
-
} = i, c = v(), h = t, T = v();
|
|
587
|
-
return K(e, () => T.current, []), g(() => (c.current = Pe.attachTo(T.current), () => {
|
|
588
|
-
c.current.destroy();
|
|
589
|
-
})), g(() => {
|
|
590
|
-
c.current.float(o);
|
|
591
|
-
}, [o]), /* @__PURE__ */ d.createElement("label", S({
|
|
592
|
-
ref: T,
|
|
593
|
-
htmlFor: n,
|
|
594
|
-
className: L("lmnt", "mdc-floating-label", o && "mdc-floating-label--float-above", r && "mdc-floating-label--shake", l)
|
|
595
|
-
}, u, {
|
|
596
|
-
style: s
|
|
597
|
-
}), h);
|
|
598
|
-
});
|
|
599
|
-
lt.displayName = "FloatingLabel";
|
|
600
|
-
lt.propTypes = An;
|
|
601
|
-
lt.defaultProps = Nn;
|
|
602
|
-
const Rn = {
|
|
603
|
-
/**
|
|
604
|
-
* Content to be rendered inside the notched outline. Accepts a string.
|
|
605
|
-
*
|
|
606
|
-
* Defaults to **null**.
|
|
607
|
-
*/
|
|
608
|
-
children: a.node,
|
|
609
|
-
/**
|
|
610
|
-
* The css class name to be passed through to the component markup.
|
|
611
|
-
*
|
|
612
|
-
* Defaults to **undefined**.
|
|
613
|
-
*/
|
|
614
|
-
className: a.string,
|
|
615
|
-
/**
|
|
616
|
-
* Determines if the notch is opened or closed.
|
|
617
|
-
*
|
|
618
|
-
* Defaults to **undefined**.
|
|
619
|
-
*/
|
|
620
|
-
closed: a.bool,
|
|
621
|
-
/**
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
* Defaults to **null**.
|
|
625
|
-
*/
|
|
626
|
-
width: a.number
|
|
627
|
-
}, Pn = {
|
|
628
|
-
children: null,
|
|
629
|
-
className: void 0,
|
|
630
|
-
closed: void 0,
|
|
631
|
-
width: null
|
|
632
|
-
}, vt = /* @__PURE__ */ M((i, e) => {
|
|
633
|
-
const {
|
|
634
|
-
closed: t,
|
|
635
|
-
className: n,
|
|
636
|
-
children: r,
|
|
637
|
-
width: o,
|
|
638
|
-
...l
|
|
639
|
-
} = i, s = v(), u = v();
|
|
640
|
-
return K(e, () => s.current, []), g(() => (u.current = He.attachTo(s.current), () => {
|
|
641
|
-
u.current.destroy();
|
|
642
|
-
}), []), g(() => {
|
|
643
|
-
t !== void 0 && (t ? u.current.closeNotch() : u.current.notch());
|
|
644
|
-
}, [t]), g(() => {
|
|
645
|
-
o ? u.current.foundation.adapter.setNotchWidthProperty(o) : u.current.foundation.adapter.removeNotchWidthProperty();
|
|
646
|
-
}, [o]), /* @__PURE__ */ d.createElement("div", S({
|
|
647
|
-
className: L("lmnt", "mdc-notched-outline", n),
|
|
648
|
-
ref: s
|
|
649
|
-
}, l), /* @__PURE__ */ d.createElement("div", {
|
|
650
|
-
className: "mdc-notched-outline__leading"
|
|
651
|
-
}), /* @__PURE__ */ d.createElement("div", {
|
|
652
|
-
className: "mdc-notched-outline__notch"
|
|
653
|
-
}, r), /* @__PURE__ */ d.createElement("div", {
|
|
654
|
-
className: "mdc-notched-outline__trailing"
|
|
655
|
-
}));
|
|
656
|
-
});
|
|
657
|
-
vt.displayName = "NotchedOutline";
|
|
658
|
-
vt.propTypes = Rn;
|
|
659
|
-
vt.defaultProps = Pn;
|
|
660
|
-
const Fn = {
|
|
661
|
-
/**
|
|
662
|
-
* Accepts any valid markup. This will be rendered before any value set with the `text` prop. For most use-cases use `text`.
|
|
663
|
-
*
|
|
664
|
-
* Defaults to **undefined**.
|
|
665
|
-
*/
|
|
666
|
-
children: a.node.isRequired,
|
|
667
|
-
/**
|
|
668
|
-
* The css class name to be passed through to the component markup.
|
|
669
|
-
*
|
|
670
|
-
* Defaults to **undefined**.
|
|
671
|
-
*/
|
|
672
|
-
className: a.string,
|
|
673
|
-
/**
|
|
674
|
-
* Container display type, inline or block.
|
|
675
|
-
*
|
|
676
|
-
* Defaults to **'inline'**.
|
|
677
|
-
*/
|
|
678
|
-
containerType: a.oneOf(["inline", "block"]),
|
|
679
|
-
/**
|
|
680
|
-
* Whether or not the tooltip is hoisted to render outside of the parent element. Useful for when the tooltip needs to render in a parent with `overflow: hidden` ie. a table cell.
|
|
681
|
-
*
|
|
682
|
-
* Defaults to **false**.
|
|
683
|
-
*/
|
|
684
|
-
hoisted: a.bool,
|
|
685
|
-
/**
|
|
686
|
-
* Randomly generated id. May be overwritten.
|
|
687
|
-
*
|
|
688
|
-
* Defaults to **undefined**.
|
|
689
|
-
*/
|
|
690
|
-
id: a.string,
|
|
691
|
-
/**
|
|
692
|
-
* Fired when the trigger is interacted with.
|
|
693
|
-
*
|
|
694
|
-
* Defaults to **null**.
|
|
695
|
-
*/
|
|
696
|
-
onClick: a.func,
|
|
697
|
-
/**
|
|
698
|
-
* The DOM element the children will render in. If a string is sent it should be a valid DOM query selector. If one is not sent, Portal will default to `document.body`.
|
|
699
|
-
*
|
|
700
|
-
* Defaults to **'document.body'**.
|
|
701
|
-
*/
|
|
702
|
-
portalContainer: a.oneOfType([a.string, a.node]),
|
|
703
|
-
/**
|
|
704
|
-
* Position of tooltip. Options include: 'top', 'left', 'right', and 'bottom'(default).
|
|
705
|
-
*
|
|
706
|
-
* Defaults to **'bottom'**.
|
|
707
|
-
*/
|
|
708
|
-
position: a.oneOf(["bottom", "top", "left", "right"]),
|
|
709
|
-
/**
|
|
710
|
-
* string
|
|
711
|
-
*
|
|
712
|
-
* Defaults to **null**.
|
|
713
|
-
*/
|
|
714
|
-
text: a.oneOfType([a.string, a.func, a.node]).isRequired,
|
|
715
|
-
/**
|
|
716
|
-
* Custom properties to apply to the hovering element.
|
|
717
|
-
*
|
|
718
|
-
* Defaults to **null**.
|
|
719
|
-
*/
|
|
720
|
-
tooltipProps: a.object,
|
|
721
|
-
/**
|
|
722
|
-
* Custom properties to apply to the trigger element.
|
|
723
|
-
*
|
|
724
|
-
* Defaults to **null**.
|
|
725
|
-
*/
|
|
726
|
-
triggerProps: a.object
|
|
727
|
-
}, Hn = {
|
|
728
|
-
children: void 0,
|
|
729
|
-
className: void 0,
|
|
730
|
-
containerType: "inline",
|
|
731
|
-
hoisted: !1,
|
|
732
|
-
id: void 0,
|
|
733
|
-
portalContainer: "document.body",
|
|
734
|
-
position: "bottom",
|
|
735
|
-
text: null,
|
|
736
|
-
tooltipProps: null,
|
|
737
|
-
triggerProps: null
|
|
738
|
-
}, Sn = {
|
|
739
|
-
/**
|
|
740
|
-
* The css class name to be passed through to the component markup.
|
|
741
|
-
*
|
|
742
|
-
* Defaults to **undefined**.
|
|
743
|
-
*/
|
|
744
|
-
className: a.string,
|
|
745
|
-
/**
|
|
746
|
-
* Whether or not the tooltip is hoisted to render outside of the parent element. Useful for when the tooltip needs to render in a parent with `overflow: hidden` ie. a table cell.
|
|
747
|
-
*
|
|
748
|
-
* Defaults to **false**.
|
|
749
|
-
*/
|
|
750
|
-
hoisted: a.bool,
|
|
751
|
-
/**
|
|
752
|
-
* Randomly generated id. May be overwritten.
|
|
753
|
-
*
|
|
754
|
-
* Defaults to **undefined**.
|
|
755
|
-
*/
|
|
756
|
-
id: a.string,
|
|
757
|
-
/**
|
|
758
|
-
* The DOM element the children will render in. If a string is sent it should be a valid DOM query selector. If one is not sent, Portal will default to `document.body`.
|
|
759
|
-
*
|
|
760
|
-
* Defaults to **'document.body'**.
|
|
761
|
-
*/
|
|
762
|
-
portalContainer: a.oneOfType([a.string, a.node]),
|
|
763
|
-
/**
|
|
764
|
-
* The text to be rendered inside of the Tooltip.
|
|
765
|
-
*
|
|
766
|
-
* Defaults to **null**.
|
|
767
|
-
*/
|
|
768
|
-
text: a.oneOfType([a.string, a.func, a.node]).isRequired
|
|
769
|
-
}, Vn = {
|
|
770
|
-
className: void 0,
|
|
771
|
-
hoisted: !1,
|
|
772
|
-
id: void 0,
|
|
773
|
-
portalContainer: "document.body",
|
|
774
|
-
text: null
|
|
775
|
-
}, ut = /* @__PURE__ */ M((i, e) => {
|
|
776
|
-
const {
|
|
777
|
-
className: t,
|
|
778
|
-
hoisted: n,
|
|
779
|
-
id: r,
|
|
780
|
-
portalContainer: o,
|
|
781
|
-
text: l,
|
|
782
|
-
...s
|
|
783
|
-
} = i, [u] = j(() => r || st()), c = v();
|
|
784
|
-
K(e, () => c.current, []);
|
|
785
|
-
const h = Wt(() => L(["lmnt", t, "lmnt-tooltip__text-content", "mdc-typography--caption"]), [t]);
|
|
786
|
-
return /* @__PURE__ */ d.createElement(mn, {
|
|
787
|
-
disabled: !n,
|
|
788
|
-
container: o
|
|
789
|
-
}, /* @__PURE__ */ d.createElement("div", S({
|
|
790
|
-
role: "tooltip",
|
|
791
|
-
id: u,
|
|
792
|
-
className: h
|
|
793
|
-
}, s, {
|
|
794
|
-
ref: c
|
|
795
|
-
}), l));
|
|
796
|
-
});
|
|
797
|
-
ut.displayName = "TooltipText";
|
|
798
|
-
ut.propTypes = Sn;
|
|
799
|
-
ut.defaultProps = Vn;
|
|
800
|
-
const Xt = /* @__PURE__ */ M((i, e) => {
|
|
801
|
-
const {
|
|
802
|
-
children: t,
|
|
803
|
-
className: n,
|
|
804
|
-
containerType: r,
|
|
805
|
-
hoisted: o,
|
|
806
|
-
id: l,
|
|
807
|
-
onClick: s,
|
|
808
|
-
portalContainer: u,
|
|
809
|
-
position: c,
|
|
810
|
-
text: h,
|
|
811
|
-
tooltipProps: T,
|
|
812
|
-
triggerProps: nt,
|
|
813
|
-
...R
|
|
814
|
-
} = i, k = v(), m = v(), P = v();
|
|
815
|
-
K(e, () => m.current, []);
|
|
816
|
-
const [y] = j(() => l || st()), B = G(() => {
|
|
817
|
-
s == null || s();
|
|
818
|
-
}, [s]), Q = G((p) => {
|
|
819
|
-
p.key === "Enter" && (s == null || s());
|
|
820
|
-
}, [s]);
|
|
821
|
-
an(() => {
|
|
822
|
-
const p = [{
|
|
823
|
-
name: "flip",
|
|
824
|
-
options: {
|
|
825
|
-
enabled: !0,
|
|
826
|
-
padding: {
|
|
827
|
-
bottom: 32,
|
|
828
|
-
top: 32
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}];
|
|
832
|
-
return o ? p.push({
|
|
833
|
-
name: "offset",
|
|
834
|
-
options: {
|
|
835
|
-
offset: [0, 6]
|
|
836
|
-
}
|
|
837
|
-
}) : p.push({
|
|
838
|
-
name: "offset",
|
|
839
|
-
options: {
|
|
840
|
-
offset: [0, 12]
|
|
841
|
-
}
|
|
842
|
-
}), k.current && m.current && (P.current = Ae(k.current, m.current, {
|
|
843
|
-
placement: c,
|
|
844
|
-
modifiers: p
|
|
845
|
-
})), () => {
|
|
846
|
-
var E;
|
|
847
|
-
(E = P.current) === null || E === void 0 || E.destroy();
|
|
848
|
-
};
|
|
849
|
-
}, [c, o]);
|
|
850
|
-
const f = G(() => {
|
|
851
|
-
var p, E, V;
|
|
852
|
-
(p = m.current) === null || p === void 0 || p.setAttribute("data-show", ""), (E = P.current) === null || E === void 0 || E.setOptions((ct) => ({
|
|
853
|
-
...ct,
|
|
854
|
-
modifiers: [...ct.modifiers, {
|
|
855
|
-
name: "eventListeners",
|
|
856
|
-
enabled: !0
|
|
857
|
-
}]
|
|
858
|
-
})), (V = P.current) === null || V === void 0 || V.update();
|
|
859
|
-
}, []), Y = G(() => {
|
|
860
|
-
var p, E;
|
|
861
|
-
(p = m.current) === null || p === void 0 || p.removeAttribute("data-show"), (E = P.current) === null || E === void 0 || E.setOptions((V) => ({
|
|
862
|
-
...V,
|
|
863
|
-
modifiers: [...V.modifiers, {
|
|
864
|
-
name: "eventListeners",
|
|
865
|
-
enabled: !1
|
|
866
|
-
}]
|
|
867
|
-
}));
|
|
868
|
-
}, []), dt = G(() => {
|
|
869
|
-
const p = t;
|
|
870
|
-
return p.type ? p.type === ae : p === ae;
|
|
871
|
-
}, [t]);
|
|
872
|
-
g(() => {
|
|
873
|
-
const p = `Tooltips should only include short text for additional context and should not exceed three lines visually. (Toolitip ID ${y}).`;
|
|
874
|
-
h && h.length > 100 && sn(p);
|
|
875
|
-
}, [h, y]);
|
|
876
|
-
const U = Wt(
|
|
877
|
-
// eslint-disable-next-line react/no-unstable-nested-components
|
|
878
|
-
() => () => t ? typeof t == "string" || dt(t) ? /* @__PURE__ */ d.createElement("span", {
|
|
879
|
-
"aria-describedby": y
|
|
880
|
-
}, t) : $t(t, {
|
|
881
|
-
"aria-describedby": y
|
|
882
|
-
}) : null,
|
|
883
|
-
[t, y, dt]
|
|
884
|
-
), rt = s ? {
|
|
885
|
-
tabIndex: 0,
|
|
886
|
-
role: s ? "button" : "note",
|
|
887
|
-
onKeyPress: Q,
|
|
888
|
-
onClick: B
|
|
889
|
-
} : {};
|
|
890
|
-
return /* @__PURE__ */ d.createElement("span", S({
|
|
891
|
-
className: L("lmnt lmnt-tooltip", r === "block" ? "lmnt-tooltip--block" : "lmnt-tooltip--inline")
|
|
892
|
-
}, rt, R), /* @__PURE__ */ d.createElement("span", S({
|
|
893
|
-
className: L("lmnt-tooltip__content", r === "block" ? "lmnt-tooltip--block" : "lmnt-tooltip--inline")
|
|
894
|
-
}, nt, {
|
|
895
|
-
ref: k,
|
|
896
|
-
onMouseEnter: f,
|
|
897
|
-
onFocus: f,
|
|
898
|
-
onMouseLeave: Y,
|
|
899
|
-
onBlur: Y
|
|
900
|
-
}), /* @__PURE__ */ d.createElement(U, null)), h && /* @__PURE__ */ d.createElement(ut, S({
|
|
901
|
-
hoisted: o,
|
|
902
|
-
portalContainer: u,
|
|
903
|
-
role: "tooltip",
|
|
904
|
-
id: y,
|
|
905
|
-
className: n
|
|
906
|
-
}, T, {
|
|
907
|
-
ref: m,
|
|
908
|
-
text: h
|
|
909
|
-
})));
|
|
910
|
-
});
|
|
911
|
-
Xt.displayName = "Tooltip";
|
|
912
|
-
Xt.propTypes = Fn;
|
|
913
|
-
Xt.defaultProps = Hn;
|
|
1
|
+
import { e as kt, D as Fn, c as Rt, I as ot, h as B, p as y, f as It, r as sn, L as cn, a as xt, j as o, m as q, b as Pn, g as Sn, i as Et, A as Vn, k as jn, C as Hn, l as ve, F as wn, U as dn, s as Dn, B as ge, T as $n, n as Un, t as fn, x as Bn, o as pn, v as hn, S as Mn, $ as kn, M as qn, w as Gn, z as _n, E as Xn, N as bn } from "./useTranslation-B_ODv8uN.js";
|
|
2
|
+
import b, { forwardRef as me, useState as ft, useRef as U, useMemo as Wn, useEffect as R, useImperativeHandle as vn, useCallback as Ce } from "react";
|
|
3
|
+
import { k as zn, H as Le, R as Kn, a as Yn, c as Jn, A as gn, d as Qn, E as Zn, x as mn, b as tr, e as er, O as nr, F as rr, P as yn, I as In } from "./index.es-U5-b20Gv-Bta-iNSF.js";
|
|
4
|
+
import { p as Ot, U as Ae, _ as ir, O as ar } from "./component-DsB0poTj-BZ89hFvY.js";
|
|
914
5
|
/**
|
|
915
6
|
* @license
|
|
916
7
|
* Copyright 2018 Google Inc.
|
|
@@ -933,7 +24,7 @@ Xt.defaultProps = Hn;
|
|
|
933
24
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
934
25
|
* THE SOFTWARE.
|
|
935
26
|
*/
|
|
936
|
-
var
|
|
27
|
+
var at = {
|
|
937
28
|
LINE_RIPPLE_ACTIVE: "mdc-line-ripple--active",
|
|
938
29
|
LINE_RIPPLE_DEACTIVATING: "mdc-line-ripple--deactivating"
|
|
939
30
|
};
|
|
@@ -959,19 +50,19 @@ var W = {
|
|
|
959
50
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
960
51
|
* THE SOFTWARE.
|
|
961
52
|
*/
|
|
962
|
-
var
|
|
53
|
+
var or = (
|
|
963
54
|
/** @class */
|
|
964
55
|
function(i) {
|
|
965
|
-
|
|
56
|
+
B(e, i);
|
|
966
57
|
function e(t) {
|
|
967
|
-
var n = i.call(this,
|
|
58
|
+
var n = i.call(this, y(y({}, e.defaultAdapter), t)) || this;
|
|
968
59
|
return n.transitionEndHandler_ = function(r) {
|
|
969
60
|
return n.handleTransitionEnd(r);
|
|
970
61
|
}, n;
|
|
971
62
|
}
|
|
972
63
|
return Object.defineProperty(e, "cssClasses", {
|
|
973
64
|
get: function() {
|
|
974
|
-
return
|
|
65
|
+
return at;
|
|
975
66
|
},
|
|
976
67
|
enumerable: !1,
|
|
977
68
|
configurable: !0
|
|
@@ -1003,16 +94,16 @@ var Dn = (
|
|
|
1003
94
|
}, e.prototype.destroy = function() {
|
|
1004
95
|
this.adapter.deregisterEventHandler("transitionend", this.transitionEndHandler_);
|
|
1005
96
|
}, e.prototype.activate = function() {
|
|
1006
|
-
this.adapter.removeClass(
|
|
97
|
+
this.adapter.removeClass(at.LINE_RIPPLE_DEACTIVATING), this.adapter.addClass(at.LINE_RIPPLE_ACTIVE);
|
|
1007
98
|
}, e.prototype.setRippleCenter = function(t) {
|
|
1008
99
|
this.adapter.setStyle("transform-origin", t + "px center");
|
|
1009
100
|
}, e.prototype.deactivate = function() {
|
|
1010
|
-
this.adapter.addClass(
|
|
101
|
+
this.adapter.addClass(at.LINE_RIPPLE_DEACTIVATING);
|
|
1011
102
|
}, e.prototype.handleTransitionEnd = function(t) {
|
|
1012
|
-
var n = this.adapter.hasClass(
|
|
1013
|
-
t.propertyName === "opacity" && n && (this.adapter.removeClass(
|
|
103
|
+
var n = this.adapter.hasClass(at.LINE_RIPPLE_DEACTIVATING);
|
|
104
|
+
t.propertyName === "opacity" && n && (this.adapter.removeClass(at.LINE_RIPPLE_ACTIVE), this.adapter.removeClass(at.LINE_RIPPLE_DEACTIVATING));
|
|
1014
105
|
}, e;
|
|
1015
|
-
}(
|
|
106
|
+
}(xt)
|
|
1016
107
|
);
|
|
1017
108
|
/**
|
|
1018
109
|
* @license
|
|
@@ -1036,10 +127,10 @@ var Dn = (
|
|
|
1036
127
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1037
128
|
* THE SOFTWARE.
|
|
1038
129
|
*/
|
|
1039
|
-
var
|
|
130
|
+
var xn = (
|
|
1040
131
|
/** @class */
|
|
1041
132
|
function(i) {
|
|
1042
|
-
|
|
133
|
+
B(e, i);
|
|
1043
134
|
function e() {
|
|
1044
135
|
return i !== null && i.apply(this, arguments) || this;
|
|
1045
136
|
}
|
|
@@ -1062,19 +153,19 @@ var Se = (
|
|
|
1062
153
|
hasClass: function(r) {
|
|
1063
154
|
return t.root.classList.contains(r);
|
|
1064
155
|
},
|
|
1065
|
-
setStyle: function(r,
|
|
1066
|
-
return t.root.style.setProperty(r,
|
|
156
|
+
setStyle: function(r, a) {
|
|
157
|
+
return t.root.style.setProperty(r, a);
|
|
1067
158
|
},
|
|
1068
|
-
registerEventHandler: function(r,
|
|
1069
|
-
return t.listen(r,
|
|
159
|
+
registerEventHandler: function(r, a) {
|
|
160
|
+
return t.listen(r, a);
|
|
1070
161
|
},
|
|
1071
|
-
deregisterEventHandler: function(r,
|
|
1072
|
-
return t.unlisten(r,
|
|
162
|
+
deregisterEventHandler: function(r, a) {
|
|
163
|
+
return t.unlisten(r, a);
|
|
1073
164
|
}
|
|
1074
165
|
};
|
|
1075
|
-
return new
|
|
166
|
+
return new or(n);
|
|
1076
167
|
}, e;
|
|
1077
|
-
}(
|
|
168
|
+
}(It)
|
|
1078
169
|
);
|
|
1079
170
|
/**
|
|
1080
171
|
* @license
|
|
@@ -1098,10 +189,10 @@ var Se = (
|
|
|
1098
189
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1099
190
|
* THE SOFTWARE.
|
|
1100
191
|
*/
|
|
1101
|
-
var
|
|
192
|
+
var En = {
|
|
1102
193
|
ROOT: "mdc-text-field-character-counter"
|
|
1103
|
-
},
|
|
1104
|
-
ROOT_SELECTOR: "." +
|
|
194
|
+
}, ur = {
|
|
195
|
+
ROOT_SELECTOR: "." + En.ROOT
|
|
1105
196
|
};
|
|
1106
197
|
/**
|
|
1107
198
|
* @license
|
|
@@ -1125,22 +216,22 @@ var Ve = {
|
|
|
1125
216
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1126
217
|
* THE SOFTWARE.
|
|
1127
218
|
*/
|
|
1128
|
-
var
|
|
219
|
+
var Tn = (
|
|
1129
220
|
/** @class */
|
|
1130
221
|
function(i) {
|
|
1131
|
-
|
|
222
|
+
B(e, i);
|
|
1132
223
|
function e(t) {
|
|
1133
|
-
return i.call(this,
|
|
224
|
+
return i.call(this, y(y({}, e.defaultAdapter), t)) || this;
|
|
1134
225
|
}
|
|
1135
226
|
return Object.defineProperty(e, "cssClasses", {
|
|
1136
227
|
get: function() {
|
|
1137
|
-
return
|
|
228
|
+
return En;
|
|
1138
229
|
},
|
|
1139
230
|
enumerable: !1,
|
|
1140
231
|
configurable: !0
|
|
1141
232
|
}), Object.defineProperty(e, "strings", {
|
|
1142
233
|
get: function() {
|
|
1143
|
-
return
|
|
234
|
+
return ur;
|
|
1144
235
|
},
|
|
1145
236
|
enumerable: !1,
|
|
1146
237
|
configurable: !0
|
|
@@ -1159,7 +250,7 @@ var De = (
|
|
|
1159
250
|
}), e.prototype.setCounterValue = function(t, n) {
|
|
1160
251
|
t = Math.min(t, n), this.adapter.setContent(t + " / " + n);
|
|
1161
252
|
}, e;
|
|
1162
|
-
}(
|
|
253
|
+
}(xt)
|
|
1163
254
|
);
|
|
1164
255
|
/**
|
|
1165
256
|
* @license
|
|
@@ -1183,10 +274,10 @@ var De = (
|
|
|
1183
274
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1184
275
|
* THE SOFTWARE.
|
|
1185
276
|
*/
|
|
1186
|
-
var
|
|
277
|
+
var lr = (
|
|
1187
278
|
/** @class */
|
|
1188
279
|
function(i) {
|
|
1189
|
-
|
|
280
|
+
B(e, i);
|
|
1190
281
|
function e() {
|
|
1191
282
|
return i !== null && i.apply(this, arguments) || this;
|
|
1192
283
|
}
|
|
@@ -1205,9 +296,9 @@ var jn = (
|
|
|
1205
296
|
t.root.textContent = r;
|
|
1206
297
|
}
|
|
1207
298
|
};
|
|
1208
|
-
return new
|
|
299
|
+
return new Tn(n);
|
|
1209
300
|
}, e;
|
|
1210
|
-
}(
|
|
301
|
+
}(It)
|
|
1211
302
|
);
|
|
1212
303
|
/**
|
|
1213
304
|
* @license
|
|
@@ -1231,7 +322,7 @@ var jn = (
|
|
|
1231
322
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1232
323
|
* THE SOFTWARE.
|
|
1233
324
|
*/
|
|
1234
|
-
var
|
|
325
|
+
var H = {
|
|
1235
326
|
ARIA_CONTROLS: "aria-controls",
|
|
1236
327
|
ARIA_DESCRIBEDBY: "aria-describedby",
|
|
1237
328
|
INPUT_SELECTOR: ".mdc-text-field__input",
|
|
@@ -1242,7 +333,7 @@ var N = {
|
|
|
1242
333
|
PREFIX_SELECTOR: ".mdc-text-field__affix--prefix",
|
|
1243
334
|
SUFFIX_SELECTOR: ".mdc-text-field__affix--suffix",
|
|
1244
335
|
TRAILING_ICON_SELECTOR: ".mdc-text-field__icon--trailing"
|
|
1245
|
-
},
|
|
336
|
+
}, Nt = {
|
|
1246
337
|
DISABLED: "mdc-text-field--disabled",
|
|
1247
338
|
FOCUSED: "mdc-text-field--focused",
|
|
1248
339
|
HELPER_LINE: "mdc-text-field-helper-line",
|
|
@@ -1254,9 +345,9 @@ var N = {
|
|
|
1254
345
|
TEXTAREA: "mdc-text-field--textarea",
|
|
1255
346
|
WITH_LEADING_ICON: "mdc-text-field--with-leading-icon",
|
|
1256
347
|
WITH_TRAILING_ICON: "mdc-text-field--with-trailing-icon"
|
|
1257
|
-
},
|
|
348
|
+
}, Oe = {
|
|
1258
349
|
LABEL_SCALE: 0.75
|
|
1259
|
-
},
|
|
350
|
+
}, sr = [
|
|
1260
351
|
"pattern",
|
|
1261
352
|
"min",
|
|
1262
353
|
"max",
|
|
@@ -1264,7 +355,7 @@ var N = {
|
|
|
1264
355
|
"step",
|
|
1265
356
|
"minlength",
|
|
1266
357
|
"maxlength"
|
|
1267
|
-
],
|
|
358
|
+
], cr = [
|
|
1268
359
|
"color",
|
|
1269
360
|
"date",
|
|
1270
361
|
"datetime-local",
|
|
@@ -1295,49 +386,49 @@ var N = {
|
|
|
1295
386
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1296
387
|
* THE SOFTWARE.
|
|
1297
388
|
*/
|
|
1298
|
-
var
|
|
389
|
+
var Re = ["mousedown", "touchstart"], Ne = ["click", "keydown"], dr = (
|
|
1299
390
|
/** @class */
|
|
1300
391
|
function(i) {
|
|
1301
|
-
|
|
392
|
+
B(e, i);
|
|
1302
393
|
function e(t, n) {
|
|
1303
394
|
n === void 0 && (n = {});
|
|
1304
|
-
var r = i.call(this,
|
|
395
|
+
var r = i.call(this, y(y({}, e.defaultAdapter), t)) || this;
|
|
1305
396
|
return r.isFocused_ = !1, r.receivedUserInput_ = !1, r.isValid_ = !0, r.useNativeValidation_ = !0, r.validateOnValueChange_ = !0, r.helperText_ = n.helperText, r.characterCounter_ = n.characterCounter, r.leadingIcon_ = n.leadingIcon, r.trailingIcon_ = n.trailingIcon, r.inputFocusHandler_ = function() {
|
|
1306
397
|
return r.activateFocus();
|
|
1307
398
|
}, r.inputBlurHandler_ = function() {
|
|
1308
399
|
return r.deactivateFocus();
|
|
1309
400
|
}, r.inputInputHandler_ = function() {
|
|
1310
401
|
return r.handleInput();
|
|
1311
|
-
}, r.setPointerXOffset_ = function(
|
|
1312
|
-
return r.setTransformOrigin(
|
|
402
|
+
}, r.setPointerXOffset_ = function(a) {
|
|
403
|
+
return r.setTransformOrigin(a);
|
|
1313
404
|
}, r.textFieldInteractionHandler_ = function() {
|
|
1314
405
|
return r.handleTextFieldInteraction();
|
|
1315
|
-
}, r.validationAttributeChangeHandler_ = function(
|
|
1316
|
-
return r.handleValidationAttributeChange(
|
|
406
|
+
}, r.validationAttributeChangeHandler_ = function(a) {
|
|
407
|
+
return r.handleValidationAttributeChange(a);
|
|
1317
408
|
}, r;
|
|
1318
409
|
}
|
|
1319
410
|
return Object.defineProperty(e, "cssClasses", {
|
|
1320
411
|
get: function() {
|
|
1321
|
-
return
|
|
412
|
+
return Nt;
|
|
1322
413
|
},
|
|
1323
414
|
enumerable: !1,
|
|
1324
415
|
configurable: !0
|
|
1325
416
|
}), Object.defineProperty(e, "strings", {
|
|
1326
417
|
get: function() {
|
|
1327
|
-
return
|
|
418
|
+
return H;
|
|
1328
419
|
},
|
|
1329
420
|
enumerable: !1,
|
|
1330
421
|
configurable: !0
|
|
1331
422
|
}), Object.defineProperty(e, "numbers", {
|
|
1332
423
|
get: function() {
|
|
1333
|
-
return
|
|
424
|
+
return Oe;
|
|
1334
425
|
},
|
|
1335
426
|
enumerable: !1,
|
|
1336
427
|
configurable: !0
|
|
1337
428
|
}), Object.defineProperty(e.prototype, "shouldAlwaysFloat_", {
|
|
1338
429
|
get: function() {
|
|
1339
430
|
var t = this.getNativeInput_().type;
|
|
1340
|
-
return
|
|
431
|
+
return cr.indexOf(t) >= 0;
|
|
1341
432
|
},
|
|
1342
433
|
enumerable: !1,
|
|
1343
434
|
configurable: !0
|
|
@@ -1422,16 +513,16 @@ var Ie = ["mousedown", "touchstart"], Te = ["click", "keydown"], Mn = (
|
|
|
1422
513
|
configurable: !0
|
|
1423
514
|
}), e.prototype.init = function() {
|
|
1424
515
|
var t = this;
|
|
1425
|
-
this.adapter.hasLabel() && this.getNativeInput_().required && this.adapter.setLabelRequired(!0), this.adapter.isFocused() ? this.inputFocusHandler_() : this.adapter.hasLabel() && this.shouldFloat && (this.notchOutline(!0), this.adapter.floatLabel(!0), this.styleFloating_(!0)), this.adapter.registerInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.registerInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.registerInputInteractionHandler("input", this.inputInputHandler_),
|
|
516
|
+
this.adapter.hasLabel() && this.getNativeInput_().required && this.adapter.setLabelRequired(!0), this.adapter.isFocused() ? this.inputFocusHandler_() : this.adapter.hasLabel() && this.shouldFloat && (this.notchOutline(!0), this.adapter.floatLabel(!0), this.styleFloating_(!0)), this.adapter.registerInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.registerInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.registerInputInteractionHandler("input", this.inputInputHandler_), Re.forEach(function(n) {
|
|
1426
517
|
t.adapter.registerInputInteractionHandler(n, t.setPointerXOffset_);
|
|
1427
|
-
}),
|
|
518
|
+
}), Ne.forEach(function(n) {
|
|
1428
519
|
t.adapter.registerTextFieldInteractionHandler(n, t.textFieldInteractionHandler_);
|
|
1429
520
|
}), this.validationObserver_ = this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_), this.setCharacterCounter_(this.getValue().length);
|
|
1430
521
|
}, e.prototype.destroy = function() {
|
|
1431
522
|
var t = this;
|
|
1432
|
-
this.adapter.deregisterInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.deregisterInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.deregisterInputInteractionHandler("input", this.inputInputHandler_),
|
|
523
|
+
this.adapter.deregisterInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.deregisterInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.deregisterInputInteractionHandler("input", this.inputInputHandler_), Re.forEach(function(n) {
|
|
1433
524
|
t.adapter.deregisterInputInteractionHandler(n, t.setPointerXOffset_);
|
|
1434
|
-
}),
|
|
525
|
+
}), Ne.forEach(function(n) {
|
|
1435
526
|
t.adapter.deregisterTextFieldInteractionHandler(n, t.textFieldInteractionHandler_);
|
|
1436
527
|
}), this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_);
|
|
1437
528
|
}, e.prototype.handleTextFieldInteraction = function() {
|
|
@@ -1440,12 +531,12 @@ var Ie = ["mousedown", "touchstart"], Te = ["click", "keydown"], Mn = (
|
|
|
1440
531
|
}, e.prototype.handleValidationAttributeChange = function(t) {
|
|
1441
532
|
var n = this;
|
|
1442
533
|
t.some(function(r) {
|
|
1443
|
-
return
|
|
534
|
+
return sr.indexOf(r) > -1 ? (n.styleValidity_(!0), n.adapter.setLabelRequired(n.getNativeInput_().required), !0) : !1;
|
|
1444
535
|
}), t.indexOf("maxlength") > -1 && this.setCharacterCounter_(this.getValue().length);
|
|
1445
536
|
}, e.prototype.notchOutline = function(t) {
|
|
1446
537
|
if (!(!this.adapter.hasOutline() || !this.adapter.hasLabel()))
|
|
1447
538
|
if (t) {
|
|
1448
|
-
var n = this.adapter.getLabelWidth() *
|
|
539
|
+
var n = this.adapter.getLabelWidth() * Oe.LABEL_SCALE;
|
|
1449
540
|
this.adapter.notchOutline(n);
|
|
1450
541
|
} else
|
|
1451
542
|
this.adapter.closeOutline();
|
|
@@ -1453,8 +544,8 @@ var Ie = ["mousedown", "touchstart"], Te = ["click", "keydown"], Mn = (
|
|
|
1453
544
|
this.isFocused_ = !0, this.styleFocused_(this.isFocused_), this.adapter.activateLineRipple(), this.adapter.hasLabel() && (this.notchOutline(this.shouldFloat), this.adapter.floatLabel(this.shouldFloat), this.styleFloating_(this.shouldFloat), this.adapter.shakeLabel(this.shouldShake)), this.helperText_ && (this.helperText_.isPersistent() || !this.helperText_.isValidation() || !this.isValid_) && this.helperText_.showToScreenReader();
|
|
1454
545
|
}, e.prototype.setTransformOrigin = function(t) {
|
|
1455
546
|
if (!(this.isDisabled() || this.adapter.hasOutline())) {
|
|
1456
|
-
var n = t.touches, r = n ? n[0] : t,
|
|
1457
|
-
this.adapter.setLineRippleTransformOrigin(
|
|
547
|
+
var n = t.touches, r = n ? n[0] : t, a = r.target.getBoundingClientRect(), u = r.clientX - a.left;
|
|
548
|
+
this.adapter.setLineRippleTransformOrigin(u);
|
|
1458
549
|
}
|
|
1459
550
|
}, e.prototype.handleInput = function() {
|
|
1460
551
|
this.autoCompleteFocus(), this.setCharacterCounter_(this.getValue().length);
|
|
@@ -1516,15 +607,15 @@ var Ie = ["mousedown", "touchstart"], Te = ["click", "keydown"], Mn = (
|
|
|
1516
607
|
var r = this.helperText_.isValidation();
|
|
1517
608
|
if (!r)
|
|
1518
609
|
return;
|
|
1519
|
-
var
|
|
1520
|
-
|
|
610
|
+
var a = this.helperText_.isVisible(), u = this.helperText_.getId();
|
|
611
|
+
a && u ? this.adapter.setInputAttr(H.ARIA_DESCRIBEDBY, u) : this.adapter.removeInputAttr(H.ARIA_DESCRIBEDBY);
|
|
1521
612
|
}
|
|
1522
613
|
}, e.prototype.styleFocused_ = function(t) {
|
|
1523
614
|
var n = e.cssClasses.FOCUSED;
|
|
1524
615
|
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
|
1525
616
|
}, e.prototype.styleDisabled_ = function(t) {
|
|
1526
|
-
var n = e.cssClasses, r = n.DISABLED,
|
|
1527
|
-
t ? (this.adapter.addClass(r), this.adapter.removeClass(
|
|
617
|
+
var n = e.cssClasses, r = n.DISABLED, a = n.INVALID;
|
|
618
|
+
t ? (this.adapter.addClass(r), this.adapter.removeClass(a)) : this.adapter.removeClass(r), this.leadingIcon_ && this.leadingIcon_.setDisabled(t), this.trailingIcon_ && this.trailingIcon_.setDisabled(t);
|
|
1528
619
|
}, e.prototype.styleFloating_ = function(t) {
|
|
1529
620
|
var n = e.cssClasses.LABEL_FLOATING;
|
|
1530
621
|
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
|
@@ -1542,7 +633,7 @@ var Ie = ["mousedown", "touchstart"], Te = ["click", "keydown"], Mn = (
|
|
|
1542
633
|
value: ""
|
|
1543
634
|
};
|
|
1544
635
|
}, e;
|
|
1545
|
-
}(
|
|
636
|
+
}(xt)
|
|
1546
637
|
);
|
|
1547
638
|
/**
|
|
1548
639
|
* @license
|
|
@@ -1566,14 +657,14 @@ var Ie = ["mousedown", "touchstart"], Te = ["click", "keydown"], Mn = (
|
|
|
1566
657
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1567
658
|
* THE SOFTWARE.
|
|
1568
659
|
*/
|
|
1569
|
-
var
|
|
660
|
+
var $ = {
|
|
1570
661
|
HELPER_TEXT_PERSISTENT: "mdc-text-field-helper-text--persistent",
|
|
1571
662
|
HELPER_TEXT_VALIDATION_MSG: "mdc-text-field-helper-text--validation-msg",
|
|
1572
663
|
ROOT: "mdc-text-field-helper-text"
|
|
1573
|
-
},
|
|
664
|
+
}, pt = {
|
|
1574
665
|
ARIA_HIDDEN: "aria-hidden",
|
|
1575
666
|
ROLE: "role",
|
|
1576
|
-
ROOT_SELECTOR: "." +
|
|
667
|
+
ROOT_SELECTOR: "." + $.ROOT
|
|
1577
668
|
};
|
|
1578
669
|
/**
|
|
1579
670
|
* @license
|
|
@@ -1597,22 +688,22 @@ var H = {
|
|
|
1597
688
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1598
689
|
* THE SOFTWARE.
|
|
1599
690
|
*/
|
|
1600
|
-
var
|
|
691
|
+
var Cn = (
|
|
1601
692
|
/** @class */
|
|
1602
693
|
function(i) {
|
|
1603
|
-
|
|
694
|
+
B(e, i);
|
|
1604
695
|
function e(t) {
|
|
1605
|
-
return i.call(this,
|
|
696
|
+
return i.call(this, y(y({}, e.defaultAdapter), t)) || this;
|
|
1606
697
|
}
|
|
1607
698
|
return Object.defineProperty(e, "cssClasses", {
|
|
1608
699
|
get: function() {
|
|
1609
|
-
return
|
|
700
|
+
return $;
|
|
1610
701
|
},
|
|
1611
702
|
enumerable: !1,
|
|
1612
703
|
configurable: !0
|
|
1613
704
|
}), Object.defineProperty(e, "strings", {
|
|
1614
705
|
get: function() {
|
|
1615
|
-
return
|
|
706
|
+
return pt;
|
|
1616
707
|
},
|
|
1617
708
|
enumerable: !1,
|
|
1618
709
|
configurable: !0
|
|
@@ -1645,26 +736,26 @@ var we = (
|
|
|
1645
736
|
}), e.prototype.getId = function() {
|
|
1646
737
|
return this.adapter.getAttr("id");
|
|
1647
738
|
}, e.prototype.isVisible = function() {
|
|
1648
|
-
return this.adapter.getAttr(
|
|
739
|
+
return this.adapter.getAttr(pt.ARIA_HIDDEN) !== "true";
|
|
1649
740
|
}, e.prototype.setContent = function(t) {
|
|
1650
741
|
this.adapter.setContent(t);
|
|
1651
742
|
}, e.prototype.isPersistent = function() {
|
|
1652
|
-
return this.adapter.hasClass(
|
|
743
|
+
return this.adapter.hasClass($.HELPER_TEXT_PERSISTENT);
|
|
1653
744
|
}, e.prototype.setPersistent = function(t) {
|
|
1654
|
-
t ? this.adapter.addClass(
|
|
745
|
+
t ? this.adapter.addClass($.HELPER_TEXT_PERSISTENT) : this.adapter.removeClass($.HELPER_TEXT_PERSISTENT);
|
|
1655
746
|
}, e.prototype.isValidation = function() {
|
|
1656
|
-
return this.adapter.hasClass(
|
|
747
|
+
return this.adapter.hasClass($.HELPER_TEXT_VALIDATION_MSG);
|
|
1657
748
|
}, e.prototype.setValidation = function(t) {
|
|
1658
|
-
t ? this.adapter.addClass(
|
|
749
|
+
t ? this.adapter.addClass($.HELPER_TEXT_VALIDATION_MSG) : this.adapter.removeClass($.HELPER_TEXT_VALIDATION_MSG);
|
|
1659
750
|
}, e.prototype.showToScreenReader = function() {
|
|
1660
|
-
this.adapter.removeAttr(
|
|
751
|
+
this.adapter.removeAttr(pt.ARIA_HIDDEN);
|
|
1661
752
|
}, e.prototype.setValidity = function(t) {
|
|
1662
|
-
var n = this.adapter.hasClass(
|
|
1663
|
-
|
|
753
|
+
var n = this.adapter.hasClass($.HELPER_TEXT_PERSISTENT), r = this.adapter.hasClass($.HELPER_TEXT_VALIDATION_MSG), a = r && !t;
|
|
754
|
+
a ? (this.showToScreenReader(), this.adapter.setAttr(pt.ROLE, "alert")) : this.adapter.removeAttr(pt.ROLE), !n && !a && this.hide_();
|
|
1664
755
|
}, e.prototype.hide_ = function() {
|
|
1665
|
-
this.adapter.setAttr(
|
|
756
|
+
this.adapter.setAttr(pt.ARIA_HIDDEN, "true");
|
|
1666
757
|
}, e;
|
|
1667
|
-
}(
|
|
758
|
+
}(xt)
|
|
1668
759
|
);
|
|
1669
760
|
/**
|
|
1670
761
|
* @license
|
|
@@ -1688,10 +779,10 @@ var we = (
|
|
|
1688
779
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1689
780
|
* THE SOFTWARE.
|
|
1690
781
|
*/
|
|
1691
|
-
var
|
|
782
|
+
var Ln = (
|
|
1692
783
|
/** @class */
|
|
1693
784
|
function(i) {
|
|
1694
|
-
|
|
785
|
+
B(e, i);
|
|
1695
786
|
function e() {
|
|
1696
787
|
return i !== null && i.apply(this, arguments) || this;
|
|
1697
788
|
}
|
|
@@ -1718,8 +809,8 @@ var je = (
|
|
|
1718
809
|
getAttr: function(r) {
|
|
1719
810
|
return t.root.getAttribute(r);
|
|
1720
811
|
},
|
|
1721
|
-
setAttr: function(r,
|
|
1722
|
-
return t.root.setAttribute(r,
|
|
812
|
+
setAttr: function(r, a) {
|
|
813
|
+
return t.root.setAttribute(r, a);
|
|
1723
814
|
},
|
|
1724
815
|
removeAttr: function(r) {
|
|
1725
816
|
return t.root.removeAttribute(r);
|
|
@@ -1728,9 +819,9 @@ var je = (
|
|
|
1728
819
|
t.root.textContent = r;
|
|
1729
820
|
}
|
|
1730
821
|
};
|
|
1731
|
-
return new
|
|
822
|
+
return new Cn(n);
|
|
1732
823
|
}, e;
|
|
1733
|
-
}(
|
|
824
|
+
}(It)
|
|
1734
825
|
);
|
|
1735
826
|
/**
|
|
1736
827
|
* @license
|
|
@@ -1754,10 +845,10 @@ var je = (
|
|
|
1754
845
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1755
846
|
* THE SOFTWARE.
|
|
1756
847
|
*/
|
|
1757
|
-
var
|
|
848
|
+
var Fe = {
|
|
1758
849
|
ICON_EVENT: "MDCTextField:icon",
|
|
1759
850
|
ICON_ROLE: "button"
|
|
1760
|
-
},
|
|
851
|
+
}, fr = {
|
|
1761
852
|
ROOT: "mdc-text-field__icon"
|
|
1762
853
|
};
|
|
1763
854
|
/**
|
|
@@ -1782,25 +873,25 @@ var Ce = {
|
|
|
1782
873
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1783
874
|
* THE SOFTWARE.
|
|
1784
875
|
*/
|
|
1785
|
-
var
|
|
876
|
+
var Pe = ["click", "keydown"], Se = (
|
|
1786
877
|
/** @class */
|
|
1787
878
|
function(i) {
|
|
1788
|
-
|
|
879
|
+
B(e, i);
|
|
1789
880
|
function e(t) {
|
|
1790
|
-
var n = i.call(this,
|
|
881
|
+
var n = i.call(this, y(y({}, e.defaultAdapter), t)) || this;
|
|
1791
882
|
return n.savedTabIndex_ = null, n.interactionHandler_ = function(r) {
|
|
1792
883
|
return n.handleInteraction(r);
|
|
1793
884
|
}, n;
|
|
1794
885
|
}
|
|
1795
886
|
return Object.defineProperty(e, "strings", {
|
|
1796
887
|
get: function() {
|
|
1797
|
-
return
|
|
888
|
+
return Fe;
|
|
1798
889
|
},
|
|
1799
890
|
enumerable: !1,
|
|
1800
891
|
configurable: !0
|
|
1801
892
|
}), Object.defineProperty(e, "cssClasses", {
|
|
1802
893
|
get: function() {
|
|
1803
|
-
return
|
|
894
|
+
return fr;
|
|
1804
895
|
},
|
|
1805
896
|
enumerable: !1,
|
|
1806
897
|
configurable: !0
|
|
@@ -1831,16 +922,16 @@ var xe = ["click", "keydown"], Le = (
|
|
|
1831
922
|
configurable: !0
|
|
1832
923
|
}), e.prototype.init = function() {
|
|
1833
924
|
var t = this;
|
|
1834
|
-
this.savedTabIndex_ = this.adapter.getAttr("tabindex"),
|
|
925
|
+
this.savedTabIndex_ = this.adapter.getAttr("tabindex"), Pe.forEach(function(n) {
|
|
1835
926
|
t.adapter.registerInteractionHandler(n, t.interactionHandler_);
|
|
1836
927
|
});
|
|
1837
928
|
}, e.prototype.destroy = function() {
|
|
1838
929
|
var t = this;
|
|
1839
|
-
|
|
930
|
+
Pe.forEach(function(n) {
|
|
1840
931
|
t.adapter.deregisterInteractionHandler(n, t.interactionHandler_);
|
|
1841
932
|
});
|
|
1842
933
|
}, e.prototype.setDisabled = function(t) {
|
|
1843
|
-
this.savedTabIndex_ && (t ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex_), this.adapter.setAttr("role",
|
|
934
|
+
this.savedTabIndex_ && (t ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex_), this.adapter.setAttr("role", Fe.ICON_ROLE)));
|
|
1844
935
|
}, e.prototype.setAriaLabel = function(t) {
|
|
1845
936
|
this.adapter.setAttr("aria-label", t);
|
|
1846
937
|
}, e.prototype.setContent = function(t) {
|
|
@@ -1849,7 +940,7 @@ var xe = ["click", "keydown"], Le = (
|
|
|
1849
940
|
var n = t.key === "Enter" || t.keyCode === 13;
|
|
1850
941
|
(t.type === "click" || n) && (t.preventDefault(), this.adapter.notifyIconAction());
|
|
1851
942
|
}, e;
|
|
1852
|
-
}(
|
|
943
|
+
}(xt)
|
|
1853
944
|
);
|
|
1854
945
|
/**
|
|
1855
946
|
* @license
|
|
@@ -1873,10 +964,10 @@ var xe = ["click", "keydown"], Le = (
|
|
|
1873
964
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1874
965
|
* THE SOFTWARE.
|
|
1875
966
|
*/
|
|
1876
|
-
var
|
|
967
|
+
var pr = (
|
|
1877
968
|
/** @class */
|
|
1878
969
|
function(i) {
|
|
1879
|
-
|
|
970
|
+
B(e, i);
|
|
1880
971
|
function e() {
|
|
1881
972
|
return i !== null && i.apply(this, arguments) || this;
|
|
1882
973
|
}
|
|
@@ -1894,8 +985,8 @@ var qn = (
|
|
|
1894
985
|
getAttr: function(r) {
|
|
1895
986
|
return t.root.getAttribute(r);
|
|
1896
987
|
},
|
|
1897
|
-
setAttr: function(r,
|
|
1898
|
-
return t.root.setAttribute(r,
|
|
988
|
+
setAttr: function(r, a) {
|
|
989
|
+
return t.root.setAttribute(r, a);
|
|
1899
990
|
},
|
|
1900
991
|
removeAttr: function(r) {
|
|
1901
992
|
return t.root.removeAttribute(r);
|
|
@@ -1903,24 +994,24 @@ var qn = (
|
|
|
1903
994
|
setContent: function(r) {
|
|
1904
995
|
t.root.textContent = r;
|
|
1905
996
|
},
|
|
1906
|
-
registerInteractionHandler: function(r,
|
|
1907
|
-
return t.listen(r,
|
|
997
|
+
registerInteractionHandler: function(r, a) {
|
|
998
|
+
return t.listen(r, a);
|
|
1908
999
|
},
|
|
1909
|
-
deregisterInteractionHandler: function(r,
|
|
1910
|
-
return t.unlisten(r,
|
|
1000
|
+
deregisterInteractionHandler: function(r, a) {
|
|
1001
|
+
return t.unlisten(r, a);
|
|
1911
1002
|
},
|
|
1912
1003
|
notifyIconAction: function() {
|
|
1913
1004
|
return t.emit(
|
|
1914
|
-
|
|
1005
|
+
Se.strings.ICON_EVENT,
|
|
1915
1006
|
{},
|
|
1916
1007
|
!0
|
|
1917
1008
|
/* shouldBubble */
|
|
1918
1009
|
);
|
|
1919
1010
|
}
|
|
1920
1011
|
};
|
|
1921
|
-
return new
|
|
1012
|
+
return new Se(n);
|
|
1922
1013
|
}, e;
|
|
1923
|
-
}(
|
|
1014
|
+
}(It)
|
|
1924
1015
|
);
|
|
1925
1016
|
/**
|
|
1926
1017
|
* @license
|
|
@@ -1944,45 +1035,45 @@ var qn = (
|
|
|
1944
1035
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1945
1036
|
* THE SOFTWARE.
|
|
1946
1037
|
*/
|
|
1947
|
-
var
|
|
1038
|
+
var hr = (
|
|
1948
1039
|
/** @class */
|
|
1949
1040
|
function(i) {
|
|
1950
|
-
|
|
1041
|
+
B(e, i);
|
|
1951
1042
|
function e() {
|
|
1952
1043
|
return i !== null && i.apply(this, arguments) || this;
|
|
1953
1044
|
}
|
|
1954
1045
|
return e.attachTo = function(t) {
|
|
1955
1046
|
return new e(t);
|
|
1956
|
-
}, e.prototype.initialize = function(t, n, r,
|
|
1957
|
-
t === void 0 && (t = function(f,
|
|
1958
|
-
return new
|
|
1047
|
+
}, e.prototype.initialize = function(t, n, r, a, u, l, p) {
|
|
1048
|
+
t === void 0 && (t = function(f, Q) {
|
|
1049
|
+
return new Ae(f, Q);
|
|
1959
1050
|
}), n === void 0 && (n = function(f) {
|
|
1960
|
-
return new
|
|
1051
|
+
return new xn(f);
|
|
1961
1052
|
}), r === void 0 && (r = function(f) {
|
|
1962
|
-
return new
|
|
1963
|
-
}),
|
|
1964
|
-
return new
|
|
1965
|
-
}), l === void 0 && (l = function(f) {
|
|
1966
|
-
return new qn(f);
|
|
1967
|
-
}), s === void 0 && (s = function(f) {
|
|
1968
|
-
return new Pe(f);
|
|
1053
|
+
return new Ln(f);
|
|
1054
|
+
}), a === void 0 && (a = function(f) {
|
|
1055
|
+
return new lr(f);
|
|
1969
1056
|
}), u === void 0 && (u = function(f) {
|
|
1970
|
-
return new
|
|
1971
|
-
}),
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
this.
|
|
1976
|
-
var T = this.root.querySelector(
|
|
1977
|
-
this.
|
|
1978
|
-
var
|
|
1979
|
-
this.
|
|
1980
|
-
var P =
|
|
1981
|
-
|
|
1982
|
-
var
|
|
1983
|
-
this.
|
|
1984
|
-
var
|
|
1985
|
-
|
|
1057
|
+
return new pr(f);
|
|
1058
|
+
}), l === void 0 && (l = function(f) {
|
|
1059
|
+
return new Yn(f);
|
|
1060
|
+
}), p === void 0 && (p = function(f) {
|
|
1061
|
+
return new Jn(f);
|
|
1062
|
+
}), this.input_ = this.root.querySelector(H.INPUT_SELECTOR);
|
|
1063
|
+
var T = this.root.querySelector(H.LABEL_SELECTOR);
|
|
1064
|
+
this.label_ = T ? l(T) : null;
|
|
1065
|
+
var v = this.root.querySelector(H.LINE_RIPPLE_SELECTOR);
|
|
1066
|
+
this.lineRipple_ = v ? n(v) : null;
|
|
1067
|
+
var P = this.root.querySelector(H.OUTLINE_SELECTOR);
|
|
1068
|
+
this.outline_ = P ? p(P) : null;
|
|
1069
|
+
var N = Cn.strings, m = this.root.nextElementSibling, E = m && m.classList.contains(Nt.HELPER_LINE), h = E && m && m.querySelector(N.ROOT_SELECTOR);
|
|
1070
|
+
this.helperText_ = h ? r(h) : null;
|
|
1071
|
+
var S = Tn.strings, g = this.root.querySelector(S.ROOT_SELECTOR);
|
|
1072
|
+
!g && E && m && (g = m.querySelector(S.ROOT_SELECTOR)), this.characterCounter_ = g ? a(g) : null;
|
|
1073
|
+
var w = this.root.querySelector(H.LEADING_ICON_SELECTOR);
|
|
1074
|
+
this.leadingIcon_ = w ? u(w) : null;
|
|
1075
|
+
var G = this.root.querySelector(H.TRAILING_ICON_SELECTOR);
|
|
1076
|
+
this.trailingIcon_ = G ? u(G) : null, this.prefix_ = this.root.querySelector(H.PREFIX_SELECTOR), this.suffix_ = this.root.querySelector(H.SUFFIX_SELECTOR), this.ripple = this.createRipple_(t);
|
|
1986
1077
|
}, e.prototype.destroy = function() {
|
|
1987
1078
|
this.ripple && this.ripple.destroy(), this.lineRipple_ && this.lineRipple_.destroy(), this.helperText_ && this.helperText_.destroy(), this.characterCounter_ && this.characterCounter_.destroy(), this.leadingIcon_ && this.leadingIcon_.destroy(), this.trailingIcon_ && this.trailingIcon_.destroy(), this.label_ && this.label_.destroy(), this.outline_ && this.outline_.destroy(), i.prototype.destroy.call(this);
|
|
1988
1079
|
}, e.prototype.initialSyncWithDOM = function() {
|
|
@@ -2198,8 +1289,8 @@ var $n = (
|
|
|
2198
1289
|
var t = this.foundation.shouldFloat;
|
|
2199
1290
|
this.foundation.notchOutline(t);
|
|
2200
1291
|
}, e.prototype.getDefaultFoundation = function() {
|
|
2201
|
-
var t =
|
|
2202
|
-
return new
|
|
1292
|
+
var t = y(y(y(y(y({}, this.getRootAdapterMethods_()), this.getInputAdapterMethods_()), this.getLabelAdapterMethods_()), this.getLineRippleAdapterMethods_()), this.getOutlineAdapterMethods_());
|
|
1293
|
+
return new dr(t, this.getFoundationMap_());
|
|
2203
1294
|
}, e.prototype.getRootAdapterMethods_ = function() {
|
|
2204
1295
|
var t = this;
|
|
2205
1296
|
return {
|
|
@@ -2219,16 +1310,16 @@ var $n = (
|
|
|
2219
1310
|
t.unlisten(n, r);
|
|
2220
1311
|
},
|
|
2221
1312
|
registerValidationAttributeChangeHandler: function(n) {
|
|
2222
|
-
var r = function(
|
|
2223
|
-
return
|
|
2224
|
-
return
|
|
2225
|
-
}).filter(function(
|
|
2226
|
-
return
|
|
1313
|
+
var r = function(l) {
|
|
1314
|
+
return l.map(function(p) {
|
|
1315
|
+
return p.attributeName;
|
|
1316
|
+
}).filter(function(p) {
|
|
1317
|
+
return p;
|
|
2227
1318
|
});
|
|
2228
|
-
},
|
|
2229
|
-
return n(r(
|
|
2230
|
-
}),
|
|
2231
|
-
return
|
|
1319
|
+
}, a = new MutationObserver(function(l) {
|
|
1320
|
+
return n(r(l));
|
|
1321
|
+
}), u = { attributes: !0 };
|
|
1322
|
+
return a.observe(t.input_, u), a;
|
|
2232
1323
|
},
|
|
2233
1324
|
deregisterValidationAttributeChangeHandler: function(n) {
|
|
2234
1325
|
n.disconnect();
|
|
@@ -2250,10 +1341,10 @@ var $n = (
|
|
|
2250
1341
|
return document.activeElement === t.input_;
|
|
2251
1342
|
},
|
|
2252
1343
|
registerInputInteractionHandler: function(n, r) {
|
|
2253
|
-
t.input_.addEventListener(n, r,
|
|
1344
|
+
t.input_.addEventListener(n, r, Ot());
|
|
2254
1345
|
},
|
|
2255
1346
|
deregisterInputInteractionHandler: function(n, r) {
|
|
2256
|
-
t.input_.removeEventListener(n, r,
|
|
1347
|
+
t.input_.removeEventListener(n, r, Ot());
|
|
2257
1348
|
}
|
|
2258
1349
|
};
|
|
2259
1350
|
}, e.prototype.getLabelAdapterMethods_ = function() {
|
|
@@ -2309,84 +1400,84 @@ var $n = (
|
|
|
2309
1400
|
trailingIcon: this.trailingIcon_ ? this.trailingIcon_.foundationForTextField : void 0
|
|
2310
1401
|
};
|
|
2311
1402
|
}, e.prototype.createRipple_ = function(t) {
|
|
2312
|
-
var n = this, r = this.root.classList.contains(
|
|
2313
|
-
if (r ||
|
|
1403
|
+
var n = this, r = this.root.classList.contains(Nt.TEXTAREA), a = this.root.classList.contains(Nt.OUTLINED);
|
|
1404
|
+
if (r || a)
|
|
2314
1405
|
return null;
|
|
2315
|
-
var
|
|
2316
|
-
return
|
|
2317
|
-
}, registerInteractionHandler: function(
|
|
2318
|
-
return n.input_.addEventListener(
|
|
2319
|
-
}, deregisterInteractionHandler: function(
|
|
2320
|
-
return n.input_.removeEventListener(
|
|
1406
|
+
var u = y(y({}, Ae.createAdapter(this)), { isSurfaceActive: function() {
|
|
1407
|
+
return ir(n.input_, ":active");
|
|
1408
|
+
}, registerInteractionHandler: function(l, p) {
|
|
1409
|
+
return n.input_.addEventListener(l, p, Ot());
|
|
1410
|
+
}, deregisterInteractionHandler: function(l, p) {
|
|
1411
|
+
return n.input_.removeEventListener(l, p, Ot());
|
|
2321
1412
|
} });
|
|
2322
|
-
return t(this.root, new
|
|
1413
|
+
return t(this.root, new ar(u));
|
|
2323
1414
|
}, e;
|
|
2324
|
-
}(
|
|
1415
|
+
}(It)
|
|
2325
1416
|
);
|
|
2326
|
-
const
|
|
1417
|
+
const _r = {
|
|
2327
1418
|
/**
|
|
2328
1419
|
*
|
|
2329
1420
|
*
|
|
2330
1421
|
* Defaults to **null**.
|
|
2331
1422
|
*/
|
|
2332
|
-
activated:
|
|
1423
|
+
activated: o.bool,
|
|
2333
1424
|
/**
|
|
2334
1425
|
* The css class name to be passed through to the component markup.
|
|
2335
1426
|
*
|
|
2336
1427
|
* Defaults to **undefined**.
|
|
2337
1428
|
*/
|
|
2338
|
-
className:
|
|
1429
|
+
className: o.string,
|
|
2339
1430
|
/**
|
|
2340
1431
|
*
|
|
2341
1432
|
*
|
|
2342
1433
|
* Defaults to **null**.
|
|
2343
1434
|
*/
|
|
2344
|
-
rippleCenter:
|
|
2345
|
-
},
|
|
1435
|
+
rippleCenter: o.string
|
|
1436
|
+
}, br = {
|
|
2346
1437
|
activated: null,
|
|
2347
1438
|
className: void 0,
|
|
2348
1439
|
rippleCenter: null
|
|
2349
|
-
},
|
|
1440
|
+
}, Ft = /* @__PURE__ */ me((i, e) => {
|
|
2350
1441
|
const {
|
|
2351
1442
|
activated: t,
|
|
2352
1443
|
rippleCenter: n,
|
|
2353
1444
|
className: r,
|
|
2354
|
-
...
|
|
2355
|
-
} = i,
|
|
2356
|
-
return
|
|
2357
|
-
|
|
2358
|
-
}), [
|
|
2359
|
-
t ?
|
|
2360
|
-
}, [t]),
|
|
2361
|
-
n &&
|
|
2362
|
-
}, [n]), /* @__PURE__ */
|
|
2363
|
-
ref:
|
|
2364
|
-
className:
|
|
2365
|
-
},
|
|
1445
|
+
...a
|
|
1446
|
+
} = i, u = U(), l = U();
|
|
1447
|
+
return vn(e, () => l.current, []), R(() => (u.current = xn.attachTo(l.current), () => {
|
|
1448
|
+
u.current.destroy();
|
|
1449
|
+
}), [l]), R(() => {
|
|
1450
|
+
t ? u.current.activate() : u.current.deactivate();
|
|
1451
|
+
}, [t]), R(() => {
|
|
1452
|
+
n && u.current.setRippleCenter(n);
|
|
1453
|
+
}, [n]), /* @__PURE__ */ b.createElement("div", Rt({
|
|
1454
|
+
ref: l,
|
|
1455
|
+
className: ot("lmnt", "mdc-line-ripple", r)
|
|
1456
|
+
}, a));
|
|
2366
1457
|
});
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
const
|
|
1458
|
+
Ft.displayName = "LineRipple";
|
|
1459
|
+
Ft.propTypes = _r;
|
|
1460
|
+
Ft.defaultProps = br;
|
|
1461
|
+
const Pt = /* @__PURE__ */ me((i, e) => {
|
|
2371
1462
|
const {
|
|
2372
1463
|
wrap: t,
|
|
2373
1464
|
children: n
|
|
2374
1465
|
} = i;
|
|
2375
|
-
return t ? /* @__PURE__ */
|
|
1466
|
+
return t ? /* @__PURE__ */ b.createElement("span", {
|
|
2376
1467
|
ref: e,
|
|
2377
1468
|
className: "mdc-text-field__resizer"
|
|
2378
1469
|
}, n) : n;
|
|
2379
1470
|
});
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
children:
|
|
2383
|
-
wrap:
|
|
1471
|
+
Pt.displayName = "TextfieldSpanShim";
|
|
1472
|
+
Pt.propTypes = {
|
|
1473
|
+
children: o.node,
|
|
1474
|
+
wrap: o.bool
|
|
2384
1475
|
};
|
|
2385
|
-
|
|
1476
|
+
Pt.defaultProps = {
|
|
2386
1477
|
children: void 0,
|
|
2387
1478
|
wrap: !1
|
|
2388
1479
|
};
|
|
2389
|
-
const
|
|
1480
|
+
const vr = {
|
|
2390
1481
|
/**
|
|
2391
1482
|
* @deprecated _Use `fullWidth` instead._
|
|
2392
1483
|
*
|
|
@@ -2394,13 +1485,13 @@ const Xn = {
|
|
|
2394
1485
|
*
|
|
2395
1486
|
* Defaults to **undefined**.
|
|
2396
1487
|
*/
|
|
2397
|
-
block:
|
|
1488
|
+
block: q(o.bool, "Textfield", "Use `fullWidth` instead."),
|
|
2398
1489
|
/**
|
|
2399
1490
|
* The css class name to be passed through to the component markup.
|
|
2400
1491
|
*
|
|
2401
1492
|
* Defaults to **undefined**.
|
|
2402
1493
|
*/
|
|
2403
|
-
className:
|
|
1494
|
+
className: o.string,
|
|
2404
1495
|
/**
|
|
2405
1496
|
* @deprecated _See `containerProps`._
|
|
2406
1497
|
*
|
|
@@ -2408,37 +1499,37 @@ const Xn = {
|
|
|
2408
1499
|
*
|
|
2409
1500
|
* Defaults to **undefined**.
|
|
2410
1501
|
*/
|
|
2411
|
-
containerClass:
|
|
1502
|
+
containerClass: q(o.string, "Textfield", "See `containerProps`."),
|
|
2412
1503
|
/**
|
|
2413
1504
|
* Properties to be added to the container of the textfield.
|
|
2414
1505
|
*
|
|
2415
1506
|
* Defaults to **undefined**.
|
|
2416
1507
|
*/
|
|
2417
|
-
containerProps:
|
|
1508
|
+
containerProps: o.object,
|
|
2418
1509
|
/**
|
|
2419
1510
|
* Enables a character count. _Warning_ requires `maxlength` to be set.
|
|
2420
1511
|
*
|
|
2421
1512
|
* Defaults to **false**.
|
|
2422
1513
|
*/
|
|
2423
|
-
counter:
|
|
1514
|
+
counter: o.bool,
|
|
2424
1515
|
/**
|
|
2425
1516
|
* The starting value of the Textfield when working in uncontrolled mode.
|
|
2426
1517
|
*
|
|
2427
1518
|
* Defaults to **undefined**.
|
|
2428
1519
|
*/
|
|
2429
|
-
defaultValue:
|
|
1520
|
+
defaultValue: o.oneOfType([o.string, o.number]),
|
|
2430
1521
|
/**
|
|
2431
1522
|
* The size of the Textfield will be reduced.
|
|
2432
1523
|
*
|
|
2433
1524
|
* Defaults to **false**.
|
|
2434
1525
|
*/
|
|
2435
|
-
dense:
|
|
1526
|
+
dense: o.bool,
|
|
2436
1527
|
/**
|
|
2437
1528
|
* Textfield will be disabled.
|
|
2438
1529
|
*
|
|
2439
1530
|
* Defaults to **false**.
|
|
2440
1531
|
*/
|
|
2441
|
-
disabled:
|
|
1532
|
+
disabled: o.bool,
|
|
2442
1533
|
/**
|
|
2443
1534
|
* @deprecated _Use `variant='embedded'_
|
|
2444
1535
|
*
|
|
@@ -2446,7 +1537,7 @@ const Xn = {
|
|
|
2446
1537
|
*
|
|
2447
1538
|
* Defaults to **undefined**.
|
|
2448
1539
|
*/
|
|
2449
|
-
embedded:
|
|
1540
|
+
embedded: q(o.bool, "Textfield", 'Use `variant="embedded"'),
|
|
2450
1541
|
/**
|
|
2451
1542
|
* @deprecated _Use variant='filled' instead._
|
|
2452
1543
|
*
|
|
@@ -2454,73 +1545,73 @@ const Xn = {
|
|
|
2454
1545
|
*
|
|
2455
1546
|
* Defaults to **undefined**.
|
|
2456
1547
|
*/
|
|
2457
|
-
filled:
|
|
1548
|
+
filled: q(o.bool, "Textfield", 'Use variant="filled" instead.'),
|
|
2458
1549
|
/**
|
|
2459
1550
|
* Sets the Textfield to the focused state.
|
|
2460
1551
|
*
|
|
2461
1552
|
* Defaults to **false**.
|
|
2462
1553
|
*/
|
|
2463
|
-
focused:
|
|
1554
|
+
focused: o.bool,
|
|
2464
1555
|
/**
|
|
2465
1556
|
* The Textfield will expand to 100% width.
|
|
2466
1557
|
*
|
|
2467
1558
|
* Defaults to **false**.
|
|
2468
1559
|
*/
|
|
2469
|
-
fullWidth:
|
|
1560
|
+
fullWidth: o.bool,
|
|
2470
1561
|
/**
|
|
2471
1562
|
* Helper text to be displayed below Textfield, by default only visible on focus.
|
|
2472
1563
|
*
|
|
2473
1564
|
* Defaults to **null**.
|
|
2474
1565
|
*/
|
|
2475
|
-
helperText:
|
|
1566
|
+
helperText: o.node,
|
|
2476
1567
|
/**
|
|
2477
1568
|
* Randomly generated id for the helper text container element. May be overwritten.
|
|
2478
1569
|
*
|
|
2479
1570
|
* Defaults to **undefined**.
|
|
2480
1571
|
*/
|
|
2481
|
-
helperTextId:
|
|
1572
|
+
helperTextId: o.string,
|
|
2482
1573
|
/**
|
|
2483
1574
|
* Set the helper text to be permanently visible.
|
|
2484
1575
|
*
|
|
2485
1576
|
* Defaults to **false**.
|
|
2486
1577
|
*/
|
|
2487
|
-
helperTextPersistent:
|
|
1578
|
+
helperTextPersistent: o.bool,
|
|
2488
1579
|
/**
|
|
2489
1580
|
* Set the helper text to use validation styles. Helper text changes with `valid` (e.g., helper text will appear red when `valid` is set to 'false').
|
|
2490
1581
|
*
|
|
2491
1582
|
* Defaults to **false**.
|
|
2492
1583
|
*/
|
|
2493
|
-
helperTextValidation:
|
|
1584
|
+
helperTextValidation: o.bool,
|
|
2494
1585
|
/**
|
|
2495
1586
|
* Randomly generated id for the input element. May be overwritten.
|
|
2496
1587
|
*
|
|
2497
1588
|
* Defaults to **undefined**.
|
|
2498
1589
|
*/
|
|
2499
|
-
id:
|
|
1590
|
+
id: o.string,
|
|
2500
1591
|
/**
|
|
2501
1592
|
* Floating input label. Note: full-width Textfields do not support floating labels - any label on a full-width Textfield will be automatically mapped to a placeholder.
|
|
2502
1593
|
*
|
|
2503
1594
|
* Defaults to **null**.
|
|
2504
1595
|
*/
|
|
2505
|
-
label:
|
|
1596
|
+
label: o.string,
|
|
2506
1597
|
/**
|
|
2507
1598
|
* Randomly generated id for the label element. May be overwritten.
|
|
2508
1599
|
*
|
|
2509
1600
|
* Defaults to **undefined**.
|
|
2510
1601
|
*/
|
|
2511
|
-
labelId:
|
|
1602
|
+
labelId: o.string,
|
|
2512
1603
|
/**
|
|
2513
1604
|
* Custom content to appear before the input.
|
|
2514
1605
|
*
|
|
2515
1606
|
* Defaults to **null**.
|
|
2516
1607
|
*/
|
|
2517
|
-
leadingContent:
|
|
1608
|
+
leadingContent: o.node,
|
|
2518
1609
|
/**
|
|
2519
1610
|
* Adds the given Icon or Icon Button to the left of the Textfield. Expects the name of a valid Material.io icon, however in React an icon or icon button component may be passed in instead for more control,
|
|
2520
1611
|
*
|
|
2521
1612
|
* Defaults to **null**.
|
|
2522
1613
|
*/
|
|
2523
|
-
leadingIcon:
|
|
1614
|
+
leadingIcon: o.oneOfType([o.string, o.node]),
|
|
2524
1615
|
/**
|
|
2525
1616
|
* @deprecated _Use `maxlength` instead. The case of this prop has changed to be more consistent._
|
|
2526
1617
|
*
|
|
@@ -2528,37 +1619,37 @@ const Xn = {
|
|
|
2528
1619
|
*
|
|
2529
1620
|
* Defaults to **undefined**.
|
|
2530
1621
|
*/
|
|
2531
|
-
maxLength:
|
|
1622
|
+
maxLength: q(o.number, "Textfield", "Use `maxlength` instead. The case of this prop has changed to be more consistent."),
|
|
2532
1623
|
/**
|
|
2533
1624
|
* Restricts the number of characters that can be entered, best used with counter.
|
|
2534
1625
|
*
|
|
2535
1626
|
* Defaults to **null**.
|
|
2536
1627
|
*/
|
|
2537
|
-
maxlength:
|
|
1628
|
+
maxlength: Pn(o.number, "Textfield", "counter"),
|
|
2538
1629
|
/**
|
|
2539
1630
|
* Prevents resizing when using `textarea`.
|
|
2540
1631
|
*
|
|
2541
1632
|
* Defaults to **true**.
|
|
2542
1633
|
*/
|
|
2543
|
-
noResize:
|
|
1634
|
+
noResize: o.bool,
|
|
2544
1635
|
/**
|
|
2545
1636
|
* Fired when focus leaves the input.
|
|
2546
1637
|
*
|
|
2547
1638
|
* Defaults to **null**.
|
|
2548
1639
|
*/
|
|
2549
|
-
onBlur:
|
|
1640
|
+
onBlur: o.func,
|
|
2550
1641
|
/**
|
|
2551
1642
|
* Fired when each character is entered into the Textfield.
|
|
2552
1643
|
*
|
|
2553
1644
|
* Defaults to **null**.
|
|
2554
1645
|
*/
|
|
2555
|
-
onChange:
|
|
1646
|
+
onChange: o.func,
|
|
2556
1647
|
/**
|
|
2557
1648
|
* Fired when the input gains focus.
|
|
2558
1649
|
*
|
|
2559
1650
|
* Defaults to **null**.
|
|
2560
1651
|
*/
|
|
2561
|
-
onFocus:
|
|
1652
|
+
onFocus: o.func,
|
|
2562
1653
|
/**
|
|
2563
1654
|
* @deprecated _Use `variant='outlined'` instead_
|
|
2564
1655
|
*
|
|
@@ -2566,19 +1657,19 @@ const Xn = {
|
|
|
2566
1657
|
*
|
|
2567
1658
|
* Defaults to **undefined**.
|
|
2568
1659
|
*/
|
|
2569
|
-
outlined:
|
|
1660
|
+
outlined: q(o.bool, "Textfield", 'Use `variant="outlined"` instead'),
|
|
2570
1661
|
/**
|
|
2571
1662
|
* Non-floating label text, will be replaced when the user starts typing.
|
|
2572
1663
|
*
|
|
2573
1664
|
* Defaults to **null**.
|
|
2574
1665
|
*/
|
|
2575
|
-
placeholder:
|
|
1666
|
+
placeholder: o.string,
|
|
2576
1667
|
/**
|
|
2577
1668
|
* Text that will appear before the label or value of the Textfield. It will be shown on focus. An example use-case might be a currency symbol such as `$`. _Warning:_ This cannot be used with `leadingIcon` or `textarea`.
|
|
2578
1669
|
*
|
|
2579
1670
|
* Defaults to **null**.
|
|
2580
1671
|
*/
|
|
2581
|
-
prefixText:
|
|
1672
|
+
prefixText: o.string,
|
|
2582
1673
|
/**
|
|
2583
1674
|
* @deprecated _This feature is no longer supported. Use `variant='filled'` instead._
|
|
2584
1675
|
*
|
|
@@ -2586,7 +1677,7 @@ const Xn = {
|
|
|
2586
1677
|
*
|
|
2587
1678
|
* Defaults to **undefined**.
|
|
2588
1679
|
*/
|
|
2589
|
-
primary:
|
|
1680
|
+
primary: q(o.bool, "Textfield", 'This feature is no longer supported. Use `variant="filled"` instead.'),
|
|
2590
1681
|
/**
|
|
2591
1682
|
* @deprecated _Use `variant='embedded'`_
|
|
2592
1683
|
*
|
|
@@ -2594,7 +1685,7 @@ const Xn = {
|
|
|
2594
1685
|
*
|
|
2595
1686
|
* Defaults to **undefined**.
|
|
2596
1687
|
*/
|
|
2597
|
-
search:
|
|
1688
|
+
search: q(o.bool, "Textfield", 'Use `variant="embedded"`'),
|
|
2598
1689
|
/**
|
|
2599
1690
|
* @deprecated _Use `variant='outlined'` instead._
|
|
2600
1691
|
*
|
|
@@ -2602,62 +1693,62 @@ const Xn = {
|
|
|
2602
1693
|
*
|
|
2603
1694
|
* Defaults to **undefined**.
|
|
2604
1695
|
*/
|
|
2605
|
-
secondary:
|
|
1696
|
+
secondary: q(o.bool, "Textfield", 'Use `variant="outlined"` instead.'),
|
|
2606
1697
|
/**
|
|
2607
1698
|
* Text that will appear after the label or value of the Textfield. It will be shown on focus. An example use-case might be `.00` if handling currency. _Warning:_ This cannot be used with `trailingIcon` or `textarea`.
|
|
2608
1699
|
*
|
|
2609
1700
|
* Defaults to **null**.
|
|
2610
1701
|
*/
|
|
2611
|
-
suffixText:
|
|
1702
|
+
suffixText: o.string,
|
|
2612
1703
|
/**
|
|
2613
1704
|
* Enabled multi-line text input. _Note_ `textarea` cannot be used with the embedded variant.
|
|
2614
1705
|
*
|
|
2615
1706
|
* Defaults to **false**.
|
|
2616
1707
|
*/
|
|
2617
|
-
textarea:
|
|
1708
|
+
textarea: o.bool,
|
|
2618
1709
|
/**
|
|
2619
1710
|
* If defined, a Tooltip will appear on the Textfield. Useful to show the full value, if the value is too long for the Textfield width. The object should be the needed Tooltip properties. Tooltip `text` prop will be set to the current value of the Textfield. See Tooltip docs for available props.
|
|
2620
1711
|
*
|
|
2621
1712
|
* Defaults to **null**.
|
|
2622
1713
|
*/
|
|
2623
|
-
tooltip:
|
|
1714
|
+
tooltip: o.oneOfType([o.bool, o.object]),
|
|
2624
1715
|
/**
|
|
2625
1716
|
* Custom content to appear after the input.
|
|
2626
1717
|
*
|
|
2627
1718
|
* Defaults to **null**.
|
|
2628
1719
|
*/
|
|
2629
|
-
trailingContent:
|
|
1720
|
+
trailingContent: o.node,
|
|
2630
1721
|
/**
|
|
2631
1722
|
* Adds the given Icon or Icon Button to the right of the Textfield . Expects the name of a valid Material.io icon, however in React an icon icon button component may be passed in instead for more control.
|
|
2632
1723
|
*
|
|
2633
1724
|
* Defaults to **null**.
|
|
2634
1725
|
*/
|
|
2635
|
-
trailingIcon:
|
|
1726
|
+
trailingIcon: o.oneOfType([o.string, o.node]),
|
|
2636
1727
|
/**
|
|
2637
1728
|
* Support for built-in input types. Browser support for some advanced types such as color or date may be limited or appear differently between browsers. _Note_ the `Datepicker` component should be preferred over the built-in date/time types as it offers more consistency and features._Note_ Slider type is not support, please use the Element `Slider` component instead.
|
|
2638
1729
|
*
|
|
2639
1730
|
* Defaults to **'text'**.
|
|
2640
1731
|
*/
|
|
2641
|
-
type:
|
|
1732
|
+
type: o.oneOf(["text", "password", "color", "email", "url", "number", "tel", "search", "datetime-local", "month", "time", "week", "date"]),
|
|
2642
1733
|
/**
|
|
2643
1734
|
* Applies an invalid style to the Textfield.
|
|
2644
1735
|
*
|
|
2645
1736
|
* Defaults to **true**.
|
|
2646
1737
|
*/
|
|
2647
|
-
valid:
|
|
1738
|
+
valid: o.bool,
|
|
2648
1739
|
/**
|
|
2649
1740
|
* The current value of the Textfield component.
|
|
2650
1741
|
*
|
|
2651
1742
|
* Defaults to **undefined**.
|
|
2652
1743
|
*/
|
|
2653
|
-
value:
|
|
1744
|
+
value: o.oneOfType([o.string, o.number]),
|
|
2654
1745
|
/**
|
|
2655
1746
|
* Applies the selected styling to the Textfield. _Note_ `textarea` does not support the `embedded` variant.
|
|
2656
1747
|
*
|
|
2657
1748
|
* Defaults to **'filled'**.
|
|
2658
1749
|
*/
|
|
2659
|
-
variant:
|
|
2660
|
-
},
|
|
1750
|
+
variant: o.oneOf(["filled", "outlined", "embedded"])
|
|
1751
|
+
}, gr = {
|
|
2661
1752
|
block: void 0,
|
|
2662
1753
|
className: void 0,
|
|
2663
1754
|
containerClass: void 0,
|
|
@@ -2697,9 +1788,9 @@ const Xn = {
|
|
|
2697
1788
|
valid: !0,
|
|
2698
1789
|
value: void 0,
|
|
2699
1790
|
variant: "filled"
|
|
2700
|
-
},
|
|
1791
|
+
}, Ve = (i, e) => i ? /* @__PURE__ */ b.createElement("div", {
|
|
2701
1792
|
className: "mdc-text-field-character-counter"
|
|
2702
|
-
}, "0 / ", e) : null,
|
|
1793
|
+
}, "0 / ", e) : null, mr = (i) => {
|
|
2703
1794
|
const {
|
|
2704
1795
|
type: e
|
|
2705
1796
|
} = {
|
|
@@ -2709,16 +1800,16 @@ const Xn = {
|
|
|
2709
1800
|
} = {
|
|
2710
1801
|
...e
|
|
2711
1802
|
};
|
|
2712
|
-
return typeof i == "string" ? /* @__PURE__ */
|
|
1803
|
+
return typeof i == "string" ? /* @__PURE__ */ b.createElement(cn, {
|
|
2713
1804
|
role: "button",
|
|
2714
1805
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading",
|
|
2715
1806
|
icon: i
|
|
2716
|
-
}) :
|
|
2717
|
-
className:
|
|
1807
|
+
}) : sn(i, {
|
|
1808
|
+
className: ot("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading", t === "IconButton" && "lmnt-text-field__icon-button--leading"),
|
|
2718
1809
|
dense: t === "IconButton" ? !0 : void 0,
|
|
2719
1810
|
role: "button"
|
|
2720
1811
|
});
|
|
2721
|
-
},
|
|
1812
|
+
}, yr = (i) => {
|
|
2722
1813
|
const {
|
|
2723
1814
|
type: e
|
|
2724
1815
|
} = {
|
|
@@ -2728,99 +1819,99 @@ const Xn = {
|
|
|
2728
1819
|
} = {
|
|
2729
1820
|
...e
|
|
2730
1821
|
};
|
|
2731
|
-
return typeof i == "string" ? /* @__PURE__ */
|
|
1822
|
+
return typeof i == "string" ? /* @__PURE__ */ b.createElement(cn, {
|
|
2732
1823
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing",
|
|
2733
1824
|
icon: i
|
|
2734
|
-
}) :
|
|
2735
|
-
className:
|
|
1825
|
+
}) : sn(i, {
|
|
1826
|
+
className: ot("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing", t === "IconButton" && "lmnt-text-field__icon-button--trailing"),
|
|
2736
1827
|
dense: t === "IconButton" ? !0 : void 0,
|
|
2737
1828
|
role: t === "IconButton" ? "button" : null
|
|
2738
1829
|
});
|
|
2739
|
-
},
|
|
1830
|
+
}, ye = /* @__PURE__ */ me((i, e) => {
|
|
2740
1831
|
const {
|
|
2741
1832
|
block: t,
|
|
2742
1833
|
className: n,
|
|
2743
1834
|
containerClass: r,
|
|
2744
|
-
containerProps:
|
|
2745
|
-
containerStyle:
|
|
2746
|
-
counter:
|
|
2747
|
-
defaultValue:
|
|
2748
|
-
dense:
|
|
2749
|
-
disabled:
|
|
2750
|
-
embedded:
|
|
2751
|
-
filled:
|
|
2752
|
-
focused:
|
|
2753
|
-
fullWidth:
|
|
2754
|
-
helperText:
|
|
2755
|
-
helperTextId:
|
|
2756
|
-
helperTextPersistent:
|
|
2757
|
-
helperTextValidation:
|
|
2758
|
-
id:
|
|
1835
|
+
containerProps: a,
|
|
1836
|
+
containerStyle: u,
|
|
1837
|
+
counter: l,
|
|
1838
|
+
defaultValue: p,
|
|
1839
|
+
dense: T,
|
|
1840
|
+
disabled: v,
|
|
1841
|
+
embedded: P,
|
|
1842
|
+
filled: N,
|
|
1843
|
+
focused: m,
|
|
1844
|
+
fullWidth: E,
|
|
1845
|
+
helperText: h,
|
|
1846
|
+
helperTextId: S,
|
|
1847
|
+
helperTextPersistent: g,
|
|
1848
|
+
helperTextValidation: w,
|
|
1849
|
+
id: G,
|
|
2759
1850
|
label: f,
|
|
2760
|
-
labelId:
|
|
2761
|
-
leadingContent:
|
|
2762
|
-
leadingIcon:
|
|
2763
|
-
maxLength:
|
|
2764
|
-
maxlength:
|
|
2765
|
-
noResize:
|
|
2766
|
-
onBlur:
|
|
2767
|
-
outlined:
|
|
2768
|
-
placeholder:
|
|
2769
|
-
prefixText:
|
|
2770
|
-
primary:
|
|
2771
|
-
search:
|
|
2772
|
-
secondary:
|
|
2773
|
-
suffixText:
|
|
1851
|
+
labelId: Q,
|
|
1852
|
+
leadingContent: ht,
|
|
1853
|
+
leadingIcon: M,
|
|
1854
|
+
maxLength: Z,
|
|
1855
|
+
maxlength: I,
|
|
1856
|
+
noResize: X,
|
|
1857
|
+
onBlur: tt,
|
|
1858
|
+
outlined: W,
|
|
1859
|
+
placeholder: St,
|
|
1860
|
+
prefixText: _t,
|
|
1861
|
+
primary: Vt = null,
|
|
1862
|
+
search: jt,
|
|
1863
|
+
secondary: Ht,
|
|
1864
|
+
suffixText: bt,
|
|
2774
1865
|
textarea: C,
|
|
2775
|
-
tooltip:
|
|
2776
|
-
trailingContent:
|
|
2777
|
-
trailingIcon:
|
|
2778
|
-
type:
|
|
2779
|
-
valid:
|
|
2780
|
-
value:
|
|
2781
|
-
variant:
|
|
2782
|
-
|
|
1866
|
+
tooltip: L,
|
|
1867
|
+
trailingContent: wt,
|
|
1868
|
+
trailingIcon: et,
|
|
1869
|
+
type: Tt,
|
|
1870
|
+
valid: ut,
|
|
1871
|
+
value: V,
|
|
1872
|
+
variant: vt,
|
|
1873
|
+
...Dt
|
|
2783
1874
|
} = i, {
|
|
2784
|
-
hoisted:
|
|
2785
|
-
position:
|
|
2786
|
-
} =
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
}), [
|
|
2790
|
-
mdc:
|
|
2791
|
-
input:
|
|
2792
|
-
container:
|
|
2793
|
-
label:
|
|
2794
|
-
})),
|
|
2795
|
-
|
|
2796
|
-
}), [
|
|
2797
|
-
if (
|
|
2798
|
-
var
|
|
2799
|
-
(
|
|
1875
|
+
hoisted: $t,
|
|
1876
|
+
position: Ct = "bottom"
|
|
1877
|
+
} = L && typeof L == "object" ? L : {}, [lt] = ft(() => G || kt()), [gt] = ft(() => S || kt()), [mt] = ft(() => Q || kt()), [Lt, Ut] = ft(!0), [c, st] = ft(!1), [s, z] = ft(I), K = h || l && s, Bt = C ? "textarea" : "input", nt = U(), x = U(), d = U(), Y = U(), rt = U(), yt = U(), it = U(), F = U(), At = (et || M) && !C, k = Wn(() => ut ?? !0, [ut]), J = !C && (P || jt || vt === "embedded"), ct = !P && (W || Ht || vt === "outlined"), A = !ct && !J && (Vt || N || vt === "filled"), O = J || E || t, Mt = !J && !!f && !T;
|
|
1878
|
+
R(() => (d.current = hr.attachTo(Y.current), () => {
|
|
1879
|
+
d.current.destroy();
|
|
1880
|
+
}), [c]), vn(e, () => ({
|
|
1881
|
+
mdc: d.current,
|
|
1882
|
+
input: rt.current,
|
|
1883
|
+
container: yt.current,
|
|
1884
|
+
label: Y.current
|
|
1885
|
+
})), R(() => (h && typeof h == "string" && (x.current = new Ln(nt.current)), () => {
|
|
1886
|
+
x.current && x.current.destroy();
|
|
1887
|
+
}), [h]), R(() => {
|
|
1888
|
+
if (h) {
|
|
1889
|
+
var _, j, D, dt;
|
|
1890
|
+
(_ = x.current) === null || _ === void 0 || _.foundation.setValidation(w), (j = x.current) === null || j === void 0 || j.foundation.setValidity(k), (D = x.current) === null || D === void 0 || D.foundation.setPersistent(g), (dt = x.current) === null || dt === void 0 || dt.foundation.setContent(h);
|
|
2800
1891
|
}
|
|
2801
|
-
}, [
|
|
2802
|
-
|
|
2803
|
-
}, [
|
|
2804
|
-
|
|
2805
|
-
}, [
|
|
2806
|
-
|
|
2807
|
-
}, [
|
|
2808
|
-
|
|
2809
|
-
}, [
|
|
2810
|
-
|
|
2811
|
-
}, [
|
|
2812
|
-
const
|
|
2813
|
-
|
|
2814
|
-
},
|
|
2815
|
-
|
|
2816
|
-
},
|
|
2817
|
-
|
|
1892
|
+
}, [h, g, w, k]), R(() => {
|
|
1893
|
+
p || (d.current.value = V || V === 0 ? V : ""), d.current.valid = k;
|
|
1894
|
+
}, [d, V, k, p]), R(() => {
|
|
1895
|
+
d.current.disabled = v;
|
|
1896
|
+
}, [d, v]), R(() => {
|
|
1897
|
+
z(Z && !I ? Z : I);
|
|
1898
|
+
}, [I, Z]), R(() => {
|
|
1899
|
+
st(s > 0 && l);
|
|
1900
|
+
}, [s, l]), R(() => {
|
|
1901
|
+
Ut(O || l || h);
|
|
1902
|
+
}, [O, l, h]);
|
|
1903
|
+
const Rn = () => {
|
|
1904
|
+
ut !== void 0 && V !== null && (d.current.valid = ut);
|
|
1905
|
+
}, Nn = (_) => {
|
|
1906
|
+
tt && tt(_), Rn();
|
|
1907
|
+
}, Ie = () => {
|
|
1908
|
+
d.current.value = "", d.current.valid = k;
|
|
2818
1909
|
};
|
|
2819
|
-
|
|
2820
|
-
window.removeEventListener("reset",
|
|
2821
|
-
}), []),
|
|
2822
|
-
if (
|
|
2823
|
-
const
|
|
1910
|
+
R(() => (window.addEventListener("reset", Ie), () => {
|
|
1911
|
+
window.removeEventListener("reset", Ie);
|
|
1912
|
+
}), []), R(() => {
|
|
1913
|
+
if (L) {
|
|
1914
|
+
const _ = [{
|
|
2824
1915
|
name: "flip",
|
|
2825
1916
|
options: {
|
|
2826
1917
|
enabled: !0,
|
|
@@ -2835,110 +1926,453 @@ const Xn = {
|
|
|
2835
1926
|
offset: [0, 12]
|
|
2836
1927
|
}
|
|
2837
1928
|
}];
|
|
2838
|
-
|
|
2839
|
-
placement:
|
|
2840
|
-
modifiers:
|
|
1929
|
+
F.current = Fn(yt.current, it.current, {
|
|
1930
|
+
placement: Ct,
|
|
1931
|
+
modifiers: _
|
|
2841
1932
|
});
|
|
2842
1933
|
}
|
|
2843
1934
|
return () => {
|
|
2844
|
-
var
|
|
2845
|
-
(
|
|
1935
|
+
var _;
|
|
1936
|
+
(_ = F.current) === null || _ === void 0 || _.destroy();
|
|
2846
1937
|
};
|
|
2847
|
-
}, [
|
|
2848
|
-
const
|
|
2849
|
-
if (
|
|
2850
|
-
const
|
|
2851
|
-
if (
|
|
2852
|
-
var
|
|
2853
|
-
(
|
|
2854
|
-
...
|
|
2855
|
-
modifiers: [...
|
|
1938
|
+
}, [Ct, $t, L]);
|
|
1939
|
+
const xe = Ce(() => {
|
|
1940
|
+
if (V) {
|
|
1941
|
+
const dt = d.current.input_;
|
|
1942
|
+
if (dt.offsetWidth < dt.scrollWidth) {
|
|
1943
|
+
var _, j, D;
|
|
1944
|
+
(_ = it.current) === null || _ === void 0 || _.setAttribute("data-show", ""), (j = F.current) === null || j === void 0 || j.setOptions((Te) => ({
|
|
1945
|
+
...Te,
|
|
1946
|
+
modifiers: [...Te.modifiers, {
|
|
2856
1947
|
name: "eventListeners",
|
|
2857
1948
|
enabled: !0
|
|
2858
1949
|
}]
|
|
2859
|
-
})), (
|
|
1950
|
+
})), (D = F.current) === null || D === void 0 || D.update();
|
|
2860
1951
|
}
|
|
2861
1952
|
}
|
|
2862
|
-
}, [
|
|
2863
|
-
var
|
|
2864
|
-
(
|
|
2865
|
-
...
|
|
2866
|
-
modifiers: [...
|
|
1953
|
+
}, [V]), Ee = Ce(() => {
|
|
1954
|
+
var _, j;
|
|
1955
|
+
(_ = it.current) === null || _ === void 0 || _.removeAttribute("data-show"), (j = F.current) === null || j === void 0 || j.setOptions((D) => ({
|
|
1956
|
+
...D,
|
|
1957
|
+
modifiers: [...D.modifiers, {
|
|
2867
1958
|
name: "eventListeners",
|
|
2868
1959
|
enabled: !1
|
|
2869
1960
|
}]
|
|
2870
1961
|
}));
|
|
2871
1962
|
}, []);
|
|
2872
|
-
return /* @__PURE__ */
|
|
2873
|
-
ref:
|
|
2874
|
-
style:
|
|
2875
|
-
className:
|
|
2876
|
-
},
|
|
2877
|
-
onMouseEnter:
|
|
2878
|
-
onFocus:
|
|
2879
|
-
onMouseLeave:
|
|
2880
|
-
onBlur:
|
|
2881
|
-
}),
|
|
2882
|
-
htmlFor:
|
|
2883
|
-
ref:
|
|
2884
|
-
className:
|
|
2885
|
-
},
|
|
1963
|
+
return /* @__PURE__ */ b.createElement("div", Rt({
|
|
1964
|
+
ref: yt,
|
|
1965
|
+
style: u,
|
|
1966
|
+
className: ot("lmnt", "lmnt-text-field--container", O && "lmnt-text-field--container-full-width", !O && Lt && "lmnt-text-field--container-to-content-width", !Lt && "lmnt-text-field-inline-container", r)
|
|
1967
|
+
}, a, {
|
|
1968
|
+
onMouseEnter: L && xe,
|
|
1969
|
+
onFocus: L && xe,
|
|
1970
|
+
onMouseLeave: L && Ee,
|
|
1971
|
+
onBlur: L && Ee
|
|
1972
|
+
}), ht, /* @__PURE__ */ b.createElement("label", {
|
|
1973
|
+
htmlFor: lt,
|
|
1974
|
+
ref: Y,
|
|
1975
|
+
className: ot(["lmnt", "mdc-text-field", "lmnt-text-field", J && "lmnt-text-field--embedded", O && "lmnt-text-field--full-width", At && "lmnt-text-field--with-icon", !k && "mdc-text-field--invalid", v && "mdc-text-field--disabled", m && "mdc-text-field--focused", !Mt && "mdc-text-field--no-label", M && !C && "mdc-text-field--with-leading-icon", C && "mdc-text-field--textarea", C && l && s && !X && "mdc-text-field--with-internal-counter", et && !C && "mdc-text-field--with-trailing-icon", A && "mdc-text-field--filled", ct && "mdc-text-field--outlined", T && "lmnt-text-field--dense", n])
|
|
1976
|
+
}, A && /* @__PURE__ */ b.createElement("span", {
|
|
2886
1977
|
className: "mdc-text-field__ripple"
|
|
2887
|
-
}),
|
|
1978
|
+
}), M && !C && mr(M), _t && !M && !C && /* @__PURE__ */ b.createElement("span", {
|
|
2888
1979
|
className: "mdc-text-field__affix mdc-text-field__affix--prefix"
|
|
2889
|
-
},
|
|
2890
|
-
wrap: !
|
|
2891
|
-
}, /* @__PURE__ */
|
|
2892
|
-
"aria-controls":
|
|
2893
|
-
"aria-describedby":
|
|
2894
|
-
"aria-labelledby":
|
|
2895
|
-
className:
|
|
2896
|
-
disabled:
|
|
2897
|
-
id:
|
|
2898
|
-
type:
|
|
2899
|
-
onBlur:
|
|
2900
|
-
defaultValue:
|
|
2901
|
-
placeholder:
|
|
2902
|
-
maxLength:
|
|
2903
|
-
ref:
|
|
2904
|
-
value:
|
|
2905
|
-
},
|
|
1980
|
+
}, _t), /* @__PURE__ */ b.createElement(Pt, {
|
|
1981
|
+
wrap: !X && C
|
|
1982
|
+
}, /* @__PURE__ */ b.createElement(Bt, Rt({
|
|
1983
|
+
"aria-controls": gt,
|
|
1984
|
+
"aria-describedby": gt,
|
|
1985
|
+
"aria-labelledby": mt,
|
|
1986
|
+
className: ot("mdc-text-field__input", Tt === "color" && "lmnt-text-field__input--color"),
|
|
1987
|
+
disabled: v,
|
|
1988
|
+
id: lt,
|
|
1989
|
+
type: Tt,
|
|
1990
|
+
onBlur: Nn,
|
|
1991
|
+
defaultValue: p,
|
|
1992
|
+
placeholder: St || (J && f ? f : "") || (T && f ? f : ""),
|
|
1993
|
+
maxLength: s,
|
|
1994
|
+
ref: rt,
|
|
1995
|
+
value: V
|
|
1996
|
+
}, Dt)), !X && Ve(c, s)), et && !C && yr(et), bt && !et && !C && /* @__PURE__ */ b.createElement("span", {
|
|
2906
1997
|
className: "mdc-text-field__affix mdc-text-field__affix--suffix"
|
|
2907
|
-
},
|
|
2908
|
-
id:
|
|
2909
|
-
htmlFor:
|
|
2910
|
-
}, f)),
|
|
2911
|
-
id:
|
|
2912
|
-
htmlFor:
|
|
2913
|
-
}, f), (
|
|
1998
|
+
}, bt), ct && /* @__PURE__ */ b.createElement(zn, null, Mt && /* @__PURE__ */ b.createElement(Le, {
|
|
1999
|
+
id: mt,
|
|
2000
|
+
htmlFor: lt
|
|
2001
|
+
}, f)), A && Mt && /* @__PURE__ */ b.createElement(Le, {
|
|
2002
|
+
id: mt,
|
|
2003
|
+
htmlFor: lt
|
|
2004
|
+
}, f), (A || J) && /* @__PURE__ */ b.createElement(Ft, null)), wt, K && /* @__PURE__ */ b.createElement("div", {
|
|
2914
2005
|
className: "mdc-text-field-helper-line"
|
|
2915
|
-
},
|
|
2916
|
-
ref:
|
|
2917
|
-
id:
|
|
2918
|
-
"aria-hidden":
|
|
2919
|
-
className:
|
|
2920
|
-
},
|
|
2006
|
+
}, h && /* @__PURE__ */ b.createElement("div", {
|
|
2007
|
+
ref: nt,
|
|
2008
|
+
id: gt,
|
|
2009
|
+
"aria-hidden": g ? "false" : "true",
|
|
2010
|
+
className: ot(["mdc-text-field-helper-text", g && "mdc-text-field-helper-text--persistent", w && "mdc-text-field-helper-text--validation-msg"])
|
|
2011
|
+
}, h), X && Ve(c, s)), L && /* @__PURE__ */ b.createElement(Kn, Rt({
|
|
2921
2012
|
role: "tooltip"
|
|
2922
|
-
},
|
|
2923
|
-
ref:
|
|
2924
|
-
text:
|
|
2013
|
+
}, L, {
|
|
2014
|
+
ref: it,
|
|
2015
|
+
text: V
|
|
2925
2016
|
})));
|
|
2926
2017
|
});
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2018
|
+
ye.displayName = "Textfield";
|
|
2019
|
+
ye.propTypes = vr;
|
|
2020
|
+
ye.defaultProps = gr;
|
|
2021
|
+
var qt, je;
|
|
2022
|
+
function Ir() {
|
|
2023
|
+
if (je) return qt;
|
|
2024
|
+
je = 1;
|
|
2025
|
+
var i = _n(), e = Xn(), t = dn(), n = i ? i.isConcatSpreadable : void 0;
|
|
2026
|
+
function r(a) {
|
|
2027
|
+
return t(a) || e(a) || !!(n && a && a[n]);
|
|
2028
|
+
}
|
|
2029
|
+
return qt = r, qt;
|
|
2030
|
+
}
|
|
2031
|
+
var Gt, He;
|
|
2032
|
+
function xr() {
|
|
2033
|
+
if (He) return Gt;
|
|
2034
|
+
He = 1;
|
|
2035
|
+
var i = yn(), e = Ir();
|
|
2036
|
+
function t(n, r, a, u, l) {
|
|
2037
|
+
var p = -1, T = n.length;
|
|
2038
|
+
for (a || (a = e), l || (l = []); ++p < T; ) {
|
|
2039
|
+
var v = n[p];
|
|
2040
|
+
r > 0 && a(v) ? r > 1 ? t(v, r - 1, a, u, l) : i(l, v) : u || (l[l.length] = v);
|
|
2041
|
+
}
|
|
2042
|
+
return l;
|
|
2043
|
+
}
|
|
2044
|
+
return Gt = t, Gt;
|
|
2045
|
+
}
|
|
2046
|
+
var Xt, we;
|
|
2047
|
+
function Er() {
|
|
2048
|
+
if (we) return Xt;
|
|
2049
|
+
we = 1;
|
|
2050
|
+
function i(e, t) {
|
|
2051
|
+
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
2052
|
+
;
|
|
2053
|
+
return e;
|
|
2054
|
+
}
|
|
2055
|
+
return Xt = i, Xt;
|
|
2056
|
+
}
|
|
2057
|
+
var Wt, De;
|
|
2058
|
+
function Tr() {
|
|
2059
|
+
if (De) return Wt;
|
|
2060
|
+
De = 1;
|
|
2061
|
+
var i = Et(), e = mn();
|
|
2062
|
+
function t(n, r) {
|
|
2063
|
+
return n && i(r, e(r), n);
|
|
2064
|
+
}
|
|
2065
|
+
return Wt = t, Wt;
|
|
2066
|
+
}
|
|
2067
|
+
var zt, $e;
|
|
2068
|
+
function Cr() {
|
|
2069
|
+
if ($e) return zt;
|
|
2070
|
+
$e = 1;
|
|
2071
|
+
var i = Et(), e = ge();
|
|
2072
|
+
function t(n, r) {
|
|
2073
|
+
return n && i(r, e(r), n);
|
|
2074
|
+
}
|
|
2075
|
+
return zt = t, zt;
|
|
2076
|
+
}
|
|
2077
|
+
var Kt, Ue;
|
|
2078
|
+
function Lr() {
|
|
2079
|
+
if (Ue) return Kt;
|
|
2080
|
+
Ue = 1;
|
|
2081
|
+
var i = Et(), e = In();
|
|
2082
|
+
function t(n, r) {
|
|
2083
|
+
return i(n, e(n), r);
|
|
2084
|
+
}
|
|
2085
|
+
return Kt = t, Kt;
|
|
2086
|
+
}
|
|
2087
|
+
var Yt, Be;
|
|
2088
|
+
function An() {
|
|
2089
|
+
if (Be) return Yt;
|
|
2090
|
+
Be = 1;
|
|
2091
|
+
var i = yn(), e = Gn(), t = In(), n = rr(), r = Object.getOwnPropertySymbols, a = r ? function(u) {
|
|
2092
|
+
for (var l = []; u; )
|
|
2093
|
+
i(l, t(u)), u = e(u);
|
|
2094
|
+
return l;
|
|
2095
|
+
} : n;
|
|
2096
|
+
return Yt = a, Yt;
|
|
2097
|
+
}
|
|
2098
|
+
var Jt, Me;
|
|
2099
|
+
function Ar() {
|
|
2100
|
+
if (Me) return Jt;
|
|
2101
|
+
Me = 1;
|
|
2102
|
+
var i = Et(), e = An();
|
|
2103
|
+
function t(n, r) {
|
|
2104
|
+
return i(n, e(n), r);
|
|
2105
|
+
}
|
|
2106
|
+
return Jt = t, Jt;
|
|
2107
|
+
}
|
|
2108
|
+
var Qt, ke;
|
|
2109
|
+
function On() {
|
|
2110
|
+
if (ke) return Qt;
|
|
2111
|
+
ke = 1;
|
|
2112
|
+
var i = er(), e = An(), t = ge();
|
|
2113
|
+
function n(r) {
|
|
2114
|
+
return i(r, t, e);
|
|
2115
|
+
}
|
|
2116
|
+
return Qt = n, Qt;
|
|
2117
|
+
}
|
|
2118
|
+
var Zt, qe;
|
|
2119
|
+
function Or() {
|
|
2120
|
+
if (qe) return Zt;
|
|
2121
|
+
qe = 1;
|
|
2122
|
+
var i = Object.prototype, e = i.hasOwnProperty;
|
|
2123
|
+
function t(n) {
|
|
2124
|
+
var r = n.length, a = new n.constructor(r);
|
|
2125
|
+
return r && typeof n[0] == "string" && e.call(n, "index") && (a.index = n.index, a.input = n.input), a;
|
|
2126
|
+
}
|
|
2127
|
+
return Zt = t, Zt;
|
|
2128
|
+
}
|
|
2129
|
+
var te, Ge;
|
|
2130
|
+
function Rr() {
|
|
2131
|
+
if (Ge) return te;
|
|
2132
|
+
Ge = 1;
|
|
2133
|
+
var i = fn();
|
|
2134
|
+
function e(t, n) {
|
|
2135
|
+
var r = n ? i(t.buffer) : t.buffer;
|
|
2136
|
+
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
2137
|
+
}
|
|
2138
|
+
return te = e, te;
|
|
2139
|
+
}
|
|
2140
|
+
var ee, Xe;
|
|
2141
|
+
function Nr() {
|
|
2142
|
+
if (Xe) return ee;
|
|
2143
|
+
Xe = 1;
|
|
2144
|
+
var i = /\w*$/;
|
|
2145
|
+
function e(t) {
|
|
2146
|
+
var n = new t.constructor(t.source, i.exec(t));
|
|
2147
|
+
return n.lastIndex = t.lastIndex, n;
|
|
2148
|
+
}
|
|
2149
|
+
return ee = e, ee;
|
|
2150
|
+
}
|
|
2151
|
+
var ne, We;
|
|
2152
|
+
function Fr() {
|
|
2153
|
+
if (We) return ne;
|
|
2154
|
+
We = 1;
|
|
2155
|
+
var i = _n(), e = i ? i.prototype : void 0, t = e ? e.valueOf : void 0;
|
|
2156
|
+
function n(r) {
|
|
2157
|
+
return t ? Object(t.call(r)) : {};
|
|
2158
|
+
}
|
|
2159
|
+
return ne = n, ne;
|
|
2160
|
+
}
|
|
2161
|
+
var re, ze;
|
|
2162
|
+
function Pr() {
|
|
2163
|
+
if (ze) return re;
|
|
2164
|
+
ze = 1;
|
|
2165
|
+
var i = fn(), e = Rr(), t = Nr(), n = Fr(), r = Bn(), a = "[object Boolean]", u = "[object Date]", l = "[object Map]", p = "[object Number]", T = "[object RegExp]", v = "[object Set]", P = "[object String]", N = "[object Symbol]", m = "[object ArrayBuffer]", E = "[object DataView]", h = "[object Float32Array]", S = "[object Float64Array]", g = "[object Int8Array]", w = "[object Int16Array]", G = "[object Int32Array]", f = "[object Uint8Array]", Q = "[object Uint8ClampedArray]", ht = "[object Uint16Array]", M = "[object Uint32Array]";
|
|
2166
|
+
function Z(I, X, tt) {
|
|
2167
|
+
var W = I.constructor;
|
|
2168
|
+
switch (X) {
|
|
2169
|
+
case m:
|
|
2170
|
+
return i(I);
|
|
2171
|
+
case a:
|
|
2172
|
+
case u:
|
|
2173
|
+
return new W(+I);
|
|
2174
|
+
case E:
|
|
2175
|
+
return e(I, tt);
|
|
2176
|
+
case h:
|
|
2177
|
+
case S:
|
|
2178
|
+
case g:
|
|
2179
|
+
case w:
|
|
2180
|
+
case G:
|
|
2181
|
+
case f:
|
|
2182
|
+
case Q:
|
|
2183
|
+
case ht:
|
|
2184
|
+
case M:
|
|
2185
|
+
return r(I, tt);
|
|
2186
|
+
case l:
|
|
2187
|
+
return new W();
|
|
2188
|
+
case p:
|
|
2189
|
+
case P:
|
|
2190
|
+
return new W(I);
|
|
2191
|
+
case T:
|
|
2192
|
+
return t(I);
|
|
2193
|
+
case v:
|
|
2194
|
+
return new W();
|
|
2195
|
+
case N:
|
|
2196
|
+
return n(I);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
return re = Z, re;
|
|
2200
|
+
}
|
|
2201
|
+
var ie, Ke;
|
|
2202
|
+
function Sr() {
|
|
2203
|
+
if (Ke) return ie;
|
|
2204
|
+
Ke = 1;
|
|
2205
|
+
var i = ve(), e = bn(), t = "[object Map]";
|
|
2206
|
+
function n(r) {
|
|
2207
|
+
return e(r) && i(r) == t;
|
|
2208
|
+
}
|
|
2209
|
+
return ie = n, ie;
|
|
2210
|
+
}
|
|
2211
|
+
var ae, Ye;
|
|
2212
|
+
function Vr() {
|
|
2213
|
+
if (Ye) return ae;
|
|
2214
|
+
Ye = 1;
|
|
2215
|
+
var i = Sr(), e = pn(), t = hn(), n = t && t.isMap, r = n ? e(n) : i;
|
|
2216
|
+
return ae = r, ae;
|
|
2217
|
+
}
|
|
2218
|
+
var oe, Je;
|
|
2219
|
+
function jr() {
|
|
2220
|
+
if (Je) return oe;
|
|
2221
|
+
Je = 1;
|
|
2222
|
+
var i = ve(), e = bn(), t = "[object Set]";
|
|
2223
|
+
function n(r) {
|
|
2224
|
+
return e(r) && i(r) == t;
|
|
2225
|
+
}
|
|
2226
|
+
return oe = n, oe;
|
|
2227
|
+
}
|
|
2228
|
+
var ue, Qe;
|
|
2229
|
+
function Hr() {
|
|
2230
|
+
if (Qe) return ue;
|
|
2231
|
+
Qe = 1;
|
|
2232
|
+
var i = jr(), e = pn(), t = hn(), n = t && t.isSet, r = n ? e(n) : i;
|
|
2233
|
+
return ue = r, ue;
|
|
2234
|
+
}
|
|
2235
|
+
var le, Ze;
|
|
2236
|
+
function wr() {
|
|
2237
|
+
if (Ze) return le;
|
|
2238
|
+
Ze = 1;
|
|
2239
|
+
var i = Vn(), e = Er(), t = jn(), n = Tr(), r = Cr(), a = Hn(), u = kn(), l = Lr(), p = Ar(), T = Zn(), v = On(), P = ve(), N = Or(), m = Pr(), E = wn(), h = dn(), S = Dn(), g = Vr(), w = Mn(), G = Hr(), f = mn(), Q = ge(), ht = 1, M = 2, Z = 4, I = "[object Arguments]", X = "[object Array]", tt = "[object Boolean]", W = "[object Date]", St = "[object Error]", _t = "[object Function]", Vt = "[object GeneratorFunction]", jt = "[object Map]", Ht = "[object Number]", bt = "[object Object]", C = "[object RegExp]", L = "[object Set]", wt = "[object String]", et = "[object Symbol]", Tt = "[object WeakMap]", ut = "[object ArrayBuffer]", V = "[object DataView]", vt = "[object Float32Array]", Dt = "[object Float64Array]", $t = "[object Int8Array]", Ct = "[object Int16Array]", lt = "[object Int32Array]", gt = "[object Uint8Array]", mt = "[object Uint8ClampedArray]", Lt = "[object Uint16Array]", Ut = "[object Uint32Array]", c = {};
|
|
2240
|
+
c[I] = c[X] = c[ut] = c[V] = c[tt] = c[W] = c[vt] = c[Dt] = c[$t] = c[Ct] = c[lt] = c[jt] = c[Ht] = c[bt] = c[C] = c[L] = c[wt] = c[et] = c[gt] = c[mt] = c[Lt] = c[Ut] = !0, c[St] = c[_t] = c[Tt] = !1;
|
|
2241
|
+
function st(s, z, K, Bt, nt, x) {
|
|
2242
|
+
var d, Y = z & ht, rt = z & M, yt = z & Z;
|
|
2243
|
+
if (K && (d = nt ? K(s, Bt, nt, x) : K(s)), d !== void 0)
|
|
2244
|
+
return d;
|
|
2245
|
+
if (!w(s))
|
|
2246
|
+
return s;
|
|
2247
|
+
var it = h(s);
|
|
2248
|
+
if (it) {
|
|
2249
|
+
if (d = N(s), !Y)
|
|
2250
|
+
return u(s, d);
|
|
2251
|
+
} else {
|
|
2252
|
+
var F = P(s), At = F == _t || F == Vt;
|
|
2253
|
+
if (S(s))
|
|
2254
|
+
return a(s, Y);
|
|
2255
|
+
if (F == bt || F == I || At && !nt) {
|
|
2256
|
+
if (d = rt || At ? {} : E(s), !Y)
|
|
2257
|
+
return rt ? p(s, r(d, s)) : l(s, n(d, s));
|
|
2258
|
+
} else {
|
|
2259
|
+
if (!c[F])
|
|
2260
|
+
return nt ? s : {};
|
|
2261
|
+
d = m(s, F, Y);
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
x || (x = new i());
|
|
2265
|
+
var k = x.get(s);
|
|
2266
|
+
if (k)
|
|
2267
|
+
return k;
|
|
2268
|
+
x.set(s, d), G(s) ? s.forEach(function(A) {
|
|
2269
|
+
d.add(st(A, z, K, A, s, x));
|
|
2270
|
+
}) : g(s) && s.forEach(function(A, O) {
|
|
2271
|
+
d.set(O, st(A, z, K, O, s, x));
|
|
2272
|
+
});
|
|
2273
|
+
var J = yt ? rt ? v : T : rt ? Q : f, ct = it ? void 0 : J(s);
|
|
2274
|
+
return e(ct || s, function(A, O) {
|
|
2275
|
+
ct && (O = A, A = s[O]), t(d, O, st(A, z, K, O, s, x));
|
|
2276
|
+
}), d;
|
|
2277
|
+
}
|
|
2278
|
+
return le = st, le;
|
|
2279
|
+
}
|
|
2280
|
+
var se, tn;
|
|
2281
|
+
function Dr() {
|
|
2282
|
+
if (tn) return se;
|
|
2283
|
+
tn = 1;
|
|
2284
|
+
function i(e) {
|
|
2285
|
+
var t = e == null ? 0 : e.length;
|
|
2286
|
+
return t ? e[t - 1] : void 0;
|
|
2287
|
+
}
|
|
2288
|
+
return se = i, se;
|
|
2289
|
+
}
|
|
2290
|
+
var ce, en;
|
|
2291
|
+
function $r() {
|
|
2292
|
+
if (en) return ce;
|
|
2293
|
+
en = 1;
|
|
2294
|
+
function i(e, t, n) {
|
|
2295
|
+
var r = -1, a = e.length;
|
|
2296
|
+
t < 0 && (t = -t > a ? 0 : a + t), n = n > a ? a : n, n < 0 && (n += a), a = t > n ? 0 : n - t >>> 0, t >>>= 0;
|
|
2297
|
+
for (var u = Array(a); ++r < a; )
|
|
2298
|
+
u[r] = e[r + t];
|
|
2299
|
+
return u;
|
|
2300
|
+
}
|
|
2301
|
+
return ce = i, ce;
|
|
2302
|
+
}
|
|
2303
|
+
var de, nn;
|
|
2304
|
+
function Ur() {
|
|
2305
|
+
if (nn) return de;
|
|
2306
|
+
nn = 1;
|
|
2307
|
+
var i = nr(), e = $r();
|
|
2308
|
+
function t(n, r) {
|
|
2309
|
+
return r.length < 2 ? n : i(n, e(r, 0, -1));
|
|
2310
|
+
}
|
|
2311
|
+
return de = t, de;
|
|
2312
|
+
}
|
|
2313
|
+
var fe, rn;
|
|
2314
|
+
function Br() {
|
|
2315
|
+
if (rn) return fe;
|
|
2316
|
+
rn = 1;
|
|
2317
|
+
var i = gn(), e = Dr(), t = Ur(), n = tr();
|
|
2318
|
+
function r(a, u) {
|
|
2319
|
+
return u = i(u, a), a = t(a, u), a == null || delete a[n(e(u))];
|
|
2320
|
+
}
|
|
2321
|
+
return fe = r, fe;
|
|
2322
|
+
}
|
|
2323
|
+
var pe, an;
|
|
2324
|
+
function Mr() {
|
|
2325
|
+
if (an) return pe;
|
|
2326
|
+
an = 1;
|
|
2327
|
+
var i = $n();
|
|
2328
|
+
function e(t) {
|
|
2329
|
+
return i(t) ? void 0 : t;
|
|
2330
|
+
}
|
|
2331
|
+
return pe = e, pe;
|
|
2332
|
+
}
|
|
2333
|
+
var he, on;
|
|
2334
|
+
function kr() {
|
|
2335
|
+
if (on) return he;
|
|
2336
|
+
on = 1;
|
|
2337
|
+
var i = xr();
|
|
2338
|
+
function e(t) {
|
|
2339
|
+
var n = t == null ? 0 : t.length;
|
|
2340
|
+
return n ? i(t, 1) : [];
|
|
2341
|
+
}
|
|
2342
|
+
return he = e, he;
|
|
2343
|
+
}
|
|
2344
|
+
var _e, un;
|
|
2345
|
+
function qr() {
|
|
2346
|
+
if (un) return _e;
|
|
2347
|
+
un = 1;
|
|
2348
|
+
var i = kr(), e = qn(), t = Un();
|
|
2349
|
+
function n(r) {
|
|
2350
|
+
return t(e(r, void 0, i), r + "");
|
|
2351
|
+
}
|
|
2352
|
+
return _e = n, _e;
|
|
2353
|
+
}
|
|
2354
|
+
var be, ln;
|
|
2355
|
+
function Gr() {
|
|
2356
|
+
if (ln) return be;
|
|
2357
|
+
ln = 1;
|
|
2358
|
+
var i = Qn(), e = wr(), t = Br(), n = gn(), r = Et(), a = Mr(), u = qr(), l = On(), p = 1, T = 2, v = 4, P = u(function(N, m) {
|
|
2359
|
+
var E = {};
|
|
2360
|
+
if (N == null)
|
|
2361
|
+
return E;
|
|
2362
|
+
var h = !1;
|
|
2363
|
+
m = i(m, function(g) {
|
|
2364
|
+
return g = n(g, N), h || (h = g.length > 1), g;
|
|
2365
|
+
}), r(N, l(N), E), h && (E = e(E, p | T | v, a));
|
|
2366
|
+
for (var S = m.length; S--; )
|
|
2367
|
+
t(E, m[S]);
|
|
2368
|
+
return E;
|
|
2369
|
+
});
|
|
2370
|
+
return be = P, be;
|
|
2371
|
+
}
|
|
2372
|
+
var Xr = Gr();
|
|
2373
|
+
const Jr = /* @__PURE__ */ Sn(Xr);
|
|
2930
2374
|
export {
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
bn as M,
|
|
2935
|
-
mn as O,
|
|
2936
|
-
ut as R,
|
|
2937
|
-
er as Z,
|
|
2938
|
-
xn as a,
|
|
2939
|
-
Cn as b,
|
|
2940
|
-
_n as d,
|
|
2941
|
-
Gt as h,
|
|
2942
|
-
vt as k,
|
|
2943
|
-
zt as x
|
|
2375
|
+
Jr as M,
|
|
2376
|
+
ye as x,
|
|
2377
|
+
xr as z
|
|
2944
2378
|
};
|