@hortiview/shared-components 2.8.6 → 2.8.7
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/CHANGELOG.md +6 -0
- package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
- package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
- package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
- package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
- package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
- package/dist/_Map-BmafU0dj.js +113 -0
- package/dist/components/AlertBanner/AlertBanner.js +4 -4
- package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
- package/dist/components/AlertBanner/LinkBanner.js +3 -3
- package/dist/components/BaseView/BaseView.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.js +2 -2
- package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
- package/dist/components/BlockView/BlockView.js +1 -1
- package/dist/components/ChipCard/ChipCard.js +499 -390
- package/dist/components/ContextMenu/ContextMenu.js +4 -4
- package/dist/components/DeleteModal/DeleteModal.js +5 -5
- package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
- package/dist/components/Disclaimer/Disclaimer.js +3 -3
- package/dist/components/EmptyView/EmptyView.js +161 -125
- package/dist/components/Filter/Filter.js +11 -11
- package/dist/components/Filter/Filter.test.js +51 -35
- package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
- package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +2 -2
- package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
- package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
- package/dist/components/FormComponents/FormText/FormText.js +2 -2
- package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
- package/dist/components/GenericTable/GenericTable.js +8246 -7153
- package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
- package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
- package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
- package/dist/components/HashTabView/HashTabView.js +552 -541
- package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
- package/dist/components/Iconify/Iconify.js +2 -2
- package/dist/components/InfoCard/InfoCard.js +4 -4
- package/dist/components/InfoGroup/InfoGroup.js +3 -3
- package/dist/components/ListArea/ListArea.js +16 -16
- package/dist/components/ListArea/ListArea.test.js +20 -20
- package/dist/components/ListArea/ListAreaService.js +6 -6
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
- package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
- package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
- package/dist/components/Modal/Modal.js +305 -312
- package/dist/components/ModulePadding/ModulePadding.js +8 -8
- package/dist/components/OfflineView/OfflineView.js +4 -4
- package/dist/components/OfflineView/OfflineView.test.js +1 -1
- package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
- package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
- package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Stepper/Stepper.js +1 -1
- package/dist/components/Stepper/components/StepperButton.js +1 -1
- package/dist/components/Stepper/components/StepperHeader.js +2 -2
- package/dist/components/Stepper/components/StepperIndicator.js +1 -1
- package/dist/defineProperty-CmuOyxyf.js +318 -0
- package/dist/es.string.iterator-DrqCBub-.js +581 -0
- package/dist/find-B-dm7n_F.js +88 -0
- package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
- package/dist/get-u1nFMLdT.js +377 -0
- package/dist/hooks/useHelperText.js +1 -1
- package/dist/identity-BIZAN_pL.js +213 -0
- package/dist/includes-Bt-Stz_B.js +110 -0
- package/dist/index-Cpb-8cAN.js +2465 -0
- package/dist/index.es-0QJC9VS2.js +325 -0
- package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
- package/dist/index.es-B6ZgiW2s.js +3790 -0
- package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
- package/dist/index.es-BRtk0Q33.js +42 -0
- package/dist/index.es-BXj90wb_.js +402 -0
- package/dist/index.es-Bg8hxXM8.js +912 -0
- package/dist/index.es-Bgjh6euR.js +292 -0
- package/dist/index.es-Bo1Rhtyb.js +80 -0
- package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
- package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
- package/dist/index.es-CmF6xAUJ.js +48 -0
- package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
- package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
- package/dist/index.es-DDYCugj-.js +166 -0
- package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
- package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
- package/dist/index.es-DeF-y7fd.js +122 -0
- package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
- package/dist/index.es-DqSY-ePE.js +4923 -0
- package/dist/index.es-DwzB1d7_.js +1061 -0
- package/dist/index.es-IXyb5F6n.js +457 -0
- package/dist/index.es-t7hFwQSs.js +67 -0
- package/dist/isArray-DN9s620O.js +83 -0
- package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
- package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
- package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
- package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
- package/dist/keyboard-B-WUULl-.js +173 -0
- package/dist/main.js +2 -2
- package/dist/map-Dbvlv_6y.js +707 -0
- package/dist/omit-uTAyrUTm.js +645 -0
- package/dist/orderBy-BXxEvUw6.js +571 -0
- package/dist/parse-int-qVAoFbOL.js +75 -0
- package/dist/services/UtilService.js +7 -7
- package/dist/slicedToArray-BWk2gTCn.js +436 -0
- package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
- package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
- package/package.json +3 -3
- package/dist/_baseIsEqual-Df2URKWm.js +0 -240
- package/dist/_getAllKeys-BQWmkEw5.js +0 -86
- package/dist/_getTag-BkGSRa18.js +0 -79
- package/dist/_setToString-B6E13pDg.js +0 -580
- package/dist/get-DQr2KQKm.js +0 -113
- package/dist/index-D5m--65X.js +0 -1491
- package/dist/index.es-8MVlRCi4.js +0 -1066
- package/dist/index.es-BbaCXS9-.js +0 -45
- package/dist/index.es-BikIx4uw.js +0 -3242
- package/dist/index.es-CDMu_yu0.js +0 -954
- package/dist/index.es-ChSlnpSq.js +0 -309
- package/dist/index.es-D66OkZJH.js +0 -4853
- package/dist/index.es-DFFyENnI.js +0 -63
- package/dist/index.es-DTMwaJ6B.js +0 -56
- package/dist/index.es-DgTJmbgD.js +0 -268
- package/dist/index.es-DmsyeHLO.js +0 -306
- package/dist/index.es-Dw1eih7R.js +0 -159
- package/dist/index.es-eKuwB1ll.js +0 -54
- package/dist/index.es-qxTN-Bb2.js +0 -107
- package/dist/index.es-xnSvM9b9.js +0 -444
- package/dist/isArray-DDZrq40X.js +0 -456
- package/dist/keyboard-Bpt0aBqQ.js +0 -107
- package/dist/omit-BN3qeeaj.js +0 -364
- package/dist/orderBy-D4LvP9Az.js +0 -316
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { _ as Oe, a as te, c as k, P as a, b as Nt, d as wn } from "./index-Cpb-8cAN.js";
|
|
2
|
+
import { g as Mn, _ as jn, a as Pt, b as $n, c as Bn, d as Xt, e as Ft, f as kn } from "./defineProperty-CmuOyxyf.js";
|
|
3
|
+
import { _ as St } from "./index.es-t7hFwQSs.js";
|
|
4
|
+
import { _ as j } from "./slicedToArray-BWk2gTCn.js";
|
|
5
|
+
import { e as Ee, w as Un, _ as Vt, c as Gt, d as P, r as qn } from "./index.es-BXj90wb_.js";
|
|
6
|
+
import d, { forwardRef as Ae, useRef as O, useImperativeHandle as zt, useEffect as v, useState as $, useMemo as Wn, useCallback as Dt } from "react";
|
|
7
|
+
import { M as Xn, a as Gn, N as zn, F as Ht, T as Yn } from "./index.es-Cq04gn3U.js";
|
|
8
|
+
import { b as A, c as f } from "./tslib.es6-BDCynO9F.js";
|
|
9
|
+
import { M as ne, a as ie } from "./component-neHBNHRu.js";
|
|
10
|
+
import { c as Kn, I as Yt } from "./index.es-DwzB1d7_.js";
|
|
11
|
+
import { a as pe, M as wt, b as Jn, m as Qn } from "./component-DsB0poTj.js";
|
|
9
12
|
/**
|
|
10
13
|
* @license
|
|
11
14
|
* Copyright 2018 Google Inc.
|
|
@@ -28,7 +31,7 @@ import { a as ie, M as He, b as Tt, m as yt } from "./component-DsB0poTj.js";
|
|
|
28
31
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
29
32
|
* THE SOFTWARE.
|
|
30
33
|
*/
|
|
31
|
-
var
|
|
34
|
+
var B = {
|
|
32
35
|
LINE_RIPPLE_ACTIVE: "mdc-line-ripple--active",
|
|
33
36
|
LINE_RIPPLE_DEACTIVATING: "mdc-line-ripple--deactivating"
|
|
34
37
|
};
|
|
@@ -54,19 +57,19 @@ var P = {
|
|
|
54
57
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
55
58
|
* THE SOFTWARE.
|
|
56
59
|
*/
|
|
57
|
-
var
|
|
60
|
+
var Zn = (
|
|
58
61
|
/** @class */
|
|
59
|
-
function(
|
|
60
|
-
|
|
62
|
+
function(r) {
|
|
63
|
+
A(t, r);
|
|
61
64
|
function t(e) {
|
|
62
|
-
var n =
|
|
65
|
+
var n = r.call(this, f(f({}, t.defaultAdapter), e)) || this;
|
|
63
66
|
return n.transitionEndHandler_ = function(i) {
|
|
64
67
|
return n.handleTransitionEnd(i);
|
|
65
68
|
}, n;
|
|
66
69
|
}
|
|
67
70
|
return Object.defineProperty(t, "cssClasses", {
|
|
68
71
|
get: function() {
|
|
69
|
-
return
|
|
72
|
+
return B;
|
|
70
73
|
},
|
|
71
74
|
enumerable: !1,
|
|
72
75
|
configurable: !0
|
|
@@ -98,16 +101,16 @@ var Ct = (
|
|
|
98
101
|
}, t.prototype.destroy = function() {
|
|
99
102
|
this.adapter.deregisterEventHandler("transitionend", this.transitionEndHandler_);
|
|
100
103
|
}, t.prototype.activate = function() {
|
|
101
|
-
this.adapter.removeClass(
|
|
104
|
+
this.adapter.removeClass(B.LINE_RIPPLE_DEACTIVATING), this.adapter.addClass(B.LINE_RIPPLE_ACTIVE);
|
|
102
105
|
}, t.prototype.setRippleCenter = function(e) {
|
|
103
106
|
this.adapter.setStyle("transform-origin", e + "px center");
|
|
104
107
|
}, t.prototype.deactivate = function() {
|
|
105
|
-
this.adapter.addClass(
|
|
108
|
+
this.adapter.addClass(B.LINE_RIPPLE_DEACTIVATING);
|
|
106
109
|
}, t.prototype.handleTransitionEnd = function(e) {
|
|
107
|
-
var n = this.adapter.hasClass(
|
|
108
|
-
e.propertyName === "opacity" && n && (this.adapter.removeClass(
|
|
110
|
+
var n = this.adapter.hasClass(B.LINE_RIPPLE_DEACTIVATING);
|
|
111
|
+
e.propertyName === "opacity" && n && (this.adapter.removeClass(B.LINE_RIPPLE_ACTIVE), this.adapter.removeClass(B.LINE_RIPPLE_DEACTIVATING));
|
|
109
112
|
}, t;
|
|
110
|
-
}(
|
|
113
|
+
}(ne)
|
|
111
114
|
);
|
|
112
115
|
/**
|
|
113
116
|
* @license
|
|
@@ -131,12 +134,12 @@ var Ct = (
|
|
|
131
134
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
132
135
|
* THE SOFTWARE.
|
|
133
136
|
*/
|
|
134
|
-
var
|
|
137
|
+
var Kt = (
|
|
135
138
|
/** @class */
|
|
136
|
-
function(
|
|
137
|
-
|
|
139
|
+
function(r) {
|
|
140
|
+
A(t, r);
|
|
138
141
|
function t() {
|
|
139
|
-
return
|
|
142
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
140
143
|
}
|
|
141
144
|
return t.attachTo = function(e) {
|
|
142
145
|
return new t(e);
|
|
@@ -167,9 +170,9 @@ var ze = (
|
|
|
167
170
|
return e.unlisten(i, o);
|
|
168
171
|
}
|
|
169
172
|
};
|
|
170
|
-
return new
|
|
173
|
+
return new Zn(n);
|
|
171
174
|
}, t;
|
|
172
|
-
}(
|
|
175
|
+
}(ie)
|
|
173
176
|
);
|
|
174
177
|
/**
|
|
175
178
|
* @license
|
|
@@ -193,10 +196,10 @@ var ze = (
|
|
|
193
196
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
194
197
|
* THE SOFTWARE.
|
|
195
198
|
*/
|
|
196
|
-
var
|
|
199
|
+
var Jt = {
|
|
197
200
|
ROOT: "mdc-text-field-character-counter"
|
|
198
|
-
},
|
|
199
|
-
ROOT_SELECTOR: "." +
|
|
201
|
+
}, ei = {
|
|
202
|
+
ROOT_SELECTOR: "." + Jt.ROOT
|
|
200
203
|
};
|
|
201
204
|
/**
|
|
202
205
|
* @license
|
|
@@ -220,22 +223,22 @@ var Ye = {
|
|
|
220
223
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
221
224
|
* THE SOFTWARE.
|
|
222
225
|
*/
|
|
223
|
-
var
|
|
226
|
+
var Qt = (
|
|
224
227
|
/** @class */
|
|
225
|
-
function(
|
|
226
|
-
|
|
228
|
+
function(r) {
|
|
229
|
+
A(t, r);
|
|
227
230
|
function t(e) {
|
|
228
|
-
return
|
|
231
|
+
return r.call(this, f(f({}, t.defaultAdapter), e)) || this;
|
|
229
232
|
}
|
|
230
233
|
return Object.defineProperty(t, "cssClasses", {
|
|
231
234
|
get: function() {
|
|
232
|
-
return
|
|
235
|
+
return Jt;
|
|
233
236
|
},
|
|
234
237
|
enumerable: !1,
|
|
235
238
|
configurable: !0
|
|
236
239
|
}), Object.defineProperty(t, "strings", {
|
|
237
240
|
get: function() {
|
|
238
|
-
return
|
|
241
|
+
return ei;
|
|
239
242
|
},
|
|
240
243
|
enumerable: !1,
|
|
241
244
|
configurable: !0
|
|
@@ -254,7 +257,7 @@ var Ke = (
|
|
|
254
257
|
}), t.prototype.setCounterValue = function(e, n) {
|
|
255
258
|
e = Math.min(e, n), this.adapter.setContent(e + " / " + n);
|
|
256
259
|
}, t;
|
|
257
|
-
}(
|
|
260
|
+
}(ne)
|
|
258
261
|
);
|
|
259
262
|
/**
|
|
260
263
|
* @license
|
|
@@ -278,12 +281,12 @@ var Ke = (
|
|
|
278
281
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
279
282
|
* THE SOFTWARE.
|
|
280
283
|
*/
|
|
281
|
-
var
|
|
284
|
+
var ti = (
|
|
282
285
|
/** @class */
|
|
283
|
-
function(
|
|
284
|
-
|
|
286
|
+
function(r) {
|
|
287
|
+
A(t, r);
|
|
285
288
|
function t() {
|
|
286
|
-
return
|
|
289
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
287
290
|
}
|
|
288
291
|
return t.attachTo = function(e) {
|
|
289
292
|
return new t(e);
|
|
@@ -300,9 +303,9 @@ var Lt = (
|
|
|
300
303
|
e.root.textContent = i;
|
|
301
304
|
}
|
|
302
305
|
};
|
|
303
|
-
return new
|
|
306
|
+
return new Qt(n);
|
|
304
307
|
}, t;
|
|
305
|
-
}(
|
|
308
|
+
}(ie)
|
|
306
309
|
);
|
|
307
310
|
/**
|
|
308
311
|
* @license
|
|
@@ -326,7 +329,7 @@ var Lt = (
|
|
|
326
329
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
327
330
|
* THE SOFTWARE.
|
|
328
331
|
*/
|
|
329
|
-
var
|
|
332
|
+
var x = {
|
|
330
333
|
ARIA_CONTROLS: "aria-controls",
|
|
331
334
|
ARIA_DESCRIBEDBY: "aria-describedby",
|
|
332
335
|
INPUT_SELECTOR: ".mdc-text-field__input",
|
|
@@ -337,7 +340,7 @@ var I = {
|
|
|
337
340
|
PREFIX_SELECTOR: ".mdc-text-field__affix--prefix",
|
|
338
341
|
SUFFIX_SELECTOR: ".mdc-text-field__affix--suffix",
|
|
339
342
|
TRAILING_ICON_SELECTOR: ".mdc-text-field__icon--trailing"
|
|
340
|
-
},
|
|
343
|
+
}, he = {
|
|
341
344
|
DISABLED: "mdc-text-field--disabled",
|
|
342
345
|
FOCUSED: "mdc-text-field--focused",
|
|
343
346
|
HELPER_LINE: "mdc-text-field-helper-line",
|
|
@@ -349,9 +352,9 @@ var I = {
|
|
|
349
352
|
TEXTAREA: "mdc-text-field--textarea",
|
|
350
353
|
WITH_LEADING_ICON: "mdc-text-field--with-leading-icon",
|
|
351
354
|
WITH_TRAILING_ICON: "mdc-text-field--with-trailing-icon"
|
|
352
|
-
},
|
|
355
|
+
}, Mt = {
|
|
353
356
|
LABEL_SCALE: 0.75
|
|
354
|
-
},
|
|
357
|
+
}, ni = [
|
|
355
358
|
"pattern",
|
|
356
359
|
"min",
|
|
357
360
|
"max",
|
|
@@ -359,7 +362,7 @@ var I = {
|
|
|
359
362
|
"step",
|
|
360
363
|
"minlength",
|
|
361
364
|
"maxlength"
|
|
362
|
-
],
|
|
365
|
+
], ii = [
|
|
363
366
|
"color",
|
|
364
367
|
"date",
|
|
365
368
|
"datetime-local",
|
|
@@ -390,13 +393,13 @@ var I = {
|
|
|
390
393
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
391
394
|
* THE SOFTWARE.
|
|
392
395
|
*/
|
|
393
|
-
var
|
|
396
|
+
var jt = ["mousedown", "touchstart"], $t = ["click", "keydown"], ri = (
|
|
394
397
|
/** @class */
|
|
395
|
-
function(
|
|
396
|
-
|
|
398
|
+
function(r) {
|
|
399
|
+
A(t, r);
|
|
397
400
|
function t(e, n) {
|
|
398
401
|
n === void 0 && (n = {});
|
|
399
|
-
var i =
|
|
402
|
+
var i = r.call(this, f(f({}, t.defaultAdapter), e)) || this;
|
|
400
403
|
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() {
|
|
401
404
|
return i.activateFocus();
|
|
402
405
|
}, i.inputBlurHandler_ = function() {
|
|
@@ -413,26 +416,26 @@ var Me = ["mousedown", "touchstart"], je = ["click", "keydown"], Rt = (
|
|
|
413
416
|
}
|
|
414
417
|
return Object.defineProperty(t, "cssClasses", {
|
|
415
418
|
get: function() {
|
|
416
|
-
return
|
|
419
|
+
return he;
|
|
417
420
|
},
|
|
418
421
|
enumerable: !1,
|
|
419
422
|
configurable: !0
|
|
420
423
|
}), Object.defineProperty(t, "strings", {
|
|
421
424
|
get: function() {
|
|
422
|
-
return
|
|
425
|
+
return x;
|
|
423
426
|
},
|
|
424
427
|
enumerable: !1,
|
|
425
428
|
configurable: !0
|
|
426
429
|
}), Object.defineProperty(t, "numbers", {
|
|
427
430
|
get: function() {
|
|
428
|
-
return
|
|
431
|
+
return Mt;
|
|
429
432
|
},
|
|
430
433
|
enumerable: !1,
|
|
431
434
|
configurable: !0
|
|
432
435
|
}), Object.defineProperty(t.prototype, "shouldAlwaysFloat_", {
|
|
433
436
|
get: function() {
|
|
434
437
|
var e = this.getNativeInput_().type;
|
|
435
|
-
return
|
|
438
|
+
return ii.indexOf(e) >= 0;
|
|
436
439
|
},
|
|
437
440
|
enumerable: !1,
|
|
438
441
|
configurable: !0
|
|
@@ -517,16 +520,16 @@ var Me = ["mousedown", "touchstart"], je = ["click", "keydown"], Rt = (
|
|
|
517
520
|
configurable: !0
|
|
518
521
|
}), t.prototype.init = function() {
|
|
519
522
|
var e = this;
|
|
520
|
-
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_),
|
|
523
|
+
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_), jt.forEach(function(n) {
|
|
521
524
|
e.adapter.registerInputInteractionHandler(n, e.setPointerXOffset_);
|
|
522
|
-
}),
|
|
525
|
+
}), $t.forEach(function(n) {
|
|
523
526
|
e.adapter.registerTextFieldInteractionHandler(n, e.textFieldInteractionHandler_);
|
|
524
527
|
}), this.validationObserver_ = this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_), this.setCharacterCounter_(this.getValue().length);
|
|
525
528
|
}, t.prototype.destroy = function() {
|
|
526
529
|
var e = this;
|
|
527
|
-
this.adapter.deregisterInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.deregisterInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.deregisterInputInteractionHandler("input", this.inputInputHandler_),
|
|
530
|
+
this.adapter.deregisterInputInteractionHandler("focus", this.inputFocusHandler_), this.adapter.deregisterInputInteractionHandler("blur", this.inputBlurHandler_), this.adapter.deregisterInputInteractionHandler("input", this.inputInputHandler_), jt.forEach(function(n) {
|
|
528
531
|
e.adapter.deregisterInputInteractionHandler(n, e.setPointerXOffset_);
|
|
529
|
-
}),
|
|
532
|
+
}), $t.forEach(function(n) {
|
|
530
533
|
e.adapter.deregisterTextFieldInteractionHandler(n, e.textFieldInteractionHandler_);
|
|
531
534
|
}), this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_);
|
|
532
535
|
}, t.prototype.handleTextFieldInteraction = function() {
|
|
@@ -535,12 +538,12 @@ var Me = ["mousedown", "touchstart"], je = ["click", "keydown"], Rt = (
|
|
|
535
538
|
}, t.prototype.handleValidationAttributeChange = function(e) {
|
|
536
539
|
var n = this;
|
|
537
540
|
e.some(function(i) {
|
|
538
|
-
return
|
|
541
|
+
return ni.indexOf(i) > -1 ? (n.styleValidity_(!0), n.adapter.setLabelRequired(n.getNativeInput_().required), !0) : !1;
|
|
539
542
|
}), e.indexOf("maxlength") > -1 && this.setCharacterCounter_(this.getValue().length);
|
|
540
543
|
}, t.prototype.notchOutline = function(e) {
|
|
541
544
|
if (!(!this.adapter.hasOutline() || !this.adapter.hasLabel()))
|
|
542
545
|
if (e) {
|
|
543
|
-
var n = this.adapter.getLabelWidth() *
|
|
546
|
+
var n = this.adapter.getLabelWidth() * Mt.LABEL_SCALE;
|
|
544
547
|
this.adapter.notchOutline(n);
|
|
545
548
|
} else
|
|
546
549
|
this.adapter.closeOutline();
|
|
@@ -548,8 +551,8 @@ var Me = ["mousedown", "touchstart"], je = ["click", "keydown"], Rt = (
|
|
|
548
551
|
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();
|
|
549
552
|
}, t.prototype.setTransformOrigin = function(e) {
|
|
550
553
|
if (!(this.isDisabled() || this.adapter.hasOutline())) {
|
|
551
|
-
var n = e.touches, i = n ? n[0] : e, o = i.target.getBoundingClientRect(),
|
|
552
|
-
this.adapter.setLineRippleTransformOrigin(
|
|
554
|
+
var n = e.touches, i = n ? n[0] : e, o = i.target.getBoundingClientRect(), s = i.clientX - o.left;
|
|
555
|
+
this.adapter.setLineRippleTransformOrigin(s);
|
|
553
556
|
}
|
|
554
557
|
}, t.prototype.handleInput = function() {
|
|
555
558
|
this.autoCompleteFocus(), this.setCharacterCounter_(this.getValue().length);
|
|
@@ -611,8 +614,8 @@ var Me = ["mousedown", "touchstart"], je = ["click", "keydown"], Rt = (
|
|
|
611
614
|
var i = this.helperText_.isValidation();
|
|
612
615
|
if (!i)
|
|
613
616
|
return;
|
|
614
|
-
var o = this.helperText_.isVisible(),
|
|
615
|
-
o &&
|
|
617
|
+
var o = this.helperText_.isVisible(), s = this.helperText_.getId();
|
|
618
|
+
o && s ? this.adapter.setInputAttr(x.ARIA_DESCRIBEDBY, s) : this.adapter.removeInputAttr(x.ARIA_DESCRIBEDBY);
|
|
616
619
|
}
|
|
617
620
|
}, t.prototype.styleFocused_ = function(e) {
|
|
618
621
|
var n = t.cssClasses.FOCUSED;
|
|
@@ -637,7 +640,7 @@ var Me = ["mousedown", "touchstart"], je = ["click", "keydown"], Rt = (
|
|
|
637
640
|
value: ""
|
|
638
641
|
};
|
|
639
642
|
}, t;
|
|
640
|
-
}(
|
|
643
|
+
}(ne)
|
|
641
644
|
);
|
|
642
645
|
/**
|
|
643
646
|
* @license
|
|
@@ -661,14 +664,14 @@ var Me = ["mousedown", "touchstart"], je = ["click", "keydown"], Rt = (
|
|
|
661
664
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
662
665
|
* THE SOFTWARE.
|
|
663
666
|
*/
|
|
664
|
-
var
|
|
667
|
+
var L = {
|
|
665
668
|
HELPER_TEXT_PERSISTENT: "mdc-text-field-helper-text--persistent",
|
|
666
669
|
HELPER_TEXT_VALIDATION_MSG: "mdc-text-field-helper-text--validation-msg",
|
|
667
670
|
ROOT: "mdc-text-field-helper-text"
|
|
668
|
-
},
|
|
671
|
+
}, G = {
|
|
669
672
|
ARIA_HIDDEN: "aria-hidden",
|
|
670
673
|
ROLE: "role",
|
|
671
|
-
ROOT_SELECTOR: "." +
|
|
674
|
+
ROOT_SELECTOR: "." + L.ROOT
|
|
672
675
|
};
|
|
673
676
|
/**
|
|
674
677
|
* @license
|
|
@@ -692,22 +695,22 @@ var T = {
|
|
|
692
695
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
693
696
|
* THE SOFTWARE.
|
|
694
697
|
*/
|
|
695
|
-
var
|
|
698
|
+
var Zt = (
|
|
696
699
|
/** @class */
|
|
697
|
-
function(
|
|
698
|
-
|
|
700
|
+
function(r) {
|
|
701
|
+
A(t, r);
|
|
699
702
|
function t(e) {
|
|
700
|
-
return
|
|
703
|
+
return r.call(this, f(f({}, t.defaultAdapter), e)) || this;
|
|
701
704
|
}
|
|
702
705
|
return Object.defineProperty(t, "cssClasses", {
|
|
703
706
|
get: function() {
|
|
704
|
-
return
|
|
707
|
+
return L;
|
|
705
708
|
},
|
|
706
709
|
enumerable: !1,
|
|
707
710
|
configurable: !0
|
|
708
711
|
}), Object.defineProperty(t, "strings", {
|
|
709
712
|
get: function() {
|
|
710
|
-
return
|
|
713
|
+
return G;
|
|
711
714
|
},
|
|
712
715
|
enumerable: !1,
|
|
713
716
|
configurable: !0
|
|
@@ -740,26 +743,26 @@ var Je = (
|
|
|
740
743
|
}), t.prototype.getId = function() {
|
|
741
744
|
return this.adapter.getAttr("id");
|
|
742
745
|
}, t.prototype.isVisible = function() {
|
|
743
|
-
return this.adapter.getAttr(
|
|
746
|
+
return this.adapter.getAttr(G.ARIA_HIDDEN) !== "true";
|
|
744
747
|
}, t.prototype.setContent = function(e) {
|
|
745
748
|
this.adapter.setContent(e);
|
|
746
749
|
}, t.prototype.isPersistent = function() {
|
|
747
|
-
return this.adapter.hasClass(
|
|
750
|
+
return this.adapter.hasClass(L.HELPER_TEXT_PERSISTENT);
|
|
748
751
|
}, t.prototype.setPersistent = function(e) {
|
|
749
|
-
e ? this.adapter.addClass(
|
|
752
|
+
e ? this.adapter.addClass(L.HELPER_TEXT_PERSISTENT) : this.adapter.removeClass(L.HELPER_TEXT_PERSISTENT);
|
|
750
753
|
}, t.prototype.isValidation = function() {
|
|
751
|
-
return this.adapter.hasClass(
|
|
754
|
+
return this.adapter.hasClass(L.HELPER_TEXT_VALIDATION_MSG);
|
|
752
755
|
}, t.prototype.setValidation = function(e) {
|
|
753
|
-
e ? this.adapter.addClass(
|
|
756
|
+
e ? this.adapter.addClass(L.HELPER_TEXT_VALIDATION_MSG) : this.adapter.removeClass(L.HELPER_TEXT_VALIDATION_MSG);
|
|
754
757
|
}, t.prototype.showToScreenReader = function() {
|
|
755
|
-
this.adapter.removeAttr(
|
|
758
|
+
this.adapter.removeAttr(G.ARIA_HIDDEN);
|
|
756
759
|
}, t.prototype.setValidity = function(e) {
|
|
757
|
-
var n = this.adapter.hasClass(
|
|
758
|
-
o ? (this.showToScreenReader(), this.adapter.setAttr(
|
|
760
|
+
var n = this.adapter.hasClass(L.HELPER_TEXT_PERSISTENT), i = this.adapter.hasClass(L.HELPER_TEXT_VALIDATION_MSG), o = i && !e;
|
|
761
|
+
o ? (this.showToScreenReader(), this.adapter.setAttr(G.ROLE, "alert")) : this.adapter.removeAttr(G.ROLE), !n && !o && this.hide_();
|
|
759
762
|
}, t.prototype.hide_ = function() {
|
|
760
|
-
this.adapter.setAttr(
|
|
763
|
+
this.adapter.setAttr(G.ARIA_HIDDEN, "true");
|
|
761
764
|
}, t;
|
|
762
|
-
}(
|
|
765
|
+
}(ne)
|
|
763
766
|
);
|
|
764
767
|
/**
|
|
765
768
|
* @license
|
|
@@ -783,12 +786,12 @@ var Je = (
|
|
|
783
786
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
784
787
|
* THE SOFTWARE.
|
|
785
788
|
*/
|
|
786
|
-
var
|
|
789
|
+
var en = (
|
|
787
790
|
/** @class */
|
|
788
|
-
function(
|
|
789
|
-
|
|
791
|
+
function(r) {
|
|
792
|
+
A(t, r);
|
|
790
793
|
function t() {
|
|
791
|
-
return
|
|
794
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
792
795
|
}
|
|
793
796
|
return t.attachTo = function(e) {
|
|
794
797
|
return new t(e);
|
|
@@ -823,9 +826,9 @@ var Qe = (
|
|
|
823
826
|
e.root.textContent = i;
|
|
824
827
|
}
|
|
825
828
|
};
|
|
826
|
-
return new
|
|
829
|
+
return new Zt(n);
|
|
827
830
|
}, t;
|
|
828
|
-
}(
|
|
831
|
+
}(ie)
|
|
829
832
|
);
|
|
830
833
|
/**
|
|
831
834
|
* @license
|
|
@@ -849,10 +852,10 @@ var Qe = (
|
|
|
849
852
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
850
853
|
* THE SOFTWARE.
|
|
851
854
|
*/
|
|
852
|
-
var
|
|
855
|
+
var Bt = {
|
|
853
856
|
ICON_EVENT: "MDCTextField:icon",
|
|
854
857
|
ICON_ROLE: "button"
|
|
855
|
-
},
|
|
858
|
+
}, ai = {
|
|
856
859
|
ROOT: "mdc-text-field__icon"
|
|
857
860
|
};
|
|
858
861
|
/**
|
|
@@ -877,25 +880,25 @@ var Be = {
|
|
|
877
880
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
878
881
|
* THE SOFTWARE.
|
|
879
882
|
*/
|
|
880
|
-
var
|
|
883
|
+
var kt = ["click", "keydown"], Ut = (
|
|
881
884
|
/** @class */
|
|
882
|
-
function(
|
|
883
|
-
|
|
885
|
+
function(r) {
|
|
886
|
+
A(t, r);
|
|
884
887
|
function t(e) {
|
|
885
|
-
var n =
|
|
888
|
+
var n = r.call(this, f(f({}, t.defaultAdapter), e)) || this;
|
|
886
889
|
return n.savedTabIndex_ = null, n.interactionHandler_ = function(i) {
|
|
887
890
|
return n.handleInteraction(i);
|
|
888
891
|
}, n;
|
|
889
892
|
}
|
|
890
893
|
return Object.defineProperty(t, "strings", {
|
|
891
894
|
get: function() {
|
|
892
|
-
return
|
|
895
|
+
return Bt;
|
|
893
896
|
},
|
|
894
897
|
enumerable: !1,
|
|
895
898
|
configurable: !0
|
|
896
899
|
}), Object.defineProperty(t, "cssClasses", {
|
|
897
900
|
get: function() {
|
|
898
|
-
return
|
|
901
|
+
return ai;
|
|
899
902
|
},
|
|
900
903
|
enumerable: !1,
|
|
901
904
|
configurable: !0
|
|
@@ -926,16 +929,16 @@ var ke = ["click", "keydown"], Ue = (
|
|
|
926
929
|
configurable: !0
|
|
927
930
|
}), t.prototype.init = function() {
|
|
928
931
|
var e = this;
|
|
929
|
-
this.savedTabIndex_ = this.adapter.getAttr("tabindex"),
|
|
932
|
+
this.savedTabIndex_ = this.adapter.getAttr("tabindex"), kt.forEach(function(n) {
|
|
930
933
|
e.adapter.registerInteractionHandler(n, e.interactionHandler_);
|
|
931
934
|
});
|
|
932
935
|
}, t.prototype.destroy = function() {
|
|
933
936
|
var e = this;
|
|
934
|
-
|
|
937
|
+
kt.forEach(function(n) {
|
|
935
938
|
e.adapter.deregisterInteractionHandler(n, e.interactionHandler_);
|
|
936
939
|
});
|
|
937
940
|
}, t.prototype.setDisabled = function(e) {
|
|
938
|
-
this.savedTabIndex_ && (e ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex_), this.adapter.setAttr("role",
|
|
941
|
+
this.savedTabIndex_ && (e ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex_), this.adapter.setAttr("role", Bt.ICON_ROLE)));
|
|
939
942
|
}, t.prototype.setAriaLabel = function(e) {
|
|
940
943
|
this.adapter.setAttr("aria-label", e);
|
|
941
944
|
}, t.prototype.setContent = function(e) {
|
|
@@ -944,7 +947,7 @@ var ke = ["click", "keydown"], Ue = (
|
|
|
944
947
|
var n = e.key === "Enter" || e.keyCode === 13;
|
|
945
948
|
(e.type === "click" || n) && (e.preventDefault(), this.adapter.notifyIconAction());
|
|
946
949
|
}, t;
|
|
947
|
-
}(
|
|
950
|
+
}(ne)
|
|
948
951
|
);
|
|
949
952
|
/**
|
|
950
953
|
* @license
|
|
@@ -968,12 +971,12 @@ var ke = ["click", "keydown"], Ue = (
|
|
|
968
971
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
969
972
|
* THE SOFTWARE.
|
|
970
973
|
*/
|
|
971
|
-
var
|
|
974
|
+
var oi = (
|
|
972
975
|
/** @class */
|
|
973
|
-
function(
|
|
974
|
-
|
|
976
|
+
function(r) {
|
|
977
|
+
A(t, r);
|
|
975
978
|
function t() {
|
|
976
|
-
return
|
|
979
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
977
980
|
}
|
|
978
981
|
return t.attachTo = function(e) {
|
|
979
982
|
return new t(e);
|
|
@@ -1006,16 +1009,16 @@ var Ft = (
|
|
|
1006
1009
|
},
|
|
1007
1010
|
notifyIconAction: function() {
|
|
1008
1011
|
return e.emit(
|
|
1009
|
-
|
|
1012
|
+
Ut.strings.ICON_EVENT,
|
|
1010
1013
|
{},
|
|
1011
1014
|
!0
|
|
1012
1015
|
/* shouldBubble */
|
|
1013
1016
|
);
|
|
1014
1017
|
}
|
|
1015
1018
|
};
|
|
1016
|
-
return new
|
|
1019
|
+
return new Ut(n);
|
|
1017
1020
|
}, t;
|
|
1018
|
-
}(
|
|
1021
|
+
}(ie)
|
|
1019
1022
|
);
|
|
1020
1023
|
/**
|
|
1021
1024
|
* @license
|
|
@@ -1039,47 +1042,47 @@ var Ft = (
|
|
|
1039
1042
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1040
1043
|
* THE SOFTWARE.
|
|
1041
1044
|
*/
|
|
1042
|
-
var
|
|
1045
|
+
var li = (
|
|
1043
1046
|
/** @class */
|
|
1044
|
-
function(
|
|
1045
|
-
|
|
1047
|
+
function(r) {
|
|
1048
|
+
A(t, r);
|
|
1046
1049
|
function t() {
|
|
1047
|
-
return
|
|
1050
|
+
return r !== null && r.apply(this, arguments) || this;
|
|
1048
1051
|
}
|
|
1049
1052
|
return t.attachTo = function(e) {
|
|
1050
1053
|
return new t(e);
|
|
1051
|
-
}, t.prototype.initialize = function(e, n, i, o,
|
|
1052
|
-
e === void 0 && (e = function(
|
|
1053
|
-
return new
|
|
1054
|
-
}), n === void 0 && (n = function(
|
|
1055
|
-
return new
|
|
1056
|
-
}), i === void 0 && (i = function(
|
|
1057
|
-
return new
|
|
1058
|
-
}), o === void 0 && (o = function(
|
|
1059
|
-
return new
|
|
1060
|
-
}),
|
|
1061
|
-
return new
|
|
1062
|
-
}),
|
|
1063
|
-
return new
|
|
1064
|
-
}), p === void 0 && (p = function(
|
|
1065
|
-
return new
|
|
1066
|
-
}), this.input_ = this.root.querySelector(
|
|
1067
|
-
var
|
|
1068
|
-
this.label_ =
|
|
1069
|
-
var
|
|
1070
|
-
this.lineRipple_ =
|
|
1071
|
-
var
|
|
1072
|
-
this.outline_ =
|
|
1073
|
-
var
|
|
1074
|
-
this.helperText_ =
|
|
1075
|
-
var
|
|
1076
|
-
!
|
|
1077
|
-
var
|
|
1078
|
-
this.leadingIcon_ =
|
|
1079
|
-
var
|
|
1080
|
-
this.trailingIcon_ =
|
|
1054
|
+
}, t.prototype.initialize = function(e, n, i, o, s, _, p) {
|
|
1055
|
+
e === void 0 && (e = function(h, U) {
|
|
1056
|
+
return new wt(h, U);
|
|
1057
|
+
}), n === void 0 && (n = function(h) {
|
|
1058
|
+
return new Kt(h);
|
|
1059
|
+
}), i === void 0 && (i = function(h) {
|
|
1060
|
+
return new en(h);
|
|
1061
|
+
}), o === void 0 && (o = function(h) {
|
|
1062
|
+
return new ti(h);
|
|
1063
|
+
}), s === void 0 && (s = function(h) {
|
|
1064
|
+
return new oi(h);
|
|
1065
|
+
}), _ === void 0 && (_ = function(h) {
|
|
1066
|
+
return new Xn(h);
|
|
1067
|
+
}), p === void 0 && (p = function(h) {
|
|
1068
|
+
return new Gn(h);
|
|
1069
|
+
}), this.input_ = this.root.querySelector(x.INPUT_SELECTOR);
|
|
1070
|
+
var y = this.root.querySelector(x.LABEL_SELECTOR);
|
|
1071
|
+
this.label_ = y ? _(y) : null;
|
|
1072
|
+
var T = this.root.querySelector(x.LINE_RIPPLE_SELECTOR);
|
|
1073
|
+
this.lineRipple_ = T ? n(T) : null;
|
|
1074
|
+
var re = this.root.querySelector(x.OUTLINE_SELECTOR);
|
|
1075
|
+
this.outline_ = re ? p(re) : null;
|
|
1076
|
+
var ae = Zt.strings, F = this.root.nextElementSibling, z = F && F.classList.contains(he.HELPER_LINE), R = z && F && F.querySelector(ae.ROOT_SELECTOR);
|
|
1077
|
+
this.helperText_ = R ? i(R) : null;
|
|
1078
|
+
var Y = Qt.strings, S = this.root.querySelector(Y.ROOT_SELECTOR);
|
|
1079
|
+
!S && z && F && (S = F.querySelector(Y.ROOT_SELECTOR)), this.characterCounter_ = S ? o(S) : null;
|
|
1080
|
+
var K = this.root.querySelector(x.LEADING_ICON_SELECTOR);
|
|
1081
|
+
this.leadingIcon_ = K ? s(K) : null;
|
|
1082
|
+
var D = this.root.querySelector(x.TRAILING_ICON_SELECTOR);
|
|
1083
|
+
this.trailingIcon_ = D ? s(D) : null, this.prefix_ = this.root.querySelector(x.PREFIX_SELECTOR), this.suffix_ = this.root.querySelector(x.SUFFIX_SELECTOR), this.ripple = this.createRipple_(e);
|
|
1081
1084
|
}, t.prototype.destroy = function() {
|
|
1082
|
-
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(),
|
|
1085
|
+
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);
|
|
1083
1086
|
}, t.prototype.initialSyncWithDOM = function() {
|
|
1084
1087
|
this.disabled = this.input_.disabled;
|
|
1085
1088
|
}, Object.defineProperty(t.prototype, "value", {
|
|
@@ -1294,7 +1297,7 @@ var Pt = (
|
|
|
1294
1297
|
this.foundation.notchOutline(e);
|
|
1295
1298
|
}, t.prototype.getDefaultFoundation = function() {
|
|
1296
1299
|
var e = f(f(f(f(f({}, this.getRootAdapterMethods_()), this.getInputAdapterMethods_()), this.getLabelAdapterMethods_()), this.getLineRippleAdapterMethods_()), this.getOutlineAdapterMethods_());
|
|
1297
|
-
return new
|
|
1300
|
+
return new ri(e, this.getFoundationMap_());
|
|
1298
1301
|
}, t.prototype.getRootAdapterMethods_ = function() {
|
|
1299
1302
|
var e = this;
|
|
1300
1303
|
return {
|
|
@@ -1314,16 +1317,16 @@ var Pt = (
|
|
|
1314
1317
|
e.unlisten(n, i);
|
|
1315
1318
|
},
|
|
1316
1319
|
registerValidationAttributeChangeHandler: function(n) {
|
|
1317
|
-
var i = function(
|
|
1318
|
-
return
|
|
1320
|
+
var i = function(_) {
|
|
1321
|
+
return _.map(function(p) {
|
|
1319
1322
|
return p.attributeName;
|
|
1320
1323
|
}).filter(function(p) {
|
|
1321
1324
|
return p;
|
|
1322
1325
|
});
|
|
1323
|
-
}, o = new MutationObserver(function(
|
|
1324
|
-
return n(i(
|
|
1325
|
-
}),
|
|
1326
|
-
return o.observe(e.input_,
|
|
1326
|
+
}, o = new MutationObserver(function(_) {
|
|
1327
|
+
return n(i(_));
|
|
1328
|
+
}), s = { attributes: !0 };
|
|
1329
|
+
return o.observe(e.input_, s), o;
|
|
1327
1330
|
},
|
|
1328
1331
|
deregisterValidationAttributeChangeHandler: function(n) {
|
|
1329
1332
|
n.disconnect();
|
|
@@ -1345,10 +1348,10 @@ var Pt = (
|
|
|
1345
1348
|
return document.activeElement === e.input_;
|
|
1346
1349
|
},
|
|
1347
1350
|
registerInputInteractionHandler: function(n, i) {
|
|
1348
|
-
e.input_.addEventListener(n, i,
|
|
1351
|
+
e.input_.addEventListener(n, i, pe());
|
|
1349
1352
|
},
|
|
1350
1353
|
deregisterInputInteractionHandler: function(n, i) {
|
|
1351
|
-
e.input_.removeEventListener(n, i,
|
|
1354
|
+
e.input_.removeEventListener(n, i, pe());
|
|
1352
1355
|
}
|
|
1353
1356
|
};
|
|
1354
1357
|
}, t.prototype.getLabelAdapterMethods_ = function() {
|
|
@@ -1404,84 +1407,76 @@ var Pt = (
|
|
|
1404
1407
|
trailingIcon: this.trailingIcon_ ? this.trailingIcon_.foundationForTextField : void 0
|
|
1405
1408
|
};
|
|
1406
1409
|
}, t.prototype.createRipple_ = function(e) {
|
|
1407
|
-
var n = this, i = this.root.classList.contains(
|
|
1410
|
+
var n = this, i = this.root.classList.contains(he.TEXTAREA), o = this.root.classList.contains(he.OUTLINED);
|
|
1408
1411
|
if (i || o)
|
|
1409
1412
|
return null;
|
|
1410
|
-
var
|
|
1411
|
-
return
|
|
1412
|
-
}, registerInteractionHandler: function(
|
|
1413
|
-
return n.input_.addEventListener(
|
|
1414
|
-
}, deregisterInteractionHandler: function(
|
|
1415
|
-
return n.input_.removeEventListener(
|
|
1413
|
+
var s = f(f({}, wt.createAdapter(this)), { isSurfaceActive: function() {
|
|
1414
|
+
return Qn(n.input_, ":active");
|
|
1415
|
+
}, registerInteractionHandler: function(_, p) {
|
|
1416
|
+
return n.input_.addEventListener(_, p, pe());
|
|
1417
|
+
}, deregisterInteractionHandler: function(_, p) {
|
|
1418
|
+
return n.input_.removeEventListener(_, p, pe());
|
|
1416
1419
|
} });
|
|
1417
|
-
return e(this.root, new
|
|
1420
|
+
return e(this.root, new Jn(s));
|
|
1418
1421
|
}, t;
|
|
1419
|
-
}(
|
|
1420
|
-
)
|
|
1421
|
-
const Vt = {
|
|
1422
|
+
}(ie)
|
|
1423
|
+
), si = {
|
|
1422
1424
|
/**
|
|
1423
1425
|
*
|
|
1424
1426
|
*
|
|
1425
1427
|
* Defaults to **null**.
|
|
1426
1428
|
*/
|
|
1427
|
-
activated:
|
|
1429
|
+
activated: a.bool,
|
|
1428
1430
|
/**
|
|
1429
1431
|
* The css class name to be passed through to the component markup.
|
|
1430
1432
|
*
|
|
1431
1433
|
* Defaults to **undefined**.
|
|
1432
1434
|
*/
|
|
1433
|
-
className:
|
|
1435
|
+
className: a.string,
|
|
1434
1436
|
/**
|
|
1435
1437
|
*
|
|
1436
1438
|
*
|
|
1437
1439
|
* Defaults to **null**.
|
|
1438
1440
|
*/
|
|
1439
|
-
rippleCenter:
|
|
1440
|
-
},
|
|
1441
|
+
rippleCenter: a.string
|
|
1442
|
+
}, ui = {
|
|
1441
1443
|
activated: null,
|
|
1442
1444
|
className: void 0,
|
|
1443
1445
|
rippleCenter: null
|
|
1444
|
-
},
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
}, o));
|
|
1446
|
+
}, di = ["activated", "rippleCenter", "className"], Le = ui, Re = /* @__PURE__ */ Ae(function(r, t) {
|
|
1447
|
+
var e = r.activated, n = e === void 0 ? Le.activated : e, i = r.rippleCenter, o = i === void 0 ? Le.rippleCenter : i, s = r.className, _ = s === void 0 ? Le.className : s, p = Oe(r, di), y = O(), T = O();
|
|
1448
|
+
return zt(t, function() {
|
|
1449
|
+
return T.current;
|
|
1450
|
+
}, []), v(function() {
|
|
1451
|
+
return y.current = Kt.attachTo(T.current), function() {
|
|
1452
|
+
y.current.destroy();
|
|
1453
|
+
};
|
|
1454
|
+
}, [T]), v(function() {
|
|
1455
|
+
n ? y.current.activate() : y.current.deactivate();
|
|
1456
|
+
}, [n]), v(function() {
|
|
1457
|
+
o && y.current.setRippleCenter(o);
|
|
1458
|
+
}, [o]), /* @__PURE__ */ d.createElement("div", te({
|
|
1459
|
+
ref: T,
|
|
1460
|
+
className: k("lmnt", "mdc-line-ripple", _)
|
|
1461
|
+
}, p));
|
|
1461
1462
|
});
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
wrap: e,
|
|
1468
|
-
children: n
|
|
1469
|
-
} = a;
|
|
1470
|
-
return e ? /* @__PURE__ */ c.createElement("span", {
|
|
1463
|
+
Re.displayName = "LineRipple";
|
|
1464
|
+
Re.propTypes = si;
|
|
1465
|
+
var ci = ["wrap", "children"], tn = /* @__PURE__ */ Ae(function(r, t) {
|
|
1466
|
+
var e = r.wrap, n = r.children, i = Oe(r, ci);
|
|
1467
|
+
return e ? /* @__PURE__ */ d.createElement("span", te({
|
|
1471
1468
|
ref: t,
|
|
1472
1469
|
className: "mdc-text-field__resizer"
|
|
1473
|
-
}, n) : n;
|
|
1470
|
+
}, i), n) : n;
|
|
1474
1471
|
});
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
};
|
|
1484
|
-
const St = {
|
|
1472
|
+
tn.displayName = "TextfieldSpanShim";
|
|
1473
|
+
var fi = {
|
|
1474
|
+
/**
|
|
1475
|
+
* For dense textfield this aligns the contents of the text-field to left or right
|
|
1476
|
+
*
|
|
1477
|
+
* Defaults to **'left'**.
|
|
1478
|
+
*/
|
|
1479
|
+
alignment: a.oneOf(["left", "right"]),
|
|
1485
1480
|
/**
|
|
1486
1481
|
* @deprecated _Use `fullWidth` instead._
|
|
1487
1482
|
*
|
|
@@ -1489,13 +1484,13 @@ const St = {
|
|
|
1489
1484
|
*
|
|
1490
1485
|
* Defaults to **undefined**.
|
|
1491
1486
|
*/
|
|
1492
|
-
block:
|
|
1487
|
+
block: P(a.bool, "Textfield", "Use `fullWidth` instead."),
|
|
1493
1488
|
/**
|
|
1494
1489
|
* The css class name to be passed through to the component markup.
|
|
1495
1490
|
*
|
|
1496
1491
|
* Defaults to **undefined**.
|
|
1497
1492
|
*/
|
|
1498
|
-
className:
|
|
1493
|
+
className: a.string,
|
|
1499
1494
|
/**
|
|
1500
1495
|
* @deprecated _See `containerProps`._
|
|
1501
1496
|
*
|
|
@@ -1503,37 +1498,37 @@ const St = {
|
|
|
1503
1498
|
*
|
|
1504
1499
|
* Defaults to **undefined**.
|
|
1505
1500
|
*/
|
|
1506
|
-
containerClass:
|
|
1501
|
+
containerClass: P(a.string, "Textfield", "See `containerProps`."),
|
|
1507
1502
|
/**
|
|
1508
1503
|
* Properties to be added to the container of the textfield.
|
|
1509
1504
|
*
|
|
1510
1505
|
* Defaults to **undefined**.
|
|
1511
1506
|
*/
|
|
1512
|
-
containerProps:
|
|
1507
|
+
containerProps: a.object,
|
|
1513
1508
|
/**
|
|
1514
1509
|
* Enables a character count. _Warning_ requires `maxlength` to be set.
|
|
1515
1510
|
*
|
|
1516
1511
|
* Defaults to **false**.
|
|
1517
1512
|
*/
|
|
1518
|
-
counter:
|
|
1513
|
+
counter: a.bool,
|
|
1519
1514
|
/**
|
|
1520
1515
|
* The starting value of the Textfield when working in uncontrolled mode.
|
|
1521
1516
|
*
|
|
1522
1517
|
* Defaults to **undefined**.
|
|
1523
1518
|
*/
|
|
1524
|
-
defaultValue:
|
|
1519
|
+
defaultValue: a.oneOfType([a.string, a.number]),
|
|
1525
1520
|
/**
|
|
1526
1521
|
* The size of the Textfield will be reduced.
|
|
1527
1522
|
*
|
|
1528
1523
|
* Defaults to **false**.
|
|
1529
1524
|
*/
|
|
1530
|
-
dense:
|
|
1525
|
+
dense: a.bool,
|
|
1531
1526
|
/**
|
|
1532
1527
|
* Textfield will be disabled.
|
|
1533
1528
|
*
|
|
1534
1529
|
* Defaults to **false**.
|
|
1535
1530
|
*/
|
|
1536
|
-
disabled:
|
|
1531
|
+
disabled: a.bool,
|
|
1537
1532
|
/**
|
|
1538
1533
|
* @deprecated _Use `variant='embedded'_
|
|
1539
1534
|
*
|
|
@@ -1541,7 +1536,7 @@ const St = {
|
|
|
1541
1536
|
*
|
|
1542
1537
|
* Defaults to **undefined**.
|
|
1543
1538
|
*/
|
|
1544
|
-
embedded:
|
|
1539
|
+
embedded: P(a.bool, "Textfield", 'Use `variant="embedded"'),
|
|
1545
1540
|
/**
|
|
1546
1541
|
* @deprecated _Use variant='filled' instead._
|
|
1547
1542
|
*
|
|
@@ -1549,73 +1544,73 @@ const St = {
|
|
|
1549
1544
|
*
|
|
1550
1545
|
* Defaults to **undefined**.
|
|
1551
1546
|
*/
|
|
1552
|
-
filled:
|
|
1547
|
+
filled: P(a.bool, "Textfield", 'Use variant="filled" instead.'),
|
|
1553
1548
|
/**
|
|
1554
1549
|
* Sets the Textfield to the focused state.
|
|
1555
1550
|
*
|
|
1556
1551
|
* Defaults to **false**.
|
|
1557
1552
|
*/
|
|
1558
|
-
focused:
|
|
1553
|
+
focused: a.bool,
|
|
1559
1554
|
/**
|
|
1560
1555
|
* The Textfield will expand to 100% width.
|
|
1561
1556
|
*
|
|
1562
1557
|
* Defaults to **false**.
|
|
1563
1558
|
*/
|
|
1564
|
-
fullWidth:
|
|
1559
|
+
fullWidth: a.bool,
|
|
1565
1560
|
/**
|
|
1566
1561
|
* Helper text to be displayed below Textfield, by default only visible on focus.
|
|
1567
1562
|
*
|
|
1568
1563
|
* Defaults to **null**.
|
|
1569
1564
|
*/
|
|
1570
|
-
helperText:
|
|
1565
|
+
helperText: a.node,
|
|
1571
1566
|
/**
|
|
1572
1567
|
* Randomly generated id for the helper text container element. May be overwritten.
|
|
1573
1568
|
*
|
|
1574
1569
|
* Defaults to **undefined**.
|
|
1575
1570
|
*/
|
|
1576
|
-
helperTextId:
|
|
1571
|
+
helperTextId: a.string,
|
|
1577
1572
|
/**
|
|
1578
1573
|
* Set the helper text to be permanently visible.
|
|
1579
1574
|
*
|
|
1580
1575
|
* Defaults to **false**.
|
|
1581
1576
|
*/
|
|
1582
|
-
helperTextPersistent:
|
|
1577
|
+
helperTextPersistent: a.bool,
|
|
1583
1578
|
/**
|
|
1584
1579
|
* 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').
|
|
1585
1580
|
*
|
|
1586
1581
|
* Defaults to **false**.
|
|
1587
1582
|
*/
|
|
1588
|
-
helperTextValidation:
|
|
1583
|
+
helperTextValidation: a.bool,
|
|
1589
1584
|
/**
|
|
1590
1585
|
* Randomly generated id for the input element. May be overwritten.
|
|
1591
1586
|
*
|
|
1592
1587
|
* Defaults to **undefined**.
|
|
1593
1588
|
*/
|
|
1594
|
-
id:
|
|
1589
|
+
id: a.string,
|
|
1595
1590
|
/**
|
|
1596
1591
|
* 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.
|
|
1597
1592
|
*
|
|
1598
1593
|
* Defaults to **null**.
|
|
1599
1594
|
*/
|
|
1600
|
-
label:
|
|
1595
|
+
label: a.string,
|
|
1601
1596
|
/**
|
|
1602
1597
|
* Randomly generated id for the label element. May be overwritten.
|
|
1603
1598
|
*
|
|
1604
1599
|
* Defaults to **undefined**.
|
|
1605
1600
|
*/
|
|
1606
|
-
labelId:
|
|
1601
|
+
labelId: a.string,
|
|
1607
1602
|
/**
|
|
1608
1603
|
* Custom content to appear before the input.
|
|
1609
1604
|
*
|
|
1610
1605
|
* Defaults to **null**.
|
|
1611
1606
|
*/
|
|
1612
|
-
leadingContent:
|
|
1607
|
+
leadingContent: a.node,
|
|
1613
1608
|
/**
|
|
1614
1609
|
* 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,
|
|
1615
1610
|
*
|
|
1616
1611
|
* Defaults to **null**.
|
|
1617
1612
|
*/
|
|
1618
|
-
leadingIcon:
|
|
1613
|
+
leadingIcon: a.oneOfType([a.string, a.node]),
|
|
1619
1614
|
/**
|
|
1620
1615
|
* @deprecated _Use `maxlength` instead. The case of this prop has changed to be more consistent._
|
|
1621
1616
|
*
|
|
@@ -1623,37 +1618,37 @@ const St = {
|
|
|
1623
1618
|
*
|
|
1624
1619
|
* Defaults to **undefined**.
|
|
1625
1620
|
*/
|
|
1626
|
-
maxLength:
|
|
1621
|
+
maxLength: P(a.number, "Textfield", "Use `maxlength` instead. The case of this prop has changed to be more consistent."),
|
|
1627
1622
|
/**
|
|
1628
1623
|
* Restricts the number of characters that can be entered, best used with counter.
|
|
1629
1624
|
*
|
|
1630
1625
|
* Defaults to **null**.
|
|
1631
1626
|
*/
|
|
1632
|
-
maxlength:
|
|
1627
|
+
maxlength: qn(a.number, "Textfield", "counter"),
|
|
1633
1628
|
/**
|
|
1634
1629
|
* Prevents resizing when using `textarea`.
|
|
1635
1630
|
*
|
|
1636
1631
|
* Defaults to **true**.
|
|
1637
1632
|
*/
|
|
1638
|
-
noResize:
|
|
1633
|
+
noResize: a.bool,
|
|
1639
1634
|
/**
|
|
1640
1635
|
* Fired when focus leaves the input.
|
|
1641
1636
|
*
|
|
1642
1637
|
* Defaults to **null**.
|
|
1643
1638
|
*/
|
|
1644
|
-
onBlur:
|
|
1639
|
+
onBlur: a.func,
|
|
1645
1640
|
/**
|
|
1646
1641
|
* Fired when each character is entered into the Textfield.
|
|
1647
1642
|
*
|
|
1648
1643
|
* Defaults to **null**.
|
|
1649
1644
|
*/
|
|
1650
|
-
onChange:
|
|
1645
|
+
onChange: a.func,
|
|
1651
1646
|
/**
|
|
1652
1647
|
* Fired when the input gains focus.
|
|
1653
1648
|
*
|
|
1654
1649
|
* Defaults to **null**.
|
|
1655
1650
|
*/
|
|
1656
|
-
onFocus:
|
|
1651
|
+
onFocus: a.func,
|
|
1657
1652
|
/**
|
|
1658
1653
|
* @deprecated _Use `variant='outlined'` instead_
|
|
1659
1654
|
*
|
|
@@ -1661,19 +1656,19 @@ const St = {
|
|
|
1661
1656
|
*
|
|
1662
1657
|
* Defaults to **undefined**.
|
|
1663
1658
|
*/
|
|
1664
|
-
outlined:
|
|
1659
|
+
outlined: P(a.bool, "Textfield", 'Use `variant="outlined"` instead'),
|
|
1665
1660
|
/**
|
|
1666
1661
|
* Non-floating label text, will be replaced when the user starts typing.
|
|
1667
1662
|
*
|
|
1668
1663
|
* Defaults to **null**.
|
|
1669
1664
|
*/
|
|
1670
|
-
placeholder:
|
|
1665
|
+
placeholder: a.string,
|
|
1671
1666
|
/**
|
|
1672
1667
|
* 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`.
|
|
1673
1668
|
*
|
|
1674
1669
|
* Defaults to **null**.
|
|
1675
1670
|
*/
|
|
1676
|
-
prefixText:
|
|
1671
|
+
prefixText: a.string,
|
|
1677
1672
|
/**
|
|
1678
1673
|
* @deprecated _This feature is no longer supported. Use `variant='filled'` instead._
|
|
1679
1674
|
*
|
|
@@ -1681,7 +1676,7 @@ const St = {
|
|
|
1681
1676
|
*
|
|
1682
1677
|
* Defaults to **undefined**.
|
|
1683
1678
|
*/
|
|
1684
|
-
primary:
|
|
1679
|
+
primary: P(a.bool, "Textfield", 'This feature is no longer supported. Use `variant="filled"` instead.'),
|
|
1685
1680
|
/**
|
|
1686
1681
|
* @deprecated _Use `variant='embedded'`_
|
|
1687
1682
|
*
|
|
@@ -1689,7 +1684,7 @@ const St = {
|
|
|
1689
1684
|
*
|
|
1690
1685
|
* Defaults to **undefined**.
|
|
1691
1686
|
*/
|
|
1692
|
-
search:
|
|
1687
|
+
search: P(a.bool, "Textfield", 'Use `variant="embedded"`'),
|
|
1693
1688
|
/**
|
|
1694
1689
|
* @deprecated _Use `variant='outlined'` instead._
|
|
1695
1690
|
*
|
|
@@ -1697,62 +1692,63 @@ const St = {
|
|
|
1697
1692
|
*
|
|
1698
1693
|
* Defaults to **undefined**.
|
|
1699
1694
|
*/
|
|
1700
|
-
secondary:
|
|
1695
|
+
secondary: P(a.bool, "Textfield", 'Use `variant="outlined"` instead.'),
|
|
1701
1696
|
/**
|
|
1702
1697
|
* 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`.
|
|
1703
1698
|
*
|
|
1704
1699
|
* Defaults to **null**.
|
|
1705
1700
|
*/
|
|
1706
|
-
suffixText:
|
|
1701
|
+
suffixText: a.string,
|
|
1707
1702
|
/**
|
|
1708
1703
|
* Enabled multi-line text input. _Note_ `textarea` cannot be used with the embedded variant.
|
|
1709
1704
|
*
|
|
1710
1705
|
* Defaults to **false**.
|
|
1711
1706
|
*/
|
|
1712
|
-
textarea:
|
|
1707
|
+
textarea: a.bool,
|
|
1713
1708
|
/**
|
|
1714
1709
|
* 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.
|
|
1715
1710
|
*
|
|
1716
1711
|
* Defaults to **null**.
|
|
1717
1712
|
*/
|
|
1718
|
-
tooltip:
|
|
1713
|
+
tooltip: a.oneOfType([a.bool, a.object]),
|
|
1719
1714
|
/**
|
|
1720
1715
|
* Custom content to appear after the input.
|
|
1721
1716
|
*
|
|
1722
1717
|
* Defaults to **null**.
|
|
1723
1718
|
*/
|
|
1724
|
-
trailingContent:
|
|
1719
|
+
trailingContent: a.node,
|
|
1725
1720
|
/**
|
|
1726
1721
|
* 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.
|
|
1727
1722
|
*
|
|
1728
1723
|
* Defaults to **null**.
|
|
1729
1724
|
*/
|
|
1730
|
-
trailingIcon:
|
|
1725
|
+
trailingIcon: a.oneOfType([a.string, a.node]),
|
|
1731
1726
|
/**
|
|
1732
1727
|
* 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.
|
|
1733
1728
|
*
|
|
1734
1729
|
* Defaults to **'text'**.
|
|
1735
1730
|
*/
|
|
1736
|
-
type:
|
|
1731
|
+
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"]),
|
|
1737
1732
|
/**
|
|
1738
1733
|
* Applies an invalid style to the Textfield.
|
|
1739
1734
|
*
|
|
1740
1735
|
* Defaults to **true**.
|
|
1741
1736
|
*/
|
|
1742
|
-
valid:
|
|
1737
|
+
valid: a.bool,
|
|
1743
1738
|
/**
|
|
1744
1739
|
* The current value of the Textfield component.
|
|
1745
1740
|
*
|
|
1746
1741
|
* Defaults to **undefined**.
|
|
1747
1742
|
*/
|
|
1748
|
-
value:
|
|
1743
|
+
value: a.oneOfType([a.string, a.number]),
|
|
1749
1744
|
/**
|
|
1750
1745
|
* Applies the selected styling to the Textfield. _Note_ `textarea` does not support the `embedded` variant.
|
|
1751
1746
|
*
|
|
1752
1747
|
* Defaults to **'filled'**.
|
|
1753
1748
|
*/
|
|
1754
|
-
variant:
|
|
1755
|
-
},
|
|
1749
|
+
variant: a.oneOf(["filled", "outlined", "embedded"])
|
|
1750
|
+
}, pi = {
|
|
1751
|
+
alignment: "left",
|
|
1756
1752
|
block: void 0,
|
|
1757
1753
|
className: void 0,
|
|
1758
1754
|
containerClass: void 0,
|
|
@@ -1777,6 +1773,7 @@ const St = {
|
|
|
1777
1773
|
maxLength: void 0,
|
|
1778
1774
|
maxlength: null,
|
|
1779
1775
|
noResize: !0,
|
|
1776
|
+
onBlur: null,
|
|
1780
1777
|
outlined: void 0,
|
|
1781
1778
|
placeholder: null,
|
|
1782
1779
|
prefixText: null,
|
|
@@ -1792,130 +1789,112 @@ const St = {
|
|
|
1792
1789
|
valid: !0,
|
|
1793
1790
|
value: void 0,
|
|
1794
1791
|
variant: "filled"
|
|
1795
|
-
},
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1792
|
+
}, 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"];
|
|
1793
|
+
function qt(r, t) {
|
|
1794
|
+
var e = wn(r);
|
|
1795
|
+
if (Ft) {
|
|
1796
|
+
var n = Ft(r);
|
|
1797
|
+
t && (n = kn(n).call(n, function(i) {
|
|
1798
|
+
return Xt(r, i).enumerable;
|
|
1799
|
+
})), e.push.apply(e, n);
|
|
1800
|
+
}
|
|
1801
|
+
return e;
|
|
1802
|
+
}
|
|
1803
|
+
function V(r) {
|
|
1804
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1805
|
+
var e, n, i = arguments[t] != null ? arguments[t] : {};
|
|
1806
|
+
t % 2 ? Nt(e = qt(Object(i), !0)).call(e, function(o) {
|
|
1807
|
+
jn(r, o, i[o]);
|
|
1808
|
+
}) : Pt ? $n(r, Pt(i)) : Nt(n = qt(Object(i))).call(n, function(o) {
|
|
1809
|
+
Bn(r, o, Xt(i, o));
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
return r;
|
|
1813
|
+
}
|
|
1814
|
+
var Wt = function(t, e) {
|
|
1815
|
+
return t ? /* @__PURE__ */ d.createElement("div", {
|
|
1816
|
+
className: "mdc-text-field-character-counter"
|
|
1817
|
+
}, "0 / ", e) : null;
|
|
1818
|
+
}, _i = function(t) {
|
|
1819
|
+
var e = V({}, t), n = e.type, i = V({}, n), o = i.displayName;
|
|
1820
|
+
return typeof t == "string" ? /* @__PURE__ */ d.createElement(Yt, {
|
|
1808
1821
|
role: "button",
|
|
1809
1822
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading",
|
|
1810
|
-
icon:
|
|
1811
|
-
}) :
|
|
1812
|
-
className:
|
|
1813
|
-
dense:
|
|
1823
|
+
icon: t
|
|
1824
|
+
}) : Gt(t, {
|
|
1825
|
+
className: k("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--leading", o === "IconButton" && "lmnt-text-field__icon-button--leading"),
|
|
1826
|
+
dense: o === "IconButton" ? !0 : void 0,
|
|
1814
1827
|
role: "button"
|
|
1815
1828
|
});
|
|
1816
|
-
},
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
} = {
|
|
1820
|
-
...a
|
|
1821
|
-
}, {
|
|
1822
|
-
displayName: e
|
|
1823
|
-
} = {
|
|
1824
|
-
...t
|
|
1825
|
-
};
|
|
1826
|
-
return typeof a == "string" ? /* @__PURE__ */ c.createElement(We, {
|
|
1829
|
+
}, vi = function(t) {
|
|
1830
|
+
var e = V({}, t), n = e.type, i = V({}, n), o = i.displayName;
|
|
1831
|
+
return typeof t == "string" ? /* @__PURE__ */ d.createElement(Yt, {
|
|
1827
1832
|
className: "mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing",
|
|
1828
|
-
icon:
|
|
1829
|
-
}) :
|
|
1830
|
-
className:
|
|
1831
|
-
dense:
|
|
1832
|
-
role:
|
|
1833
|
+
icon: t
|
|
1834
|
+
}) : Gt(t, {
|
|
1835
|
+
className: k("mdc-text-field__icon lmnt-text-field__icon mdc-text-field__icon--trailing", o === "IconButton" && "lmnt-text-field__icon-button--trailing"),
|
|
1836
|
+
dense: o === "IconButton" ? !0 : void 0,
|
|
1837
|
+
role: o === "IconButton" ? "button" : null
|
|
1833
1838
|
});
|
|
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
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
placeholder: et,
|
|
1864
|
-
prefixText: ye,
|
|
1865
|
-
primary: tt = null,
|
|
1866
|
-
search: nt,
|
|
1867
|
-
secondary: it,
|
|
1868
|
-
suffixText: Ce,
|
|
1869
|
-
textarea: g,
|
|
1870
|
-
tooltip: b,
|
|
1871
|
-
trailingContent: rt,
|
|
1872
|
-
trailingIcon: X,
|
|
1873
|
-
type: Ee,
|
|
1874
|
-
valid: H,
|
|
1875
|
-
value: L,
|
|
1876
|
-
variant: ce,
|
|
1877
|
-
...at
|
|
1878
|
-
} = a, {
|
|
1879
|
-
hoisted: ot,
|
|
1880
|
-
position: Le = "bottom"
|
|
1881
|
-
} = b && typeof b == "object" ? b : {}, [ee] = B(() => Q || ve()), [fe] = B(() => J || ve()), [pe] = B(() => ue || ve()), [Oe, st] = B(!0), [he, lt] = B(!1), [N, ut] = B(Z), dt = h || s && N, ct = g ? "textarea" : "input", Ae = y(), F = y(), m = y(), _e = y(), Re = y(), ge = y(), te = y(), G = y(), ft = (X || q) && !g, w = gt(() => H ?? !0, [H]), M = !g && (U || nt || ce === "embedded"), me = !U && ($e || it || ce === "outlined"), ne = !me && !M && (tt || le || ce === "filled"), W = M || K || e, be = !M && !!u && !D;
|
|
1882
|
-
_(() => (m.current = Pt.attachTo(_e.current), () => {
|
|
1883
|
-
m.current.destroy();
|
|
1884
|
-
}), [he]), Ge(t, () => ({
|
|
1885
|
-
mdc: m.current,
|
|
1886
|
-
input: Re.current,
|
|
1887
|
-
container: ge.current,
|
|
1888
|
-
label: _e.current
|
|
1889
|
-
})), _(() => (h && typeof h == "string" && (F.current = new Qe(Ae.current)), () => {
|
|
1890
|
-
F.current && F.current.destroy();
|
|
1891
|
-
}), [h]), _(() => {
|
|
1892
|
-
if (h) {
|
|
1893
|
-
var d, v, x, j;
|
|
1894
|
-
(d = F.current) === null || d === void 0 || d.foundation.setValidation(S), (v = F.current) === null || v === void 0 || v.foundation.setValidity(w), (x = F.current) === null || x === void 0 || x.foundation.setPersistent(E), (j = F.current) === null || j === void 0 || j.foundation.setContent(h);
|
|
1839
|
+
}, l = pi, nn = /* @__PURE__ */ Ae(function(r, t) {
|
|
1840
|
+
var e = r.alignment, n = e === void 0 ? l.alignment : e, i = r.block, o = i === void 0 ? l.block : i, s = r.className, _ = s === void 0 ? l.className : s, p = r.containerClass, y = p === void 0 ? l.containerClass : p, T = r.containerProps, re = T === void 0 ? l.containerProps : T, ae = r.containerStyle, F = ae === void 0 ? l.containerStyle : ae, z = r.counter, R = z === void 0 ? l.counter : z, Y = r.defaultValue, S = Y === void 0 ? l.defaultValue : Y, K = r.dense, D = K === void 0 ? l.dense : K, h = r.disabled, U = h === void 0 ? l.disabled : h, Ne = r.embedded, Pe = Ne === void 0 ? l.embedded : Ne, Fe = r.filled, rn = Fe === void 0 ? l.filled : Fe, Se = r.focused, Ve = Se === void 0 ? l.focused : Se, De = r.fullWidth, an = De === void 0 ? l.fullWidth : De, He = r.helperText, b = He === void 0 ? l.helperText : He, we = r.helperTextId, on = we === void 0 ? l.helperTextId : we, Me = r.helperTextPersistent, oe = Me === void 0 ? l.helperTextPersistent : Me, je = r.helperTextValidation, _e = je === void 0 ? l.helperTextValidation : je, $e = r.id, ln = $e === void 0 ? l.id : $e, Be = r.label, H = Be === void 0 ? l.label : Be, ke = r.labelId, sn = ke === void 0 ? l.labelId : ke, Ue = r.leadingContent, un = Ue === void 0 ? l.leadingContent : Ue, qe = r.leadingIcon, J = qe === void 0 ? l.leadingIcon : qe, We = r.maxLength, ve = We === void 0 ? l.maxLength : We, Xe = r.maxlength, le = Xe === void 0 ? l.maxlength : Xe, Ge = r.noResize, se = Ge === void 0 ? l.noResize : Ge, ze = r.onBlur, Ye = ze === void 0 ? l.onBlur : ze, Ke = r.outlined, dn = Ke === void 0 ? l.outlined : Ke, Je = r.placeholder, cn = Je === void 0 ? l.placeholder : Je, Qe = r.prefixText, Ze = Qe === void 0 ? l.prefixText : Qe, et = r.primary, fn = et === void 0 ? l.primary : et, tt = r.search, pn = tt === void 0 ? l.search : tt, nt = r.secondary, hn = nt === void 0 ? l.secondary : nt, it = r.suffixText, rt = it === void 0 ? l.suffixText : it, at = r.textarea, g = at === void 0 ? l.textarea : at, ot = r.tooltip, I = ot === void 0 ? l.tooltip : ot, lt = r.trailingContent, _n = lt === void 0 ? l.trailingContent : lt, st = r.trailingIcon, Q = st === void 0 ? l.trailingIcon : st, ut = r.type, dt = ut === void 0 ? l.type : ut, ct = r.valid, q = ct === void 0 ? l.valid : ct, ft = r.value, N = ft === void 0 ? l.value : ft, pt = r.variant, ge = pt === void 0 ? l.variant : pt, me = Oe(r, hi), ht = I && Mn(I) === "object" ? I : {}, vn = ht.hoisted, _t = ht.position, vt = _t === void 0 ? "bottom" : _t, gn = $(function() {
|
|
1841
|
+
return ln || Ee();
|
|
1842
|
+
}), mn = j(gn, 1), ue = mn[0], bn = $(function() {
|
|
1843
|
+
return on || Ee();
|
|
1844
|
+
}), In = j(bn, 1), be = In[0], xn = $(function() {
|
|
1845
|
+
return sn || Ee();
|
|
1846
|
+
}), yn = j(xn, 1), Ie = yn[0], Tn = $(!0), gt = j(Tn, 2), mt = gt[0], Cn = gt[1], En = $(!1), bt = j(En, 2), xe = bt[0], Ln = bt[1], On = $(le), It = j(On, 2), w = It[0], An = It[1], Rn = $(Ve || !1), xt = j(Rn, 2), Nn = xt[0], yt = xt[1], Pn = b || R && w, Fn = g ? "textarea" : "input", Tt = O(), M = O(), m = O(), ye = O(), Ct = O(), Te = O(), de = O(), Z = O(), Sn = (Q || J) && !g, W = Wn(function() {
|
|
1847
|
+
return q ?? !0;
|
|
1848
|
+
}, [q]), X = !g && (Pe || pn || ge === "embedded"), ce = !Pe && (dn || hn || ge === "outlined"), fe = !ce && !X && (fn || rn || ge === "filled"), ee = X || an || o, Ce = !X && !!H && !D;
|
|
1849
|
+
v(function() {
|
|
1850
|
+
return m.current = li.attachTo(ye.current), function() {
|
|
1851
|
+
m.current.destroy();
|
|
1852
|
+
};
|
|
1853
|
+
}, [xe]), zt(t, function() {
|
|
1854
|
+
return {
|
|
1855
|
+
mdc: m.current,
|
|
1856
|
+
input: Ct.current,
|
|
1857
|
+
container: Te.current,
|
|
1858
|
+
label: ye.current
|
|
1859
|
+
};
|
|
1860
|
+
}), v(function() {
|
|
1861
|
+
return b && typeof b == "string" && (M.current = new en(Tt.current)), function() {
|
|
1862
|
+
M.current && M.current.destroy();
|
|
1863
|
+
};
|
|
1864
|
+
}, [b]), v(function() {
|
|
1865
|
+
if (b) {
|
|
1866
|
+
var c, u, C, E;
|
|
1867
|
+
(c = M.current) === null || c === void 0 || c.foundation.setValidation(_e), (u = M.current) === null || u === void 0 || u.foundation.setValidity(W), (C = M.current) === null || C === void 0 || C.foundation.setPersistent(oe), (E = M.current) === null || E === void 0 || E.foundation.setContent(b);
|
|
1895
1868
|
}
|
|
1896
|
-
}, [
|
|
1897
|
-
|
|
1898
|
-
}, [m,
|
|
1899
|
-
m.current.disabled =
|
|
1900
|
-
}, [m,
|
|
1901
|
-
|
|
1902
|
-
}, [
|
|
1903
|
-
|
|
1904
|
-
}, [
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1869
|
+
}, [b, oe, _e, W]), v(function() {
|
|
1870
|
+
S || (m.current.value = N || N === 0 ? N : ""), m.current.valid = W;
|
|
1871
|
+
}, [m, N, W, S]), v(function() {
|
|
1872
|
+
m.current.disabled = U;
|
|
1873
|
+
}, [m, U]), v(function() {
|
|
1874
|
+
An(ve && !le ? ve : le);
|
|
1875
|
+
}, [le, ve]), v(function() {
|
|
1876
|
+
Ln(w > 0 && R);
|
|
1877
|
+
}, [w, R]), v(function() {
|
|
1878
|
+
var c = ee || R || b;
|
|
1879
|
+
Cn(c);
|
|
1880
|
+
}, [ee, R, b]);
|
|
1881
|
+
var Vn = function() {
|
|
1882
|
+
q !== void 0 && N !== null && (m.current.valid = q);
|
|
1883
|
+
}, Dn = function(u) {
|
|
1884
|
+
yt(!1), Ye && Ye(u), Vn();
|
|
1885
|
+
}, Hn = function(u) {
|
|
1886
|
+
yt(!0), me.onFocus && me.onFocus(u);
|
|
1887
|
+
}, Et = function() {
|
|
1888
|
+
m.current.value = "", m.current.valid = W;
|
|
1913
1889
|
};
|
|
1914
|
-
|
|
1915
|
-
window.
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1890
|
+
v(function() {
|
|
1891
|
+
return Un() ? (window.addEventListener("reset", Et), function() {
|
|
1892
|
+
window.removeEventListener("reset", Et);
|
|
1893
|
+
}) : function() {
|
|
1894
|
+
};
|
|
1895
|
+
}, []), v(function() {
|
|
1896
|
+
if (I) {
|
|
1897
|
+
var c = [{
|
|
1919
1898
|
name: "flip",
|
|
1920
1899
|
options: {
|
|
1921
1900
|
enabled: !0,
|
|
@@ -1930,98 +1909,102 @@ const St = {
|
|
|
1930
1909
|
offset: [0, 12]
|
|
1931
1910
|
}
|
|
1932
1911
|
}];
|
|
1933
|
-
|
|
1934
|
-
placement:
|
|
1935
|
-
modifiers:
|
|
1912
|
+
Z.current = Kn(Te.current, de.current, {
|
|
1913
|
+
placement: vt,
|
|
1914
|
+
modifiers: c
|
|
1936
1915
|
});
|
|
1937
1916
|
}
|
|
1938
|
-
return ()
|
|
1939
|
-
var
|
|
1940
|
-
(
|
|
1917
|
+
return function() {
|
|
1918
|
+
var u;
|
|
1919
|
+
(u = Z.current) === null || u === void 0 || u.destroy();
|
|
1941
1920
|
};
|
|
1942
|
-
}, [
|
|
1943
|
-
|
|
1944
|
-
if (
|
|
1945
|
-
|
|
1946
|
-
if (
|
|
1947
|
-
var
|
|
1948
|
-
(
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1921
|
+
}, [vt, vn, I]);
|
|
1922
|
+
var Lt = Dt(function() {
|
|
1923
|
+
if (N) {
|
|
1924
|
+
var c = m.current.input_;
|
|
1925
|
+
if (c.offsetWidth < c.scrollWidth) {
|
|
1926
|
+
var u, C, E;
|
|
1927
|
+
(u = de.current) === null || u === void 0 || u.setAttribute("data-show", ""), (C = Z.current) === null || C === void 0 || C.setOptions(function(At) {
|
|
1928
|
+
var Rt;
|
|
1929
|
+
return V(V({}, At), {}, {
|
|
1930
|
+
modifiers: Vt(Rt = []).call(Rt, St(At.modifiers), [{
|
|
1931
|
+
name: "eventListeners",
|
|
1932
|
+
enabled: !0
|
|
1933
|
+
}])
|
|
1934
|
+
});
|
|
1935
|
+
}), (E = Z.current) === null || E === void 0 || E.update();
|
|
1955
1936
|
}
|
|
1956
1937
|
}
|
|
1957
|
-
}, [
|
|
1958
|
-
var
|
|
1959
|
-
(
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1938
|
+
}, [N]), Ot = Dt(function() {
|
|
1939
|
+
var c, u;
|
|
1940
|
+
(c = de.current) === null || c === void 0 || c.removeAttribute("data-show"), (u = Z.current) === null || u === void 0 || u.setOptions(function(C) {
|
|
1941
|
+
var E;
|
|
1942
|
+
return V(V({}, C), {}, {
|
|
1943
|
+
modifiers: Vt(E = []).call(E, St(C.modifiers), [{
|
|
1944
|
+
name: "eventListeners",
|
|
1945
|
+
enabled: !1
|
|
1946
|
+
}])
|
|
1947
|
+
});
|
|
1948
|
+
});
|
|
1966
1949
|
}, []);
|
|
1967
|
-
return /* @__PURE__ */
|
|
1968
|
-
ref:
|
|
1969
|
-
style:
|
|
1970
|
-
className:
|
|
1971
|
-
},
|
|
1972
|
-
onMouseEnter:
|
|
1973
|
-
onFocus:
|
|
1974
|
-
onMouseLeave:
|
|
1975
|
-
onBlur:
|
|
1976
|
-
}),
|
|
1977
|
-
htmlFor:
|
|
1978
|
-
ref:
|
|
1979
|
-
className:
|
|
1980
|
-
},
|
|
1950
|
+
return /* @__PURE__ */ d.createElement("div", te({
|
|
1951
|
+
ref: Te,
|
|
1952
|
+
style: F,
|
|
1953
|
+
className: k("lmnt", "lmnt-text-field--container", ee && "lmnt-text-field--container-full-width", !ee && mt && "lmnt-text-field--container-to-content-width", !mt && "lmnt-text-field-inline-container", y)
|
|
1954
|
+
}, re, {
|
|
1955
|
+
onMouseEnter: I && Lt,
|
|
1956
|
+
onFocus: I && Lt,
|
|
1957
|
+
onMouseLeave: I && Ot,
|
|
1958
|
+
onBlur: I && Ot
|
|
1959
|
+
}), un, /* @__PURE__ */ d.createElement("label", {
|
|
1960
|
+
htmlFor: ue,
|
|
1961
|
+
ref: ye,
|
|
1962
|
+
className: k(["lmnt", "mdc-text-field", "lmnt-text-field", X && "lmnt-text-field--embedded", ee && "lmnt-text-field--full-width", Sn && "lmnt-text-field--with-icon", !W && "mdc-text-field--invalid", U && "mdc-text-field--disabled", Ve && "mdc-text-field--focused", !Ce && "mdc-text-field--no-label", J && !g && "mdc-text-field--with-leading-icon", g && "mdc-text-field--textarea", g && R && w && !se && "mdc-text-field--with-internal-counter", Q && !g && "mdc-text-field--with-trailing-icon", fe && "mdc-text-field--filled", ce && "mdc-text-field--outlined", D && "lmnt-text-field--dense", _])
|
|
1963
|
+
}, fe && /* @__PURE__ */ d.createElement("span", {
|
|
1981
1964
|
className: "mdc-text-field__ripple"
|
|
1982
|
-
}),
|
|
1965
|
+
}), J && !g && _i(J), Ze && !J && !g && /* @__PURE__ */ d.createElement("span", {
|
|
1983
1966
|
className: "mdc-text-field__affix mdc-text-field__affix--prefix"
|
|
1984
|
-
},
|
|
1985
|
-
wrap:
|
|
1986
|
-
}, /* @__PURE__ */
|
|
1987
|
-
"aria-controls":
|
|
1988
|
-
"aria-describedby":
|
|
1989
|
-
"aria-labelledby":
|
|
1990
|
-
className:
|
|
1991
|
-
disabled:
|
|
1992
|
-
id:
|
|
1993
|
-
type:
|
|
1994
|
-
onBlur:
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
1967
|
+
}, Ze), /* @__PURE__ */ d.createElement(tn, {
|
|
1968
|
+
wrap: !se && g
|
|
1969
|
+
}, /* @__PURE__ */ d.createElement(Fn, te({
|
|
1970
|
+
"aria-controls": be,
|
|
1971
|
+
"aria-describedby": be,
|
|
1972
|
+
"aria-labelledby": Ie,
|
|
1973
|
+
className: k("mdc-text-field__input", D && n === "right" && "lmnt-text-field--alignment-right", dt === "color" && "lmnt-text-field__input--color"),
|
|
1974
|
+
disabled: U,
|
|
1975
|
+
id: ue,
|
|
1976
|
+
type: dt,
|
|
1977
|
+
onBlur: Dn,
|
|
1978
|
+
onFocus: Hn,
|
|
1979
|
+
defaultValue: S,
|
|
1980
|
+
placeholder: ce && !Nn ? "" : cn || (X && H ? H : "") || (D && H ? H : ""),
|
|
1981
|
+
maxLength: w,
|
|
1982
|
+
ref: Ct,
|
|
1983
|
+
value: N
|
|
1984
|
+
}, me)), !se && Wt(xe, w)), Q && !g && vi(Q), rt && !Q && !g && /* @__PURE__ */ d.createElement("span", {
|
|
2001
1985
|
className: "mdc-text-field__affix mdc-text-field__affix--suffix"
|
|
2002
|
-
},
|
|
2003
|
-
id:
|
|
2004
|
-
htmlFor:
|
|
2005
|
-
},
|
|
2006
|
-
id:
|
|
2007
|
-
htmlFor:
|
|
2008
|
-
},
|
|
1986
|
+
}, rt), ce && /* @__PURE__ */ d.createElement(zn, null, Ce && /* @__PURE__ */ d.createElement(Ht, {
|
|
1987
|
+
id: Ie,
|
|
1988
|
+
htmlFor: ue
|
|
1989
|
+
}, H)), fe && Ce && /* @__PURE__ */ d.createElement(Ht, {
|
|
1990
|
+
id: Ie,
|
|
1991
|
+
htmlFor: ue
|
|
1992
|
+
}, H), (fe || X) && /* @__PURE__ */ d.createElement(Re, null)), _n, Pn && /* @__PURE__ */ d.createElement("div", {
|
|
2009
1993
|
className: "mdc-text-field-helper-line"
|
|
2010
|
-
},
|
|
2011
|
-
ref:
|
|
2012
|
-
id:
|
|
2013
|
-
"aria-hidden":
|
|
2014
|
-
className:
|
|
2015
|
-
},
|
|
1994
|
+
}, b && /* @__PURE__ */ d.createElement("div", {
|
|
1995
|
+
ref: Tt,
|
|
1996
|
+
id: be,
|
|
1997
|
+
"aria-hidden": oe ? "false" : "true",
|
|
1998
|
+
className: k(["mdc-text-field-helper-text", oe && "mdc-text-field-helper-text--persistent", _e && "mdc-text-field-helper-text--validation-msg"])
|
|
1999
|
+
}, b), se && Wt(xe, w)), I && /* @__PURE__ */ d.createElement(Yn, te({
|
|
2016
2000
|
role: "tooltip"
|
|
2017
|
-
},
|
|
2018
|
-
ref:
|
|
2019
|
-
text:
|
|
2001
|
+
}, I, {
|
|
2002
|
+
ref: de,
|
|
2003
|
+
text: N
|
|
2020
2004
|
})));
|
|
2021
2005
|
});
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
xe.defaultProps = Ht;
|
|
2006
|
+
nn.displayName = "Textfield";
|
|
2007
|
+
nn.propTypes = fi;
|
|
2025
2008
|
export {
|
|
2026
|
-
|
|
2009
|
+
nn as T
|
|
2027
2010
|
};
|