@iress-oss/ids-components 0.0.1-dev.6 → 0.0.1-dev.8
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/{FieldAppendToLabel-CVrB7qEZ.js → FieldAppendToLabel-CnSsFR-r.js} +1 -1
- package/dist/{LoadingSuspense-CwngxeYy.js → LoadingSuspense-CjQp8lLW.js} +405 -407
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +1 -1
- package/dist/components/Combobox/components/ComboboxResults.js +1 -1
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +1 -1
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +1 -1
- package/dist/components/Field/components/FieldAppendToLabel.js +2 -2
- package/dist/components/Filter/Filter.js +1 -1
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Filter/components/FilterSearch.js +1 -1
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +1 -1
- package/dist/components/Form/FormField/FormFieldset.js +1 -1
- package/dist/components/Form/HookForm/HookForm.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +1 -1
- package/dist/components/Hide/helpers/composeHideClasses.js +1 -1
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +1 -1
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputCurrency/InputCurrency.js +1 -1
- package/dist/components/InputCurrency/index.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +1 -1
- package/dist/components/Menu/MenuHeading/MenuHeading.js +1 -1
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuText/MenuText.js +1 -1
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +1 -1
- package/dist/components/Navbar/components/HomeLinkContent.js +1 -1
- package/dist/components/Navbar/components/NavbarLogo.js +1 -1
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/Readonly/Readonly.js +1 -1
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +1 -1
- package/dist/components/RichSelect/SelectBody/SelectBody.js +1 -1
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +1 -1
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +1 -1
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +1 -1
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +1 -1
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +1 -1
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/components/SelectReadonly.js +1 -1
- package/dist/components/Select/helpers/mapSelectOptions.js +1 -1
- package/dist/components/Select/helpers/nodesToSelectOptions.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Slideout/Slideout.js +1 -1
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableBody/TableBody.js +1 -1
- package/dist/components/Table/components/TableHeader.js +1 -1
- package/dist/components/Table/components/TableHeaderCell.js +1 -1
- package/dist/components/Table/components/TableSortButton.js +1 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +1 -1
- package/dist/components/Toaster/Toast/ToastAnimated.js +1 -1
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +1 -1
- package/dist/components/Toaster/ToasterProvider.js +1 -1
- package/dist/components/Toaster/hooks/useToaster.js +1 -1
- package/dist/components/Toaster/index.js +1 -1
- package/dist/main.js +1 -1
- package/dist/patterns/Loading/Loading.js +1 -1
- package/dist/patterns/Loading/LoadingSuspense.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +1 -1
- package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
- package/dist/patterns/Loading/components/PageLoading.js +1 -1
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Loading/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,13 +3,13 @@ import * as hn from "react";
|
|
|
3
3
|
import ee, { forwardRef as re, useRef as me, useState as X, useMemo as Ie, useImperativeHandle as Be, useId as vs, useCallback as Ae, useEffect as te, createElement as fr, useContext as gs, cloneElement as mr, createContext as pn, Suspense as Os } from "react";
|
|
4
4
|
import { StartUpLoading as vn } from "./patterns/Loading/components/StartUpLoading.js";
|
|
5
5
|
import { c as $ } from "./index-2QXL0WYc.js";
|
|
6
|
-
import { IconSpin as gn, IconSize as hr, IconFlip as yn, IconRotate as bn, IconSet as
|
|
7
|
-
import { ALERT_ICONS as
|
|
8
|
-
import { TextMode as Sn, HeadingLevel as ys, SystemValidationStatus as Nn, GlobalCSSClass as G, TextFieldType as wn, FormElementWidth as bs, Breakpoint as pr, DisplayMode as In, GutterSize as
|
|
6
|
+
import { IconSpin as gn, IconSize as hr, IconFlip as yn, IconRotate as bn, IconSet as _n } from "./components/Icon/Icon.types.js";
|
|
7
|
+
import { ALERT_ICONS as xn } from "./components/Alert/Alert.types.js";
|
|
8
|
+
import { TextMode as Sn, HeadingLevel as ys, SystemValidationStatus as Nn, GlobalCSSClass as G, TextFieldType as wn, FormElementWidth as bs, Breakpoint as pr, DisplayMode as In, GutterSize as _s, HorizontalAlign as vr, VerticalAlign as gr, ModalSize as kn, PaddingSize as yr } from "./enums.js";
|
|
9
9
|
import { IressText as Pe } from "./components/Text/Text.js";
|
|
10
10
|
import { propagateTestid as T } from "./helpers/utility/propagateTestid.js";
|
|
11
11
|
import { HeadingWithDeprecatedFallback as br } from "./components/HeadingWithDeprecatedFallback/HeadingWithDeprecatedFallback.js";
|
|
12
|
-
import { s as Bt, A as
|
|
12
|
+
import { s as Bt, A as xs } from "./AutocompleteNoResults-ImNh0dmJ.js";
|
|
13
13
|
import { IressPopover as Ss } from "./components/Popover/Popover.js";
|
|
14
14
|
import "./components/Popover/PopoverProvider.js";
|
|
15
15
|
import { IressInputPopover as Xt } from "./components/Popover/InputPopover/InputPopover.js";
|
|
@@ -17,7 +17,7 @@ import { getFormControlValueAsString as yt } from "./helpers/form/getFormControl
|
|
|
17
17
|
import { ClearButton as Fn } from "./components/Input/ClearButton/ClearButton.js";
|
|
18
18
|
import { b as is, I as An } from "./InputBase-LsLk3nX1.js";
|
|
19
19
|
import { InputMode as $n } from "./components/Input/Input.types.js";
|
|
20
|
-
import { useControlledState as
|
|
20
|
+
import { useControlledState as _t } from "./hooks/useControlledState.js";
|
|
21
21
|
import "./fuzzysort-eoXOpoo6.js";
|
|
22
22
|
import "./components/Badge/Badge.js";
|
|
23
23
|
import { ButtonMode as Vn, ButtonType as Rn, ButtonCssClass as Te } from "./components/Button/Button.types.js";
|
|
@@ -31,7 +31,7 @@ import { CheckboxGroupContext as Mn } from "./components/CheckboxGroup/CheckboxG
|
|
|
31
31
|
import { toArray as Se } from "./helpers/formatting/toArray.js";
|
|
32
32
|
import "./components/CheckboxGroup/CheckboxGroup.js";
|
|
33
33
|
import { IressCol as St } from "./components/Col/Col.js";
|
|
34
|
-
import { s as rt, C as
|
|
34
|
+
import { s as rt, C as _r } from "./ComboboxHiddenInput-BVhoQtv3.js";
|
|
35
35
|
import { useRichSelectState as Jt } from "./components/RichSelect/hooks/useRichSelectState.js";
|
|
36
36
|
import { useAutocompleteSearch as Dt } from "./components/Autocomplete/hooks/useAutocompleteSearch.js";
|
|
37
37
|
import { useIdIfNeeded as Oe } from "./hooks/useIdIfNeeded.js";
|
|
@@ -42,7 +42,7 @@ import { FormValidationSummary as Tn } from "./components/Form/components/FormVa
|
|
|
42
42
|
import { InlineCssClass as pt } from "./components/Inline/Inline.types.js";
|
|
43
43
|
import { getResponsiveLayoutModifiers as ws } from "./helpers/responsive/getResponsiveLayoutModifiers.js";
|
|
44
44
|
import { formatCurrency as En } from "./helpers/formatting/formatCurrency.js";
|
|
45
|
-
import { IressMenu as
|
|
45
|
+
import { IressMenu as xr } from "./components/Menu/Menu.js";
|
|
46
46
|
import "./components/Menu/MenuProvider.js";
|
|
47
47
|
import { s as tt } from "./MenuItem.module-3aqP1ZMw.js";
|
|
48
48
|
import { useMenu as Sr } from "./components/Menu/hooks/useMenu.js";
|
|
@@ -68,7 +68,7 @@ import { S as Pn, s as jn } from "./SelectControl-BJo08wJN.js";
|
|
|
68
68
|
import { IressSelectOption as Ws } from "./components/Select/SelectOption/SelectOption.js";
|
|
69
69
|
import { getValueAsEvent as ke } from "./helpers/form/getValueAsEvent.js";
|
|
70
70
|
import { getFormControlValueAsStringIfDefined as bt } from "./helpers/form/getFormControlValueAsStringIfDefined.js";
|
|
71
|
-
import { IressSkeleton as
|
|
71
|
+
import { IressSkeleton as xe } from "./components/Skeleton/Skeleton.js";
|
|
72
72
|
import "./components/SkipLink/SkipLink.js";
|
|
73
73
|
import { SlideoutMode as Qn, SlideoutPosition as Kn, SlideoutSize as Yn } from "./components/Slideout/Slideout.types.js";
|
|
74
74
|
import { useIDSProvidedSlideout as Xn } from "./components/Slideout/hooks/useIDSProvidedSlideout.js";
|
|
@@ -110,9 +110,9 @@ import { l as Ce } from "./Loading.module-C58kTwE4.js";
|
|
|
110
110
|
import { useShouldRenderLoading as yi } from "./patterns/Loading/hooks/useShouldRenderLoading.js";
|
|
111
111
|
import { IressContainer as cs } from "./components/Container/Container.js";
|
|
112
112
|
import { LongLoading as bi } from "./patterns/Loading/components/LongLoading.js";
|
|
113
|
-
const
|
|
114
|
-
alert:
|
|
115
|
-
icon:
|
|
113
|
+
const _i = "ids-alert-v5131", xi = "ids-alert--icon-v5131", Si = "ids-alert--heading-v5131", Ni = "ids-alert--wrapper-v5131", wi = "ids-alert--footer-v5131", Ii = "ids-alert--danger-v5131", ki = "ids-alert--info-v5131", Fi = "ids-alert--success-v5131", Ai = "ids-alert--warning-v5131", mt = {
|
|
114
|
+
alert: _i,
|
|
115
|
+
icon: xi,
|
|
116
116
|
heading: Si,
|
|
117
117
|
"iress-u-text": "ids-alert--iress-u-text-v5131",
|
|
118
118
|
wrapper: Ni,
|
|
@@ -185,7 +185,7 @@ ae.Spin = gn;
|
|
|
185
185
|
ae.Size = hr;
|
|
186
186
|
ae.Flip = yn;
|
|
187
187
|
ae.Rotate = bn;
|
|
188
|
-
ae.Set =
|
|
188
|
+
ae.Set = _n;
|
|
189
189
|
ae.Mode = Sn;
|
|
190
190
|
const Mt = ({
|
|
191
191
|
children: e,
|
|
@@ -208,7 +208,7 @@ const Mt = ({
|
|
|
208
208
|
/* @__PURE__ */ a(
|
|
209
209
|
ae,
|
|
210
210
|
{
|
|
211
|
-
name:
|
|
211
|
+
name: xn[o],
|
|
212
212
|
screenreaderText: `${o}: `,
|
|
213
213
|
size: "lg",
|
|
214
214
|
fixedWidth: !0,
|
|
@@ -298,7 +298,7 @@ const Ri = "ids-input-v5131", Li = "ids-input--readonly-v5131", Di = "ids-input-
|
|
|
298
298
|
[`${G.Width}--${d}`]: d && !(d != null && d.includes("perc")),
|
|
299
299
|
[is.readonlyAlignRight]: p
|
|
300
300
|
}
|
|
301
|
-
), _ = bt(i),
|
|
301
|
+
), _ = bt(i), I = bt(u);
|
|
302
302
|
return /* @__PURE__ */ L("div", { className: V, "data-testid": r, style: l, children: [
|
|
303
303
|
/* @__PURE__ */ L(
|
|
304
304
|
"div",
|
|
@@ -308,7 +308,7 @@ const Ri = "ids-input-v5131", Li = "ids-input--readonly-v5131", Di = "ids-input-
|
|
|
308
308
|
}),
|
|
309
309
|
children: [
|
|
310
310
|
o && /* @__PURE__ */ a("div", { className: `${ie.addon} ${ie.prepend}`, children: o }),
|
|
311
|
-
/* @__PURE__ */ a("div", { className: b, children: s ??
|
|
311
|
+
/* @__PURE__ */ a("div", { className: b, children: s ?? I ?? _ }),
|
|
312
312
|
/* @__PURE__ */ a("div", { className: ie.internal, children: n && /* @__PURE__ */ a(
|
|
313
313
|
Ct,
|
|
314
314
|
{
|
|
@@ -327,7 +327,7 @@ const Ri = "ids-input-v5131", Li = "ids-input--readonly-v5131", Di = "ids-input-
|
|
|
327
327
|
type: "hidden",
|
|
328
328
|
ref: g,
|
|
329
329
|
"data-testid": T(r, "input"),
|
|
330
|
-
value:
|
|
330
|
+
value: I
|
|
331
331
|
}
|
|
332
332
|
)
|
|
333
333
|
] });
|
|
@@ -354,21 +354,21 @@ const Ri = "ids-input-v5131", Li = "ids-input--readonly-v5131", Di = "ids-input-
|
|
|
354
354
|
component: "IressInput",
|
|
355
355
|
defaultValue: i
|
|
356
356
|
});
|
|
357
|
-
const
|
|
357
|
+
const I = me(null), { value: F, setValue: C } = _t({
|
|
358
358
|
component: "IressInput",
|
|
359
359
|
defaultValue: i,
|
|
360
360
|
value: e.value
|
|
361
|
-
}), N = yt(
|
|
361
|
+
}), N = yt(F), [H, M] = X(!1), B = Ie(() => y && !H ? y(F) : N, [y, F, N, H]), U = Ie(() => y && !H ? "text" : g, [y, H, g]);
|
|
362
362
|
if (Be(
|
|
363
363
|
s,
|
|
364
|
-
() =>
|
|
364
|
+
() => I.current
|
|
365
365
|
), p)
|
|
366
366
|
return /* @__PURE__ */ a(
|
|
367
367
|
Je,
|
|
368
368
|
{
|
|
369
369
|
..._,
|
|
370
370
|
defaultValue: void 0,
|
|
371
|
-
value:
|
|
371
|
+
value: F,
|
|
372
372
|
alignRight: b,
|
|
373
373
|
append: f,
|
|
374
374
|
className: u,
|
|
@@ -377,7 +377,7 @@ const Ri = "ids-input-v5131", Li = "ids-input--readonly-v5131", Di = "ids-input-
|
|
|
377
377
|
);
|
|
378
378
|
const W = (x) => {
|
|
379
379
|
var E;
|
|
380
|
-
|
|
380
|
+
C(""), (E = I.current) == null || E.focus();
|
|
381
381
|
const D = new Event("change", {
|
|
382
382
|
bubbles: !0
|
|
383
383
|
});
|
|
@@ -387,7 +387,7 @@ const Ri = "ids-input-v5131", Li = "ids-input--readonly-v5131", Di = "ids-input-
|
|
|
387
387
|
}), n == null || n(D);
|
|
388
388
|
}, q = (x) => {
|
|
389
389
|
const D = x.target.value;
|
|
390
|
-
|
|
390
|
+
C(D), d == null || d(x, D);
|
|
391
391
|
}, A = $(
|
|
392
392
|
ie.input,
|
|
393
393
|
u,
|
|
@@ -417,14 +417,14 @@ const Ri = "ids-input-v5131", Li = "ids-input--readonly-v5131", Di = "ids-input-
|
|
|
417
417
|
onChange: q,
|
|
418
418
|
onFocus: (...x) => {
|
|
419
419
|
var D;
|
|
420
|
-
|
|
420
|
+
M(!0), (D = _ == null ? void 0 : _.onFocus) == null || D.call(_, ...x);
|
|
421
421
|
},
|
|
422
422
|
onBlur: (...x) => {
|
|
423
423
|
var D;
|
|
424
|
-
|
|
424
|
+
M(!1), (D = _ == null ? void 0 : _.onBlur) == null || D.call(_, ...x);
|
|
425
425
|
},
|
|
426
426
|
type: U,
|
|
427
|
-
ref:
|
|
427
|
+
ref: I
|
|
428
428
|
}
|
|
429
429
|
),
|
|
430
430
|
/* @__PURE__ */ L("div", { className: ie.internal, children: [
|
|
@@ -484,34 +484,34 @@ const ji = "ids-rich-select-v5131", Qi = "ids-rich-select--popover-content-v5131
|
|
|
484
484
|
value: g,
|
|
485
485
|
...V
|
|
486
486
|
}, b) => {
|
|
487
|
-
const _ = vs(),
|
|
487
|
+
const _ = vs(), F = Ln({ value: g ?? (typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t : void 0) }), C = {
|
|
488
488
|
[Te.Base]: !0,
|
|
489
489
|
[Te.Fluid]: i === !0,
|
|
490
|
-
[`${Te.Mode}--${l}`]: !
|
|
490
|
+
[`${Te.Mode}--${l}`]: !F,
|
|
491
491
|
[Te.NoWrap]: p === !0,
|
|
492
492
|
[Te.Loading]: o,
|
|
493
493
|
[`${Te.Fluid}--${i}`]: typeof i == "string"
|
|
494
494
|
}, N = n === void 0 ? "button" : "a", H = N === "button" ? {
|
|
495
495
|
type: m,
|
|
496
496
|
"aria-describedby": o ? _ : void 0
|
|
497
|
-
} : { href: n, rel: d, target: u },
|
|
498
|
-
o || (y == null || y(B),
|
|
497
|
+
} : { href: n, rel: d, target: u }, M = (B) => {
|
|
498
|
+
o || (y == null || y(B), F == null || F.toggle());
|
|
499
499
|
};
|
|
500
500
|
return /* @__PURE__ */ L(
|
|
501
501
|
N,
|
|
502
502
|
{
|
|
503
503
|
className: $(
|
|
504
504
|
r,
|
|
505
|
-
|
|
505
|
+
F == null ? void 0 : F.className,
|
|
506
506
|
G.FormElement,
|
|
507
507
|
G.FormElementInner,
|
|
508
|
-
|
|
508
|
+
C
|
|
509
509
|
),
|
|
510
510
|
...H,
|
|
511
511
|
...s,
|
|
512
|
-
...
|
|
512
|
+
...F == null ? void 0 : F.props,
|
|
513
513
|
...V,
|
|
514
|
-
onClick:
|
|
514
|
+
onClick: M,
|
|
515
515
|
ref: b,
|
|
516
516
|
children: [
|
|
517
517
|
f && /* @__PURE__ */ a(
|
|
@@ -661,7 +661,7 @@ const oo = ({
|
|
|
661
661
|
p.stopPropagation(), qs(d, p);
|
|
662
662
|
},
|
|
663
663
|
onDeactivated: () => i == null ? void 0 : i(!1),
|
|
664
|
-
children: /* @__PURE__ */ L(
|
|
664
|
+
children: /* @__PURE__ */ L(xr, { children: [
|
|
665
665
|
/* @__PURE__ */ a(hs, { onClick: () => f(!0), children: "Expand all" }),
|
|
666
666
|
/* @__PURE__ */ a(hs, { onClick: m, children: "Delete all" })
|
|
667
667
|
] })
|
|
@@ -790,11 +790,11 @@ const oo = ({
|
|
|
790
790
|
role: e ? void 0 : "combobox",
|
|
791
791
|
selected: m
|
|
792
792
|
}
|
|
793
|
-
), bo = "ids-select-search-v5131",
|
|
793
|
+
), bo = "ids-select-search-v5131", _o = "ids-select-search--content-v5131", Ps = {
|
|
794
794
|
selectSearch: bo,
|
|
795
|
-
content:
|
|
796
|
-
},
|
|
797
|
-
selectBody:
|
|
795
|
+
content: _o
|
|
796
|
+
}, xo = "ids-select-body-v5131", So = "ids-select-body--children-v5131", js = {
|
|
797
|
+
selectBody: xo,
|
|
798
798
|
children: So
|
|
799
799
|
}, No = ({
|
|
800
800
|
className: e,
|
|
@@ -831,7 +831,7 @@ const oo = ({
|
|
|
831
831
|
results: r,
|
|
832
832
|
value: i
|
|
833
833
|
}) => /* @__PURE__ */ a(
|
|
834
|
-
|
|
834
|
+
xt,
|
|
835
835
|
{
|
|
836
836
|
heading: e ? "Search results" : void 0,
|
|
837
837
|
items: r,
|
|
@@ -858,16 +858,14 @@ const oo = ({
|
|
|
858
858
|
value: d
|
|
859
859
|
}) => {
|
|
860
860
|
const u = Se(d).map(
|
|
861
|
-
(
|
|
862
|
-
const { formattedLabel:
|
|
863
|
-
return
|
|
861
|
+
(b) => {
|
|
862
|
+
const { formattedLabel: _, ...I } = b;
|
|
863
|
+
return I;
|
|
864
864
|
}
|
|
865
865
|
), m = !e && (!!(o != null && o.length) || n && !s), p = !!u.length && t, y = m && p, g = me(null), V = vs();
|
|
866
|
-
te(() => {
|
|
866
|
+
return te(() => {
|
|
867
867
|
f || l == null || l("");
|
|
868
|
-
}, [f, l])
|
|
869
|
-
const b = p ? u.length + 1 : 0, k = n && m ? b : p ? 1 : 0;
|
|
870
|
-
return /* @__PURE__ */ L(
|
|
868
|
+
}, [f, l]), /* @__PURE__ */ L(
|
|
871
869
|
No,
|
|
872
870
|
{
|
|
873
871
|
activator: /* @__PURE__ */ a(
|
|
@@ -875,26 +873,26 @@ const oo = ({
|
|
|
875
873
|
{
|
|
876
874
|
"aria-label": "Search",
|
|
877
875
|
loading: s,
|
|
878
|
-
onChange: (
|
|
876
|
+
onChange: (b) => l == null ? void 0 : l(b.target.value),
|
|
879
877
|
ref: g,
|
|
880
878
|
placeholder: "Search and select",
|
|
881
879
|
value: n
|
|
882
880
|
}
|
|
883
881
|
),
|
|
884
882
|
contentClassName: gt.searchResults,
|
|
885
|
-
focusStartIndex:
|
|
883
|
+
focusStartIndex: p ? 1 : 0,
|
|
886
884
|
children: [
|
|
887
885
|
p && /* @__PURE__ */ a(
|
|
888
|
-
|
|
886
|
+
xt,
|
|
889
887
|
{
|
|
890
888
|
"aria-labelledby": V,
|
|
891
889
|
heading: /* @__PURE__ */ a(
|
|
892
890
|
Vo,
|
|
893
891
|
{
|
|
894
892
|
clearAll: !0,
|
|
895
|
-
onClearAll: (
|
|
896
|
-
var
|
|
897
|
-
i == null || i(
|
|
893
|
+
onClearAll: (b) => {
|
|
894
|
+
var _;
|
|
895
|
+
i == null || i(b), (_ = g.current) == null || _.focus();
|
|
898
896
|
},
|
|
899
897
|
children: /* @__PURE__ */ L("h2", { id: V, children: [
|
|
900
898
|
"Selected (",
|
|
@@ -941,14 +939,14 @@ const oo = ({
|
|
|
941
939
|
show: y,
|
|
942
940
|
value: g
|
|
943
941
|
}) => {
|
|
944
|
-
const V = typeof o == "function", b = t ?? (V ? [] : o), _ = d.length ? d : b,
|
|
945
|
-
(
|
|
946
|
-
p(
|
|
942
|
+
const V = typeof o == "function", b = t ?? (V ? [] : o), _ = d.length ? d : b, I = Ae(
|
|
943
|
+
(C) => {
|
|
944
|
+
p(C), n == null || n(ke(C), C), i || m(!1);
|
|
947
945
|
},
|
|
948
946
|
[m, p, n, i]
|
|
949
|
-
),
|
|
950
|
-
(
|
|
951
|
-
|
|
947
|
+
), F = Ae(
|
|
948
|
+
(C) => {
|
|
949
|
+
C.stopPropagation(), p([]), n == null || n(ke([]), []);
|
|
952
950
|
},
|
|
953
951
|
[p, n]
|
|
954
952
|
);
|
|
@@ -969,8 +967,8 @@ const oo = ({
|
|
|
969
967
|
error: s,
|
|
970
968
|
loading: r,
|
|
971
969
|
multiSelect: i,
|
|
972
|
-
onChange:
|
|
973
|
-
onClear:
|
|
970
|
+
onChange: I,
|
|
971
|
+
onClear: F,
|
|
974
972
|
query: l,
|
|
975
973
|
results: d,
|
|
976
974
|
setQuery: u,
|
|
@@ -978,11 +976,11 @@ const oo = ({
|
|
|
978
976
|
value: g
|
|
979
977
|
}
|
|
980
978
|
) : /* @__PURE__ */ a(
|
|
981
|
-
|
|
979
|
+
xt,
|
|
982
980
|
{
|
|
983
981
|
items: _,
|
|
984
982
|
multiSelect: i,
|
|
985
|
-
onChange:
|
|
983
|
+
onChange: I,
|
|
986
984
|
selected: g,
|
|
987
985
|
selectedFirst: !0
|
|
988
986
|
}
|
|
@@ -1007,12 +1005,12 @@ const oo = ({
|
|
|
1007
1005
|
placeholder: V,
|
|
1008
1006
|
readonly: b,
|
|
1009
1007
|
renderHiddenInput: _,
|
|
1010
|
-
renderLabel:
|
|
1011
|
-
renderOptions:
|
|
1012
|
-
required:
|
|
1008
|
+
renderLabel: I,
|
|
1009
|
+
renderOptions: F,
|
|
1010
|
+
required: C,
|
|
1013
1011
|
type: N,
|
|
1014
1012
|
value: H,
|
|
1015
|
-
width:
|
|
1013
|
+
width: M = "100perc",
|
|
1016
1014
|
virtualFocus: B,
|
|
1017
1015
|
...U
|
|
1018
1016
|
}, W) => {
|
|
@@ -1081,7 +1079,7 @@ const oo = ({
|
|
|
1081
1079
|
multiSelect: d,
|
|
1082
1080
|
onChange: p,
|
|
1083
1081
|
placeholder: V,
|
|
1084
|
-
renderLabel:
|
|
1082
|
+
renderLabel: I,
|
|
1085
1083
|
setValue: O,
|
|
1086
1084
|
setShow: A,
|
|
1087
1085
|
show: q,
|
|
@@ -1090,8 +1088,8 @@ const oo = ({
|
|
|
1090
1088
|
),
|
|
1091
1089
|
align: e,
|
|
1092
1090
|
className: $(s, gt.richSelect, {
|
|
1093
|
-
[G.IgnoreStack]: !!
|
|
1094
|
-
[`${G.Width}--${
|
|
1091
|
+
[G.IgnoreStack]: !!M,
|
|
1092
|
+
[`${G.Width}--${M}`]: !!M
|
|
1095
1093
|
}),
|
|
1096
1094
|
contentClassName: gt.popoverContent,
|
|
1097
1095
|
matchActivatorWidth: !0,
|
|
@@ -1115,7 +1113,7 @@ const oo = ({
|
|
|
1115
1113
|
onChange: p,
|
|
1116
1114
|
options: g,
|
|
1117
1115
|
query: x,
|
|
1118
|
-
renderOptions:
|
|
1116
|
+
renderOptions: F,
|
|
1119
1117
|
results: Z,
|
|
1120
1118
|
setQuery: D,
|
|
1121
1119
|
setShow: A,
|
|
@@ -1135,7 +1133,7 @@ const oo = ({
|
|
|
1135
1133
|
getValuesString: P,
|
|
1136
1134
|
name: f,
|
|
1137
1135
|
renderHiddenInput: _,
|
|
1138
|
-
required:
|
|
1136
|
+
required: C,
|
|
1139
1137
|
value: E,
|
|
1140
1138
|
ref: Y
|
|
1141
1139
|
}
|
|
@@ -1275,8 +1273,8 @@ const Ro = ({
|
|
|
1275
1273
|
value: u
|
|
1276
1274
|
},
|
|
1277
1275
|
V
|
|
1278
|
-
),
|
|
1279
|
-
return Be(p, () =>
|
|
1276
|
+
), I = me(null);
|
|
1277
|
+
return Be(p, () => I.current), Hn(
|
|
1280
1278
|
/* @__PURE__ */ a(Le, { ...g, ...b, ..._, ...m }),
|
|
1281
1279
|
y
|
|
1282
1280
|
);
|
|
@@ -1302,7 +1300,7 @@ const Ro = ({
|
|
|
1302
1300
|
n && /* @__PURE__ */ a("span", { className: "iress-display--block", children: n })
|
|
1303
1301
|
]
|
|
1304
1302
|
}
|
|
1305
|
-
),
|
|
1303
|
+
), xt = ({
|
|
1306
1304
|
heading: e,
|
|
1307
1305
|
hideSelectedItems: s,
|
|
1308
1306
|
items: t = [],
|
|
@@ -1321,10 +1319,10 @@ const Ro = ({
|
|
|
1321
1319
|
), g = Ie(() => {
|
|
1322
1320
|
let _ = d ? Do(t, f, y) : t;
|
|
1323
1321
|
if (s) {
|
|
1324
|
-
const
|
|
1322
|
+
const I = Se(y);
|
|
1325
1323
|
_ = _.filter(
|
|
1326
|
-
(
|
|
1327
|
-
bt(
|
|
1324
|
+
(F) => !I.includes(
|
|
1325
|
+
bt(F.value) ?? F.label
|
|
1328
1326
|
)
|
|
1329
1327
|
);
|
|
1330
1328
|
}
|
|
@@ -1339,17 +1337,17 @@ const Ro = ({
|
|
|
1339
1337
|
d
|
|
1340
1338
|
]), V = g.length === 0, b = Ae(
|
|
1341
1339
|
(_) => {
|
|
1342
|
-
const
|
|
1340
|
+
const I = Co(
|
|
1343
1341
|
t,
|
|
1344
1342
|
f,
|
|
1345
1343
|
_
|
|
1346
1344
|
);
|
|
1347
|
-
l == null || l(n ?
|
|
1345
|
+
l == null || l(n ? I : I[0]);
|
|
1348
1346
|
},
|
|
1349
1347
|
[t, n, l, f]
|
|
1350
1348
|
);
|
|
1351
1349
|
return /* @__PURE__ */ L(
|
|
1352
|
-
|
|
1350
|
+
xr,
|
|
1353
1351
|
{
|
|
1354
1352
|
...u,
|
|
1355
1353
|
"aria-labelledby": typeof e == "string" ? p : u["aria-labelledby"],
|
|
@@ -1359,14 +1357,14 @@ const Ro = ({
|
|
|
1359
1357
|
selected: y,
|
|
1360
1358
|
children: [
|
|
1361
1359
|
typeof e == "string" ? /* @__PURE__ */ a(Cr, { id: p, children: e }) : e,
|
|
1362
|
-
g.map((_,
|
|
1360
|
+
g.map((_, I) => /* @__PURE__ */ fr(
|
|
1363
1361
|
Lo,
|
|
1364
1362
|
{
|
|
1365
1363
|
..._,
|
|
1366
1364
|
"data-testid": T(u == null ? void 0 : u["data-testid"], "menu-item"),
|
|
1367
1365
|
key: `${yt(
|
|
1368
1366
|
_.value ?? _.label
|
|
1369
|
-
)}-${
|
|
1367
|
+
)}-${I}`
|
|
1370
1368
|
}
|
|
1371
1369
|
)),
|
|
1372
1370
|
V && (typeof o == "string" ? /* @__PURE__ */ a(As, { children: o }) : o)
|
|
@@ -1442,20 +1440,20 @@ const zo = re(
|
|
|
1442
1440
|
onFocus: b,
|
|
1443
1441
|
options: _,
|
|
1444
1442
|
popoverProps: {
|
|
1445
|
-
autoHighlight:
|
|
1446
|
-
append:
|
|
1447
|
-
prepend:
|
|
1443
|
+
autoHighlight: I = !1,
|
|
1444
|
+
append: F,
|
|
1445
|
+
prepend: C,
|
|
1448
1446
|
...N
|
|
1449
1447
|
} = {},
|
|
1450
1448
|
readOnly: H,
|
|
1451
|
-
value:
|
|
1449
|
+
value: M,
|
|
1452
1450
|
watermark: B = !0,
|
|
1453
1451
|
...U
|
|
1454
1452
|
}, W) => {
|
|
1455
|
-
const [q, A] = X(!1), { value: x, setValue: D } =
|
|
1453
|
+
const [q, A] = X(!1), { value: x, setValue: D } = _t({
|
|
1456
1454
|
component: "IressAutocomplete",
|
|
1457
1455
|
defaultValue: f,
|
|
1458
|
-
value:
|
|
1456
|
+
value: M
|
|
1459
1457
|
}), [E, O] = X(!1), { clearError: P, debouncedQuery: Q, error: J, loading: Y, results: K, stopSearch: pe } = Dt({
|
|
1460
1458
|
debounceThreshold: l,
|
|
1461
1459
|
initialOptions: u,
|
|
@@ -1511,7 +1509,7 @@ const zo = re(
|
|
|
1511
1509
|
ref: W
|
|
1512
1510
|
}
|
|
1513
1511
|
),
|
|
1514
|
-
autoHighlight:
|
|
1512
|
+
autoHighlight: I,
|
|
1515
1513
|
className: $(
|
|
1516
1514
|
i,
|
|
1517
1515
|
N.className,
|
|
@@ -1529,9 +1527,9 @@ const zo = re(
|
|
|
1529
1527
|
type: "listbox",
|
|
1530
1528
|
children: [
|
|
1531
1529
|
Z.showResults && /* @__PURE__ */ L(Xe, { children: [
|
|
1532
|
-
|
|
1530
|
+
C,
|
|
1533
1531
|
/* @__PURE__ */ a(
|
|
1534
|
-
|
|
1532
|
+
xt,
|
|
1535
1533
|
{
|
|
1536
1534
|
changeOnBlur: r,
|
|
1537
1535
|
className: Bt.optionList,
|
|
@@ -1543,11 +1541,11 @@ const zo = re(
|
|
|
1543
1541
|
selected: { label: Q }
|
|
1544
1542
|
}
|
|
1545
1543
|
),
|
|
1546
|
-
|
|
1544
|
+
F
|
|
1547
1545
|
] }),
|
|
1548
1546
|
J && d,
|
|
1549
1547
|
Z.showNoResults && !J && /* @__PURE__ */ a(
|
|
1550
|
-
|
|
1548
|
+
xs,
|
|
1551
1549
|
{
|
|
1552
1550
|
noResultsText: y,
|
|
1553
1551
|
styles: Bt
|
|
@@ -1591,21 +1589,21 @@ const Bo = "ids-checkbox--label-v5131", Oo = "ids-checkbox--mark-v5131", Ho = "i
|
|
|
1591
1589
|
defaultValue: t,
|
|
1592
1590
|
message: "Using the `defaultChecked` prop on an `IressCheckbox` inside an `IressForm` component is not supported. Please use the `defaultValue` prop on the `IressFormField`, or use `defaultValues` on the `IressForm` component (recommended) to ensure a single source of truth for your form."
|
|
1593
1591
|
});
|
|
1594
|
-
const V = me(null), b = V.current, _ = vs(),
|
|
1592
|
+
const V = me(null), b = V.current, _ = vs(), I = o ?? _, [F, C] = X(
|
|
1595
1593
|
n ?? !1
|
|
1596
|
-
), N = gs(Mn), H = N ? void 0 : t,
|
|
1594
|
+
), N = gs(Mn), H = N ? void 0 : t, M = N ? Se(N.value).includes(d) : e, B = (N == null ? void 0 : N.hiddenCheckbox) ?? r, U = (N == null ? void 0 : N.touch) ?? p, W = (N == null ? void 0 : N.readonly) ?? m, q = (N == null ? void 0 : N.name) ?? l, {
|
|
1597
1595
|
value: A,
|
|
1598
1596
|
setValue: x,
|
|
1599
1597
|
isControlled: D
|
|
1600
|
-
} =
|
|
1598
|
+
} = _t({
|
|
1601
1599
|
component: "IressCheckbox",
|
|
1602
1600
|
propName: "checked",
|
|
1603
1601
|
defaultValue: H,
|
|
1604
|
-
value:
|
|
1605
|
-
}), E = D ? n :
|
|
1602
|
+
value: M
|
|
1603
|
+
}), E = D ? n : F, O = Ae(
|
|
1606
1604
|
(P) => {
|
|
1607
1605
|
var Q;
|
|
1608
|
-
D ||
|
|
1606
|
+
D || C(!1), x(P.target.checked), f == null || f(P, d), (Q = N == null ? void 0 : N.onChange) == null || Q.call(N, P, d);
|
|
1609
1607
|
},
|
|
1610
1608
|
[N, D, f, x, d]
|
|
1611
1609
|
);
|
|
@@ -1647,7 +1645,7 @@ const Bo = "ids-checkbox--label-v5131", Oo = "ids-checkbox--mark-v5131", Ho = "i
|
|
|
1647
1645
|
...y,
|
|
1648
1646
|
value: yt(d),
|
|
1649
1647
|
type: "checkbox",
|
|
1650
|
-
id:
|
|
1648
|
+
id: I,
|
|
1651
1649
|
defaultChecked: D ? void 0 : A,
|
|
1652
1650
|
checked: D ? A : void 0,
|
|
1653
1651
|
className: $(He.input, G.SROnly),
|
|
@@ -1659,7 +1657,7 @@ const Bo = "ids-checkbox--label-v5131", Oo = "ids-checkbox--mark-v5131", Ho = "i
|
|
|
1659
1657
|
/* @__PURE__ */ L(
|
|
1660
1658
|
"label",
|
|
1661
1659
|
{
|
|
1662
|
-
htmlFor:
|
|
1660
|
+
htmlFor: I,
|
|
1663
1661
|
className: $({
|
|
1664
1662
|
[He.label]: !0
|
|
1665
1663
|
}),
|
|
@@ -1713,7 +1711,7 @@ const $s = ({
|
|
|
1713
1711
|
n && /* @__PURE__ */ L(Xe, { children: [
|
|
1714
1712
|
r,
|
|
1715
1713
|
/* @__PURE__ */ a(
|
|
1716
|
-
|
|
1714
|
+
xt,
|
|
1717
1715
|
{
|
|
1718
1716
|
...o,
|
|
1719
1717
|
className: rt.optionList,
|
|
@@ -1722,7 +1720,7 @@ const $s = ({
|
|
|
1722
1720
|
),
|
|
1723
1721
|
e
|
|
1724
1722
|
] }),
|
|
1725
|
-
i && /* @__PURE__ */ a(
|
|
1723
|
+
i && /* @__PURE__ */ a(xs, { noResultsText: t, styles: rt })
|
|
1726
1724
|
] }), Vs = re(
|
|
1727
1725
|
({
|
|
1728
1726
|
append: e = /* @__PURE__ */ a(ae, { name: "search" }),
|
|
@@ -1743,13 +1741,13 @@ const $s = ({
|
|
|
1743
1741
|
onBlur: V,
|
|
1744
1742
|
onChange: b,
|
|
1745
1743
|
onClear: _,
|
|
1746
|
-
onFocus:
|
|
1747
|
-
onKeyDown:
|
|
1748
|
-
options:
|
|
1744
|
+
onFocus: I,
|
|
1745
|
+
onKeyDown: F,
|
|
1746
|
+
options: C,
|
|
1749
1747
|
popoverProps: {
|
|
1750
1748
|
append: N,
|
|
1751
1749
|
prepend: H,
|
|
1752
|
-
...
|
|
1750
|
+
...M
|
|
1753
1751
|
} = {},
|
|
1754
1752
|
readOnly: B,
|
|
1755
1753
|
required: U,
|
|
@@ -1768,7 +1766,7 @@ const $s = ({
|
|
|
1768
1766
|
}), [Z, le] = X(""), [ve, ne] = X(K()), { debouncedQuery: ce, loading: de, results: oe, stopSearch: ue } = Dt({
|
|
1769
1767
|
debounceThreshold: o,
|
|
1770
1768
|
initialOptions: u,
|
|
1771
|
-
options:
|
|
1769
|
+
options: C,
|
|
1772
1770
|
query: Z
|
|
1773
1771
|
}), De = Lr({
|
|
1774
1772
|
debouncedQuery: ce,
|
|
@@ -1786,25 +1784,25 @@ const $s = ({
|
|
|
1786
1784
|
});
|
|
1787
1785
|
if (B)
|
|
1788
1786
|
return /* @__PURE__ */ a(Je, { value: pe(), children: K() });
|
|
1789
|
-
const Ne = (
|
|
1790
|
-
const
|
|
1791
|
-
le(
|
|
1792
|
-
}, $e = (
|
|
1793
|
-
_ == null || _(
|
|
1794
|
-
}, it = (
|
|
1795
|
-
|
|
1796
|
-
}, ot = (
|
|
1797
|
-
V == null || V(
|
|
1798
|
-
}, zt = (
|
|
1799
|
-
|
|
1800
|
-
}, c = (
|
|
1801
|
-
var
|
|
1802
|
-
const
|
|
1803
|
-
Y(
|
|
1787
|
+
const Ne = (w) => {
|
|
1788
|
+
const S = w.target.value;
|
|
1789
|
+
le(S), ne(S), S || (Y(void 0), b == null || b(ke(void 0), void 0), u && Q(!0));
|
|
1790
|
+
}, $e = (w) => {
|
|
1791
|
+
_ == null || _(w), le(""), ne(""), Y(void 0), Q(!1);
|
|
1792
|
+
}, it = (w) => {
|
|
1793
|
+
I == null || I(w), Z || le(ve);
|
|
1794
|
+
}, ot = (w) => {
|
|
1795
|
+
V == null || V(w), ne(J ? K() : "");
|
|
1796
|
+
}, zt = (w) => {
|
|
1797
|
+
F == null || F(w), ge.setKeyPressed(w.nativeEvent);
|
|
1798
|
+
}, c = (w) => {
|
|
1799
|
+
var k;
|
|
1800
|
+
const S = (k = Se(w)) == null ? void 0 : k[0];
|
|
1801
|
+
Y(S), b == null || b(ke(S), S), ne(S == null ? void 0 : S.label), Q(!1);
|
|
1804
1802
|
}, h = () => {
|
|
1805
1803
|
Q(!1), ue();
|
|
1806
|
-
}, v = (
|
|
1807
|
-
|
|
1804
|
+
}, v = (w) => {
|
|
1805
|
+
w !== null && (ge.setKeyPressed(void 0), ge.highlightQueryByActiveIndex(w));
|
|
1808
1806
|
};
|
|
1809
1807
|
return /* @__PURE__ */ L(
|
|
1810
1808
|
"div",
|
|
@@ -1815,7 +1813,7 @@ const $s = ({
|
|
|
1815
1813
|
/* @__PURE__ */ a(
|
|
1816
1814
|
Xt,
|
|
1817
1815
|
{
|
|
1818
|
-
...
|
|
1816
|
+
...M,
|
|
1819
1817
|
activator: /* @__PURE__ */ a(
|
|
1820
1818
|
Ze,
|
|
1821
1819
|
{
|
|
@@ -1865,7 +1863,7 @@ const $s = ({
|
|
|
1865
1863
|
}
|
|
1866
1864
|
),
|
|
1867
1865
|
/* @__PURE__ */ a(
|
|
1868
|
-
|
|
1866
|
+
_r,
|
|
1869
1867
|
{
|
|
1870
1868
|
hiddenInputProps: f,
|
|
1871
1869
|
dataTestId: n,
|
|
@@ -1970,7 +1968,7 @@ const Jo = "ids-tag-v5131", Zo = "ids-tag--content-v5131", Ks = {
|
|
|
1970
1968
|
);
|
|
1971
1969
|
return /* @__PURE__ */ a("div", { className: f, ...o, children: e });
|
|
1972
1970
|
};
|
|
1973
|
-
Ge.Gutter =
|
|
1971
|
+
Ge.Gutter = _s;
|
|
1974
1972
|
Ge.HorizontalAlign = vr;
|
|
1975
1973
|
Ge.VerticalAlign = gr;
|
|
1976
1974
|
const aa = ({
|
|
@@ -2111,14 +2109,14 @@ const la = re(
|
|
|
2111
2109
|
noResultsText: V,
|
|
2112
2110
|
onChange: b,
|
|
2113
2111
|
onClear: _,
|
|
2114
|
-
options:
|
|
2112
|
+
options: I,
|
|
2115
2113
|
popoverProps: {
|
|
2116
|
-
autoHighlight:
|
|
2117
|
-
append:
|
|
2114
|
+
autoHighlight: F = !1,
|
|
2115
|
+
append: C,
|
|
2118
2116
|
prepend: N,
|
|
2119
2117
|
...H
|
|
2120
2118
|
} = {},
|
|
2121
|
-
readOnly:
|
|
2119
|
+
readOnly: M,
|
|
2122
2120
|
required: B,
|
|
2123
2121
|
selectedOptionsTagText: U = "options selected",
|
|
2124
2122
|
type: W = "search",
|
|
@@ -2144,14 +2142,14 @@ const la = re(
|
|
|
2144
2142
|
}), [le, ve] = X(""), { debouncedQuery: ne, loading: ce, results: de, stopSearch: oe } = Dt({
|
|
2145
2143
|
debounceThreshold: o,
|
|
2146
2144
|
initialOptions: u,
|
|
2147
|
-
options:
|
|
2145
|
+
options: I,
|
|
2148
2146
|
query: le
|
|
2149
2147
|
}), ue = Lr({
|
|
2150
2148
|
debouncedQuery: ne,
|
|
2151
2149
|
loading: ce,
|
|
2152
2150
|
results: de
|
|
2153
2151
|
});
|
|
2154
|
-
if (
|
|
2152
|
+
if (M)
|
|
2155
2153
|
return /* @__PURE__ */ a(Je, { value: K(), children: Z(", ") });
|
|
2156
2154
|
const De = (c) => {
|
|
2157
2155
|
ve(c.target.value);
|
|
@@ -2163,9 +2161,9 @@ const la = re(
|
|
|
2163
2161
|
b == null || b(ke(h), h), Y(h);
|
|
2164
2162
|
}
|
|
2165
2163
|
}, $e = (c) => {
|
|
2166
|
-
const h = [], v = Se(c).filter((
|
|
2167
|
-
const
|
|
2168
|
-
return h.includes(
|
|
2164
|
+
const h = [], v = Se(c).filter((w) => {
|
|
2165
|
+
const S = w.value ?? w.label;
|
|
2166
|
+
return h.includes(S) ? !1 : (h.push(S), !0);
|
|
2169
2167
|
});
|
|
2170
2168
|
b == null || b(ke(v), v), Y(v);
|
|
2171
2169
|
}, it = (c) => {
|
|
@@ -2211,7 +2209,7 @@ const la = re(
|
|
|
2211
2209
|
watermark: A
|
|
2212
2210
|
}
|
|
2213
2211
|
),
|
|
2214
|
-
autoHighlight:
|
|
2212
|
+
autoHighlight: F,
|
|
2215
2213
|
className: $(r, rt.input),
|
|
2216
2214
|
contentClassName: rt.popoverContent,
|
|
2217
2215
|
onActivated: () => Q(!0),
|
|
@@ -2222,7 +2220,7 @@ const la = re(
|
|
|
2222
2220
|
children: /* @__PURE__ */ a(
|
|
2223
2221
|
Er,
|
|
2224
2222
|
{
|
|
2225
|
-
append:
|
|
2223
|
+
append: C,
|
|
2226
2224
|
changeOnBlur: t,
|
|
2227
2225
|
dataTestId: n,
|
|
2228
2226
|
limitDesktop: m,
|
|
@@ -2241,7 +2239,7 @@ const la = re(
|
|
|
2241
2239
|
}
|
|
2242
2240
|
),
|
|
2243
2241
|
/* @__PURE__ */ a(
|
|
2244
|
-
|
|
2242
|
+
_r,
|
|
2245
2243
|
{
|
|
2246
2244
|
hiddenInputProps: f,
|
|
2247
2245
|
dataTestId: n,
|
|
@@ -2324,7 +2322,7 @@ const Br = re(
|
|
|
2324
2322
|
Br.displayName = "FilterResetButton";
|
|
2325
2323
|
const Ys = {
|
|
2326
2324
|
align: "bottom-start"
|
|
2327
|
-
},
|
|
2325
|
+
}, _a = re(
|
|
2328
2326
|
({
|
|
2329
2327
|
children: e,
|
|
2330
2328
|
className: s,
|
|
@@ -2350,16 +2348,16 @@ const Ys = {
|
|
|
2350
2348
|
prepend: b,
|
|
2351
2349
|
..._
|
|
2352
2350
|
} = Ys,
|
|
2353
|
-
searchable:
|
|
2354
|
-
searchNoResultsText:
|
|
2355
|
-
selectedOptionsText:
|
|
2351
|
+
searchable: I,
|
|
2352
|
+
searchNoResultsText: F,
|
|
2353
|
+
selectedOptionsText: C,
|
|
2356
2354
|
value: N,
|
|
2357
2355
|
visibleResetButton: H,
|
|
2358
|
-
...
|
|
2356
|
+
...M
|
|
2359
2357
|
}, B) => {
|
|
2360
2358
|
const U = Oe({ id: n }), W = `${U}-sr-text`, q = me(null), A = Ie(
|
|
2361
|
-
() =>
|
|
2362
|
-
[g,
|
|
2359
|
+
() => I ?? typeof g == "function",
|
|
2360
|
+
[g, I]
|
|
2363
2361
|
), x = {
|
|
2364
2362
|
clearable: !0,
|
|
2365
2363
|
prepend: /* @__PURE__ */ a(ae, { name: "search" }),
|
|
@@ -2399,10 +2397,10 @@ const Ys = {
|
|
|
2399
2397
|
return /* @__PURE__ */ L(
|
|
2400
2398
|
"div",
|
|
2401
2399
|
{
|
|
2402
|
-
...
|
|
2400
|
+
...M,
|
|
2403
2401
|
className: $(s, Ee.filter, {
|
|
2404
2402
|
[Ee.multiSelect]: m,
|
|
2405
|
-
[Ee.searchable]:
|
|
2403
|
+
[Ee.searchable]: I
|
|
2406
2404
|
}),
|
|
2407
2405
|
"data-testid": t,
|
|
2408
2406
|
id: U,
|
|
@@ -2426,7 +2424,7 @@ const Ys = {
|
|
|
2426
2424
|
fi,
|
|
2427
2425
|
{
|
|
2428
2426
|
label: u,
|
|
2429
|
-
selectedOptionsText:
|
|
2427
|
+
selectedOptionsText: C,
|
|
2430
2428
|
value: E
|
|
2431
2429
|
}
|
|
2432
2430
|
),
|
|
@@ -2466,7 +2464,7 @@ const Ys = {
|
|
|
2466
2464
|
/* @__PURE__ */ a(Ns, { gutter: "none" })
|
|
2467
2465
|
] }),
|
|
2468
2466
|
de.showResults && /* @__PURE__ */ a(
|
|
2469
|
-
|
|
2467
|
+
xt,
|
|
2470
2468
|
{
|
|
2471
2469
|
className: Ee.optionList,
|
|
2472
2470
|
"data-testid": T(t, "menu"),
|
|
@@ -2480,9 +2478,9 @@ const Ys = {
|
|
|
2480
2478
|
}
|
|
2481
2479
|
),
|
|
2482
2480
|
de.showNoResults && /* @__PURE__ */ a(
|
|
2483
|
-
|
|
2481
|
+
xs,
|
|
2484
2482
|
{
|
|
2485
|
-
noResultsText:
|
|
2483
|
+
noResultsText: F,
|
|
2486
2484
|
styles: Ee
|
|
2487
2485
|
}
|
|
2488
2486
|
),
|
|
@@ -2497,7 +2495,7 @@ const Ys = {
|
|
|
2497
2495
|
"data-testid": T(t, "results-sr-text"),
|
|
2498
2496
|
id: W,
|
|
2499
2497
|
loading: ne,
|
|
2500
|
-
noResultsText:
|
|
2498
|
+
noResultsText: F,
|
|
2501
2499
|
results: ce
|
|
2502
2500
|
}
|
|
2503
2501
|
)
|
|
@@ -2506,10 +2504,10 @@ const Ys = {
|
|
|
2506
2504
|
);
|
|
2507
2505
|
}
|
|
2508
2506
|
);
|
|
2509
|
-
|
|
2507
|
+
_a.displayName = "IressFilter";
|
|
2510
2508
|
var Et = (e) => e.type === "checkbox", ut = (e) => e instanceof Date, Fe = (e) => e == null;
|
|
2511
2509
|
const Or = (e) => typeof e == "object";
|
|
2512
|
-
var he = (e) => !Fe(e) && !Array.isArray(e) && Or(e) && !ut(e), Hr = (e) => he(e) && e.target ? Et(e.target) ? e.target.checked : e.target.value : e,
|
|
2510
|
+
var he = (e) => !Fe(e) && !Array.isArray(e) && Or(e) && !ut(e), Hr = (e) => he(e) && e.target ? Et(e.target) ? e.target.checked : e.target.value : e, xa = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ur = (e, s) => e.has(xa(s)), Sa = (e) => {
|
|
2513
2511
|
const s = e.constructor && e.constructor.prototype;
|
|
2514
2512
|
return he(s) && s.hasOwnProperty("isPrototypeOf");
|
|
2515
2513
|
}, Ls = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -2800,12 +2798,12 @@ var ht = (e) => he(e) && !Qt(e) ? e : {
|
|
|
2800
2798
|
value: e,
|
|
2801
2799
|
message: ""
|
|
2802
2800
|
}, sr = async (e, s, t, r, i) => {
|
|
2803
|
-
const { ref: n, refs: o, required: l, maxLength: f, minLength: d, min: u, max: m, pattern: p, validate: y, name: g, valueAsNumber: V, mount: b, disabled: _ } = e._f,
|
|
2801
|
+
const { ref: n, refs: o, required: l, maxLength: f, minLength: d, min: u, max: m, pattern: p, validate: y, name: g, valueAsNumber: V, mount: b, disabled: _ } = e._f, I = R(s, g);
|
|
2804
2802
|
if (!b || _)
|
|
2805
2803
|
return {};
|
|
2806
|
-
const
|
|
2807
|
-
r &&
|
|
2808
|
-
}, N = {}, H = Ts(n),
|
|
2804
|
+
const F = o ? o[0] : n, C = (A) => {
|
|
2805
|
+
r && F.reportValidity && (F.setCustomValidity(Me(A) ? "" : A || ""), F.reportValidity());
|
|
2806
|
+
}, N = {}, H = Ts(n), M = Et(n), B = H || M, U = (V || Cs(n)) && fe(n.value) && fe(I) || jt(n) && n.value === "" || I === "" || Array.isArray(I) && !I.length, W = Ia.bind(null, g, t, N), q = (A, x, D, E = je.maxLength, O = je.minLength) => {
|
|
2809
2807
|
const P = A ? x : D;
|
|
2810
2808
|
N[g] = {
|
|
2811
2809
|
type: A ? E : O,
|
|
@@ -2814,71 +2812,71 @@ var ht = (e) => he(e) && !Qt(e) ? e : {
|
|
|
2814
2812
|
...W(A ? E : O, P)
|
|
2815
2813
|
};
|
|
2816
2814
|
};
|
|
2817
|
-
if (i ? !Array.isArray(
|
|
2815
|
+
if (i ? !Array.isArray(I) || !I.length : l && (!B && (U || Fe(I)) || Me(I) && !I || M && !Xr(o).isValid || H && !Jr(o).isValid)) {
|
|
2818
2816
|
const { value: A, message: x } = Ot(l) ? { value: !!l, message: l } : ht(l);
|
|
2819
2817
|
if (A && (N[g] = {
|
|
2820
2818
|
type: je.required,
|
|
2821
2819
|
message: x,
|
|
2822
|
-
ref:
|
|
2820
|
+
ref: F,
|
|
2823
2821
|
...W(je.required, x)
|
|
2824
2822
|
}, !t))
|
|
2825
|
-
return
|
|
2823
|
+
return C(x), N;
|
|
2826
2824
|
}
|
|
2827
2825
|
if (!U && (!Fe(u) || !Fe(m))) {
|
|
2828
2826
|
let A, x;
|
|
2829
2827
|
const D = ht(m), E = ht(u);
|
|
2830
|
-
if (!Fe(
|
|
2831
|
-
const O = n.valueAsNumber ||
|
|
2828
|
+
if (!Fe(I) && !isNaN(I)) {
|
|
2829
|
+
const O = n.valueAsNumber || I && +I;
|
|
2832
2830
|
Fe(D.value) || (A = O > D.value), Fe(E.value) || (x = O < E.value);
|
|
2833
2831
|
} else {
|
|
2834
|
-
const O = n.valueAsDate || new Date(
|
|
2835
|
-
qe(D.value) &&
|
|
2832
|
+
const O = n.valueAsDate || new Date(I), P = (Y) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Y), Q = n.type == "time", J = n.type == "week";
|
|
2833
|
+
qe(D.value) && I && (A = Q ? P(I) > P(D.value) : J ? I > D.value : O > new Date(D.value)), qe(E.value) && I && (x = Q ? P(I) < P(E.value) : J ? I < E.value : O < new Date(E.value));
|
|
2836
2834
|
}
|
|
2837
2835
|
if ((A || x) && (q(!!A, D.message, E.message, je.max, je.min), !t))
|
|
2838
|
-
return
|
|
2836
|
+
return C(N[g].message), N;
|
|
2839
2837
|
}
|
|
2840
|
-
if ((f || d) && !U && (qe(
|
|
2841
|
-
const A = ht(f), x = ht(d), D = !Fe(A.value) &&
|
|
2838
|
+
if ((f || d) && !U && (qe(I) || i && Array.isArray(I))) {
|
|
2839
|
+
const A = ht(f), x = ht(d), D = !Fe(A.value) && I.length > +A.value, E = !Fe(x.value) && I.length < +x.value;
|
|
2842
2840
|
if ((D || E) && (q(D, A.message, x.message), !t))
|
|
2843
|
-
return
|
|
2841
|
+
return C(N[g].message), N;
|
|
2844
2842
|
}
|
|
2845
|
-
if (p && !U && qe(
|
|
2843
|
+
if (p && !U && qe(I)) {
|
|
2846
2844
|
const { value: A, message: x } = ht(p);
|
|
2847
|
-
if (Qt(A) && !
|
|
2845
|
+
if (Qt(A) && !I.match(A) && (N[g] = {
|
|
2848
2846
|
type: je.pattern,
|
|
2849
2847
|
message: x,
|
|
2850
2848
|
ref: n,
|
|
2851
2849
|
...W(je.pattern, x)
|
|
2852
2850
|
}, !t))
|
|
2853
|
-
return
|
|
2851
|
+
return C(x), N;
|
|
2854
2852
|
}
|
|
2855
2853
|
if (y) {
|
|
2856
2854
|
if (Ke(y)) {
|
|
2857
|
-
const A = await y(
|
|
2855
|
+
const A = await y(I, s), x = tr(A, F);
|
|
2858
2856
|
if (x && (N[g] = {
|
|
2859
2857
|
...x,
|
|
2860
2858
|
...W(je.validate, x.message)
|
|
2861
2859
|
}, !t))
|
|
2862
|
-
return
|
|
2860
|
+
return C(x.message), N;
|
|
2863
2861
|
} else if (he(y)) {
|
|
2864
2862
|
let A = {};
|
|
2865
2863
|
for (const x in y) {
|
|
2866
2864
|
if (!Re(A) && !t)
|
|
2867
2865
|
break;
|
|
2868
|
-
const D = tr(await y[x](
|
|
2866
|
+
const D = tr(await y[x](I, s), F, x);
|
|
2869
2867
|
D && (A = {
|
|
2870
2868
|
...D,
|
|
2871
2869
|
...W(x, D.message)
|
|
2872
|
-
},
|
|
2870
|
+
}, C(D.message), t && (N[g] = A));
|
|
2873
2871
|
}
|
|
2874
2872
|
if (!Re(A) && (N[g] = {
|
|
2875
|
-
ref:
|
|
2873
|
+
ref: F,
|
|
2876
2874
|
...A
|
|
2877
2875
|
}, !t))
|
|
2878
2876
|
return N;
|
|
2879
2877
|
}
|
|
2880
2878
|
}
|
|
2881
|
-
return
|
|
2879
|
+
return C(!0), N;
|
|
2882
2880
|
};
|
|
2883
2881
|
function Fa(e, s) {
|
|
2884
2882
|
const t = s.slice(0, -1).length;
|
|
@@ -3063,19 +3061,19 @@ function Ta(e = {}) {
|
|
|
3063
3061
|
validatingFields: t.validatingFields,
|
|
3064
3062
|
isValidating: !Re(t.validatingFields)
|
|
3065
3063
|
}));
|
|
3066
|
-
},
|
|
3067
|
-
if (
|
|
3068
|
-
if (o.action = !0,
|
|
3069
|
-
const z = v(R(r, c),
|
|
3070
|
-
|
|
3064
|
+
}, I = (c, h = [], v, w, S = !0, k = !0) => {
|
|
3065
|
+
if (w && v && !e.disabled) {
|
|
3066
|
+
if (o.action = !0, k && Array.isArray(R(r, c))) {
|
|
3067
|
+
const z = v(R(r, c), w.argA, w.argB);
|
|
3068
|
+
S && se(r, c, z);
|
|
3071
3069
|
}
|
|
3072
|
-
if (
|
|
3073
|
-
const z = v(R(t.errors, c),
|
|
3074
|
-
|
|
3070
|
+
if (k && Array.isArray(R(t.errors, c))) {
|
|
3071
|
+
const z = v(R(t.errors, c), w.argA, w.argB);
|
|
3072
|
+
S && se(t.errors, c, z), Ma(t.errors, c);
|
|
3075
3073
|
}
|
|
3076
|
-
if (u.touchedFields &&
|
|
3077
|
-
const z = v(R(t.touchedFields, c),
|
|
3078
|
-
|
|
3074
|
+
if (u.touchedFields && k && Array.isArray(R(t.touchedFields, c))) {
|
|
3075
|
+
const z = v(R(t.touchedFields, c), w.argA, w.argB);
|
|
3076
|
+
S && se(t.touchedFields, c, z);
|
|
3079
3077
|
}
|
|
3080
3078
|
u.dirtyFields && (t.dirtyFields = kt(i, n)), m.state.next({
|
|
3081
3079
|
name: c,
|
|
@@ -3086,46 +3084,46 @@ function Ta(e = {}) {
|
|
|
3086
3084
|
});
|
|
3087
3085
|
} else
|
|
3088
3086
|
se(n, c, h);
|
|
3089
|
-
},
|
|
3087
|
+
}, F = (c, h) => {
|
|
3090
3088
|
se(t.errors, c, h), m.state.next({
|
|
3091
3089
|
errors: t.errors
|
|
3092
3090
|
});
|
|
3093
|
-
},
|
|
3091
|
+
}, C = (c) => {
|
|
3094
3092
|
t.errors = c, m.state.next({
|
|
3095
3093
|
errors: t.errors,
|
|
3096
3094
|
isValid: !1
|
|
3097
3095
|
});
|
|
3098
|
-
}, N = (c, h, v,
|
|
3099
|
-
const
|
|
3100
|
-
if (
|
|
3101
|
-
const
|
|
3102
|
-
fe(
|
|
3096
|
+
}, N = (c, h, v, w) => {
|
|
3097
|
+
const S = R(r, c);
|
|
3098
|
+
if (S) {
|
|
3099
|
+
const k = R(n, c, fe(v) ? R(i, c) : v);
|
|
3100
|
+
fe(k) || w && w.defaultChecked || h ? se(n, c, h ? k : fs(S._f)) : E(c, k), o.mount && b();
|
|
3103
3101
|
}
|
|
3104
|
-
}, H = (c, h, v,
|
|
3105
|
-
let
|
|
3102
|
+
}, H = (c, h, v, w, S) => {
|
|
3103
|
+
let k = !1, z = !1;
|
|
3106
3104
|
const j = {
|
|
3107
3105
|
name: c
|
|
3108
3106
|
};
|
|
3109
3107
|
if (!e.disabled) {
|
|
3110
3108
|
const be = !!(R(r, c) && R(r, c)._f && R(r, c)._f.disabled);
|
|
3111
|
-
if (!v ||
|
|
3112
|
-
u.isDirty && (z = t.isDirty, t.isDirty = j.isDirty = A(),
|
|
3113
|
-
const
|
|
3114
|
-
z = !!(!be && R(t.dirtyFields, c)),
|
|
3109
|
+
if (!v || w) {
|
|
3110
|
+
u.isDirty && (z = t.isDirty, t.isDirty = j.isDirty = A(), k = z !== j.isDirty);
|
|
3111
|
+
const _e = be || st(R(i, c), h);
|
|
3112
|
+
z = !!(!be && R(t.dirtyFields, c)), _e || be ? ye(t.dirtyFields, c) : se(t.dirtyFields, c, !0), j.dirtyFields = t.dirtyFields, k = k || u.dirtyFields && z !== !_e;
|
|
3115
3113
|
}
|
|
3116
3114
|
if (v) {
|
|
3117
|
-
const
|
|
3118
|
-
|
|
3115
|
+
const _e = R(t.touchedFields, c);
|
|
3116
|
+
_e || (se(t.touchedFields, c, v), j.touchedFields = t.touchedFields, k = k || u.touchedFields && _e !== v);
|
|
3119
3117
|
}
|
|
3120
|
-
|
|
3118
|
+
k && S && m.state.next(j);
|
|
3121
3119
|
}
|
|
3122
|
-
return
|
|
3123
|
-
},
|
|
3124
|
-
const
|
|
3125
|
-
if (e.delayError && v ? (f = V(() =>
|
|
3120
|
+
return k ? j : {};
|
|
3121
|
+
}, M = (c, h, v, w) => {
|
|
3122
|
+
const S = R(t.errors, c), k = u.isValid && Me(h) && t.isValid !== h;
|
|
3123
|
+
if (e.delayError && v ? (f = V(() => F(c, v)), f(e.delayError)) : (clearTimeout(d), f = null, v ? se(t.errors, c, v) : ye(t.errors, c)), (v ? !st(S, v) : S) || !Re(w) || k) {
|
|
3126
3124
|
const z = {
|
|
3127
|
-
...
|
|
3128
|
-
...
|
|
3125
|
+
...w,
|
|
3126
|
+
...k && Me(h) ? { isValid: h } : {},
|
|
3129
3127
|
errors: t.errors,
|
|
3130
3128
|
name: c
|
|
3131
3129
|
};
|
|
@@ -3142,8 +3140,8 @@ function Ta(e = {}) {
|
|
|
3142
3140
|
const { errors: h } = await B(c);
|
|
3143
3141
|
if (c)
|
|
3144
3142
|
for (const v of c) {
|
|
3145
|
-
const
|
|
3146
|
-
|
|
3143
|
+
const w = R(h, v);
|
|
3144
|
+
w ? se(t.errors, v, w) : ye(t.errors, v);
|
|
3147
3145
|
}
|
|
3148
3146
|
else
|
|
3149
3147
|
t.errors = h;
|
|
@@ -3151,17 +3149,17 @@ function Ta(e = {}) {
|
|
|
3151
3149
|
}, W = async (c, h, v = {
|
|
3152
3150
|
valid: !0
|
|
3153
3151
|
}) => {
|
|
3154
|
-
for (const
|
|
3155
|
-
const
|
|
3156
|
-
if (
|
|
3157
|
-
const { _f:
|
|
3158
|
-
if (
|
|
3159
|
-
const j = l.array.has(
|
|
3160
|
-
be && u.validatingFields && _([
|
|
3161
|
-
const
|
|
3162
|
-
if (be && u.validatingFields && _([
|
|
3152
|
+
for (const w in c) {
|
|
3153
|
+
const S = c[w];
|
|
3154
|
+
if (S) {
|
|
3155
|
+
const { _f: k, ...z } = S;
|
|
3156
|
+
if (k) {
|
|
3157
|
+
const j = l.array.has(k.name), be = S._f && Ra(S._f);
|
|
3158
|
+
be && u.validatingFields && _([w], !0);
|
|
3159
|
+
const _e = await sr(S, n, g, s.shouldUseNativeValidation && !h, j);
|
|
3160
|
+
if (be && u.validatingFields && _([w]), _e[k.name] && (v.valid = !1, h))
|
|
3163
3161
|
break;
|
|
3164
|
-
!h && (R(
|
|
3162
|
+
!h && (R(_e, k.name) ? j ? ka(t.errors, _e, k.name) : se(t.errors, k.name, _e[k.name]) : ye(t.errors, k.name));
|
|
3165
3163
|
}
|
|
3166
3164
|
!Re(z) && await W(z, h, v);
|
|
3167
3165
|
}
|
|
@@ -3176,46 +3174,46 @@ function Ta(e = {}) {
|
|
|
3176
3174
|
}, A = (c, h) => !e.disabled && (c && h && se(n, c, h), !st(K(), i)), x = (c, h, v) => Kr(c, l, {
|
|
3177
3175
|
...o.mount ? n : fe(h) ? i : qe(c) ? { [c]: h } : h
|
|
3178
3176
|
}, v, h), D = (c) => es(R(o.mount ? n : i, c, e.shouldUnregister ? R(i, c, []) : [])), E = (c, h, v = {}) => {
|
|
3179
|
-
const
|
|
3180
|
-
let
|
|
3181
|
-
if (
|
|
3182
|
-
const
|
|
3183
|
-
|
|
3177
|
+
const w = R(r, c);
|
|
3178
|
+
let S = h;
|
|
3179
|
+
if (w) {
|
|
3180
|
+
const k = w._f;
|
|
3181
|
+
k && (!k.disabled && se(n, c, tn(h, k)), S = jt(k.ref) && Fe(h) ? "" : h, Zr(k.ref) ? [...k.ref.options].forEach((z) => z.selected = S.includes(z.value)) : k.refs ? Et(k.ref) ? k.refs.length > 1 ? k.refs.forEach((z) => (!z.defaultChecked || !z.disabled) && (z.checked = Array.isArray(S) ? !!S.find((j) => j === z.value) : S === z.value)) : k.refs[0] && (k.refs[0].checked = !!S) : k.refs.forEach((z) => z.checked = z.value === S) : Cs(k.ref) ? k.ref.value = "" : (k.ref.value = S, k.ref.type || m.values.next({
|
|
3184
3182
|
name: c,
|
|
3185
3183
|
values: { ...n }
|
|
3186
3184
|
})));
|
|
3187
3185
|
}
|
|
3188
|
-
(v.shouldDirty || v.shouldTouch) && H(c,
|
|
3186
|
+
(v.shouldDirty || v.shouldTouch) && H(c, S, v.shouldTouch, v.shouldDirty, !0), v.shouldValidate && Y(c);
|
|
3189
3187
|
}, O = (c, h, v) => {
|
|
3190
|
-
for (const
|
|
3191
|
-
const
|
|
3192
|
-
(l.array.has(c) || he(
|
|
3188
|
+
for (const w in h) {
|
|
3189
|
+
const S = h[w], k = `${c}.${w}`, z = R(r, k);
|
|
3190
|
+
(l.array.has(c) || he(S) || z && !z._f) && !ut(S) ? O(k, S, v) : E(k, S, v);
|
|
3193
3191
|
}
|
|
3194
3192
|
}, P = (c, h, v = {}) => {
|
|
3195
|
-
const
|
|
3196
|
-
se(n, c,
|
|
3193
|
+
const w = R(r, c), S = l.array.has(c), k = Ve(h);
|
|
3194
|
+
se(n, c, k), S ? (m.array.next({
|
|
3197
3195
|
name: c,
|
|
3198
3196
|
values: { ...n }
|
|
3199
3197
|
}), (u.isDirty || u.dirtyFields) && v.shouldDirty && m.state.next({
|
|
3200
3198
|
name: c,
|
|
3201
3199
|
dirtyFields: kt(i, n),
|
|
3202
|
-
isDirty: A(c,
|
|
3203
|
-
})) :
|
|
3200
|
+
isDirty: A(c, k)
|
|
3201
|
+
})) : w && !w._f && !Fe(k) ? O(c, k, v) : E(c, k, v), Js(c, l) && m.state.next({ ...t }), m.values.next({
|
|
3204
3202
|
name: o.mount ? c : void 0,
|
|
3205
3203
|
values: { ...n }
|
|
3206
3204
|
});
|
|
3207
3205
|
}, Q = async (c) => {
|
|
3208
3206
|
o.mount = !0;
|
|
3209
3207
|
const h = c.target;
|
|
3210
|
-
let v = h.name,
|
|
3211
|
-
const
|
|
3212
|
-
|
|
3208
|
+
let v = h.name, w = !0;
|
|
3209
|
+
const S = R(r, v), k = () => h.type ? fs(S._f) : Hr(c), z = (j) => {
|
|
3210
|
+
w = Number.isNaN(j) || ut(j) && isNaN(j.getTime()) || st(j, R(n, v, j));
|
|
3213
3211
|
};
|
|
3214
|
-
if (
|
|
3212
|
+
if (S) {
|
|
3215
3213
|
let j, be;
|
|
3216
|
-
const
|
|
3217
|
-
se(n, v,
|
|
3218
|
-
const ns = H(v,
|
|
3214
|
+
const _e = k(), at = c.type === Pt.BLUR || c.type === Pt.FOCUS_OUT, un = !La(S._f) && !s.resolver && !R(t.errors, v) && !S._f.deps || Da(at, R(t.touchedFields, v), t.isSubmitted, y, p), rs = Js(v, l, at);
|
|
3215
|
+
se(n, v, _e), at ? (S._f.onBlur && S._f.onBlur(c), f && f(0)) : S._f.onChange && S._f.onChange(c);
|
|
3216
|
+
const ns = H(v, _e, at, !1), fn = !Re(ns) || rs;
|
|
3219
3217
|
if (!at && m.values.next({
|
|
3220
3218
|
name: v,
|
|
3221
3219
|
type: c.type,
|
|
@@ -3224,32 +3222,32 @@ function Ta(e = {}) {
|
|
|
3224
3222
|
return u.isValid && (e.mode === "onBlur" ? at && b() : b()), fn && m.state.next({ name: v, ...rs ? {} : ns });
|
|
3225
3223
|
if (!at && rs && m.state.next({ ...t }), s.resolver) {
|
|
3226
3224
|
const { errors: zs } = await B([v]);
|
|
3227
|
-
if (z(
|
|
3225
|
+
if (z(_e), w) {
|
|
3228
3226
|
const mn = nr(t.errors, r, v), Bs = nr(zs, r, mn.name || v);
|
|
3229
3227
|
j = Bs.error, v = Bs.name, be = Re(zs);
|
|
3230
3228
|
}
|
|
3231
3229
|
} else
|
|
3232
|
-
_([v], !0), j = (await sr(
|
|
3233
|
-
|
|
3230
|
+
_([v], !0), j = (await sr(S, n, g, s.shouldUseNativeValidation))[v], _([v]), z(_e), w && (j ? be = !1 : u.isValid && (be = await W(r, !0)));
|
|
3231
|
+
w && (S._f.deps && Y(S._f.deps), M(v, be, j, ns));
|
|
3234
3232
|
}
|
|
3235
3233
|
}, J = (c, h) => {
|
|
3236
3234
|
if (R(t.errors, h) && c.focus)
|
|
3237
3235
|
return c.focus(), 1;
|
|
3238
3236
|
}, Y = async (c, h = {}) => {
|
|
3239
|
-
let v,
|
|
3240
|
-
const
|
|
3237
|
+
let v, w;
|
|
3238
|
+
const S = Vt(c);
|
|
3241
3239
|
if (s.resolver) {
|
|
3242
|
-
const
|
|
3243
|
-
v = Re(
|
|
3244
|
-
} else c ? (
|
|
3245
|
-
const z = R(r,
|
|
3246
|
-
return await W(z && z._f ? { [
|
|
3247
|
-
}))).every(Boolean), !(!
|
|
3240
|
+
const k = await U(fe(c) ? c : S);
|
|
3241
|
+
v = Re(k), w = c ? !S.some((z) => R(k, z)) : v;
|
|
3242
|
+
} else c ? (w = (await Promise.all(S.map(async (k) => {
|
|
3243
|
+
const z = R(r, k);
|
|
3244
|
+
return await W(z && z._f ? { [k]: z } : z);
|
|
3245
|
+
}))).every(Boolean), !(!w && !t.isValid) && b()) : w = v = await W(r);
|
|
3248
3246
|
return m.state.next({
|
|
3249
3247
|
...!qe(c) || u.isValid && v !== t.isValid ? {} : { name: c },
|
|
3250
3248
|
...s.resolver || !c ? { isValid: v } : {},
|
|
3251
3249
|
errors: t.errors
|
|
3252
|
-
}), h.shouldFocus && !
|
|
3250
|
+
}), h.shouldFocus && !w && Rt(r, J, c ? S : l.mount), w;
|
|
3253
3251
|
}, K = (c) => {
|
|
3254
3252
|
const h = {
|
|
3255
3253
|
...o.mount ? n : i
|
|
@@ -3266,16 +3264,16 @@ function Ta(e = {}) {
|
|
|
3266
3264
|
errors: c ? t.errors : {}
|
|
3267
3265
|
});
|
|
3268
3266
|
}, le = (c, h, v) => {
|
|
3269
|
-
const
|
|
3267
|
+
const w = (R(r, c, { _f: {} })._f || {}).ref, S = R(t.errors, c) || {}, { ref: k, message: z, type: j, ...be } = S;
|
|
3270
3268
|
se(t.errors, c, {
|
|
3271
3269
|
...be,
|
|
3272
3270
|
...h,
|
|
3273
|
-
ref:
|
|
3271
|
+
ref: w
|
|
3274
3272
|
}), m.state.next({
|
|
3275
3273
|
name: c,
|
|
3276
3274
|
errors: t.errors,
|
|
3277
3275
|
isValid: !1
|
|
3278
|
-
}), v && v.shouldFocus &&
|
|
3276
|
+
}), v && v.shouldFocus && w && w.focus && w.focus();
|
|
3279
3277
|
}, ve = (c, h) => Ke(c) ? m.values.subscribe({
|
|
3280
3278
|
next: (v) => c(x(void 0, h), v)
|
|
3281
3279
|
}) : x(c, h, !0), ne = (c, h = {}) => {
|
|
@@ -3287,14 +3285,14 @@ function Ta(e = {}) {
|
|
|
3287
3285
|
...t,
|
|
3288
3286
|
...h.keepDirty ? { isDirty: A() } : {}
|
|
3289
3287
|
}), !h.keepIsValid && b();
|
|
3290
|
-
}, ce = ({ disabled: c, name: h, field: v, fields:
|
|
3288
|
+
}, ce = ({ disabled: c, name: h, field: v, fields: w, value: S }) => {
|
|
3291
3289
|
if (Me(c) && o.mount || c) {
|
|
3292
|
-
const
|
|
3293
|
-
se(n, h,
|
|
3290
|
+
const k = c ? void 0 : fe(S) ? fs(v ? v._f : R(w, h)._f) : S;
|
|
3291
|
+
se(n, h, k), H(h, k, !1, !1, !0);
|
|
3294
3292
|
}
|
|
3295
3293
|
}, de = (c, h = {}) => {
|
|
3296
3294
|
let v = R(r, c);
|
|
3297
|
-
const
|
|
3295
|
+
const w = Me(h.disabled) || Me(e.disabled);
|
|
3298
3296
|
return se(r, c, {
|
|
3299
3297
|
...v || {},
|
|
3300
3298
|
_f: {
|
|
@@ -3309,7 +3307,7 @@ function Ta(e = {}) {
|
|
|
3309
3307
|
name: c,
|
|
3310
3308
|
value: h.value
|
|
3311
3309
|
}) : N(c, !0, h.value), {
|
|
3312
|
-
...
|
|
3310
|
+
...w ? { disabled: h.disabled || e.disabled } : {},
|
|
3313
3311
|
...s.progressive ? {
|
|
3314
3312
|
required: !!h.required,
|
|
3315
3313
|
min: Ft(h.min),
|
|
@@ -3321,11 +3319,11 @@ function Ta(e = {}) {
|
|
|
3321
3319
|
name: c,
|
|
3322
3320
|
onChange: Q,
|
|
3323
3321
|
onBlur: Q,
|
|
3324
|
-
ref: (
|
|
3325
|
-
if (
|
|
3322
|
+
ref: (S) => {
|
|
3323
|
+
if (S) {
|
|
3326
3324
|
de(c, h), v = R(r, c);
|
|
3327
|
-
const
|
|
3328
|
-
if (z ? j.find((be) => be ===
|
|
3325
|
+
const k = fe(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, z = $a(k), j = v._f.refs || [];
|
|
3326
|
+
if (z ? j.find((be) => be === k) : k === v._f.ref)
|
|
3329
3327
|
return;
|
|
3330
3328
|
se(r, c, {
|
|
3331
3329
|
_f: {
|
|
@@ -3333,33 +3331,33 @@ function Ta(e = {}) {
|
|
|
3333
3331
|
...z ? {
|
|
3334
3332
|
refs: [
|
|
3335
3333
|
...j.filter(us),
|
|
3336
|
-
|
|
3334
|
+
k,
|
|
3337
3335
|
...Array.isArray(R(i, c)) ? [{}] : []
|
|
3338
3336
|
],
|
|
3339
|
-
ref: { type:
|
|
3340
|
-
} : { ref:
|
|
3337
|
+
ref: { type: k.type, name: c }
|
|
3338
|
+
} : { ref: k }
|
|
3341
3339
|
}
|
|
3342
|
-
}), N(c, !1, void 0,
|
|
3340
|
+
}), N(c, !1, void 0, k);
|
|
3343
3341
|
} else
|
|
3344
3342
|
v = R(r, c, {}), v._f && (v._f.mount = !1), (s.shouldUnregister || h.shouldUnregister) && !(Ur(l.array, c) && o.action) && l.unMount.add(c);
|
|
3345
3343
|
}
|
|
3346
3344
|
};
|
|
3347
3345
|
}, oe = () => s.shouldFocusError && Rt(r, J, l.mount), ue = (c) => {
|
|
3348
3346
|
Me(c) && (m.state.next({ disabled: c }), Rt(r, (h, v) => {
|
|
3349
|
-
const
|
|
3350
|
-
|
|
3351
|
-
|
|
3347
|
+
const w = R(r, v);
|
|
3348
|
+
w && (h.disabled = w._f.disabled || c, Array.isArray(w._f.refs) && w._f.refs.forEach((S) => {
|
|
3349
|
+
S.disabled = w._f.disabled || c;
|
|
3352
3350
|
}));
|
|
3353
3351
|
}, 0, !1));
|
|
3354
3352
|
}, De = (c, h) => async (v) => {
|
|
3355
|
-
let
|
|
3353
|
+
let w;
|
|
3356
3354
|
v && (v.preventDefault && v.preventDefault(), v.persist && v.persist());
|
|
3357
|
-
let
|
|
3355
|
+
let S = Ve(n);
|
|
3358
3356
|
if (m.state.next({
|
|
3359
3357
|
isSubmitting: !0
|
|
3360
3358
|
}), s.resolver) {
|
|
3361
|
-
const { errors:
|
|
3362
|
-
t.errors =
|
|
3359
|
+
const { errors: k, values: z } = await B();
|
|
3360
|
+
t.errors = k, S = z;
|
|
3363
3361
|
} else
|
|
3364
3362
|
await W(r);
|
|
3365
3363
|
if (ye(t.errors, "root"), Re(t.errors)) {
|
|
@@ -3367,24 +3365,24 @@ function Ta(e = {}) {
|
|
|
3367
3365
|
errors: {}
|
|
3368
3366
|
});
|
|
3369
3367
|
try {
|
|
3370
|
-
await c(
|
|
3371
|
-
} catch (
|
|
3372
|
-
|
|
3368
|
+
await c(S, v);
|
|
3369
|
+
} catch (k) {
|
|
3370
|
+
w = k;
|
|
3373
3371
|
}
|
|
3374
3372
|
} else
|
|
3375
3373
|
h && await h({ ...t.errors }, v), oe(), setTimeout(oe);
|
|
3376
3374
|
if (m.state.next({
|
|
3377
3375
|
isSubmitted: !0,
|
|
3378
3376
|
isSubmitting: !1,
|
|
3379
|
-
isSubmitSuccessful: Re(t.errors) && !
|
|
3377
|
+
isSubmitSuccessful: Re(t.errors) && !w,
|
|
3380
3378
|
submitCount: t.submitCount + 1,
|
|
3381
3379
|
errors: t.errors
|
|
3382
|
-
}),
|
|
3383
|
-
throw
|
|
3380
|
+
}), w)
|
|
3381
|
+
throw w;
|
|
3384
3382
|
}, ge = (c, h = {}) => {
|
|
3385
3383
|
R(r, c) && (fe(h.defaultValue) ? P(c, Ve(R(i, c))) : (P(c, h.defaultValue), se(i, c, Ve(h.defaultValue))), h.keepTouched || ye(t.touchedFields, c), h.keepDirty || (ye(t.dirtyFields, c), t.isDirty = h.defaultValue ? A(c, Ve(R(i, c))) : A()), h.keepError || (ye(t.errors, c), u.isValid && b()), m.state.next({ ...t }));
|
|
3386
3384
|
}, Ne = (c, h = {}) => {
|
|
3387
|
-
const v = c ? Ve(c) : i,
|
|
3385
|
+
const v = c ? Ve(c) : i, w = Ve(v), S = Re(c), k = S ? i : w;
|
|
3388
3386
|
if (h.keepDefaultValues || (i = v), !h.keepValues) {
|
|
3389
3387
|
if (h.keepDirtyValues) {
|
|
3390
3388
|
const z = /* @__PURE__ */ new Set([
|
|
@@ -3392,7 +3390,7 @@ function Ta(e = {}) {
|
|
|
3392
3390
|
...Object.keys(kt(i, n))
|
|
3393
3391
|
]);
|
|
3394
3392
|
for (const j of Array.from(z))
|
|
3395
|
-
R(t.dirtyFields, j) ? se(
|
|
3393
|
+
R(t.dirtyFields, j) ? se(k, j, R(n, j)) : P(j, R(k, j));
|
|
3396
3394
|
} else {
|
|
3397
3395
|
if (Ls && fe(c))
|
|
3398
3396
|
for (const z of l.mount) {
|
|
@@ -3400,9 +3398,9 @@ function Ta(e = {}) {
|
|
|
3400
3398
|
if (j && j._f) {
|
|
3401
3399
|
const be = Array.isArray(j._f.refs) ? j._f.refs[0] : j._f.ref;
|
|
3402
3400
|
if (jt(be)) {
|
|
3403
|
-
const
|
|
3404
|
-
if (
|
|
3405
|
-
|
|
3401
|
+
const _e = be.closest("form");
|
|
3402
|
+
if (_e) {
|
|
3403
|
+
_e.reset();
|
|
3406
3404
|
break;
|
|
3407
3405
|
}
|
|
3408
3406
|
}
|
|
@@ -3410,10 +3408,10 @@ function Ta(e = {}) {
|
|
|
3410
3408
|
}
|
|
3411
3409
|
r = {};
|
|
3412
3410
|
}
|
|
3413
|
-
n = e.shouldUnregister ? h.keepDefaultValues ? Ve(i) : {} : Ve(
|
|
3414
|
-
values: { ...
|
|
3411
|
+
n = e.shouldUnregister ? h.keepDefaultValues ? Ve(i) : {} : Ve(k), m.array.next({
|
|
3412
|
+
values: { ...k }
|
|
3415
3413
|
}), m.values.next({
|
|
3416
|
-
values: { ...
|
|
3414
|
+
values: { ...k }
|
|
3417
3415
|
});
|
|
3418
3416
|
}
|
|
3419
3417
|
l = {
|
|
@@ -3425,9 +3423,9 @@ function Ta(e = {}) {
|
|
|
3425
3423
|
focus: ""
|
|
3426
3424
|
}, o.mount = !u.isValid || !!h.keepIsValid || !!h.keepDirtyValues, o.watch = !!e.shouldUnregister, m.state.next({
|
|
3427
3425
|
submitCount: h.keepSubmitCount ? t.submitCount : 0,
|
|
3428
|
-
isDirty:
|
|
3426
|
+
isDirty: S ? !1 : h.keepDirty ? t.isDirty : !!(h.keepDefaultValues && !st(c, i)),
|
|
3429
3427
|
isSubmitted: h.keepIsSubmitted ? t.isSubmitted : !1,
|
|
3430
|
-
dirtyFields:
|
|
3428
|
+
dirtyFields: S ? {} : h.keepDirtyValues ? h.keepDefaultValues && n ? kt(i, n) : t.dirtyFields : h.keepDefaultValues && c ? kt(i, c) : h.keepDirty ? t.dirtyFields : {},
|
|
3431
3429
|
touchedFields: h.keepTouched ? t.touchedFields : {},
|
|
3432
3430
|
errors: h.keepErrors ? t.errors : {},
|
|
3433
3431
|
isSubmitSuccessful: h.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
@@ -3446,7 +3444,7 @@ function Ta(e = {}) {
|
|
|
3446
3444
|
_getDirty: A,
|
|
3447
3445
|
_updateValid: b,
|
|
3448
3446
|
_removeUnmounted: q,
|
|
3449
|
-
_updateFieldArray:
|
|
3447
|
+
_updateFieldArray: I,
|
|
3450
3448
|
_updateDisabledField: ce,
|
|
3451
3449
|
_getFieldArray: D,
|
|
3452
3450
|
_reset: Ne,
|
|
@@ -3464,7 +3462,7 @@ function Ta(e = {}) {
|
|
|
3464
3462
|
_disableForm: ue,
|
|
3465
3463
|
_subjects: m,
|
|
3466
3464
|
_proxyFormState: u,
|
|
3467
|
-
_setErrors:
|
|
3465
|
+
_setErrors: C,
|
|
3468
3466
|
get _fields() {
|
|
3469
3467
|
return r;
|
|
3470
3468
|
},
|
|
@@ -3514,10 +3512,10 @@ function Ta(e = {}) {
|
|
|
3514
3512
|
unregister: ne,
|
|
3515
3513
|
setError: le,
|
|
3516
3514
|
setFocus: (c, h = {}) => {
|
|
3517
|
-
const v = R(r, c),
|
|
3518
|
-
if (
|
|
3519
|
-
const
|
|
3520
|
-
|
|
3515
|
+
const v = R(r, c), w = v && v._f;
|
|
3516
|
+
if (w) {
|
|
3517
|
+
const S = w.refs ? w.refs[0] : w.ref;
|
|
3518
|
+
S.focus && (S.focus(), h.shouldSelect && S.select());
|
|
3521
3519
|
}
|
|
3522
3520
|
},
|
|
3523
3521
|
getFieldState: pe
|
|
@@ -3588,7 +3586,7 @@ const Ea = "ids-form--alert-v5131", za = {
|
|
|
3588
3586
|
onError: m,
|
|
3589
3587
|
...p
|
|
3590
3588
|
}, y) => {
|
|
3591
|
-
const g = Oe({ id: p.id }), [V, b] = X({}), { handleSubmit: _, reset:
|
|
3589
|
+
const g = Oe({ id: p.id }), [V, b] = X({}), { handleSubmit: _, reset: I, formState: F } = o, { errors: C, isValid: N } = F, M = !!Object.values(C).length && !f, B = M || e, U = Ae(
|
|
3592
3590
|
(x) => {
|
|
3593
3591
|
_((D) => {
|
|
3594
3592
|
d == null || d(D);
|
|
@@ -3613,7 +3611,7 @@ const Ea = "ids-form--alert-v5131", za = {
|
|
|
3613
3611
|
element: (q == null ? void 0 : q.current) ?? void 0,
|
|
3614
3612
|
api: o,
|
|
3615
3613
|
submit: () => U(),
|
|
3616
|
-
reset: (x) =>
|
|
3614
|
+
reset: (x) => I(x)
|
|
3617
3615
|
})), te(() => {
|
|
3618
3616
|
u == null || u(N);
|
|
3619
3617
|
}, [N, u]);
|
|
@@ -3650,7 +3648,7 @@ const Ea = "ids-form--alert-v5131", za = {
|
|
|
3650
3648
|
[G.Hidden]: !B
|
|
3651
3649
|
}),
|
|
3652
3650
|
children: [
|
|
3653
|
-
|
|
3651
|
+
M ? /* @__PURE__ */ a(
|
|
3654
3652
|
Mt,
|
|
3655
3653
|
{
|
|
3656
3654
|
status: "danger",
|
|
@@ -3673,7 +3671,7 @@ const Ea = "ids-form--alert-v5131", za = {
|
|
|
3673
3671
|
"div",
|
|
3674
3672
|
{
|
|
3675
3673
|
className: $({
|
|
3676
|
-
[G.IgnoreStack]: !
|
|
3674
|
+
[G.IgnoreStack]: !M
|
|
3677
3675
|
}),
|
|
3678
3676
|
children: s
|
|
3679
3677
|
}
|
|
@@ -3809,11 +3807,11 @@ const qa = "ids-modal-v5131", Pa = "ids-modal--backdrop-v5131", ja = "ids-modal-
|
|
|
3809
3807
|
show: V,
|
|
3810
3808
|
size: b = "md",
|
|
3811
3809
|
static: _,
|
|
3812
|
-
style:
|
|
3813
|
-
...
|
|
3810
|
+
style: I,
|
|
3811
|
+
...F
|
|
3814
3812
|
}) => {
|
|
3815
|
-
const [
|
|
3816
|
-
|
|
3813
|
+
const [C, N] = X(n), H = me(240), M = Un(F.id), B = Oe({ id: F.id }), U = `${B}--heading`, W = M.opened || V || C, q = (Z) => {
|
|
3814
|
+
M.show(Z), N(Z), y == null || y(Z);
|
|
3817
3815
|
}, { context: A } = Is({
|
|
3818
3816
|
open: W,
|
|
3819
3817
|
onOpenChange: q
|
|
@@ -3826,10 +3824,10 @@ const qa = "ids-modal-v5131", Pa = "ids-modal--backdrop-v5131", ja = "ids-modal-
|
|
|
3826
3824
|
}
|
|
3827
3825
|
});
|
|
3828
3826
|
te(() => {
|
|
3829
|
-
|
|
3827
|
+
M.opened && V && Zt(
|
|
3830
3828
|
"IressModal: Please use either IressModalProvider for uncontrolled components, or the show prop for controlled components, rather than both. If you use both, the open state of the modal will become unpredictable. If you want to show a modal by default in uncontrolled mode, use the defaultShow prop."
|
|
3831
3829
|
);
|
|
3832
|
-
}, [
|
|
3830
|
+
}, [M.opened, V]), te(() => {
|
|
3833
3831
|
var Z, le, ve, ne;
|
|
3834
3832
|
P === "initial" && ((Z = A.refs.floating) != null && Z.current) && (H.current = $r(
|
|
3835
3833
|
((le = window.getComputedStyle(A.refs.floating.current, null)) == null ? void 0 : le.getPropertyValue("--iress-transition-duration")) || ".3s"
|
|
@@ -3855,9 +3853,9 @@ const qa = "ids-modal-v5131", Pa = "ids-modal--backdrop-v5131", ja = "ids-modal-
|
|
|
3855
3853
|
if (!O) return null;
|
|
3856
3854
|
const pe = {
|
|
3857
3855
|
position: "var(--iress-position, fixed)",
|
|
3858
|
-
...
|
|
3856
|
+
...I
|
|
3859
3857
|
};
|
|
3860
|
-
return /* @__PURE__ */ a(Ut, { root: r ?? (
|
|
3858
|
+
return /* @__PURE__ */ a(Ut, { root: r ?? (M == null ? void 0 : M.container), children: /* @__PURE__ */ a(
|
|
3861
3859
|
Fr,
|
|
3862
3860
|
{
|
|
3863
3861
|
className: $(
|
|
@@ -3887,7 +3885,7 @@ const qa = "ids-modal-v5131", Pa = "ids-modal--backdrop-v5131", ja = "ids-modal-
|
|
|
3887
3885
|
id: B,
|
|
3888
3886
|
"data-testid": i,
|
|
3889
3887
|
"aria-labelledby": K ? U : void 0,
|
|
3890
|
-
...E.getFloatingProps(
|
|
3888
|
+
...E.getFloatingProps(F),
|
|
3891
3889
|
children: [
|
|
3892
3890
|
!u && /* @__PURE__ */ a(
|
|
3893
3891
|
Tt,
|
|
@@ -4000,8 +3998,8 @@ const el = ({
|
|
|
4000
3998
|
"data-testid": p,
|
|
4001
3999
|
...y
|
|
4002
4000
|
}) => {
|
|
4003
|
-
const g = me(null), [V, b] = X(!1), [_,
|
|
4004
|
-
const x =
|
|
4001
|
+
const g = me(null), [V, b] = X(!1), [_, I] = X(!0), [F, C] = X(!0), [N, H] = X({}), M = Ae(() => {
|
|
4002
|
+
const x = F, D = {
|
|
4005
4003
|
xs: x,
|
|
4006
4004
|
sm: x,
|
|
4007
4005
|
md: x,
|
|
@@ -4013,13 +4011,13 @@ const el = ({
|
|
|
4013
4011
|
for (O in D)
|
|
4014
4012
|
E && (D[O] = !1), O === i && (E = !0);
|
|
4015
4013
|
H(D);
|
|
4016
|
-
}, [i,
|
|
4014
|
+
}, [i, F]);
|
|
4017
4015
|
te(() => {
|
|
4018
|
-
|
|
4016
|
+
M(), s && b(!0), u !== "" && d === "" && Zt(
|
|
4019
4017
|
"IressNavbar: You've supplied a logo but no alt text, which is a failure of WCAG Level A Success Criterion 1.1.1 - Non-text content. Set the logoAltText prop to add alt text to the logo.",
|
|
4020
4018
|
"warn"
|
|
4021
4019
|
);
|
|
4022
|
-
}, [
|
|
4020
|
+
}, [M, s, u, d]), te(() => (n && o && B(), () => {
|
|
4023
4021
|
document.removeEventListener(
|
|
4024
4022
|
"focus",
|
|
4025
4023
|
U.bind(g),
|
|
@@ -4042,7 +4040,7 @@ const el = ({
|
|
|
4042
4040
|
O < 0 && window.scrollBy(0, O);
|
|
4043
4041
|
}
|
|
4044
4042
|
}, W = () => {
|
|
4045
|
-
|
|
4043
|
+
C(!F), M();
|
|
4046
4044
|
}, A = (() => {
|
|
4047
4045
|
const x = ["xs", "sm", "md", "lg", "xl", "xxl"], E = x.indexOf(i) + 1;
|
|
4048
4046
|
return E >= x.length ? {} : {
|
|
@@ -4080,7 +4078,7 @@ const el = ({
|
|
|
4080
4078
|
),
|
|
4081
4079
|
"aria-label": "Toggle navigation",
|
|
4082
4080
|
"aria-controls": "iress-navbar__nav-slot",
|
|
4083
|
-
"aria-expanded": !
|
|
4081
|
+
"aria-expanded": !F,
|
|
4084
4082
|
children: /* @__PURE__ */ a(ae, { name: "bars", size: "2x" })
|
|
4085
4083
|
}
|
|
4086
4084
|
) }),
|
|
@@ -4092,7 +4090,7 @@ const el = ({
|
|
|
4092
4090
|
logoFound: _,
|
|
4093
4091
|
logoAltText: d,
|
|
4094
4092
|
dataTestid: p,
|
|
4095
|
-
onError: () =>
|
|
4093
|
+
onError: () => I(!1)
|
|
4096
4094
|
}
|
|
4097
4095
|
),
|
|
4098
4096
|
/* @__PURE__ */ L(
|
|
@@ -4167,9 +4165,9 @@ const sl = "ids-radio-v5131", rl = "ids-radio--input-v5131", nl = "ids-radio--la
|
|
|
4167
4165
|
touch: m,
|
|
4168
4166
|
...p
|
|
4169
4167
|
}, y) => {
|
|
4170
|
-
const g = Oe(p), V = gs(qn), b = !!V.onChange,
|
|
4168
|
+
const g = Oe(p), V = gs(qn), b = !!V.onChange, I = b ? V.value === u : e ?? i;
|
|
4171
4169
|
if (b ? V.readonly : f)
|
|
4172
|
-
return
|
|
4170
|
+
return I ? /* @__PURE__ */ a(
|
|
4173
4171
|
Je,
|
|
4174
4172
|
{
|
|
4175
4173
|
...p,
|
|
@@ -4178,7 +4176,7 @@ const sl = "ids-radio-v5131", rl = "ids-radio--input-v5131", nl = "ids-radio--la
|
|
|
4178
4176
|
children: s
|
|
4179
4177
|
}
|
|
4180
4178
|
) : null;
|
|
4181
|
-
const
|
|
4179
|
+
const C = V.name ?? o, N = V.hiddenRadio ?? n, H = V.required ?? d, M = V.touch ?? m;
|
|
4182
4180
|
return /* @__PURE__ */ L(
|
|
4183
4181
|
"div",
|
|
4184
4182
|
{
|
|
@@ -4186,7 +4184,7 @@ const sl = "ids-radio-v5131", rl = "ids-radio--input-v5131", nl = "ids-radio--la
|
|
|
4186
4184
|
className: $(t, {
|
|
4187
4185
|
[vt.radio]: !0,
|
|
4188
4186
|
[vt.hiddenControl]: N,
|
|
4189
|
-
[vt.touch]:
|
|
4187
|
+
[vt.touch]: M
|
|
4190
4188
|
}),
|
|
4191
4189
|
children: [
|
|
4192
4190
|
/* @__PURE__ */ a(
|
|
@@ -4195,7 +4193,7 @@ const sl = "ids-radio-v5131", rl = "ids-radio--input-v5131", nl = "ids-radio--la
|
|
|
4195
4193
|
...p,
|
|
4196
4194
|
type: "radio",
|
|
4197
4195
|
id: g,
|
|
4198
|
-
name:
|
|
4196
|
+
name: C,
|
|
4199
4197
|
ref: y,
|
|
4200
4198
|
className: vt.input,
|
|
4201
4199
|
"data-testid": T(r, "input"),
|
|
@@ -4204,7 +4202,7 @@ const sl = "ids-radio-v5131", rl = "ids-radio--input-v5131", nl = "ids-radio--la
|
|
|
4204
4202
|
l == null || l(B, u), (U = V.onChange) == null || U.call(V, B, u);
|
|
4205
4203
|
},
|
|
4206
4204
|
value: String(u),
|
|
4207
|
-
checked:
|
|
4205
|
+
checked: I,
|
|
4208
4206
|
required: H
|
|
4209
4207
|
}
|
|
4210
4208
|
),
|
|
@@ -4231,7 +4229,7 @@ const sl = "ids-radio-v5131", rl = "ids-radio--input-v5131", nl = "ids-radio--la
|
|
|
4231
4229
|
ws(
|
|
4232
4230
|
Nt.Gutter,
|
|
4233
4231
|
t,
|
|
4234
|
-
|
|
4232
|
+
_s.None
|
|
4235
4233
|
),
|
|
4236
4234
|
{
|
|
4237
4235
|
[Nt.Base]: !0,
|
|
@@ -4244,7 +4242,7 @@ const sl = "ids-radio-v5131", rl = "ids-radio--input-v5131", nl = "ids-radio--la
|
|
|
4244
4242
|
children: e
|
|
4245
4243
|
}
|
|
4246
4244
|
);
|
|
4247
|
-
ft.Gutter =
|
|
4245
|
+
ft.Gutter = _s;
|
|
4248
4246
|
ft.HorizontalAlign = vr;
|
|
4249
4247
|
ft.VerticalAlign = gr;
|
|
4250
4248
|
const Yt = (e) => Se(e).reduce(
|
|
@@ -4331,7 +4329,7 @@ const dl = ({
|
|
|
4331
4329
|
component: "IressSelect",
|
|
4332
4330
|
defaultValue: o
|
|
4333
4331
|
});
|
|
4334
|
-
const m = Oe(d), p = me(null), { value: y, setValue: g } =
|
|
4332
|
+
const m = Oe(d), p = me(null), { value: y, setValue: g } = _t({
|
|
4335
4333
|
component: "IressSelect",
|
|
4336
4334
|
defaultValue: o,
|
|
4337
4335
|
value: n
|
|
@@ -4500,14 +4498,14 @@ function gl(e = null, s, t = null) {
|
|
|
4500
4498
|
}
|
|
4501
4499
|
return e ? r.filter((i) => i.matches(e)) : r;
|
|
4502
4500
|
}
|
|
4503
|
-
const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131",
|
|
4501
|
+
const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131", _l = "ids-slideout--push-v5131", xl = "ids-slideout--unmounted-v5131", Sl = "ids-slideout--initial-v5131", Nl = "ids-slideout--close-v5131", wl = "ids-slideout--open-v5131", Il = "ids-slideout--right-v5131", kl = "ids-slideout--left-v5131", Fl = "ids-slideout--close-button-v5131", Al = "ids-slideout--content-v5131", $l = "ids-slideout--footer-v5131", We = {
|
|
4504
4502
|
slideout: yl,
|
|
4505
4503
|
backdrop: bl,
|
|
4506
|
-
push:
|
|
4504
|
+
push: _l,
|
|
4507
4505
|
"size--sm": "ids-slideout--size--sm-v5131",
|
|
4508
4506
|
"size--md": "ids-slideout--size--md-v5131",
|
|
4509
4507
|
"size--lg": "ids-slideout--size--lg-v5131",
|
|
4510
|
-
unmounted:
|
|
4508
|
+
unmounted: xl,
|
|
4511
4509
|
initial: Sl,
|
|
4512
4510
|
close: Nl,
|
|
4513
4511
|
open: wl,
|
|
@@ -4582,10 +4580,10 @@ const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131", xl = "ids-
|
|
|
4582
4580
|
position: V = "right",
|
|
4583
4581
|
show: b,
|
|
4584
4582
|
size: _ = "sm",
|
|
4585
|
-
style:
|
|
4586
|
-
...
|
|
4583
|
+
style: I,
|
|
4584
|
+
...F
|
|
4587
4585
|
}) => {
|
|
4588
|
-
const [
|
|
4586
|
+
const [C, N] = X(o), H = me(240), M = me(null), B = Xn(F.id), U = Oe({ id: F.id }), W = `${U}--heading`, q = B.opened || b || C, A = (K, pe, Z) => {
|
|
4589
4587
|
B.show(K), N(K), y == null || y(K, Z);
|
|
4590
4588
|
}, { context: x } = Is({
|
|
4591
4589
|
open: q,
|
|
@@ -4604,23 +4602,23 @@ const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131", xl = "ids-
|
|
|
4604
4602
|
);
|
|
4605
4603
|
}, [B.opened, b]), te(() => {
|
|
4606
4604
|
if (u === "overlay")
|
|
4607
|
-
|
|
4605
|
+
M.current = null;
|
|
4608
4606
|
else {
|
|
4609
4607
|
let K;
|
|
4610
|
-
typeof l == "string" ? K = ml(l) : l instanceof Element ? K = l : K = l == null ? void 0 : l.current,
|
|
4608
|
+
typeof l == "string" ? K = ml(l) : l instanceof Element ? K = l : K = l == null ? void 0 : l.current, M.current = K;
|
|
4611
4609
|
}
|
|
4612
4610
|
return () => {
|
|
4613
|
-
|
|
4611
|
+
M.current = null;
|
|
4614
4612
|
};
|
|
4615
4613
|
}, [l, u]), te(() => {
|
|
4616
4614
|
var K, pe, Z, le, ve, ne, ce, de;
|
|
4617
|
-
Q === "initial" && ((K =
|
|
4615
|
+
Q === "initial" && ((K = M == null ? void 0 : M.current) == null || K.classList.add(
|
|
4618
4616
|
et.slideoutPushElement,
|
|
4619
4617
|
et[V],
|
|
4620
4618
|
et[`size--${_}`]
|
|
4621
4619
|
), (pe = x.refs.floating) != null && pe.current && (H.current = $r(
|
|
4622
4620
|
((Z = window.getComputedStyle(x.refs.floating.current, null)) == null ? void 0 : Z.getPropertyValue("--iress-transition-duration")) || ".3s"
|
|
4623
|
-
))), Q === "open" && (m == null || m(), (ve = (le = x.refs.floating) == null ? void 0 : le.current) == null || ve.focus(), (ne =
|
|
4621
|
+
))), Q === "open" && (m == null || m(), (ve = (le = x.refs.floating) == null ? void 0 : le.current) == null || ve.focus(), (ne = M == null ? void 0 : M.current) == null || ne.classList.add(et.open)), Q === "close" && (p == null || p(), (ce = M == null ? void 0 : M.current) == null || ce.classList.remove(et.open)), Q === "unmounted" && ((de = M == null ? void 0 : M.current) == null || de.classList.remove(
|
|
4624
4622
|
et.slideoutPushElement,
|
|
4625
4623
|
et[V],
|
|
4626
4624
|
et[`size--${_}`]
|
|
@@ -4630,7 +4628,7 @@ const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131", xl = "ids-
|
|
|
4630
4628
|
m,
|
|
4631
4629
|
p,
|
|
4632
4630
|
x.refs.floating,
|
|
4633
|
-
|
|
4631
|
+
M,
|
|
4634
4632
|
V,
|
|
4635
4633
|
_
|
|
4636
4634
|
]);
|
|
@@ -4656,7 +4654,7 @@ const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131", xl = "ids-
|
|
|
4656
4654
|
We[`size--${_}`],
|
|
4657
4655
|
G.IgnoreStack,
|
|
4658
4656
|
{
|
|
4659
|
-
[We.push]: u === "push" &&
|
|
4657
|
+
[We.push]: u === "push" && M.current,
|
|
4660
4658
|
[`${t}`]: t && !e
|
|
4661
4659
|
}
|
|
4662
4660
|
),
|
|
@@ -4668,12 +4666,12 @@ const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131", xl = "ids-
|
|
|
4668
4666
|
id: U,
|
|
4669
4667
|
onOpenChange: A,
|
|
4670
4668
|
padding: g,
|
|
4671
|
-
...O.getFloatingProps(
|
|
4669
|
+
...O.getFloatingProps(F)
|
|
4672
4670
|
};
|
|
4673
4671
|
if (e) {
|
|
4674
4672
|
const K = {
|
|
4675
4673
|
position: "var(--iress-position, fixed)",
|
|
4676
|
-
...
|
|
4674
|
+
...I
|
|
4677
4675
|
};
|
|
4678
4676
|
return /* @__PURE__ */ a(Ut, { root: i ?? (B == null ? void 0 : B.container), children: /* @__PURE__ */ a(
|
|
4679
4677
|
Fr,
|
|
@@ -4702,7 +4700,7 @@ const yl = "ids-slideout-v5131", bl = "ids-slideout--backdrop-v5131", xl = "ids-
|
|
|
4702
4700
|
or,
|
|
4703
4701
|
{
|
|
4704
4702
|
...Y,
|
|
4705
|
-
style:
|
|
4703
|
+
style: I,
|
|
4706
4704
|
"data-testid": n
|
|
4707
4705
|
}
|
|
4708
4706
|
) });
|
|
@@ -4736,14 +4734,14 @@ const Ml = (e = 0, s = 10, t = 1) => {
|
|
|
4736
4734
|
});
|
|
4737
4735
|
const g = Oe({ id: p == null ? void 0 : p.id }), b = (typeof u == "boolean" ? Ml(o, n, d) : u ?? []).map(
|
|
4738
4736
|
(N) => typeof N == "number" ? { value: N } : N
|
|
4739
|
-
), { value: _, setValue:
|
|
4737
|
+
), { value: _, setValue: I } = _t({
|
|
4740
4738
|
component: "IressSlider",
|
|
4741
4739
|
defaultValue: m ? void 0 : s ?? o,
|
|
4742
4740
|
value: m
|
|
4743
|
-
}),
|
|
4741
|
+
}), F = Ae(() => {
|
|
4744
4742
|
const N = b == null ? void 0 : b.find((H) => H.value === _);
|
|
4745
4743
|
return r ? r(_ ?? 0, N, f) : (N == null ? void 0 : N.label) ?? _;
|
|
4746
|
-
}, [b, r, _, f]),
|
|
4744
|
+
}, [b, r, _, f]), C = Ae(() => {
|
|
4747
4745
|
const N = Number(((_ ?? 0) - o) * 100 / (n - o));
|
|
4748
4746
|
return `calc(${N}% + ((var(--iress-thumb-width) / 2) - ${N * 0.285}px))`;
|
|
4749
4747
|
}, [n, o, _]);
|
|
@@ -4753,18 +4751,18 @@ const Ml = (e = 0, s = 10, t = 1) => {
|
|
|
4753
4751
|
"data-testid": T(e, "slider"),
|
|
4754
4752
|
name: p == null ? void 0 : p.name,
|
|
4755
4753
|
value: _,
|
|
4756
|
-
children:
|
|
4754
|
+
children: F()
|
|
4757
4755
|
}
|
|
4758
4756
|
) : /* @__PURE__ */ L(
|
|
4759
4757
|
"div",
|
|
4760
4758
|
{
|
|
4761
4759
|
className: $(t, as.slider),
|
|
4762
4760
|
style: {
|
|
4763
|
-
"--iress-thumb-value-offset":
|
|
4761
|
+
"--iress-thumb-value-offset": C()
|
|
4764
4762
|
},
|
|
4765
4763
|
"data-testid": e,
|
|
4766
4764
|
children: [
|
|
4767
|
-
!i && /* @__PURE__ */ a("output", { className: as.thumbValue, children:
|
|
4765
|
+
!i && /* @__PURE__ */ a("output", { className: as.thumbValue, children: F() }),
|
|
4768
4766
|
/* @__PURE__ */ a(
|
|
4769
4767
|
"input",
|
|
4770
4768
|
{
|
|
@@ -4776,7 +4774,7 @@ const Ml = (e = 0, s = 10, t = 1) => {
|
|
|
4776
4774
|
value: _,
|
|
4777
4775
|
type: "range",
|
|
4778
4776
|
onChange: (N) => {
|
|
4779
|
-
l == null || l(N, Number(N.target.value)),
|
|
4777
|
+
l == null || l(N, Number(N.target.value)), I(Number(N.target.value));
|
|
4780
4778
|
},
|
|
4781
4779
|
ref: y,
|
|
4782
4780
|
list: `${g}--markers`,
|
|
@@ -4907,7 +4905,7 @@ const El = ({
|
|
|
4907
4905
|
"IressTable: Passing columns as an object is deprecated and will be removed in a future version. Please use an array instead.",
|
|
4908
4906
|
"warn"
|
|
4909
4907
|
);
|
|
4910
|
-
const
|
|
4908
|
+
const I = T(n, "thead"), F = T(n, "tbody");
|
|
4911
4909
|
return /* @__PURE__ */ a(
|
|
4912
4910
|
"div",
|
|
4913
4911
|
{
|
|
@@ -4937,12 +4935,12 @@ const El = ({
|
|
|
4937
4935
|
children: e
|
|
4938
4936
|
}
|
|
4939
4937
|
),
|
|
4940
|
-
!f && b && /* @__PURE__ */ a("thead", { "data-testid":
|
|
4941
|
-
b && /* @__PURE__ */ L("tbody", { "data-testid":
|
|
4938
|
+
!f && b && /* @__PURE__ */ a("thead", { "data-testid": I, children: /* @__PURE__ */ a(Bl, { tableId: g, testId: I }) }),
|
|
4939
|
+
b && /* @__PURE__ */ L("tbody", { "data-testid": F, children: [
|
|
4942
4940
|
/* @__PURE__ */ a(
|
|
4943
4941
|
ii,
|
|
4944
4942
|
{
|
|
4945
|
-
testId:
|
|
4943
|
+
testId: F,
|
|
4946
4944
|
tableId: g,
|
|
4947
4945
|
rowProps: u,
|
|
4948
4946
|
scope: p,
|
|
@@ -4971,20 +4969,20 @@ const Hl = re(
|
|
|
4971
4969
|
value: l,
|
|
4972
4970
|
...f
|
|
4973
4971
|
}, d) => {
|
|
4974
|
-
const [u, m] = X(""), { value: p, setValue: y } =
|
|
4972
|
+
const [u, m] = X(""), { value: p, setValue: y } = _t({
|
|
4975
4973
|
component: "IressTagInput",
|
|
4976
4974
|
defaultValue: e,
|
|
4977
4975
|
value: l
|
|
4978
4976
|
}), g = Ae(
|
|
4979
|
-
(
|
|
4980
|
-
if (!
|
|
4977
|
+
(F = "") => {
|
|
4978
|
+
if (!F)
|
|
4981
4979
|
return;
|
|
4982
|
-
if (p != null && p.includes(
|
|
4983
|
-
r == null || r(
|
|
4980
|
+
if (p != null && p.includes(F)) {
|
|
4981
|
+
r == null || r(F);
|
|
4984
4982
|
return;
|
|
4985
4983
|
}
|
|
4986
|
-
const
|
|
4987
|
-
t == null || t(ke(
|
|
4984
|
+
const C = [...p ?? [], F];
|
|
4985
|
+
t == null || t(ke(C), C), y(C);
|
|
4988
4986
|
},
|
|
4989
4987
|
[t, r, y, p]
|
|
4990
4988
|
);
|
|
@@ -4992,26 +4990,26 @@ const Hl = re(
|
|
|
4992
4990
|
Rs,
|
|
4993
4991
|
{
|
|
4994
4992
|
...f,
|
|
4995
|
-
onBlur: (
|
|
4996
|
-
s == null || s(
|
|
4993
|
+
onBlur: (F) => {
|
|
4994
|
+
s == null || s(F), g(F.currentTarget.value);
|
|
4997
4995
|
},
|
|
4998
|
-
onChange: (
|
|
4999
|
-
onKeyDown: (
|
|
5000
|
-
if (i == null || i(
|
|
5001
|
-
const
|
|
5002
|
-
t == null || t(ke(
|
|
5003
|
-
} else if (
|
|
5004
|
-
const
|
|
5005
|
-
g(
|
|
4996
|
+
onChange: (F) => m(F.currentTarget.value),
|
|
4997
|
+
onKeyDown: (F) => {
|
|
4998
|
+
if (i == null || i(F), F.key === "Backspace" && !u) {
|
|
4999
|
+
const C = p == null ? void 0 : p.slice(0, -1);
|
|
5000
|
+
t == null || t(ke(C), C), y(C);
|
|
5001
|
+
} else if (F.key === "Enter") {
|
|
5002
|
+
const C = F.currentTarget;
|
|
5003
|
+
g(C.value), m("");
|
|
5006
5004
|
}
|
|
5007
5005
|
},
|
|
5008
|
-
onTagDelete: (
|
|
5009
|
-
n == null || n(
|
|
5010
|
-
const
|
|
5011
|
-
t == null || t(ke(
|
|
5006
|
+
onTagDelete: (F) => {
|
|
5007
|
+
n == null || n(F);
|
|
5008
|
+
const C = p == null ? void 0 : p.filter((N) => N !== F);
|
|
5009
|
+
t == null || t(ke(C), C), y(C);
|
|
5012
5010
|
},
|
|
5013
|
-
onTagDeleteAll: (
|
|
5014
|
-
o == null || o(
|
|
5011
|
+
onTagDeleteAll: (F) => {
|
|
5012
|
+
o == null || o(F), t == null || t(ke([]), []), y([]);
|
|
5015
5013
|
},
|
|
5016
5014
|
ref: d,
|
|
5017
5015
|
tags: p,
|
|
@@ -5393,8 +5391,8 @@ const tc = "ids-toaster-v5131", ar = {
|
|
|
5393
5391
|
overlayStrong: yc,
|
|
5394
5392
|
spinner: bc
|
|
5395
5393
|
}, cr = {
|
|
5396
|
-
chart: /* @__PURE__ */ a(
|
|
5397
|
-
},
|
|
5394
|
+
chart: /* @__PURE__ */ a(xe, { mode: "rect", height: "250px" })
|
|
5395
|
+
}, _c = ({
|
|
5398
5396
|
children: e,
|
|
5399
5397
|
className: s,
|
|
5400
5398
|
loaded: t,
|
|
@@ -5476,46 +5474,46 @@ const tc = "ids-toaster-v5131", ar = {
|
|
|
5476
5474
|
]
|
|
5477
5475
|
}
|
|
5478
5476
|
);
|
|
5479
|
-
},
|
|
5480
|
-
root:
|
|
5477
|
+
}, xc = "ids-page-loading--root-v5131", Sc = "ids-page-loading--critical-v5131", Nc = "ids-page-loading--show-critical-v5131", wc = "ids-page-loading--skeleton-v5131", Ic = "ids-page-loading--hide-template-v5131", $t = {
|
|
5478
|
+
root: xc,
|
|
5481
5479
|
critical: Sc,
|
|
5482
5480
|
showCritical: Nc,
|
|
5483
5481
|
skeleton: wc,
|
|
5484
5482
|
hideTemplate: Ic
|
|
5485
5483
|
}, dr = {
|
|
5486
5484
|
page: /* @__PURE__ */ a(cs, { children: /* @__PURE__ */ a(ft, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ a(St, { children: /* @__PURE__ */ L(ct, { gutter: "md", children: [
|
|
5487
|
-
/* @__PURE__ */ a(
|
|
5488
|
-
/* @__PURE__ */ a(
|
|
5485
|
+
/* @__PURE__ */ a(xe, { textVariant: "h2", width: "75%" }),
|
|
5486
|
+
/* @__PURE__ */ a(xe, { mode: "rect", height: "200px" })
|
|
5489
5487
|
] }) }) }) }),
|
|
5490
5488
|
form: /* @__PURE__ */ a(cs, { children: /* @__PURE__ */ a(ft, { gutter: "lg", verticalAlign: "stretch", children: /* @__PURE__ */ a(St, { children: /* @__PURE__ */ L(ct, { gutter: "md", children: [
|
|
5491
|
-
/* @__PURE__ */ a(
|
|
5492
|
-
/* @__PURE__ */ a(
|
|
5493
|
-
/* @__PURE__ */ a(
|
|
5489
|
+
/* @__PURE__ */ a(xe, { textVariant: "h2", width: "75%" }),
|
|
5490
|
+
/* @__PURE__ */ a(xe, { mode: "rect", height: "200px" }),
|
|
5491
|
+
/* @__PURE__ */ a(xe, { textVariant: "body", width: "100px" })
|
|
5494
5492
|
] }) }) }) }),
|
|
5495
5493
|
dashboard: /* @__PURE__ */ a(cs, { children: /* @__PURE__ */ L(ct, { gutter: "lg", children: [
|
|
5496
5494
|
/* @__PURE__ */ L(ft, { horizontalAlign: "between", verticalAlign: "middle", children: [
|
|
5497
|
-
/* @__PURE__ */ a(
|
|
5495
|
+
/* @__PURE__ */ a(xe, { textVariant: "h1", width: "25%" }),
|
|
5498
5496
|
/* @__PURE__ */ L(Ge, { gutter: "lg", children: [
|
|
5499
|
-
/* @__PURE__ */ a(
|
|
5500
|
-
/* @__PURE__ */ a(
|
|
5497
|
+
/* @__PURE__ */ a(xe, { textVariant: "lead", width: "200px" }),
|
|
5498
|
+
/* @__PURE__ */ a(xe, { textVariant: "lead", width: "200px" })
|
|
5501
5499
|
] })
|
|
5502
5500
|
] }),
|
|
5503
5501
|
/* @__PURE__ */ a(Ns, {}),
|
|
5504
5502
|
/* @__PURE__ */ L(ft, { gutter: "lg", children: [
|
|
5505
5503
|
/* @__PURE__ */ a(St, { span: "4", children: /* @__PURE__ */ a(os, { stretch: !0, children: /* @__PURE__ */ L(ct, { gutter: "md", children: [
|
|
5506
|
-
/* @__PURE__ */ a(
|
|
5507
|
-
/* @__PURE__ */ a(
|
|
5508
|
-
/* @__PURE__ */ a(
|
|
5504
|
+
/* @__PURE__ */ a(xe, { mode: "rect", height: "300px" }),
|
|
5505
|
+
/* @__PURE__ */ a(xe, { textVariant: "h3", width: "75%" }),
|
|
5506
|
+
/* @__PURE__ */ a(xe, { textVariant: "body", width: "50%" })
|
|
5509
5507
|
] }) }) }),
|
|
5510
5508
|
/* @__PURE__ */ a(St, { span: "4", children: /* @__PURE__ */ a(os, { stretch: !0, children: /* @__PURE__ */ L(ct, { gutter: "md", children: [
|
|
5511
|
-
/* @__PURE__ */ a(
|
|
5512
|
-
/* @__PURE__ */ a(
|
|
5513
|
-
/* @__PURE__ */ a(
|
|
5509
|
+
/* @__PURE__ */ a(xe, { mode: "rect", height: "300px" }),
|
|
5510
|
+
/* @__PURE__ */ a(xe, { textVariant: "h3", width: "75%" }),
|
|
5511
|
+
/* @__PURE__ */ a(xe, { textVariant: "body", width: "50%" })
|
|
5514
5512
|
] }) }) }),
|
|
5515
5513
|
/* @__PURE__ */ a(St, { span: "4", children: /* @__PURE__ */ a(os, { stretch: !0, children: /* @__PURE__ */ L(ct, { gutter: "md", children: [
|
|
5516
|
-
/* @__PURE__ */ a(
|
|
5517
|
-
/* @__PURE__ */ a(
|
|
5518
|
-
/* @__PURE__ */ a(
|
|
5514
|
+
/* @__PURE__ */ a(xe, { mode: "rect", height: "300px" }),
|
|
5515
|
+
/* @__PURE__ */ a(xe, { textVariant: "h3", width: "75%" }),
|
|
5516
|
+
/* @__PURE__ */ a(xe, { textVariant: "body", width: "50%" })
|
|
5519
5517
|
] }) }) })
|
|
5520
5518
|
] })
|
|
5521
5519
|
] }) })
|
|
@@ -5560,7 +5558,7 @@ const tc = "ids-toaster-v5131", ar = {
|
|
|
5560
5558
|
]
|
|
5561
5559
|
}
|
|
5562
5560
|
);
|
|
5563
|
-
}, Ht = ({ pattern: e, ...s }) => e === "component" ? /* @__PURE__ */ a(
|
|
5561
|
+
}, Ht = ({ pattern: e, ...s }) => e === "component" ? /* @__PURE__ */ a(_c, { ...s }) : e === "long" ? /* @__PURE__ */ a(bi, { ...s }) : e === "page" ? /* @__PURE__ */ a(kc, { ...s }) : e === "start-up" ? /* @__PURE__ */ a(vn, { ...s }) : e === "validate" ? /* @__PURE__ */ a(mc, { ...s }) : /* @__PURE__ */ a(ac, { ...s });
|
|
5564
5562
|
Ht.shouldRender = yi;
|
|
5565
5563
|
const dn = ({
|
|
5566
5564
|
children: e,
|
|
@@ -5655,14 +5653,14 @@ export {
|
|
|
5655
5653
|
nc as ae,
|
|
5656
5654
|
ac as af,
|
|
5657
5655
|
mc as ag,
|
|
5658
|
-
|
|
5656
|
+
_c as ah,
|
|
5659
5657
|
kc as ai,
|
|
5660
5658
|
Le as b,
|
|
5661
5659
|
Tt as c,
|
|
5662
5660
|
Xo as d,
|
|
5663
5661
|
Vs as e,
|
|
5664
5662
|
la as f,
|
|
5665
|
-
|
|
5663
|
+
_a as g,
|
|
5666
5664
|
Es as h,
|
|
5667
5665
|
Oa as i,
|
|
5668
5666
|
Lt as j,
|
|
@@ -5681,5 +5679,5 @@ export {
|
|
|
5681
5679
|
Ao as w,
|
|
5682
5680
|
Vo as x,
|
|
5683
5681
|
oo as y,
|
|
5684
|
-
|
|
5682
|
+
xt as z
|
|
5685
5683
|
};
|