@iress-oss/ids-components 5.14.1 → 5.14.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/{AutocompleteNoResults-BJwn3Csz.js → AutocompleteNoResults-CA3kLIMp.js} +1 -1
- package/dist/{ComboboxHiddenInput-Dgwi3tti.js → ComboboxHiddenInput-3nXQLXWs.js} +5 -5
- package/dist/{FieldAppendToLabel-DOal1Jmq.js → FieldAppendToLabel-fLFwdVe0.js} +2 -2
- package/dist/{InputBase-DevBiqf2.js → InputBase-Gu84XDiJ.js} +1 -1
- package/dist/Loading.module-BoPWGcXe.js +13 -0
- package/dist/{LoadingSuspense-COCIFlsi.js → LoadingSuspense-CbdTDOzY.js} +608 -602
- package/dist/LogoFromSrc-C3T9li5n.js +59 -0
- package/dist/MenuItem.module-36-M9GIW.js +24 -0
- package/dist/Popover.module-qeMQ2uo5.js +11 -0
- package/dist/{SelectControl-CrSaqFGs.js → SelectControl-CzcS0y-K.js} +1 -1
- package/dist/{SliderTicks-C2tiJ8Jz.js → SliderTicks-Dfc9Q2il.js} +1 -1
- package/dist/TabSet.module-BduoH_21.js +13 -0
- package/dist/Table.module-CONHit0r.js +32 -0
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +84 -82
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.js +4 -4
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +1 -1
- package/dist/components/ButtonGroup/index.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/CheckboxGroup/CheckboxGroup.js +6 -6
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Combobox/Combobox.js +2 -2
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +2 -2
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +1 -1
- package/dist/components/Combobox/components/ComboboxResults.js +3 -3
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +1 -1
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Expander/Expander.js +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +2 -2
- package/dist/components/Field/components/FieldAppendToLabel.js +2 -2
- package/dist/components/Filter/Filter.js +2 -2
- 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/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +2 -2
- package/dist/components/Input/InputBase/InputBase.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/Label/LabelBase/LabelBase.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDivider/MenuDivider.js +1 -1
- package/dist/components/Menu/MenuHeading/MenuHeading.js +2 -2
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +2 -2
- package/dist/components/Menu/MenuText/MenuText.js +2 -2
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/hooks/useMenuStyles.js +3 -3
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/Navbar/Navbar.js +2 -2
- package/dist/components/Navbar/components/HomeLinkContent.js +2 -2
- package/dist/components/Navbar/components/LogoFromSrc.js +1 -1
- package/dist/components/Navbar/components/NavbarLogo.js +2 -2
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
- package/dist/components/Popover/InputPopover/InputPopoverProvider.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/PopoverProvider.js +1 -1
- package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverActivator.js +1 -1
- package/dist/components/Popover/components/PopoverContent.js +2 -2
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +1 -1
- package/dist/components/Popover/hooks/usePopoverNavigation.js +1 -1
- package/dist/components/Progress/Progress.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/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/Readonly/Readonly.js +2 -2
- 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 +2 -2
- package/dist/components/Select/components/SelectControl.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/Skeleton/Skeleton.js +2 -2
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/Slideout.js +2 -2
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/components/SliderTicks.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/TabSet/Tab/Tab.js +1 -1
- package/dist/components/TabSet/TabSet.js +2 -2
- package/dist/components/TabSet/components/TabSetItem.js +2 -2
- package/dist/components/Table/Table.js +2 -2
- package/dist/components/Table/TableBody/TableBody.js +2 -2
- package/dist/components/Table/components/TableEmpty.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 +2 -2
- package/dist/components/Table/hooks/useIDSTableColumnStyles.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 +2 -2
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +2 -2
- 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/components/Toggle/Toggle.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +1 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{floating-ui.react-RKRjRgyj.js → floating-ui.react-DfZ-vbiG.js} +766 -756
- package/dist/main.js +2 -2
- package/dist/patterns/Loading/Loading.js +1 -1
- package/dist/patterns/Loading/LoadingSuspense.js +1 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +2 -2
- package/dist/patterns/Loading/components/DefaultLoading.js +2 -2
- package/dist/patterns/Loading/components/LongLoading.js +2 -2
- package/dist/patterns/Loading/components/PageLoading.js +2 -2
- package/dist/patterns/Loading/components/StartUpLoading.js +2 -2
- package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
- package/dist/patterns/Loading/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-DWuujtfY.js → useIDSButtonGroupItem-DUZ2VDnl.js} +1 -1
- package/package.json +5 -3
- package/dist/Loading.module-CC_6gnKJ.js +0 -13
- package/dist/LogoFromSrc-0jeEBge9.js +0 -59
- package/dist/MenuItem.module-mlKiHW50.js +0 -24
- package/dist/Popover.module-BVX_vz5-.js +0 -11
- package/dist/TabSet.module-BdTRhXdV.js +0 -13
- package/dist/Table.module-Dax40UyV.js +0 -32
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as a, jsxs as L, Fragment as Je } from "react/jsx-runtime";
|
|
2
2
|
import * as hn from "react";
|
|
3
|
-
import G, { forwardRef as ie, useRef as fe, useState as X, useMemo as Se, useImperativeHandle as
|
|
3
|
+
import G, { forwardRef as ie, useRef as fe, useState as X, useMemo as Se, useImperativeHandle as Ee, useId as gs, useCallback as Fe, useEffect as ee, createElement as fr, useContext as ys, cloneElement as mr, createContext as pn, Suspense as Hs } from "react";
|
|
4
4
|
import { StartUpLoading as vn } from "./patterns/Loading/components/StartUpLoading.js";
|
|
5
5
|
import { c as V } from "./index-2QXL0WYc.js";
|
|
6
6
|
import { IconSpin as gn, IconSize as hr, IconFlip as yn, IconRotate as bn, IconSet as xn } from "./components/Icon/Icon.types.js";
|
|
7
7
|
import { ALERT_ICONS as _n } from "./components/Alert/Alert.types.js";
|
|
8
8
|
import { TextMode as Sn, HeadingLevel as bs, SystemValidationStatus as Nn, GlobalCSSClass as Z, TextFieldType as wn, FormElementWidth as xs, 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
|
-
import { IressText as
|
|
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 Et, A as Ss } from "./AutocompleteNoResults-
|
|
12
|
+
import { s as Et, A as Ss } from "./AutocompleteNoResults-CA3kLIMp.js";
|
|
13
13
|
import { IressPopover as Ns } from "./components/Popover/Popover.js";
|
|
14
14
|
import "./components/Popover/PopoverProvider.js";
|
|
15
15
|
import { IressInputPopover as Xt } from "./components/Popover/InputPopover/InputPopover.js";
|
|
16
16
|
import { getFormControlValueAsString as gt } from "./helpers/form/getFormControlValueAsString.js";
|
|
17
17
|
import { ClearButton as Fn } from "./components/Input/ClearButton/ClearButton.js";
|
|
18
|
-
import { b as is, I as
|
|
19
|
-
import { InputMode as
|
|
18
|
+
import { b as is, I as $n } from "./InputBase-Gu84XDiJ.js";
|
|
19
|
+
import { InputMode as An } from "./components/Input/Input.types.js";
|
|
20
20
|
import { useControlledState as bt } from "./hooks/useControlledState.js";
|
|
21
21
|
import "./fuzzysort-eoXOpoo6.js";
|
|
22
22
|
import "./components/Badge/Badge.js";
|
|
23
|
-
import { ButtonMode as Vn, ButtonType as Rn, ButtonCssClass as
|
|
24
|
-
import { u as Ln } from "./useIDSButtonGroupItem-
|
|
23
|
+
import { ButtonMode as Vn, ButtonType as Rn, ButtonCssClass as Te } from "./components/Button/Button.types.js";
|
|
24
|
+
import { u as Ln } from "./useIDSButtonGroupItem-DUZ2VDnl.js";
|
|
25
25
|
import "./components/ButtonGroup/ButtonGroupProvider.js";
|
|
26
26
|
import { IressCard as os } from "./components/Card/Card.js";
|
|
27
27
|
import "./components/CheckboxMark/CheckboxMark.types.js";
|
|
@@ -31,10 +31,10 @@ import { CheckboxGroupContext as Mn } from "./components/CheckboxGroup/CheckboxG
|
|
|
31
31
|
import { toArray as _e } from "./helpers/formatting/toArray.js";
|
|
32
32
|
import "./components/CheckboxGroup/CheckboxGroup.js";
|
|
33
33
|
import { IressCol as _t } from "./components/Col/Col.js";
|
|
34
|
-
import { s as rt, C as xr } from "./ComboboxHiddenInput-
|
|
34
|
+
import { s as rt, C as xr } from "./ComboboxHiddenInput-3nXQLXWs.js";
|
|
35
35
|
import { useRichSelectState as Jt } from "./components/RichSelect/hooks/useRichSelectState.js";
|
|
36
36
|
import { useAutocompleteSearch as Lt } from "./components/Autocomplete/hooks/useAutocompleteSearch.js";
|
|
37
|
-
import { useIdIfNeeded as
|
|
37
|
+
import { useIdIfNeeded as Oe } from "./hooks/useIdIfNeeded.js";
|
|
38
38
|
import "./components/Expander/Expander.js";
|
|
39
39
|
import { IressDivider as ws } from "./components/Divider/Divider.js";
|
|
40
40
|
import { FormContext as Cn } from "./components/Form/FormContext.js";
|
|
@@ -44,27 +44,27 @@ import { getResponsiveLayoutModifiers as Is } from "./helpers/responsive/getResp
|
|
|
44
44
|
import { formatCurrency as zn } from "./helpers/formatting/formatCurrency.js";
|
|
45
45
|
import { IressMenu as _r } from "./components/Menu/Menu.js";
|
|
46
46
|
import "./components/Menu/MenuProvider.js";
|
|
47
|
-
import { s as tt } from "./MenuItem.module-
|
|
47
|
+
import { s as tt } from "./MenuItem.module-36-M9GIW.js";
|
|
48
48
|
import { useMenu as Sr } from "./components/Menu/hooks/useMenu.js";
|
|
49
49
|
import { useMenuItemRole as Nr } from "./components/Menu/MenuItem/hooks/useMenuItemRole.js";
|
|
50
50
|
import { useMenuItemAria as Bn } from "./components/Menu/MenuItem/hooks/useMenuItemAria.js";
|
|
51
51
|
import { useMenuItemButtonProps as En } from "./components/Menu/MenuItem/hooks/useMenuItemButtonProps.js";
|
|
52
52
|
import { useMenuItemInteractions as On } from "./components/Menu/MenuItem/hooks/useMenuItemInteractions.js";
|
|
53
53
|
import { useMenuItemComposite as Hn } from "./components/Menu/MenuItem/hooks/useMenuItemComposite.js";
|
|
54
|
-
import { d as ks, g as wr, h as Ir, i as kr, w as Fs, n as Ut, x as Fr, q as
|
|
55
|
-
import { timeStringToNumber as
|
|
54
|
+
import { d as ks, g as wr, h as Ir, i as kr, w as Fs, n as Ut, x as Fr, q as $r } from "./floating-ui.react-DfZ-vbiG.js";
|
|
55
|
+
import { timeStringToNumber as Ar } from "./helpers/transition/timeStringToNumber.js";
|
|
56
56
|
import { idsLogger as Zt } from "./helpers/utility/idsLogger.js";
|
|
57
57
|
import { useIDSProvidedModal as Un } from "./components/Modal/hooks/useIDSProvidedModal.js";
|
|
58
58
|
import "./components/Modal/ModalProvider.js";
|
|
59
59
|
import { NavbarHorizontalAlign as Wn } from "./components/Navbar/Navbar.types.js";
|
|
60
|
-
import { IressPanel as
|
|
60
|
+
import { IressPanel as $s } from "./components/Panel/Panel.js";
|
|
61
61
|
import { HideCssClass as Us } from "./components/Hide/Hide.types.js";
|
|
62
62
|
import { BREAKPOINTS as Ws } from "./constants.js";
|
|
63
63
|
import { RadioGroupContext as qn } from "./components/RadioGroup/RadioGroupContext.js";
|
|
64
64
|
import "./components/RadioGroup/RadioGroup.js";
|
|
65
65
|
import { usePopoverItem as Gt } from "./components/Popover/hooks/usePopoverItem.js";
|
|
66
66
|
import { RowCssClass as St } from "./components/Row/Row.types.js";
|
|
67
|
-
import { S as Pn, s as jn } from "./SelectControl-
|
|
67
|
+
import { S as Pn, s as jn } from "./SelectControl-CzcS0y-K.js";
|
|
68
68
|
import { IressSelectOption as qs } from "./components/Select/SelectOption/SelectOption.js";
|
|
69
69
|
import { getValueAsEvent as Ie } from "./helpers/form/getValueAsEvent.js";
|
|
70
70
|
import { getFormControlValueAsStringIfDefined as yt } from "./helpers/form/getFormControlValueAsStringIfDefined.js";
|
|
@@ -73,10 +73,10 @@ 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";
|
|
75
75
|
import "./components/Slideout/SlideoutProvider.js";
|
|
76
|
-
import { s as as, S as Jn } from "./SliderTicks-
|
|
76
|
+
import { s as as, S as Jn } from "./SliderTicks-Dfc9Q2il.js";
|
|
77
77
|
import { IressStack as lt } from "./components/Stack/Stack.js";
|
|
78
78
|
import { TableScope as Zn } from "./components/Table/Table.types.js";
|
|
79
|
-
import { s as Ke } from "./Table.module-
|
|
79
|
+
import { s as Ke } from "./Table.module-CONHit0r.js";
|
|
80
80
|
import { TableEmpty as Gn } from "./components/Table/components/TableEmpty.js";
|
|
81
81
|
import { f as ei } from "./index-CtOScEKX.js";
|
|
82
82
|
import { useIDSTableColumnStyles as ti } from "./components/Table/hooks/useIDSTableColumnStyles.js";
|
|
@@ -94,7 +94,7 @@ import "./components/Toggle/Toggle.js";
|
|
|
94
94
|
import "./components/Tooltip/Tooltip.js";
|
|
95
95
|
import "./components/ValidationMessage/ValidationMessage.js";
|
|
96
96
|
import { useSuspenseResource as li, uncacheSuspenseResource as ci } from "./patterns/Loading/hooks/useSuspenseResource.js";
|
|
97
|
-
import { L as Rr, s as we } from "./LogoFromSrc-
|
|
97
|
+
import { L as Rr, s as we } from "./LogoFromSrc-C3T9li5n.js";
|
|
98
98
|
import { getValueFromLabelValues as di } from "./helpers/label-value/getValueFromLabelValues.js";
|
|
99
99
|
import { useFilterFlags as ui } from "./components/Filter/hooks/useFilterFlags.js";
|
|
100
100
|
import { FilterLabel as fi } from "./components/Filter/components/FilterLabel.js";
|
|
@@ -106,43 +106,43 @@ import { handlePopoverTabKey as hi } from "./components/Popover/helpers/handlePo
|
|
|
106
106
|
import { SelectHiddenInput as pi } from "./components/RichSelect/components/SelectHiddenInput.js";
|
|
107
107
|
import { useComboboxInlineCompletion as vi } from "./components/Combobox/hooks/useComboboxInlineCompletion.js";
|
|
108
108
|
import { useAutocompleteFlags as gi } from "./components/Autocomplete/hooks/useAutocompleteFlags.js";
|
|
109
|
-
import { l as
|
|
109
|
+
import { l as Ce } from "./Loading.module-BoPWGcXe.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 xi = "ids-alert-
|
|
113
|
+
const xi = "ids-alert-v5142", _i = "ids-alert--icon-v5142", Si = "ids-alert--heading-v5142", Ni = "ids-alert--wrapper-v5142", wi = "ids-alert--footer-v5142", Ii = "ids-alert--danger-v5142", ki = "ids-alert--info-v5142", Fi = "ids-alert--success-v5142", $i = "ids-alert--warning-v5142", ft = {
|
|
114
114
|
alert: xi,
|
|
115
115
|
icon: _i,
|
|
116
116
|
heading: Si,
|
|
117
|
-
"iress-u-text": "ids-alert--iress-u-text-
|
|
117
|
+
"iress-u-text": "ids-alert--iress-u-text-v5142",
|
|
118
118
|
wrapper: Ni,
|
|
119
119
|
footer: wi,
|
|
120
120
|
danger: Ii,
|
|
121
121
|
info: ki,
|
|
122
122
|
success: Fi,
|
|
123
|
-
warning:
|
|
124
|
-
},
|
|
125
|
-
icon:
|
|
126
|
-
"flip-horizontal": "ids-icon--flip-horizontal-
|
|
127
|
-
"flip-vertical": "ids-icon--flip-vertical-
|
|
128
|
-
"flip-both": "ids-icon--flip-both-
|
|
129
|
-
"rotate-180": "ids-icon--rotate-180-
|
|
130
|
-
"rotate-270": "ids-icon--rotate-270-
|
|
131
|
-
"rotate-90": "ids-icon--rotate-90-
|
|
132
|
-
"spin-half": "ids-icon--spin-half-
|
|
133
|
-
"iress-icon-rotation": "ids-icon--iress-icon-rotation-
|
|
134
|
-
"spin-1": "ids-icon--spin-1-
|
|
135
|
-
"spin-2": "ids-icon--spin-2-
|
|
136
|
-
"spin-3": "ids-icon--spin-3-
|
|
137
|
-
"mode-body": "ids-icon--mode-body-
|
|
138
|
-
"mode-muted": "ids-icon--mode-muted-
|
|
139
|
-
"mode-primary": "ids-icon--mode-primary-
|
|
140
|
-
"mode-info": "ids-icon--mode-info-
|
|
141
|
-
"mode-success": "ids-icon--mode-success-
|
|
142
|
-
"mode-warning": "ids-icon--mode-warning-
|
|
143
|
-
"mode-danger": "ids-icon--mode-danger-
|
|
144
|
-
"mode-positive": "ids-icon--mode-positive-
|
|
145
|
-
"mode-negative": "ids-icon--mode-negative-
|
|
123
|
+
warning: $i
|
|
124
|
+
}, Ai = "ids-icon-v5142", Nt = {
|
|
125
|
+
icon: Ai,
|
|
126
|
+
"flip-horizontal": "ids-icon--flip-horizontal-v5142",
|
|
127
|
+
"flip-vertical": "ids-icon--flip-vertical-v5142",
|
|
128
|
+
"flip-both": "ids-icon--flip-both-v5142",
|
|
129
|
+
"rotate-180": "ids-icon--rotate-180-v5142",
|
|
130
|
+
"rotate-270": "ids-icon--rotate-270-v5142",
|
|
131
|
+
"rotate-90": "ids-icon--rotate-90-v5142",
|
|
132
|
+
"spin-half": "ids-icon--spin-half-v5142",
|
|
133
|
+
"iress-icon-rotation": "ids-icon--iress-icon-rotation-v5142",
|
|
134
|
+
"spin-1": "ids-icon--spin-1-v5142",
|
|
135
|
+
"spin-2": "ids-icon--spin-2-v5142",
|
|
136
|
+
"spin-3": "ids-icon--spin-3-v5142",
|
|
137
|
+
"mode-body": "ids-icon--mode-body-v5142",
|
|
138
|
+
"mode-muted": "ids-icon--mode-muted-v5142",
|
|
139
|
+
"mode-primary": "ids-icon--mode-primary-v5142",
|
|
140
|
+
"mode-info": "ids-icon--mode-info-v5142",
|
|
141
|
+
"mode-success": "ids-icon--mode-success-v5142",
|
|
142
|
+
"mode-warning": "ids-icon--mode-warning-v5142",
|
|
143
|
+
"mode-danger": "ids-icon--mode-danger-v5142",
|
|
144
|
+
"mode-positive": "ids-icon--mode-positive-v5142",
|
|
145
|
+
"mode-negative": "ids-icon--mode-negative-v5142"
|
|
146
146
|
}, Vi = ({
|
|
147
147
|
name: e,
|
|
148
148
|
screenreaderText: s,
|
|
@@ -197,7 +197,7 @@ const Dt = ({
|
|
|
197
197
|
status: o = "info",
|
|
198
198
|
...l
|
|
199
199
|
}) => /* @__PURE__ */ L(
|
|
200
|
-
|
|
200
|
+
Pe,
|
|
201
201
|
{
|
|
202
202
|
className: V(
|
|
203
203
|
s,
|
|
@@ -234,7 +234,7 @@ const Dt = ({
|
|
|
234
234
|
);
|
|
235
235
|
Dt.HeadingLevel = bs;
|
|
236
236
|
Dt.Status = Nn;
|
|
237
|
-
const Ri = "ids-input-
|
|
237
|
+
const Ri = "ids-input-v5142", Li = "ids-input--readonly-v5142", Di = "ids-input--wrapper-v5142", Mi = "ids-input--addon-v5142", Ci = "ids-input--inline-wrapper-v5142", Ti = "ids-input--internal-v5142", zi = "ids-input--prepend-v5142", Bi = "ids-input--append-v5142", Ei = "ids-input--align-right-v5142", Oi = "ids-input--watermark-v5142", oe = {
|
|
238
238
|
input: Ri,
|
|
239
239
|
readonly: Li,
|
|
240
240
|
wrapper: Di,
|
|
@@ -245,7 +245,7 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
245
245
|
append: Bi,
|
|
246
246
|
alignRight: Ei,
|
|
247
247
|
watermark: Oi
|
|
248
|
-
}, Hi = "ids-spinner-
|
|
248
|
+
}, Hi = "ids-spinner-v5142", Ui = {
|
|
249
249
|
spinner: Hi
|
|
250
250
|
}, Mt = ({
|
|
251
251
|
className: e,
|
|
@@ -280,7 +280,7 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
280
280
|
component: "IressReadonly",
|
|
281
281
|
defaultValue: i
|
|
282
282
|
});
|
|
283
|
-
const
|
|
283
|
+
const A = V(
|
|
284
284
|
oe.input,
|
|
285
285
|
oe.readonly,
|
|
286
286
|
t,
|
|
@@ -299,7 +299,7 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
299
299
|
[is.readonlyAlignRight]: p
|
|
300
300
|
}
|
|
301
301
|
), S = yt(i), F = yt(u);
|
|
302
|
-
return /* @__PURE__ */ L("div", { className:
|
|
302
|
+
return /* @__PURE__ */ L("div", { className: A, "data-testid": r, style: l, children: [
|
|
303
303
|
/* @__PURE__ */ L(
|
|
304
304
|
"div",
|
|
305
305
|
{
|
|
@@ -346,7 +346,7 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
346
346
|
readOnly: p,
|
|
347
347
|
formatter: g,
|
|
348
348
|
type: y,
|
|
349
|
-
inline:
|
|
349
|
+
inline: A,
|
|
350
350
|
alignRight: b,
|
|
351
351
|
...S
|
|
352
352
|
} = e;
|
|
@@ -354,12 +354,12 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
354
354
|
component: "IressInput",
|
|
355
355
|
defaultValue: i
|
|
356
356
|
});
|
|
357
|
-
const F = fe(null), { value: w, setValue:
|
|
357
|
+
const F = fe(null), { value: w, setValue: C } = bt({
|
|
358
358
|
component: "IressInput",
|
|
359
359
|
defaultValue: i,
|
|
360
360
|
value: e.value
|
|
361
|
-
}), x = gt(w), [H,
|
|
362
|
-
if (
|
|
361
|
+
}), x = gt(w), [H, M] = X(!1), E = Se(() => g && !H ? g(w) : x, [g, w, x, H]), W = Se(() => g && !H ? "text" : y, [g, H, y]);
|
|
362
|
+
if (Ee(
|
|
363
363
|
s,
|
|
364
364
|
() => F.current
|
|
365
365
|
), p)
|
|
@@ -377,7 +377,7 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
377
377
|
);
|
|
378
378
|
const U = (_) => {
|
|
379
379
|
var B;
|
|
380
|
-
|
|
380
|
+
C(""), (B = F.current) == null || B.focus();
|
|
381
381
|
const D = new Event("change", {
|
|
382
382
|
bubbles: !0
|
|
383
383
|
});
|
|
@@ -387,8 +387,8 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
387
387
|
}), n == null || n(D);
|
|
388
388
|
}, J = (_) => {
|
|
389
389
|
const D = _.target.value;
|
|
390
|
-
|
|
391
|
-
},
|
|
390
|
+
C(D), d == null || d(_, D);
|
|
391
|
+
}, $ = V(
|
|
392
392
|
oe.input,
|
|
393
393
|
u,
|
|
394
394
|
Z.FormElement,
|
|
@@ -397,16 +397,16 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
397
397
|
[oe.watermark]: m
|
|
398
398
|
}
|
|
399
399
|
);
|
|
400
|
-
return /* @__PURE__ */ a("div", { className:
|
|
400
|
+
return /* @__PURE__ */ a("div", { className: $, "data-testid": S["data-testid"], children: /* @__PURE__ */ L(
|
|
401
401
|
"div",
|
|
402
402
|
{
|
|
403
403
|
className: V(oe.wrapper, Z.FormElementInner, {
|
|
404
|
-
[oe.inlineWrapper]:
|
|
404
|
+
[oe.inlineWrapper]: A
|
|
405
405
|
}),
|
|
406
406
|
children: [
|
|
407
407
|
l && /* @__PURE__ */ a("div", { className: `${oe.addon} ${oe.prepend}`, children: l }),
|
|
408
408
|
/* @__PURE__ */ a(
|
|
409
|
-
|
|
409
|
+
$n,
|
|
410
410
|
{
|
|
411
411
|
...S,
|
|
412
412
|
className: V({
|
|
@@ -417,11 +417,11 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
417
417
|
onChange: J,
|
|
418
418
|
onFocus: (..._) => {
|
|
419
419
|
var D;
|
|
420
|
-
|
|
420
|
+
M(!0), (D = S == null ? void 0 : S.onFocus) == null || D.call(S, ..._);
|
|
421
421
|
},
|
|
422
422
|
onBlur: (..._) => {
|
|
423
423
|
var D;
|
|
424
|
-
|
|
424
|
+
M(!1), (D = S == null ? void 0 : S.onBlur) == null || D.call(S, ..._);
|
|
425
425
|
},
|
|
426
426
|
type: W,
|
|
427
427
|
ref: F
|
|
@@ -443,14 +443,14 @@ const Ri = "ids-input-v5141", Li = "ids-input--readonly-v5141", Di = "ids-input-
|
|
|
443
443
|
}, Pi = ie(qi), Ge = Pi;
|
|
444
444
|
Ge.Type = wn;
|
|
445
445
|
Ge.Width = xs;
|
|
446
|
-
Ge.InputMode =
|
|
447
|
-
const ji = "ids-rich-select-
|
|
446
|
+
Ge.InputMode = An;
|
|
447
|
+
const ji = "ids-rich-select-v5142", Qi = "ids-rich-select--popover-content-v5142", Ki = "ids-rich-select--dropdown-selected-heading-v5142", Yi = "ids-rich-select--dropdown-clear-v5142", Xi = "ids-rich-select--wrapper-v5142", vt = {
|
|
448
448
|
richSelect: ji,
|
|
449
449
|
popoverContent: Qi,
|
|
450
450
|
dropdownSelectedHeading: Ki,
|
|
451
451
|
dropdownClear: Yi,
|
|
452
452
|
wrapper: Xi
|
|
453
|
-
}, Ji = "ids-select-label-
|
|
453
|
+
}, Ji = "ids-select-label-v5142", Zi = "ids-select-label--contents-v5142", Gi = "ids-select-label--placeholder-v5142", eo = "ids-select-label--prepend-v5142", to = "ids-select-label--append-v5142", wt = {
|
|
454
454
|
selectLabel: Ji,
|
|
455
455
|
contents: Zi,
|
|
456
456
|
placeholder: Gi,
|
|
@@ -482,19 +482,19 @@ const ji = "ids-rich-select-v5141", Qi = "ids-rich-select--popover-content-v5141
|
|
|
482
482
|
noWrap: p = !1,
|
|
483
483
|
onClick: g,
|
|
484
484
|
value: y,
|
|
485
|
-
|
|
485
|
+
...A
|
|
486
486
|
}, b) => {
|
|
487
|
-
const S = gs(), w = Ln({ value: y ?? (typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t : void 0) }),
|
|
488
|
-
[
|
|
489
|
-
[
|
|
490
|
-
[`${
|
|
491
|
-
[
|
|
492
|
-
[
|
|
493
|
-
[`${
|
|
487
|
+
const S = gs(), w = Ln({ value: y ?? (typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? t : void 0) }), C = {
|
|
488
|
+
[Te.Base]: !0,
|
|
489
|
+
[Te.Fluid]: i === !0,
|
|
490
|
+
[`${Te.Mode}--${l}`]: !w,
|
|
491
|
+
[Te.NoWrap]: p === !0,
|
|
492
|
+
[Te.Loading]: o,
|
|
493
|
+
[`${Te.Fluid}--${i}`]: typeof i == "string"
|
|
494
494
|
}, x = n === void 0 ? "button" : "a", H = x === "button" ? {
|
|
495
495
|
type: m,
|
|
496
496
|
"aria-describedby": o ? S : void 0
|
|
497
|
-
} : { href: n, rel: d, target: u },
|
|
497
|
+
} : { href: n, rel: d, target: u }, M = (E) => {
|
|
498
498
|
o || (g == null || g(E), w == null || w.toggle());
|
|
499
499
|
};
|
|
500
500
|
return /* @__PURE__ */ L(
|
|
@@ -505,19 +505,19 @@ const ji = "ids-rich-select-v5141", Qi = "ids-rich-select--popover-content-v5141
|
|
|
505
505
|
w == null ? void 0 : w.className,
|
|
506
506
|
Z.FormElement,
|
|
507
507
|
Z.FormElementInner,
|
|
508
|
-
|
|
508
|
+
C
|
|
509
509
|
),
|
|
510
510
|
...H,
|
|
511
511
|
...s,
|
|
512
512
|
...w == null ? void 0 : w.props,
|
|
513
|
-
|
|
514
|
-
onClick:
|
|
513
|
+
...A,
|
|
514
|
+
onClick: M,
|
|
515
515
|
ref: b,
|
|
516
516
|
children: [
|
|
517
517
|
f && /* @__PURE__ */ a(
|
|
518
518
|
"span",
|
|
519
519
|
{
|
|
520
|
-
className: o === !0 ? Z.Hidden :
|
|
520
|
+
className: o === !0 ? Z.Hidden : Te.Prepend,
|
|
521
521
|
children: f
|
|
522
522
|
}
|
|
523
523
|
),
|
|
@@ -531,7 +531,7 @@ const ji = "ids-rich-select-v5141", Qi = "ids-rich-select--popover-content-v5141
|
|
|
531
531
|
Re.Mode = Vn;
|
|
532
532
|
Re.Type = Rn;
|
|
533
533
|
Re.Fluid = pr;
|
|
534
|
-
const no = "ids-close-button-
|
|
534
|
+
const no = "ids-close-button-v5142", io = {
|
|
535
535
|
closeButton: no
|
|
536
536
|
}, Ct = ie(
|
|
537
537
|
({
|
|
@@ -568,13 +568,13 @@ const oo = ({
|
|
|
568
568
|
className: V(
|
|
569
569
|
s,
|
|
570
570
|
wt.selectLabel,
|
|
571
|
-
|
|
571
|
+
Te.Base,
|
|
572
572
|
Z.FormElementInner
|
|
573
573
|
),
|
|
574
574
|
children: [
|
|
575
|
-
r && /* @__PURE__ */ a("span", { className: V(
|
|
575
|
+
r && /* @__PURE__ */ a("span", { className: V(Te.Prepend, wt.prepend), children: r }),
|
|
576
576
|
/* @__PURE__ */ a(
|
|
577
|
-
|
|
577
|
+
Pe,
|
|
578
578
|
{
|
|
579
579
|
className: V(wt.contents, {
|
|
580
580
|
[wt.placeholder]: !l.length
|
|
@@ -586,7 +586,7 @@ const oo = ({
|
|
|
586
586
|
]
|
|
587
587
|
}
|
|
588
588
|
);
|
|
589
|
-
}, ao = "ids-select-tags-
|
|
589
|
+
}, ao = "ids-select-tags-v5142", lo = "ids-select-tags--placeholder-v5142", co = "ids-select-tags--prepend-v5142", uo = "ids-select-tags--append-v5142", fo = "ids-select-tags--tag-v5142", mo = "ids-select-tags--tags-list-v5142", ct = {
|
|
590
590
|
selectTags: ao,
|
|
591
591
|
placeholder: lo,
|
|
592
592
|
prepend: co,
|
|
@@ -688,13 +688,13 @@ const oo = ({
|
|
|
688
688
|
}) => {
|
|
689
689
|
const p = Se(() => _e(d), [d]), g = !p.length && l, y = !!p.length;
|
|
690
690
|
return /* @__PURE__ */ L(
|
|
691
|
-
|
|
691
|
+
Pe,
|
|
692
692
|
{
|
|
693
693
|
...m,
|
|
694
694
|
className: V(
|
|
695
695
|
s,
|
|
696
696
|
ct.selectTags,
|
|
697
|
-
|
|
697
|
+
Te.Base,
|
|
698
698
|
Z.FormElementInner
|
|
699
699
|
),
|
|
700
700
|
children: [
|
|
@@ -792,10 +792,10 @@ const oo = ({
|
|
|
792
792
|
role: e ? void 0 : "combobox",
|
|
793
793
|
selected: m
|
|
794
794
|
}
|
|
795
|
-
), bo = "ids-select-search-
|
|
795
|
+
), bo = "ids-select-search-v5142", xo = "ids-select-search--content-v5142", js = {
|
|
796
796
|
selectSearch: bo,
|
|
797
797
|
content: xo
|
|
798
|
-
}, _o = "ids-select-body-
|
|
798
|
+
}, _o = "ids-select-body-v5142", So = "ids-select-body--children-v5142", Qs = {
|
|
799
799
|
selectBody: _o,
|
|
800
800
|
children: So
|
|
801
801
|
}, No = ({
|
|
@@ -861,11 +861,11 @@ const oo = ({
|
|
|
861
861
|
value: u
|
|
862
862
|
}) => {
|
|
863
863
|
const m = _e(u).map(
|
|
864
|
-
(
|
|
865
|
-
const { formattedLabel: x, ...H } =
|
|
864
|
+
(C) => {
|
|
865
|
+
const { formattedLabel: x, ...H } = C;
|
|
866
866
|
return H;
|
|
867
867
|
}
|
|
868
|
-
), p = !s && (!!(l != null && l.length) || o && !t), g = !!m.length && r, y = p && g,
|
|
868
|
+
), p = !s && (!!(l != null && l.length) || o && !t), g = !!m.length && r, y = p && g, A = fe(null), b = gs();
|
|
869
869
|
ee(() => {
|
|
870
870
|
d || f == null || f("");
|
|
871
871
|
}, [d, f]);
|
|
@@ -878,8 +878,8 @@ const oo = ({
|
|
|
878
878
|
{
|
|
879
879
|
"aria-label": "Search",
|
|
880
880
|
loading: t,
|
|
881
|
-
onChange: (
|
|
882
|
-
ref:
|
|
881
|
+
onChange: (C) => f == null ? void 0 : f(C.target.value),
|
|
882
|
+
ref: A,
|
|
883
883
|
placeholder: "Search and select",
|
|
884
884
|
value: o
|
|
885
885
|
}
|
|
@@ -896,9 +896,9 @@ const oo = ({
|
|
|
896
896
|
Vo,
|
|
897
897
|
{
|
|
898
898
|
clearAll: !0,
|
|
899
|
-
onClearAll: (
|
|
899
|
+
onClearAll: (C) => {
|
|
900
900
|
var x;
|
|
901
|
-
n == null || n(
|
|
901
|
+
n == null || n(C), (x = A.current) == null || x.focus();
|
|
902
902
|
},
|
|
903
903
|
children: /* @__PURE__ */ L("h2", { id: b, children: [
|
|
904
904
|
"Selected (",
|
|
@@ -944,14 +944,14 @@ const oo = ({
|
|
|
944
944
|
setShow: p,
|
|
945
945
|
setValue: g,
|
|
946
946
|
show: y,
|
|
947
|
-
value:
|
|
947
|
+
value: A
|
|
948
948
|
}) => {
|
|
949
949
|
const b = typeof l == "function", S = r ?? (b ? [] : l), F = u.length ? u : S, w = Fe(
|
|
950
950
|
(x) => {
|
|
951
951
|
g(x), o == null || o(Ie(x), x), n || p(!1);
|
|
952
952
|
},
|
|
953
953
|
[p, g, o, n]
|
|
954
|
-
),
|
|
954
|
+
), C = Fe(
|
|
955
955
|
(x) => {
|
|
956
956
|
x.stopPropagation(), g([]), o == null || o(Ie([]), []);
|
|
957
957
|
},
|
|
@@ -967,7 +967,7 @@ const oo = ({
|
|
|
967
967
|
setValue: g,
|
|
968
968
|
setQuery: m,
|
|
969
969
|
show: y,
|
|
970
|
-
value:
|
|
970
|
+
value: A
|
|
971
971
|
}) : b ? /* @__PURE__ */ a(
|
|
972
972
|
ko,
|
|
973
973
|
{
|
|
@@ -976,12 +976,12 @@ const oo = ({
|
|
|
976
976
|
loading: i,
|
|
977
977
|
multiSelect: n,
|
|
978
978
|
onChange: w,
|
|
979
|
-
onClear:
|
|
979
|
+
onClear: C,
|
|
980
980
|
query: f,
|
|
981
981
|
results: u,
|
|
982
982
|
setQuery: m,
|
|
983
983
|
show: y,
|
|
984
|
-
value:
|
|
984
|
+
value: A
|
|
985
985
|
}
|
|
986
986
|
) : /* @__PURE__ */ a(
|
|
987
987
|
xt,
|
|
@@ -989,11 +989,11 @@ const oo = ({
|
|
|
989
989
|
items: F,
|
|
990
990
|
multiSelect: n,
|
|
991
991
|
onChange: w,
|
|
992
|
-
selected:
|
|
992
|
+
selected: A,
|
|
993
993
|
selectedFirst: !0
|
|
994
994
|
}
|
|
995
995
|
);
|
|
996
|
-
},
|
|
996
|
+
}, $o = ie(
|
|
997
997
|
({
|
|
998
998
|
align: e = "bottom-start",
|
|
999
999
|
autoHighlight: s = !0,
|
|
@@ -1010,15 +1010,15 @@ const oo = ({
|
|
|
1010
1010
|
onDeactivated: p,
|
|
1011
1011
|
onChange: g,
|
|
1012
1012
|
onBlur: y,
|
|
1013
|
-
options:
|
|
1013
|
+
options: A,
|
|
1014
1014
|
placeholder: b,
|
|
1015
1015
|
readonly: S,
|
|
1016
1016
|
renderHiddenInput: F,
|
|
1017
1017
|
renderLabel: w,
|
|
1018
|
-
renderOptions:
|
|
1018
|
+
renderOptions: C,
|
|
1019
1019
|
required: x,
|
|
1020
1020
|
type: H,
|
|
1021
|
-
value:
|
|
1021
|
+
value: M,
|
|
1022
1022
|
width: E = "100perc",
|
|
1023
1023
|
virtualFocus: W,
|
|
1024
1024
|
...U
|
|
@@ -1027,44 +1027,44 @@ const oo = ({
|
|
|
1027
1027
|
component: "IressRichSelect",
|
|
1028
1028
|
defaultValue: i
|
|
1029
1029
|
});
|
|
1030
|
-
const [
|
|
1030
|
+
const [$, _] = X(!1), [D, B] = X(""), { value: O, setValue: P, getValuesString: q, getLabelsString: te } = Jt({
|
|
1031
1031
|
component: "IressRichSelect",
|
|
1032
1032
|
defaultValue: i,
|
|
1033
1033
|
multiple: u,
|
|
1034
|
-
value:
|
|
1034
|
+
value: M
|
|
1035
1035
|
}), K = fe(null), Q = fe(null), { debouncedQuery: pe, error: Y, results: ce, stopSearch: ve, loading: ne } = Lt({
|
|
1036
1036
|
debounceThreshold: r,
|
|
1037
1037
|
initialOptions: f,
|
|
1038
|
-
options:
|
|
1038
|
+
options: A,
|
|
1039
1039
|
query: D
|
|
1040
1040
|
});
|
|
1041
|
-
|
|
1041
|
+
Ee(J, () => K.current ? {
|
|
1042
1042
|
...K.current,
|
|
1043
1043
|
focus: () => {
|
|
1044
|
-
var Ne,
|
|
1045
|
-
return (
|
|
1044
|
+
var Ne, $e;
|
|
1045
|
+
return ($e = (Ne = K.current) == null ? void 0 : Ne.getActivator()) == null ? void 0 : $e.focus();
|
|
1046
1046
|
},
|
|
1047
1047
|
blur: () => {
|
|
1048
|
-
var Ne,
|
|
1049
|
-
return (
|
|
1048
|
+
var Ne, $e;
|
|
1049
|
+
return ($e = (Ne = K.current) == null ? void 0 : Ne.getActivator()) == null ? void 0 : $e.blur();
|
|
1050
1050
|
},
|
|
1051
1051
|
hiddenInput: Q.current ?? void 0
|
|
1052
1052
|
} : { hiddenInput: Q.current ?? void 0 }), ee(() => {
|
|
1053
|
-
|
|
1054
|
-
}, [
|
|
1053
|
+
$ ? m == null || m() : p == null || p();
|
|
1054
|
+
}, [$]);
|
|
1055
1055
|
const he = Fe(
|
|
1056
1056
|
(Ne) => {
|
|
1057
1057
|
if (!y) return;
|
|
1058
|
-
const
|
|
1059
|
-
|
|
1058
|
+
const $e = Ne.currentTarget, it = Ne.relatedTarget;
|
|
1059
|
+
!$ && (!it || !$e.contains(it)) && y(Ne), Ne.stopPropagation();
|
|
1060
1060
|
},
|
|
1061
|
-
[y,
|
|
1061
|
+
[y, $]
|
|
1062
1062
|
);
|
|
1063
1063
|
if (S)
|
|
1064
|
-
return /* @__PURE__ */ a(Ze, { value:
|
|
1065
|
-
const ae = typeof
|
|
1064
|
+
return /* @__PURE__ */ a(Ze, { value: q(), children: te(", ") });
|
|
1065
|
+
const ae = typeof A == "function", se = W ?? !ae, de = H ?? (ae ? void 0 : "listbox"), De = () => {
|
|
1066
1066
|
_(!0);
|
|
1067
|
-
},
|
|
1067
|
+
}, je = () => {
|
|
1068
1068
|
_(!1), ve();
|
|
1069
1069
|
};
|
|
1070
1070
|
return /* @__PURE__ */ L(Je, { children: [
|
|
@@ -1083,9 +1083,9 @@ const oo = ({
|
|
|
1083
1083
|
onChange: g,
|
|
1084
1084
|
placeholder: b,
|
|
1085
1085
|
renderLabel: w,
|
|
1086
|
-
setValue:
|
|
1086
|
+
setValue: P,
|
|
1087
1087
|
setShow: _,
|
|
1088
|
-
show:
|
|
1088
|
+
show: $,
|
|
1089
1089
|
value: O
|
|
1090
1090
|
}
|
|
1091
1091
|
),
|
|
@@ -1096,10 +1096,10 @@ const oo = ({
|
|
|
1096
1096
|
}),
|
|
1097
1097
|
contentClassName: vt.popoverContent,
|
|
1098
1098
|
matchActivatorWidth: !0,
|
|
1099
|
-
onActivated:
|
|
1100
|
-
onDeactivated:
|
|
1099
|
+
onActivated: De,
|
|
1100
|
+
onDeactivated: je,
|
|
1101
1101
|
ref: K,
|
|
1102
|
-
show:
|
|
1102
|
+
show: $,
|
|
1103
1103
|
type: de,
|
|
1104
1104
|
virtualFocus: se,
|
|
1105
1105
|
onBlur: he,
|
|
@@ -1115,14 +1115,14 @@ const oo = ({
|
|
|
1115
1115
|
loading: ne,
|
|
1116
1116
|
multiSelect: u,
|
|
1117
1117
|
onChange: g,
|
|
1118
|
-
options:
|
|
1118
|
+
options: A,
|
|
1119
1119
|
query: D,
|
|
1120
|
-
renderOptions:
|
|
1120
|
+
renderOptions: C,
|
|
1121
1121
|
results: ce,
|
|
1122
1122
|
setQuery: B,
|
|
1123
1123
|
setShow: _,
|
|
1124
|
-
setValue:
|
|
1125
|
-
show:
|
|
1124
|
+
setValue: P,
|
|
1125
|
+
show: $,
|
|
1126
1126
|
value: O
|
|
1127
1127
|
}
|
|
1128
1128
|
),
|
|
@@ -1134,7 +1134,7 @@ const oo = ({
|
|
|
1134
1134
|
pi,
|
|
1135
1135
|
{
|
|
1136
1136
|
"data-testid": U["data-testid"],
|
|
1137
|
-
getValuesString:
|
|
1137
|
+
getValuesString: q,
|
|
1138
1138
|
name: d,
|
|
1139
1139
|
renderHiddenInput: F,
|
|
1140
1140
|
required: x,
|
|
@@ -1145,19 +1145,19 @@ const oo = ({
|
|
|
1145
1145
|
] });
|
|
1146
1146
|
}
|
|
1147
1147
|
);
|
|
1148
|
-
|
|
1149
|
-
const
|
|
1148
|
+
$o.displayName = "IressRichSelect";
|
|
1149
|
+
const Ao = ie(
|
|
1150
1150
|
(e, s) => {
|
|
1151
1151
|
const t = fe(null), { isActiveInPopover: r, ...i } = Gt("", {
|
|
1152
1152
|
onKeyDown: e.onKeyDown
|
|
1153
1153
|
});
|
|
1154
|
-
return
|
|
1154
|
+
return Ee(s, () => t.current), /* @__PURE__ */ a(
|
|
1155
1155
|
Re,
|
|
1156
1156
|
{
|
|
1157
1157
|
...e,
|
|
1158
1158
|
...i,
|
|
1159
1159
|
className: V(vt.dropdownClear, {
|
|
1160
|
-
[
|
|
1160
|
+
[Te.Active]: r
|
|
1161
1161
|
}),
|
|
1162
1162
|
mode: "tertiary",
|
|
1163
1163
|
ref: (n) => {
|
|
@@ -1175,7 +1175,7 @@ const $o = ie(
|
|
|
1175
1175
|
role: i = "option",
|
|
1176
1176
|
...n
|
|
1177
1177
|
}) => /* @__PURE__ */ a(
|
|
1178
|
-
|
|
1178
|
+
As,
|
|
1179
1179
|
{
|
|
1180
1180
|
...n,
|
|
1181
1181
|
className: V(vt.dropdownSelectedHeading, s),
|
|
@@ -1183,7 +1183,7 @@ const $o = ie(
|
|
|
1183
1183
|
children: /* @__PURE__ */ L(et, { horizontalAlign: "between", verticalAlign: "middle", children: [
|
|
1184
1184
|
e,
|
|
1185
1185
|
t && /* @__PURE__ */ a(
|
|
1186
|
-
|
|
1186
|
+
Ao,
|
|
1187
1187
|
{
|
|
1188
1188
|
onClick: r,
|
|
1189
1189
|
onKeyDown: (o) => {
|
|
@@ -1203,7 +1203,7 @@ const $o = ie(
|
|
|
1203
1203
|
role: (s == null ? void 0 : s.role) === "menu" ? void 0 : "presentation"
|
|
1204
1204
|
}
|
|
1205
1205
|
);
|
|
1206
|
-
},
|
|
1206
|
+
}, As = ({
|
|
1207
1207
|
append: e,
|
|
1208
1208
|
children: s,
|
|
1209
1209
|
className: t,
|
|
@@ -1214,7 +1214,7 @@ const $o = ie(
|
|
|
1214
1214
|
}) => {
|
|
1215
1215
|
const l = Sr(), f = Nr() ?? n;
|
|
1216
1216
|
return /* @__PURE__ */ L(
|
|
1217
|
-
|
|
1217
|
+
Pe,
|
|
1218
1218
|
{
|
|
1219
1219
|
...o,
|
|
1220
1220
|
className: V(t, tt.menuItem, tt.text, {
|
|
@@ -1235,7 +1235,7 @@ const $o = ie(
|
|
|
1235
1235
|
level: t = "h2",
|
|
1236
1236
|
...r
|
|
1237
1237
|
}) => /* @__PURE__ */ a(
|
|
1238
|
-
|
|
1238
|
+
As,
|
|
1239
1239
|
{
|
|
1240
1240
|
...r,
|
|
1241
1241
|
className: V(s, tt.heading),
|
|
@@ -1257,7 +1257,7 @@ const Ro = ({
|
|
|
1257
1257
|
value: u,
|
|
1258
1258
|
...m
|
|
1259
1259
|
}, p) => {
|
|
1260
|
-
const g = Nr() ?? f, y = Bn({ selected: d, value: u }), { isActiveInPopover:
|
|
1260
|
+
const g = Nr() ?? f, y = Bn({ selected: d, value: u }), { isActiveInPopover: A, ...b } = On({
|
|
1261
1261
|
canToggle: s,
|
|
1262
1262
|
onClick: n,
|
|
1263
1263
|
onKeyDown: o,
|
|
@@ -1276,9 +1276,9 @@ const Ro = ({
|
|
|
1276
1276
|
selected: d,
|
|
1277
1277
|
value: u
|
|
1278
1278
|
},
|
|
1279
|
-
|
|
1279
|
+
A
|
|
1280
1280
|
), F = fe(null);
|
|
1281
|
-
return
|
|
1281
|
+
return Ee(p, () => F.current), Hn(
|
|
1282
1282
|
/* @__PURE__ */ a(Re, { ...y, ...b, ...S, ...m }),
|
|
1283
1283
|
g
|
|
1284
1284
|
);
|
|
@@ -1317,7 +1317,7 @@ const Ro = ({
|
|
|
1317
1317
|
selectedFirst: d,
|
|
1318
1318
|
...u
|
|
1319
1319
|
}) => {
|
|
1320
|
-
const p = `${
|
|
1320
|
+
const p = `${Oe({ id: u.id })}--label`, g = Se(
|
|
1321
1321
|
() => di(f, n),
|
|
1322
1322
|
[n, f]
|
|
1323
1323
|
), y = Se(() => {
|
|
@@ -1339,7 +1339,7 @@ const Ro = ({
|
|
|
1339
1339
|
g,
|
|
1340
1340
|
f,
|
|
1341
1341
|
d
|
|
1342
|
-
]),
|
|
1342
|
+
]), A = y.length === 0, b = Fe(
|
|
1343
1343
|
(S) => {
|
|
1344
1344
|
const F = Co(
|
|
1345
1345
|
t,
|
|
@@ -1371,7 +1371,7 @@ const Ro = ({
|
|
|
1371
1371
|
)}-${F}`
|
|
1372
1372
|
}
|
|
1373
1373
|
)),
|
|
1374
|
-
|
|
1374
|
+
A && (typeof o == "string" ? /* @__PURE__ */ a(As, { children: o }) : o)
|
|
1375
1375
|
]
|
|
1376
1376
|
}
|
|
1377
1377
|
);
|
|
@@ -1390,7 +1390,7 @@ const Ro = ({
|
|
|
1390
1390
|
(i) => i.value === t || i.value === void 0 && i.label === t
|
|
1391
1391
|
)) ?? s.find(
|
|
1392
1392
|
(i) => i.value === t || i.value === void 0 && i.label === t
|
|
1393
|
-
), zo = "ids-select-search-input-
|
|
1393
|
+
), zo = "ids-select-search-input-v5142", Ks = {
|
|
1394
1394
|
selectSearchInput: zo
|
|
1395
1395
|
}, Tr = ie(
|
|
1396
1396
|
({
|
|
@@ -1402,7 +1402,7 @@ const Ro = ({
|
|
|
1402
1402
|
...n
|
|
1403
1403
|
}, o) => {
|
|
1404
1404
|
const l = fe(null), { isActiveInPopover: f, ...d } = Gt();
|
|
1405
|
-
return
|
|
1405
|
+
return Ee(o, () => l.current), /* @__PURE__ */ a(
|
|
1406
1406
|
Ge,
|
|
1407
1407
|
{
|
|
1408
1408
|
...n,
|
|
@@ -1441,57 +1441,57 @@ const Bo = ie(
|
|
|
1441
1441
|
limitMobile: p = 6,
|
|
1442
1442
|
noResultsText: g,
|
|
1443
1443
|
onChange: y,
|
|
1444
|
-
onClear:
|
|
1444
|
+
onClear: A,
|
|
1445
1445
|
onFocus: b,
|
|
1446
1446
|
options: S,
|
|
1447
1447
|
popoverProps: {
|
|
1448
1448
|
autoHighlight: F = !1,
|
|
1449
1449
|
append: w,
|
|
1450
|
-
prepend:
|
|
1450
|
+
prepend: C,
|
|
1451
1451
|
...x
|
|
1452
1452
|
} = {},
|
|
1453
1453
|
readOnly: H,
|
|
1454
|
-
value:
|
|
1454
|
+
value: M,
|
|
1455
1455
|
watermark: E = !0,
|
|
1456
1456
|
...W
|
|
1457
1457
|
}, U) => {
|
|
1458
|
-
const [J,
|
|
1458
|
+
const [J, $] = X(!1), { value: _, setValue: D } = bt({
|
|
1459
1459
|
component: "IressAutocomplete",
|
|
1460
1460
|
defaultValue: f,
|
|
1461
|
-
value:
|
|
1462
|
-
}), [B, O] = X(!1), { clearError:
|
|
1461
|
+
value: M
|
|
1462
|
+
}), [B, O] = X(!1), { clearError: P, debouncedQuery: q, error: te, loading: K, results: Q, stopSearch: pe } = Lt({
|
|
1463
1463
|
debounceThreshold: l,
|
|
1464
1464
|
initialOptions: u,
|
|
1465
1465
|
options: S,
|
|
1466
1466
|
query: yt(_)
|
|
1467
1467
|
}), Y = gi({
|
|
1468
|
-
debouncedQuery:
|
|
1468
|
+
debouncedQuery: q,
|
|
1469
1469
|
loading: K,
|
|
1470
1470
|
results: Q,
|
|
1471
1471
|
value: _
|
|
1472
1472
|
});
|
|
1473
1473
|
if (ee(() => {
|
|
1474
|
-
B && !J && Y.showResults &&
|
|
1474
|
+
B && !J && Y.showResults && $(!0);
|
|
1475
1475
|
}, [Y.showResults, J, B]), ee(() => {
|
|
1476
|
-
te &&
|
|
1476
|
+
te && $(!0);
|
|
1477
1477
|
}, [te]), H)
|
|
1478
1478
|
return /* @__PURE__ */ a(Ze, { value: _ });
|
|
1479
1479
|
const ce = (se, de) => {
|
|
1480
1480
|
y == null || y(se, de), D(de), O(!0);
|
|
1481
1481
|
}, ve = (se) => {
|
|
1482
|
-
|
|
1482
|
+
A == null || A(se), D("");
|
|
1483
1483
|
}, ne = (se) => {
|
|
1484
|
-
b == null || b(se), u != null && u.length &&
|
|
1484
|
+
b == null || b(se), u != null && u.length && $(!0);
|
|
1485
1485
|
}, he = (se) => {
|
|
1486
|
-
var
|
|
1487
|
-
const de = (
|
|
1486
|
+
var De;
|
|
1487
|
+
const de = (De = _e(se)) == null ? void 0 : De[0];
|
|
1488
1488
|
y == null || y(
|
|
1489
1489
|
Ie(de == null ? void 0 : de.label),
|
|
1490
1490
|
de == null ? void 0 : de.label,
|
|
1491
1491
|
de
|
|
1492
|
-
), D(de == null ? void 0 : de.label),
|
|
1492
|
+
), D(de == null ? void 0 : de.label), $(!1), O(!1);
|
|
1493
1493
|
}, ae = () => {
|
|
1494
|
-
pe(),
|
|
1494
|
+
pe(), P(), $(!1), _ && O(!1);
|
|
1495
1495
|
};
|
|
1496
1496
|
return /* @__PURE__ */ L(
|
|
1497
1497
|
Xt,
|
|
@@ -1526,13 +1526,13 @@ const Bo = ie(
|
|
|
1526
1526
|
),
|
|
1527
1527
|
"data-testid": o,
|
|
1528
1528
|
minLength: 0,
|
|
1529
|
-
onActivated: () => (B || e) &&
|
|
1529
|
+
onActivated: () => (B || e) && $(!0),
|
|
1530
1530
|
onDeactivated: ae,
|
|
1531
1531
|
show: J,
|
|
1532
1532
|
type: "listbox",
|
|
1533
1533
|
children: [
|
|
1534
1534
|
Y.showResults && /* @__PURE__ */ L(Je, { children: [
|
|
1535
|
-
|
|
1535
|
+
C,
|
|
1536
1536
|
/* @__PURE__ */ a(
|
|
1537
1537
|
xt,
|
|
1538
1538
|
{
|
|
@@ -1543,7 +1543,7 @@ const Bo = ie(
|
|
|
1543
1543
|
limitDesktop: m,
|
|
1544
1544
|
limitMobile: p,
|
|
1545
1545
|
onChange: he,
|
|
1546
|
-
selected: { label:
|
|
1546
|
+
selected: { label: q }
|
|
1547
1547
|
}
|
|
1548
1548
|
),
|
|
1549
1549
|
w
|
|
@@ -1562,7 +1562,7 @@ const Bo = ie(
|
|
|
1562
1562
|
}
|
|
1563
1563
|
);
|
|
1564
1564
|
Bo.displayName = "IressAutocomplete";
|
|
1565
|
-
const Eo = "ids-checkbox--label-
|
|
1565
|
+
const Eo = "ids-checkbox--label-v5142", Oo = "ids-checkbox--mark-v5142", Ho = "ids-checkbox--checked-v5142", Uo = "ids-checkbox--indeterminate-v5142", Wo = "ids-checkbox-v5142", qo = "ids-checkbox--hidden-control-v5142", Po = "ids-checkbox--input-v5142", jo = "ids-checkbox--touch-v5142", Qo = "ids-checkbox--hidden-label-v5142", Ko = "ids-checkbox--label-span-v5142", He = {
|
|
1566
1566
|
label: Eo,
|
|
1567
1567
|
mark: Oo,
|
|
1568
1568
|
checked: Ho,
|
|
@@ -1594,36 +1594,36 @@ const Eo = "ids-checkbox--label-v5141", Oo = "ids-checkbox--mark-v5141", Ho = "i
|
|
|
1594
1594
|
defaultValue: t,
|
|
1595
1595
|
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."
|
|
1596
1596
|
});
|
|
1597
|
-
const
|
|
1597
|
+
const A = fe(null), b = A.current, S = gs(), F = o ?? S, [w, C] = X(
|
|
1598
1598
|
n ?? !1
|
|
1599
|
-
), x = ys(Mn), H = x ? void 0 : t,
|
|
1600
|
-
value:
|
|
1599
|
+
), x = ys(Mn), H = x ? void 0 : t, M = x ? _e(x.value).includes(d) : e, E = (x == null ? void 0 : x.hiddenCheckbox) ?? r, W = (x == null ? void 0 : x.touch) ?? p, U = (x == null ? void 0 : x.readonly) ?? m, J = (x == null ? void 0 : x.name) ?? l, {
|
|
1600
|
+
value: $,
|
|
1601
1601
|
setValue: _,
|
|
1602
1602
|
isControlled: D
|
|
1603
1603
|
} = bt({
|
|
1604
1604
|
component: "IressCheckbox",
|
|
1605
1605
|
propName: "checked",
|
|
1606
1606
|
defaultValue: H,
|
|
1607
|
-
value:
|
|
1607
|
+
value: M
|
|
1608
1608
|
}), B = D ? n : w, O = Fe(
|
|
1609
|
-
(
|
|
1610
|
-
var
|
|
1611
|
-
D ||
|
|
1609
|
+
(P) => {
|
|
1610
|
+
var q;
|
|
1611
|
+
D || C(!1), _(P.target.checked), f == null || f(P, d), (q = x == null ? void 0 : x.onChange) == null || q.call(x, P, d);
|
|
1612
1612
|
},
|
|
1613
1613
|
[x, D, f, _, d]
|
|
1614
1614
|
);
|
|
1615
|
-
return
|
|
1615
|
+
return Ee(y, () => ({
|
|
1616
1616
|
// React hook form requires the focus, blur, input
|
|
1617
1617
|
focus: () => b == null ? void 0 : b.focus(),
|
|
1618
1618
|
blur: () => b == null ? void 0 : b.blur(),
|
|
1619
1619
|
input: b,
|
|
1620
|
-
check: (
|
|
1621
|
-
_(
|
|
1620
|
+
check: (P) => {
|
|
1621
|
+
_(P);
|
|
1622
1622
|
},
|
|
1623
1623
|
reset: () => {
|
|
1624
1624
|
_(!1);
|
|
1625
1625
|
}
|
|
1626
|
-
})), U ?
|
|
1626
|
+
})), U ? $ ? /* @__PURE__ */ a(
|
|
1627
1627
|
Ze,
|
|
1628
1628
|
{
|
|
1629
1629
|
...g,
|
|
@@ -1636,12 +1636,12 @@ const Eo = "ids-checkbox--label-v5141", Oo = "ids-checkbox--mark-v5141", Ho = "i
|
|
|
1636
1636
|
{
|
|
1637
1637
|
className: V(s, {
|
|
1638
1638
|
[Z.FormElement]: !0,
|
|
1639
|
-
[
|
|
1640
|
-
[
|
|
1641
|
-
[
|
|
1642
|
-
[
|
|
1643
|
-
[
|
|
1644
|
-
[
|
|
1639
|
+
[He.checkbox]: !0,
|
|
1640
|
+
[He.checked]: $,
|
|
1641
|
+
[He.hiddenControl]: E,
|
|
1642
|
+
[He.hiddenLabel]: i,
|
|
1643
|
+
[He.indeterminate]: B,
|
|
1644
|
+
[He.touch]: W
|
|
1645
1645
|
}),
|
|
1646
1646
|
children: [
|
|
1647
1647
|
/* @__PURE__ */ a(
|
|
@@ -1651,11 +1651,11 @@ const Eo = "ids-checkbox--label-v5141", Oo = "ids-checkbox--mark-v5141", Ho = "i
|
|
|
1651
1651
|
value: gt(d),
|
|
1652
1652
|
type: "checkbox",
|
|
1653
1653
|
id: F,
|
|
1654
|
-
defaultChecked: D ? void 0 :
|
|
1655
|
-
checked: D ?
|
|
1656
|
-
className: V(
|
|
1654
|
+
defaultChecked: D ? void 0 : $,
|
|
1655
|
+
checked: D ? $ : void 0,
|
|
1656
|
+
className: V(He.input, Z.SROnly),
|
|
1657
1657
|
onChange: O,
|
|
1658
|
-
ref:
|
|
1658
|
+
ref: A,
|
|
1659
1659
|
name: J
|
|
1660
1660
|
}
|
|
1661
1661
|
),
|
|
@@ -1664,21 +1664,21 @@ const Eo = "ids-checkbox--label-v5141", Oo = "ids-checkbox--mark-v5141", Ho = "i
|
|
|
1664
1664
|
{
|
|
1665
1665
|
htmlFor: F,
|
|
1666
1666
|
className: V({
|
|
1667
|
-
[
|
|
1667
|
+
[He.label]: !0
|
|
1668
1668
|
}),
|
|
1669
1669
|
children: [
|
|
1670
1670
|
!E && /* @__PURE__ */ a(
|
|
1671
1671
|
Dn,
|
|
1672
1672
|
{
|
|
1673
|
-
className:
|
|
1674
|
-
checked:
|
|
1673
|
+
className: He.mark,
|
|
1674
|
+
checked: $,
|
|
1675
1675
|
indeterminate: B
|
|
1676
1676
|
}
|
|
1677
1677
|
),
|
|
1678
1678
|
/* @__PURE__ */ a(
|
|
1679
1679
|
"span",
|
|
1680
1680
|
{
|
|
1681
|
-
className: V(
|
|
1681
|
+
className: V(He.labelSpan, {
|
|
1682
1682
|
[Z.SROnly]: i
|
|
1683
1683
|
}),
|
|
1684
1684
|
children: u
|
|
@@ -1743,41 +1743,41 @@ const Vs = ({
|
|
|
1743
1743
|
limitMobile: p = 6,
|
|
1744
1744
|
name: g,
|
|
1745
1745
|
noResultsText: y,
|
|
1746
|
-
onBlur:
|
|
1746
|
+
onBlur: A,
|
|
1747
1747
|
onChange: b,
|
|
1748
1748
|
onClear: S,
|
|
1749
1749
|
onFocus: F,
|
|
1750
1750
|
onKeyDown: w,
|
|
1751
|
-
options:
|
|
1751
|
+
options: C,
|
|
1752
1752
|
popoverProps: {
|
|
1753
1753
|
append: x,
|
|
1754
1754
|
prepend: H,
|
|
1755
|
-
...
|
|
1755
|
+
...M
|
|
1756
1756
|
} = {},
|
|
1757
1757
|
readOnly: E,
|
|
1758
1758
|
required: W,
|
|
1759
1759
|
value: U,
|
|
1760
1760
|
watermark: J = !0,
|
|
1761
|
-
|
|
1761
|
+
...$
|
|
1762
1762
|
}, _) => {
|
|
1763
1763
|
nt({
|
|
1764
1764
|
component: "IressCombobox",
|
|
1765
1765
|
defaultValue: l
|
|
1766
1766
|
});
|
|
1767
|
-
const D =
|
|
1767
|
+
const D = Oe({ id: d }), B = `${D}-sr-text`, O = fe(null), [P, q] = X(!1), { value: te, setValue: K, getLabelsString: Q, getValuesString: pe } = Jt({
|
|
1768
1768
|
component: "IressCombobox",
|
|
1769
1769
|
defaultValue: l,
|
|
1770
1770
|
value: U
|
|
1771
1771
|
}), [Y, ce] = X(""), [ve, ne] = X(Q()), { debouncedQuery: he, loading: ae, results: se, stopSearch: de } = Lt({
|
|
1772
1772
|
debounceThreshold: o,
|
|
1773
1773
|
initialOptions: u,
|
|
1774
|
-
options:
|
|
1774
|
+
options: C,
|
|
1775
1775
|
query: Y
|
|
1776
|
-
}),
|
|
1776
|
+
}), De = Lr({
|
|
1777
1777
|
debouncedQuery: he,
|
|
1778
1778
|
loading: ae,
|
|
1779
1779
|
results: se
|
|
1780
|
-
}),
|
|
1780
|
+
}), je = vi({
|
|
1781
1781
|
autoSelect: t,
|
|
1782
1782
|
debouncedQuery: he,
|
|
1783
1783
|
debounceThreshold: o,
|
|
@@ -1791,23 +1791,23 @@ const Vs = ({
|
|
|
1791
1791
|
return /* @__PURE__ */ a(Ze, { value: pe(), children: Q() });
|
|
1792
1792
|
const Ne = (I) => {
|
|
1793
1793
|
const N = I.target.value;
|
|
1794
|
-
ce(N), ne(N), N || (K(void 0), b == null || b(Ie(void 0), void 0), u &&
|
|
1795
|
-
},
|
|
1796
|
-
S == null || S(I), ce(""), ne(""), K(void 0),
|
|
1794
|
+
ce(N), ne(N), N || (K(void 0), b == null || b(Ie(void 0), void 0), u && q(!0));
|
|
1795
|
+
}, $e = (I) => {
|
|
1796
|
+
S == null || S(I), ce(""), ne(""), K(void 0), q(!1);
|
|
1797
1797
|
}, it = (I) => {
|
|
1798
1798
|
F == null || F(I), Y || ce(ve);
|
|
1799
1799
|
}, zt = (I) => {
|
|
1800
|
-
|
|
1800
|
+
A == null || A(I), ne(te ? Q() : "");
|
|
1801
1801
|
}, Bt = (I) => {
|
|
1802
|
-
w == null || w(I),
|
|
1802
|
+
w == null || w(I), je.setKeyPressed(I.nativeEvent);
|
|
1803
1803
|
}, c = (I) => {
|
|
1804
1804
|
var k;
|
|
1805
1805
|
const N = (k = _e(I)) == null ? void 0 : k[0];
|
|
1806
|
-
K(N), b == null || b(Ie(N), N), ne(N == null ? void 0 : N.label),
|
|
1806
|
+
K(N), b == null || b(Ie(N), N), ne(N == null ? void 0 : N.label), q(!1);
|
|
1807
1807
|
}, h = () => {
|
|
1808
|
-
|
|
1808
|
+
q(!1), de();
|
|
1809
1809
|
}, v = (I) => {
|
|
1810
|
-
I !== null && (
|
|
1810
|
+
I !== null && (je.setKeyPressed(void 0), je.highlightQueryByActiveIndex(I));
|
|
1811
1811
|
};
|
|
1812
1812
|
return /* @__PURE__ */ L(
|
|
1813
1813
|
"div",
|
|
@@ -1818,11 +1818,11 @@ const Vs = ({
|
|
|
1818
1818
|
/* @__PURE__ */ a(
|
|
1819
1819
|
Xt,
|
|
1820
1820
|
{
|
|
1821
|
-
...
|
|
1821
|
+
...M,
|
|
1822
1822
|
activator: /* @__PURE__ */ a(
|
|
1823
1823
|
Ge,
|
|
1824
1824
|
{
|
|
1825
|
-
|
|
1825
|
+
...$,
|
|
1826
1826
|
append: e,
|
|
1827
1827
|
autoComplete: s,
|
|
1828
1828
|
"aria-describedby": B,
|
|
@@ -1832,7 +1832,7 @@ const Vs = ({
|
|
|
1832
1832
|
id: D,
|
|
1833
1833
|
onBlur: zt,
|
|
1834
1834
|
onChange: Ne,
|
|
1835
|
-
onClear:
|
|
1835
|
+
onClear: $e,
|
|
1836
1836
|
onFocus: it,
|
|
1837
1837
|
onKeyDown: Bt,
|
|
1838
1838
|
ref: O,
|
|
@@ -1842,11 +1842,11 @@ const Vs = ({
|
|
|
1842
1842
|
),
|
|
1843
1843
|
className: V(r, rt.popover),
|
|
1844
1844
|
contentClassName: rt.popoverContent,
|
|
1845
|
-
minLength: u != null && u.length ? 0 :
|
|
1846
|
-
onActivated: () =>
|
|
1845
|
+
minLength: u != null && u.length ? 0 : $.minLength,
|
|
1846
|
+
onActivated: () => q(!0),
|
|
1847
1847
|
onDeactivated: h,
|
|
1848
1848
|
onNavigate: v,
|
|
1849
|
-
show:
|
|
1849
|
+
show: P,
|
|
1850
1850
|
type: "listbox",
|
|
1851
1851
|
"data-testid": T(n, "popover"),
|
|
1852
1852
|
children: /* @__PURE__ */ a(
|
|
@@ -1861,8 +1861,8 @@ const Vs = ({
|
|
|
1861
1861
|
prepend: H,
|
|
1862
1862
|
items: se,
|
|
1863
1863
|
selected: te,
|
|
1864
|
-
showNoResults:
|
|
1865
|
-
showResults:
|
|
1864
|
+
showNoResults: De.showNoResults,
|
|
1865
|
+
showResults: De.showResults
|
|
1866
1866
|
}
|
|
1867
1867
|
)
|
|
1868
1868
|
}
|
|
@@ -1896,7 +1896,7 @@ const Vs = ({
|
|
|
1896
1896
|
Rs.displayName = "IressCombobox";
|
|
1897
1897
|
Rs.DisplayMode = In;
|
|
1898
1898
|
Rs.Width = xs;
|
|
1899
|
-
const Jo = "ids-tag-
|
|
1899
|
+
const Jo = "ids-tag-v5142", Zo = "ids-tag--content-v5142", Ys = {
|
|
1900
1900
|
tag: Jo,
|
|
1901
1901
|
content: Zo
|
|
1902
1902
|
}, qt = ({
|
|
@@ -1933,24 +1933,24 @@ const Jo = "ids-tag-v5141", Zo = "ids-tag--content-v5141", Ys = {
|
|
|
1933
1933
|
]
|
|
1934
1934
|
}
|
|
1935
1935
|
);
|
|
1936
|
-
}, Go = "ids-tag-list-input--input-
|
|
1936
|
+
}, Go = "ids-tag-list-input--input-v5142", ea = "ids-tag-list-input--readonly-v5142", ta = "ids-tag-list-input-v5142 ids-tag-list-input--input-v5142", sa = "ids-tag-list-input--tag-list-input__label-v5142", ra = "ids-tag-list-input--tag-list-input__items-v5142", na = "ids-tag-list-input--tag-list-input__items-inner-v5142", ia = "ids-tag-list-input--focus-v5142", oa = {
|
|
1937
1937
|
input: Go,
|
|
1938
1938
|
readonly: ea,
|
|
1939
|
-
"ids-field-group--join": "ids-field-group--join-
|
|
1940
|
-
"ids-field-group--fields": "ids-field-group--fields-
|
|
1941
|
-
"ids-field": "ids-field-
|
|
1939
|
+
"ids-field-group--join": "ids-field-group--join-v5142",
|
|
1940
|
+
"ids-field-group--fields": "ids-field-group--fields-v5142",
|
|
1941
|
+
"ids-field": "ids-field-v5142",
|
|
1942
1942
|
tagListInput: ta,
|
|
1943
|
-
"ids-input--addon": "ids-input--addon-
|
|
1944
|
-
"ids-clear-button--clear": "ids-clear-button--clear-
|
|
1943
|
+
"ids-input--addon": "ids-input--addon-v5142",
|
|
1944
|
+
"ids-clear-button--clear": "ids-clear-button--clear-v5142",
|
|
1945
1945
|
tagListInput__label: sa,
|
|
1946
1946
|
tagListInput__items: ra,
|
|
1947
|
-
"ids-input--watermark": "ids-input--watermark-
|
|
1948
|
-
"ids-inline": "ids-inline-
|
|
1949
|
-
"ids-input": "ids-input-
|
|
1947
|
+
"ids-input--watermark": "ids-input--watermark-v5142",
|
|
1948
|
+
"ids-inline": "ids-inline-v5142",
|
|
1949
|
+
"ids-input": "ids-input-v5142",
|
|
1950
1950
|
tagListInput__itemsInner: na,
|
|
1951
|
-
"iress-u-inline": "ids-tag-list-input--iress-u-inline-
|
|
1952
|
-
"ids-tag": "ids-tag-
|
|
1953
|
-
"pseudo-focus": "ids-tag-list-input--pseudo-focus-
|
|
1951
|
+
"iress-u-inline": "ids-tag-list-input--iress-u-inline-v5142",
|
|
1952
|
+
"ids-tag": "ids-tag-v5142",
|
|
1953
|
+
"pseudo-focus": "ids-tag-list-input--pseudo-focus-v5142",
|
|
1954
1954
|
focus: ia
|
|
1955
1955
|
}, et = ({
|
|
1956
1956
|
children: e,
|
|
@@ -2026,7 +2026,7 @@ const aa = ({
|
|
|
2026
2026
|
tagLimit: p = 5,
|
|
2027
2027
|
watermark: g,
|
|
2028
2028
|
...y
|
|
2029
|
-
},
|
|
2029
|
+
}, A) => {
|
|
2030
2030
|
const b = (S) => (u == null ? void 0 : u[S]) ?? oa[S];
|
|
2031
2031
|
return /* @__PURE__ */ a(
|
|
2032
2032
|
"div",
|
|
@@ -2072,7 +2072,7 @@ const aa = ({
|
|
|
2072
2072
|
className: b("tagListInput__element"),
|
|
2073
2073
|
autoComplete: "off",
|
|
2074
2074
|
"data-testid": T(r, "input"),
|
|
2075
|
-
ref:
|
|
2075
|
+
ref: A
|
|
2076
2076
|
}
|
|
2077
2077
|
)
|
|
2078
2078
|
] }) }),
|
|
@@ -2111,29 +2111,29 @@ const la = ie(
|
|
|
2111
2111
|
limitMobile: p = 6,
|
|
2112
2112
|
multiOptionTagLimit: g = 4,
|
|
2113
2113
|
name: y,
|
|
2114
|
-
noResultsText:
|
|
2114
|
+
noResultsText: A,
|
|
2115
2115
|
onChange: b,
|
|
2116
2116
|
onClear: S,
|
|
2117
2117
|
options: F,
|
|
2118
2118
|
popoverProps: {
|
|
2119
2119
|
autoHighlight: w = !1,
|
|
2120
|
-
append:
|
|
2120
|
+
append: C,
|
|
2121
2121
|
prepend: x,
|
|
2122
2122
|
...H
|
|
2123
2123
|
} = {},
|
|
2124
|
-
readOnly:
|
|
2124
|
+
readOnly: M,
|
|
2125
2125
|
required: E,
|
|
2126
2126
|
selectedOptionsTagText: W = "options selected",
|
|
2127
2127
|
type: U = "search",
|
|
2128
2128
|
value: J,
|
|
2129
|
-
watermark:
|
|
2129
|
+
watermark: $ = !0,
|
|
2130
2130
|
..._
|
|
2131
2131
|
}, D) => {
|
|
2132
2132
|
nt({
|
|
2133
2133
|
component: "IressMultiCombobox",
|
|
2134
2134
|
defaultValue: l
|
|
2135
2135
|
});
|
|
2136
|
-
const B =
|
|
2136
|
+
const B = Oe({ id: d }), O = `${B}-sr-text`, [P, q] = X(!1), {
|
|
2137
2137
|
value: te,
|
|
2138
2138
|
setValue: K,
|
|
2139
2139
|
getValuesString: Q,
|
|
@@ -2154,18 +2154,18 @@ const la = ie(
|
|
|
2154
2154
|
loading: he,
|
|
2155
2155
|
results: ae
|
|
2156
2156
|
});
|
|
2157
|
-
if (
|
|
2157
|
+
if (M)
|
|
2158
2158
|
return /* @__PURE__ */ a(Ze, { value: Q(), children: Y(", ") });
|
|
2159
|
-
const
|
|
2159
|
+
const De = (c) => {
|
|
2160
2160
|
ve(c.target.value);
|
|
2161
|
-
},
|
|
2161
|
+
}, je = (c) => {
|
|
2162
2162
|
S == null || S(c), ve(""), K([]);
|
|
2163
2163
|
}, Ne = (c) => {
|
|
2164
2164
|
if (!ce && c.key === "Backspace") {
|
|
2165
2165
|
const h = _e(te).slice(0, -1);
|
|
2166
2166
|
b == null || b(Ie(h), h), K(h);
|
|
2167
2167
|
}
|
|
2168
|
-
},
|
|
2168
|
+
}, $e = (c) => {
|
|
2169
2169
|
const h = [], v = _e(c).filter((I) => {
|
|
2170
2170
|
const N = I.value ?? I.label;
|
|
2171
2171
|
return h.includes(N) ? !1 : (h.push(N), !0);
|
|
@@ -2177,7 +2177,7 @@ const la = ie(
|
|
|
2177
2177
|
}, zt = () => {
|
|
2178
2178
|
b == null || b(Ie([]), []), K([]);
|
|
2179
2179
|
}, Bt = () => {
|
|
2180
|
-
|
|
2180
|
+
q(!1), se();
|
|
2181
2181
|
};
|
|
2182
2182
|
return /* @__PURE__ */ L(
|
|
2183
2183
|
"div",
|
|
@@ -2201,8 +2201,8 @@ const la = ie(
|
|
|
2201
2201
|
id: B,
|
|
2202
2202
|
loading: he,
|
|
2203
2203
|
minLength: u != null && u.length ? 0 : _.minLength,
|
|
2204
|
-
onChange:
|
|
2205
|
-
onClear:
|
|
2204
|
+
onChange: De,
|
|
2205
|
+
onClear: je,
|
|
2206
2206
|
onKeyDown: Ne,
|
|
2207
2207
|
onTagDelete: it,
|
|
2208
2208
|
onTagDeleteAll: zt,
|
|
@@ -2211,28 +2211,28 @@ const la = ie(
|
|
|
2211
2211
|
tags: pe(),
|
|
2212
2212
|
type: U,
|
|
2213
2213
|
value: ce,
|
|
2214
|
-
watermark:
|
|
2214
|
+
watermark: $
|
|
2215
2215
|
}
|
|
2216
2216
|
),
|
|
2217
2217
|
autoHighlight: w,
|
|
2218
2218
|
className: V(r, rt.input),
|
|
2219
2219
|
contentClassName: rt.popoverContent,
|
|
2220
|
-
onActivated: () =>
|
|
2220
|
+
onActivated: () => q(!0),
|
|
2221
2221
|
onDeactivated: Bt,
|
|
2222
|
-
show:
|
|
2222
|
+
show: P,
|
|
2223
2223
|
type: "listbox",
|
|
2224
2224
|
"data-testid": T(n, "popover"),
|
|
2225
2225
|
children: /* @__PURE__ */ a(
|
|
2226
2226
|
zr,
|
|
2227
2227
|
{
|
|
2228
|
-
append:
|
|
2228
|
+
append: C,
|
|
2229
2229
|
changeOnBlur: t,
|
|
2230
2230
|
dataTestId: n,
|
|
2231
2231
|
limitDesktop: m,
|
|
2232
2232
|
limitMobile: p,
|
|
2233
2233
|
multiSelect: !0,
|
|
2234
|
-
noResultsText:
|
|
2235
|
-
onChange:
|
|
2234
|
+
noResultsText: A,
|
|
2235
|
+
onChange: $e,
|
|
2236
2236
|
prepend: x,
|
|
2237
2237
|
items: ae,
|
|
2238
2238
|
selected: te,
|
|
@@ -2260,7 +2260,7 @@ const la = ie(
|
|
|
2260
2260
|
"data-testid": T(n, "results-sr-text"),
|
|
2261
2261
|
id: O,
|
|
2262
2262
|
loading: he,
|
|
2263
|
-
noResultsText:
|
|
2263
|
+
noResultsText: A,
|
|
2264
2264
|
results: ae
|
|
2265
2265
|
}
|
|
2266
2266
|
)
|
|
@@ -2270,7 +2270,7 @@ const la = ie(
|
|
|
2270
2270
|
}
|
|
2271
2271
|
);
|
|
2272
2272
|
la.displayName = "IressMultiCombobox";
|
|
2273
|
-
const ca = "ids-filter-
|
|
2273
|
+
const ca = "ids-filter-v5142", da = "ids-filter--chevron-v5142", ua = "ids-filter--search-input-v5142", fa = "ids-filter--option-list-v5142", ma = "ids-filter--no-results-v5142", ha = "ids-filter--utils-with-reset-v5142", pa = "ids-filter--utils-searchable-v5142", va = "ids-filter--option-content-v5142", ga = "ids-filter--option-meta-v5142", ya = "ids-filter--option-meta-text-v5142", ba = "ids-filter--reset-v5142", ze = {
|
|
2274
2274
|
filter: ca,
|
|
2275
2275
|
chevron: da,
|
|
2276
2276
|
searchInput: ua,
|
|
@@ -2285,14 +2285,14 @@ const ca = "ids-filter-v5141", da = "ids-filter--chevron-v5141", ua = "ids-filte
|
|
|
2285
2285
|
}, Br = ie(
|
|
2286
2286
|
(e, s) => {
|
|
2287
2287
|
const t = fe(null), { isActiveInPopover: r, ...i } = Gt();
|
|
2288
|
-
return
|
|
2288
|
+
return Ee(s, () => t.current), /* @__PURE__ */ a(
|
|
2289
2289
|
Ge,
|
|
2290
2290
|
{
|
|
2291
2291
|
...e,
|
|
2292
2292
|
...i,
|
|
2293
2293
|
autoCorrect: "off",
|
|
2294
|
-
className: V(
|
|
2295
|
-
[
|
|
2294
|
+
className: V(ze.searchInput, {
|
|
2295
|
+
[ze.isActiveInPopover]: r
|
|
2296
2296
|
}),
|
|
2297
2297
|
ref: (n) => {
|
|
2298
2298
|
var o, l;
|
|
@@ -2307,13 +2307,13 @@ Br.displayName = "FilterSearch";
|
|
|
2307
2307
|
const Er = ie(
|
|
2308
2308
|
(e, s) => {
|
|
2309
2309
|
const t = fe(null), { isActiveInPopover: r, ...i } = Gt();
|
|
2310
|
-
return
|
|
2310
|
+
return Ee(s, () => t.current), /* @__PURE__ */ a(
|
|
2311
2311
|
Re,
|
|
2312
2312
|
{
|
|
2313
2313
|
...e,
|
|
2314
2314
|
...i,
|
|
2315
|
-
className: V(
|
|
2316
|
-
[
|
|
2315
|
+
className: V(ze.reset, {
|
|
2316
|
+
[ze.isActiveInPopover]: r
|
|
2317
2317
|
}),
|
|
2318
2318
|
mode: Re.Mode.Link,
|
|
2319
2319
|
ref: (n) => {
|
|
@@ -2349,18 +2349,18 @@ const Xs = {
|
|
|
2349
2349
|
onReset: g,
|
|
2350
2350
|
options: y,
|
|
2351
2351
|
popoverProps: {
|
|
2352
|
-
append:
|
|
2352
|
+
append: A,
|
|
2353
2353
|
prepend: b,
|
|
2354
2354
|
...S
|
|
2355
2355
|
} = Xs,
|
|
2356
2356
|
searchable: F,
|
|
2357
2357
|
searchNoResultsText: w,
|
|
2358
|
-
selectedOptionsText:
|
|
2358
|
+
selectedOptionsText: C,
|
|
2359
2359
|
value: x,
|
|
2360
2360
|
visibleResetButton: H,
|
|
2361
|
-
...
|
|
2361
|
+
...M
|
|
2362
2362
|
}, E) => {
|
|
2363
|
-
const W =
|
|
2363
|
+
const W = Oe({ id: n }), U = `${W}-sr-text`, J = fe(null), $ = Se(
|
|
2364
2364
|
() => F ?? typeof y == "function",
|
|
2365
2365
|
[y, F]
|
|
2366
2366
|
), _ = {
|
|
@@ -2373,39 +2373,39 @@ const Xs = {
|
|
|
2373
2373
|
defaultValue: i,
|
|
2374
2374
|
multiple: m,
|
|
2375
2375
|
value: x
|
|
2376
|
-
}), [
|
|
2377
|
-
|
|
2376
|
+
}), [P, q] = X(""), [te, K] = X(!1), Q = (se) => {
|
|
2377
|
+
q(se.target.value);
|
|
2378
2378
|
}, pe = () => {
|
|
2379
|
-
|
|
2379
|
+
q("");
|
|
2380
2380
|
}, Y = (se) => {
|
|
2381
2381
|
p == null || p(se), O(se), m || K(!1);
|
|
2382
2382
|
}, ce = () => {
|
|
2383
2383
|
O(void 0), g == null || g(), m || K(!1);
|
|
2384
2384
|
};
|
|
2385
|
-
|
|
2385
|
+
Ee(E, () => ({
|
|
2386
2386
|
element: J.current ?? void 0,
|
|
2387
|
-
clearSearch: () =>
|
|
2387
|
+
clearSearch: () => q(""),
|
|
2388
2388
|
reset: () => O(i)
|
|
2389
2389
|
}));
|
|
2390
2390
|
const { debouncedQuery: ve, loading: ne, results: he } = Lt({
|
|
2391
2391
|
debounceThreshold: r,
|
|
2392
2392
|
initialOptions: o ?? (typeof y == "function" ? void 0 : y),
|
|
2393
2393
|
options: y,
|
|
2394
|
-
query:
|
|
2394
|
+
query: P
|
|
2395
2395
|
}), ae = ui({
|
|
2396
2396
|
debouncedQuery: ve,
|
|
2397
2397
|
loading: ne,
|
|
2398
2398
|
results: he,
|
|
2399
|
-
searchable:
|
|
2399
|
+
searchable: $,
|
|
2400
2400
|
visibleResetButton: H
|
|
2401
2401
|
});
|
|
2402
2402
|
return /* @__PURE__ */ L(
|
|
2403
2403
|
"div",
|
|
2404
2404
|
{
|
|
2405
|
-
...
|
|
2406
|
-
className: V(s,
|
|
2407
|
-
[
|
|
2408
|
-
[
|
|
2405
|
+
...M,
|
|
2406
|
+
className: V(s, ze.filter, {
|
|
2407
|
+
[ze.multiSelect]: m,
|
|
2408
|
+
[ze.searchable]: F
|
|
2409
2409
|
}),
|
|
2410
2410
|
"data-testid": t,
|
|
2411
2411
|
id: W,
|
|
@@ -2429,11 +2429,11 @@ const Xs = {
|
|
|
2429
2429
|
fi,
|
|
2430
2430
|
{
|
|
2431
2431
|
label: u,
|
|
2432
|
-
selectedOptionsText:
|
|
2432
|
+
selectedOptionsText: C,
|
|
2433
2433
|
value: B
|
|
2434
2434
|
}
|
|
2435
2435
|
),
|
|
2436
|
-
/* @__PURE__ */ a("span", { className:
|
|
2436
|
+
/* @__PURE__ */ a("span", { className: ze.chevron })
|
|
2437
2437
|
]
|
|
2438
2438
|
}
|
|
2439
2439
|
),
|
|
@@ -2445,12 +2445,12 @@ const Xs = {
|
|
|
2445
2445
|
children: [
|
|
2446
2446
|
b,
|
|
2447
2447
|
ae.showHeader && /* @__PURE__ */ L(Je, { children: [
|
|
2448
|
-
/* @__PURE__ */ L(
|
|
2449
|
-
|
|
2448
|
+
/* @__PURE__ */ L($s, { background: "transparent", children: [
|
|
2449
|
+
$ && /* @__PURE__ */ a(
|
|
2450
2450
|
Br,
|
|
2451
2451
|
{
|
|
2452
2452
|
..._,
|
|
2453
|
-
className:
|
|
2453
|
+
className: ze.searchInput,
|
|
2454
2454
|
"data-testid": T(t, "input"),
|
|
2455
2455
|
loading: ne,
|
|
2456
2456
|
onChange: Q,
|
|
@@ -2471,7 +2471,7 @@ const Xs = {
|
|
|
2471
2471
|
ae.showResults && /* @__PURE__ */ a(
|
|
2472
2472
|
xt,
|
|
2473
2473
|
{
|
|
2474
|
-
className:
|
|
2474
|
+
className: ze.optionList,
|
|
2475
2475
|
"data-testid": T(t, "menu"),
|
|
2476
2476
|
items: he,
|
|
2477
2477
|
limitDesktop: f,
|
|
@@ -2486,10 +2486,10 @@ const Xs = {
|
|
|
2486
2486
|
Ss,
|
|
2487
2487
|
{
|
|
2488
2488
|
noResultsText: w,
|
|
2489
|
-
styles:
|
|
2489
|
+
styles: ze
|
|
2490
2490
|
}
|
|
2491
2491
|
),
|
|
2492
|
-
|
|
2492
|
+
A
|
|
2493
2493
|
]
|
|
2494
2494
|
}
|
|
2495
2495
|
),
|
|
@@ -2516,7 +2516,7 @@ var me = (e) => !ke(e) && !Array.isArray(e) && Or(e) && !dt(e), Hr = (e) => me(e
|
|
|
2516
2516
|
const s = e.constructor && e.constructor.prototype;
|
|
2517
2517
|
return me(s) && s.hasOwnProperty("isPrototypeOf");
|
|
2518
2518
|
}, Ds = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
2519
|
-
function
|
|
2519
|
+
function Ae(e) {
|
|
2520
2520
|
let s;
|
|
2521
2521
|
const t = Array.isArray(e);
|
|
2522
2522
|
if (e instanceof Date)
|
|
@@ -2528,7 +2528,7 @@ function $e(e) {
|
|
|
2528
2528
|
s = e;
|
|
2529
2529
|
else
|
|
2530
2530
|
for (const r in e)
|
|
2531
|
-
e.hasOwnProperty(r) && (s[r] =
|
|
2531
|
+
e.hasOwnProperty(r) && (s[r] = Ae(e[r]));
|
|
2532
2532
|
else
|
|
2533
2533
|
return e;
|
|
2534
2534
|
return s;
|
|
@@ -2538,7 +2538,7 @@ var es = (e) => Array.isArray(e) ? e.filter(Boolean) : [], ue = (e) => e === voi
|
|
|
2538
2538
|
return t;
|
|
2539
2539
|
const r = es(s.split(/[,[\].]+?/)).reduce((i, n) => ke(i) ? i : i[n], e);
|
|
2540
2540
|
return ue(r) || r === e ? ue(e[s]) ? t : e[s] : r;
|
|
2541
|
-
},
|
|
2541
|
+
}, Me = (e) => typeof e == "boolean", Ms = (e) => /^\w*$/.test(e), Wr = (e) => es(e.replace(/["|']|\]/g, "").split(/\.|\[/)), re = (e, s, t) => {
|
|
2542
2542
|
let r = -1;
|
|
2543
2543
|
const i = Ms(s) ? [s] : Wr(s), n = i.length, o = n - 1;
|
|
2544
2544
|
for (; ++r < n; ) {
|
|
@@ -2558,13 +2558,13 @@ const Pt = {
|
|
|
2558
2558
|
BLUR: "blur",
|
|
2559
2559
|
FOCUS_OUT: "focusout",
|
|
2560
2560
|
CHANGE: "change"
|
|
2561
|
-
},
|
|
2561
|
+
}, Be = {
|
|
2562
2562
|
onBlur: "onBlur",
|
|
2563
2563
|
onChange: "onChange",
|
|
2564
2564
|
onSubmit: "onSubmit",
|
|
2565
2565
|
onTouched: "onTouched",
|
|
2566
2566
|
all: "all"
|
|
2567
|
-
},
|
|
2567
|
+
}, Qe = {
|
|
2568
2568
|
max: "max",
|
|
2569
2569
|
min: "min",
|
|
2570
2570
|
maxLength: "maxLength",
|
|
@@ -2584,15 +2584,15 @@ var Pr = (e, s, t, r = !0) => {
|
|
|
2584
2584
|
Object.defineProperty(i, n, {
|
|
2585
2585
|
get: () => {
|
|
2586
2586
|
const o = n;
|
|
2587
|
-
return s._proxyFormState[o] !==
|
|
2587
|
+
return s._proxyFormState[o] !== Be.all && (s._proxyFormState[o] = !r || Be.all), t && (t[o] = !0), e[o];
|
|
2588
2588
|
}
|
|
2589
2589
|
});
|
|
2590
2590
|
return i;
|
|
2591
2591
|
}, Ve = (e) => me(e) && !Object.keys(e).length, jr = (e, s, t, r) => {
|
|
2592
2592
|
t(e);
|
|
2593
2593
|
const { name: i, ...n } = e;
|
|
2594
|
-
return Ve(n) || Object.keys(n).length >= Object.keys(s).length || Object.keys(n).find((o) => s[o] === (!r ||
|
|
2595
|
-
},
|
|
2594
|
+
return Ve(n) || Object.keys(n).length >= Object.keys(s).length || Object.keys(n).find((o) => s[o] === (!r || Be.all));
|
|
2595
|
+
}, At = (e) => Array.isArray(e) ? e : [e], Qr = (e, s, t) => !e || !s || e === s || At(e).some((r) => r && (t ? r === s : r.startsWith(s) || s.startsWith(r)));
|
|
2596
2596
|
function Cs(e) {
|
|
2597
2597
|
const s = G.useRef(e);
|
|
2598
2598
|
s.current = e, G.useEffect(() => {
|
|
@@ -2626,14 +2626,14 @@ function wa(e) {
|
|
|
2626
2626
|
f.current = !1;
|
|
2627
2627
|
}), [t]), Pr(o, t, d.current, !1);
|
|
2628
2628
|
}
|
|
2629
|
-
var
|
|
2629
|
+
var qe = (e) => typeof e == "string", Kr = (e, s, t, r, i) => qe(e) ? (r && s.watch.add(e), R(t, e, i)) : Array.isArray(e) ? e.map((n) => (r && s.watch.add(n), R(t, n))) : (r && (s.watchAll = !0), t);
|
|
2630
2630
|
function Yr(e) {
|
|
2631
2631
|
const s = ts(), { control: t = s.control, name: r, defaultValue: i, disabled: n, exact: o } = e || {}, l = G.useRef(r);
|
|
2632
2632
|
l.current = r, Cs({
|
|
2633
2633
|
disabled: n,
|
|
2634
2634
|
subject: t._subjects.values,
|
|
2635
2635
|
next: (u) => {
|
|
2636
|
-
Qr(l.current, u.name, o) && d(
|
|
2636
|
+
Qr(l.current, u.name, o) && d(Ae(Kr(l.current, t._names, u.values || t._formValues, !1, i)));
|
|
2637
2637
|
}
|
|
2638
2638
|
});
|
|
2639
2639
|
const [f, d] = G.useState(t._getWatch(r, i));
|
|
@@ -2652,7 +2652,7 @@ function Vu(e) {
|
|
|
2652
2652
|
}), d = G.useRef(i.register(t, {
|
|
2653
2653
|
...e.rules,
|
|
2654
2654
|
value: l,
|
|
2655
|
-
...
|
|
2655
|
+
...Me(e.disabled) ? { disabled: e.disabled } : {}
|
|
2656
2656
|
}));
|
|
2657
2657
|
return G.useEffect(() => {
|
|
2658
2658
|
const u = i._options.shouldUnregister || n, m = (p, g) => {
|
|
@@ -2660,7 +2660,7 @@ function Vu(e) {
|
|
|
2660
2660
|
y && y._f && (y._f.mount = g);
|
|
2661
2661
|
};
|
|
2662
2662
|
if (m(t, !0), u) {
|
|
2663
|
-
const p =
|
|
2663
|
+
const p = Ae(R(i._options.defaultValues, t));
|
|
2664
2664
|
re(i._defaultValues, t, p), ue(R(i._formValues, t)) && re(i._formValues, t, p);
|
|
2665
2665
|
}
|
|
2666
2666
|
return () => {
|
|
@@ -2677,7 +2677,7 @@ function Vu(e) {
|
|
|
2677
2677
|
field: {
|
|
2678
2678
|
name: t,
|
|
2679
2679
|
value: l,
|
|
2680
|
-
...
|
|
2680
|
+
...Me(r) || f.disabled ? { disabled: f.disabled || r } : {},
|
|
2681
2681
|
onChange: G.useCallback((u) => d.current.onChange({
|
|
2682
2682
|
target: {
|
|
2683
2683
|
value: Hr(u),
|
|
@@ -2734,11 +2734,11 @@ var Ia = (e, s, t, r, i) => s ? {
|
|
|
2734
2734
|
[r]: i || !0
|
|
2735
2735
|
}
|
|
2736
2736
|
} : {}, Js = (e) => ({
|
|
2737
|
-
isOnSubmit: !e || e ===
|
|
2738
|
-
isOnBlur: e ===
|
|
2739
|
-
isOnChange: e ===
|
|
2740
|
-
isOnAll: e ===
|
|
2741
|
-
isOnTouch: e ===
|
|
2737
|
+
isOnSubmit: !e || e === Be.onSubmit,
|
|
2738
|
+
isOnBlur: e === Be.onBlur,
|
|
2739
|
+
isOnChange: e === Be.onChange,
|
|
2740
|
+
isOnAll: e === Be.all,
|
|
2741
|
+
isOnTouch: e === Be.onTouched
|
|
2742
2742
|
}), Zs = (e, s, t) => !t && (s.watchAll || s.watch.has(e) || [...s.watch].some((r) => e.startsWith(r) && /^\.\w+/.test(e.slice(r.length))));
|
|
2743
2743
|
const Vt = (e, s, t, r) => {
|
|
2744
2744
|
for (const i of t || Object.keys(e)) {
|
|
@@ -2758,14 +2758,14 @@ const Vt = (e, s, t, r) => {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
var ka = (e, s, t) => {
|
|
2761
|
-
const r =
|
|
2761
|
+
const r = At(R(e, t));
|
|
2762
2762
|
return re(r, "root", s[t]), re(e, t, r), e;
|
|
2763
2763
|
}, Ts = (e) => e.type === "file", Ye = (e) => typeof e == "function", jt = (e) => {
|
|
2764
2764
|
if (!Ds)
|
|
2765
2765
|
return !1;
|
|
2766
2766
|
const s = e ? e.ownerDocument : 0;
|
|
2767
2767
|
return e instanceof (s && s.defaultView ? s.defaultView.HTMLElement : HTMLElement);
|
|
2768
|
-
}, Ot = (e) =>
|
|
2768
|
+
}, Ot = (e) => qe(e), zs = (e) => e.type === "radio", Qt = (e) => e instanceof RegExp;
|
|
2769
2769
|
const Gs = {
|
|
2770
2770
|
value: !1,
|
|
2771
2771
|
isValid: !1
|
|
@@ -2792,7 +2792,7 @@ var Jr = (e) => Array.isArray(e) ? e.reduce((s, t) => t && t.checked && !t.disab
|
|
|
2792
2792
|
value: t.value
|
|
2793
2793
|
} : s, tr) : tr;
|
|
2794
2794
|
function sr(e, s, t = "validate") {
|
|
2795
|
-
if (Ot(e) || Array.isArray(e) && e.every(Ot) ||
|
|
2795
|
+
if (Ot(e) || Array.isArray(e) && e.every(Ot) || Me(e) && !e)
|
|
2796
2796
|
return {
|
|
2797
2797
|
type: t,
|
|
2798
2798
|
message: Ot(e) ? e : "",
|
|
@@ -2803,85 +2803,85 @@ var mt = (e) => me(e) && !Qt(e) ? e : {
|
|
|
2803
2803
|
value: e,
|
|
2804
2804
|
message: ""
|
|
2805
2805
|
}, rr = async (e, s, t, r, i) => {
|
|
2806
|
-
const { ref: n, refs: o, required: l, maxLength: f, minLength: d, min: u, max: m, pattern: p, validate: g, name: y, valueAsNumber:
|
|
2806
|
+
const { ref: n, refs: o, required: l, maxLength: f, minLength: d, min: u, max: m, pattern: p, validate: g, name: y, valueAsNumber: A, mount: b, disabled: S } = e._f, F = R(s, y);
|
|
2807
2807
|
if (!b || S)
|
|
2808
2808
|
return {};
|
|
2809
|
-
const w = o ? o[0] : n,
|
|
2810
|
-
r && w.reportValidity && (w.setCustomValidity(
|
|
2811
|
-
}, x = {}, H = zs(n),
|
|
2812
|
-
const
|
|
2809
|
+
const w = o ? o[0] : n, C = ($) => {
|
|
2810
|
+
r && w.reportValidity && (w.setCustomValidity(Me($) ? "" : $ || ""), w.reportValidity());
|
|
2811
|
+
}, x = {}, H = zs(n), M = Tt(n), E = H || M, W = (A || Ts(n)) && ue(n.value) && ue(F) || jt(n) && n.value === "" || F === "" || Array.isArray(F) && !F.length, U = Ia.bind(null, y, t, x), J = ($, _, D, B = Qe.maxLength, O = Qe.minLength) => {
|
|
2812
|
+
const P = $ ? _ : D;
|
|
2813
2813
|
x[y] = {
|
|
2814
|
-
type:
|
|
2815
|
-
message:
|
|
2814
|
+
type: $ ? B : O,
|
|
2815
|
+
message: P,
|
|
2816
2816
|
ref: n,
|
|
2817
|
-
...U(
|
|
2817
|
+
...U($ ? B : O, P)
|
|
2818
2818
|
};
|
|
2819
2819
|
};
|
|
2820
|
-
if (i ? !Array.isArray(F) || !F.length : l && (!E && (W || ke(F)) ||
|
|
2821
|
-
const { value:
|
|
2822
|
-
if (
|
|
2823
|
-
type:
|
|
2820
|
+
if (i ? !Array.isArray(F) || !F.length : l && (!E && (W || ke(F)) || Me(F) && !F || M && !Xr(o).isValid || H && !Jr(o).isValid)) {
|
|
2821
|
+
const { value: $, message: _ } = Ot(l) ? { value: !!l, message: l } : mt(l);
|
|
2822
|
+
if ($ && (x[y] = {
|
|
2823
|
+
type: Qe.required,
|
|
2824
2824
|
message: _,
|
|
2825
2825
|
ref: w,
|
|
2826
|
-
...U(
|
|
2826
|
+
...U(Qe.required, _)
|
|
2827
2827
|
}, !t))
|
|
2828
|
-
return
|
|
2828
|
+
return C(_), x;
|
|
2829
2829
|
}
|
|
2830
2830
|
if (!W && (!ke(u) || !ke(m))) {
|
|
2831
|
-
let
|
|
2831
|
+
let $, _;
|
|
2832
2832
|
const D = mt(m), B = mt(u);
|
|
2833
2833
|
if (!ke(F) && !isNaN(F)) {
|
|
2834
2834
|
const O = n.valueAsNumber || F && +F;
|
|
2835
|
-
ke(D.value) || (
|
|
2835
|
+
ke(D.value) || ($ = O > D.value), ke(B.value) || (_ = O < B.value);
|
|
2836
2836
|
} else {
|
|
2837
|
-
const O = n.valueAsDate || new Date(F),
|
|
2838
|
-
|
|
2837
|
+
const O = n.valueAsDate || new Date(F), P = (K) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + K), q = n.type == "time", te = n.type == "week";
|
|
2838
|
+
qe(D.value) && F && ($ = q ? P(F) > P(D.value) : te ? F > D.value : O > new Date(D.value)), qe(B.value) && F && (_ = q ? P(F) < P(B.value) : te ? F < B.value : O < new Date(B.value));
|
|
2839
2839
|
}
|
|
2840
|
-
if ((
|
|
2841
|
-
return
|
|
2840
|
+
if (($ || _) && (J(!!$, D.message, B.message, Qe.max, Qe.min), !t))
|
|
2841
|
+
return C(x[y].message), x;
|
|
2842
2842
|
}
|
|
2843
|
-
if ((f || d) && !W && (
|
|
2844
|
-
const
|
|
2845
|
-
if ((D || B) && (J(D,
|
|
2846
|
-
return
|
|
2843
|
+
if ((f || d) && !W && (qe(F) || i && Array.isArray(F))) {
|
|
2844
|
+
const $ = mt(f), _ = mt(d), D = !ke($.value) && F.length > +$.value, B = !ke(_.value) && F.length < +_.value;
|
|
2845
|
+
if ((D || B) && (J(D, $.message, _.message), !t))
|
|
2846
|
+
return C(x[y].message), x;
|
|
2847
2847
|
}
|
|
2848
|
-
if (p && !W &&
|
|
2849
|
-
const { value:
|
|
2850
|
-
if (Qt(
|
|
2851
|
-
type:
|
|
2848
|
+
if (p && !W && qe(F)) {
|
|
2849
|
+
const { value: $, message: _ } = mt(p);
|
|
2850
|
+
if (Qt($) && !F.match($) && (x[y] = {
|
|
2851
|
+
type: Qe.pattern,
|
|
2852
2852
|
message: _,
|
|
2853
2853
|
ref: n,
|
|
2854
|
-
...U(
|
|
2854
|
+
...U(Qe.pattern, _)
|
|
2855
2855
|
}, !t))
|
|
2856
|
-
return
|
|
2856
|
+
return C(_), x;
|
|
2857
2857
|
}
|
|
2858
2858
|
if (g) {
|
|
2859
2859
|
if (Ye(g)) {
|
|
2860
|
-
const
|
|
2860
|
+
const $ = await g(F, s), _ = sr($, w);
|
|
2861
2861
|
if (_ && (x[y] = {
|
|
2862
2862
|
..._,
|
|
2863
|
-
...U(
|
|
2863
|
+
...U(Qe.validate, _.message)
|
|
2864
2864
|
}, !t))
|
|
2865
|
-
return
|
|
2865
|
+
return C(_.message), x;
|
|
2866
2866
|
} else if (me(g)) {
|
|
2867
|
-
let
|
|
2867
|
+
let $ = {};
|
|
2868
2868
|
for (const _ in g) {
|
|
2869
|
-
if (!Ve(
|
|
2869
|
+
if (!Ve($) && !t)
|
|
2870
2870
|
break;
|
|
2871
2871
|
const D = sr(await g[_](F, s), w, _);
|
|
2872
|
-
D && (
|
|
2872
|
+
D && ($ = {
|
|
2873
2873
|
...D,
|
|
2874
2874
|
...U(_, D.message)
|
|
2875
|
-
},
|
|
2875
|
+
}, C(D.message), t && (x[y] = $));
|
|
2876
2876
|
}
|
|
2877
|
-
if (!Ve(
|
|
2877
|
+
if (!Ve($) && (x[y] = {
|
|
2878
2878
|
ref: w,
|
|
2879
|
-
|
|
2879
|
+
...$
|
|
2880
2880
|
}, !t))
|
|
2881
2881
|
return x;
|
|
2882
2882
|
}
|
|
2883
2883
|
}
|
|
2884
|
-
return
|
|
2884
|
+
return C(!0), x;
|
|
2885
2885
|
};
|
|
2886
2886
|
function Fa(e, s) {
|
|
2887
2887
|
const t = s.slice(0, -1).length;
|
|
@@ -2890,7 +2890,7 @@ function Fa(e, s) {
|
|
|
2890
2890
|
e = ue(e) ? r++ : e[s[r++]];
|
|
2891
2891
|
return e;
|
|
2892
2892
|
}
|
|
2893
|
-
function
|
|
2893
|
+
function $a(e) {
|
|
2894
2894
|
for (const s in e)
|
|
2895
2895
|
if (e.hasOwnProperty(s) && !ue(e[s]))
|
|
2896
2896
|
return !1;
|
|
@@ -2898,7 +2898,7 @@ function Aa(e) {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
function ge(e, s) {
|
|
2900
2900
|
const t = Array.isArray(s) ? s : Ms(s) ? [s] : Wr(s), r = t.length === 1 ? e : Fa(e, t), i = t.length - 1, n = t[i];
|
|
2901
|
-
return r && delete r[n], i !== 0 && (me(r) && Ve(r) || Array.isArray(r) &&
|
|
2901
|
+
return r && delete r[n], i !== 0 && (me(r) && Ve(r) || Array.isArray(r) && $a(r)) && ge(e, t.slice(0, -1)), e;
|
|
2902
2902
|
}
|
|
2903
2903
|
var ds = () => {
|
|
2904
2904
|
let e = [];
|
|
@@ -2940,7 +2940,7 @@ function st(e, s) {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
return !0;
|
|
2942
2942
|
}
|
|
2943
|
-
var Zr = (e) => e.type === "select-multiple",
|
|
2943
|
+
var Zr = (e) => e.type === "select-multiple", Aa = (e) => zs(e) || Tt(e), us = (e) => jt(e) && e.isConnected, Gr = (e) => {
|
|
2944
2944
|
for (const s in e)
|
|
2945
2945
|
if (Ye(e[s]))
|
|
2946
2946
|
return !0;
|
|
@@ -2960,7 +2960,7 @@ function en(e, s, t) {
|
|
|
2960
2960
|
Array.isArray(e[i]) || me(e[i]) && !Gr(e[i]) ? ue(s) || ps(t[i]) ? t[i] = Array.isArray(e[i]) ? Kt(e[i], []) : { ...Kt(e[i]) } : en(e[i], ke(s) ? {} : s[i], t[i]) : t[i] = !st(e[i], s[i]);
|
|
2961
2961
|
return t;
|
|
2962
2962
|
}
|
|
2963
|
-
var It = (e, s) => en(e, s, Kt(s)), tn = (e, { valueAsNumber: s, valueAsDate: t, setValueAs: r }) => ue(e) ? e : s ? e === "" ? NaN : e && +e : t &&
|
|
2963
|
+
var It = (e, s) => en(e, s, Kt(s)), tn = (e, { valueAsNumber: s, valueAsDate: t, setValueAs: r }) => ue(e) ? e : s ? e === "" ? NaN : e && +e : t && qe(e) ? new Date(e) : r ? r(e) : e;
|
|
2964
2964
|
function fs(e) {
|
|
2965
2965
|
const s = e.ref;
|
|
2966
2966
|
if (!(e.refs ? e.refs.every((t) => t.disabled) : s.disabled))
|
|
@@ -3006,8 +3006,8 @@ function ir(e, s, t) {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
var Da = (e, s, t, r, i) => i.isOnAll ? !1 : !t && i.isOnTouch ? !(s || e) : (t ? r.isOnBlur : i.isOnBlur) ? !e : (t ? r.isOnChange : i.isOnChange) ? e : !0, Ma = (e, s) => !es(R(e, s)).length && ge(e, s);
|
|
3008
3008
|
const Ca = {
|
|
3009
|
-
mode:
|
|
3010
|
-
reValidateMode:
|
|
3009
|
+
mode: Be.onSubmit,
|
|
3010
|
+
reValidateMode: Be.onChange,
|
|
3011
3011
|
shouldFocusError: !0
|
|
3012
3012
|
};
|
|
3013
3013
|
function Ta(e = {}) {
|
|
@@ -3028,7 +3028,7 @@ function Ta(e = {}) {
|
|
|
3028
3028
|
validatingFields: {},
|
|
3029
3029
|
errors: s.errors || {},
|
|
3030
3030
|
disabled: s.disabled || !1
|
|
3031
|
-
}, r = {}, i = me(s.defaultValues) || me(s.values) ?
|
|
3031
|
+
}, r = {}, i = me(s.defaultValues) || me(s.values) ? Ae(s.defaultValues || s.values) || {} : {}, n = s.shouldUnregister ? {} : Ae(i), o = {
|
|
3032
3032
|
action: !1,
|
|
3033
3033
|
mount: !1,
|
|
3034
3034
|
watch: !1
|
|
@@ -3050,7 +3050,7 @@ function Ta(e = {}) {
|
|
|
3050
3050
|
values: ds(),
|
|
3051
3051
|
array: ds(),
|
|
3052
3052
|
state: ds()
|
|
3053
|
-
}, p = Js(s.mode), g = Js(s.reValidateMode), y = s.criteriaMode ===
|
|
3053
|
+
}, p = Js(s.mode), g = Js(s.reValidateMode), y = s.criteriaMode === Be.all, A = (c) => (h) => {
|
|
3054
3054
|
clearTimeout(d), d = setTimeout(c, h);
|
|
3055
3055
|
}, b = async (c) => {
|
|
3056
3056
|
if (!e.disabled && (u.isValid || c)) {
|
|
@@ -3082,7 +3082,7 @@ function Ta(e = {}) {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
u.dirtyFields && (t.dirtyFields = It(i, n)), m.state.next({
|
|
3084
3084
|
name: c,
|
|
3085
|
-
isDirty:
|
|
3085
|
+
isDirty: $(c, h),
|
|
3086
3086
|
dirtyFields: t.dirtyFields,
|
|
3087
3087
|
errors: t.errors,
|
|
3088
3088
|
isValid: t.isValid
|
|
@@ -3093,7 +3093,7 @@ function Ta(e = {}) {
|
|
|
3093
3093
|
re(t.errors, c, h), m.state.next({
|
|
3094
3094
|
errors: t.errors
|
|
3095
3095
|
});
|
|
3096
|
-
},
|
|
3096
|
+
}, C = (c) => {
|
|
3097
3097
|
t.errors = c, m.state.next({
|
|
3098
3098
|
errors: t.errors,
|
|
3099
3099
|
isValid: !1
|
|
@@ -3106,29 +3106,29 @@ function Ta(e = {}) {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
}, H = (c, h, v, I, N) => {
|
|
3108
3108
|
let k = !1, z = !1;
|
|
3109
|
-
const
|
|
3109
|
+
const j = {
|
|
3110
3110
|
name: c
|
|
3111
3111
|
};
|
|
3112
3112
|
if (!e.disabled) {
|
|
3113
3113
|
const ye = !!(R(r, c) && R(r, c)._f && R(r, c)._f.disabled);
|
|
3114
3114
|
if (!v || I) {
|
|
3115
|
-
u.isDirty && (z = t.isDirty, t.isDirty =
|
|
3115
|
+
u.isDirty && (z = t.isDirty, t.isDirty = j.isDirty = $(), k = z !== j.isDirty);
|
|
3116
3116
|
const be = ye || st(R(i, c), h);
|
|
3117
|
-
z = !!(!ye && R(t.dirtyFields, c)), be || ye ? ge(t.dirtyFields, c) : re(t.dirtyFields, c, !0),
|
|
3117
|
+
z = !!(!ye && R(t.dirtyFields, c)), be || ye ? ge(t.dirtyFields, c) : re(t.dirtyFields, c, !0), j.dirtyFields = t.dirtyFields, k = k || u.dirtyFields && z !== !be;
|
|
3118
3118
|
}
|
|
3119
3119
|
if (v) {
|
|
3120
3120
|
const be = R(t.touchedFields, c);
|
|
3121
|
-
be || (re(t.touchedFields, c, v),
|
|
3121
|
+
be || (re(t.touchedFields, c, v), j.touchedFields = t.touchedFields, k = k || u.touchedFields && be !== v);
|
|
3122
3122
|
}
|
|
3123
|
-
k && N && m.state.next(
|
|
3123
|
+
k && N && m.state.next(j);
|
|
3124
3124
|
}
|
|
3125
|
-
return k ?
|
|
3126
|
-
},
|
|
3127
|
-
const N = R(t.errors, c), k = u.isValid &&
|
|
3128
|
-
if (e.delayError && v ? (f =
|
|
3125
|
+
return k ? j : {};
|
|
3126
|
+
}, M = (c, h, v, I) => {
|
|
3127
|
+
const N = R(t.errors, c), k = u.isValid && Me(h) && t.isValid !== h;
|
|
3128
|
+
if (e.delayError && v ? (f = A(() => w(c, v)), f(e.delayError)) : (clearTimeout(d), f = null, v ? re(t.errors, c, v) : ge(t.errors, c)), (v ? !st(N, v) : N) || !Ve(I) || k) {
|
|
3129
3129
|
const z = {
|
|
3130
3130
|
...I,
|
|
3131
|
-
...k &&
|
|
3131
|
+
...k && Me(h) ? { isValid: h } : {},
|
|
3132
3132
|
errors: t.errors,
|
|
3133
3133
|
name: c
|
|
3134
3134
|
};
|
|
@@ -3159,12 +3159,12 @@ function Ta(e = {}) {
|
|
|
3159
3159
|
if (N) {
|
|
3160
3160
|
const { _f: k, ...z } = N;
|
|
3161
3161
|
if (k) {
|
|
3162
|
-
const
|
|
3162
|
+
const j = l.array.has(k.name), ye = N._f && Ra(N._f);
|
|
3163
3163
|
ye && u.validatingFields && S([I], !0);
|
|
3164
|
-
const be = await rr(N, n, y, s.shouldUseNativeValidation && !h,
|
|
3164
|
+
const be = await rr(N, n, y, s.shouldUseNativeValidation && !h, j);
|
|
3165
3165
|
if (ye && u.validatingFields && S([I]), be[k.name] && (v.valid = !1, h))
|
|
3166
3166
|
break;
|
|
3167
|
-
!h && (R(be, k.name) ?
|
|
3167
|
+
!h && (R(be, k.name) ? j ? ka(t.errors, be, k.name) : re(t.errors, k.name, be[k.name]) : ge(t.errors, k.name));
|
|
3168
3168
|
}
|
|
3169
3169
|
!Ve(z) && await U(z, h, v);
|
|
3170
3170
|
}
|
|
@@ -3176,14 +3176,14 @@ function Ta(e = {}) {
|
|
|
3176
3176
|
h && (h._f.refs ? h._f.refs.every((v) => !us(v)) : !us(h._f.ref)) && ne(c);
|
|
3177
3177
|
}
|
|
3178
3178
|
l.unMount = /* @__PURE__ */ new Set();
|
|
3179
|
-
},
|
|
3180
|
-
...o.mount ? n : ue(h) ? i :
|
|
3179
|
+
}, $ = (c, h) => !e.disabled && (c && h && re(n, c, h), !st(Q(), i)), _ = (c, h, v) => Kr(c, l, {
|
|
3180
|
+
...o.mount ? n : ue(h) ? i : qe(c) ? { [c]: h } : h
|
|
3181
3181
|
}, v, h), D = (c) => es(R(o.mount ? n : i, c, e.shouldUnregister ? R(i, c, []) : [])), B = (c, h, v = {}) => {
|
|
3182
3182
|
const I = R(r, c);
|
|
3183
3183
|
let N = h;
|
|
3184
3184
|
if (I) {
|
|
3185
3185
|
const k = I._f;
|
|
3186
|
-
k && (!k.disabled && re(n, c, tn(h, k)), N = jt(k.ref) && ke(h) ? "" : h, Zr(k.ref) ? [...k.ref.options].forEach((z) => z.selected = N.includes(z.value)) : k.refs ? Tt(k.ref) ? k.refs.length > 1 ? k.refs.forEach((z) => (!z.defaultChecked || !z.disabled) && (z.checked = Array.isArray(N) ? !!N.find((
|
|
3186
|
+
k && (!k.disabled && re(n, c, tn(h, k)), N = jt(k.ref) && ke(h) ? "" : h, Zr(k.ref) ? [...k.ref.options].forEach((z) => z.selected = N.includes(z.value)) : k.refs ? Tt(k.ref) ? k.refs.length > 1 ? k.refs.forEach((z) => (!z.defaultChecked || !z.disabled) && (z.checked = Array.isArray(N) ? !!N.find((j) => j === z.value) : N === z.value)) : k.refs[0] && (k.refs[0].checked = !!N) : k.refs.forEach((z) => z.checked = z.value === N) : Ts(k.ref) ? k.ref.value = "" : (k.ref.value = N, k.ref.type || m.values.next({
|
|
3187
3187
|
name: c,
|
|
3188
3188
|
values: { ...n }
|
|
3189
3189
|
})));
|
|
@@ -3194,28 +3194,28 @@ function Ta(e = {}) {
|
|
|
3194
3194
|
const N = h[I], k = `${c}.${I}`, z = R(r, k);
|
|
3195
3195
|
(l.array.has(c) || me(N) || z && !z._f) && !dt(N) ? O(k, N, v) : B(k, N, v);
|
|
3196
3196
|
}
|
|
3197
|
-
},
|
|
3198
|
-
const I = R(r, c), N = l.array.has(c), k =
|
|
3197
|
+
}, P = (c, h, v = {}) => {
|
|
3198
|
+
const I = R(r, c), N = l.array.has(c), k = Ae(h);
|
|
3199
3199
|
re(n, c, k), N ? (m.array.next({
|
|
3200
3200
|
name: c,
|
|
3201
3201
|
values: { ...n }
|
|
3202
3202
|
}), (u.isDirty || u.dirtyFields) && v.shouldDirty && m.state.next({
|
|
3203
3203
|
name: c,
|
|
3204
3204
|
dirtyFields: It(i, n),
|
|
3205
|
-
isDirty:
|
|
3205
|
+
isDirty: $(c, k)
|
|
3206
3206
|
})) : I && !I._f && !ke(k) ? O(c, k, v) : B(c, k, v), Zs(c, l) && m.state.next({ ...t }), m.values.next({
|
|
3207
3207
|
name: o.mount ? c : void 0,
|
|
3208
3208
|
values: { ...n }
|
|
3209
3209
|
});
|
|
3210
|
-
},
|
|
3210
|
+
}, q = async (c) => {
|
|
3211
3211
|
o.mount = !0;
|
|
3212
3212
|
const h = c.target;
|
|
3213
3213
|
let v = h.name, I = !0;
|
|
3214
|
-
const N = R(r, v), k = () => h.type ? fs(N._f) : Hr(c), z = (
|
|
3215
|
-
I = Number.isNaN(
|
|
3214
|
+
const N = R(r, v), k = () => h.type ? fs(N._f) : Hr(c), z = (j) => {
|
|
3215
|
+
I = Number.isNaN(j) || dt(j) && isNaN(j.getTime()) || st(j, R(n, v, j));
|
|
3216
3216
|
};
|
|
3217
3217
|
if (N) {
|
|
3218
|
-
let
|
|
3218
|
+
let j, ye;
|
|
3219
3219
|
const be = k(), ot = c.type === Pt.BLUR || c.type === Pt.FOCUS_OUT, un = !La(N._f) && !s.resolver && !R(t.errors, v) && !N._f.deps || Da(ot, R(t.touchedFields, v), t.isSubmitted, g, p), rs = Zs(v, l, ot);
|
|
3220
3220
|
re(n, v, be), ot ? (N._f.onBlur && N._f.onBlur(c), f && f(0)) : N._f.onChange && N._f.onChange(c);
|
|
3221
3221
|
const ns = H(v, be, ot, !1), fn = !Ve(ns) || rs;
|
|
@@ -3229,18 +3229,18 @@ function Ta(e = {}) {
|
|
|
3229
3229
|
const { errors: Es } = await E([v]);
|
|
3230
3230
|
if (z(be), I) {
|
|
3231
3231
|
const mn = ir(t.errors, r, v), Os = ir(Es, r, mn.name || v);
|
|
3232
|
-
|
|
3232
|
+
j = Os.error, v = Os.name, ye = Ve(Es);
|
|
3233
3233
|
}
|
|
3234
3234
|
} else
|
|
3235
|
-
S([v], !0),
|
|
3236
|
-
I && (N._f.deps && K(N._f.deps),
|
|
3235
|
+
S([v], !0), j = (await rr(N, n, y, s.shouldUseNativeValidation))[v], S([v]), z(be), I && (j ? ye = !1 : u.isValid && (ye = await U(r, !0)));
|
|
3236
|
+
I && (N._f.deps && K(N._f.deps), M(v, ye, j, ns));
|
|
3237
3237
|
}
|
|
3238
3238
|
}, te = (c, h) => {
|
|
3239
3239
|
if (R(t.errors, h) && c.focus)
|
|
3240
3240
|
return c.focus(), 1;
|
|
3241
3241
|
}, K = async (c, h = {}) => {
|
|
3242
3242
|
let v, I;
|
|
3243
|
-
const N =
|
|
3243
|
+
const N = At(c);
|
|
3244
3244
|
if (s.resolver) {
|
|
3245
3245
|
const k = await W(ue(c) ? c : N);
|
|
3246
3246
|
v = Ve(k), I = c ? !N.some((z) => R(k, z)) : v;
|
|
@@ -3249,7 +3249,7 @@ function Ta(e = {}) {
|
|
|
3249
3249
|
return await U(z && z._f ? { [k]: z } : z);
|
|
3250
3250
|
}))).every(Boolean), !(!I && !t.isValid) && b()) : I = v = await U(r);
|
|
3251
3251
|
return m.state.next({
|
|
3252
|
-
...!
|
|
3252
|
+
...!qe(c) || u.isValid && v !== t.isValid ? {} : { name: c },
|
|
3253
3253
|
...s.resolver || !c ? { isValid: v } : {},
|
|
3254
3254
|
errors: t.errors
|
|
3255
3255
|
}), h.shouldFocus && !I && Vt(r, te, c ? N : l.mount), I;
|
|
@@ -3257,7 +3257,7 @@ function Ta(e = {}) {
|
|
|
3257
3257
|
const h = {
|
|
3258
3258
|
...o.mount ? n : i
|
|
3259
3259
|
};
|
|
3260
|
-
return ue(c) ? h :
|
|
3260
|
+
return ue(c) ? h : qe(c) ? R(h, c) : c.map((v) => R(h, v));
|
|
3261
3261
|
}, pe = (c, h) => ({
|
|
3262
3262
|
invalid: !!R((h || t).errors, c),
|
|
3263
3263
|
isDirty: !!R((h || t).dirtyFields, c),
|
|
@@ -3265,11 +3265,11 @@ function Ta(e = {}) {
|
|
|
3265
3265
|
isValidating: !!R(t.validatingFields, c),
|
|
3266
3266
|
isTouched: !!R((h || t).touchedFields, c)
|
|
3267
3267
|
}), Y = (c) => {
|
|
3268
|
-
c &&
|
|
3268
|
+
c && At(c).forEach((h) => ge(t.errors, h)), m.state.next({
|
|
3269
3269
|
errors: c ? t.errors : {}
|
|
3270
3270
|
});
|
|
3271
3271
|
}, ce = (c, h, v) => {
|
|
3272
|
-
const I = (R(r, c, { _f: {} })._f || {}).ref, N = R(t.errors, c) || {}, { ref: k, message: z, type:
|
|
3272
|
+
const I = (R(r, c, { _f: {} })._f || {}).ref, N = R(t.errors, c) || {}, { ref: k, message: z, type: j, ...ye } = N;
|
|
3273
3273
|
re(t.errors, c, {
|
|
3274
3274
|
...ye,
|
|
3275
3275
|
...h,
|
|
@@ -3282,22 +3282,22 @@ function Ta(e = {}) {
|
|
|
3282
3282
|
}, ve = (c, h) => Ye(c) ? m.values.subscribe({
|
|
3283
3283
|
next: (v) => c(_(void 0, h), v)
|
|
3284
3284
|
}) : _(c, h, !0), ne = (c, h = {}) => {
|
|
3285
|
-
for (const v of c ?
|
|
3285
|
+
for (const v of c ? At(c) : l.mount)
|
|
3286
3286
|
l.mount.delete(v), l.array.delete(v), h.keepValue || (ge(r, v), ge(n, v)), !h.keepError && ge(t.errors, v), !h.keepDirty && ge(t.dirtyFields, v), !h.keepTouched && ge(t.touchedFields, v), !h.keepIsValidating && ge(t.validatingFields, v), !s.shouldUnregister && !h.keepDefaultValue && ge(i, v);
|
|
3287
3287
|
m.values.next({
|
|
3288
3288
|
values: { ...n }
|
|
3289
3289
|
}), m.state.next({
|
|
3290
3290
|
...t,
|
|
3291
|
-
...h.keepDirty ? { isDirty:
|
|
3291
|
+
...h.keepDirty ? { isDirty: $() } : {}
|
|
3292
3292
|
}), !h.keepIsValid && b();
|
|
3293
3293
|
}, he = ({ disabled: c, name: h, field: v, fields: I, value: N }) => {
|
|
3294
|
-
if (
|
|
3294
|
+
if (Me(c) && o.mount || c) {
|
|
3295
3295
|
const k = c ? void 0 : ue(N) ? fs(v ? v._f : R(I, h)._f) : N;
|
|
3296
3296
|
re(n, h, k), H(h, k, !1, !1, !0);
|
|
3297
3297
|
}
|
|
3298
3298
|
}, ae = (c, h = {}) => {
|
|
3299
3299
|
let v = R(r, c);
|
|
3300
|
-
const I =
|
|
3300
|
+
const I = Me(h.disabled) || Me(e.disabled);
|
|
3301
3301
|
return re(r, c, {
|
|
3302
3302
|
...v || {},
|
|
3303
3303
|
_f: {
|
|
@@ -3308,7 +3308,7 @@ function Ta(e = {}) {
|
|
|
3308
3308
|
}
|
|
3309
3309
|
}), l.mount.add(c), v ? he({
|
|
3310
3310
|
field: v,
|
|
3311
|
-
disabled:
|
|
3311
|
+
disabled: Me(h.disabled) ? h.disabled : e.disabled,
|
|
3312
3312
|
name: c,
|
|
3313
3313
|
value: h.value
|
|
3314
3314
|
}) : x(c, !0, h.value), {
|
|
@@ -3322,20 +3322,20 @@ function Ta(e = {}) {
|
|
|
3322
3322
|
pattern: kt(h.pattern)
|
|
3323
3323
|
} : {},
|
|
3324
3324
|
name: c,
|
|
3325
|
-
onChange:
|
|
3326
|
-
onBlur:
|
|
3325
|
+
onChange: q,
|
|
3326
|
+
onBlur: q,
|
|
3327
3327
|
ref: (N) => {
|
|
3328
3328
|
if (N) {
|
|
3329
3329
|
ae(c, h), v = R(r, c);
|
|
3330
|
-
const k = ue(N.value) && N.querySelectorAll && N.querySelectorAll("input,select,textarea")[0] || N, z =
|
|
3331
|
-
if (z ?
|
|
3330
|
+
const k = ue(N.value) && N.querySelectorAll && N.querySelectorAll("input,select,textarea")[0] || N, z = Aa(k), j = v._f.refs || [];
|
|
3331
|
+
if (z ? j.find((ye) => ye === k) : k === v._f.ref)
|
|
3332
3332
|
return;
|
|
3333
3333
|
re(r, c, {
|
|
3334
3334
|
_f: {
|
|
3335
3335
|
...v._f,
|
|
3336
3336
|
...z ? {
|
|
3337
3337
|
refs: [
|
|
3338
|
-
...
|
|
3338
|
+
...j.filter(us),
|
|
3339
3339
|
k,
|
|
3340
3340
|
...Array.isArray(R(i, c)) ? [{}] : []
|
|
3341
3341
|
],
|
|
@@ -3348,16 +3348,16 @@ function Ta(e = {}) {
|
|
|
3348
3348
|
}
|
|
3349
3349
|
};
|
|
3350
3350
|
}, se = () => s.shouldFocusError && Vt(r, te, l.mount), de = (c) => {
|
|
3351
|
-
|
|
3351
|
+
Me(c) && (m.state.next({ disabled: c }), Vt(r, (h, v) => {
|
|
3352
3352
|
const I = R(r, v);
|
|
3353
3353
|
I && (h.disabled = I._f.disabled || c, Array.isArray(I._f.refs) && I._f.refs.forEach((N) => {
|
|
3354
3354
|
N.disabled = I._f.disabled || c;
|
|
3355
3355
|
}));
|
|
3356
3356
|
}, 0, !1));
|
|
3357
|
-
},
|
|
3357
|
+
}, De = (c, h) => async (v) => {
|
|
3358
3358
|
let I;
|
|
3359
3359
|
v && (v.preventDefault && v.preventDefault(), v.persist && v.persist());
|
|
3360
|
-
let N =
|
|
3360
|
+
let N = Ae(n);
|
|
3361
3361
|
if (m.state.next({
|
|
3362
3362
|
isSubmitting: !0
|
|
3363
3363
|
}), s.resolver) {
|
|
@@ -3384,24 +3384,24 @@ function Ta(e = {}) {
|
|
|
3384
3384
|
errors: t.errors
|
|
3385
3385
|
}), I)
|
|
3386
3386
|
throw I;
|
|
3387
|
-
},
|
|
3388
|
-
R(r, c) && (ue(h.defaultValue) ?
|
|
3387
|
+
}, je = (c, h = {}) => {
|
|
3388
|
+
R(r, c) && (ue(h.defaultValue) ? P(c, Ae(R(i, c))) : (P(c, h.defaultValue), re(i, c, Ae(h.defaultValue))), h.keepTouched || ge(t.touchedFields, c), h.keepDirty || (ge(t.dirtyFields, c), t.isDirty = h.defaultValue ? $(c, Ae(R(i, c))) : $()), h.keepError || (ge(t.errors, c), u.isValid && b()), m.state.next({ ...t }));
|
|
3389
3389
|
}, Ne = (c, h = {}) => {
|
|
3390
|
-
const v = c ?
|
|
3390
|
+
const v = c ? Ae(c) : i, I = Ae(v), N = Ve(c), k = N ? i : I;
|
|
3391
3391
|
if (h.keepDefaultValues || (i = v), !h.keepValues) {
|
|
3392
3392
|
if (h.keepDirtyValues) {
|
|
3393
3393
|
const z = /* @__PURE__ */ new Set([
|
|
3394
3394
|
...l.mount,
|
|
3395
3395
|
...Object.keys(It(i, n))
|
|
3396
3396
|
]);
|
|
3397
|
-
for (const
|
|
3398
|
-
R(t.dirtyFields,
|
|
3397
|
+
for (const j of Array.from(z))
|
|
3398
|
+
R(t.dirtyFields, j) ? re(k, j, R(n, j)) : P(j, R(k, j));
|
|
3399
3399
|
} else {
|
|
3400
3400
|
if (Ds && ue(c))
|
|
3401
3401
|
for (const z of l.mount) {
|
|
3402
|
-
const
|
|
3403
|
-
if (
|
|
3404
|
-
const ye = Array.isArray(
|
|
3402
|
+
const j = R(r, z);
|
|
3403
|
+
if (j && j._f) {
|
|
3404
|
+
const ye = Array.isArray(j._f.refs) ? j._f.refs[0] : j._f.ref;
|
|
3405
3405
|
if (jt(ye)) {
|
|
3406
3406
|
const be = ye.closest("form");
|
|
3407
3407
|
if (be) {
|
|
@@ -3413,7 +3413,7 @@ function Ta(e = {}) {
|
|
|
3413
3413
|
}
|
|
3414
3414
|
r = {};
|
|
3415
3415
|
}
|
|
3416
|
-
n = e.shouldUnregister ? h.keepDefaultValues ?
|
|
3416
|
+
n = e.shouldUnregister ? h.keepDefaultValues ? Ae(i) : {} : Ae(k), m.array.next({
|
|
3417
3417
|
values: { ...k }
|
|
3418
3418
|
}), m.values.next({
|
|
3419
3419
|
values: { ...k }
|
|
@@ -3436,17 +3436,17 @@ function Ta(e = {}) {
|
|
|
3436
3436
|
isSubmitSuccessful: h.keepIsSubmitSuccessful ? t.isSubmitSuccessful : !1,
|
|
3437
3437
|
isSubmitting: !1
|
|
3438
3438
|
});
|
|
3439
|
-
},
|
|
3439
|
+
}, $e = (c, h) => Ne(Ye(c) ? c(n) : c, h);
|
|
3440
3440
|
return {
|
|
3441
3441
|
control: {
|
|
3442
3442
|
register: ae,
|
|
3443
3443
|
unregister: ne,
|
|
3444
3444
|
getFieldState: pe,
|
|
3445
|
-
handleSubmit:
|
|
3445
|
+
handleSubmit: De,
|
|
3446
3446
|
setError: ce,
|
|
3447
3447
|
_executeSchema: E,
|
|
3448
3448
|
_getWatch: _,
|
|
3449
|
-
_getDirty:
|
|
3449
|
+
_getDirty: $,
|
|
3450
3450
|
_updateValid: b,
|
|
3451
3451
|
_removeUnmounted: J,
|
|
3452
3452
|
_updateFieldArray: F,
|
|
@@ -3454,7 +3454,7 @@ function Ta(e = {}) {
|
|
|
3454
3454
|
_getFieldArray: D,
|
|
3455
3455
|
_reset: Ne,
|
|
3456
3456
|
_resetDefaultValues: () => Ye(s.defaultValues) && s.defaultValues().then((c) => {
|
|
3457
|
-
|
|
3457
|
+
$e(c, s.resetOptions), m.state.next({
|
|
3458
3458
|
isLoading: !1
|
|
3459
3459
|
});
|
|
3460
3460
|
}),
|
|
@@ -3467,7 +3467,7 @@ function Ta(e = {}) {
|
|
|
3467
3467
|
_disableForm: de,
|
|
3468
3468
|
_subjects: m,
|
|
3469
3469
|
_proxyFormState: u,
|
|
3470
|
-
_setErrors:
|
|
3470
|
+
_setErrors: C,
|
|
3471
3471
|
get _fields() {
|
|
3472
3472
|
return r;
|
|
3473
3473
|
},
|
|
@@ -3507,12 +3507,12 @@ function Ta(e = {}) {
|
|
|
3507
3507
|
},
|
|
3508
3508
|
trigger: K,
|
|
3509
3509
|
register: ae,
|
|
3510
|
-
handleSubmit:
|
|
3510
|
+
handleSubmit: De,
|
|
3511
3511
|
watch: ve,
|
|
3512
|
-
setValue:
|
|
3512
|
+
setValue: P,
|
|
3513
3513
|
getValues: Q,
|
|
3514
|
-
reset:
|
|
3515
|
-
resetField:
|
|
3514
|
+
reset: $e,
|
|
3515
|
+
resetField: je,
|
|
3516
3516
|
clearErrors: Y,
|
|
3517
3517
|
unregister: ne,
|
|
3518
3518
|
setError: ce,
|
|
@@ -3574,7 +3574,7 @@ function sn(e = {}) {
|
|
|
3574
3574
|
s.current && (s.current.watch = s.current.watch.bind({}));
|
|
3575
3575
|
}, [r]), s.current.formState = Pr(r, n), s.current;
|
|
3576
3576
|
}
|
|
3577
|
-
const za = "ids-form--alert-
|
|
3577
|
+
const za = "ids-form--alert-v5142", Ba = {
|
|
3578
3578
|
alert: za
|
|
3579
3579
|
}, Ea = ({
|
|
3580
3580
|
alert: e,
|
|
@@ -3591,7 +3591,7 @@ const za = "ids-form--alert-v5141", Ba = {
|
|
|
3591
3591
|
onError: m,
|
|
3592
3592
|
...p
|
|
3593
3593
|
}, g) => {
|
|
3594
|
-
const y =
|
|
3594
|
+
const y = Oe({ id: p.id }), [A, b] = X({}), { handleSubmit: S, reset: F, formState: w } = o, { errors: C, isValid: x } = w, M = !!Object.values(C).length && !f, E = M || e, W = Fe(
|
|
3595
3595
|
(_) => {
|
|
3596
3596
|
S((D) => {
|
|
3597
3597
|
d == null || d(D);
|
|
@@ -3600,19 +3600,19 @@ const za = "ids-form--alert-v5141", Ba = {
|
|
|
3600
3600
|
[S, m, d]
|
|
3601
3601
|
), U = Fe(
|
|
3602
3602
|
(_, D) => {
|
|
3603
|
-
D ===
|
|
3603
|
+
D === A[_] || !D && !A[_] || b(
|
|
3604
3604
|
() => [...o.control._names.mount.values()].reduce(
|
|
3605
3605
|
(B, O) => ({
|
|
3606
3606
|
...B,
|
|
3607
|
-
[O]: O === _ ? D :
|
|
3607
|
+
[O]: O === _ ? D : A[O]
|
|
3608
3608
|
}),
|
|
3609
3609
|
{}
|
|
3610
3610
|
)
|
|
3611
3611
|
);
|
|
3612
3612
|
},
|
|
3613
|
-
[
|
|
3613
|
+
[A, o.control._names.mount]
|
|
3614
3614
|
), J = fe(null);
|
|
3615
|
-
|
|
3615
|
+
Ee(g, () => ({
|
|
3616
3616
|
element: (J == null ? void 0 : J.current) ?? void 0,
|
|
3617
3617
|
api: o,
|
|
3618
3618
|
submit: () => W(),
|
|
@@ -3620,15 +3620,15 @@ const za = "ids-form--alert-v5141", Ba = {
|
|
|
3620
3620
|
})), ee(() => {
|
|
3621
3621
|
u == null || u(x);
|
|
3622
3622
|
}, [x, u]);
|
|
3623
|
-
const
|
|
3623
|
+
const $ = Se(
|
|
3624
3624
|
() => ({
|
|
3625
3625
|
id: y,
|
|
3626
|
-
errorMessages:
|
|
3626
|
+
errorMessages: A,
|
|
3627
3627
|
setErrorMessage: U
|
|
3628
3628
|
}),
|
|
3629
|
-
[
|
|
3629
|
+
[A, y, U]
|
|
3630
3630
|
);
|
|
3631
|
-
return /* @__PURE__ */ a(Cn.Provider, { value:
|
|
3631
|
+
return /* @__PURE__ */ a(Cn.Provider, { value: $, children: /* @__PURE__ */ a(Na, { ...o, children: /* @__PURE__ */ L(
|
|
3632
3632
|
"form",
|
|
3633
3633
|
{
|
|
3634
3634
|
...p,
|
|
@@ -3653,7 +3653,7 @@ const za = "ids-form--alert-v5141", Ba = {
|
|
|
3653
3653
|
[Z.Hidden]: !E
|
|
3654
3654
|
}),
|
|
3655
3655
|
children: [
|
|
3656
|
-
|
|
3656
|
+
M ? /* @__PURE__ */ a(
|
|
3657
3657
|
Dt,
|
|
3658
3658
|
{
|
|
3659
3659
|
status: "danger",
|
|
@@ -3676,7 +3676,7 @@ const za = "ids-form--alert-v5141", Ba = {
|
|
|
3676
3676
|
"div",
|
|
3677
3677
|
{
|
|
3678
3678
|
className: V({
|
|
3679
|
-
[Z.IgnoreStack]: !
|
|
3679
|
+
[Z.IgnoreStack]: !M
|
|
3680
3680
|
}),
|
|
3681
3681
|
children: s
|
|
3682
3682
|
}
|
|
@@ -3700,7 +3700,7 @@ const za = "ids-form--alert-v5141", Ba = {
|
|
|
3700
3700
|
values: p,
|
|
3701
3701
|
...g
|
|
3702
3702
|
}, y) => {
|
|
3703
|
-
const
|
|
3703
|
+
const A = sn({
|
|
3704
3704
|
defaultValues: e,
|
|
3705
3705
|
context: s,
|
|
3706
3706
|
criteriaMode: t,
|
|
@@ -3715,7 +3715,7 @@ const za = "ids-form--alert-v5141", Ba = {
|
|
|
3715
3715
|
shouldUnregister: m,
|
|
3716
3716
|
values: p
|
|
3717
3717
|
});
|
|
3718
|
-
return /* @__PURE__ */ a(Oa, { form:
|
|
3718
|
+
return /* @__PURE__ */ a(Oa, { form: A, ...g, ref: y });
|
|
3719
3719
|
}, Ua = ie(Ha), Bs = Ua;
|
|
3720
3720
|
Bs.useForm = sn;
|
|
3721
3721
|
Bs.useFormContext = ts;
|
|
@@ -3744,7 +3744,7 @@ const Wa = ie(
|
|
|
3744
3744
|
formatOptions: n
|
|
3745
3745
|
}),
|
|
3746
3746
|
type: l,
|
|
3747
|
-
append: /* @__PURE__ */ a(
|
|
3747
|
+
append: /* @__PURE__ */ a(Pe, { mode: "muted", children: r }),
|
|
3748
3748
|
inline: !!d.readOnly,
|
|
3749
3749
|
alignRight: o,
|
|
3750
3750
|
ref: s,
|
|
@@ -3754,37 +3754,37 @@ const Wa = ie(
|
|
|
3754
3754
|
}
|
|
3755
3755
|
);
|
|
3756
3756
|
Wa.displayName = "IressInputCurrency";
|
|
3757
|
-
const qa = "ids-modal-
|
|
3757
|
+
const qa = "ids-modal-v5142", Pa = "ids-modal--backdrop-v5142", ja = "ids-modal--initial-v5142", Qa = "ids-modal--close-v5142", Ka = "ids-modal--open-v5142", Ya = "ids-modal--unmounted-v5142", Xa = "ids-modal--close-button-v5142", Ja = "ids-modal--footer-v5142", Za = "ids-modal--fixed-footer-v5142", Ga = "ids-modal--content-v5142", Ue = {
|
|
3758
3758
|
modal: qa,
|
|
3759
3759
|
backdrop: Pa,
|
|
3760
|
-
"size--sm": "ids-modal--size--sm-
|
|
3761
|
-
"size--lg": "ids-modal--size--lg-
|
|
3762
|
-
"size--fullpage": "ids-modal--size--fullpage-
|
|
3763
|
-
"size-xs--fullpage": "ids-modal--size-xs--fullpage-
|
|
3764
|
-
"size-xs--sm": "ids-modal--size-xs--sm-
|
|
3765
|
-
"size-xs--md": "ids-modal--size-xs--md-
|
|
3766
|
-
"size-xs--lg": "ids-modal--size-xs--lg-
|
|
3767
|
-
"size-sm--fullpage": "ids-modal--size-sm--fullpage-
|
|
3768
|
-
"size-sm--sm": "ids-modal--size-sm--sm-
|
|
3769
|
-
"size-sm--md": "ids-modal--size-sm--md-
|
|
3770
|
-
"size-sm--lg": "ids-modal--size-sm--lg-
|
|
3771
|
-
"size-md--fullpage": "ids-modal--size-md--fullpage-
|
|
3772
|
-
"size-md--sm": "ids-modal--size-md--sm-
|
|
3773
|
-
"size-md--md": "ids-modal--size-md--md-
|
|
3774
|
-
"size-md--lg": "ids-modal--size-md--lg-
|
|
3775
|
-
"size-lg--fullpage": "ids-modal--size-lg--fullpage-
|
|
3776
|
-
"size-lg--sm": "ids-modal--size-lg--sm-
|
|
3777
|
-
"size-lg--md": "ids-modal--size-lg--md-
|
|
3778
|
-
"size-lg--lg": "ids-modal--size-lg--lg-
|
|
3779
|
-
"size-xl--fullpage": "ids-modal--size-xl--fullpage-
|
|
3780
|
-
"size-xl--sm": "ids-modal--size-xl--sm-
|
|
3781
|
-
"size-xl--md": "ids-modal--size-xl--md-
|
|
3782
|
-
"size-xl--lg": "ids-modal--size-xl--lg-
|
|
3783
|
-
"size-xxl--fullpage": "ids-modal--size-xxl--fullpage-
|
|
3784
|
-
"size-xxl--sm": "ids-modal--size-xxl--sm-
|
|
3785
|
-
"size-xxl--md": "ids-modal--size-xxl--md-
|
|
3786
|
-
"size-xxl--lg": "ids-modal--size-xxl--lg-
|
|
3787
|
-
static: "ids-modal--static-
|
|
3760
|
+
"size--sm": "ids-modal--size--sm-v5142",
|
|
3761
|
+
"size--lg": "ids-modal--size--lg-v5142",
|
|
3762
|
+
"size--fullpage": "ids-modal--size--fullpage-v5142",
|
|
3763
|
+
"size-xs--fullpage": "ids-modal--size-xs--fullpage-v5142",
|
|
3764
|
+
"size-xs--sm": "ids-modal--size-xs--sm-v5142",
|
|
3765
|
+
"size-xs--md": "ids-modal--size-xs--md-v5142",
|
|
3766
|
+
"size-xs--lg": "ids-modal--size-xs--lg-v5142",
|
|
3767
|
+
"size-sm--fullpage": "ids-modal--size-sm--fullpage-v5142",
|
|
3768
|
+
"size-sm--sm": "ids-modal--size-sm--sm-v5142",
|
|
3769
|
+
"size-sm--md": "ids-modal--size-sm--md-v5142",
|
|
3770
|
+
"size-sm--lg": "ids-modal--size-sm--lg-v5142",
|
|
3771
|
+
"size-md--fullpage": "ids-modal--size-md--fullpage-v5142",
|
|
3772
|
+
"size-md--sm": "ids-modal--size-md--sm-v5142",
|
|
3773
|
+
"size-md--md": "ids-modal--size-md--md-v5142",
|
|
3774
|
+
"size-md--lg": "ids-modal--size-md--lg-v5142",
|
|
3775
|
+
"size-lg--fullpage": "ids-modal--size-lg--fullpage-v5142",
|
|
3776
|
+
"size-lg--sm": "ids-modal--size-lg--sm-v5142",
|
|
3777
|
+
"size-lg--md": "ids-modal--size-lg--md-v5142",
|
|
3778
|
+
"size-lg--lg": "ids-modal--size-lg--lg-v5142",
|
|
3779
|
+
"size-xl--fullpage": "ids-modal--size-xl--fullpage-v5142",
|
|
3780
|
+
"size-xl--sm": "ids-modal--size-xl--sm-v5142",
|
|
3781
|
+
"size-xl--md": "ids-modal--size-xl--md-v5142",
|
|
3782
|
+
"size-xl--lg": "ids-modal--size-xl--lg-v5142",
|
|
3783
|
+
"size-xxl--fullpage": "ids-modal--size-xxl--fullpage-v5142",
|
|
3784
|
+
"size-xxl--sm": "ids-modal--size-xxl--sm-v5142",
|
|
3785
|
+
"size-xxl--md": "ids-modal--size-xxl--md-v5142",
|
|
3786
|
+
"size-xxl--lg": "ids-modal--size-xxl--lg-v5142",
|
|
3787
|
+
static: "ids-modal--static-v5142",
|
|
3788
3788
|
initial: ja,
|
|
3789
3789
|
close: Qa,
|
|
3790
3790
|
open: Ka,
|
|
@@ -3793,14 +3793,14 @@ const qa = "ids-modal-v5141", Pa = "ids-modal--backdrop-v5141", ja = "ids-modal-
|
|
|
3793
3793
|
footer: Ja,
|
|
3794
3794
|
fixedFooter: Za,
|
|
3795
3795
|
content: Ga
|
|
3796
|
-
}, el = "ids-toaster-
|
|
3796
|
+
}, el = "ids-toaster-v5142", vs = {
|
|
3797
3797
|
toaster: el,
|
|
3798
|
-
"toaster__bottom-end": "ids-toaster--toaster__bottom-end-
|
|
3799
|
-
"toaster__bottom-start": "ids-toaster--toaster__bottom-start-
|
|
3800
|
-
"toaster__bottom-center": "ids-toaster--toaster__bottom-center-
|
|
3801
|
-
"toaster__top-end": "ids-toaster--toaster__top-end-
|
|
3802
|
-
"toaster__top-start": "ids-toaster--toaster__top-start-
|
|
3803
|
-
"toaster__top-center": "ids-toaster--toaster__top-center-
|
|
3798
|
+
"toaster__bottom-end": "ids-toaster--toaster__bottom-end-v5142",
|
|
3799
|
+
"toaster__bottom-start": "ids-toaster--toaster__bottom-start-v5142",
|
|
3800
|
+
"toaster__bottom-center": "ids-toaster--toaster__bottom-center-v5142",
|
|
3801
|
+
"toaster__top-end": "ids-toaster--toaster__top-end-v5142",
|
|
3802
|
+
"toaster__top-start": "ids-toaster--toaster__top-start-v5142",
|
|
3803
|
+
"toaster__top-center": "ids-toaster--toaster__top-center-v5142"
|
|
3804
3804
|
}, rn = ({
|
|
3805
3805
|
children: e,
|
|
3806
3806
|
className: s,
|
|
@@ -3817,44 +3817,44 @@ const qa = "ids-modal-v5141", Pa = "ids-modal--backdrop-v5141", ja = "ids-modal-
|
|
|
3817
3817
|
onExited: p,
|
|
3818
3818
|
onShowChange: g,
|
|
3819
3819
|
padding: y = "md",
|
|
3820
|
-
show:
|
|
3820
|
+
show: A,
|
|
3821
3821
|
size: b = "md",
|
|
3822
3822
|
static: S,
|
|
3823
3823
|
style: F,
|
|
3824
3824
|
...w
|
|
3825
3825
|
}) => {
|
|
3826
|
-
const [
|
|
3827
|
-
|
|
3828
|
-
}, { context:
|
|
3826
|
+
const [C, x] = X(n), H = fe(240), M = Un(w.id), E = Oe({ id: w.id }), W = `${E}--heading`, U = M.opened || A || C, J = (Y) => {
|
|
3827
|
+
M.show(Y), x(Y), g == null || g(Y);
|
|
3828
|
+
}, { context: $ } = ks({
|
|
3829
3829
|
open: U,
|
|
3830
3830
|
onOpenChange: J
|
|
3831
|
-
}), _ = wr(
|
|
3831
|
+
}), _ = wr($, {
|
|
3832
3832
|
enabled: !o,
|
|
3833
3833
|
outsidePress: (Y) => !Y.target.closest(`.${vs.toaster}`),
|
|
3834
3834
|
outsidePressEvent: "mousedown"
|
|
3835
|
-
}), D = Ir(
|
|
3835
|
+
}), D = Ir($), B = kr([_, D]), { isMounted: O, status: P } = Fs($, {
|
|
3836
3836
|
duration: {
|
|
3837
3837
|
close: H.current
|
|
3838
3838
|
}
|
|
3839
3839
|
});
|
|
3840
3840
|
ee(() => {
|
|
3841
|
-
|
|
3841
|
+
M.opened && A && Zt(
|
|
3842
3842
|
"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."
|
|
3843
3843
|
);
|
|
3844
|
-
}, [
|
|
3844
|
+
}, [M.opened, A]), ee(() => {
|
|
3845
3845
|
var Y, ce, ve, ne;
|
|
3846
|
-
|
|
3847
|
-
((ce = window.getComputedStyle(
|
|
3848
|
-
) * 0.8),
|
|
3849
|
-
}, [
|
|
3850
|
-
const
|
|
3846
|
+
P === "initial" && ((Y = $.refs.floating) != null && Y.current) && (H.current = Ar(
|
|
3847
|
+
((ce = window.getComputedStyle($.refs.floating.current, null)) == null ? void 0 : ce.getPropertyValue("--iress-transition-duration")) || ".3s"
|
|
3848
|
+
) * 0.8), P === "open" && (m == null || m(), (ne = (ve = $.refs.floating) == null ? void 0 : ve.current) == null || ne.focus()), P === "close" && (p == null || p());
|
|
3849
|
+
}, [P, m, p, $.refs.floating]);
|
|
3850
|
+
const q = Is(
|
|
3851
3851
|
"size",
|
|
3852
3852
|
b,
|
|
3853
3853
|
"fullpage"
|
|
3854
|
-
).map((Y) =>
|
|
3855
|
-
[
|
|
3854
|
+
).map((Y) => Ue[Y]), te = `iress-p--${y}`, K = V(Ue.modal, Ue[P], {
|
|
3855
|
+
[Ue.fixedFooter]: l
|
|
3856
3856
|
}), Q = Se(() => typeof d == "string" ? /* @__PURE__ */ a(
|
|
3857
|
-
|
|
3857
|
+
Pe,
|
|
3858
3858
|
{
|
|
3859
3859
|
id: W,
|
|
3860
3860
|
element: "h2",
|
|
@@ -3869,32 +3869,32 @@ const qa = "ids-modal-v5141", Pa = "ids-modal--backdrop-v5141", ja = "ids-modal-
|
|
|
3869
3869
|
position: "var(--iress-position, fixed)",
|
|
3870
3870
|
...F
|
|
3871
3871
|
};
|
|
3872
|
-
return /* @__PURE__ */ a(Ut, { root: r ?? (
|
|
3872
|
+
return /* @__PURE__ */ a(Ut, { root: r ?? (M == null ? void 0 : M.container), children: /* @__PURE__ */ a(
|
|
3873
3873
|
Fr,
|
|
3874
3874
|
{
|
|
3875
3875
|
className: V(
|
|
3876
3876
|
s,
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3877
|
+
Ue.backdrop,
|
|
3878
|
+
Ue[P],
|
|
3879
|
+
q,
|
|
3880
3880
|
Z.IgnoreStack,
|
|
3881
3881
|
{
|
|
3882
|
-
[
|
|
3882
|
+
[Ue.static]: S
|
|
3883
3883
|
}
|
|
3884
3884
|
),
|
|
3885
3885
|
"data-testid": T(i, "backdrop"),
|
|
3886
3886
|
lockScroll: !S,
|
|
3887
3887
|
style: pe,
|
|
3888
3888
|
children: /* @__PURE__ */ a(
|
|
3889
|
-
|
|
3889
|
+
$r,
|
|
3890
3890
|
{
|
|
3891
|
-
context:
|
|
3892
|
-
initialFocus:
|
|
3891
|
+
context: $,
|
|
3892
|
+
initialFocus: $.refs.floating,
|
|
3893
3893
|
disabled: S,
|
|
3894
3894
|
children: /* @__PURE__ */ L(
|
|
3895
3895
|
"div",
|
|
3896
3896
|
{
|
|
3897
|
-
ref: (Y) =>
|
|
3897
|
+
ref: (Y) => $.refs.setFloating(Y),
|
|
3898
3898
|
className: K,
|
|
3899
3899
|
id: E,
|
|
3900
3900
|
"data-testid": i,
|
|
@@ -3906,7 +3906,7 @@ const qa = "ids-modal-v5141", Pa = "ids-modal--backdrop-v5141", ja = "ids-modal-
|
|
|
3906
3906
|
{
|
|
3907
3907
|
onClick: () => J(!1),
|
|
3908
3908
|
screenreaderText: t,
|
|
3909
|
-
className:
|
|
3909
|
+
className: Ue.closeButton,
|
|
3910
3910
|
"data-testid": T(
|
|
3911
3911
|
i,
|
|
3912
3912
|
"close-button__button"
|
|
@@ -3916,7 +3916,7 @@ const qa = "ids-modal-v5141", Pa = "ids-modal--backdrop-v5141", ja = "ids-modal-
|
|
|
3916
3916
|
/* @__PURE__ */ L(
|
|
3917
3917
|
"div",
|
|
3918
3918
|
{
|
|
3919
|
-
className: V(
|
|
3919
|
+
className: V(Ue.content, te),
|
|
3920
3920
|
"data-testid": T(i, "content"),
|
|
3921
3921
|
children: [
|
|
3922
3922
|
Q,
|
|
@@ -3927,7 +3927,7 @@ const qa = "ids-modal-v5141", Pa = "ids-modal--backdrop-v5141", ja = "ids-modal-
|
|
|
3927
3927
|
f && /* @__PURE__ */ a(
|
|
3928
3928
|
"div",
|
|
3929
3929
|
{
|
|
3930
|
-
className: V(
|
|
3930
|
+
className: V(Ue.footer, te),
|
|
3931
3931
|
"data-testid": T(i, "footer"),
|
|
3932
3932
|
children: f
|
|
3933
3933
|
}
|
|
@@ -4012,7 +4012,7 @@ const tl = ({
|
|
|
4012
4012
|
"data-testid": p,
|
|
4013
4013
|
...g
|
|
4014
4014
|
}) => {
|
|
4015
|
-
const y = fe(null), [
|
|
4015
|
+
const y = fe(null), [A, b] = X(!1), [S, F] = X(!0), [w, C] = X(!0), [x, H] = X({}), M = Fe(() => {
|
|
4016
4016
|
const _ = w, D = {
|
|
4017
4017
|
xs: _,
|
|
4018
4018
|
sm: _,
|
|
@@ -4027,11 +4027,11 @@ const tl = ({
|
|
|
4027
4027
|
H(D);
|
|
4028
4028
|
}, [i, w]);
|
|
4029
4029
|
ee(() => {
|
|
4030
|
-
|
|
4030
|
+
M(), s && b(!0), u !== "" && d === "" && Zt(
|
|
4031
4031
|
"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.",
|
|
4032
4032
|
"warn"
|
|
4033
4033
|
);
|
|
4034
|
-
}, [
|
|
4034
|
+
}, [M, s, u, d]), ee(() => (n && o && E(), () => {
|
|
4035
4035
|
document.removeEventListener(
|
|
4036
4036
|
"focus",
|
|
4037
4037
|
W.bind(y),
|
|
@@ -4054,8 +4054,8 @@ const tl = ({
|
|
|
4054
4054
|
O < 0 && window.scrollBy(0, O);
|
|
4055
4055
|
}
|
|
4056
4056
|
}, U = () => {
|
|
4057
|
-
|
|
4058
|
-
},
|
|
4057
|
+
C(!w), M();
|
|
4058
|
+
}, $ = (() => {
|
|
4059
4059
|
const _ = ["xs", "sm", "md", "lg", "xl", "xxl"], B = _.indexOf(i) + 1;
|
|
4060
4060
|
return B >= _.length ? {} : {
|
|
4061
4061
|
[_[B]]: !0
|
|
@@ -4073,14 +4073,14 @@ const tl = ({
|
|
|
4073
4073
|
ref: y,
|
|
4074
4074
|
...g,
|
|
4075
4075
|
children: /* @__PURE__ */ a("header", { children: /* @__PURE__ */ L(
|
|
4076
|
-
|
|
4076
|
+
$s,
|
|
4077
4077
|
{
|
|
4078
4078
|
padding: "none",
|
|
4079
4079
|
background: "transparent",
|
|
4080
4080
|
noBorderRadius: !0,
|
|
4081
4081
|
className: we.panel,
|
|
4082
4082
|
children: [
|
|
4083
|
-
i !== void 0 && /* @__PURE__ */ a(Rt, { hiddenOn:
|
|
4083
|
+
i !== void 0 && /* @__PURE__ */ a(Rt, { hiddenOn: $, children: /* @__PURE__ */ a(
|
|
4084
4084
|
Re,
|
|
4085
4085
|
{
|
|
4086
4086
|
onClick: () => U(),
|
|
@@ -4119,7 +4119,7 @@ const tl = ({
|
|
|
4119
4119
|
}),
|
|
4120
4120
|
children: [
|
|
4121
4121
|
r,
|
|
4122
|
-
|
|
4122
|
+
A && (i !== void 0 ? /* @__PURE__ */ a(Rt, { hiddenOn: x, className: we.navHide, children: /* @__PURE__ */ a(
|
|
4123
4123
|
"nav",
|
|
4124
4124
|
{
|
|
4125
4125
|
"aria-label": m,
|
|
@@ -4148,7 +4148,7 @@ const tl = ({
|
|
|
4148
4148
|
};
|
|
4149
4149
|
nn.HorizontalAlign = Wn;
|
|
4150
4150
|
nn.Breakpoint = pr;
|
|
4151
|
-
const rl = "ids-radio-
|
|
4151
|
+
const rl = "ids-radio-v5142", nl = "ids-radio--input-v5142", il = "ids-radio--label-v5142", ol = "ids-radio--touch-v5142", al = "ids-radio--hidden-control-v5142", ll = "ids-radio--mark-v5142", pt = {
|
|
4152
4152
|
radio: rl,
|
|
4153
4153
|
input: nl,
|
|
4154
4154
|
label: il,
|
|
@@ -4179,8 +4179,8 @@ const rl = "ids-radio-v5141", nl = "ids-radio--input-v5141", il = "ids-radio--la
|
|
|
4179
4179
|
touch: m,
|
|
4180
4180
|
...p
|
|
4181
4181
|
}, g) => {
|
|
4182
|
-
const y =
|
|
4183
|
-
if (b ?
|
|
4182
|
+
const y = Oe(p), A = ys(qn), b = !!A.onChange, F = b ? A.value === u : e ?? i;
|
|
4183
|
+
if (b ? A.readonly : f)
|
|
4184
4184
|
return F ? /* @__PURE__ */ a(
|
|
4185
4185
|
Ze,
|
|
4186
4186
|
{
|
|
@@ -4190,7 +4190,7 @@ const rl = "ids-radio-v5141", nl = "ids-radio--input-v5141", il = "ids-radio--la
|
|
|
4190
4190
|
children: s
|
|
4191
4191
|
}
|
|
4192
4192
|
) : null;
|
|
4193
|
-
const
|
|
4193
|
+
const C = A.name ?? o, x = A.hiddenRadio ?? n, H = A.required ?? d, M = A.touch ?? m;
|
|
4194
4194
|
return /* @__PURE__ */ L(
|
|
4195
4195
|
"div",
|
|
4196
4196
|
{
|
|
@@ -4198,7 +4198,7 @@ const rl = "ids-radio-v5141", nl = "ids-radio--input-v5141", il = "ids-radio--la
|
|
|
4198
4198
|
className: V(t, {
|
|
4199
4199
|
[pt.radio]: !0,
|
|
4200
4200
|
[pt.hiddenControl]: x,
|
|
4201
|
-
[pt.touch]:
|
|
4201
|
+
[pt.touch]: M
|
|
4202
4202
|
}),
|
|
4203
4203
|
children: [
|
|
4204
4204
|
/* @__PURE__ */ a(
|
|
@@ -4207,13 +4207,13 @@ const rl = "ids-radio-v5141", nl = "ids-radio--input-v5141", il = "ids-radio--la
|
|
|
4207
4207
|
...p,
|
|
4208
4208
|
type: "radio",
|
|
4209
4209
|
id: y,
|
|
4210
|
-
name:
|
|
4210
|
+
name: C,
|
|
4211
4211
|
ref: g,
|
|
4212
4212
|
className: pt.input,
|
|
4213
4213
|
"data-testid": T(r, "input"),
|
|
4214
4214
|
onChange: (E) => {
|
|
4215
4215
|
var W;
|
|
4216
|
-
l == null || l(E, u), (W =
|
|
4216
|
+
l == null || l(E, u), (W = A.onChange) == null || W.call(A, E, u);
|
|
4217
4217
|
},
|
|
4218
4218
|
value: String(u),
|
|
4219
4219
|
checked: F,
|
|
@@ -4343,18 +4343,18 @@ const ul = ({
|
|
|
4343
4343
|
component: "IressSelect",
|
|
4344
4344
|
defaultValue: o
|
|
4345
4345
|
});
|
|
4346
|
-
const m =
|
|
4346
|
+
const m = Oe(d), p = fe(null), { value: g, setValue: y } = bt({
|
|
4347
4347
|
component: "IressSelect",
|
|
4348
4348
|
defaultValue: o,
|
|
4349
4349
|
value: n
|
|
4350
|
-
}),
|
|
4350
|
+
}), A = hn.useCallback(
|
|
4351
4351
|
(b) => on(
|
|
4352
4352
|
b,
|
|
4353
4353
|
Yt(e)
|
|
4354
4354
|
),
|
|
4355
4355
|
[e]
|
|
4356
4356
|
);
|
|
4357
|
-
return
|
|
4357
|
+
return Ee(u, () => p.current), /* @__PURE__ */ a(
|
|
4358
4358
|
"div",
|
|
4359
4359
|
{
|
|
4360
4360
|
"data-testid": t,
|
|
@@ -4387,12 +4387,12 @@ const ul = ({
|
|
|
4387
4387
|
"data-testid": T(t, "select"),
|
|
4388
4388
|
id: m,
|
|
4389
4389
|
onChange: (b) => {
|
|
4390
|
-
const S =
|
|
4390
|
+
const S = A(b.currentTarget.value);
|
|
4391
4391
|
y(S), r == null || r(b, S);
|
|
4392
4392
|
},
|
|
4393
4393
|
ref: (b) => {
|
|
4394
4394
|
if (p.current = b, !g && (b != null && b.value)) {
|
|
4395
|
-
const S =
|
|
4395
|
+
const S = A(b.value);
|
|
4396
4396
|
y(S), r == null || r(Ie(b.value), S);
|
|
4397
4397
|
}
|
|
4398
4398
|
},
|
|
@@ -4512,21 +4512,21 @@ function yl(e = null, s, t = null) {
|
|
|
4512
4512
|
}
|
|
4513
4513
|
return e ? r.filter((i) => i.matches(e)) : r;
|
|
4514
4514
|
}
|
|
4515
|
-
const bl = "ids-slideout-
|
|
4515
|
+
const bl = "ids-slideout-v5142", xl = "ids-slideout--backdrop-v5142", _l = "ids-slideout--push-v5142", Sl = "ids-slideout--unmounted-v5142", Nl = "ids-slideout--initial-v5142", wl = "ids-slideout--close-v5142", Il = "ids-slideout--open-v5142", kl = "ids-slideout--right-v5142", Fl = "ids-slideout--left-v5142", $l = "ids-slideout--close-button-v5142", Al = "ids-slideout--content-v5142", Vl = "ids-slideout--footer-v5142", We = {
|
|
4516
4516
|
slideout: bl,
|
|
4517
4517
|
backdrop: xl,
|
|
4518
4518
|
push: _l,
|
|
4519
|
-
"size--sm": "ids-slideout--size--sm-
|
|
4520
|
-
"size--md": "ids-slideout--size--md-
|
|
4521
|
-
"size--lg": "ids-slideout--size--lg-
|
|
4519
|
+
"size--sm": "ids-slideout--size--sm-v5142",
|
|
4520
|
+
"size--md": "ids-slideout--size--md-v5142",
|
|
4521
|
+
"size--lg": "ids-slideout--size--lg-v5142",
|
|
4522
4522
|
unmounted: Sl,
|
|
4523
4523
|
initial: Nl,
|
|
4524
4524
|
close: wl,
|
|
4525
4525
|
open: Il,
|
|
4526
4526
|
right: kl,
|
|
4527
4527
|
left: Fl,
|
|
4528
|
-
closeButton:
|
|
4529
|
-
content:
|
|
4528
|
+
closeButton: $l,
|
|
4529
|
+
content: Al,
|
|
4530
4530
|
footer: Vl
|
|
4531
4531
|
}, ar = ({
|
|
4532
4532
|
children: e,
|
|
@@ -4544,14 +4544,14 @@ const bl = "ids-slideout-v5141", xl = "ids-slideout--backdrop-v5141", _l = "ids-
|
|
|
4544
4544
|
{
|
|
4545
4545
|
onClick: () => o(!1),
|
|
4546
4546
|
screenreaderText: s,
|
|
4547
|
-
className:
|
|
4547
|
+
className: We.closeButton,
|
|
4548
4548
|
"data-testid": T(t, "close-button__button")
|
|
4549
4549
|
}
|
|
4550
4550
|
),
|
|
4551
4551
|
/* @__PURE__ */ L(
|
|
4552
4552
|
"div",
|
|
4553
4553
|
{
|
|
4554
|
-
className: V(
|
|
4554
|
+
className: V(We.content, `iress-p--${l}`),
|
|
4555
4555
|
"data-testid": T(t, "content"),
|
|
4556
4556
|
children: [
|
|
4557
4557
|
n,
|
|
@@ -4562,19 +4562,19 @@ const bl = "ids-slideout-v5141", xl = "ids-slideout--backdrop-v5141", _l = "ids-
|
|
|
4562
4562
|
i && /* @__PURE__ */ a(
|
|
4563
4563
|
"div",
|
|
4564
4564
|
{
|
|
4565
|
-
className: V(
|
|
4565
|
+
className: V(We.footer, `iress-p--${l}`),
|
|
4566
4566
|
"data-testid": T(t, "footer"),
|
|
4567
4567
|
children: i
|
|
4568
4568
|
}
|
|
4569
4569
|
)
|
|
4570
|
-
] }), Rl = "ids-slideout-push-element-
|
|
4570
|
+
] }), Rl = "ids-slideout-push-element-v5142", Ll = "ids-slideout-push-element--right-v5142", Dl = "ids-slideout-push-element--left-v5142", Ml = "ids-slideout-push-element--open-v5142", Le = {
|
|
4571
4571
|
slideoutPushElement: Rl,
|
|
4572
4572
|
right: Ll,
|
|
4573
4573
|
left: Dl,
|
|
4574
4574
|
open: Ml,
|
|
4575
|
-
"size--sm": "ids-slideout-push-element--size--sm-
|
|
4576
|
-
"size--md": "ids-slideout-push-element--size--md-
|
|
4577
|
-
"size--lg": "ids-slideout-push-element--size--lg-
|
|
4575
|
+
"size--sm": "ids-slideout-push-element--size--sm-v5142",
|
|
4576
|
+
"size--md": "ids-slideout-push-element--size--md-v5142",
|
|
4577
|
+
"size--lg": "ids-slideout-push-element--size--lg-v5142"
|
|
4578
4578
|
}, ss = ({
|
|
4579
4579
|
backdrop: e,
|
|
4580
4580
|
children: s,
|
|
@@ -4591,23 +4591,23 @@ const bl = "ids-slideout-v5141", xl = "ids-slideout--backdrop-v5141", _l = "ids-
|
|
|
4591
4591
|
onExited: p,
|
|
4592
4592
|
onShowChange: g,
|
|
4593
4593
|
padding: y = "md",
|
|
4594
|
-
position:
|
|
4594
|
+
position: A = "right",
|
|
4595
4595
|
show: b,
|
|
4596
4596
|
size: S = "sm",
|
|
4597
4597
|
style: F,
|
|
4598
4598
|
...w
|
|
4599
4599
|
}) => {
|
|
4600
|
-
const [
|
|
4600
|
+
const [C, x] = X(o), H = fe(240), M = fe(null), E = Xn(w.id), W = Oe({ id: w.id }), U = `${W}--heading`, J = E.opened || b || C, $ = (Q, pe, Y) => {
|
|
4601
4601
|
E.show(Q), x(Q), g == null || g(Q, Y);
|
|
4602
4602
|
}, { context: _ } = ks({
|
|
4603
4603
|
open: J,
|
|
4604
|
-
onOpenChange:
|
|
4604
|
+
onOpenChange: $
|
|
4605
4605
|
}), D = wr(_, {
|
|
4606
4606
|
enabled: !0,
|
|
4607
4607
|
outsidePress: e === !0
|
|
4608
4608
|
}), B = Ir(_, {
|
|
4609
4609
|
enabled: e === !0
|
|
4610
|
-
}), O = kr([D, B]), { isMounted:
|
|
4610
|
+
}), O = kr([D, B]), { isMounted: P, status: q } = Fs(_, {
|
|
4611
4611
|
duration: H.current
|
|
4612
4612
|
});
|
|
4613
4613
|
ee(() => {
|
|
@@ -4616,38 +4616,44 @@ const bl = "ids-slideout-v5141", xl = "ids-slideout--backdrop-v5141", _l = "ids-
|
|
|
4616
4616
|
);
|
|
4617
4617
|
}, [E.opened, b]), ee(() => {
|
|
4618
4618
|
if (u === "overlay")
|
|
4619
|
-
|
|
4619
|
+
M.current = null;
|
|
4620
4620
|
else {
|
|
4621
4621
|
let Q;
|
|
4622
|
-
typeof l == "string" ? Q = hl(l) : l instanceof Element ? Q = l : Q = l == null ? void 0 : l.current,
|
|
4622
|
+
typeof l == "string" ? Q = hl(l) : l instanceof Element ? Q = l : Q = l == null ? void 0 : l.current, M.current = Q;
|
|
4623
4623
|
}
|
|
4624
4624
|
return () => {
|
|
4625
|
-
|
|
4625
|
+
M.current = null;
|
|
4626
4626
|
};
|
|
4627
4627
|
}, [l, u]), ee(() => {
|
|
4628
4628
|
var Q, pe, Y, ce, ve, ne, he, ae, se;
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
), (pe = _.refs.floating) != null && pe.current && (H.current =
|
|
4629
|
+
q === "initial" && ((Q = M == null ? void 0 : M.current) == null || Q.classList.add(
|
|
4630
|
+
Le.slideoutPushElement,
|
|
4631
|
+
Le[A],
|
|
4632
|
+
Le[`size--${S}`]
|
|
4633
|
+
), (pe = _.refs.floating) != null && pe.current && (H.current = Ar(
|
|
4634
4634
|
((Y = window.getComputedStyle(_.refs.floating.current, null)) == null ? void 0 : Y.getPropertyValue("--iress-transition-duration")) || ".3s"
|
|
4635
|
-
))),
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4635
|
+
))), q === "open" && (m == null || m(), (ve = (ce = _.refs.floating) == null ? void 0 : ce.current) == null || ve.focus(), (ne = M == null ? void 0 : M.current) == null || ne.classList.add(Le.open)), q === "close" && (p == null || p(), (he = M == null ? void 0 : M.current) == null || he.classList.remove(Le.open)), q === "unmounted" && !((ae = M == null ? void 0 : M.current) != null && ae.classList.contains(Le.open)) && ((se = M == null ? void 0 : M.current) == null || se.classList.remove(
|
|
4636
|
+
Le.slideoutPushElement,
|
|
4637
|
+
Le[A],
|
|
4638
|
+
Le[`size--${S}`]
|
|
4639
4639
|
));
|
|
4640
4640
|
}, [
|
|
4641
|
-
|
|
4641
|
+
q,
|
|
4642
4642
|
m,
|
|
4643
4643
|
p,
|
|
4644
4644
|
_.refs.floating,
|
|
4645
|
-
|
|
4646
|
-
|
|
4645
|
+
M,
|
|
4646
|
+
A,
|
|
4647
4647
|
S
|
|
4648
|
-
])
|
|
4648
|
+
]), ee(() => {
|
|
4649
|
+
q === "open" && (M != null && M.current) && (M.current.classList.remove(
|
|
4650
|
+
Le["size--sm"],
|
|
4651
|
+
Le["size--md"],
|
|
4652
|
+
Le["size--lg"]
|
|
4653
|
+
), M.current.classList.add(Le[`size--${S}`]));
|
|
4654
|
+
}, [S, q, M]);
|
|
4649
4655
|
const te = Se(() => typeof d == "string" ? /* @__PURE__ */ a(
|
|
4650
|
-
|
|
4656
|
+
Pe,
|
|
4651
4657
|
{
|
|
4652
4658
|
id: U,
|
|
4653
4659
|
"data-testid": T(n, "heading"),
|
|
@@ -4657,18 +4663,18 @@ const bl = "ids-slideout-v5141", xl = "ids-slideout--backdrop-v5141", _l = "ids-
|
|
|
4657
4663
|
) : d ? mr(d, {
|
|
4658
4664
|
id: U
|
|
4659
4665
|
}) : null, [n, U, d]);
|
|
4660
|
-
if (!
|
|
4666
|
+
if (!P) return null;
|
|
4661
4667
|
const K = {
|
|
4662
4668
|
"aria-labelledby": te ? U : void 0,
|
|
4663
4669
|
children: s,
|
|
4664
4670
|
className: V(
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4671
|
+
We.slideout,
|
|
4672
|
+
We[q],
|
|
4673
|
+
We[A],
|
|
4674
|
+
We[`size--${S}`],
|
|
4669
4675
|
Z.IgnoreStack,
|
|
4670
4676
|
{
|
|
4671
|
-
[
|
|
4677
|
+
[We.push]: u === "push" && M.current,
|
|
4672
4678
|
[`${t}`]: t && !e
|
|
4673
4679
|
}
|
|
4674
4680
|
),
|
|
@@ -4678,7 +4684,7 @@ const bl = "ids-slideout-v5141", xl = "ids-slideout--backdrop-v5141", _l = "ids-
|
|
|
4678
4684
|
floatingRef: (Q) => _.refs.setFloating(Q),
|
|
4679
4685
|
heading: te,
|
|
4680
4686
|
id: W,
|
|
4681
|
-
onOpenChange:
|
|
4687
|
+
onOpenChange: $,
|
|
4682
4688
|
padding: y,
|
|
4683
4689
|
...O.getFloatingProps(w)
|
|
4684
4690
|
};
|
|
@@ -4692,15 +4698,15 @@ const bl = "ids-slideout-v5141", xl = "ids-slideout--backdrop-v5141", _l = "ids-
|
|
|
4692
4698
|
{
|
|
4693
4699
|
className: V(
|
|
4694
4700
|
t,
|
|
4695
|
-
|
|
4696
|
-
|
|
4701
|
+
We.backdrop,
|
|
4702
|
+
We[q],
|
|
4697
4703
|
Z.IgnoreStack
|
|
4698
4704
|
),
|
|
4699
4705
|
"data-testid": T(n, "backdrop"),
|
|
4700
4706
|
lockScroll: !0,
|
|
4701
4707
|
style: Q,
|
|
4702
4708
|
children: /* @__PURE__ */ a(
|
|
4703
|
-
|
|
4709
|
+
$r,
|
|
4704
4710
|
{
|
|
4705
4711
|
context: _,
|
|
4706
4712
|
initialFocus: _.refs.floating,
|
|
@@ -4746,7 +4752,7 @@ const Cl = (e = 0, s = 10, t = 1) => {
|
|
|
4746
4752
|
component: "IressSelect",
|
|
4747
4753
|
defaultValue: s
|
|
4748
4754
|
});
|
|
4749
|
-
const y =
|
|
4755
|
+
const y = Oe({ id: p == null ? void 0 : p.id }), b = (typeof u == "boolean" ? Cl(o, n, d) : u ?? []).map(
|
|
4750
4756
|
(x) => typeof x == "number" ? { value: x } : x
|
|
4751
4757
|
), { value: S, setValue: F } = bt({
|
|
4752
4758
|
component: "IressSlider",
|
|
@@ -4755,7 +4761,7 @@ const Cl = (e = 0, s = 10, t = 1) => {
|
|
|
4755
4761
|
}), w = Fe(() => {
|
|
4756
4762
|
const x = b == null ? void 0 : b.find((H) => H.value === S);
|
|
4757
4763
|
return r ? r(S ?? 0, x, f) : (x == null ? void 0 : x.label) ?? S;
|
|
4758
|
-
}, [b, r, S, f]),
|
|
4764
|
+
}, [b, r, S, f]), C = Fe(() => {
|
|
4759
4765
|
const x = Number(((S ?? 0) - o) * 100 / (n - o));
|
|
4760
4766
|
return `calc(${x}% + ((var(--iress-thumb-width) / 2) - ${x * 0.285}px))`;
|
|
4761
4767
|
}, [n, o, S]);
|
|
@@ -4772,7 +4778,7 @@ const Cl = (e = 0, s = 10, t = 1) => {
|
|
|
4772
4778
|
{
|
|
4773
4779
|
className: V(t, as.slider),
|
|
4774
4780
|
style: {
|
|
4775
|
-
"--iress-thumb-value-offset":
|
|
4781
|
+
"--iress-thumb-value-offset": C()
|
|
4776
4782
|
},
|
|
4777
4783
|
"data-testid": e,
|
|
4778
4784
|
children: [
|
|
@@ -4914,7 +4920,7 @@ const Bl = ({
|
|
|
4914
4920
|
scope: p,
|
|
4915
4921
|
...g
|
|
4916
4922
|
}) => {
|
|
4917
|
-
const y =
|
|
4923
|
+
const y = Oe({ id: g.id }), A = `${y}--caption`, b = (o && ni(t)) ?? !!(m != null && m.length), S = s ?? b;
|
|
4918
4924
|
t && !Array.isArray(t) && Zt(
|
|
4919
4925
|
"IressTable: Passing columns as an object is deprecated and will be removed in a future version. Please use an array instead.",
|
|
4920
4926
|
"warn"
|
|
@@ -4941,7 +4947,7 @@ const Bl = ({
|
|
|
4941
4947
|
/* @__PURE__ */ a(
|
|
4942
4948
|
"caption",
|
|
4943
4949
|
{
|
|
4944
|
-
id:
|
|
4950
|
+
id: A,
|
|
4945
4951
|
className: V(Ke.caption, {
|
|
4946
4952
|
[Z.SROnly]: l
|
|
4947
4953
|
}),
|
|
@@ -4995,8 +5001,8 @@ const Ul = ie(
|
|
|
4995
5001
|
r == null || r(w);
|
|
4996
5002
|
return;
|
|
4997
5003
|
}
|
|
4998
|
-
const
|
|
4999
|
-
t == null || t(Ie(
|
|
5004
|
+
const C = [...p ?? [], w];
|
|
5005
|
+
t == null || t(Ie(C), C), g(C);
|
|
5000
5006
|
},
|
|
5001
5007
|
[t, r, g, p]
|
|
5002
5008
|
);
|
|
@@ -5010,17 +5016,17 @@ const Ul = ie(
|
|
|
5010
5016
|
onChange: (w) => m(w.currentTarget.value),
|
|
5011
5017
|
onKeyDown: (w) => {
|
|
5012
5018
|
if (i == null || i(w), w.key === "Backspace" && !u) {
|
|
5013
|
-
const
|
|
5014
|
-
t == null || t(Ie(
|
|
5019
|
+
const C = p == null ? void 0 : p.slice(0, -1);
|
|
5020
|
+
t == null || t(Ie(C), C), g(C);
|
|
5015
5021
|
} else if (w.key === "Enter") {
|
|
5016
|
-
const
|
|
5017
|
-
y(
|
|
5022
|
+
const C = w.currentTarget;
|
|
5023
|
+
y(C.value), m("");
|
|
5018
5024
|
}
|
|
5019
5025
|
},
|
|
5020
5026
|
onTagDelete: (w) => {
|
|
5021
5027
|
n == null || n(w);
|
|
5022
|
-
const
|
|
5023
|
-
t == null || t(Ie(
|
|
5028
|
+
const C = p == null ? void 0 : p.filter((x) => x !== w);
|
|
5029
|
+
t == null || t(Ie(C), C), g(C);
|
|
5024
5030
|
},
|
|
5025
5031
|
onTagDeleteAll: (w) => {
|
|
5026
5032
|
o == null || o(w), t == null || t(Ie([]), []), g([]);
|
|
@@ -5033,24 +5039,24 @@ const Ul = ie(
|
|
|
5033
5039
|
}
|
|
5034
5040
|
);
|
|
5035
5041
|
Ul.displayName = "IressTagInput";
|
|
5036
|
-
const Wl = "ids-toast-
|
|
5042
|
+
const Wl = "ids-toast-v5142", ql = "ids-toast--open-v5142", Pl = "ids-toast--fade-v5142", jl = "ids-toast--panel-v5142", Ql = "ids-toast--unmounted-v5142", Kl = "ids-toast--toast__icon-v5142", Yl = "ids-toast--toast__wrapper-v5142", Xl = "ids-toast--toast__footer-v5142", Xe = {
|
|
5037
5043
|
toast: Wl,
|
|
5038
|
-
"start-x": "ids-toast--start-x-
|
|
5039
|
-
"end-x": "ids-toast--end-x-
|
|
5044
|
+
"start-x": "ids-toast--start-x-v5142",
|
|
5045
|
+
"end-x": "ids-toast--end-x-v5142",
|
|
5040
5046
|
open: ql,
|
|
5041
|
-
"start-y": "ids-toast--start-y-
|
|
5042
|
-
"end-y": "ids-toast--end-y-
|
|
5047
|
+
"start-y": "ids-toast--start-y-v5142",
|
|
5048
|
+
"end-y": "ids-toast--end-y-v5142",
|
|
5043
5049
|
fade: Pl,
|
|
5044
5050
|
panel: jl,
|
|
5045
|
-
"toast--error": "ids-toast--toast--error-
|
|
5046
|
-
"toast--success": "ids-toast--toast--success-
|
|
5047
|
-
"toast--info": "ids-toast--toast--info-
|
|
5051
|
+
"toast--error": "ids-toast--toast--error-v5142",
|
|
5052
|
+
"toast--success": "ids-toast--toast--success-v5142",
|
|
5053
|
+
"toast--info": "ids-toast--toast--info-v5142",
|
|
5048
5054
|
unmounted: Ql,
|
|
5049
|
-
"iress-u-text": "ids-toast--iress-u-text-
|
|
5055
|
+
"iress-u-text": "ids-toast--iress-u-text-v5142",
|
|
5050
5056
|
toast__icon: Kl,
|
|
5051
5057
|
toast__wrapper: Yl,
|
|
5052
5058
|
toast__footer: Xl,
|
|
5053
|
-
"toast__close-button": "ids-toast--toast__close-button-
|
|
5059
|
+
"toast__close-button": "ids-toast--toast__close-button-v5142"
|
|
5054
5060
|
}, Jl = ({ status: e }) => /* @__PURE__ */ a(
|
|
5055
5061
|
le,
|
|
5056
5062
|
{
|
|
@@ -5127,7 +5133,7 @@ const Wl = "ids-toast-v5141", ql = "ids-toast--open-v5141", Pl = "ids-toast--fad
|
|
|
5127
5133
|
className: V(u, Xe.toast, Xe[`toast--${r}`]),
|
|
5128
5134
|
tabIndex: -1,
|
|
5129
5135
|
ref: p,
|
|
5130
|
-
children: /* @__PURE__ */ a(
|
|
5136
|
+
children: /* @__PURE__ */ a($s, { className: V(ht.Base, Xe.panel), children: /* @__PURE__ */ L(et, { gutter: "sm", verticalAlign: "top", noWrap: !0, children: [
|
|
5131
5137
|
/* @__PURE__ */ a(Jl, { status: r }),
|
|
5132
5138
|
/* @__PURE__ */ a(
|
|
5133
5139
|
ec,
|
|
@@ -5298,7 +5304,7 @@ const sc = (e) => {
|
|
|
5298
5304
|
e,
|
|
5299
5305
|
/* @__PURE__ */ a(nc, { toasts: t, ...i })
|
|
5300
5306
|
] });
|
|
5301
|
-
}, ic = "ids-default-loading--position-
|
|
5307
|
+
}, ic = "ids-default-loading--position-v5142", oc = "ids-default-loading--message-v5142", lr = {
|
|
5302
5308
|
position: ic,
|
|
5303
5309
|
message: oc
|
|
5304
5310
|
}, ac = ({
|
|
@@ -5324,23 +5330,23 @@ const sc = (e) => {
|
|
|
5324
5330
|
className: V(
|
|
5325
5331
|
lr.position,
|
|
5326
5332
|
s,
|
|
5327
|
-
|
|
5333
|
+
Ce["fade-in"],
|
|
5328
5334
|
{
|
|
5329
|
-
[
|
|
5335
|
+
[Ce["fade-in--active"]]: n
|
|
5330
5336
|
}
|
|
5331
5337
|
),
|
|
5332
5338
|
children: /* @__PURE__ */ a(
|
|
5333
|
-
|
|
5339
|
+
Pe,
|
|
5334
5340
|
{
|
|
5335
|
-
className: V(lr.message,
|
|
5336
|
-
[
|
|
5341
|
+
className: V(lr.message, Ce["slide-in"], {
|
|
5342
|
+
[Ce["slide-in--active"]]: n
|
|
5337
5343
|
}),
|
|
5338
5344
|
children: n ? e : t
|
|
5339
5345
|
}
|
|
5340
5346
|
)
|
|
5341
5347
|
}
|
|
5342
5348
|
);
|
|
5343
|
-
}, lc = "ids-validate-loading--root-
|
|
5349
|
+
}, lc = "ids-validate-loading--root-v5142", cc = "ids-validate-loading--loading-v5142", dc = "ids-validate-loading--message-v5142", uc = "ids-validate-loading--top-v5142", fc = "ids-validate-loading--right-v5142", Ft = {
|
|
5344
5350
|
root: lc,
|
|
5345
5351
|
loading: cc,
|
|
5346
5352
|
message: dc,
|
|
@@ -5380,10 +5386,10 @@ const sc = (e) => {
|
|
|
5380
5386
|
o({ loading: t }),
|
|
5381
5387
|
e,
|
|
5382
5388
|
/* @__PURE__ */ a(
|
|
5383
|
-
|
|
5389
|
+
Pe,
|
|
5384
5390
|
{
|
|
5385
|
-
className: V(Ft.message,
|
|
5386
|
-
[
|
|
5391
|
+
className: V(Ft.message, Ce["fade-next"], {
|
|
5392
|
+
[Ce["fade-next-width"]]: n === "right"
|
|
5387
5393
|
}),
|
|
5388
5394
|
mode: "muted",
|
|
5389
5395
|
children: r
|
|
@@ -5392,7 +5398,7 @@ const sc = (e) => {
|
|
|
5392
5398
|
]
|
|
5393
5399
|
}
|
|
5394
5400
|
) : o({ loading: t, className: Ft.loading });
|
|
5395
|
-
}, hc = "ids-component-loading--root-
|
|
5401
|
+
}, hc = "ids-component-loading--root-v5142", pc = "ids-component-loading--loaded-v5142", vc = "ids-component-loading--message-v5142", gc = "ids-component-loading--overlay-v5142", yc = "ids-component-loading--overlay-strong-v5142", bc = "ids-component-loading--spinner-v5142", at = {
|
|
5396
5402
|
root: hc,
|
|
5397
5403
|
loaded: pc,
|
|
5398
5404
|
message: vc,
|
|
@@ -5441,9 +5447,9 @@ const sc = (e) => {
|
|
|
5441
5447
|
className: V(
|
|
5442
5448
|
at.root,
|
|
5443
5449
|
s,
|
|
5444
|
-
|
|
5450
|
+
Ce["fade-in"],
|
|
5445
5451
|
{
|
|
5446
|
-
[
|
|
5452
|
+
[Ce["fade-in--active"]]: f
|
|
5447
5453
|
}
|
|
5448
5454
|
),
|
|
5449
5455
|
...l,
|
|
@@ -5468,10 +5474,10 @@ const sc = (e) => {
|
|
|
5468
5474
|
}
|
|
5469
5475
|
),
|
|
5470
5476
|
o && /* @__PURE__ */ L(
|
|
5471
|
-
|
|
5477
|
+
Pe,
|
|
5472
5478
|
{
|
|
5473
|
-
className: V(at.message,
|
|
5474
|
-
[
|
|
5479
|
+
className: V(at.message, Ce["fade-in"], {
|
|
5480
|
+
[Ce["fade-in--active"]]: u
|
|
5475
5481
|
}),
|
|
5476
5482
|
children: [
|
|
5477
5483
|
/* @__PURE__ */ a(Mt, { className: at.spinner }),
|
|
@@ -5483,7 +5489,7 @@ const sc = (e) => {
|
|
|
5483
5489
|
]
|
|
5484
5490
|
}
|
|
5485
5491
|
);
|
|
5486
|
-
}, _c = "ids-page-loading--root-
|
|
5492
|
+
}, _c = "ids-page-loading--root-v5142", Sc = "ids-page-loading--critical-v5142", Nc = "ids-page-loading--show-critical-v5142", wc = "ids-page-loading--skeleton-v5142", Ic = "ids-page-loading--hide-template-v5142", $t = {
|
|
5487
5493
|
root: _c,
|
|
5488
5494
|
critical: Sc,
|
|
5489
5495
|
showCritical: Nc,
|
|
@@ -5555,14 +5561,14 @@ const sc = (e) => {
|
|
|
5555
5561
|
"div",
|
|
5556
5562
|
{
|
|
5557
5563
|
...o,
|
|
5558
|
-
className: V(e,
|
|
5559
|
-
[
|
|
5560
|
-
[
|
|
5561
|
-
[
|
|
5564
|
+
className: V(e, $t.root, Ce["fade-in"], {
|
|
5565
|
+
[Ce["fade-in--active"]]: l,
|
|
5566
|
+
[$t.hideTemplate]: d,
|
|
5567
|
+
[$t.showCritical]: m
|
|
5562
5568
|
}),
|
|
5563
5569
|
children: [
|
|
5564
|
-
!m && /* @__PURE__ */ a("div", { className:
|
|
5565
|
-
d && /* @__PURE__ */ a("div", { className:
|
|
5570
|
+
!m && /* @__PURE__ */ a("div", { className: $t.skeleton, children: g }),
|
|
5571
|
+
d && /* @__PURE__ */ a("div", { className: $t.critical, children: s }),
|
|
5566
5572
|
/* @__PURE__ */ a(Rt, { hiddenOn: { xs: !0 }, visuallyHidden: !0, children: r })
|
|
5567
5573
|
]
|
|
5568
5574
|
}
|
|
@@ -5679,13 +5685,13 @@ export {
|
|
|
5679
5685
|
Wa as n,
|
|
5680
5686
|
Mr as o,
|
|
5681
5687
|
Cr as p,
|
|
5682
|
-
|
|
5688
|
+
As as q,
|
|
5683
5689
|
hs as r,
|
|
5684
5690
|
rn as s,
|
|
5685
5691
|
nn as t,
|
|
5686
5692
|
Ru as u,
|
|
5687
5693
|
Ze as v,
|
|
5688
|
-
|
|
5694
|
+
$o as w,
|
|
5689
5695
|
Vo as x,
|
|
5690
5696
|
oo as y,
|
|
5691
5697
|
xt as z
|