@rankingcoach/vanguard 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-ControlledValuePlugin.js +1 -1
- package/dist/index-DateInput.js +4 -4
- package/dist/index-DefaultValuePlugin.js +1 -1
- package/dist/index-HyperlinkPlugin.js +1 -1
- package/dist/index-InputBase.js +142 -142
- package/dist/index-InputRangeField.js +1 -1
- package/dist/index-KeywordNode.js +1 -1
- package/dist/index-KeywordPlugin.js +1 -1
- package/dist/index-Month.js +2 -2
- package/dist/index-OnChangeContentPlugin.js +1 -1
- package/dist/index-OnFocusOnBlurPlugin.js +1 -1
- package/dist/index-Parser2.js +3 -2
- package/dist/index-_virtual21.js +2 -2
- package/dist/index-_virtual22.js +2 -2
- package/dist/index-_virtual23.js +3 -2
- package/dist/index-_virtual24.js +2 -2
- package/dist/index-_virtual25.js +2 -2
- package/dist/index-_virtual26.js +2 -2
- package/dist/index-_virtual27.js +2 -2
- package/dist/index-_virtual28.js +2 -2
- package/dist/index-_virtual30.js +2 -2
- package/dist/index-_virtual31.js +2 -2
- package/dist/index-_virtual32.js +2 -3
- package/dist/index-_virtual69.js +2 -2
- package/dist/index-_virtual70.js +2 -4
- package/dist/index-_virtual71.js +4 -2
- package/dist/index-_virtual72.js +2 -4
- package/dist/index-_virtual73.js +1 -1
- package/dist/index-_virtual74.js +1 -1
- package/dist/index-_virtual75.js +4 -2
- package/dist/index-_virtual76.js +2 -2
- package/dist/index-accessibility.js +1 -1
- package/dist/index-cjs.js +1 -1
- package/dist/index-keycode.js +1 -1
- package/dist/index-lib4.js +1 -1
- package/dist/index-lib5.js +1 -1
- package/dist/index-mpd-parser.es.js +1 -1
- package/dist/index-useHyperlinkEditor.js +1 -1
- package/dist/index-useLexicalToolbar.js +1 -1
- package/dist/types/core/Form/stories/SelectChangeDetection.story.d.ts +2 -0
- package/dist/types/core/Form/stories/bootstrap/form.test.slice.d.ts +58 -17
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +1956 -1956
- package/package.json +1 -1
package/dist/index-DateInput.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { __exports as p } from "./index-
|
|
1
|
+
import { __exports as p } from "./index-_virtual72.js";
|
|
2
2
|
import k from "react";
|
|
3
3
|
import { __require as K } from "./index-prop-types.js";
|
|
4
4
|
import { __require as L } from "./index-classnames2.js";
|
|
5
|
-
import U from "./index-
|
|
6
|
-
import z from "./index-
|
|
7
|
-
import A from "./index-
|
|
5
|
+
import U from "./index-_virtual73.js";
|
|
6
|
+
import z from "./index-_virtual74.js";
|
|
7
|
+
import A from "./index-_virtual75.js";
|
|
8
8
|
import V from "./index-_virtual55.js";
|
|
9
9
|
var q;
|
|
10
10
|
function te() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as e } from "./index-
|
|
1
|
+
import { __exports as e } from "./index-_virtual29.js";
|
|
2
2
|
import f from "react";
|
|
3
3
|
import { __require as s } from "./index-LexicalLinkPlugin.js";
|
|
4
4
|
import { __require as m } from "./index-LexicalAutoLinkPlugin.js";
|
package/dist/index-InputBase.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { jsxs as c, jsx as
|
|
1
|
+
import { jsxs as c, jsx as l, Fragment as mt } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { REGEX as
|
|
4
|
-
import { useAppDispatch as
|
|
5
|
-
import { useWindowResize as
|
|
6
|
-
import { classNames as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { preventInput as
|
|
9
|
-
import { sanitizeHtml as
|
|
10
|
-
import { highlightedTextMaxLength as
|
|
11
|
-
import { isValidHexColor as
|
|
3
|
+
import { REGEX as Ie } from "./index-regex.js";
|
|
4
|
+
import { useAppDispatch as vt } from "./index-use-app-dispatch.js";
|
|
5
|
+
import { useWindowResize as ft } from "./index-use-window.resize.js";
|
|
6
|
+
import { classNames as yt } from "./index-classNames.js";
|
|
7
|
+
import { debounce as bt } from "./index-debounce.js";
|
|
8
|
+
import { preventInput as kt } from "./index-prevent-input.js";
|
|
9
|
+
import { sanitizeHtml as xt } from "./index-sanitize-html.js";
|
|
10
|
+
import { highlightedTextMaxLength as Ct } from "./index-string-helpers.js";
|
|
11
|
+
import { isValidHexColor as Pt } from "./index-hex-color.js";
|
|
12
12
|
import { translationService as E } from "./index-translation.service.js";
|
|
13
|
-
import { Icon as
|
|
14
|
-
import { IconNames as
|
|
15
|
-
import { Link as
|
|
16
|
-
import { Popover as
|
|
17
|
-
import { Render as
|
|
18
|
-
import { Text as
|
|
19
|
-
import
|
|
13
|
+
import { Icon as Se } from "./index-Icon.js";
|
|
14
|
+
import { IconNames as Te } from "./index-IconNames.js";
|
|
15
|
+
import { Link as It } from "./index-Link.js";
|
|
16
|
+
import { Popover as St } from "./index-Popover.js";
|
|
17
|
+
import { Render as _ } from "./index-Render.js";
|
|
18
|
+
import { Text as M, FontWeights as H } from "./index-Text.js";
|
|
19
|
+
import Tt, { useRef as Ve, useState as D, useEffect as v } from "react";
|
|
20
20
|
import W from "./index-Skeleton2.js";
|
|
21
|
-
import
|
|
22
|
-
const
|
|
21
|
+
import Vt from "./index-TextField.js";
|
|
22
|
+
const Qt = (P) => {
|
|
23
23
|
var me, ve, fe, ye;
|
|
24
24
|
const {
|
|
25
|
-
id:
|
|
26
|
-
className:
|
|
27
|
-
formFieldType:
|
|
28
|
-
type:
|
|
25
|
+
id: Fe,
|
|
26
|
+
className: Ne,
|
|
27
|
+
formFieldType: n = "InputBase",
|
|
28
|
+
type: Re = "Text",
|
|
29
29
|
roundedNumericCTAType: $ = !1,
|
|
30
30
|
value: i,
|
|
31
|
-
defaultValue:
|
|
31
|
+
defaultValue: Ae,
|
|
32
32
|
valueAsDefaultValue: j,
|
|
33
33
|
placeholder: O,
|
|
34
|
-
disabled:
|
|
34
|
+
disabled: Le,
|
|
35
35
|
label: f,
|
|
36
36
|
labelType: y = "floating",
|
|
37
37
|
infoText: U,
|
|
38
38
|
popoverMessage: K,
|
|
39
|
-
popoverPosition:
|
|
39
|
+
popoverPosition: we = "top",
|
|
40
40
|
multiline: q,
|
|
41
|
-
rows:
|
|
41
|
+
rows: Be,
|
|
42
42
|
minRows: z = 3,
|
|
43
43
|
maxRows: G = 6,
|
|
44
|
-
allowBreakLines:
|
|
44
|
+
allowBreakLines: R,
|
|
45
45
|
highlightUrl: I,
|
|
46
46
|
highlightWords: S,
|
|
47
47
|
prohibitedWords: b,
|
|
48
48
|
highlightLengthExceeded: X,
|
|
49
|
-
counter:
|
|
49
|
+
counter: Ee,
|
|
50
50
|
select: J = !1,
|
|
51
|
-
selectRenderValue:
|
|
52
|
-
selectDisplayEmpty:
|
|
53
|
-
menuItemHeight:
|
|
54
|
-
maxMenuItemsUntilScroll:
|
|
51
|
+
selectRenderValue: _e,
|
|
52
|
+
selectDisplayEmpty: Ft,
|
|
53
|
+
menuItemHeight: Me = 36,
|
|
54
|
+
maxMenuItemsUntilScroll: He = 7,
|
|
55
55
|
formconfig: e,
|
|
56
|
-
children:
|
|
56
|
+
children: De,
|
|
57
57
|
onFocus: Q,
|
|
58
58
|
onBlur: Y,
|
|
59
59
|
onKeyUp: Z,
|
|
@@ -63,55 +63,55 @@ const Xt = (P) => {
|
|
|
63
63
|
onChange: T,
|
|
64
64
|
onStepUpNumericClick: ae,
|
|
65
65
|
onStepDownNumericClick: ne,
|
|
66
|
-
testId:
|
|
67
|
-
isLoading:
|
|
66
|
+
testId: We,
|
|
67
|
+
isLoading: A,
|
|
68
68
|
adornment: le,
|
|
69
69
|
endAdornment: ie,
|
|
70
70
|
textFieldProps: o = {},
|
|
71
|
-
replacements:
|
|
71
|
+
replacements: L,
|
|
72
72
|
onProhibitedWordFound: ue,
|
|
73
73
|
onHighlightWordFound: se,
|
|
74
|
-
triggerChangeOnStateFieldChange:
|
|
75
|
-
theme:
|
|
76
|
-
autoFocus:
|
|
74
|
+
triggerChangeOnStateFieldChange: $e,
|
|
75
|
+
theme: je = "default",
|
|
76
|
+
autoFocus: Oe,
|
|
77
77
|
highlightUrlType: oe = "negative",
|
|
78
|
-
popoverHighlight:
|
|
78
|
+
popoverHighlight: Nt,
|
|
79
79
|
helperLinkText: pe,
|
|
80
80
|
onHelperLinkClick: de,
|
|
81
|
-
helperLinkDisabled:
|
|
82
|
-
helperLinkHref:
|
|
81
|
+
helperLinkDisabled: Ue,
|
|
82
|
+
helperLinkHref: Ke,
|
|
83
83
|
labelStyle: p
|
|
84
84
|
} = P;
|
|
85
85
|
let {
|
|
86
86
|
maxLength: g
|
|
87
87
|
} = P;
|
|
88
|
-
const
|
|
89
|
-
e && (e.fieldType =
|
|
88
|
+
const qe = ft(100);
|
|
89
|
+
e && (e.fieldType = n);
|
|
90
90
|
let {
|
|
91
91
|
inputRef: u
|
|
92
92
|
} = P;
|
|
93
|
-
e ? u = e._inputRef : u || (u =
|
|
93
|
+
e ? u = e._inputRef : u || (u = Ve(null));
|
|
94
94
|
const [V, k] = D((i && typeof i == "string" && i.length) ?? 0), F = () => {
|
|
95
95
|
B && s && s.current && u && u.current && (s.current.style.height = `${u.current.getBoundingClientRect().height.toString()}px`, s.current.style.width = `${u.current.getBoundingClientRect().width.toString()}px`, s.current.scrollTop = u.current.scrollTop, s.current.scrollLeft = u.current.scrollLeft);
|
|
96
|
-
}, he =
|
|
96
|
+
}, he = Tt.useMemo(() => bt(F, 100), [F]);
|
|
97
97
|
v(() => {
|
|
98
98
|
k(typeof i == "string" ? i.length : 0);
|
|
99
99
|
}, [i]), v(() => {
|
|
100
100
|
he();
|
|
101
|
-
}, [
|
|
101
|
+
}, [qe, he]), e && e != null && e.validation && "maxLength" in (e == null ? void 0 : e.validation) && (g = (me = e == null ? void 0 : e.validation) == null ? void 0 : me.maxLength);
|
|
102
102
|
let {
|
|
103
103
|
required: w
|
|
104
104
|
} = P;
|
|
105
105
|
(((ve = e == null ? void 0 : e.validation) == null ? void 0 : ve.required) === !0 || ((fe = e == null ? void 0 : e.validation) == null ? void 0 : fe.required) === !1) && (w = (ye = e == null ? void 0 : e.validation) == null ? void 0 : ye.required);
|
|
106
|
-
let [d,
|
|
107
|
-
e && (d = !!e.hasError), e != null && e.setHasError && (
|
|
106
|
+
let [d, ze] = D((e == null ? void 0 : e.hasError) ?? !1);
|
|
107
|
+
e && (d = !!e.hasError), e != null && e.setHasError && (ze = e.setHasError), v(() => {
|
|
108
108
|
e && (e.hasError = d);
|
|
109
109
|
}, [d]), v(() => {
|
|
110
110
|
var t;
|
|
111
111
|
if (e) {
|
|
112
112
|
e.hasError = d;
|
|
113
113
|
const r = (t = e._inputRef) == null ? void 0 : t.current;
|
|
114
|
-
|
|
114
|
+
n !== "Autocomplete" && e.stateValue && r && (r.value = e == null ? void 0 : e.stateValue, $e && T && T({
|
|
115
115
|
target: {
|
|
116
116
|
value: e == null ? void 0 : e.stateValue
|
|
117
117
|
}
|
|
@@ -122,7 +122,7 @@ const Xt = (P) => {
|
|
|
122
122
|
}, [e == null ? void 0 : e.stateValue, b]), v(() => {
|
|
123
123
|
i && I && typeof i == "string" && N(i);
|
|
124
124
|
}, [I, i, oe]);
|
|
125
|
-
const
|
|
125
|
+
const Ge = () => f ? y === "static" ? {
|
|
126
126
|
shrink: !0,
|
|
127
127
|
style: p
|
|
128
128
|
} : y === "outer" ? {
|
|
@@ -131,15 +131,15 @@ const Xt = (P) => {
|
|
|
131
131
|
} : null : {
|
|
132
132
|
shrink: !0,
|
|
133
133
|
style: p
|
|
134
|
-
},
|
|
135
|
-
children: [E.get(f,
|
|
134
|
+
}, Xe = () => !f || y === "hidden" ? "vanguard-label-hidden" : y === "outer" ? "vanguard-label-outer" : "", Je = () => !f || y === "hidden" ? null : c(mt, {
|
|
135
|
+
children: [E.get(f, L).value, !w && l("span", {
|
|
136
136
|
className: "vanguard-input-label-optional",
|
|
137
137
|
style: {
|
|
138
138
|
color: p != null && p.color ? `rgb(from ${p.color} r g b / 0.7)` : void 0
|
|
139
139
|
},
|
|
140
140
|
children: E.get("Optional", void 0).value
|
|
141
141
|
})]
|
|
142
|
-
}),
|
|
142
|
+
}), Qe = c("div", {
|
|
143
143
|
style: {
|
|
144
144
|
marginRight: "20px",
|
|
145
145
|
display: "flex",
|
|
@@ -147,7 +147,7 @@ const Xt = (P) => {
|
|
|
147
147
|
gap: "8px",
|
|
148
148
|
cursor: "pointer"
|
|
149
149
|
},
|
|
150
|
-
children: [
|
|
150
|
+
children: [l(Se, {
|
|
151
151
|
role: "button",
|
|
152
152
|
testId: "button-step-down",
|
|
153
153
|
onClick: (t) => {
|
|
@@ -156,8 +156,8 @@ const Xt = (P) => {
|
|
|
156
156
|
color: "var(--n500)",
|
|
157
157
|
fillColor: "var(--n100)",
|
|
158
158
|
hasCircle: !0,
|
|
159
|
-
children:
|
|
160
|
-
}),
|
|
159
|
+
children: Te.remove
|
|
160
|
+
}), l(Se, {
|
|
161
161
|
role: "button",
|
|
162
162
|
testId: "button-step-up",
|
|
163
163
|
onClick: (t) => {
|
|
@@ -166,31 +166,31 @@ const Xt = (P) => {
|
|
|
166
166
|
color: "var(--n500)",
|
|
167
167
|
fillColor: "var(--n100)",
|
|
168
168
|
hasCircle: !0,
|
|
169
|
-
children:
|
|
169
|
+
children: Te.add
|
|
170
170
|
})]
|
|
171
|
-
}), ce = (t) => t || null,
|
|
171
|
+
}), ce = (t) => t || null, Ye = () => ce(le), Ze = () => ce(ie);
|
|
172
172
|
le && (o.InputProps = {
|
|
173
173
|
...o.InputProps,
|
|
174
|
-
startAdornment:
|
|
174
|
+
startAdornment: Ye()
|
|
175
175
|
}), ie && (o.InputProps = {
|
|
176
176
|
...o.InputProps,
|
|
177
|
-
endAdornment:
|
|
178
|
-
}),
|
|
177
|
+
endAdornment: Ze()
|
|
178
|
+
}), n == "InputNumber" && $ && (o.InputProps = {
|
|
179
179
|
...o.InputProps,
|
|
180
|
-
endAdornment:
|
|
180
|
+
endAdornment: Qe
|
|
181
181
|
});
|
|
182
|
-
const
|
|
182
|
+
const et = () => {
|
|
183
183
|
var x;
|
|
184
184
|
const t = {
|
|
185
185
|
field_name: f,
|
|
186
186
|
length: V || "0",
|
|
187
187
|
...e == null ? void 0 : e.validation,
|
|
188
188
|
...(x = e == null ? void 0 : e.validation) == null ? void 0 : x.replacements,
|
|
189
|
-
...
|
|
189
|
+
...L
|
|
190
190
|
// Info Text translation variables
|
|
191
191
|
};
|
|
192
192
|
let r = "";
|
|
193
|
-
d ? r =
|
|
193
|
+
d ? r = l(M, {
|
|
194
194
|
className: "vanguard-input-error-text",
|
|
195
195
|
testId: "vanguard-input-error-text",
|
|
196
196
|
fontWeight: H.regular,
|
|
@@ -199,14 +199,14 @@ const Xt = (P) => {
|
|
|
199
199
|
"aria-live": "polite",
|
|
200
200
|
"aria-atomic": "true",
|
|
201
201
|
children: e != null && e.errors ? e == null ? void 0 : e.errors[0] : null
|
|
202
|
-
}) : U && (r =
|
|
202
|
+
}) : U && (r = l(M, {
|
|
203
203
|
className: "vanguard-input-info-text",
|
|
204
204
|
fontWeight: H.regular,
|
|
205
205
|
replacements: t,
|
|
206
206
|
children: U
|
|
207
207
|
}));
|
|
208
208
|
let a;
|
|
209
|
-
|
|
209
|
+
Ee && (a = c(M, {
|
|
210
210
|
className: "vanguard-input-counter",
|
|
211
211
|
fontWeight: H.regular,
|
|
212
212
|
color: d ? "--e500" : "",
|
|
@@ -214,17 +214,17 @@ const Xt = (P) => {
|
|
|
214
214
|
children: [V || "0", g && `/${g}`]
|
|
215
215
|
}));
|
|
216
216
|
let m;
|
|
217
|
-
return pe && de && (m =
|
|
217
|
+
return pe && de && (m = l(It, {
|
|
218
218
|
onClick: () => {
|
|
219
219
|
de(i ?? "");
|
|
220
220
|
},
|
|
221
221
|
className: "vanguard-input-helper-link-button",
|
|
222
|
-
disabled:
|
|
223
|
-
href:
|
|
222
|
+
disabled: Ue,
|
|
223
|
+
href: Ke,
|
|
224
224
|
children: pe
|
|
225
225
|
})), !r && !a && !m ? null : c("span", {
|
|
226
226
|
className: "vanguard-input-bottom-container",
|
|
227
|
-
children: [
|
|
227
|
+
children: [l(_, {
|
|
228
228
|
if: !!r || !!a,
|
|
229
229
|
children: c("span", {
|
|
230
230
|
className: "vanguard-input-bottom-container-line",
|
|
@@ -232,16 +232,16 @@ const Xt = (P) => {
|
|
|
232
232
|
})
|
|
233
233
|
}), m]
|
|
234
234
|
});
|
|
235
|
-
}, B = X || S || I || b, s =
|
|
235
|
+
}, B = X || S || I || b, s = Ve(null), [tt, ge] = D({
|
|
236
236
|
__html: ""
|
|
237
237
|
}), N = (t) => {
|
|
238
238
|
if (B || ge({
|
|
239
239
|
__html: ""
|
|
240
|
-
}), X && g && (t == null ? void 0 : t.length) > g && (t =
|
|
240
|
+
}), X && g && (t == null ? void 0 : t.length) > g && (t = Ct(t, g, "vanguard-input-mark-red")), S && S.length && S.forEach((a) => {
|
|
241
241
|
t = t == null ? void 0 : t.replace(a, `<span class="vanguard-input-mark-green">${a}</span>`), t != null && t.includes(a) && se && se(a, e);
|
|
242
242
|
}), b && b.length && b.forEach((a) => {
|
|
243
243
|
t = t == null ? void 0 : t.replace(a, `<span class="vanguard-input-mark-red">${a}</span>`), t != null && t.includes(a) && ue && ue(a, e);
|
|
244
|
-
}), I && t && t.search(
|
|
244
|
+
}), I && t && t.search(Ie.url) >= 0) {
|
|
245
245
|
let a = "";
|
|
246
246
|
switch (oe) {
|
|
247
247
|
case "negative":
|
|
@@ -254,9 +254,9 @@ const Xt = (P) => {
|
|
|
254
254
|
a = "vanguard-input-mark-blue";
|
|
255
255
|
break;
|
|
256
256
|
}
|
|
257
|
-
t = t.replace(
|
|
257
|
+
t = t.replace(Ie.url, `<span class="${a}">$&</span>`);
|
|
258
258
|
}
|
|
259
|
-
const r =
|
|
259
|
+
const r = xt(t, {
|
|
260
260
|
allowedAttributes: {
|
|
261
261
|
span: ["class"]
|
|
262
262
|
},
|
|
@@ -265,50 +265,50 @@ const Xt = (P) => {
|
|
|
265
265
|
ge({
|
|
266
266
|
__html: r
|
|
267
267
|
});
|
|
268
|
-
},
|
|
268
|
+
}, rt = () => {
|
|
269
269
|
if (O)
|
|
270
|
-
return E.get(O,
|
|
271
|
-
},
|
|
272
|
-
position:
|
|
270
|
+
return E.get(O, L).value;
|
|
271
|
+
}, at = (t) => K ? l(St, {
|
|
272
|
+
position: we,
|
|
273
273
|
message: K,
|
|
274
274
|
wrapChildren: !1,
|
|
275
275
|
children: t
|
|
276
|
-
}) : t,
|
|
276
|
+
}) : t, nt = () => q ? {
|
|
277
277
|
multiline: q,
|
|
278
|
-
rows:
|
|
278
|
+
rows: Be,
|
|
279
279
|
minRows: z,
|
|
280
280
|
maxRows: G
|
|
281
|
-
} : null,
|
|
281
|
+
} : null, lt = () => J ? {
|
|
282
282
|
select: J,
|
|
283
283
|
SelectProps: {
|
|
284
|
-
renderValue:
|
|
284
|
+
renderValue: _e,
|
|
285
285
|
MenuProps: {
|
|
286
286
|
PaperProps: {
|
|
287
287
|
style: {
|
|
288
|
-
maxHeight:
|
|
288
|
+
maxHeight: Me * He
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
} : null,
|
|
293
|
+
} : null, it = (t) => {
|
|
294
294
|
Q && Q(t);
|
|
295
|
-
}, lt = (t) => {
|
|
296
|
-
Y && Y(t);
|
|
297
|
-
}, it = (t) => {
|
|
298
|
-
Z && Z(t);
|
|
299
295
|
}, ut = (t) => {
|
|
300
|
-
|
|
296
|
+
Y && Y(t);
|
|
301
297
|
}, st = (t) => {
|
|
302
|
-
|
|
298
|
+
Z && Z(t);
|
|
303
299
|
}, ot = (t) => {
|
|
300
|
+
ee && ee(t), t.code === "Enter" && !R && t.preventDefault(), kt(t, e, i);
|
|
301
|
+
}, pt = (t) => {
|
|
302
|
+
te && te(t);
|
|
303
|
+
}, dt = (t) => {
|
|
304
304
|
re && re(t);
|
|
305
|
-
}, h =
|
|
306
|
-
var a, m, x, be, ke, xe;
|
|
305
|
+
}, h = vt(), ht = (t) => {
|
|
306
|
+
var a, m, x, be, ke, xe, Ce, Pe;
|
|
307
307
|
T && T(t);
|
|
308
308
|
let r;
|
|
309
309
|
if (e) {
|
|
310
310
|
if (e.setStateValue) {
|
|
311
|
-
if (
|
|
311
|
+
if (n == "InputBase" || n == "Input" || n == "InputNumber" || n == "ColorPicker")
|
|
312
312
|
if (r = t.currentTarget.value, (a = e.valueMappers) != null && a.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray)
|
|
313
313
|
h(e.setStateValueArray({
|
|
314
314
|
el: r,
|
|
@@ -316,98 +316,98 @@ const Xt = (P) => {
|
|
|
316
316
|
}));
|
|
317
317
|
else {
|
|
318
318
|
let C = r;
|
|
319
|
-
|
|
319
|
+
n == "InputNumber" && (C = parseInt(C)), n == "ColorPicker" ? Pt(C) && h(e.setStateValue(C)) : h(e.setStateValue(C));
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
n == "Textarea" && (r = t.currentTarget.value, R || (r = t.currentTarget.value.replace(/(\r\n|\n|\r)/gm, " ")), (m = e.valueMappers) != null && m.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray ? h(e.setStateValueArray({
|
|
322
322
|
el: r,
|
|
323
323
|
idx: e.arrayPosition
|
|
324
|
-
})) : h(e.setStateValue(r))),
|
|
324
|
+
})) : h(e.setStateValue(r))), n == "Select" && (r = ((x = t.currentTarget) == null ? void 0 : x.value) || ((be = t.target) == null ? void 0 : be.value), (ke = e.valueMappers) != null && ke.toObject && (r = e.valueMappers.toObject(r)), e.arrayPosition !== void 0 && e.setStateValueArray ? h(e.setStateValueArray({
|
|
325
325
|
el: r,
|
|
326
326
|
idx: e.arrayPosition
|
|
327
327
|
})) : h(e.setStateValue(r)));
|
|
328
328
|
}
|
|
329
|
-
e != null && e._onChange && (e == null || e._onChange());
|
|
329
|
+
n === "Select" && ((xe = e._inputRef) != null && xe.current) && (e._inputRef.current.value = ((Ce = t.target) == null ? void 0 : Ce.value) ?? ""), e != null && e._onChange && (e == null || e._onChange());
|
|
330
330
|
} else
|
|
331
|
-
r = ((
|
|
332
|
-
k(r && typeof r == "string" ? r.length : 0), B && s && s.current && u && u.current && (s.current.style.height = `${u.current.getBoundingClientRect().height.toString()}px`, s.current.style.width = `${u.current.getBoundingClientRect().width.toString()}px`, N(
|
|
333
|
-
},
|
|
331
|
+
r = ((Pe = t.currentTarget) == null ? void 0 : Pe.value) ?? "";
|
|
332
|
+
k(r && typeof r == "string" ? r.length : 0), B && s && s.current && u && u.current && (s.current.style.height = `${u.current.getBoundingClientRect().height.toString()}px`, s.current.style.width = `${u.current.getBoundingClientRect().width.toString()}px`, N(R ? t.currentTarget.value : t.currentTarget.value.replace(/(\r\n|\n|\r)/gm, " ")));
|
|
333
|
+
}, ct = () => {
|
|
334
334
|
setTimeout(() => {
|
|
335
335
|
F();
|
|
336
336
|
}, 0);
|
|
337
|
-
},
|
|
337
|
+
}, gt = () => {
|
|
338
338
|
F();
|
|
339
339
|
};
|
|
340
|
-
return
|
|
341
|
-
className:
|
|
342
|
-
onClick: (t) =>
|
|
343
|
-
children: [
|
|
340
|
+
return at(c("div", {
|
|
341
|
+
className: yt("vanguard-input", Ne, Xe(), je === "grey" ? "vanguard-input-grey" : "", A ? "vanguard-input-loading" : "", $ ? "vanguard-input-type-number-rounded" : "", n === "ColorPicker" ? "vanguard-input-type-colorpicker" : ""),
|
|
342
|
+
onClick: (t) => dt(t),
|
|
343
|
+
children: [l("div", {
|
|
344
344
|
className: "vanguard-input-backdrop",
|
|
345
345
|
ref: s,
|
|
346
|
-
children:
|
|
346
|
+
children: l("div", {
|
|
347
347
|
className: "vanguard-input-highlights",
|
|
348
|
-
dangerouslySetInnerHTML:
|
|
348
|
+
dangerouslySetInnerHTML: tt
|
|
349
349
|
})
|
|
350
|
-
}),
|
|
351
|
-
if:
|
|
350
|
+
}), l(_, {
|
|
351
|
+
if: A && n == "Textarea",
|
|
352
352
|
children: c("div", {
|
|
353
353
|
className: "vanguard-input-skeleton",
|
|
354
354
|
ref: s,
|
|
355
|
-
children: [[...Array(Math.min(z, G))].map((t, r) =>
|
|
355
|
+
children: [[...Array(Math.min(z, G))].map((t, r) => l(W, {
|
|
356
356
|
height: 16,
|
|
357
357
|
width: "100%"
|
|
358
|
-
}, r)),
|
|
358
|
+
}, r)), l(W, {
|
|
359
359
|
height: 16,
|
|
360
360
|
width: "80%"
|
|
361
361
|
})]
|
|
362
362
|
})
|
|
363
|
-
}),
|
|
364
|
-
if:
|
|
365
|
-
children:
|
|
363
|
+
}), l(_, {
|
|
364
|
+
if: A && (n == "Input" || n == "InputBase" || n == "InputNumber" || n == "Autocomplete"),
|
|
365
|
+
children: l("div", {
|
|
366
366
|
className: "vanguard-input-skeleton",
|
|
367
367
|
ref: s,
|
|
368
|
-
children:
|
|
368
|
+
children: l(W, {
|
|
369
369
|
height: 42,
|
|
370
370
|
width: "100%"
|
|
371
371
|
})
|
|
372
372
|
})
|
|
373
|
-
}),
|
|
374
|
-
autoFocus:
|
|
373
|
+
}), l(Vt, {
|
|
374
|
+
autoFocus: Oe,
|
|
375
375
|
variant: "outlined",
|
|
376
|
-
id:
|
|
377
|
-
"data-testid":
|
|
376
|
+
id: Fe,
|
|
377
|
+
"data-testid": We,
|
|
378
378
|
fullWidth: !0,
|
|
379
|
-
label:
|
|
380
|
-
InputLabelProps:
|
|
381
|
-
type:
|
|
379
|
+
label: Je(),
|
|
380
|
+
InputLabelProps: Ge() ?? void 0,
|
|
381
|
+
type: Re,
|
|
382
382
|
value: j ? void 0 : i,
|
|
383
|
-
defaultValue: j ? i :
|
|
384
|
-
placeholder:
|
|
385
|
-
helperText:
|
|
383
|
+
defaultValue: j ? i : Ae,
|
|
384
|
+
placeholder: rt(),
|
|
385
|
+
helperText: l(et, {}),
|
|
386
386
|
error: d,
|
|
387
387
|
required: w,
|
|
388
|
-
disabled:
|
|
388
|
+
disabled: Le,
|
|
389
389
|
role: "textbox",
|
|
390
|
-
...
|
|
391
|
-
...
|
|
392
|
-
onFocus: (t) =>
|
|
393
|
-
onBlur: (t) =>
|
|
394
|
-
onKeyUp: (t) =>
|
|
395
|
-
onKeyDown: (t) =>
|
|
396
|
-
onInput: (t) =>
|
|
397
|
-
onChange: (t) =>
|
|
398
|
-
onPaste: () =>
|
|
390
|
+
...nt(),
|
|
391
|
+
...lt(),
|
|
392
|
+
onFocus: (t) => it(t),
|
|
393
|
+
onBlur: (t) => ut(t),
|
|
394
|
+
onKeyUp: (t) => st(t),
|
|
395
|
+
onKeyDown: (t) => ot(t),
|
|
396
|
+
onInput: (t) => pt(t),
|
|
397
|
+
onChange: (t) => ht(t),
|
|
398
|
+
onPaste: () => ct(),
|
|
399
399
|
inputRef: u,
|
|
400
400
|
...o,
|
|
401
401
|
inputProps: {
|
|
402
402
|
...o.inputProps ?? {},
|
|
403
403
|
onScroll: () => {
|
|
404
|
-
|
|
404
|
+
gt();
|
|
405
405
|
}
|
|
406
406
|
},
|
|
407
|
-
children:
|
|
407
|
+
children: De
|
|
408
408
|
})]
|
|
409
409
|
}));
|
|
410
410
|
};
|
|
411
411
|
export {
|
|
412
|
-
|
|
412
|
+
Qt as InputBase
|
|
413
413
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as r } from "./index-
|
|
1
|
+
import { __exports as r } from "./index-_virtual30.js";
|
|
2
2
|
import { __require as p } from "./index-LexicalComposerContext2.js";
|
|
3
3
|
import { __require as h } from "./index-useLexicalTextEntity.js";
|
|
4
4
|
import P from "react";
|
package/dist/index-Month.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { __exports as y } from "./index-
|
|
1
|
+
import { __exports as y } from "./index-_virtual70.js";
|
|
2
2
|
import de from "react";
|
|
3
3
|
import { __require as me } from "./index-prop-types.js";
|
|
4
4
|
import { __require as he } from "./index-DayCell.js";
|
|
5
5
|
import ye from "./index-_virtual54.js";
|
|
6
6
|
import ve from "./index-_virtual37.js";
|
|
7
|
-
import Oe from "./index-
|
|
7
|
+
import Oe from "./index-_virtual71.js";
|
|
8
8
|
import _e from "./index-_virtual68.js";
|
|
9
9
|
import De from "./index-_virtual51.js";
|
|
10
10
|
import ge from "./index-_virtual41.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as e } from "./index-
|
|
1
|
+
import { __exports as e } from "./index-_virtual31.js";
|
|
2
2
|
import p from "react";
|
|
3
3
|
import { __require as P } from "./index-LexicalComposerContext2.js";
|
|
4
4
|
import { __require as O } from "./index-LexicalOnChangePlugin.js";
|
package/dist/index-Parser2.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import S, { QuoteType as u } from "./index-Tokenizer.js";
|
|
2
|
+
import "./index-decode.js";
|
|
2
3
|
import { fromCodePoint as p } from "./index-decode_codepoint.js";
|
|
3
4
|
const f = /* @__PURE__ */ new Set([
|
|
4
5
|
"input",
|
|
@@ -87,7 +88,7 @@ const f = /* @__PURE__ */ new Set([
|
|
|
87
88
|
"desc",
|
|
88
89
|
"title"
|
|
89
90
|
]), I = /\s|\//;
|
|
90
|
-
class
|
|
91
|
+
class y {
|
|
91
92
|
constructor(t, e = {}) {
|
|
92
93
|
var s, i, o, h, a;
|
|
93
94
|
this.options = e, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.foreignContext = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = t ?? {}, this.lowerCaseTagNames = (s = e.lowerCaseTags) !== null && s !== void 0 ? s : !e.xmlMode, this.lowerCaseAttributeNames = (i = e.lowerCaseAttributeNames) !== null && i !== void 0 ? i : !e.xmlMode, this.tokenizer = new ((o = e.Tokenizer) !== null && o !== void 0 ? o : S)(this.options, this), (a = (h = this.cbs).onparserinit) === null || a === void 0 || a.call(h, this);
|
|
@@ -315,5 +316,5 @@ class E {
|
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
export {
|
|
318
|
-
|
|
319
|
+
y as Parser
|
|
319
320
|
};
|
package/dist/index-_virtual21.js
CHANGED