@hortiview/default-components 1.4.0 → 1.4.2
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/README.md +1 -1
- package/dist/{Iconify-Cjdr-ccS.js → Iconify-CUZc8WnW.js} +17 -16
- package/dist/InfoCard-CFmkh7DJ.js +58 -0
- package/dist/{LoadingSpinner-FRQEZvxs.js → LoadingSpinner-DVBQ1tGJ.js} +178 -192
- package/dist/OfflineView-DHtzNLwt-BmxTfGZq.js +46 -0
- package/dist/assets/InfoCard.css +1 -0
- package/dist/assets/OfflineView-DHtzNLwt.css +1 -0
- package/dist/{component-DsB0poTj-BDGiEcbP.js → component-DsB0poTj-CeLHB9Ok.js} +3 -3
- package/dist/components/DefaultFormNumber/DefaultFormNumber.js +1337 -505
- package/dist/components/DefaultFormSelect/DefaultFormSelect.js +25 -25
- package/dist/components/DefaultLoadingSpinner/DefaultLoadingSpinner.js +2 -2
- package/dist/components/GenericTable/GenericTable.js +11524 -9875
- package/dist/components/HealthChecks/DataBaseHealthCheck.d.ts +2 -2
- package/dist/components/HealthChecks/DataBaseHealthCheck.js +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.d.ts +2 -2
- package/dist/components/HealthChecks/DefaultHealthCheck.js +2 -2
- package/dist/components/HealthChecks/IotServiceHealthCheck.d.ts +2 -2
- package/dist/components/HealthChecks/IotServiceHealthCheck.js +2 -2
- package/dist/components/HealthChecks/PlatformHealthCheck.d.ts +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-0QJC9VS2-CNPew9LK.js +360 -0
- package/dist/{index.es--yyG47az-DBKBm3yD.js → index.es-BGordhUK-C36NK84Q.js} +400 -365
- package/dist/index.es-Bg8hxXM8-BlFd894m.js +1083 -0
- package/dist/index.es-Bo1Rhtyb-B650l9Yk.js +79 -0
- package/dist/index.es-CK4oZMKs-Da8pin7D.js +14077 -0
- package/dist/{index.es-U5-b20Gv-ChQ_O81C.js → index.es-Cq04gn3U-Bvzrqtm6.js} +369 -535
- package/dist/{omit-1Eom1PmQ-BLY9iMqj.js → index.es-DENZVv7_-PUEN9sIa.js} +495 -869
- package/dist/index.es-IXyb5F6n-B5afcHX8.js +452 -0
- package/dist/isTypedArray-Dw_IY7Zq-BZ-4N8-Z.js +210 -0
- package/dist/main.d.ts +3 -2
- package/dist/main.js +8 -8
- package/dist/slicedToArray-BWk2gTCn-Cfzj7tjm.js +432 -0
- package/dist/useHelperText-3ahu6tTS.js +391 -0
- package/dist/useTranslation-CVaIJbcK.js +5277 -0
- package/package.json +4 -4
- package/dist/HealthCheckFailed-CqLYAwpc.js +0 -47
- package/dist/OfflineView-HbuDPpQL-kqlzfoUS.js +0 -46
- package/dist/assets/HealthCheckFailed.css +0 -1
- package/dist/assets/OfflineView-HbuDPpQL.css +0 -1
- package/dist/index.es-Bx1E5MPK-CaV59rEP.js +0 -344
- package/dist/index.es-CzUKBF7E-C0X-mcdY.js +0 -13567
- package/dist/index.es-D-ph6ImM-CWxTa_iD.js +0 -63
- package/dist/index.es-DDo_AHL0-VqD9ikmU.js +0 -1033
- package/dist/index.es-Kg9soDed-BkTwDySy.js +0 -440
- package/dist/useHelperText-DD9_Dtkk.js +0 -21
- package/dist/useTranslation-B_ODv8uN.js +0 -4306
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { r as Ot, n as wn, o as Ct, H as jn, L as Bn, q as Ne, h as tt, e as U, g as A, j as c, i as et, Z as Fe, c as kn, p as Pe, f as Mn, v as Un, s as We, B as $e, l as ze, k as nt, X as qn, a as Ve, b as Xn, t as a, m as F, w as Gn } from "./useTranslation-CVaIJbcK.js";
|
|
2
|
+
import { B as He, y as Wn, v as Se, K as $n, a as zn, W as Zn } from "./index.es-Cq04gn3U-Bvzrqtm6.js";
|
|
3
|
+
import { S as B } from "./slicedToArray-BWk2gTCn-Cfzj7tjm.js";
|
|
4
|
+
import u, { forwardRef as At, useState as k, useRef as O, useMemo as Yn, useEffect as g, useImperativeHandle as Ze, useCallback as De } from "react";
|
|
5
|
+
import { p as pt, U as we, _ as Kn, O as Jn } from "./component-DsB0poTj-CeLHB9Ok.js";
|
|
5
6
|
/**
|
|
6
7
|
* @license
|
|
7
8
|
* Copyright 2018 Google Inc.
|
|
@@ -24,7 +25,7 @@ import { p as Ot, U as Ae, _ as ir, O as ar } from "./component-DsB0poTj-BDGiEcb
|
|
|
24
25
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
26
|
* THE SOFTWARE.
|
|
26
27
|
*/
|
|
27
|
-
var
|
|
28
|
+
var M = {
|
|
28
29
|
LINE_RIPPLE_ACTIVE: "mdc-line-ripple--active",
|
|
29
30
|
LINE_RIPPLE_DEACTIVATING: "mdc-line-ripple--deactivating"
|
|
30
31
|
};
|
|
@@ -50,19 +51,19 @@ var at = {
|
|
|
50
51
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
51
52
|
* THE SOFTWARE.
|
|
52
53
|
*/
|
|
53
|
-
var
|
|
54
|
+
var Qn = (
|
|
54
55
|
/** @class */
|
|
55
|
-
function(
|
|
56
|
-
|
|
56
|
+
function(r) {
|
|
57
|
+
A(e, r);
|
|
57
58
|
function e(t) {
|
|
58
|
-
var n =
|
|
59
|
-
return n.transitionEndHandler_ = function(
|
|
60
|
-
return n.handleTransitionEnd(
|
|
59
|
+
var n = r.call(this, c(c({}, e.defaultAdapter), t)) || this;
|
|
60
|
+
return n.transitionEndHandler_ = function(i) {
|
|
61
|
+
return n.handleTransitionEnd(i);
|
|
61
62
|
}, n;
|
|
62
63
|
}
|
|
63
64
|
return Object.defineProperty(e, "cssClasses", {
|
|
64
65
|
get: function() {
|
|
65
|
-
return
|
|
66
|
+
return M;
|
|
66
67
|
},
|
|
67
68
|
enumerable: !1,
|
|
68
69
|
configurable: !0
|
|
@@ -94,16 +95,16 @@ var or = (
|
|
|
94
95
|
}, e.prototype.destroy = function() {
|
|
95
96
|
this.adapter.deregisterEventHandler("transitionend", this.transitionEndHandler_);
|
|
96
97
|
}, e.prototype.activate = function() {
|
|
97
|
-
this.adapter.removeClass(
|
|
98
|
+
this.adapter.removeClass(M.LINE_RIPPLE_DEACTIVATING), this.adapter.addClass(M.LINE_RIPPLE_ACTIVE);
|
|
98
99
|
}, e.prototype.setRippleCenter = function(t) {
|
|
99
100
|
this.adapter.setStyle("transform-origin", t + "px center");
|
|
100
101
|
}, e.prototype.deactivate = function() {
|
|
101
|
-
this.adapter.addClass(
|
|
102
|
+
this.adapter.addClass(M.LINE_RIPPLE_DEACTIVATING);
|
|
102
103
|
}, e.prototype.handleTransitionEnd = function(t) {
|
|
103
|
-
var n = this.adapter.hasClass(
|
|
104
|
-
t.propertyName === "opacity" && n && (this.adapter.removeClass(
|
|
104
|
+
var n = this.adapter.hasClass(M.LINE_RIPPLE_DEACTIVATING);
|
|
105
|
+
t.propertyName === "opacity" && n && (this.adapter.removeClass(M.LINE_RIPPLE_ACTIVE), this.adapter.removeClass(M.LINE_RIPPLE_DEACTIVATING));
|
|
105
106
|
}, e;
|
|
106
|
-
}(
|
|
107
|
+
}(nt)
|
|
107
108
|
);
|
|
108
109
|
/**
|
|
109
110
|
* @license
|
|
@@ -127,12 +128,12 @@ var or = (
|
|
|
127
128
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
128
129
|
* THE SOFTWARE.
|
|
129
130
|
*/
|
|
130
|
-
var
|
|
131
|
+
var Ye = (
|
|
131
132
|
/** @class */
|
|
132
|
-
function(
|
|
133
|
-
|
|
133
|
+
function(r) {
|
|
134
|
+
A(e, r);
|
|
134
135
|
function e() {
|
|
135
|
-
return
|
|
136
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
136
137
|
}
|
|
137
138
|
return e.attachTo = function(t) {
|
|
138
139
|
return new e(t);
|
|
@@ -144,28 +145,28 @@ var xn = (
|
|
|
144
145
|
this.foundation.setRippleCenter(t);
|
|
145
146
|
}, e.prototype.getDefaultFoundation = function() {
|
|
146
147
|
var t = this, n = {
|
|
147
|
-
addClass: function(
|
|
148
|
-
return t.root.classList.add(
|
|
148
|
+
addClass: function(i) {
|
|
149
|
+
return t.root.classList.add(i);
|
|
149
150
|
},
|
|
150
|
-
removeClass: function(
|
|
151
|
-
return t.root.classList.remove(
|
|
151
|
+
removeClass: function(i) {
|
|
152
|
+
return t.root.classList.remove(i);
|
|
152
153
|
},
|
|
153
|
-
hasClass: function(
|
|
154
|
-
return t.root.classList.contains(
|
|
154
|
+
hasClass: function(i) {
|
|
155
|
+
return t.root.classList.contains(i);
|
|
155
156
|
},
|
|
156
|
-
setStyle: function(
|
|
157
|
-
return t.root.style.setProperty(
|
|
157
|
+
setStyle: function(i, o) {
|
|
158
|
+
return t.root.style.setProperty(i, o);
|
|
158
159
|
},
|
|
159
|
-
registerEventHandler: function(
|
|
160
|
-
return t.listen(
|
|
160
|
+
registerEventHandler: function(i, o) {
|
|
161
|
+
return t.listen(i, o);
|
|
161
162
|
},
|
|
162
|
-
deregisterEventHandler: function(
|
|
163
|
-
return t.unlisten(
|
|
163
|
+
deregisterEventHandler: function(i, o) {
|
|
164
|
+
return t.unlisten(i, o);
|
|
164
165
|
}
|
|
165
166
|
};
|
|
166
|
-
return new
|
|
167
|
+
return new Qn(n);
|
|
167
168
|
}, e;
|
|
168
|
-
}(
|
|
169
|
+
}(et)
|
|
169
170
|
);
|
|
170
171
|
/**
|
|
171
172
|
* @license
|
|
@@ -189,10 +190,10 @@ var xn = (
|
|
|
189
190
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
190
191
|
* THE SOFTWARE.
|
|
191
192
|
*/
|
|
192
|
-
var
|
|
193
|
+
var Ke = {
|
|
193
194
|
ROOT: "mdc-text-field-character-counter"
|
|
194
|
-
},
|
|
195
|
-
ROOT_SELECTOR: "." +
|
|
195
|
+
}, ti = {
|
|
196
|
+
ROOT_SELECTOR: "." + Ke.ROOT
|
|
196
197
|
};
|
|
197
198
|
/**
|
|
198
199
|
* @license
|
|
@@ -216,22 +217,22 @@ var En = {
|
|
|
216
217
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
217
218
|
* THE SOFTWARE.
|
|
218
219
|
*/
|
|
219
|
-
var
|
|
220
|
+
var Je = (
|
|
220
221
|
/** @class */
|
|
221
|
-
function(
|
|
222
|
-
|
|
222
|
+
function(r) {
|
|
223
|
+
A(e, r);
|
|
223
224
|
function e(t) {
|
|
224
|
-
return
|
|
225
|
+
return r.call(this, c(c({}, e.defaultAdapter), t)) || this;
|
|
225
226
|
}
|
|
226
227
|
return Object.defineProperty(e, "cssClasses", {
|
|
227
228
|
get: function() {
|
|
228
|
-
return
|
|
229
|
+
return Ke;
|
|
229
230
|
},
|
|
230
231
|
enumerable: !1,
|
|
231
232
|
configurable: !0
|
|
232
233
|
}), Object.defineProperty(e, "strings", {
|
|
233
234
|
get: function() {
|
|
234
|
-
return
|
|
235
|
+
return ti;
|
|
235
236
|
},
|
|
236
237
|
enumerable: !1,
|
|
237
238
|
configurable: !0
|
|
@@ -250,7 +251,7 @@ var Tn = (
|
|
|
250
251
|
}), e.prototype.setCounterValue = function(t, n) {
|
|
251
252
|
t = Math.min(t, n), this.adapter.setContent(t + " / " + n);
|
|
252
253
|
}, e;
|
|
253
|
-
}(
|
|
254
|
+
}(nt)
|
|
254
255
|
);
|
|
255
256
|
/**
|
|
256
257
|
* @license
|
|
@@ -274,12 +275,12 @@ var Tn = (
|
|
|
274
275
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
275
276
|
* THE SOFTWARE.
|
|
276
277
|
*/
|
|
277
|
-
var
|
|
278
|
+
var ei = (
|
|
278
279
|
/** @class */
|
|
279
|
-
function(
|
|
280
|
-
|
|
280
|
+
function(r) {
|
|
281
|
+
A(e, r);
|
|
281
282
|
function e() {
|
|
282
|
-
return
|
|
283
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
283
284
|
}
|
|
284
285
|
return e.attachTo = function(t) {
|
|
285
286
|
return new e(t);
|
|
@@ -292,13 +293,13 @@ var lr = (
|
|
|
292
293
|
configurable: !0
|
|
293
294
|
}), e.prototype.getDefaultFoundation = function() {
|
|
294
295
|
var t = this, n = {
|
|
295
|
-
setContent: function(
|
|
296
|
-
t.root.textContent =
|
|
296
|
+
setContent: function(i) {
|
|
297
|
+
t.root.textContent = i;
|
|
297
298
|
}
|
|
298
299
|
};
|
|
299
|
-
return new
|
|
300
|
+
return new Je(n);
|
|
300
301
|
}, e;
|
|
301
|
-
}(
|
|
302
|
+
}(et)
|
|
302
303
|
);
|
|
303
304
|
/**
|
|
304
305
|
* @license
|
|
@@ -322,7 +323,7 @@ var lr = (
|
|
|
322
323
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
323
324
|
* THE SOFTWARE.
|
|
324
325
|
*/
|
|
325
|
-
var
|
|
326
|
+
var I = {
|
|
326
327
|
ARIA_CONTROLS: "aria-controls",
|
|
327
328
|
ARIA_DESCRIBEDBY: "aria-describedby",
|
|
328
329
|
INPUT_SELECTOR: ".mdc-text-field__input",
|
|
@@ -333,7 +334,7 @@ var H = {
|
|
|
333
334
|
PREFIX_SELECTOR: ".mdc-text-field__affix--prefix",
|
|
334
335
|
SUFFIX_SELECTOR: ".mdc-text-field__affix--suffix",
|
|
335
336
|
TRAILING_ICON_SELECTOR: ".mdc-text-field__icon--trailing"
|
|
336
|
-
},
|
|
337
|
+
}, ht = {
|
|
337
338
|
DISABLED: "mdc-text-field--disabled",
|
|
338
339
|
FOCUSED: "mdc-text-field--focused",
|
|
339
340
|
HELPER_LINE: "mdc-text-field-helper-line",
|
|
@@ -345,9 +346,9 @@ var H = {
|
|
|
345
346
|
TEXTAREA: "mdc-text-field--textarea",
|
|
346
347
|
WITH_LEADING_ICON: "mdc-text-field--with-leading-icon",
|
|
347
348
|
WITH_TRAILING_ICON: "mdc-text-field--with-trailing-icon"
|
|
348
|
-
},
|
|
349
|
+
}, je = {
|
|
349
350
|
LABEL_SCALE: 0.75
|
|
350
|
-
},
|
|
351
|
+
}, ni = [
|
|
351
352
|
"pattern",
|
|
352
353
|
"min",
|
|
353
354
|
"max",
|
|
@@ -355,7 +356,7 @@ var H = {
|
|
|
355
356
|
"step",
|
|
356
357
|
"minlength",
|
|
357
358
|
"maxlength"
|
|
358
|
-
],
|
|
359
|
+
], ii = [
|
|
359
360
|
"color",
|
|
360
361
|
"date",
|
|
361
362
|
"datetime-local",
|
|
@@ -386,49 +387,49 @@ var H = {
|
|
|
386
387
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
387
388
|
* THE SOFTWARE.
|
|
388
389
|
*/
|
|
389
|
-
var
|
|
390
|
+
var Be = ["mousedown", "touchstart"], ke = ["click", "keydown"], ri = (
|
|
390
391
|
/** @class */
|
|
391
|
-
function(
|
|
392
|
-
|
|
392
|
+
function(r) {
|
|
393
|
+
A(e, r);
|
|
393
394
|
function e(t, n) {
|
|
394
395
|
n === void 0 && (n = {});
|
|
395
|
-
var
|
|
396
|
-
return
|
|
397
|
-
return
|
|
398
|
-
},
|
|
399
|
-
return
|
|
400
|
-
},
|
|
401
|
-
return
|
|
402
|
-
},
|
|
403
|
-
return
|
|
404
|
-
},
|
|
405
|
-
return
|
|
406
|
-
},
|
|
407
|
-
return
|
|
408
|
-
},
|
|
396
|
+
var i = r.call(this, c(c({}, e.defaultAdapter), t)) || this;
|
|
397
|
+
return i.isFocused_ = !1, i.receivedUserInput_ = !1, i.isValid_ = !0, i.useNativeValidation_ = !0, i.validateOnValueChange_ = !0, i.helperText_ = n.helperText, i.characterCounter_ = n.characterCounter, i.leadingIcon_ = n.leadingIcon, i.trailingIcon_ = n.trailingIcon, i.inputFocusHandler_ = function() {
|
|
398
|
+
return i.activateFocus();
|
|
399
|
+
}, i.inputBlurHandler_ = function() {
|
|
400
|
+
return i.deactivateFocus();
|
|
401
|
+
}, i.inputInputHandler_ = function() {
|
|
402
|
+
return i.handleInput();
|
|
403
|
+
}, i.setPointerXOffset_ = function(o) {
|
|
404
|
+
return i.setTransformOrigin(o);
|
|
405
|
+
}, i.textFieldInteractionHandler_ = function() {
|
|
406
|
+
return i.handleTextFieldInteraction();
|
|
407
|
+
}, i.validationAttributeChangeHandler_ = function(o) {
|
|
408
|
+
return i.handleValidationAttributeChange(o);
|
|
409
|
+
}, i;
|
|
409
410
|
}
|
|
410
411
|
return Object.defineProperty(e, "cssClasses", {
|
|
411
412
|
get: function() {
|
|
412
|
-
return
|
|
413
|
+
return ht;
|
|
413
414
|
},
|
|
414
415
|
enumerable: !1,
|
|
415
416
|
configurable: !0
|
|
416
417
|
}), Object.defineProperty(e, "strings", {
|
|
417
418
|
get: function() {
|
|
418
|
-
return
|
|
419
|
+
return I;
|
|
419
420
|
},
|
|
420
421
|
enumerable: !1,
|
|
421
422
|
configurable: !0
|
|
422
423
|
}), Object.defineProperty(e, "numbers", {
|
|
423
424
|
get: function() {
|
|
424
|
-
return
|
|
425
|
+
return je;
|
|
425
426
|
},
|
|
426
427
|
enumerable: !1,
|
|
427
428
|
configurable: !0
|
|
428
429
|
}), Object.defineProperty(e.prototype, "shouldAlwaysFloat_", {
|
|
429
430
|
get: function() {
|
|
430
431
|
var t = this.getNativeInput_().type;
|
|
431
|
-
return
|
|
432
|
+
return ii.indexOf(t) >= 0;
|
|
432
433
|
},
|
|
433
434
|
enumerable: !1,
|
|
434
435
|
configurable: !0
|
|
@@ -513,16 +514,16 @@ var Re = ["mousedown", "touchstart"], Ne = ["click", "keydown"], dr = (
|
|
|
513
514
|
configurable: !0
|
|
514
515
|
}), e.prototype.init = function() {
|
|
515
516
|
var t = this;
|
|
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_),
|
|
517
|
+
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_), Be.forEach(function(n) {
|
|
517
518
|
t.adapter.registerInputInteractionHandler(n, t.setPointerXOffset_);
|
|
518
|
-
}),
|
|
519
|
+
}), ke.forEach(function(n) {
|
|
519
520
|
t.adapter.registerTextFieldInteractionHandler(n, t.textFieldInteractionHandler_);
|
|
520
521
|
}), this.validationObserver_ = this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_), this.setCharacterCounter_(this.getValue().length);
|
|
521
522
|
}, e.prototype.destroy = function() {
|
|
522
523
|
var t = this;
|
|
523
|
-
this.adapter.deregisterInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.deregisterInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.deregisterInputInteractionHandler("input", this.inputInputHandler_),
|
|
524
|
+
this.adapter.deregisterInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.deregisterInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.deregisterInputInteractionHandler("input", this.inputInputHandler_), Be.forEach(function(n) {
|
|
524
525
|
t.adapter.deregisterInputInteractionHandler(n, t.setPointerXOffset_);
|
|
525
|
-
}),
|
|
526
|
+
}), ke.forEach(function(n) {
|
|
526
527
|
t.adapter.deregisterTextFieldInteractionHandler(n, t.textFieldInteractionHandler_);
|
|
527
528
|
}), this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_);
|
|
528
529
|
}, e.prototype.handleTextFieldInteraction = function() {
|
|
@@ -530,13 +531,13 @@ var Re = ["mousedown", "touchstart"], Ne = ["click", "keydown"], dr = (
|
|
|
530
531
|
t && t.disabled || (this.receivedUserInput_ = !0);
|
|
531
532
|
}, e.prototype.handleValidationAttributeChange = function(t) {
|
|
532
533
|
var n = this;
|
|
533
|
-
t.some(function(
|
|
534
|
-
return
|
|
534
|
+
t.some(function(i) {
|
|
535
|
+
return ni.indexOf(i) > -1 ? (n.styleValidity_(!0), n.adapter.setLabelRequired(n.getNativeInput_().required), !0) : !1;
|
|
535
536
|
}), t.indexOf("maxlength") > -1 && this.setCharacterCounter_(this.getValue().length);
|
|
536
537
|
}, e.prototype.notchOutline = function(t) {
|
|
537
538
|
if (!(!this.adapter.hasOutline() || !this.adapter.hasLabel()))
|
|
538
539
|
if (t) {
|
|
539
|
-
var n = this.adapter.getLabelWidth() *
|
|
540
|
+
var n = this.adapter.getLabelWidth() * je.LABEL_SCALE;
|
|
540
541
|
this.adapter.notchOutline(n);
|
|
541
542
|
} else
|
|
542
543
|
this.adapter.closeOutline();
|
|
@@ -544,8 +545,8 @@ var Re = ["mousedown", "touchstart"], Ne = ["click", "keydown"], dr = (
|
|
|
544
545
|
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();
|
|
545
546
|
}, e.prototype.setTransformOrigin = function(t) {
|
|
546
547
|
if (!(this.isDisabled() || this.adapter.hasOutline())) {
|
|
547
|
-
var n = t.touches,
|
|
548
|
-
this.adapter.setLineRippleTransformOrigin(
|
|
548
|
+
var n = t.touches, i = n ? n[0] : t, o = i.target.getBoundingClientRect(), s = i.clientX - o.left;
|
|
549
|
+
this.adapter.setLineRippleTransformOrigin(s);
|
|
549
550
|
}
|
|
550
551
|
}, e.prototype.handleInput = function() {
|
|
551
552
|
this.autoCompleteFocus(), this.setCharacterCounter_(this.getValue().length);
|
|
@@ -604,18 +605,18 @@ var Re = ["mousedown", "touchstart"], Ne = ["click", "keydown"], dr = (
|
|
|
604
605
|
var n = e.cssClasses.INVALID;
|
|
605
606
|
if (t ? this.adapter.removeClass(n) : this.adapter.addClass(n), this.helperText_) {
|
|
606
607
|
this.helperText_.setValidity(t);
|
|
607
|
-
var
|
|
608
|
-
if (!
|
|
608
|
+
var i = this.helperText_.isValidation();
|
|
609
|
+
if (!i)
|
|
609
610
|
return;
|
|
610
|
-
var
|
|
611
|
-
|
|
611
|
+
var o = this.helperText_.isVisible(), s = this.helperText_.getId();
|
|
612
|
+
o && s ? this.adapter.setInputAttr(I.ARIA_DESCRIBEDBY, s) : this.adapter.removeInputAttr(I.ARIA_DESCRIBEDBY);
|
|
612
613
|
}
|
|
613
614
|
}, e.prototype.styleFocused_ = function(t) {
|
|
614
615
|
var n = e.cssClasses.FOCUSED;
|
|
615
616
|
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
|
616
617
|
}, e.prototype.styleDisabled_ = function(t) {
|
|
617
|
-
var n = e.cssClasses,
|
|
618
|
-
t ? (this.adapter.addClass(
|
|
618
|
+
var n = e.cssClasses, i = n.DISABLED, o = n.INVALID;
|
|
619
|
+
t ? (this.adapter.addClass(i), this.adapter.removeClass(o)) : this.adapter.removeClass(i), this.leadingIcon_ && this.leadingIcon_.setDisabled(t), this.trailingIcon_ && this.trailingIcon_.setDisabled(t);
|
|
619
620
|
}, e.prototype.styleFloating_ = function(t) {
|
|
620
621
|
var n = e.cssClasses.LABEL_FLOATING;
|
|
621
622
|
t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
|
|
@@ -633,7 +634,7 @@ var Re = ["mousedown", "touchstart"], Ne = ["click", "keydown"], dr = (
|
|
|
633
634
|
value: ""
|
|
634
635
|
};
|
|
635
636
|
}, e;
|
|
636
|
-
}(
|
|
637
|
+
}(nt)
|
|
637
638
|
);
|
|
638
639
|
/**
|
|
639
640
|
* @license
|
|
@@ -657,14 +658,14 @@ var Re = ["mousedown", "touchstart"], Ne = ["click", "keydown"], dr = (
|
|
|
657
658
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
658
659
|
* THE SOFTWARE.
|
|
659
660
|
*/
|
|
660
|
-
var
|
|
661
|
+
var L = {
|
|
661
662
|
HELPER_TEXT_PERSISTENT: "mdc-text-field-helper-text--persistent",
|
|
662
663
|
HELPER_TEXT_VALIDATION_MSG: "mdc-text-field-helper-text--validation-msg",
|
|
663
664
|
ROOT: "mdc-text-field-helper-text"
|
|
664
|
-
},
|
|
665
|
+
}, W = {
|
|
665
666
|
ARIA_HIDDEN: "aria-hidden",
|
|
666
667
|
ROLE: "role",
|
|
667
|
-
ROOT_SELECTOR: "." +
|
|
668
|
+
ROOT_SELECTOR: "." + L.ROOT
|
|
668
669
|
};
|
|
669
670
|
/**
|
|
670
671
|
* @license
|
|
@@ -688,22 +689,22 @@ var $ = {
|
|
|
688
689
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
689
690
|
* THE SOFTWARE.
|
|
690
691
|
*/
|
|
691
|
-
var
|
|
692
|
+
var Qe = (
|
|
692
693
|
/** @class */
|
|
693
|
-
function(
|
|
694
|
-
|
|
694
|
+
function(r) {
|
|
695
|
+
A(e, r);
|
|
695
696
|
function e(t) {
|
|
696
|
-
return
|
|
697
|
+
return r.call(this, c(c({}, e.defaultAdapter), t)) || this;
|
|
697
698
|
}
|
|
698
699
|
return Object.defineProperty(e, "cssClasses", {
|
|
699
700
|
get: function() {
|
|
700
|
-
return
|
|
701
|
+
return L;
|
|
701
702
|
},
|
|
702
703
|
enumerable: !1,
|
|
703
704
|
configurable: !0
|
|
704
705
|
}), Object.defineProperty(e, "strings", {
|
|
705
706
|
get: function() {
|
|
706
|
-
return
|
|
707
|
+
return W;
|
|
707
708
|
},
|
|
708
709
|
enumerable: !1,
|
|
709
710
|
configurable: !0
|
|
@@ -736,26 +737,26 @@ var Cn = (
|
|
|
736
737
|
}), e.prototype.getId = function() {
|
|
737
738
|
return this.adapter.getAttr("id");
|
|
738
739
|
}, e.prototype.isVisible = function() {
|
|
739
|
-
return this.adapter.getAttr(
|
|
740
|
+
return this.adapter.getAttr(W.ARIA_HIDDEN) !== "true";
|
|
740
741
|
}, e.prototype.setContent = function(t) {
|
|
741
742
|
this.adapter.setContent(t);
|
|
742
743
|
}, e.prototype.isPersistent = function() {
|
|
743
|
-
return this.adapter.hasClass(
|
|
744
|
+
return this.adapter.hasClass(L.HELPER_TEXT_PERSISTENT);
|
|
744
745
|
}, e.prototype.setPersistent = function(t) {
|
|
745
|
-
t ? this.adapter.addClass(
|
|
746
|
+
t ? this.adapter.addClass(L.HELPER_TEXT_PERSISTENT) : this.adapter.removeClass(L.HELPER_TEXT_PERSISTENT);
|
|
746
747
|
}, e.prototype.isValidation = function() {
|
|
747
|
-
return this.adapter.hasClass(
|
|
748
|
+
return this.adapter.hasClass(L.HELPER_TEXT_VALIDATION_MSG);
|
|
748
749
|
}, e.prototype.setValidation = function(t) {
|
|
749
|
-
t ? this.adapter.addClass(
|
|
750
|
+
t ? this.adapter.addClass(L.HELPER_TEXT_VALIDATION_MSG) : this.adapter.removeClass(L.HELPER_TEXT_VALIDATION_MSG);
|
|
750
751
|
}, e.prototype.showToScreenReader = function() {
|
|
751
|
-
this.adapter.removeAttr(
|
|
752
|
+
this.adapter.removeAttr(W.ARIA_HIDDEN);
|
|
752
753
|
}, e.prototype.setValidity = function(t) {
|
|
753
|
-
var n = this.adapter.hasClass(
|
|
754
|
-
|
|
754
|
+
var n = this.adapter.hasClass(L.HELPER_TEXT_PERSISTENT), i = this.adapter.hasClass(L.HELPER_TEXT_VALIDATION_MSG), o = i && !t;
|
|
755
|
+
o ? (this.showToScreenReader(), this.adapter.setAttr(W.ROLE, "alert")) : this.adapter.removeAttr(W.ROLE), !n && !o && this.hide_();
|
|
755
756
|
}, e.prototype.hide_ = function() {
|
|
756
|
-
this.adapter.setAttr(
|
|
757
|
+
this.adapter.setAttr(W.ARIA_HIDDEN, "true");
|
|
757
758
|
}, e;
|
|
758
|
-
}(
|
|
759
|
+
}(nt)
|
|
759
760
|
);
|
|
760
761
|
/**
|
|
761
762
|
* @license
|
|
@@ -779,12 +780,12 @@ var Cn = (
|
|
|
779
780
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
780
781
|
* THE SOFTWARE.
|
|
781
782
|
*/
|
|
782
|
-
var
|
|
783
|
+
var tn = (
|
|
783
784
|
/** @class */
|
|
784
|
-
function(
|
|
785
|
-
|
|
785
|
+
function(r) {
|
|
786
|
+
A(e, r);
|
|
786
787
|
function e() {
|
|
787
|
-
return
|
|
788
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
788
789
|
}
|
|
789
790
|
return e.attachTo = function(t) {
|
|
790
791
|
return new e(t);
|
|
@@ -797,31 +798,31 @@ var Ln = (
|
|
|
797
798
|
configurable: !0
|
|
798
799
|
}), e.prototype.getDefaultFoundation = function() {
|
|
799
800
|
var t = this, n = {
|
|
800
|
-
addClass: function(
|
|
801
|
-
return t.root.classList.add(
|
|
801
|
+
addClass: function(i) {
|
|
802
|
+
return t.root.classList.add(i);
|
|
802
803
|
},
|
|
803
|
-
removeClass: function(
|
|
804
|
-
return t.root.classList.remove(
|
|
804
|
+
removeClass: function(i) {
|
|
805
|
+
return t.root.classList.remove(i);
|
|
805
806
|
},
|
|
806
|
-
hasClass: function(
|
|
807
|
-
return t.root.classList.contains(
|
|
807
|
+
hasClass: function(i) {
|
|
808
|
+
return t.root.classList.contains(i);
|
|
808
809
|
},
|
|
809
|
-
getAttr: function(
|
|
810
|
-
return t.root.getAttribute(
|
|
810
|
+
getAttr: function(i) {
|
|
811
|
+
return t.root.getAttribute(i);
|
|
811
812
|
},
|
|
812
|
-
setAttr: function(
|
|
813
|
-
return t.root.setAttribute(
|
|
813
|
+
setAttr: function(i, o) {
|
|
814
|
+
return t.root.setAttribute(i, o);
|
|
814
815
|
},
|
|
815
|
-
removeAttr: function(
|
|
816
|
-
return t.root.removeAttribute(
|
|
816
|
+
removeAttr: function(i) {
|
|
817
|
+
return t.root.removeAttribute(i);
|
|
817
818
|
},
|
|
818
|
-
setContent: function(
|
|
819
|
-
t.root.textContent =
|
|
819
|
+
setContent: function(i) {
|
|
820
|
+
t.root.textContent = i;
|
|
820
821
|
}
|
|
821
822
|
};
|
|
822
|
-
return new
|
|
823
|
+
return new Qe(n);
|
|
823
824
|
}, e;
|
|
824
|
-
}(
|
|
825
|
+
}(et)
|
|
825
826
|
);
|
|
826
827
|
/**
|
|
827
828
|
* @license
|
|
@@ -845,10 +846,10 @@ var Ln = (
|
|
|
845
846
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
846
847
|
* THE SOFTWARE.
|
|
847
848
|
*/
|
|
848
|
-
var
|
|
849
|
+
var Me = {
|
|
849
850
|
ICON_EVENT: "MDCTextField:icon",
|
|
850
851
|
ICON_ROLE: "button"
|
|
851
|
-
},
|
|
852
|
+
}, ai = {
|
|
852
853
|
ROOT: "mdc-text-field__icon"
|
|
853
854
|
};
|
|
854
855
|
/**
|
|
@@ -873,25 +874,25 @@ var Fe = {
|
|
|
873
874
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
874
875
|
* THE SOFTWARE.
|
|
875
876
|
*/
|
|
876
|
-
var
|
|
877
|
+
var Ue = ["click", "keydown"], qe = (
|
|
877
878
|
/** @class */
|
|
878
|
-
function(
|
|
879
|
-
|
|
879
|
+
function(r) {
|
|
880
|
+
A(e, r);
|
|
880
881
|
function e(t) {
|
|
881
|
-
var n =
|
|
882
|
-
return n.savedTabIndex_ = null, n.interactionHandler_ = function(
|
|
883
|
-
return n.handleInteraction(
|
|
882
|
+
var n = r.call(this, c(c({}, e.defaultAdapter), t)) || this;
|
|
883
|
+
return n.savedTabIndex_ = null, n.interactionHandler_ = function(i) {
|
|
884
|
+
return n.handleInteraction(i);
|
|
884
885
|
}, n;
|
|
885
886
|
}
|
|
886
887
|
return Object.defineProperty(e, "strings", {
|
|
887
888
|
get: function() {
|
|
888
|
-
return
|
|
889
|
+
return Me;
|
|
889
890
|
},
|
|
890
891
|
enumerable: !1,
|
|
891
892
|
configurable: !0
|
|
892
893
|
}), Object.defineProperty(e, "cssClasses", {
|
|
893
894
|
get: function() {
|
|
894
|
-
return
|
|
895
|
+
return ai;
|
|
895
896
|
},
|
|
896
897
|
enumerable: !1,
|
|
897
898
|
configurable: !0
|
|
@@ -922,16 +923,16 @@ var Pe = ["click", "keydown"], Se = (
|
|
|
922
923
|
configurable: !0
|
|
923
924
|
}), e.prototype.init = function() {
|
|
924
925
|
var t = this;
|
|
925
|
-
this.savedTabIndex_ = this.adapter.getAttr("tabindex"),
|
|
926
|
+
this.savedTabIndex_ = this.adapter.getAttr("tabindex"), Ue.forEach(function(n) {
|
|
926
927
|
t.adapter.registerInteractionHandler(n, t.interactionHandler_);
|
|
927
928
|
});
|
|
928
929
|
}, e.prototype.destroy = function() {
|
|
929
930
|
var t = this;
|
|
930
|
-
|
|
931
|
+
Ue.forEach(function(n) {
|
|
931
932
|
t.adapter.deregisterInteractionHandler(n, t.interactionHandler_);
|
|
932
933
|
});
|
|
933
934
|
}, e.prototype.setDisabled = function(t) {
|
|
934
|
-
this.savedTabIndex_ && (t ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex_), this.adapter.setAttr("role",
|
|
935
|
+
this.savedTabIndex_ && (t ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex_), this.adapter.setAttr("role", Me.ICON_ROLE)));
|
|
935
936
|
}, e.prototype.setAriaLabel = function(t) {
|
|
936
937
|
this.adapter.setAttr("aria-label", t);
|
|
937
938
|
}, e.prototype.setContent = function(t) {
|
|
@@ -940,7 +941,7 @@ var Pe = ["click", "keydown"], Se = (
|
|
|
940
941
|
var n = t.key === "Enter" || t.keyCode === 13;
|
|
941
942
|
(t.type === "click" || n) && (t.preventDefault(), this.adapter.notifyIconAction());
|
|
942
943
|
}, e;
|
|
943
|
-
}(
|
|
944
|
+
}(nt)
|
|
944
945
|
);
|
|
945
946
|
/**
|
|
946
947
|
* @license
|
|
@@ -964,12 +965,12 @@ var Pe = ["click", "keydown"], Se = (
|
|
|
964
965
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
965
966
|
* THE SOFTWARE.
|
|
966
967
|
*/
|
|
967
|
-
var
|
|
968
|
+
var oi = (
|
|
968
969
|
/** @class */
|
|
969
|
-
function(
|
|
970
|
-
|
|
970
|
+
function(r) {
|
|
971
|
+
A(e, r);
|
|
971
972
|
function e() {
|
|
972
|
-
return
|
|
973
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
973
974
|
}
|
|
974
975
|
return e.attachTo = function(t) {
|
|
975
976
|
return new e(t);
|
|
@@ -982,36 +983,36 @@ var pr = (
|
|
|
982
983
|
configurable: !0
|
|
983
984
|
}), e.prototype.getDefaultFoundation = function() {
|
|
984
985
|
var t = this, n = {
|
|
985
|
-
getAttr: function(
|
|
986
|
-
return t.root.getAttribute(
|
|
986
|
+
getAttr: function(i) {
|
|
987
|
+
return t.root.getAttribute(i);
|
|
987
988
|
},
|
|
988
|
-
setAttr: function(
|
|
989
|
-
return t.root.setAttribute(
|
|
989
|
+
setAttr: function(i, o) {
|
|
990
|
+
return t.root.setAttribute(i, o);
|
|
990
991
|
},
|
|
991
|
-
removeAttr: function(
|
|
992
|
-
return t.root.removeAttribute(
|
|
992
|
+
removeAttr: function(i) {
|
|
993
|
+
return t.root.removeAttribute(i);
|
|
993
994
|
},
|
|
994
|
-
setContent: function(
|
|
995
|
-
t.root.textContent =
|
|
995
|
+
setContent: function(i) {
|
|
996
|
+
t.root.textContent = i;
|
|
996
997
|
},
|
|
997
|
-
registerInteractionHandler: function(
|
|
998
|
-
return t.listen(
|
|
998
|
+
registerInteractionHandler: function(i, o) {
|
|
999
|
+
return t.listen(i, o);
|
|
999
1000
|
},
|
|
1000
|
-
deregisterInteractionHandler: function(
|
|
1001
|
-
return t.unlisten(
|
|
1001
|
+
deregisterInteractionHandler: function(i, o) {
|
|
1002
|
+
return t.unlisten(i, o);
|
|
1002
1003
|
},
|
|
1003
1004
|
notifyIconAction: function() {
|
|
1004
1005
|
return t.emit(
|
|
1005
|
-
|
|
1006
|
+
qe.strings.ICON_EVENT,
|
|
1006
1007
|
{},
|
|
1007
1008
|
!0
|
|
1008
1009
|
/* shouldBubble */
|
|
1009
1010
|
);
|
|
1010
1011
|
}
|
|
1011
1012
|
};
|
|
1012
|
-
return new
|
|
1013
|
+
return new qe(n);
|
|
1013
1014
|
}, e;
|
|
1014
|
-
}(
|
|
1015
|
+
}(et)
|
|
1015
1016
|
);
|
|
1016
1017
|
/**
|
|
1017
1018
|
* @license
|
|
@@ -1035,47 +1036,47 @@ var pr = (
|
|
|
1035
1036
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1036
1037
|
* THE SOFTWARE.
|
|
1037
1038
|
*/
|
|
1038
|
-
var
|
|
1039
|
+
var li = (
|
|
1039
1040
|
/** @class */
|
|
1040
|
-
function(
|
|
1041
|
-
|
|
1041
|
+
function(r) {
|
|
1042
|
+
A(e, r);
|
|
1042
1043
|
function e() {
|
|
1043
|
-
return
|
|
1044
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
1044
1045
|
}
|
|
1045
1046
|
return e.attachTo = function(t) {
|
|
1046
1047
|
return new e(t);
|
|
1047
|
-
}, e.prototype.initialize = function(t, n,
|
|
1048
|
-
t === void 0 && (t = function(
|
|
1049
|
-
return new
|
|
1050
|
-
}), n === void 0 && (n = function(
|
|
1051
|
-
return new
|
|
1052
|
-
}),
|
|
1053
|
-
return new
|
|
1054
|
-
}),
|
|
1055
|
-
return new
|
|
1056
|
-
}),
|
|
1057
|
-
return new
|
|
1058
|
-
}),
|
|
1059
|
-
return new
|
|
1060
|
-
}),
|
|
1061
|
-
return new
|
|
1062
|
-
}), this.input_ = this.root.querySelector(
|
|
1063
|
-
var
|
|
1064
|
-
this.label_ =
|
|
1065
|
-
var
|
|
1066
|
-
this.lineRipple_ =
|
|
1067
|
-
var
|
|
1068
|
-
this.outline_ =
|
|
1069
|
-
var
|
|
1070
|
-
this.helperText_ =
|
|
1071
|
-
var
|
|
1072
|
-
!
|
|
1073
|
-
var
|
|
1074
|
-
this.leadingIcon_ =
|
|
1075
|
-
var
|
|
1076
|
-
this.trailingIcon_ =
|
|
1048
|
+
}, e.prototype.initialize = function(t, n, i, o, s, h, f) {
|
|
1049
|
+
t === void 0 && (t = function(p, q) {
|
|
1050
|
+
return new we(p, q);
|
|
1051
|
+
}), n === void 0 && (n = function(p) {
|
|
1052
|
+
return new Ye(p);
|
|
1053
|
+
}), i === void 0 && (i = function(p) {
|
|
1054
|
+
return new tn(p);
|
|
1055
|
+
}), o === void 0 && (o = function(p) {
|
|
1056
|
+
return new ei(p);
|
|
1057
|
+
}), s === void 0 && (s = function(p) {
|
|
1058
|
+
return new oi(p);
|
|
1059
|
+
}), h === void 0 && (h = function(p) {
|
|
1060
|
+
return new zn(p);
|
|
1061
|
+
}), f === void 0 && (f = function(p) {
|
|
1062
|
+
return new Zn(p);
|
|
1063
|
+
}), this.input_ = this.root.querySelector(I.INPUT_SELECTOR);
|
|
1064
|
+
var x = this.root.querySelector(I.LABEL_SELECTOR);
|
|
1065
|
+
this.label_ = x ? h(x) : null;
|
|
1066
|
+
var T = this.root.querySelector(I.LINE_RIPPLE_SELECTOR);
|
|
1067
|
+
this.lineRipple_ = T ? n(T) : null;
|
|
1068
|
+
var it = this.root.querySelector(I.OUTLINE_SELECTOR);
|
|
1069
|
+
this.outline_ = it ? f(it) : null;
|
|
1070
|
+
var rt = Qe.strings, P = this.root.nextElementSibling, $ = P && P.classList.contains(ht.HELPER_LINE), R = $ && P && P.querySelector(rt.ROOT_SELECTOR);
|
|
1071
|
+
this.helperText_ = R ? i(R) : null;
|
|
1072
|
+
var z = Je.strings, V = this.root.querySelector(z.ROOT_SELECTOR);
|
|
1073
|
+
!V && $ && P && (V = P.querySelector(z.ROOT_SELECTOR)), this.characterCounter_ = V ? o(V) : null;
|
|
1074
|
+
var Z = this.root.querySelector(I.LEADING_ICON_SELECTOR);
|
|
1075
|
+
this.leadingIcon_ = Z ? s(Z) : null;
|
|
1076
|
+
var S = this.root.querySelector(I.TRAILING_ICON_SELECTOR);
|
|
1077
|
+
this.trailingIcon_ = S ? s(S) : null, this.prefix_ = this.root.querySelector(I.PREFIX_SELECTOR), this.suffix_ = this.root.querySelector(I.SUFFIX_SELECTOR), this.ripple = this.createRipple_(t);
|
|
1077
1078
|
}, e.prototype.destroy = function() {
|
|
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(),
|
|
1079
|
+
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(), r.prototype.destroy.call(this);
|
|
1079
1080
|
}, e.prototype.initialSyncWithDOM = function() {
|
|
1080
1081
|
this.disabled = this.input_.disabled;
|
|
1081
1082
|
}, Object.defineProperty(e.prototype, "value", {
|
|
@@ -1289,8 +1290,8 @@ var hr = (
|
|
|
1289
1290
|
var t = this.foundation.shouldFloat;
|
|
1290
1291
|
this.foundation.notchOutline(t);
|
|
1291
1292
|
}, e.prototype.getDefaultFoundation = function() {
|
|
1292
|
-
var t =
|
|
1293
|
-
return new
|
|
1293
|
+
var t = c(c(c(c(c({}, this.getRootAdapterMethods_()), this.getInputAdapterMethods_()), this.getLabelAdapterMethods_()), this.getLineRippleAdapterMethods_()), this.getOutlineAdapterMethods_());
|
|
1294
|
+
return new ri(t, this.getFoundationMap_());
|
|
1294
1295
|
}, e.prototype.getRootAdapterMethods_ = function() {
|
|
1295
1296
|
var t = this;
|
|
1296
1297
|
return {
|
|
@@ -1303,23 +1304,23 @@ var hr = (
|
|
|
1303
1304
|
hasClass: function(n) {
|
|
1304
1305
|
return t.root.classList.contains(n);
|
|
1305
1306
|
},
|
|
1306
|
-
registerTextFieldInteractionHandler: function(n,
|
|
1307
|
-
t.listen(n,
|
|
1307
|
+
registerTextFieldInteractionHandler: function(n, i) {
|
|
1308
|
+
t.listen(n, i);
|
|
1308
1309
|
},
|
|
1309
|
-
deregisterTextFieldInteractionHandler: function(n,
|
|
1310
|
-
t.unlisten(n,
|
|
1310
|
+
deregisterTextFieldInteractionHandler: function(n, i) {
|
|
1311
|
+
t.unlisten(n, i);
|
|
1311
1312
|
},
|
|
1312
1313
|
registerValidationAttributeChangeHandler: function(n) {
|
|
1313
|
-
var
|
|
1314
|
-
return
|
|
1315
|
-
return
|
|
1316
|
-
}).filter(function(
|
|
1317
|
-
return
|
|
1314
|
+
var i = function(h) {
|
|
1315
|
+
return h.map(function(f) {
|
|
1316
|
+
return f.attributeName;
|
|
1317
|
+
}).filter(function(f) {
|
|
1318
|
+
return f;
|
|
1318
1319
|
});
|
|
1319
|
-
},
|
|
1320
|
-
return n(
|
|
1321
|
-
}),
|
|
1322
|
-
return
|
|
1320
|
+
}, o = new MutationObserver(function(h) {
|
|
1321
|
+
return n(i(h));
|
|
1322
|
+
}), s = { attributes: !0 };
|
|
1323
|
+
return o.observe(t.input_, s), o;
|
|
1323
1324
|
},
|
|
1324
1325
|
deregisterValidationAttributeChangeHandler: function(n) {
|
|
1325
1326
|
n.disconnect();
|
|
@@ -1331,8 +1332,8 @@ var hr = (
|
|
|
1331
1332
|
getNativeInput: function() {
|
|
1332
1333
|
return t.input_;
|
|
1333
1334
|
},
|
|
1334
|
-
setInputAttr: function(n,
|
|
1335
|
-
t.input_.setAttribute(n,
|
|
1335
|
+
setInputAttr: function(n, i) {
|
|
1336
|
+
t.input_.setAttribute(n, i);
|
|
1336
1337
|
},
|
|
1337
1338
|
removeInputAttr: function(n) {
|
|
1338
1339
|
t.input_.removeAttribute(n);
|
|
@@ -1340,11 +1341,11 @@ var hr = (
|
|
|
1340
1341
|
isFocused: function() {
|
|
1341
1342
|
return document.activeElement === t.input_;
|
|
1342
1343
|
},
|
|
1343
|
-
registerInputInteractionHandler: function(n,
|
|
1344
|
-
t.input_.addEventListener(n,
|
|
1344
|
+
registerInputInteractionHandler: function(n, i) {
|
|
1345
|
+
t.input_.addEventListener(n, i, pt());
|
|
1345
1346
|
},
|
|
1346
|
-
deregisterInputInteractionHandler: function(n,
|
|
1347
|
-
t.input_.removeEventListener(n,
|
|
1347
|
+
deregisterInputInteractionHandler: function(n, i) {
|
|
1348
|
+
t.input_.removeEventListener(n, i, pt());
|
|
1348
1349
|
}
|
|
1349
1350
|
};
|
|
1350
1351
|
}, e.prototype.getLabelAdapterMethods_ = function() {
|
|
@@ -1400,84 +1401,76 @@ var hr = (
|
|
|
1400
1401
|
trailingIcon: this.trailingIcon_ ? this.trailingIcon_.foundationForTextField : void 0
|
|
1401
1402
|
};
|
|
1402
1403
|
}, e.prototype.createRipple_ = function(t) {
|
|
1403
|
-
var n = this,
|
|
1404
|
-
if (
|
|
1404
|
+
var n = this, i = this.root.classList.contains(ht.TEXTAREA), o = this.root.classList.contains(ht.OUTLINED);
|
|
1405
|
+
if (i || o)
|
|
1405
1406
|
return null;
|
|
1406
|
-
var
|
|
1407
|
-
return
|
|
1408
|
-
}, registerInteractionHandler: function(
|
|
1409
|
-
return n.input_.addEventListener(
|
|
1410
|
-
}, deregisterInteractionHandler: function(
|
|
1411
|
-
return n.input_.removeEventListener(
|
|
1407
|
+
var s = c(c({}, we.createAdapter(this)), { isSurfaceActive: function() {
|
|
1408
|
+
return Kn(n.input_, ":active");
|
|
1409
|
+
}, registerInteractionHandler: function(h, f) {
|
|
1410
|
+
return n.input_.addEventListener(h, f, pt());
|
|
1411
|
+
}, deregisterInteractionHandler: function(h, f) {
|
|
1412
|
+
return n.input_.removeEventListener(h, f, pt());
|
|
1412
1413
|
} });
|
|
1413
|
-
return t(this.root, new
|
|
1414
|
+
return t(this.root, new Jn(s));
|
|
1414
1415
|
}, e;
|
|
1415
|
-
}(
|
|
1416
|
-
)
|
|
1417
|
-
const _r = {
|
|
1416
|
+
}(et)
|
|
1417
|
+
), si = {
|
|
1418
1418
|
/**
|
|
1419
1419
|
*
|
|
1420
1420
|
*
|
|
1421
1421
|
* Defaults to **null**.
|
|
1422
1422
|
*/
|
|
1423
|
-
activated:
|
|
1423
|
+
activated: a.bool,
|
|
1424
1424
|
/**
|
|
1425
1425
|
* The css class name to be passed through to the component markup.
|
|
1426
1426
|
*
|
|
1427
1427
|
* Defaults to **undefined**.
|
|
1428
1428
|
*/
|
|
1429
|
-
className:
|
|
1429
|
+
className: a.string,
|
|
1430
1430
|
/**
|
|
1431
1431
|
*
|
|
1432
1432
|
*
|
|
1433
1433
|
* Defaults to **null**.
|
|
1434
1434
|
*/
|
|
1435
|
-
rippleCenter:
|
|
1436
|
-
},
|
|
1435
|
+
rippleCenter: a.string
|
|
1436
|
+
}, ui = {
|
|
1437
1437
|
activated: null,
|
|
1438
1438
|
className: void 0,
|
|
1439
1439
|
rippleCenter: null
|
|
1440
|
-
},
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
}, a));
|
|
1440
|
+
}, di = ["activated", "rippleCenter", "className"], Lt = ui, Rt = /* @__PURE__ */ At(function(r, e) {
|
|
1441
|
+
var t = r.activated, n = t === void 0 ? Lt.activated : t, i = r.rippleCenter, o = i === void 0 ? Lt.rippleCenter : i, s = r.className, h = s === void 0 ? Lt.className : s, f = Ot(r, di), x = O(), T = O();
|
|
1442
|
+
return Ze(e, function() {
|
|
1443
|
+
return T.current;
|
|
1444
|
+
}, []), g(function() {
|
|
1445
|
+
return x.current = Ye.attachTo(T.current), function() {
|
|
1446
|
+
x.current.destroy();
|
|
1447
|
+
};
|
|
1448
|
+
}, [T]), g(function() {
|
|
1449
|
+
n ? x.current.activate() : x.current.deactivate();
|
|
1450
|
+
}, [n]), g(function() {
|
|
1451
|
+
o && x.current.setRippleCenter(o);
|
|
1452
|
+
}, [o]), /* @__PURE__ */ u.createElement("div", tt({
|
|
1453
|
+
ref: T,
|
|
1454
|
+
className: U("lmnt", "mdc-line-ripple", h)
|
|
1455
|
+
}, f));
|
|
1457
1456
|
});
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
wrap: t,
|
|
1464
|
-
children: n
|
|
1465
|
-
} = i;
|
|
1466
|
-
return t ? /* @__PURE__ */ b.createElement("span", {
|
|
1457
|
+
Rt.displayName = "LineRipple";
|
|
1458
|
+
Rt.propTypes = si;
|
|
1459
|
+
var ci = ["wrap", "children"], en = /* @__PURE__ */ At(function(r, e) {
|
|
1460
|
+
var t = r.wrap, n = r.children, i = Ot(r, ci);
|
|
1461
|
+
return t ? /* @__PURE__ */ u.createElement("span", tt({
|
|
1467
1462
|
ref: e,
|
|
1468
1463
|
className: "mdc-text-field__resizer"
|
|
1469
|
-
}, n) : n;
|
|
1464
|
+
}, i), n) : n;
|
|
1470
1465
|
});
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
};
|
|
1480
|
-
const vr = {
|
|
1466
|
+
en.displayName = "TextfieldSpanShim";
|
|
1467
|
+
var fi = {
|
|
1468
|
+
/**
|
|
1469
|
+
* For dense textfield this aligns the contents of the text-field to left or right
|
|
1470
|
+
*
|
|
1471
|
+
* Defaults to **'left'**.
|
|
1472
|
+
*/
|
|
1473
|
+
alignment: a.oneOf(["left", "right"]),
|
|
1481
1474
|
/**
|
|
1482
1475
|
* @deprecated _Use `fullWidth` instead._
|
|
1483
1476
|
*
|
|
@@ -1485,13 +1478,13 @@ const vr = {
|
|
|
1485
1478
|
*
|
|
1486
1479
|
* Defaults to **undefined**.
|
|
1487
1480
|
*/
|
|
1488
|
-
block:
|
|
1481
|
+
block: F(a.bool, "Textfield", "Use `fullWidth` instead."),
|
|
1489
1482
|
/**
|
|
1490
1483
|
* The css class name to be passed through to the component markup.
|
|
1491
1484
|
*
|
|
1492
1485
|
* Defaults to **undefined**.
|
|
1493
1486
|
*/
|
|
1494
|
-
className:
|
|
1487
|
+
className: a.string,
|
|
1495
1488
|
/**
|
|
1496
1489
|
* @deprecated _See `containerProps`._
|
|
1497
1490
|
*
|
|
@@ -1499,37 +1492,37 @@ const vr = {
|
|
|
1499
1492
|
*
|
|
1500
1493
|
* Defaults to **undefined**.
|
|
1501
1494
|
*/
|
|
1502
|
-
containerClass:
|
|
1495
|
+
containerClass: F(a.string, "Textfield", "See `containerProps`."),
|
|
1503
1496
|
/**
|
|
1504
1497
|
* Properties to be added to the container of the textfield.
|
|
1505
1498
|
*
|
|
1506
1499
|
* Defaults to **undefined**.
|
|
1507
1500
|
*/
|
|
1508
|
-
containerProps:
|
|
1501
|
+
containerProps: a.object,
|
|
1509
1502
|
/**
|
|
1510
1503
|
* Enables a character count. _Warning_ requires `maxlength` to be set.
|
|
1511
1504
|
*
|
|
1512
1505
|
* Defaults to **false**.
|
|
1513
1506
|
*/
|
|
1514
|
-
counter:
|
|
1507
|
+
counter: a.bool,
|
|
1515
1508
|
/**
|
|
1516
1509
|
* The starting value of the Textfield when working in uncontrolled mode.
|
|
1517
1510
|
*
|
|
1518
1511
|
* Defaults to **undefined**.
|
|
1519
1512
|
*/
|
|
1520
|
-
defaultValue:
|
|
1513
|
+
defaultValue: a.oneOfType([a.string, a.number]),
|
|
1521
1514
|
/**
|
|
1522
1515
|
* The size of the Textfield will be reduced.
|
|
1523
1516
|
*
|
|
1524
1517
|
* Defaults to **false**.
|
|
1525
1518
|
*/
|
|
1526
|
-
dense:
|
|
1519
|
+
dense: a.bool,
|
|
1527
1520
|
/**
|
|
1528
1521
|
* Textfield will be disabled.
|
|
1529
1522
|
*
|
|
1530
1523
|
* Defaults to **false**.
|
|
1531
1524
|
*/
|
|
1532
|
-
disabled:
|
|
1525
|
+
disabled: a.bool,
|
|
1533
1526
|
/**
|
|
1534
1527
|
* @deprecated _Use `variant='embedded'_
|
|
1535
1528
|
*
|
|
@@ -1537,7 +1530,7 @@ const vr = {
|
|
|
1537
1530
|
*
|
|
1538
1531
|
* Defaults to **undefined**.
|
|
1539
1532
|
*/
|
|
1540
|
-
embedded:
|
|
1533
|
+
embedded: F(a.bool, "Textfield", 'Use `variant="embedded"'),
|
|
1541
1534
|
/**
|
|
1542
1535
|
* @deprecated _Use variant='filled' instead._
|
|
1543
1536
|
*
|
|
@@ -1545,73 +1538,73 @@ const vr = {
|
|
|
1545
1538
|
*
|
|
1546
1539
|
* Defaults to **undefined**.
|
|
1547
1540
|
*/
|
|
1548
|
-
filled:
|
|
1541
|
+
filled: F(a.bool, "Textfield", 'Use variant="filled" instead.'),
|
|
1549
1542
|
/**
|
|
1550
1543
|
* Sets the Textfield to the focused state.
|
|
1551
1544
|
*
|
|
1552
1545
|
* Defaults to **false**.
|
|
1553
1546
|
*/
|
|
1554
|
-
focused:
|
|
1547
|
+
focused: a.bool,
|
|
1555
1548
|
/**
|
|
1556
1549
|
* The Textfield will expand to 100% width.
|
|
1557
1550
|
*
|
|
1558
1551
|
* Defaults to **false**.
|
|
1559
1552
|
*/
|
|
1560
|
-
fullWidth:
|
|
1553
|
+
fullWidth: a.bool,
|
|
1561
1554
|
/**
|
|
1562
1555
|
* Helper text to be displayed below Textfield, by default only visible on focus.
|
|
1563
1556
|
*
|
|
1564
1557
|
* Defaults to **null**.
|
|
1565
1558
|
*/
|
|
1566
|
-
helperText:
|
|
1559
|
+
helperText: a.node,
|
|
1567
1560
|
/**
|
|
1568
1561
|
* Randomly generated id for the helper text container element. May be overwritten.
|
|
1569
1562
|
*
|
|
1570
1563
|
* Defaults to **undefined**.
|
|
1571
1564
|
*/
|
|
1572
|
-
helperTextId:
|
|
1565
|
+
helperTextId: a.string,
|
|
1573
1566
|
/**
|
|
1574
1567
|
* Set the helper text to be permanently visible.
|
|
1575
1568
|
*
|
|
1576
1569
|
* Defaults to **false**.
|
|
1577
1570
|
*/
|
|
1578
|
-
helperTextPersistent:
|
|
1571
|
+
helperTextPersistent: a.bool,
|
|
1579
1572
|
/**
|
|
1580
1573
|
* 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').
|
|
1581
1574
|
*
|
|
1582
1575
|
* Defaults to **false**.
|
|
1583
1576
|
*/
|
|
1584
|
-
helperTextValidation:
|
|
1577
|
+
helperTextValidation: a.bool,
|
|
1585
1578
|
/**
|
|
1586
1579
|
* Randomly generated id for the input element. May be overwritten.
|
|
1587
1580
|
*
|
|
1588
1581
|
* Defaults to **undefined**.
|
|
1589
1582
|
*/
|
|
1590
|
-
id:
|
|
1583
|
+
id: a.string,
|
|
1591
1584
|
/**
|
|
1592
1585
|
* 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.
|
|
1593
1586
|
*
|
|
1594
1587
|
* Defaults to **null**.
|
|
1595
1588
|
*/
|
|
1596
|
-
label:
|
|
1589
|
+
label: a.string,
|
|
1597
1590
|
/**
|
|
1598
1591
|
* Randomly generated id for the label element. May be overwritten.
|
|
1599
1592
|
*
|
|
1600
1593
|
* Defaults to **undefined**.
|
|
1601
1594
|
*/
|
|
1602
|
-
labelId:
|
|
1595
|
+
labelId: a.string,
|
|
1603
1596
|
/**
|
|
1604
1597
|
* Custom content to appear before the input.
|
|
1605
1598
|
*
|
|
1606
1599
|
* Defaults to **null**.
|
|
1607
1600
|
*/
|
|
1608
|
-
leadingContent:
|
|
1601
|
+
leadingContent: a.node,
|
|
1609
1602
|
/**
|
|
1610
1603
|
* 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,
|
|
1611
1604
|
*
|
|
1612
1605
|
* Defaults to **null**.
|
|
1613
1606
|
*/
|
|
1614
|
-
leadingIcon:
|
|
1607
|
+
leadingIcon: a.oneOfType([a.string, a.node]),
|
|
1615
1608
|
/**
|
|
1616
1609
|
* @deprecated _Use `maxlength` instead. The case of this prop has changed to be more consistent._
|
|
1617
1610
|
*
|
|
@@ -1619,37 +1612,37 @@ const vr = {
|
|
|
1619
1612
|
*
|
|
1620
1613
|
* Defaults to **undefined**.
|
|
1621
1614
|
*/
|
|
1622
|
-
maxLength:
|
|
1615
|
+
maxLength: F(a.number, "Textfield", "Use `maxlength` instead. The case of this prop has changed to be more consistent."),
|
|
1623
1616
|
/**
|
|
1624
1617
|
* Restricts the number of characters that can be entered, best used with counter.
|
|
1625
1618
|
*
|
|
1626
1619
|
* Defaults to **null**.
|
|
1627
1620
|
*/
|
|
1628
|
-
maxlength:
|
|
1621
|
+
maxlength: Gn(a.number, "Textfield", "counter"),
|
|
1629
1622
|
/**
|
|
1630
1623
|
* Prevents resizing when using `textarea`.
|
|
1631
1624
|
*
|
|
1632
1625
|
* Defaults to **true**.
|
|
1633
1626
|
*/
|
|
1634
|
-
noResize:
|
|
1627
|
+
noResize: a.bool,
|
|
1635
1628
|
/**
|
|
1636
1629
|
* Fired when focus leaves the input.
|
|
1637
1630
|
*
|
|
1638
1631
|
* Defaults to **null**.
|
|
1639
1632
|
*/
|
|
1640
|
-
onBlur:
|
|
1633
|
+
onBlur: a.func,
|
|
1641
1634
|
/**
|
|
1642
1635
|
* Fired when each character is entered into the Textfield.
|
|
1643
1636
|
*
|
|
1644
1637
|
* Defaults to **null**.
|
|
1645
1638
|
*/
|
|
1646
|
-
onChange:
|
|
1639
|
+
onChange: a.func,
|
|
1647
1640
|
/**
|
|
1648
1641
|
* Fired when the input gains focus.
|
|
1649
1642
|
*
|
|
1650
1643
|
* Defaults to **null**.
|
|
1651
1644
|
*/
|
|
1652
|
-
onFocus:
|
|
1645
|
+
onFocus: a.func,
|
|
1653
1646
|
/**
|
|
1654
1647
|
* @deprecated _Use `variant='outlined'` instead_
|
|
1655
1648
|
*
|
|
@@ -1657,19 +1650,19 @@ const vr = {
|
|
|
1657
1650
|
*
|
|
1658
1651
|
* Defaults to **undefined**.
|
|
1659
1652
|
*/
|
|
1660
|
-
outlined:
|
|
1653
|
+
outlined: F(a.bool, "Textfield", 'Use `variant="outlined"` instead'),
|
|
1661
1654
|
/**
|
|
1662
1655
|
* Non-floating label text, will be replaced when the user starts typing.
|
|
1663
1656
|
*
|
|
1664
1657
|
* Defaults to **null**.
|
|
1665
1658
|
*/
|
|
1666
|
-
placeholder:
|
|
1659
|
+
placeholder: a.string,
|
|
1667
1660
|
/**
|
|
1668
1661
|
* 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`.
|
|
1669
1662
|
*
|
|
1670
1663
|
* Defaults to **null**.
|
|
1671
1664
|
*/
|
|
1672
|
-
prefixText:
|
|
1665
|
+
prefixText: a.string,
|
|
1673
1666
|
/**
|
|
1674
1667
|
* @deprecated _This feature is no longer supported. Use `variant='filled'` instead._
|
|
1675
1668
|
*
|
|
@@ -1677,7 +1670,7 @@ const vr = {
|
|
|
1677
1670
|
*
|
|
1678
1671
|
* Defaults to **undefined**.
|
|
1679
1672
|
*/
|
|
1680
|
-
primary:
|
|
1673
|
+
primary: F(a.bool, "Textfield", 'This feature is no longer supported. Use `variant="filled"` instead.'),
|
|
1681
1674
|
/**
|
|
1682
1675
|
* @deprecated _Use `variant='embedded'`_
|
|
1683
1676
|
*
|
|
@@ -1685,7 +1678,7 @@ const vr = {
|
|
|
1685
1678
|
*
|
|
1686
1679
|
* Defaults to **undefined**.
|
|
1687
1680
|
*/
|
|
1688
|
-
search:
|
|
1681
|
+
search: F(a.bool, "Textfield", 'Use `variant="embedded"`'),
|
|
1689
1682
|
/**
|
|
1690
1683
|
* @deprecated _Use `variant='outlined'` instead._
|
|
1691
1684
|
*
|
|
@@ -1693,62 +1686,63 @@ const vr = {
|
|
|
1693
1686
|
*
|
|
1694
1687
|
* Defaults to **undefined**.
|
|
1695
1688
|
*/
|
|
1696
|
-
secondary:
|
|
1689
|
+
secondary: F(a.bool, "Textfield", 'Use `variant="outlined"` instead.'),
|
|
1697
1690
|
/**
|
|
1698
1691
|
* 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`.
|
|
1699
1692
|
*
|
|
1700
1693
|
* Defaults to **null**.
|
|
1701
1694
|
*/
|
|
1702
|
-
suffixText:
|
|
1695
|
+
suffixText: a.string,
|
|
1703
1696
|
/**
|
|
1704
1697
|
* Enabled multi-line text input. _Note_ `textarea` cannot be used with the embedded variant.
|
|
1705
1698
|
*
|
|
1706
1699
|
* Defaults to **false**.
|
|
1707
1700
|
*/
|
|
1708
|
-
textarea:
|
|
1701
|
+
textarea: a.bool,
|
|
1709
1702
|
/**
|
|
1710
1703
|
* 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.
|
|
1711
1704
|
*
|
|
1712
1705
|
* Defaults to **null**.
|
|
1713
1706
|
*/
|
|
1714
|
-
tooltip:
|
|
1707
|
+
tooltip: a.oneOfType([a.bool, a.object]),
|
|
1715
1708
|
/**
|
|
1716
1709
|
* Custom content to appear after the input.
|
|
1717
1710
|
*
|
|
1718
1711
|
* Defaults to **null**.
|
|
1719
1712
|
*/
|
|
1720
|
-
trailingContent:
|
|
1713
|
+
trailingContent: a.node,
|
|
1721
1714
|
/**
|
|
1722
1715
|
* 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.
|
|
1723
1716
|
*
|
|
1724
1717
|
* Defaults to **null**.
|
|
1725
1718
|
*/
|
|
1726
|
-
trailingIcon:
|
|
1719
|
+
trailingIcon: a.oneOfType([a.string, a.node]),
|
|
1727
1720
|
/**
|
|
1728
1721
|
* 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.
|
|
1729
1722
|
*
|
|
1730
1723
|
* Defaults to **'text'**.
|
|
1731
1724
|
*/
|
|
1732
|
-
type:
|
|
1725
|
+
type: a.oneOf(["button", "checkbox", "color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "radio", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week"]),
|
|
1733
1726
|
/**
|
|
1734
1727
|
* Applies an invalid style to the Textfield.
|
|
1735
1728
|
*
|
|
1736
1729
|
* Defaults to **true**.
|
|
1737
1730
|
*/
|
|
1738
|
-
valid:
|
|
1731
|
+
valid: a.bool,
|
|
1739
1732
|
/**
|
|
1740
1733
|
* The current value of the Textfield component.
|
|
1741
1734
|
*
|
|
1742
1735
|
* Defaults to **undefined**.
|
|
1743
1736
|
*/
|
|
1744
|
-
value:
|
|
1737
|
+
value: a.oneOfType([a.string, a.number]),
|
|
1745
1738
|
/**
|
|
1746
1739
|
* Applies the selected styling to the Textfield. _Note_ `textarea` does not support the `embedded` variant.
|
|
1747
1740
|
*
|
|
1748
1741
|
* Defaults to **'filled'**.
|
|
1749
1742
|
*/
|
|
1750
|
-
variant:
|
|
1751
|
-
},
|
|
1743
|
+
variant: a.oneOf(["filled", "outlined", "embedded"])
|
|
1744
|
+
}, pi = {
|
|
1745
|
+
alignment: "left",
|
|
1752
1746
|
block: void 0,
|
|
1753
1747
|
className: void 0,
|
|
1754
1748
|
containerClass: void 0,
|
|
@@ -1773,6 +1767,7 @@ const vr = {
|
|
|
1773
1767
|
maxLength: void 0,
|
|
1774
1768
|
maxlength: null,
|
|
1775
1769
|
noResize: !0,
|
|
1770
|
+
onBlur: null,
|
|
1776
1771
|
outlined: void 0,
|
|
1777
1772
|
placeholder: null,
|
|
1778
1773
|
prefixText: null,
|
|
@@ -1788,130 +1783,112 @@ const vr = {
|
|
|
1788
1783
|
valid: !0,
|
|
1789
1784
|
value: void 0,
|
|
1790
1785
|
variant: "filled"
|
|
1791
|
-
},
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1786
|
+
}, hi = ["alignment", "block", "className", "containerClass", "containerProps", "containerStyle", "counter", "defaultValue", "dense", "disabled", "embedded", "filled", "focused", "fullWidth", "helperText", "helperTextId", "helperTextPersistent", "helperTextValidation", "id", "label", "labelId", "leadingContent", "leadingIcon", "maxLength", "maxlength", "noResize", "onBlur", "outlined", "placeholder", "prefixText", "primary", "search", "secondary", "suffixText", "textarea", "tooltip", "trailingContent", "trailingIcon", "type", "valid", "value", "variant"];
|
|
1787
|
+
function Xe(r, e) {
|
|
1788
|
+
var t = qn(r);
|
|
1789
|
+
if (Ve) {
|
|
1790
|
+
var n = Ve(r);
|
|
1791
|
+
e && (n = Xn(n).call(n, function(i) {
|
|
1792
|
+
return We(r, i).enumerable;
|
|
1793
|
+
})), t.push.apply(t, n);
|
|
1794
|
+
}
|
|
1795
|
+
return t;
|
|
1796
|
+
}
|
|
1797
|
+
function H(r) {
|
|
1798
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1799
|
+
var t, n, i = arguments[e] != null ? arguments[e] : {};
|
|
1800
|
+
e % 2 ? Fe(t = Xe(Object(i), !0)).call(t, function(o) {
|
|
1801
|
+
kn(r, o, i[o]);
|
|
1802
|
+
}) : Pe ? Mn(r, Pe(i)) : Fe(n = Xe(Object(i))).call(n, function(o) {
|
|
1803
|
+
Un(r, o, We(i, o));
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
return r;
|
|
1807
|
+
}
|
|
1808
|
+
var Ge = function(r, e) {
|
|
1809
|
+
return r ? /* @__PURE__ */ u.createElement("div", {
|
|
1810
|
+
className: "mdc-text-field-character-counter"
|
|
1811
|
+
}, "0 / ", e) : null;
|
|
1812
|
+
}, _i = function(r) {
|
|
1813
|
+
var e = H({}, r), t = e.type, n = H({}, t), i = n.displayName;
|
|
1814
|
+
return typeof r == "string" ? /* @__PURE__ */ u.createElement(ze, {
|
|
1804
1815
|
role: "button",
|
|
1805
1816
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading",
|
|
1806
|
-
icon:
|
|
1807
|
-
}) :
|
|
1808
|
-
className:
|
|
1809
|
-
dense:
|
|
1817
|
+
icon: r
|
|
1818
|
+
}) : $e(r, {
|
|
1819
|
+
className: U("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading", i === "IconButton" && "lmnt-text-field__icon-button--leading"),
|
|
1820
|
+
dense: i === "IconButton" ? !0 : void 0,
|
|
1810
1821
|
role: "button"
|
|
1811
1822
|
});
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
} = {
|
|
1816
|
-
...i
|
|
1817
|
-
}, {
|
|
1818
|
-
displayName: t
|
|
1819
|
-
} = {
|
|
1820
|
-
...e
|
|
1821
|
-
};
|
|
1822
|
-
return typeof i == "string" ? /* @__PURE__ */ b.createElement(cn, {
|
|
1823
|
+
}, gi = function(r) {
|
|
1824
|
+
var e = H({}, r), t = e.type, n = H({}, t), i = n.displayName;
|
|
1825
|
+
return typeof r == "string" ? /* @__PURE__ */ u.createElement(ze, {
|
|
1823
1826
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing",
|
|
1824
|
-
icon:
|
|
1825
|
-
}) :
|
|
1826
|
-
className:
|
|
1827
|
-
dense:
|
|
1828
|
-
role:
|
|
1827
|
+
icon: r
|
|
1828
|
+
}) : $e(r, {
|
|
1829
|
+
className: U("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing", i === "IconButton" && "lmnt-text-field__icon-button--trailing"),
|
|
1830
|
+
dense: i === "IconButton" ? !0 : void 0,
|
|
1831
|
+
role: i === "IconButton" ? "button" : null
|
|
1829
1832
|
});
|
|
1830
|
-
},
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
placeholder: St,
|
|
1860
|
-
prefixText: _t,
|
|
1861
|
-
primary: Vt = null,
|
|
1862
|
-
search: jt,
|
|
1863
|
-
secondary: Ht,
|
|
1864
|
-
suffixText: bt,
|
|
1865
|
-
textarea: C,
|
|
1866
|
-
tooltip: L,
|
|
1867
|
-
trailingContent: wt,
|
|
1868
|
-
trailingIcon: et,
|
|
1869
|
-
type: Tt,
|
|
1870
|
-
valid: ut,
|
|
1871
|
-
value: V,
|
|
1872
|
-
variant: vt,
|
|
1873
|
-
...Dt
|
|
1874
|
-
} = i, {
|
|
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);
|
|
1833
|
+
}, l = pi, nn = /* @__PURE__ */ At(function(r, e) {
|
|
1834
|
+
var t = r.alignment, n = t === void 0 ? l.alignment : t, i = r.block, o = i === void 0 ? l.block : i, s = r.className, h = s === void 0 ? l.className : s, f = r.containerClass, x = f === void 0 ? l.containerClass : f, T = r.containerProps, it = T === void 0 ? l.containerProps : T, rt = r.containerStyle, P = rt === void 0 ? l.containerStyle : rt, $ = r.counter, R = $ === void 0 ? l.counter : $, z = r.defaultValue, V = z === void 0 ? l.defaultValue : z, Z = r.dense, S = Z === void 0 ? l.dense : Z, p = r.disabled, q = p === void 0 ? l.disabled : p, Nt = r.embedded, Ft = Nt === void 0 ? l.embedded : Nt, Pt = r.filled, rn = Pt === void 0 ? l.filled : Pt, Vt = r.focused, Ht = Vt === void 0 ? l.focused : Vt, St = r.fullWidth, an = St === void 0 ? l.fullWidth : St, Dt = r.helperText, b = Dt === void 0 ? l.helperText : Dt, wt = r.helperTextId, on = wt === void 0 ? l.helperTextId : wt, jt = r.helperTextPersistent, at = jt === void 0 ? l.helperTextPersistent : jt, Bt = r.helperTextValidation, _t = Bt === void 0 ? l.helperTextValidation : Bt, kt = r.id, ln = kt === void 0 ? l.id : kt, Mt = r.label, D = Mt === void 0 ? l.label : Mt, Ut = r.labelId, sn = Ut === void 0 ? l.labelId : Ut, qt = r.leadingContent, un = qt === void 0 ? l.leadingContent : qt, Xt = r.leadingIcon, Y = Xt === void 0 ? l.leadingIcon : Xt, Gt = r.maxLength, gt = Gt === void 0 ? l.maxLength : Gt, Wt = r.maxlength, ot = Wt === void 0 ? l.maxlength : Wt, $t = r.noResize, lt = $t === void 0 ? l.noResize : $t, zt = r.onBlur, Zt = zt === void 0 ? l.onBlur : zt, Yt = r.outlined, dn = Yt === void 0 ? l.outlined : Yt, Kt = r.placeholder, cn = Kt === void 0 ? l.placeholder : Kt, Jt = r.prefixText, Qt = Jt === void 0 ? l.prefixText : Jt, te = r.primary, fn = te === void 0 ? l.primary : te, ee = r.search, pn = ee === void 0 ? l.search : ee, ne = r.secondary, hn = ne === void 0 ? l.secondary : ne, ie = r.suffixText, re = ie === void 0 ? l.suffixText : ie, ae = r.textarea, v = ae === void 0 ? l.textarea : ae, oe = r.tooltip, y = oe === void 0 ? l.tooltip : oe, le = r.trailingContent, _n = le === void 0 ? l.trailingContent : le, se = r.trailingIcon, K = se === void 0 ? l.trailingIcon : se, ue = r.type, de = ue === void 0 ? l.type : ue, ce = r.valid, st = ce === void 0 ? l.valid : ce, fe = r.value, N = fe === void 0 ? l.value : fe, pe = r.variant, vt = pe === void 0 ? l.variant : pe, mt = Ot(r, hi), he = y && wn(y) === "object" ? y : {}, gn = he.hoisted, _e = he.position, ge = _e === void 0 ? "bottom" : _e, vn = k(function() {
|
|
1835
|
+
return ln || Ct();
|
|
1836
|
+
}), mn = B(vn, 1), ut = mn[0], bn = k(function() {
|
|
1837
|
+
return on || Ct();
|
|
1838
|
+
}), yn = B(bn, 1), bt = yn[0], In = k(function() {
|
|
1839
|
+
return sn || Ct();
|
|
1840
|
+
}), xn = B(In, 1), yt = xn[0], Tn = k(!0), ve = B(Tn, 2), me = ve[0], En = ve[1], Cn = k(!1), be = B(Cn, 2), It = be[0], Ln = be[1], On = k(ot), ye = B(On, 2), w = ye[0], An = ye[1], Rn = k(Ht || !1), Ie = B(Rn, 2), Nn = Ie[0], xe = Ie[1], Fn = b || R && w, Pn = v ? "textarea" : "input", Te = O(), j = O(), m = O(), xt = O(), Ee = O(), Tt = O(), dt = O(), J = O(), Vn = (K || Y) && !v, X = Yn(function() {
|
|
1841
|
+
return st ?? !0;
|
|
1842
|
+
}, [st]), G = !v && (Ft || pn || vt === "embedded"), ct = !Ft && (dn || hn || vt === "outlined"), ft = !ct && !G && (fn || rn || vt === "filled"), Q = G || an || o, Et = !G && !!D && !S;
|
|
1843
|
+
g(function() {
|
|
1844
|
+
return m.current = li.attachTo(xt.current), function() {
|
|
1845
|
+
m.current.destroy();
|
|
1846
|
+
};
|
|
1847
|
+
}, [It]), Ze(e, function() {
|
|
1848
|
+
return {
|
|
1849
|
+
mdc: m.current,
|
|
1850
|
+
input: Ee.current,
|
|
1851
|
+
container: Tt.current,
|
|
1852
|
+
label: xt.current
|
|
1853
|
+
};
|
|
1854
|
+
}), g(function() {
|
|
1855
|
+
return b && typeof b == "string" && (j.current = new tn(Te.current)), function() {
|
|
1856
|
+
j.current && j.current.destroy();
|
|
1857
|
+
};
|
|
1858
|
+
}, [b]), g(function() {
|
|
1859
|
+
if (b) {
|
|
1860
|
+
var d, _, E, C;
|
|
1861
|
+
(d = j.current) === null || d === void 0 || d.foundation.setValidation(_t), (_ = j.current) === null || _ === void 0 || _.foundation.setValidity(X), (E = j.current) === null || E === void 0 || E.foundation.setPersistent(at), (C = j.current) === null || C === void 0 || C.foundation.setContent(b);
|
|
1891
1862
|
}
|
|
1892
|
-
}, [
|
|
1893
|
-
|
|
1894
|
-
}, [
|
|
1895
|
-
|
|
1896
|
-
}, [
|
|
1897
|
-
|
|
1898
|
-
}, [
|
|
1899
|
-
|
|
1900
|
-
}, [
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1863
|
+
}, [b, at, _t, X]), g(function() {
|
|
1864
|
+
V || (m.current.value = N || N === 0 ? N : ""), m.current.valid = X;
|
|
1865
|
+
}, [m, N, X, V]), g(function() {
|
|
1866
|
+
m.current.disabled = q;
|
|
1867
|
+
}, [m, q]), g(function() {
|
|
1868
|
+
An(gt && !ot ? gt : ot);
|
|
1869
|
+
}, [ot, gt]), g(function() {
|
|
1870
|
+
Ln(w > 0 && R);
|
|
1871
|
+
}, [w, R]), g(function() {
|
|
1872
|
+
var d = Q || R || b;
|
|
1873
|
+
En(d);
|
|
1874
|
+
}, [Q, R, b]);
|
|
1875
|
+
var Hn = function() {
|
|
1876
|
+
st !== void 0 && N !== null && (m.current.valid = st);
|
|
1877
|
+
}, Sn = function(d) {
|
|
1878
|
+
xe(!1), Zt && Zt(d), Hn();
|
|
1879
|
+
}, Dn = function(d) {
|
|
1880
|
+
xe(!0), mt.onFocus && mt.onFocus(d);
|
|
1881
|
+
}, Ce = function() {
|
|
1882
|
+
m.current.value = "", m.current.valid = X;
|
|
1909
1883
|
};
|
|
1910
|
-
|
|
1911
|
-
window.
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1884
|
+
g(function() {
|
|
1885
|
+
return jn() ? (window.addEventListener("reset", Ce), function() {
|
|
1886
|
+
window.removeEventListener("reset", Ce);
|
|
1887
|
+
}) : function() {
|
|
1888
|
+
};
|
|
1889
|
+
}, []), g(function() {
|
|
1890
|
+
if (y) {
|
|
1891
|
+
var d = [{
|
|
1915
1892
|
name: "flip",
|
|
1916
1893
|
options: {
|
|
1917
1894
|
enabled: !0,
|
|
@@ -1926,453 +1903,102 @@ const vr = {
|
|
|
1926
1903
|
offset: [0, 12]
|
|
1927
1904
|
}
|
|
1928
1905
|
}];
|
|
1929
|
-
|
|
1930
|
-
placement:
|
|
1931
|
-
modifiers:
|
|
1906
|
+
J.current = Bn(Tt.current, dt.current, {
|
|
1907
|
+
placement: ge,
|
|
1908
|
+
modifiers: d
|
|
1932
1909
|
});
|
|
1933
1910
|
}
|
|
1934
|
-
return ()
|
|
1911
|
+
return function() {
|
|
1935
1912
|
var _;
|
|
1936
|
-
(_ =
|
|
1913
|
+
(_ = J.current) === null || _ === void 0 || _.destroy();
|
|
1937
1914
|
};
|
|
1938
|
-
}, [
|
|
1939
|
-
|
|
1940
|
-
if (
|
|
1941
|
-
|
|
1942
|
-
if (
|
|
1943
|
-
var _,
|
|
1944
|
-
(_ =
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1915
|
+
}, [ge, gn, y]);
|
|
1916
|
+
var Le = De(function() {
|
|
1917
|
+
if (N) {
|
|
1918
|
+
var d = m.current.input_;
|
|
1919
|
+
if (d.offsetWidth < d.scrollWidth) {
|
|
1920
|
+
var _, E, C;
|
|
1921
|
+
(_ = dt.current) === null || _ === void 0 || _.setAttribute("data-show", ""), (E = J.current) === null || E === void 0 || E.setOptions(function(Ae) {
|
|
1922
|
+
var Re;
|
|
1923
|
+
return H(H({}, Ae), {}, {
|
|
1924
|
+
modifiers: Ne(Re = []).call(Re, He(Ae.modifiers), [{
|
|
1925
|
+
name: "eventListeners",
|
|
1926
|
+
enabled: !0
|
|
1927
|
+
}])
|
|
1928
|
+
});
|
|
1929
|
+
}), (C = J.current) === null || C === void 0 || C.update();
|
|
1951
1930
|
}
|
|
1952
1931
|
}
|
|
1953
|
-
}, [
|
|
1954
|
-
var
|
|
1955
|
-
(
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1932
|
+
}, [N]), Oe = De(function() {
|
|
1933
|
+
var d, _;
|
|
1934
|
+
(d = dt.current) === null || d === void 0 || d.removeAttribute("data-show"), (_ = J.current) === null || _ === void 0 || _.setOptions(function(E) {
|
|
1935
|
+
var C;
|
|
1936
|
+
return H(H({}, E), {}, {
|
|
1937
|
+
modifiers: Ne(C = []).call(C, He(E.modifiers), [{
|
|
1938
|
+
name: "eventListeners",
|
|
1939
|
+
enabled: !1
|
|
1940
|
+
}])
|
|
1941
|
+
});
|
|
1942
|
+
});
|
|
1962
1943
|
}, []);
|
|
1963
|
-
return /* @__PURE__ */
|
|
1964
|
-
ref:
|
|
1965
|
-
style:
|
|
1966
|
-
className:
|
|
1967
|
-
},
|
|
1968
|
-
onMouseEnter:
|
|
1969
|
-
onFocus:
|
|
1970
|
-
onMouseLeave:
|
|
1971
|
-
onBlur:
|
|
1972
|
-
}),
|
|
1973
|
-
htmlFor:
|
|
1974
|
-
ref:
|
|
1975
|
-
className:
|
|
1976
|
-
},
|
|
1944
|
+
return /* @__PURE__ */ u.createElement("div", tt({
|
|
1945
|
+
ref: Tt,
|
|
1946
|
+
style: P,
|
|
1947
|
+
className: U("lmnt", "lmnt-text-field--container", Q && "lmnt-text-field--container-full-width", !Q && me && "lmnt-text-field--container-to-content-width", !me && "lmnt-text-field-inline-container", x)
|
|
1948
|
+
}, it, {
|
|
1949
|
+
onMouseEnter: y && Le,
|
|
1950
|
+
onFocus: y && Le,
|
|
1951
|
+
onMouseLeave: y && Oe,
|
|
1952
|
+
onBlur: y && Oe
|
|
1953
|
+
}), un, /* @__PURE__ */ u.createElement("label", {
|
|
1954
|
+
htmlFor: ut,
|
|
1955
|
+
ref: xt,
|
|
1956
|
+
className: U(["lmnt", "mdc-text-field", "lmnt-text-field", G && "lmnt-text-field--embedded", Q && "lmnt-text-field--full-width", Vn && "lmnt-text-field--with-icon", !X && "mdc-text-field--invalid", q && "mdc-text-field--disabled", Ht && "mdc-text-field--focused", !Et && "mdc-text-field--no-label", Y && !v && "mdc-text-field--with-leading-icon", v && "mdc-text-field--textarea", v && R && w && !lt && "mdc-text-field--with-internal-counter", K && !v && "mdc-text-field--with-trailing-icon", ft && "mdc-text-field--filled", ct && "mdc-text-field--outlined", S && "lmnt-text-field--dense", h])
|
|
1957
|
+
}, ft && /* @__PURE__ */ u.createElement("span", {
|
|
1977
1958
|
className: "mdc-text-field__ripple"
|
|
1978
|
-
}),
|
|
1959
|
+
}), Y && !v && _i(Y), Qt && !Y && !v && /* @__PURE__ */ u.createElement("span", {
|
|
1979
1960
|
className: "mdc-text-field__affix mdc-text-field__affix--prefix"
|
|
1980
|
-
},
|
|
1981
|
-
wrap: !
|
|
1982
|
-
}, /* @__PURE__ */
|
|
1983
|
-
"aria-controls":
|
|
1984
|
-
"aria-describedby":
|
|
1985
|
-
"aria-labelledby":
|
|
1986
|
-
className:
|
|
1987
|
-
disabled:
|
|
1988
|
-
id:
|
|
1989
|
-
type:
|
|
1990
|
-
onBlur:
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1961
|
+
}, Qt), /* @__PURE__ */ u.createElement(en, {
|
|
1962
|
+
wrap: !lt && v
|
|
1963
|
+
}, /* @__PURE__ */ u.createElement(Pn, tt({
|
|
1964
|
+
"aria-controls": bt,
|
|
1965
|
+
"aria-describedby": bt,
|
|
1966
|
+
"aria-labelledby": yt,
|
|
1967
|
+
className: U("mdc-text-field__input", S && n === "right" && "lmnt-text-field--alignment-right", de === "color" && "lmnt-text-field__input--color"),
|
|
1968
|
+
disabled: q,
|
|
1969
|
+
id: ut,
|
|
1970
|
+
type: de,
|
|
1971
|
+
onBlur: Sn,
|
|
1972
|
+
onFocus: Dn,
|
|
1973
|
+
defaultValue: V,
|
|
1974
|
+
placeholder: ct && !Nn ? "" : cn || (G && D ? D : "") || (S && D ? D : ""),
|
|
1975
|
+
maxLength: w,
|
|
1976
|
+
ref: Ee,
|
|
1977
|
+
value: N
|
|
1978
|
+
}, mt)), !lt && Ge(It, w)), K && !v && gi(K), re && !K && !v && /* @__PURE__ */ u.createElement("span", {
|
|
1997
1979
|
className: "mdc-text-field__affix mdc-text-field__affix--suffix"
|
|
1998
|
-
},
|
|
1999
|
-
id:
|
|
2000
|
-
htmlFor:
|
|
2001
|
-
},
|
|
2002
|
-
id:
|
|
2003
|
-
htmlFor:
|
|
2004
|
-
},
|
|
1980
|
+
}, re), ct && /* @__PURE__ */ u.createElement(Wn, null, Et && /* @__PURE__ */ u.createElement(Se, {
|
|
1981
|
+
id: yt,
|
|
1982
|
+
htmlFor: ut
|
|
1983
|
+
}, D)), ft && Et && /* @__PURE__ */ u.createElement(Se, {
|
|
1984
|
+
id: yt,
|
|
1985
|
+
htmlFor: ut
|
|
1986
|
+
}, D), (ft || G) && /* @__PURE__ */ u.createElement(Rt, null)), _n, Fn && /* @__PURE__ */ u.createElement("div", {
|
|
2005
1987
|
className: "mdc-text-field-helper-line"
|
|
2006
|
-
},
|
|
2007
|
-
ref:
|
|
2008
|
-
id:
|
|
2009
|
-
"aria-hidden":
|
|
2010
|
-
className:
|
|
2011
|
-
},
|
|
1988
|
+
}, b && /* @__PURE__ */ u.createElement("div", {
|
|
1989
|
+
ref: Te,
|
|
1990
|
+
id: bt,
|
|
1991
|
+
"aria-hidden": at ? "false" : "true",
|
|
1992
|
+
className: U(["mdc-text-field-helper-text", at && "mdc-text-field-helper-text--persistent", _t && "mdc-text-field-helper-text--validation-msg"])
|
|
1993
|
+
}, b), lt && Ge(It, w)), y && /* @__PURE__ */ u.createElement($n, tt({
|
|
2012
1994
|
role: "tooltip"
|
|
2013
|
-
},
|
|
2014
|
-
ref:
|
|
2015
|
-
text:
|
|
1995
|
+
}, y, {
|
|
1996
|
+
ref: dt,
|
|
1997
|
+
text: N
|
|
2016
1998
|
})));
|
|
2017
1999
|
});
|
|
2018
|
-
|
|
2019
|
-
|
|
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);
|
|
2000
|
+
nn.displayName = "Textfield";
|
|
2001
|
+
nn.propTypes = fi;
|
|
2374
2002
|
export {
|
|
2375
|
-
|
|
2376
|
-
ye as x,
|
|
2377
|
-
xr as z
|
|
2003
|
+
nn as n
|
|
2378
2004
|
};
|