@iress-oss/ids-components 0.0.1-dev.8 → 5.13.1
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-ImNh0dmJ.js → AutocompleteNoResults-Bk7q5K89.js} +1 -1
- package/dist/{ComboboxHiddenInput-BVhoQtv3.js → ComboboxHiddenInput-BRgHrfvH.js} +6 -6
- package/dist/{FieldAppendToLabel-CnSsFR-r.js → FieldAppendToLabel-B7A85TG1.js} +4 -4
- package/dist/{InputBase-LsLk3nX1.js → InputBase-K0leqZnv.js} +2 -2
- package/dist/Loading-CZ64hUvP.js +5638 -0
- package/dist/LogoFromSrc-tAhdMB9Y.js +59 -0
- package/dist/MenuItem.module-Br0lJU3k.js +24 -0
- package/dist/Popover.module-COHnD5HM.js +11 -0
- package/dist/{SelectControl-BJo08wJN.js → SelectControl-415DMBPp.js} +2 -2
- package/dist/{SliderTicks-MkaJGb9A.js → SliderTicks-B6vu-MUH.js} +2 -2
- package/dist/StartUpLoading-DpO7RfDY.js +145 -0
- package/dist/TabSet.module-Bje9oAao.js +13 -0
- package/dist/Table.module-CSNtX5ab.js +32 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +3 -3
- package/dist/components/Autocomplete/components/AutocompleteNoResults.js +1 -1
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Badge/Badge.js +5 -5
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/CloseButton/CloseButton.js +2 -2
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +3 -3
- package/dist/components/ButtonGroup/hooks/useIDSButtonGroupItem.js +2 -2
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/helpers/composeIDSCard.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/Checkbox/helpers/mapCheckboxGroupOptions.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +7 -7
- package/dist/components/CheckboxMark/CheckboxMark.js +1 -1
- package/dist/components/CheckboxMark/CheckboxMark.types.js +2 -2
- package/dist/components/Col/Col.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/MultiCombobox/MultiCombobox.js +3 -3
- package/dist/components/Combobox/components/ComboboxHiddenInput.js +2 -2
- package/dist/components/Combobox/components/ComboboxResults.js +6 -6
- package/dist/components/Combobox/components/ComboboxResultsDescriptor.js +3 -3
- package/dist/components/Combobox/index.js +1 -1
- package/dist/components/Container/Container.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/Expander/Expander.js +2 -2
- package/dist/components/Field/Field.js +2 -2
- package/dist/components/Field/FieldGroup/FieldGroup.js +3 -3
- package/dist/components/Field/components/FieldAppendToLabel.js +4 -4
- package/dist/components/Filter/Filter.js +3 -3
- package/dist/components/Filter/components/FilterResetButton.js +3 -3
- package/dist/components/Filter/components/FilterSearch.js +3 -3
- package/dist/components/Filter/index.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormField/FormField.js +3 -3
- package/dist/components/Form/FormField/FormFieldset.js +3 -3
- package/dist/components/Form/HookForm/HookForm.js +2 -2
- package/dist/components/Form/components/FormValidationSummary.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Hide/Hide.js +2 -2
- package/dist/components/Hide/helpers/composeHideClasses.js +5 -5
- package/dist/components/Hide/index.js +1 -1
- package/dist/components/Icon/Icon.js +3 -3
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inline/Inline.js +3 -3
- package/dist/components/Inline/index.js +1 -1
- package/dist/components/Input/ClearButton/ClearButton.js +1 -1
- package/dist/components/Input/Input.js +3 -3
- package/dist/components/Input/InputBase/InputBase.js +2 -2
- 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 +2 -2
- package/dist/components/Menu/MenuDivider/MenuDivider.js +3 -3
- package/dist/components/Menu/MenuHeading/MenuHeading.js +3 -3
- package/dist/components/Menu/MenuItem/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemButtonProps.js +2 -2
- package/dist/components/Menu/MenuItem/hooks/useMenuItemComposite.js +1 -1
- package/dist/components/Menu/MenuText/MenuText.js +4 -4
- package/dist/components/Menu/helpers/mapMenuItems.js +1 -1
- package/dist/components/Menu/hooks/useMenuStyles.js +4 -4
- 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 +3 -3
- 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 +3 -3
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/Placeholder/Placeholder.js +2 -2
- package/dist/components/Popover/InputPopover/InputPopover.js +2 -2
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +1 -1
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/components/PopoverActivator.js +2 -2
- package/dist/components/Popover/components/PopoverContent.js +2 -2
- package/dist/components/Popover/helpers/handlePopoverTabKey.js +1 -1
- package/dist/components/Progress/Progress.js +2 -2
- package/dist/components/Radio/Radio.js +2 -2
- package/dist/components/Radio/helpers/mapRadioGroupOptions.js +1 -1
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +4 -4
- package/dist/components/Readonly/Readonly.js +4 -4
- package/dist/components/Readonly/index.js +1 -1
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/SelectBody/SelectBody.js +5 -5
- package/dist/components/RichSelect/SelectCreate/SelectCreate.js +3 -3
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +3 -3
- package/dist/components/RichSelect/SelectLabel/SelectLabel.js +2 -2
- package/dist/components/RichSelect/SelectMenu/SelectMenu.js +3 -3
- package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +3 -3
- package/dist/components/RichSelect/SelectSearch/SelectSearch.js +3 -3
- package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +2 -2
- package/dist/components/RichSelect/SelectTags/SelectTags.js +3 -3
- package/dist/components/RichSelect/components/SelectActivator.js +1 -1
- package/dist/components/RichSelect/components/SelectOptions.js +3 -3
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Row/Row.js +3 -3
- package/dist/components/Row/index.js +1 -1
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/components/SelectControl.js +2 -2
- package/dist/components/Select/components/SelectReadonly.js +3 -3
- 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 +3 -3
- package/dist/components/SkipLink/SkipLink.js +2 -2
- package/dist/components/Slideout/Slideout.js +2 -2
- package/dist/components/Slideout/components/SlideoutInner.js +2 -2
- package/dist/components/Slideout/index.js +1 -1
- package/dist/components/Slider/Slider.js +3 -3
- package/dist/components/Slider/components/SliderTicks.js +2 -2
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Spinner/Spinner.js +2 -2
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/Stack/Stack.js +1 -1
- package/dist/components/TabSet/Tab/Tab.js +2 -2
- package/dist/components/TabSet/TabSet.js +2 -2
- package/dist/components/TabSet/components/TabSetItem.js +1 -1
- package/dist/components/Table/Table.js +3 -3
- package/dist/components/Table/TableBody/TableBody.js +16 -16
- 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 +2 -2
- package/dist/components/Table/components/TableSortButton.js +4 -4
- package/dist/components/Table/hooks/useIDSTableColumnStyles.js +2 -2
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tag/Tag.js +2 -2
- package/dist/components/Tag/TagInput/TagInput.js +1 -1
- package/dist/components/Tag/components/TagListInput/TagListInput.js +2 -2
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/Toaster/Toast/Toast.js +2 -2
- package/dist/components/Toaster/Toast/ToastAnimated.js +2 -2
- package/dist/components/Toaster/Toast/ToastIcon.js +1 -1
- package/dist/components/Toaster/Toaster.js +3 -3
- 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 +4 -4
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/ValidationMessage/ValidationBase/ValidationBase.js +2 -2
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +2 -2
- package/dist/constants.js +1 -1
- package/dist/fuzzysort-CuIReeYY.js +393 -0
- package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
- package/dist/helpers/label-value/highlightQueryInLabel.js +1 -1
- package/dist/helpers/label-value/searchLabelValues.js +1 -1
- package/dist/index-Cu0xwYjD.js +42 -0
- package/dist/main.js +308 -309
- package/dist/patterns/Loading/Loading.js +3 -4
- package/dist/patterns/Loading/components/ComponentLoading.js +3 -3
- package/dist/patterns/Loading/components/DefaultLoading.js +4 -4
- package/dist/patterns/Loading/components/PageLoading.js +4 -4
- package/dist/patterns/Loading/components/StartUpLoading.js +9 -105
- package/dist/patterns/Loading/components/ValidateLoading.js +3 -3
- package/dist/patterns/Loading/hooks/useShouldRenderLoading.js +15 -19
- package/dist/patterns/Loading/index.js +2 -3
- package/dist/src/components/RichSelect/RichSelect.types.d.ts +0 -8
- package/dist/src/patterns/Loading/Loading.d.ts +2 -7
- package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +1 -1
- package/dist/src/patterns/Loading/hooks/useShouldRenderLoading.d.ts +1 -2
- package/dist/src/patterns/Loading/index.d.ts +0 -1
- package/dist/style.css +1 -1
- package/dist/{useIDSButtonGroupItem-Y0ZSkNW8.js → useIDSButtonGroupItem-Dzgv35ni.js} +2 -2
- package/package.json +10 -11
- package/dist/Loading.module-C58kTwE4.js +0 -13
- package/dist/LoadingSuspense-CjQp8lLW.js +0 -5683
- package/dist/LogoFromSrc-KxC2Gztm.js +0 -59
- package/dist/MenuItem.module-3aqP1ZMw.js +0 -24
- package/dist/Popover.module-CLIdWyZD.js +0 -11
- package/dist/TabSet.module-DGDICWMf.js +0 -13
- package/dist/Table.module-Co33h7CZ.js +0 -32
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/fuzzysort-eoXOpoo6.js +0 -395
- package/dist/index-2QXL0WYc.js +0 -45
- package/dist/patterns/Loading/LoadingSuspense.js +0 -7
- package/dist/patterns/Loading/components/LongLoading.js +0 -132
- package/dist/patterns/Loading/hooks/useEstimatedProgressValue.js +0 -29
- package/dist/patterns/Loading/hooks/useShowIndicator.js +0 -20
- package/dist/patterns/Loading/hooks/useSuspenseResource.js +0 -27
- package/dist/src/patterns/Loading/LoadingSuspense.d.ts +0 -73
- package/dist/src/patterns/Loading/components/LongLoading.d.ts +0 -60
- package/dist/src/patterns/Loading/hooks/useEstimatedProgressValue.d.ts +0 -11
- package/dist/src/patterns/Loading/hooks/useShowIndicator.d.ts +0 -9
- package/dist/src/patterns/Loading/hooks/useSuspenseResource.d.ts +0 -17
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import { Q as
|
|
2
|
+
import "../../StartUpLoading-DpO7RfDY.js";
|
|
3
|
+
import { Q as t } from "../../Loading-CZ64hUvP.js";
|
|
4
4
|
import "./hooks/useShouldRenderLoading.js";
|
|
5
|
-
import "./components/LongLoading.js";
|
|
6
5
|
export {
|
|
7
|
-
|
|
6
|
+
t as IressLoading
|
|
8
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../components/Skeleton/Skeleton.js";
|
|
4
|
-
import {
|
|
5
|
-
import "../../../
|
|
6
|
-
import "../../../index-
|
|
4
|
+
import { ag as e } from "../../../Loading-CZ64hUvP.js";
|
|
5
|
+
import "../../../StartUpLoading-DpO7RfDY.js";
|
|
6
|
+
import "../../../index-Cu0xwYjD.js";
|
|
7
7
|
import "../../../components/Text/Text.js";
|
|
8
8
|
export {
|
|
9
9
|
e as ComponentLoading
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
3
|
+
import { ae as e } from "../../../Loading-CZ64hUvP.js";
|
|
4
4
|
import "../../../components/Text/Text.js";
|
|
5
|
-
import "../../../index-
|
|
6
|
-
import "../../../
|
|
5
|
+
import "../../../index-Cu0xwYjD.js";
|
|
6
|
+
import "../../../StartUpLoading-DpO7RfDY.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
e as DefaultLoading
|
|
9
9
|
};
|
|
@@ -3,12 +3,12 @@ import "react";
|
|
|
3
3
|
import "../../../components/Stack/Stack.js";
|
|
4
4
|
import "../../../components/Skeleton/Skeleton.js";
|
|
5
5
|
import "../../../components/Container/Container.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ah as n } from "../../../Loading-CZ64hUvP.js";
|
|
7
7
|
import "../../../components/Col/Col.js";
|
|
8
8
|
import "../../../components/Divider/Divider.js";
|
|
9
9
|
import "../../../components/Card/Card.js";
|
|
10
|
-
import "../../../index-
|
|
11
|
-
import "../../../
|
|
10
|
+
import "../../../index-Cu0xwYjD.js";
|
|
11
|
+
import "../../../StartUpLoading-DpO7RfDY.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
n as PageLoading
|
|
14
14
|
};
|
|
@@ -1,107 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useShowIndicator as E } from "../hooks/useShowIndicator.js";
|
|
10
|
-
import { useEstimatedProgressValue as R } from "../hooks/useEstimatedProgressValue.js";
|
|
11
|
-
const H = "ids-start-up-loading--root-v5131", P = "ids-start-up-loading--progress-v5131", h = {
|
|
12
|
-
root: H,
|
|
13
|
-
progress: P
|
|
14
|
-
}, U = ({
|
|
15
|
-
children: g,
|
|
16
|
-
messageList: e,
|
|
17
|
-
progressValue: c,
|
|
18
|
-
screenReaderText: s,
|
|
19
|
-
show: t,
|
|
20
|
-
...l
|
|
21
|
-
}) => {
|
|
22
|
-
const o = I(null), d = T(() => {
|
|
23
|
-
const r = Object.keys(e ?? {}).filter(
|
|
24
|
-
(f) => Number(f) <= c
|
|
25
|
-
);
|
|
26
|
-
return r[r.length - 1];
|
|
27
|
-
}, [e, c]);
|
|
28
|
-
u(() => {
|
|
29
|
-
o.current && (o.current.classList.remove(n["slide-next"]), o.current.offsetHeight, o.current.classList.add(n["slide-next"]));
|
|
30
|
-
}, [d]);
|
|
31
|
-
const p = t ? g : s;
|
|
32
|
-
return /* @__PURE__ */ a(
|
|
33
|
-
v,
|
|
34
|
-
{
|
|
35
|
-
align: "center",
|
|
36
|
-
className: M(h.message, n["fade-in"], {
|
|
37
|
-
[n["fade-in--active"]]: t
|
|
38
|
-
}),
|
|
39
|
-
...l,
|
|
40
|
-
children: /* @__PURE__ */ a("div", { ref: o, children: d ? e == null ? void 0 : e[Number(d)] : p })
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
}, K = ({
|
|
44
|
-
className: g,
|
|
45
|
-
children: e = /* @__PURE__ */ a(v, { mode: "muted", children: "One moment please..." }),
|
|
46
|
-
"data-testid": c,
|
|
47
|
-
estimatedFinishTime: s = 3e3,
|
|
48
|
-
loaded: t,
|
|
49
|
-
messageList: l,
|
|
50
|
-
progress: o,
|
|
51
|
-
renderProgress: d = (m) => /* @__PURE__ */ a(k, { ...m }),
|
|
52
|
-
screenReaderText: p = "Loading...",
|
|
53
|
-
timeout: r,
|
|
54
|
-
...f
|
|
55
|
-
}) => {
|
|
56
|
-
const m = E(
|
|
57
|
-
t,
|
|
58
|
-
r == null ? void 0 : r.progress,
|
|
59
|
-
r == null ? void 0 : r.loaded
|
|
60
|
-
), [x, N] = y(!1), S = Math.max(...Object.keys(l ?? {}).map(Number)) + 500, i = R(
|
|
61
|
-
s,
|
|
62
|
-
t,
|
|
63
|
-
o,
|
|
64
|
-
S
|
|
65
|
-
);
|
|
66
|
-
return u(() => {
|
|
67
|
-
const b = setTimeout(
|
|
68
|
-
() => N(!0),
|
|
69
|
-
(r == null ? void 0 : r.message) ?? 2500
|
|
70
|
-
);
|
|
71
|
-
return () => {
|
|
72
|
-
clearTimeout(b);
|
|
73
|
-
};
|
|
74
|
-
}, [r == null ? void 0 : r.message]), /* @__PURE__ */ a(
|
|
75
|
-
"div",
|
|
76
|
-
{
|
|
77
|
-
"data-testid": c,
|
|
78
|
-
className: M(h.root, g, n["fade-in"], {
|
|
79
|
-
[n["fade-in--active"]]: m
|
|
80
|
-
}),
|
|
81
|
-
...f,
|
|
82
|
-
children: /* @__PURE__ */ w(j, { gutter: "md", ...f, children: [
|
|
83
|
-
d({
|
|
84
|
-
className: h.progress,
|
|
85
|
-
min: 0,
|
|
86
|
-
max: s,
|
|
87
|
-
value: Math.min(i, s),
|
|
88
|
-
sectionTitle: `${Math.min(i, s) / s * 100}% loaded`
|
|
89
|
-
}),
|
|
90
|
-
/* @__PURE__ */ a(
|
|
91
|
-
U,
|
|
92
|
-
{
|
|
93
|
-
"data-testid": O(c, "message"),
|
|
94
|
-
messageList: l,
|
|
95
|
-
progressValue: i,
|
|
96
|
-
screenReaderText: p,
|
|
97
|
-
show: x,
|
|
98
|
-
children: e
|
|
99
|
-
}
|
|
100
|
-
)
|
|
101
|
-
] })
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../../components/Stack/Stack.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../../components/Progress/Progress.js";
|
|
5
|
+
import "../../../index-Cu0xwYjD.js";
|
|
6
|
+
import { S as e } from "../../../StartUpLoading-DpO7RfDY.js";
|
|
7
|
+
import "../../../components/Text/Text.js";
|
|
8
|
+
import "../../../helpers/utility/propagateTestid.js";
|
|
105
9
|
export {
|
|
106
|
-
|
|
10
|
+
e as StartUpLoading
|
|
107
11
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "../../../index-
|
|
2
|
+
import { af as d } from "../../../Loading-CZ64hUvP.js";
|
|
3
|
+
import "../../../index-Cu0xwYjD.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../components/Text/Text.js";
|
|
6
|
-
import "../../../
|
|
6
|
+
import "../../../StartUpLoading-DpO7RfDY.js";
|
|
7
7
|
export {
|
|
8
8
|
d as ValidateLoading
|
|
9
9
|
};
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
const
|
|
3
|
-
const [
|
|
4
|
-
return
|
|
5
|
-
const
|
|
6
|
-
e || (
|
|
7
|
-
},
|
|
8
|
-
return () => clearTimeout(
|
|
9
|
-
}, [
|
|
1
|
+
import { useState as c, useEffect as o } from "react";
|
|
2
|
+
const m = (e, r = 500, u = 500) => {
|
|
3
|
+
const [i, n] = c(!1);
|
|
4
|
+
return o(() => {
|
|
5
|
+
const t = setTimeout(() => {
|
|
6
|
+
e || n(!0);
|
|
7
|
+
}, u);
|
|
8
|
+
return () => clearTimeout(t);
|
|
9
|
+
}, [u, e]), o(() => {
|
|
10
10
|
if (e !== !0)
|
|
11
11
|
return;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
t(!1);
|
|
18
|
-
}, o);
|
|
19
|
-
return () => clearTimeout(u);
|
|
20
|
-
}, [e, o, c]), e !== !0 || s;
|
|
12
|
+
const t = setTimeout(() => {
|
|
13
|
+
n(!1);
|
|
14
|
+
}, r);
|
|
15
|
+
return () => clearTimeout(t);
|
|
16
|
+
}, [e, r]), e !== !0 || i;
|
|
21
17
|
};
|
|
22
18
|
export {
|
|
23
|
-
|
|
19
|
+
m as useShouldRenderLoading
|
|
24
20
|
};
|
|
@@ -74,14 +74,6 @@ export interface IressRichSelectProps extends Omit<AutocompleteSearchHookProps,
|
|
|
74
74
|
*/
|
|
75
75
|
width?: FormElementWidths;
|
|
76
76
|
virtualFocus?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Header showed in option panel when expanded.
|
|
79
|
-
*/
|
|
80
|
-
header?: ReactNode;
|
|
81
|
-
/**
|
|
82
|
-
* Footer showed in option panel when expanded.
|
|
83
|
-
*/
|
|
84
|
-
footer?: ReactNode;
|
|
85
77
|
}
|
|
86
78
|
export interface IressSelectActivatorProps {
|
|
87
79
|
/**
|
|
@@ -3,8 +3,7 @@ import { DefaultLoadingProps } from './components/DefaultLoading';
|
|
|
3
3
|
import { ValidateLoadingProps } from './components/ValidateLoading';
|
|
4
4
|
import { ComponentLoadingProps } from './components/ComponentLoading';
|
|
5
5
|
import { PageLoadingProps } from './components/PageLoading';
|
|
6
|
-
|
|
7
|
-
export type IressLoadingProps = StartUpLoadingProps | ValidateLoadingProps | PageLoadingProps | ComponentLoadingProps | LongLoadingProps | DefaultLoadingProps;
|
|
6
|
+
export type IressLoadingProps = StartUpLoadingProps | ValidateLoadingProps | PageLoadingProps | ComponentLoadingProps | DefaultLoadingProps;
|
|
8
7
|
/**
|
|
9
8
|
* A pattern component that has in-built loading states for different contexts, designed to provide a consistent user experience across Iress applications.
|
|
10
9
|
*
|
|
@@ -13,10 +12,6 @@ export type IressLoadingProps = StartUpLoadingProps | ValidateLoadingProps | Pag
|
|
|
13
12
|
* - `component`: Loading pattern for a component that is expected to take some time to load, but has content around it that can be loaded before it (hence not part of page pattern). It also supports updating the state of the component via a slightly different UI. Examples:
|
|
14
13
|
* - Charts that can be updated in real-time
|
|
15
14
|
* - Tables that load many records and may update in real-time
|
|
16
|
-
* - `long`: Loading pattern for a component that is expected to take longer than 10 seconds to load. It displays a checklist of items that are being loaded. Examples:
|
|
17
|
-
* - Calling multiple slow APIs to load data
|
|
18
|
-
* - Loading results from AI
|
|
19
|
-
* - Processing a large amount of data as a queue (eg. bulk uploading or large media file uploads)
|
|
20
15
|
* - `page`: Loading pattern for a page, with out-of-the-box skeleton templates. Examples:
|
|
21
16
|
* - Dashboard page with multiple filters/panels
|
|
22
17
|
* - Search page with multiple filters and search results
|
|
@@ -43,5 +38,5 @@ export declare const IressLoading: {
|
|
|
43
38
|
* @param delay - Once a component has loaded, how long should the loading indicator be displayed for.
|
|
44
39
|
* @returns A boolean value that determines whether the `IressLoading` component is safe to be removed.
|
|
45
40
|
*/
|
|
46
|
-
shouldRender: (isLoaded: boolean, delay?: number, startFrom?: number
|
|
41
|
+
shouldRender: (isLoaded: boolean, delay?: number, startFrom?: number) => boolean;
|
|
47
42
|
};
|
|
@@ -8,7 +8,7 @@ export interface StartUpLoadingProps extends IressHTMLAttributes {
|
|
|
8
8
|
*/
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
/**
|
|
11
|
-
* Estimated time in milliseconds for the loading to finish.
|
|
11
|
+
* Estimated time in milliseconds for the loading to finish. If set to `0` or something larger than `60000` (1 minute), will show a spinner.
|
|
12
12
|
* @default 3000
|
|
13
13
|
*/
|
|
14
14
|
estimatedFinishTime?: number;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* @param isLoaded - A boolean value that determines if the component waiting to be loaded has finished loading.
|
|
5
5
|
* @param delay - Once a component has loaded, how long should the loading indicator be displayed for. This is useful to allow the loading indicator to animate out.
|
|
6
6
|
* @param startFrom - If a component is still loading after this time in milliseconds, you should show the loading message. Default is 500ms, meaning a user will not even see the loading indicator if the page loads before this time.
|
|
7
|
-
* @param avoidDelayTimeout - If the component has a start up animation, this is the time in milliseconds that we will avoid the delay timeout for. This is useful to speed up the loading indicator removal if the component loaded before the first half of an animation finishes.
|
|
8
7
|
* @returns A boolean value that determines whether the `IressLoading` component should be rendered.
|
|
9
8
|
*/
|
|
10
|
-
export declare const useShouldRenderLoading: (isLoaded: boolean, delay?: number, startFrom?: number
|
|
9
|
+
export declare const useShouldRenderLoading: (isLoaded: boolean, delay?: number, startFrom?: number) => boolean;
|