@hortiview/shared-components 2.27.3 → 2.27.4
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/assets/FormSelect.css +1 -1
- package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +1 -1
- package/dist/components/FormComponents/FormNumber/CustomTextField.js +1 -1
- package/dist/components/FormComponents/FormSelect/FormSelect.js +91 -97
- package/dist/components/FormComponents/FormSlider/FormSlider.js +1 -1
- package/dist/components/FormComponents/FormText/FormText.js +1 -1
- package/dist/components/GenericTable/GenericTable.js +3 -3
- package/dist/components/SearchBar/SearchBar.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/{index.es-DsOSfaF5.js → index.es-5Wxrzmtf.js} +38 -38
- package/dist/{index.es-B_BTuoBa.js → index.es-BajVPGKH.js} +2 -2
- package/dist/{index.es-DLEY03HG.js → index.es-CxQjsRHK.js} +1040 -1028
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [2.27.4](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.27.3...v2.27.4) (2026-06-18)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update [@element-public](https://dev.azure.com/element-public) to fix some UI issues (FormText placeholder, multiple FormSelect issues) ([746a5b9](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/commit/746a5b9e704d61cb17cd7b9583f7f8d3bdc80255))
|
|
6
|
+
|
|
1
7
|
## [2.27.3](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v2.27.2...v2.27.3) (2026-06-16)
|
|
2
8
|
|
|
3
9
|
### Code Refactoring
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._invalidHelperText_128g7_1+*[class*=mdc-select-helper-text]{color:var(--lmnt-theme-danger)!important}._invalidBorder_128g7_5 *[class*=mdc-notched-outline]{border-color:var(--lmnt-theme-danger)!important}._invalidPlaceholder_128g7_9 *[class*=lmnt-select-label]{color:var(--lmnt-theme-danger)!important}._invalidDropdownIcon_128g7_13 *[class*=mdc-select__dropdown-icon]{fill:var(--lmnt-theme-danger)!important}._formSelectContainer_128g7_18{display:flex;flex-wrap:wrap;width:100%}._formSelectContainer_128g7_18>*[class*=lmnt-select-container]{flex-direction:column}._formSelectContainer_128g7_18 *[class*=mdc-select-helper-text]{color:var(--lmnt-helper-text-color);align-self:flex-start}._formSelectContainer_128g7_18 *[class*=lmnt__multi-value__label]{overflow:visible}._formSelect_128g7_18 *[class*=lmnt-select-menu]{z-index:2001}._formSelect_128g7_18 div[class*=mdc-notched-outline__leading]{border-radius:.25rem 0 0 .25rem!important}._formSelect_128g7_18 div[class*=mdc-notched-outline__trailing]{border-radius:0 .25rem .25rem 0!important}._tooltip_128g7_52{z-index:42}._disabled_128g7_57+*[class*=mdc-select-helper-text]{color:var(--lmnt-theme-on-surface-disabled)}[id*=select-container][class*=top] [class*=mdc-menu-surface--open]{bottom:0}[id*=select-container][class*=bottom] [class*=mdc-menu-surface--open]{top:0}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as Q, jsxs as fa } from "react/jsx-runtime";
|
|
2
|
-
import { b as u, a as o, c as d, d as s, r as ga, s as we, t as M, m as W, l as j, f as D, e as x, g as pa, D as ba } from "../../../index.es-
|
|
2
|
+
import { b as u, a as o, c as d, d as s, r as ga, s as we, t as M, m as W, l as j, f as D, e as x, g as pa, D as ba } from "../../../index.es-BajVPGKH.js";
|
|
3
3
|
import { useMemo as S } from "react";
|
|
4
4
|
import { useFormContext as wa, Controller as ya } from "react-hook-form";
|
|
5
5
|
import { useHelperText as Pa } from "../../../hooks/useHelperText.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { T as u } from "../../../index.es-
|
|
2
|
+
import { T as u } from "../../../index.es-5Wxrzmtf.js";
|
|
3
3
|
import { g } from "../../../get-CBFiuc3f.js";
|
|
4
4
|
import { o as f } from "../../../omit-BWQrFyQ-.js";
|
|
5
5
|
import { useMemo as v } from "react";
|
|
@@ -1,133 +1,127 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { g as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { useFormContext as
|
|
6
|
-
import { M as
|
|
7
|
-
import { useBreakpoints as
|
|
8
|
-
import { useHelperText as
|
|
9
|
-
import { Select as
|
|
10
|
-
import {
|
|
11
|
-
import { SelectTooltipText as
|
|
12
|
-
import '../../../assets/FormSelect.css';const
|
|
13
|
-
invalidHelperText:
|
|
14
|
-
invalidBorder:
|
|
15
|
-
invalidPlaceholder:
|
|
16
|
-
invalidDropdownIcon:
|
|
17
|
-
formSelectContainer:
|
|
18
|
-
formSelect:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
tooltip: de,
|
|
23
|
-
disabled: fe
|
|
24
|
-
}, ge = ({
|
|
1
|
+
import { jsx as r, Fragment as T, jsxs as z } from "react/jsx-runtime";
|
|
2
|
+
import { c as J } from "../../../index-_-9ybP20.js";
|
|
3
|
+
import { g as C } from "../../../get-CBFiuc3f.js";
|
|
4
|
+
import { useMemo as w } from "react";
|
|
5
|
+
import { useFormContext as L, Controller as b } from "react-hook-form";
|
|
6
|
+
import { M as Q } from "../../../react-tooltip.min-D7xPMD-P.js";
|
|
7
|
+
import { useBreakpoints as R } from "../../../hooks/useBreakpoints.js";
|
|
8
|
+
import { useHelperText as U } from "../../../hooks/useHelperText.js";
|
|
9
|
+
import { Select as W } from "../../Select/Select.js";
|
|
10
|
+
import { isGroupedOptions as X } from "./FormSelectService.js";
|
|
11
|
+
import { SelectTooltipText as Y } from "./SelectTooltipText.js";
|
|
12
|
+
import '../../../assets/FormSelect.css';const Z = "_invalidHelperText_128g7_1", N = "_invalidBorder_128g7_5", K = "_invalidPlaceholder_128g7_9", y = "_invalidDropdownIcon_128g7_13", ee = "_formSelectContainer_128g7_18", te = "_formSelect_128g7_18", oe = "_tooltip_128g7_52", re = "_disabled_128g7_57", t = {
|
|
13
|
+
invalidHelperText: Z,
|
|
14
|
+
invalidBorder: N,
|
|
15
|
+
invalidPlaceholder: K,
|
|
16
|
+
invalidDropdownIcon: y,
|
|
17
|
+
formSelectContainer: ee,
|
|
18
|
+
formSelect: te,
|
|
19
|
+
tooltip: oe,
|
|
20
|
+
disabled: re
|
|
21
|
+
}, pe = ({
|
|
25
22
|
propertyName: o,
|
|
26
|
-
label:
|
|
27
|
-
options:
|
|
28
|
-
multi:
|
|
29
|
-
disabled:
|
|
30
|
-
hoisted:
|
|
31
|
-
hidden:
|
|
23
|
+
label: s,
|
|
24
|
+
options: i,
|
|
25
|
+
multi: c = !1,
|
|
26
|
+
disabled: h = !1,
|
|
27
|
+
hoisted: B = !1,
|
|
28
|
+
hidden: D = !1,
|
|
32
29
|
valueKey: l = "value",
|
|
33
|
-
textKey:
|
|
34
|
-
clearable:
|
|
35
|
-
searchable:
|
|
36
|
-
noOptionsMessage:
|
|
37
|
-
rules:
|
|
38
|
-
menuPosition:
|
|
30
|
+
textKey: S = "text",
|
|
31
|
+
clearable: H = !1,
|
|
32
|
+
searchable: I,
|
|
33
|
+
noOptionsMessage: p = "",
|
|
34
|
+
rules: f,
|
|
35
|
+
menuPosition: P = "auto",
|
|
39
36
|
...a
|
|
40
37
|
}) => {
|
|
41
|
-
const { isDesktop:
|
|
42
|
-
control:
|
|
43
|
-
getFieldState:
|
|
44
|
-
formState: { errors:
|
|
45
|
-
} =
|
|
46
|
-
() => !
|
|
47
|
-
[
|
|
48
|
-
),
|
|
49
|
-
() =>
|
|
50
|
-
[
|
|
51
|
-
), { helperText:
|
|
38
|
+
const { isDesktop: F } = R(), {
|
|
39
|
+
control: v,
|
|
40
|
+
getFieldState: A,
|
|
41
|
+
formState: { errors: x, isValidating: g }
|
|
42
|
+
} = L(), j = w(
|
|
43
|
+
() => !g && C(x, o) !== void 0,
|
|
44
|
+
[x, o, g]
|
|
45
|
+
), k = w(
|
|
46
|
+
() => f?.required?.message,
|
|
47
|
+
[f]
|
|
48
|
+
), { helperText: q, helperTextPersistent: M } = U({
|
|
52
49
|
propertyName: o,
|
|
53
50
|
helperText: a.helperText,
|
|
54
|
-
requiredText:
|
|
51
|
+
requiredText: k,
|
|
55
52
|
hasCharacterCount: !1
|
|
56
|
-
})
|
|
57
|
-
return
|
|
53
|
+
});
|
|
54
|
+
return D ? /* @__PURE__ */ r(b, { name: o, control: v, render: () => /* @__PURE__ */ r(T, {}) }) : /* @__PURE__ */ r(
|
|
58
55
|
"div",
|
|
59
56
|
{
|
|
60
57
|
"data-testid": "form-select-container",
|
|
61
58
|
className: t.formSelectContainer,
|
|
62
|
-
"data-tooltip-id":
|
|
63
|
-
children: /* @__PURE__ */
|
|
64
|
-
|
|
59
|
+
"data-tooltip-id": s,
|
|
60
|
+
children: /* @__PURE__ */ r(
|
|
61
|
+
b,
|
|
65
62
|
{
|
|
66
63
|
name: o,
|
|
67
|
-
rules:
|
|
68
|
-
control:
|
|
69
|
-
render: ({ field: { ref:
|
|
70
|
-
let _ =
|
|
71
|
-
|
|
72
|
-
const n =
|
|
73
|
-
(e) =>
|
|
74
|
-
) : _?.find((e) => e[l] ===
|
|
75
|
-
[t.invalidHelperText]:
|
|
76
|
-
[t.invalidDropdownIcon]:
|
|
77
|
-
[t.invalidBorder]:
|
|
78
|
-
[t.invalidPlaceholder]:
|
|
79
|
-
[t.disabled]:
|
|
80
|
-
[t.isSearchable]: w,
|
|
81
|
-
[t.isMultiSelect]: r,
|
|
82
|
-
[t.hasSelection]: g
|
|
64
|
+
rules: f,
|
|
65
|
+
control: v,
|
|
66
|
+
render: ({ field: { ref: ie, onChange: m, value: u, ...E } }) => {
|
|
67
|
+
let _ = i;
|
|
68
|
+
i && X(i) && (_ = i.flatMap((e) => C(e, "options") ?? []));
|
|
69
|
+
const n = c ? _?.filter(
|
|
70
|
+
(e) => u?.includes(e[l])
|
|
71
|
+
) : _?.find((e) => e[l] === u), G = Array.isArray(n) ? n.length > 0 : n != null, d = A(o).invalid, O = I ?? F, V = J(t.formSelect, {
|
|
72
|
+
[t.invalidHelperText]: d,
|
|
73
|
+
[t.invalidDropdownIcon]: d,
|
|
74
|
+
[t.invalidBorder]: d,
|
|
75
|
+
[t.invalidPlaceholder]: d,
|
|
76
|
+
[t.disabled]: h
|
|
83
77
|
});
|
|
84
|
-
return /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
78
|
+
return /* @__PURE__ */ z(T, { children: [
|
|
79
|
+
/* @__PURE__ */ r(
|
|
80
|
+
W,
|
|
87
81
|
{
|
|
88
|
-
|
|
82
|
+
...E,
|
|
89
83
|
...a,
|
|
90
84
|
value: n ?? [],
|
|
91
|
-
label:
|
|
85
|
+
label: s,
|
|
92
86
|
variant: "outlined",
|
|
93
|
-
helperText:
|
|
94
|
-
helperTextPersistent:
|
|
95
|
-
options:
|
|
96
|
-
valid: !
|
|
87
|
+
helperText: q,
|
|
88
|
+
helperTextPersistent: M,
|
|
89
|
+
options: i,
|
|
90
|
+
valid: !j,
|
|
97
91
|
"data-testid": a["data-testid"] ?? `select-${o}`,
|
|
98
|
-
multiSelect: !
|
|
99
|
-
className:
|
|
100
|
-
disabled:
|
|
92
|
+
multiSelect: !i?.length && p ? !1 : c,
|
|
93
|
+
className: V,
|
|
94
|
+
disabled: h,
|
|
101
95
|
valueKey: l,
|
|
102
|
-
textKey:
|
|
96
|
+
textKey: S,
|
|
103
97
|
onChange: (e) => {
|
|
104
98
|
if (e == null) {
|
|
105
|
-
|
|
99
|
+
m(e);
|
|
106
100
|
return;
|
|
107
101
|
}
|
|
108
|
-
if (
|
|
109
|
-
|
|
102
|
+
if (c) {
|
|
103
|
+
m(e.map(($) => $[l]));
|
|
110
104
|
return;
|
|
111
105
|
}
|
|
112
|
-
|
|
106
|
+
m(e[l]), a?.onChange?.(e);
|
|
113
107
|
},
|
|
114
|
-
hoisted:
|
|
115
|
-
noOptionsMessage:
|
|
116
|
-
searchable:
|
|
117
|
-
clearable:
|
|
118
|
-
menuPosition:
|
|
108
|
+
hoisted: B,
|
|
109
|
+
noOptionsMessage: p,
|
|
110
|
+
searchable: O,
|
|
111
|
+
clearable: H,
|
|
112
|
+
menuPosition: P
|
|
119
113
|
}
|
|
120
114
|
),
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
|
|
115
|
+
/* @__PURE__ */ r(
|
|
116
|
+
Q,
|
|
123
117
|
{
|
|
124
|
-
id:
|
|
118
|
+
id: s,
|
|
125
119
|
noArrow: !0,
|
|
126
120
|
place: "bottom",
|
|
127
121
|
delayShow: 420,
|
|
128
122
|
className: t.tooltip,
|
|
129
|
-
hidden: !
|
|
130
|
-
children: /* @__PURE__ */
|
|
123
|
+
hidden: !G,
|
|
124
|
+
children: /* @__PURE__ */ r(Y, { value: n, textKey: S, valueKey: l })
|
|
131
125
|
}
|
|
132
126
|
)
|
|
133
127
|
] });
|
|
@@ -138,5 +132,5 @@ import '../../../assets/FormSelect.css';const te = "_invalidHelperText_qt5tp_1",
|
|
|
138
132
|
);
|
|
139
133
|
};
|
|
140
134
|
export {
|
|
141
|
-
|
|
135
|
+
pe as FormSelect
|
|
142
136
|
};
|
|
@@ -4,7 +4,7 @@ import { _ as Qe, a as Ce, b as Ye, c as et, d as Oe, e as _e, f as tt } from ".
|
|
|
4
4
|
import { _ as Re } from "../../../parse-int-BYd7r_4n.js";
|
|
5
5
|
import p, { forwardRef as rt, useRef as De, useImperativeHandle as Ne, useCallback as x, useEffect as V, useMemo as ke } from "react";
|
|
6
6
|
import { I as Be } from "../../../index.es-LckFzDz-.js";
|
|
7
|
-
import { T as Pe } from "../../../index.es-
|
|
7
|
+
import { T as Pe } from "../../../index.es-5Wxrzmtf.js";
|
|
8
8
|
import { c as Me } from "../../../index.es-DRC-9PLs.js";
|
|
9
9
|
import { b as Fe, c as j } from "../../../tslib.es6-BDCynO9F.js";
|
|
10
10
|
import { M as nt, a as it } from "../../../component-By6nyiBU.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, Fragment as _, jsxs as z } from "react/jsx-runtime";
|
|
2
|
-
import { T as M } from "../../../index.es-
|
|
2
|
+
import { T as M } from "../../../index.es-5Wxrzmtf.js";
|
|
3
3
|
import { a as P } from "../../../index.es-EXzC8zuP.js";
|
|
4
4
|
import { useState as V, useCallback as W, useMemo as d } from "react";
|
|
5
5
|
import { useFormContext as D, Controller as v } from "react-hook-form";
|
|
@@ -11,14 +11,14 @@ import { a as Ou, _ as Vn } from "../../index.es-CNrSvjAv.js";
|
|
|
11
11
|
import { _ as Sa, c as Vi } from "../../index.es-_PSuLbjQ.js";
|
|
12
12
|
import { g as Ba, c as ca } from "../../_commonjsHelpers-ByX85dGu.js";
|
|
13
13
|
import { a as Bu, _ as Nu, b as qi } from "../../map-BErBeya5.js";
|
|
14
|
-
import { _ as Hu, a as Fu, b as Xi, S as Ki, c as Lu, d as Mu } from "../../index.es-
|
|
14
|
+
import { _ as Hu, a as Fu, b as Xi, S as Ki, c as Lu, d as Mu } from "../../index.es-CxQjsRHK.js";
|
|
15
15
|
import { b as zu, c as Gu } from "../../es.string.iterator-BrOvr7F6.js";
|
|
16
16
|
import { _ as xa } from "../../index.es-LckFzDz-.js";
|
|
17
17
|
import { _ as hs, a as Ai } from "../../find-OaLSg5iu.js";
|
|
18
|
-
import { T as Yi } from "../../index.es-
|
|
18
|
+
import { T as Yi } from "../../index.es-5Wxrzmtf.js";
|
|
19
19
|
import { M as $u, C as ms } from "../../index.es-BSaDtduL.js";
|
|
20
20
|
import { S as ys } from "../../index.es-BVW2k-5y.js";
|
|
21
|
-
import { D as ku } from "../../index.es-
|
|
21
|
+
import { D as ku } from "../../index.es-BajVPGKH.js";
|
|
22
22
|
import { unstable_batchedUpdates as fa, createPortal as Wu } from "react-dom";
|
|
23
23
|
import { _ as Ji } from "../../keyboard-DQ9O_Ke1.js";
|
|
24
24
|
import { I as ga } from "../../index.es-BZkGOjEo.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { I as u } from "../../index.es-BZkGOjEo.js";
|
|
3
|
-
import { T as b } from "../../index.es-
|
|
3
|
+
import { T as b } from "../../index.es-5Wxrzmtf.js";
|
|
4
4
|
import '../../assets/SearchBar.css';const d = "_searchbar_g83qp_1", p = {
|
|
5
5
|
searchbar: d
|
|
6
6
|
}, m = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { S as a } from "../../index.es-
|
|
2
|
+
import { S as a } from "../../index.es-CxQjsRHK.js";
|
|
3
3
|
import { u as f } from "../../uniqueId-CJo-XRQb.js";
|
|
4
4
|
import { useEffect as i } from "react";
|
|
5
5
|
import "../../isEmpty-l2xQKl4x.js";
|
|
@@ -8,7 +8,7 @@ import { M as Xn, a as Gn, N as zn, F as Ht, T as Yn } from "./index.es-CpPnZRt7
|
|
|
8
8
|
import { b as A, c as f } from "./tslib.es6-BDCynO9F.js";
|
|
9
9
|
import { M as ne, a as ie } from "./component-By6nyiBU.js";
|
|
10
10
|
import { c as Kn, I as Yt } from "./index.es-LckFzDz-.js";
|
|
11
|
-
import { a as
|
|
11
|
+
import { a as he, M as wt, m as Jn, b as Qn } from "./component-DYpB_4EP.js";
|
|
12
12
|
var $ = {
|
|
13
13
|
LINE_RIPPLE_ACTIVE: "mdc-line-ripple--active",
|
|
14
14
|
LINE_RIPPLE_DEACTIVATING: "mdc-line-ripple--deactivating"
|
|
@@ -186,7 +186,7 @@ var x = {
|
|
|
186
186
|
PREFIX_SELECTOR: ".mdc-text-field__affix--prefix",
|
|
187
187
|
SUFFIX_SELECTOR: ".mdc-text-field__affix--suffix",
|
|
188
188
|
TRAILING_ICON_SELECTOR: ".mdc-text-field__icon--trailing"
|
|
189
|
-
},
|
|
189
|
+
}, _e = {
|
|
190
190
|
DISABLED: "mdc-text-field--disabled",
|
|
191
191
|
FOCUSED: "mdc-text-field--focused",
|
|
192
192
|
HELPER_LINE: "mdc-text-field-helper-line",
|
|
@@ -240,7 +240,7 @@ var jt = ["mousedown", "touchstart"], $t = ["click", "keydown"], ri = (
|
|
|
240
240
|
}
|
|
241
241
|
return Object.defineProperty(t, "cssClasses", {
|
|
242
242
|
get: function() {
|
|
243
|
-
return
|
|
243
|
+
return _e;
|
|
244
244
|
},
|
|
245
245
|
enumerable: !1,
|
|
246
246
|
configurable: !0
|
|
@@ -743,7 +743,7 @@ var li = (
|
|
|
743
743
|
this.lineRipple_ = T ? n(T) : null;
|
|
744
744
|
var re = this.root.querySelector(x.OUTLINE_SELECTOR);
|
|
745
745
|
this.outline_ = re ? p(re) : null;
|
|
746
|
-
var ae = Zt.strings, F = this.root.nextElementSibling, z = F && F.classList.contains(
|
|
746
|
+
var ae = Zt.strings, F = this.root.nextElementSibling, z = F && F.classList.contains(_e.HELPER_LINE), R = z && F && F.querySelector(ae.ROOT_SELECTOR);
|
|
747
747
|
this.helperText_ = R ? i(R) : null;
|
|
748
748
|
var Y = Qt.strings, S = this.root.querySelector(Y.ROOT_SELECTOR);
|
|
749
749
|
!S && z && F && (S = F.querySelector(Y.ROOT_SELECTOR)), this.characterCounter_ = S ? o(S) : null;
|
|
@@ -1018,10 +1018,10 @@ var li = (
|
|
|
1018
1018
|
return document.activeElement === e.input_;
|
|
1019
1019
|
},
|
|
1020
1020
|
registerInputInteractionHandler: function(n, i) {
|
|
1021
|
-
e.input_.addEventListener(n, i,
|
|
1021
|
+
e.input_.addEventListener(n, i, he());
|
|
1022
1022
|
},
|
|
1023
1023
|
deregisterInputInteractionHandler: function(n, i) {
|
|
1024
|
-
e.input_.removeEventListener(n, i,
|
|
1024
|
+
e.input_.removeEventListener(n, i, he());
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
1027
|
}, t.prototype.getLabelAdapterMethods_ = function() {
|
|
@@ -1077,15 +1077,15 @@ var li = (
|
|
|
1077
1077
|
trailingIcon: this.trailingIcon_ ? this.trailingIcon_.foundationForTextField : void 0
|
|
1078
1078
|
};
|
|
1079
1079
|
}, t.prototype.createRipple_ = function(e) {
|
|
1080
|
-
var n = this, i = this.root.classList.contains(
|
|
1080
|
+
var n = this, i = this.root.classList.contains(_e.TEXTAREA), o = this.root.classList.contains(_e.OUTLINED);
|
|
1081
1081
|
if (i || o)
|
|
1082
1082
|
return null;
|
|
1083
1083
|
var s = f(f({}, wt.createAdapter(this)), { isSurfaceActive: function() {
|
|
1084
1084
|
return Jn(n.input_, ":active");
|
|
1085
1085
|
}, registerInteractionHandler: function(_, p) {
|
|
1086
|
-
return n.input_.addEventListener(_, p,
|
|
1086
|
+
return n.input_.addEventListener(_, p, he());
|
|
1087
1087
|
}, deregisterInteractionHandler: function(_, p) {
|
|
1088
|
-
return n.input_.removeEventListener(_, p,
|
|
1088
|
+
return n.input_.removeEventListener(_, p, he());
|
|
1089
1089
|
} });
|
|
1090
1090
|
return e(this.root, new Qn(s));
|
|
1091
1091
|
}, t;
|
|
@@ -1507,25 +1507,25 @@ var Wt = function(t, e) {
|
|
|
1507
1507
|
role: o === "IconButton" ? "button" : null
|
|
1508
1508
|
});
|
|
1509
1509
|
}, l = pi, nn = /* @__PURE__ */ Ae(function(r, t) {
|
|
1510
|
-
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, k = 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,
|
|
1510
|
+
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, k = 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, ve = je === void 0 ? l.helperTextValidation : je, $e = r.id, ln = $e === void 0 ? l.id : $e, Be = r.label, D = 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, ge = 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, me = pt === void 0 ? l.variant : pt, be = Oe(r, hi), ht = I && Mn(I) === "object" ? I : {}, vn = ht.hoisted, _t = ht.position, vt = _t === void 0 ? "bottom" : _t, gn = j(function() {
|
|
1511
1511
|
return ln || Ee();
|
|
1512
1512
|
}), mn = M(gn, 1), ue = mn[0], bn = j(function() {
|
|
1513
1513
|
return on || Ee();
|
|
1514
|
-
}), In = M(bn, 1),
|
|
1514
|
+
}), In = M(bn, 1), Ie = In[0], xn = j(function() {
|
|
1515
1515
|
return sn || Ee();
|
|
1516
|
-
}), yn = M(xn, 1),
|
|
1516
|
+
}), yn = M(xn, 1), xe = yn[0], Tn = j(!0), gt = M(Tn, 2), mt = gt[0], Cn = gt[1], En = j(!1), bt = M(En, 2), ye = bt[0], Ln = bt[1], On = j(le), It = M(On, 2), H = It[0], An = It[1], Rn = j(Ve || !1), xt = M(Rn, 2), Nn = xt[0], yt = xt[1], Pn = b || R && H, Fn = g ? "textarea" : "input", Tt = O(), w = O(), m = O(), Te = O(), Ct = O(), Ce = O(), de = O(), Z = O(), Sn = (Q || J) && !g, W = Wn(function() {
|
|
1517
1517
|
return q ?? !0;
|
|
1518
|
-
}, [q]), X = !g && (Pe || pn ||
|
|
1518
|
+
}, [q]), X = !g && (Pe || pn || me === "embedded"), ce = !Pe && (dn || hn || me === "outlined"), fe = !ce && !X && (fn || rn || me === "filled"), ee = X || an || o, pe = !X && !!D && !k;
|
|
1519
1519
|
v(function() {
|
|
1520
|
-
return m.current = li.attachTo(
|
|
1520
|
+
return m.current = li.attachTo(Te.current), function() {
|
|
1521
1521
|
m.current.destroy();
|
|
1522
1522
|
};
|
|
1523
|
-
}, [
|
|
1523
|
+
}, [ye]), zt(t, function() {
|
|
1524
1524
|
return {
|
|
1525
1525
|
mdc: m.current,
|
|
1526
1526
|
input: Ct.current,
|
|
1527
|
-
container:
|
|
1528
|
-
label:
|
|
1527
|
+
container: Ce.current,
|
|
1528
|
+
label: Te.current
|
|
1529
1529
|
};
|
|
1530
1530
|
}), v(function() {
|
|
1531
1531
|
return b && typeof b == "string" && (w.current = new en(Tt.current)), function() {
|
|
@@ -1534,15 +1534,15 @@ var Wt = function(t, e) {
|
|
|
1534
1534
|
}, [b]), v(function() {
|
|
1535
1535
|
if (b) {
|
|
1536
1536
|
var c, u, C, E;
|
|
1537
|
-
(c = w.current) === null || c === void 0 || c.foundation.setValidation(
|
|
1537
|
+
(c = w.current) === null || c === void 0 || c.foundation.setValidation(ve), (u = w.current) === null || u === void 0 || u.foundation.setValidity(W), (C = w.current) === null || C === void 0 || C.foundation.setPersistent(oe), (E = w.current) === null || E === void 0 || E.foundation.setContent(b);
|
|
1538
1538
|
}
|
|
1539
|
-
}, [b, oe,
|
|
1539
|
+
}, [b, oe, ve, W]), v(function() {
|
|
1540
1540
|
S || (m.current.value = N || N === 0 ? N : ""), m.current.valid = W;
|
|
1541
1541
|
}, [m, N, W, S]), v(function() {
|
|
1542
1542
|
m.current.disabled = U;
|
|
1543
1543
|
}, [m, U]), v(function() {
|
|
1544
|
-
An(
|
|
1545
|
-
}, [le,
|
|
1544
|
+
An(ge && !le ? ge : le);
|
|
1545
|
+
}, [le, ge]), v(function() {
|
|
1546
1546
|
Ln(H > 0 && R);
|
|
1547
1547
|
}, [H, R]), v(function() {
|
|
1548
1548
|
var c = ee || R || b;
|
|
@@ -1553,7 +1553,7 @@ var Wt = function(t, e) {
|
|
|
1553
1553
|
}, Dn = function(u) {
|
|
1554
1554
|
yt(!1), Ye && Ye(u), Vn();
|
|
1555
1555
|
}, Hn = function(u) {
|
|
1556
|
-
yt(!0),
|
|
1556
|
+
yt(!0), be.onFocus && be.onFocus(u);
|
|
1557
1557
|
}, Et = function() {
|
|
1558
1558
|
m.current.value = "", m.current.valid = W;
|
|
1559
1559
|
};
|
|
@@ -1579,7 +1579,7 @@ var Wt = function(t, e) {
|
|
|
1579
1579
|
offset: [0, 12]
|
|
1580
1580
|
}
|
|
1581
1581
|
}];
|
|
1582
|
-
Z.current = Kn(
|
|
1582
|
+
Z.current = Kn(Ce.current, de.current, {
|
|
1583
1583
|
placement: vt,
|
|
1584
1584
|
modifiers: c
|
|
1585
1585
|
});
|
|
@@ -1618,7 +1618,7 @@ var Wt = function(t, e) {
|
|
|
1618
1618
|
});
|
|
1619
1619
|
}, []);
|
|
1620
1620
|
return /* @__PURE__ */ d.createElement("div", te({
|
|
1621
|
-
ref:
|
|
1621
|
+
ref: Ce,
|
|
1622
1622
|
style: F,
|
|
1623
1623
|
className: B("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)
|
|
1624
1624
|
}, re, {
|
|
@@ -1628,8 +1628,8 @@ var Wt = function(t, e) {
|
|
|
1628
1628
|
onBlur: I && Ot
|
|
1629
1629
|
}), un, /* @__PURE__ */ d.createElement("label", {
|
|
1630
1630
|
htmlFor: ue,
|
|
1631
|
-
ref:
|
|
1632
|
-
className: B(["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", !
|
|
1631
|
+
ref: Te,
|
|
1632
|
+
className: B(["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", !pe && "mdc-text-field--no-label", J && !g && "mdc-text-field--with-leading-icon", g && "mdc-text-field--textarea", g && R && H && !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", k && "lmnt-text-field--dense", _])
|
|
1633
1633
|
}, fe && /* @__PURE__ */ d.createElement("span", {
|
|
1634
1634
|
className: "mdc-text-field__ripple"
|
|
1635
1635
|
}), J && !g && _i(J), Ze && !J && !g && /* @__PURE__ */ d.createElement("span", {
|
|
@@ -1637,9 +1637,9 @@ var Wt = function(t, e) {
|
|
|
1637
1637
|
}, Ze), /* @__PURE__ */ d.createElement(tn, {
|
|
1638
1638
|
wrap: !se && g
|
|
1639
1639
|
}, /* @__PURE__ */ d.createElement(Fn, te({
|
|
1640
|
-
"aria-controls":
|
|
1641
|
-
"aria-describedby":
|
|
1642
|
-
"aria-labelledby":
|
|
1640
|
+
"aria-controls": Ie,
|
|
1641
|
+
"aria-describedby": Ie,
|
|
1642
|
+
"aria-labelledby": xe,
|
|
1643
1643
|
className: B("mdc-text-field__input", n === "right" && "lmnt-text-field--alignment-right", dt === "color" && "lmnt-text-field__input--color"),
|
|
1644
1644
|
disabled: U,
|
|
1645
1645
|
id: ue,
|
|
@@ -1647,26 +1647,26 @@ var Wt = function(t, e) {
|
|
|
1647
1647
|
onBlur: Dn,
|
|
1648
1648
|
onFocus: Hn,
|
|
1649
1649
|
defaultValue: S,
|
|
1650
|
-
placeholder: ce && Nn ? "" : cn || (X && D ? D : "") || (k && D ? D : ""),
|
|
1650
|
+
placeholder: ce && !Nn && pe ? "" : cn || (X && D ? D : "") || (k && D ? D : ""),
|
|
1651
1651
|
maxLength: H,
|
|
1652
1652
|
ref: Ct,
|
|
1653
1653
|
value: N
|
|
1654
|
-
},
|
|
1654
|
+
}, be)), !se && Wt(ye, H)), Q && !g && vi(Q), rt && !Q && !g && /* @__PURE__ */ d.createElement("span", {
|
|
1655
1655
|
className: "mdc-text-field__affix mdc-text-field__affix--suffix"
|
|
1656
|
-
}, rt), ce && /* @__PURE__ */ d.createElement(zn, null,
|
|
1657
|
-
id:
|
|
1656
|
+
}, rt), ce && /* @__PURE__ */ d.createElement(zn, null, pe && /* @__PURE__ */ d.createElement(Ht, {
|
|
1657
|
+
id: xe,
|
|
1658
1658
|
htmlFor: ue
|
|
1659
|
-
}, D)), fe &&
|
|
1660
|
-
id:
|
|
1659
|
+
}, D)), fe && pe && /* @__PURE__ */ d.createElement(Ht, {
|
|
1660
|
+
id: xe,
|
|
1661
1661
|
htmlFor: ue
|
|
1662
1662
|
}, D), (fe || X) && /* @__PURE__ */ d.createElement(Re, null)), _n, Pn && /* @__PURE__ */ d.createElement("div", {
|
|
1663
1663
|
className: "mdc-text-field-helper-line"
|
|
1664
1664
|
}, b && /* @__PURE__ */ d.createElement("div", {
|
|
1665
1665
|
ref: Tt,
|
|
1666
|
-
id:
|
|
1666
|
+
id: Ie,
|
|
1667
1667
|
"aria-hidden": oe ? "false" : "true",
|
|
1668
|
-
className: B(["mdc-text-field-helper-text", oe && "mdc-text-field-helper-text--persistent",
|
|
1669
|
-
}, b), se && Wt(
|
|
1668
|
+
className: B(["mdc-text-field-helper-text", oe && "mdc-text-field-helper-text--persistent", ve && "mdc-text-field-helper-text--validation-msg"])
|
|
1669
|
+
}, b), se && Wt(ye, H)), I && /* @__PURE__ */ d.createElement(Yn, te({
|
|
1670
1670
|
role: "tooltip"
|
|
1671
1671
|
}, I, {
|
|
1672
1672
|
ref: de,
|
|
@@ -6,11 +6,11 @@ import { H as Yr, e as En, u as Wn, _ as Tn, w as _r, v as $r, k as Yt, q as Xa,
|
|
|
6
6
|
import H, { forwardRef as $a, useContext as Ur, useState as J, useRef as st, useMemo as ia, useCallback as ae, useEffect as xe, useImperativeHandle as Ua, cloneElement as Hn } from "react";
|
|
7
7
|
import { a as Nr } from "./index.es-EXzC8zuP.js";
|
|
8
8
|
import { I as Va } from "./index.es-BZkGOjEo.js";
|
|
9
|
-
import { e as Na, f as Er, g as _, h as $, i as M, j as O, k as f, b as h, S as ka } from "./index.es-
|
|
9
|
+
import { e as Na, f as Er, g as _, h as $, i as M, j as O, k as f, b as h, S as ka } from "./index.es-CxQjsRHK.js";
|
|
10
10
|
import { _ as Ka, P as Fn } from "./index.es-CNrSvjAv.js";
|
|
11
11
|
import { _ as In } from "./find-OaLSg5iu.js";
|
|
12
12
|
import { c as Wr, I as Hr, _ as Mn } from "./index.es-LckFzDz-.js";
|
|
13
|
-
import { T as Fr } from "./index.es-
|
|
13
|
+
import { T as Fr } from "./index.es-5Wxrzmtf.js";
|
|
14
14
|
function ee(i) {
|
|
15
15
|
if (i === null || i === !0 || i === !1)
|
|
16
16
|
return NaN;
|