@spscommerce/ds-react 6.0.0-rc1 → 6.0.0
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/lib/autocomplete/SpsAutocomplete.d.ts +2 -1
- package/lib/dropdown/SpsDropdown.d.ts +1 -0
- package/lib/fieldset/SpsFieldset.d.ts +1 -1
- package/lib/index.cjs.js +116 -91
- package/lib/index.es.js +276 -146
- package/lib/multi-select/SpsMultiSelect.d.ts +2 -1
- package/lib/option-list/SpsOptionListProps.d.ts +2 -0
- package/lib/pagination/SpsPageSelector.d.ts +1 -0
- package/lib/pagination/SpsPagination.d.ts +1 -0
- package/lib/product-bar/SpsProductBar.d.ts +1 -1
- package/lib/select/SpsSelect.d.ts +3 -1
- package/lib/tile-list/SpsTile.d.ts +1 -0
- package/lib/utils/Provide.d.ts +24 -0
- package/lib/utils/bindProps.d.ts +33 -0
- package/lib/utils/index.d.ts +2 -0
- package/package.json +13 -12
- package/lib/datepicker/SpsDateRangePicker.d.ts +0 -21
- package/lib/datepicker-v2/SpsDateRangePickerV2.d.ts +0 -21
- package/lib/datepicker-v2/SpsDatepickerCalendar.d.ts +0 -18
- package/lib/datepicker-v2/SpsDatepickerPopup.d.ts +0 -13
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +0 -18
- package/lib/datepicker-v2/index.d.ts +0 -4
- package/lib/datepicker-v2/useCalendar.d.ts +0 -2
- package/lib/datepicker-v2/useMoment.d.ts +0 -3
- package/lib/datepicker-v2/utils.d.ts +0 -23
- package/lib/datepicker-v2/validation.d.ts +0 -10
- package/lib/modal/SpsModalAction.d.ts +0 -18
- package/lib/modal/SpsModalBody.d.ts +0 -10
- package/lib/modal/SpsModalFooter.d.ts +0 -16
- package/lib/modal/SpsModalHeader.d.ts +0 -11
- package/lib/modal/SpsModalOverlay.d.ts +0 -12
- package/lib/modal-v2/SpsModalV2.d.ts +0 -18
- package/lib/modal-v2/index.d.ts +0 -1
package/lib/index.es.js
CHANGED
|
@@ -1414,6 +1414,17 @@ const SpsFormComponentWrapper = React.forwardRef((props2, ref2) => {
|
|
|
1414
1414
|
onClick(event);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
+
React.useEffect(() => {
|
|
1418
|
+
function handleMouseDown(e2) {
|
|
1419
|
+
if (e2.target.classList.contains("sps-form-control__clear-btn")) {
|
|
1420
|
+
e2.preventDefault();
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
document.addEventListener("mousedown", handleMouseDown);
|
|
1424
|
+
return () => {
|
|
1425
|
+
document.removeEventListener("mousedown", handleMouseDown);
|
|
1426
|
+
};
|
|
1427
|
+
}, []);
|
|
1417
1428
|
return /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
|
1418
1429
|
className: classes,
|
|
1419
1430
|
ref: ref2,
|
|
@@ -1759,7 +1770,8 @@ const spsOptionListPassthroughProps = {
|
|
|
1759
1770
|
valueKey: "string",
|
|
1760
1771
|
zeroState: "string",
|
|
1761
1772
|
maxHeightPx: "number",
|
|
1762
|
-
maxHeightRem: "number"
|
|
1773
|
+
maxHeightRem: "number",
|
|
1774
|
+
disableOptionsMemoization: "boolean"
|
|
1763
1775
|
},
|
|
1764
1776
|
propTypes: {
|
|
1765
1777
|
captionKey: propTypes$1G.exports.string,
|
|
@@ -1805,11 +1817,13 @@ const propTypes$1C = __spreadProps(__spreadValues(__spreadValues(__spreadValues(
|
|
|
1805
1817
|
specialAction: fun(),
|
|
1806
1818
|
ignoreWidthStyles: propTypes$1G.exports.bool,
|
|
1807
1819
|
loading: propTypes$1G.exports.bool,
|
|
1808
|
-
filterByTextAndCaptionKey: propTypes$1G.exports.bool
|
|
1820
|
+
filterByTextAndCaptionKey: propTypes$1G.exports.bool,
|
|
1821
|
+
disableOptionsMemoization: propTypes$1G.exports.bool
|
|
1809
1822
|
});
|
|
1810
1823
|
async function updateOptions(props2, searchState, searchStatePatch, setOptionList, setAnyOptionHasIcon, promiseRef) {
|
|
1811
1824
|
const options = typeof props2.options === "function" ? props2.options(searchState.value) : props2.options || [];
|
|
1812
1825
|
const areOptionsPromise = options instanceof Promise;
|
|
1826
|
+
const removeSpecialSymbols = (value) => value.replace(/([.?*+^$[\]\\(){}|-])/g, "");
|
|
1813
1827
|
searchStatePatch({ pending: areOptionsPromise });
|
|
1814
1828
|
promiseRef.current = areOptionsPromise ? options : null;
|
|
1815
1829
|
const result = areOptionsPromise ? await options || [] : options || [];
|
|
@@ -1827,13 +1841,15 @@ async function updateOptions(props2, searchState, searchStatePatch, setOptionLis
|
|
|
1827
1841
|
newOpts.unshift(new SpsOptionListOption(null, { text: props2.nullOption }));
|
|
1828
1842
|
}
|
|
1829
1843
|
if (searchState.value) {
|
|
1830
|
-
|
|
1844
|
+
const searchValue = removeSpecialSymbols(searchState.value);
|
|
1845
|
+
searchStatePatch({ replacementPattern: new RegExp(searchValue, "ig") });
|
|
1831
1846
|
newOpts = newOpts.filter((o) => {
|
|
1832
|
-
const regEx = new RegExp(
|
|
1847
|
+
const regEx = new RegExp(searchValue, "i");
|
|
1848
|
+
const optionText = removeSpecialSymbols(o.text);
|
|
1833
1849
|
if (props2.filterByTextAndCaptionKey) {
|
|
1834
|
-
return regEx.test(
|
|
1850
|
+
return regEx.test(optionText) || regEx.test(removeSpecialSymbols(o.caption));
|
|
1835
1851
|
}
|
|
1836
|
-
return regEx.test(
|
|
1852
|
+
return regEx.test(optionText);
|
|
1837
1853
|
});
|
|
1838
1854
|
} else {
|
|
1839
1855
|
searchStatePatch({ replacementPattern: null });
|
|
@@ -1857,7 +1873,7 @@ function useOptionListOptions(props2, searchState, searchStatePatch) {
|
|
|
1857
1873
|
const [anyOptionHasIcon, setAnyOptionHasIcon] = React.useState(false);
|
|
1858
1874
|
const promiseRef = React.useRef(null);
|
|
1859
1875
|
const optionsRef = React.useRef(props2.options);
|
|
1860
|
-
if (typeof props2.options !== "function") {
|
|
1876
|
+
if (typeof props2.options !== "function" || props2.disableOptionsMemoization) {
|
|
1861
1877
|
optionsRef.current = props2.options;
|
|
1862
1878
|
}
|
|
1863
1879
|
const update2 = React.useMemo(() => typeof optionsRef.current === "function" ? debounce(updateOptions, typeof props2.searchDebounce !== "undefined" ? props2.searchDebounce : 500) : updateOptions, [optionsRef.current, props2.disabledOptions]);
|
|
@@ -2118,6 +2134,7 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
2118
2134
|
filterByTextAndCaptionKey,
|
|
2119
2135
|
maxHeightPx,
|
|
2120
2136
|
maxHeightRem,
|
|
2137
|
+
disableOptionsMemoization,
|
|
2121
2138
|
"data-testid": testId
|
|
2122
2139
|
} = _a, rest = __objRest(_a, [
|
|
2123
2140
|
"captionKey",
|
|
@@ -2155,6 +2172,7 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
2155
2172
|
"filterByTextAndCaptionKey",
|
|
2156
2173
|
"maxHeightPx",
|
|
2157
2174
|
"maxHeightRem",
|
|
2175
|
+
"disableOptionsMemoization",
|
|
2158
2176
|
"data-testid"
|
|
2159
2177
|
]);
|
|
2160
2178
|
const specialActionOption = React.useMemo(() => specialAction ? new SpsOptionListOption(specialAction, {
|
|
@@ -2392,7 +2410,7 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
2392
2410
|
ref: optionsRef,
|
|
2393
2411
|
"data-testid": `${testId}-options`,
|
|
2394
2412
|
style: optionsInlineStyles
|
|
2395
|
-
}, !loading && !searchState.pending && zeroState &&
|
|
2413
|
+
}, !loading && !searchState.pending && zeroState && optionList.length === 0 && /* @__PURE__ */ React.createElement("div", {
|
|
2396
2414
|
className: "sps-option-list__zero-state"
|
|
2397
2415
|
}, zeroState), (loading || searchState.pending) && /* @__PURE__ */ React.createElement("div", {
|
|
2398
2416
|
className: "sps-option-list__loading"
|
|
@@ -2444,6 +2462,48 @@ Object.assign(SpsOptionList, {
|
|
|
2444
2462
|
propTypes: propTypes$1C,
|
|
2445
2463
|
displayName: "SpsOptionList"
|
|
2446
2464
|
});
|
|
2465
|
+
function bindProps(E, boundProps, deps = []) {
|
|
2466
|
+
return React.useMemo(() => {
|
|
2467
|
+
const EWithBoundProps = (props2) => /* @__PURE__ */ React.createElement(E, __spreadValues({}, __spreadValues(__spreadValues({}, props2), boundProps)), props2.children);
|
|
2468
|
+
return EWithBoundProps;
|
|
2469
|
+
}, deps);
|
|
2470
|
+
}
|
|
2471
|
+
const Nested = function({
|
|
2472
|
+
children,
|
|
2473
|
+
elements
|
|
2474
|
+
}) {
|
|
2475
|
+
if (elements.length === 0) {
|
|
2476
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
2477
|
+
}
|
|
2478
|
+
const [E, p2] = Array.isArray(elements[0]) ? elements[0] : [elements[0]];
|
|
2479
|
+
return /* @__PURE__ */ React.createElement(E, __spreadValues({}, p2 != null ? p2 : {}), /* @__PURE__ */ React.createElement(Nested, {
|
|
2480
|
+
elements: elements.slice(1)
|
|
2481
|
+
}, children));
|
|
2482
|
+
};
|
|
2483
|
+
const Provide = function(_a) {
|
|
2484
|
+
var _b = _a, {
|
|
2485
|
+
children,
|
|
2486
|
+
providers = []
|
|
2487
|
+
} = _b, rest = __objRest(_b, [
|
|
2488
|
+
"children",
|
|
2489
|
+
"providers"
|
|
2490
|
+
]);
|
|
2491
|
+
return /* @__PURE__ */ React.createElement("div", __spreadValues({}, rest), /* @__PURE__ */ React.createElement(Nested, {
|
|
2492
|
+
elements: providers
|
|
2493
|
+
}, children));
|
|
2494
|
+
};
|
|
2495
|
+
const SpsApp = function(_c) {
|
|
2496
|
+
var _d = _c, {
|
|
2497
|
+
children,
|
|
2498
|
+
className
|
|
2499
|
+
} = _d, rest = __objRest(_d, [
|
|
2500
|
+
"children",
|
|
2501
|
+
"className"
|
|
2502
|
+
]);
|
|
2503
|
+
return /* @__PURE__ */ React.createElement(Provide, __spreadValues({
|
|
2504
|
+
className: `sps-app ${className}`
|
|
2505
|
+
}, rest), children);
|
|
2506
|
+
};
|
|
2447
2507
|
function selectChildren(children = [], groups = []) {
|
|
2448
2508
|
const childrenArray = Array.isArray(children) ? flatten(children) : [children];
|
|
2449
2509
|
const normGroups = groups.map((s) => Array.isArray(s) ? s : [s]);
|
|
@@ -2553,7 +2613,8 @@ const propsDoc$1y = {
|
|
|
2553
2613
|
zeroState: "string",
|
|
2554
2614
|
loading: "boolean",
|
|
2555
2615
|
maxHeightOptionListPx: "number",
|
|
2556
|
-
maxHeightOptionListRem: "number"
|
|
2616
|
+
maxHeightOptionListRem: "number",
|
|
2617
|
+
disableOptionsMemoization: "boolean"
|
|
2557
2618
|
};
|
|
2558
2619
|
const propTypes$1B = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
2559
2620
|
debounce: propTypes$1G.exports.number,
|
|
@@ -2573,10 +2634,11 @@ const propTypes$1B = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
2573
2634
|
zeroState: propTypes$1G.exports.string,
|
|
2574
2635
|
loading: propTypes$1G.exports.bool,
|
|
2575
2636
|
maxHeightOptionListPx: propTypes$1G.exports.number,
|
|
2576
|
-
maxHeightOptionListRem: propTypes$1G.exports.number
|
|
2637
|
+
maxHeightOptionListRem: propTypes$1G.exports.number,
|
|
2638
|
+
disableOptionsMemoization: propTypes$1G.exports.bool
|
|
2577
2639
|
});
|
|
2578
|
-
function SpsAutocomplete(
|
|
2579
|
-
var
|
|
2640
|
+
function SpsAutocomplete(_e) {
|
|
2641
|
+
var _f = _e, {
|
|
2580
2642
|
className,
|
|
2581
2643
|
debounce: debounce2 = 0,
|
|
2582
2644
|
disabled,
|
|
@@ -2594,8 +2656,9 @@ function SpsAutocomplete(_a) {
|
|
|
2594
2656
|
loading,
|
|
2595
2657
|
maxHeightOptionListPx,
|
|
2596
2658
|
maxHeightOptionListRem,
|
|
2659
|
+
disableOptionsMemoization,
|
|
2597
2660
|
"data-testid": testId
|
|
2598
|
-
} =
|
|
2661
|
+
} = _f, rest = __objRest(_f, [
|
|
2599
2662
|
"className",
|
|
2600
2663
|
"debounce",
|
|
2601
2664
|
"disabled",
|
|
@@ -2613,6 +2676,7 @@ function SpsAutocomplete(_a) {
|
|
|
2613
2676
|
"loading",
|
|
2614
2677
|
"maxHeightOptionListPx",
|
|
2615
2678
|
"maxHeightOptionListRem",
|
|
2679
|
+
"disableOptionsMemoization",
|
|
2616
2680
|
"data-testid"
|
|
2617
2681
|
]);
|
|
2618
2682
|
const meta = formMeta || formControl2;
|
|
@@ -2727,7 +2791,8 @@ function SpsAutocomplete(_a) {
|
|
|
2727
2791
|
zeroState,
|
|
2728
2792
|
loading,
|
|
2729
2793
|
maxHeightPx: maxHeightOptionListPx,
|
|
2730
|
-
maxHeightRem: maxHeightOptionListRem
|
|
2794
|
+
maxHeightRem: maxHeightOptionListRem,
|
|
2795
|
+
disableOptionsMemoization
|
|
2731
2796
|
}));
|
|
2732
2797
|
}
|
|
2733
2798
|
Object.assign(SpsAutocomplete, {
|
|
@@ -2869,7 +2934,8 @@ const propsDoc$1x = {
|
|
|
2869
2934
|
onClose: "() => void",
|
|
2870
2935
|
loading: "boolean",
|
|
2871
2936
|
maxHeightOptionListPx: "number",
|
|
2872
|
-
maxHeightOptionListRem: "number"
|
|
2937
|
+
maxHeightOptionListRem: "number",
|
|
2938
|
+
disableOptionsMemoization: "boolean"
|
|
2873
2939
|
};
|
|
2874
2940
|
const propTypes$1A = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
2875
2941
|
alignLeft: propTypes$1G.exports.bool,
|
|
@@ -2885,7 +2951,8 @@ const propTypes$1A = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
2885
2951
|
onClose: fun(),
|
|
2886
2952
|
loading: propTypes$1G.exports.bool,
|
|
2887
2953
|
maxHeightOptionListPx: propTypes$1G.exports.number,
|
|
2888
|
-
maxHeightOptionListRem: propTypes$1G.exports.number
|
|
2954
|
+
maxHeightOptionListRem: propTypes$1G.exports.number,
|
|
2955
|
+
disableOptionsMemoization: propTypes$1G.exports.bool
|
|
2889
2956
|
});
|
|
2890
2957
|
function SpsDropdown(props2) {
|
|
2891
2958
|
const _a = props2, {
|
|
@@ -2906,7 +2973,8 @@ function SpsDropdown(props2) {
|
|
|
2906
2973
|
onClose,
|
|
2907
2974
|
loading,
|
|
2908
2975
|
maxHeightOptionListPx,
|
|
2909
|
-
maxHeightOptionListRem
|
|
2976
|
+
maxHeightOptionListRem,
|
|
2977
|
+
disableOptionsMemoization
|
|
2910
2978
|
} = _a, rest = __objRest(_a, [
|
|
2911
2979
|
"alignLeft",
|
|
2912
2980
|
"className",
|
|
@@ -2925,7 +2993,8 @@ function SpsDropdown(props2) {
|
|
|
2925
2993
|
"onClose",
|
|
2926
2994
|
"loading",
|
|
2927
2995
|
"maxHeightOptionListPx",
|
|
2928
|
-
"maxHeightOptionListRem"
|
|
2996
|
+
"maxHeightOptionListRem",
|
|
2997
|
+
"disableOptionsMemoization"
|
|
2929
2998
|
]);
|
|
2930
2999
|
const { t: t2 } = React.useContext(I18nContext);
|
|
2931
3000
|
const id2 = useElementId(idProp);
|
|
@@ -3026,7 +3095,8 @@ function SpsDropdown(props2) {
|
|
|
3026
3095
|
optionRole: "option",
|
|
3027
3096
|
loading,
|
|
3028
3097
|
maxHeightPx: maxHeightOptionListPx,
|
|
3029
|
-
maxHeightRem: maxHeightOptionListRem
|
|
3098
|
+
maxHeightRem: maxHeightOptionListRem,
|
|
3099
|
+
disableOptionsMemoization
|
|
3030
3100
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
3031
3101
|
onClick: handleButtonClick,
|
|
3032
3102
|
className: buttonClasses,
|
|
@@ -5804,10 +5874,10 @@ function SpsTab({
|
|
|
5804
5874
|
className: clsx("sps-nav__item", "sps-nav__link", isSelected && "active", isDisabled && "sps-nav__item--disabled")
|
|
5805
5875
|
}), item.rendered);
|
|
5806
5876
|
}
|
|
5807
|
-
function SpsTabPanel(
|
|
5808
|
-
var
|
|
5877
|
+
function SpsTabPanel(_g) {
|
|
5878
|
+
var _h = _g, {
|
|
5809
5879
|
state
|
|
5810
|
-
} =
|
|
5880
|
+
} = _h, props2 = __objRest(_h, [
|
|
5811
5881
|
"state"
|
|
5812
5882
|
]);
|
|
5813
5883
|
const ref2 = React.useRef();
|
|
@@ -5842,11 +5912,11 @@ Object.assign(SpsTabsV2, {
|
|
|
5842
5912
|
});
|
|
5843
5913
|
const propsDoc$1u = {};
|
|
5844
5914
|
const propTypes$1x = {};
|
|
5845
|
-
function SpsCardV2Footer(
|
|
5846
|
-
var
|
|
5915
|
+
function SpsCardV2Footer(_i) {
|
|
5916
|
+
var _j = _i, {
|
|
5847
5917
|
children,
|
|
5848
5918
|
className
|
|
5849
|
-
} =
|
|
5919
|
+
} = _j, rest = __objRest(_j, [
|
|
5850
5920
|
"children",
|
|
5851
5921
|
"className"
|
|
5852
5922
|
]);
|
|
@@ -5861,11 +5931,11 @@ Object.assign(SpsCardV2Footer, {
|
|
|
5861
5931
|
});
|
|
5862
5932
|
const propsDoc$1t = {};
|
|
5863
5933
|
const propTypes$1w = {};
|
|
5864
|
-
function SpsCardV2Header(
|
|
5865
|
-
var
|
|
5934
|
+
function SpsCardV2Header(_k) {
|
|
5935
|
+
var _l = _k, {
|
|
5866
5936
|
children,
|
|
5867
5937
|
className
|
|
5868
|
-
} =
|
|
5938
|
+
} = _l, rest = __objRest(_l, [
|
|
5869
5939
|
"children",
|
|
5870
5940
|
"className"
|
|
5871
5941
|
]);
|
|
@@ -5880,11 +5950,11 @@ Object.assign(SpsCardV2Header, {
|
|
|
5880
5950
|
});
|
|
5881
5951
|
const propsDoc$1s = {};
|
|
5882
5952
|
const propTypes$1v = {};
|
|
5883
|
-
function SpsCardV2(
|
|
5884
|
-
var
|
|
5953
|
+
function SpsCardV2(_m) {
|
|
5954
|
+
var _n = _m, {
|
|
5885
5955
|
children,
|
|
5886
5956
|
className
|
|
5887
|
-
} =
|
|
5957
|
+
} = _n, rest = __objRest(_n, [
|
|
5888
5958
|
"children",
|
|
5889
5959
|
"className"
|
|
5890
5960
|
]);
|
|
@@ -5911,11 +5981,11 @@ Object.assign(SpsCardV2, {
|
|
|
5911
5981
|
});
|
|
5912
5982
|
const propsDoc$1r = {};
|
|
5913
5983
|
const propTypes$1u = {};
|
|
5914
|
-
function SpsCardV2Title(
|
|
5915
|
-
var
|
|
5984
|
+
function SpsCardV2Title(_o) {
|
|
5985
|
+
var _p = _o, {
|
|
5916
5986
|
children,
|
|
5917
5987
|
className
|
|
5918
|
-
} =
|
|
5988
|
+
} = _p, rest = __objRest(_p, [
|
|
5919
5989
|
"children",
|
|
5920
5990
|
"className"
|
|
5921
5991
|
]);
|
|
@@ -6252,8 +6322,8 @@ const propTypes$1t = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
6252
6322
|
label: propTypes$1G.exports.string,
|
|
6253
6323
|
onChange: fun()
|
|
6254
6324
|
});
|
|
6255
|
-
function SpsCheckbox(
|
|
6256
|
-
var
|
|
6325
|
+
function SpsCheckbox(_q) {
|
|
6326
|
+
var _r = _q, {
|
|
6257
6327
|
checked: checkedProp,
|
|
6258
6328
|
className,
|
|
6259
6329
|
disabled,
|
|
@@ -6266,7 +6336,7 @@ function SpsCheckbox(_m) {
|
|
|
6266
6336
|
onChange,
|
|
6267
6337
|
"data-testid": testId,
|
|
6268
6338
|
unsafelyReplaceClassName
|
|
6269
|
-
} =
|
|
6339
|
+
} = _r, rest = __objRest(_r, [
|
|
6270
6340
|
"checked",
|
|
6271
6341
|
"className",
|
|
6272
6342
|
"disabled",
|
|
@@ -16159,13 +16229,13 @@ const propTypes$1g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
16159
16229
|
attachTo: ref().isRequired,
|
|
16160
16230
|
isOpen: propTypes$1G.exports.bool.isRequired
|
|
16161
16231
|
});
|
|
16162
|
-
const SpsDatepickerPopup = React.forwardRef((
|
|
16163
|
-
var
|
|
16232
|
+
const SpsDatepickerPopup = React.forwardRef((_s, ref2) => {
|
|
16233
|
+
var _t = _s, {
|
|
16164
16234
|
attachTo,
|
|
16165
16235
|
children,
|
|
16166
16236
|
className,
|
|
16167
16237
|
isOpen
|
|
16168
|
-
} =
|
|
16238
|
+
} = _t, rest = __objRest(_t, [
|
|
16169
16239
|
"attachTo",
|
|
16170
16240
|
"children",
|
|
16171
16241
|
"className",
|
|
@@ -16203,8 +16273,8 @@ const propTypes$1f = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
16203
16273
|
value: impl()
|
|
16204
16274
|
});
|
|
16205
16275
|
const CSS_BLOCK$3 = "sps-datepicker";
|
|
16206
|
-
function SpsDatepicker(
|
|
16207
|
-
var
|
|
16276
|
+
function SpsDatepicker(_u) {
|
|
16277
|
+
var _v = _u, {
|
|
16208
16278
|
children,
|
|
16209
16279
|
className,
|
|
16210
16280
|
disabled,
|
|
@@ -16215,7 +16285,7 @@ function SpsDatepicker(_q) {
|
|
|
16215
16285
|
onChange,
|
|
16216
16286
|
value,
|
|
16217
16287
|
"data-testid": testId
|
|
16218
|
-
} =
|
|
16288
|
+
} = _v, rest = __objRest(_v, [
|
|
16219
16289
|
"children",
|
|
16220
16290
|
"className",
|
|
16221
16291
|
"disabled",
|
|
@@ -16428,8 +16498,8 @@ const DEFAULT_PRESETS = [
|
|
|
16428
16498
|
{ definition: "P90D", label: "design-system:datepicker.preset.ninetyDays" },
|
|
16429
16499
|
{ definition: "P1Y", label: "design-system:datepicker.preset.oneYear" }
|
|
16430
16500
|
];
|
|
16431
|
-
function SpsDateRangePicker(
|
|
16432
|
-
var
|
|
16501
|
+
function SpsDateRangePicker(_w) {
|
|
16502
|
+
var _x = _w, {
|
|
16433
16503
|
children,
|
|
16434
16504
|
className,
|
|
16435
16505
|
disabled,
|
|
@@ -16441,7 +16511,7 @@ function SpsDateRangePicker(_s) {
|
|
|
16441
16511
|
presets = DEFAULT_PRESETS,
|
|
16442
16512
|
value,
|
|
16443
16513
|
"data-testid": testId
|
|
16444
|
-
} =
|
|
16514
|
+
} = _x, rest = __objRest(_x, [
|
|
16445
16515
|
"children",
|
|
16446
16516
|
"className",
|
|
16447
16517
|
"disabled",
|
|
@@ -22462,7 +22532,7 @@ function SpsFieldset({
|
|
|
22462
22532
|
legend,
|
|
22463
22533
|
unsafelyReplaceClassName,
|
|
22464
22534
|
optional = false,
|
|
22465
|
-
enabled,
|
|
22535
|
+
enabled = false,
|
|
22466
22536
|
onToggled,
|
|
22467
22537
|
tooltip,
|
|
22468
22538
|
"data-testid": testId
|
|
@@ -22472,14 +22542,9 @@ function SpsFieldset({
|
|
|
22472
22542
|
const infoCircleElement = React.useRef(null);
|
|
22473
22543
|
const [showTip, setShowTip] = React.useState(TooltipVisibility.HIDDEN);
|
|
22474
22544
|
const [wasFocused, setWasFocused] = React.useState(false);
|
|
22475
|
-
const [isChecked,
|
|
22476
|
-
|
|
22477
|
-
|
|
22478
|
-
}, [enabled]);
|
|
22479
|
-
React.useEffect(() => {
|
|
22480
|
-
if (typeof onToggled === "function") {
|
|
22481
|
-
onToggled(isChecked);
|
|
22482
|
-
}
|
|
22545
|
+
const [isChecked, setIsChecked] = React.useState(enabled);
|
|
22546
|
+
useDidUpdateEffect(() => {
|
|
22547
|
+
onToggled == null ? void 0 : onToggled(isChecked);
|
|
22483
22548
|
}, [isChecked]);
|
|
22484
22549
|
React.useEffect(() => {
|
|
22485
22550
|
if (formControlSet || formMeta) {
|
|
@@ -22511,7 +22576,7 @@ function SpsFieldset({
|
|
|
22511
22576
|
checked: isChecked,
|
|
22512
22577
|
className: "d-inline-flex",
|
|
22513
22578
|
onChange: () => {
|
|
22514
|
-
|
|
22579
|
+
setIsChecked(!isChecked);
|
|
22515
22580
|
},
|
|
22516
22581
|
"data-testid": `${testId}__checkbox`
|
|
22517
22582
|
}), legend, tooltip && /* @__PURE__ */ React.createElement("span", {
|
|
@@ -25103,8 +25168,8 @@ const propTypes$_ = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
25103
25168
|
helpIconColor: propTypes$1G.exports.string,
|
|
25104
25169
|
errors: nodeOrRenderFn
|
|
25105
25170
|
});
|
|
25106
|
-
function SpsLabel(
|
|
25107
|
-
var
|
|
25171
|
+
function SpsLabel(_y) {
|
|
25172
|
+
var _z = _y, {
|
|
25108
25173
|
children,
|
|
25109
25174
|
className,
|
|
25110
25175
|
description,
|
|
@@ -25116,7 +25181,7 @@ function SpsLabel(_u) {
|
|
|
25116
25181
|
errors,
|
|
25117
25182
|
unsafelyReplaceClassName,
|
|
25118
25183
|
"data-testid": testId
|
|
25119
|
-
} =
|
|
25184
|
+
} = _z, rest = __objRest(_z, [
|
|
25120
25185
|
"children",
|
|
25121
25186
|
"className",
|
|
25122
25187
|
"description",
|
|
@@ -26193,11 +26258,11 @@ Object.assign(SpsTd, {
|
|
|
26193
26258
|
const propsDoc$R = {};
|
|
26194
26259
|
const propTypes$S = __spreadValues({}, spsGlobalPropTypes);
|
|
26195
26260
|
const CSS_BLOCK$1 = "sps-icon-button-panel";
|
|
26196
|
-
function SpsIconButtonPanel(
|
|
26197
|
-
var
|
|
26261
|
+
function SpsIconButtonPanel(_A) {
|
|
26262
|
+
var _B = _A, {
|
|
26198
26263
|
children,
|
|
26199
26264
|
className
|
|
26200
|
-
} =
|
|
26265
|
+
} = _B, rest = __objRest(_B, [
|
|
26201
26266
|
"children",
|
|
26202
26267
|
"className"
|
|
26203
26268
|
]);
|
|
@@ -27755,8 +27820,8 @@ const propTypes$O = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
27755
27820
|
formMeta: impl(),
|
|
27756
27821
|
stacked: propTypes$1G.exports.bool
|
|
27757
27822
|
});
|
|
27758
|
-
function SpsInputGroup(
|
|
27759
|
-
var
|
|
27823
|
+
function SpsInputGroup(_C) {
|
|
27824
|
+
var _D = _C, {
|
|
27760
27825
|
children,
|
|
27761
27826
|
className,
|
|
27762
27827
|
formArray: formArray2,
|
|
@@ -27765,7 +27830,7 @@ function SpsInputGroup(_y) {
|
|
|
27765
27830
|
stacked,
|
|
27766
27831
|
"data-testid": testId,
|
|
27767
27832
|
unsafelyReplaceClassName
|
|
27768
|
-
} =
|
|
27833
|
+
} = _D, rest = __objRest(_D, [
|
|
27769
27834
|
"children",
|
|
27770
27835
|
"className",
|
|
27771
27836
|
"formArray",
|
|
@@ -28933,8 +28998,8 @@ Object.assign(SpsModalFooter, {
|
|
|
28933
28998
|
propTypes: {},
|
|
28934
28999
|
displayName: "SpsModalFooter"
|
|
28935
29000
|
});
|
|
28936
|
-
function SpsModal(
|
|
28937
|
-
var
|
|
29001
|
+
function SpsModal(_E) {
|
|
29002
|
+
var _F = _E, {
|
|
28938
29003
|
children,
|
|
28939
29004
|
className,
|
|
28940
29005
|
id: idProp,
|
|
@@ -28943,7 +29008,7 @@ function SpsModal(_A) {
|
|
|
28943
29008
|
onClose,
|
|
28944
29009
|
focusElementOnOpen,
|
|
28945
29010
|
title
|
|
28946
|
-
} =
|
|
29011
|
+
} = _F, rest = __objRest(_F, [
|
|
28947
29012
|
"children",
|
|
28948
29013
|
"className",
|
|
28949
29014
|
"id",
|
|
@@ -29536,7 +29601,8 @@ const propsDoc$H = {
|
|
|
29536
29601
|
zeroState: "string",
|
|
29537
29602
|
loading: "boolean",
|
|
29538
29603
|
maxHeightOptionListPx: "number",
|
|
29539
|
-
maxHeightOptionListRem: "number"
|
|
29604
|
+
maxHeightOptionListRem: "number",
|
|
29605
|
+
disableOptionsMemoization: "boolean"
|
|
29540
29606
|
};
|
|
29541
29607
|
const propTypes$H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
29542
29608
|
action: fun(),
|
|
@@ -29564,10 +29630,11 @@ const propTypes$H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
29564
29630
|
zeroState: propTypes$1G.exports.string,
|
|
29565
29631
|
loading: propTypes$1G.exports.bool,
|
|
29566
29632
|
maxHeightOptionListPx: propTypes$1G.exports.number,
|
|
29567
|
-
maxHeightOptionListRem: propTypes$1G.exports.number
|
|
29633
|
+
maxHeightOptionListRem: propTypes$1G.exports.number,
|
|
29634
|
+
disableOptionsMemoization: propTypes$1G.exports.bool
|
|
29568
29635
|
});
|
|
29569
|
-
function SpsMultiSelect(
|
|
29570
|
-
var
|
|
29636
|
+
function SpsMultiSelect(_G) {
|
|
29637
|
+
var _H = _G, {
|
|
29571
29638
|
action,
|
|
29572
29639
|
captionKey,
|
|
29573
29640
|
className,
|
|
@@ -29593,8 +29660,9 @@ function SpsMultiSelect(_C) {
|
|
|
29593
29660
|
icon,
|
|
29594
29661
|
maxHeightOptionListPx,
|
|
29595
29662
|
maxHeightOptionListRem,
|
|
29663
|
+
disableOptionsMemoization,
|
|
29596
29664
|
"data-testid": testId
|
|
29597
|
-
} =
|
|
29665
|
+
} = _H, rest = __objRest(_H, [
|
|
29598
29666
|
"action",
|
|
29599
29667
|
"captionKey",
|
|
29600
29668
|
"className",
|
|
@@ -29620,6 +29688,7 @@ function SpsMultiSelect(_C) {
|
|
|
29620
29688
|
"icon",
|
|
29621
29689
|
"maxHeightOptionListPx",
|
|
29622
29690
|
"maxHeightOptionListRem",
|
|
29691
|
+
"disableOptionsMemoization",
|
|
29623
29692
|
"data-testid"
|
|
29624
29693
|
]);
|
|
29625
29694
|
const meta = formMeta || formControl2;
|
|
@@ -29832,7 +29901,8 @@ function SpsMultiSelect(_C) {
|
|
|
29832
29901
|
zeroState,
|
|
29833
29902
|
loading,
|
|
29834
29903
|
maxHeightPx: maxHeightOptionListPx,
|
|
29835
|
-
maxHeightRem: maxHeightOptionListRem
|
|
29904
|
+
maxHeightRem: maxHeightOptionListRem,
|
|
29905
|
+
disableOptionsMemoization
|
|
29836
29906
|
}));
|
|
29837
29907
|
}
|
|
29838
29908
|
Object.assign(SpsMultiSelect, {
|
|
@@ -30182,6 +30252,7 @@ const propsDoc$E = {
|
|
|
30182
30252
|
notClearable: "boolean",
|
|
30183
30253
|
options: "Eventually<any[]> | (filter?: string) => Eventually<any[]>",
|
|
30184
30254
|
onChange: "ChangeEventHandler",
|
|
30255
|
+
onOpen: "OnOpenHandler",
|
|
30185
30256
|
placeholder: "string",
|
|
30186
30257
|
searchDebounce: "number",
|
|
30187
30258
|
searchPlaceholder: "string",
|
|
@@ -30194,7 +30265,8 @@ const propsDoc$E = {
|
|
|
30194
30265
|
loading: "boolean",
|
|
30195
30266
|
filterByTextAndCaptionKey: "boolean",
|
|
30196
30267
|
maxHeightOptionListPx: "number",
|
|
30197
|
-
maxHeightOptionListRem: "number"
|
|
30268
|
+
maxHeightOptionListRem: "number",
|
|
30269
|
+
disableOptionsMemoization: "boolean"
|
|
30198
30270
|
};
|
|
30199
30271
|
const propTypes$E = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
30200
30272
|
action: fun(),
|
|
@@ -30210,6 +30282,7 @@ const propTypes$E = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
30210
30282
|
fun()
|
|
30211
30283
|
]).isRequired,
|
|
30212
30284
|
onChange: fun(),
|
|
30285
|
+
onOpen: fun(),
|
|
30213
30286
|
placeholder: propTypes$1G.exports.string,
|
|
30214
30287
|
searchDebounce: propTypes$1G.exports.number,
|
|
30215
30288
|
searchPlaceholder: propTypes$1G.exports.string,
|
|
@@ -30222,7 +30295,8 @@ const propTypes$E = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
30222
30295
|
loading: propTypes$1G.exports.bool,
|
|
30223
30296
|
filterByTextAndCaptionKey: propTypes$1G.exports.bool,
|
|
30224
30297
|
maxHeightOptionListPx: propTypes$1G.exports.number,
|
|
30225
|
-
maxHeightOptionListRem: propTypes$1G.exports.number
|
|
30298
|
+
maxHeightOptionListRem: propTypes$1G.exports.number,
|
|
30299
|
+
disableOptionsMemoization: propTypes$1G.exports.bool
|
|
30226
30300
|
});
|
|
30227
30301
|
const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
30228
30302
|
const _a = props2, {
|
|
@@ -30239,6 +30313,7 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30239
30313
|
options,
|
|
30240
30314
|
onChange,
|
|
30241
30315
|
onClick,
|
|
30316
|
+
onOpen,
|
|
30242
30317
|
placeholder,
|
|
30243
30318
|
searchDebounce,
|
|
30244
30319
|
searchPlaceholder = "Search\u2026",
|
|
@@ -30252,7 +30327,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30252
30327
|
filterByTextAndCaptionKey,
|
|
30253
30328
|
maxHeightOptionListPx,
|
|
30254
30329
|
maxHeightOptionListRem,
|
|
30255
|
-
"data-testid": testId
|
|
30330
|
+
"data-testid": testId,
|
|
30331
|
+
disableOptionsMemoization
|
|
30256
30332
|
} = _a, rest = __objRest(_a, [
|
|
30257
30333
|
"action",
|
|
30258
30334
|
"autoFixWidth",
|
|
@@ -30267,6 +30343,7 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30267
30343
|
"options",
|
|
30268
30344
|
"onChange",
|
|
30269
30345
|
"onClick",
|
|
30346
|
+
"onOpen",
|
|
30270
30347
|
"placeholder",
|
|
30271
30348
|
"searchDebounce",
|
|
30272
30349
|
"searchPlaceholder",
|
|
@@ -30280,7 +30357,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30280
30357
|
"filterByTextAndCaptionKey",
|
|
30281
30358
|
"maxHeightOptionListPx",
|
|
30282
30359
|
"maxHeightOptionListRem",
|
|
30283
|
-
"data-testid"
|
|
30360
|
+
"data-testid",
|
|
30361
|
+
"disableOptionsMemoization"
|
|
30284
30362
|
]);
|
|
30285
30363
|
const meta = formMeta || formControl2;
|
|
30286
30364
|
const { wrapperId, controlId } = useFormControlId(id2, meta);
|
|
@@ -30380,6 +30458,7 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30380
30458
|
});
|
|
30381
30459
|
useDidUpdateEffect(() => {
|
|
30382
30460
|
if (state.isOpen) {
|
|
30461
|
+
onOpen == null ? void 0 : onOpen();
|
|
30383
30462
|
const event = document.createEvent("CustomEvent");
|
|
30384
30463
|
event.initCustomEvent("DropdownOpened", false, false, wrapperId);
|
|
30385
30464
|
document.dispatchEvent(event);
|
|
@@ -30451,6 +30530,7 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
30451
30530
|
loading,
|
|
30452
30531
|
maxHeightPx: maxHeightOptionListPx,
|
|
30453
30532
|
maxHeightRem: maxHeightOptionListRem,
|
|
30533
|
+
disableOptionsMemoization,
|
|
30454
30534
|
"data-testid": `${testId}-option-list`
|
|
30455
30535
|
}));
|
|
30456
30536
|
});
|
|
@@ -30463,13 +30543,15 @@ const propsDoc$D = {
|
|
|
30463
30543
|
page: "number",
|
|
30464
30544
|
numPages: "number",
|
|
30465
30545
|
onPageChange: "(number) => void",
|
|
30466
|
-
disabled: "boolean"
|
|
30546
|
+
disabled: "boolean",
|
|
30547
|
+
unknownPageCount: "boolean"
|
|
30467
30548
|
};
|
|
30468
30549
|
const propTypes$D = __spreadValues({
|
|
30469
30550
|
numPages: propTypes$1G.exports.number,
|
|
30470
30551
|
onPageChange: fun(),
|
|
30471
30552
|
page: propTypes$1G.exports.number,
|
|
30472
|
-
disabled: propTypes$1G.exports.bool
|
|
30553
|
+
disabled: propTypes$1G.exports.bool,
|
|
30554
|
+
unknownPageCount: propTypes$1G.exports.bool
|
|
30473
30555
|
}, spsGlobalPropTypes);
|
|
30474
30556
|
function SpsPageSelector(props2) {
|
|
30475
30557
|
const _a = props2, {
|
|
@@ -30479,7 +30561,8 @@ function SpsPageSelector(props2) {
|
|
|
30479
30561
|
unsafelyReplaceClassName,
|
|
30480
30562
|
className,
|
|
30481
30563
|
"data-testid": testId,
|
|
30482
|
-
disabled = false
|
|
30564
|
+
disabled = false,
|
|
30565
|
+
unknownPageCount = false
|
|
30483
30566
|
} = _a, rest = __objRest(_a, [
|
|
30484
30567
|
"numPages",
|
|
30485
30568
|
"onPageChange",
|
|
@@ -30487,7 +30570,8 @@ function SpsPageSelector(props2) {
|
|
|
30487
30570
|
"unsafelyReplaceClassName",
|
|
30488
30571
|
"className",
|
|
30489
30572
|
"data-testid",
|
|
30490
|
-
"disabled"
|
|
30573
|
+
"disabled",
|
|
30574
|
+
"unknownPageCount"
|
|
30491
30575
|
]);
|
|
30492
30576
|
const { t: t2 } = React.useContext(I18nContext);
|
|
30493
30577
|
const [inputPage, setInputPage] = React.useState(pageProp);
|
|
@@ -30498,7 +30582,7 @@ function SpsPageSelector(props2) {
|
|
|
30498
30582
|
}, [pageProp]);
|
|
30499
30583
|
function updatePage(newPage) {
|
|
30500
30584
|
const constrainedPage = constrain(newPage, [1, numPages]);
|
|
30501
|
-
if (
|
|
30585
|
+
if (newPage !== page) {
|
|
30502
30586
|
setPage(constrainedPage);
|
|
30503
30587
|
setInputPage(constrainedPage);
|
|
30504
30588
|
if (onPageChange && typeof onPageChange === "function") {
|
|
@@ -30506,17 +30590,15 @@ function SpsPageSelector(props2) {
|
|
|
30506
30590
|
}
|
|
30507
30591
|
}
|
|
30508
30592
|
}
|
|
30509
|
-
const debouncedPageUpdate = debounce(updatePage, 500);
|
|
30510
30593
|
function onTextInputInput(event) {
|
|
30511
|
-
setInputPage(event.target.value);
|
|
30512
|
-
void debouncedPageUpdate(parseInt(event.target.value, 10));
|
|
30594
|
+
setInputPage(Number(event.target.value) || "");
|
|
30513
30595
|
}
|
|
30514
30596
|
const classes = clsx(unsafelyReplaceClassName || "sps-page-selector", className);
|
|
30515
30597
|
const id2 = useElementId(null);
|
|
30516
30598
|
return /* @__PURE__ */ React.createElement("div", __spreadValues({
|
|
30517
30599
|
className: classes,
|
|
30518
30600
|
"data-testid": testId
|
|
30519
|
-
}, rest), /* @__PURE__ */ React.createElement("div", {
|
|
30601
|
+
}, rest), !unknownPageCount && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
30520
30602
|
className: "sps-pagination__input-wrapper",
|
|
30521
30603
|
"data-testid": `${testId}__input`
|
|
30522
30604
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -30524,7 +30606,9 @@ function SpsPageSelector(props2) {
|
|
|
30524
30606
|
}, inputPage), /* @__PURE__ */ React.createElement("label", {
|
|
30525
30607
|
htmlFor: id2.current,
|
|
30526
30608
|
className: "sr-only"
|
|
30527
|
-
}, t2("design-system:pagination.page")), /* @__PURE__ */ React.createElement(
|
|
30609
|
+
}, t2("design-system:pagination.page")), /* @__PURE__ */ React.createElement(SpsForm, {
|
|
30610
|
+
onSubmit: () => updatePage(Number(inputPage))
|
|
30611
|
+
}, /* @__PURE__ */ React.createElement("input", {
|
|
30528
30612
|
id: id2.current,
|
|
30529
30613
|
type: "text",
|
|
30530
30614
|
value: inputPage,
|
|
@@ -30532,11 +30616,12 @@ function SpsPageSelector(props2) {
|
|
|
30532
30616
|
onChange: () => {
|
|
30533
30617
|
},
|
|
30534
30618
|
className: "sps-form-control sps-pagination__input",
|
|
30535
|
-
disabled
|
|
30536
|
-
|
|
30619
|
+
disabled,
|
|
30620
|
+
onBlur: () => updatePage(Number(inputPage))
|
|
30621
|
+
}))), /* @__PURE__ */ React.createElement("span", {
|
|
30537
30622
|
className: "sps-page-selector__total-pages",
|
|
30538
30623
|
"data-testid": `${testId}_page-count`
|
|
30539
|
-
}, Number.isNaN(numPages) ? t2("design-system:pagination.ofMany") : t2("design-system:pagination.ofPageCount", { pageCount: numPages })), /* @__PURE__ */ React.createElement("div", {
|
|
30624
|
+
}, Number.isNaN(numPages) ? t2("design-system:pagination.ofMany") : t2("design-system:pagination.ofPageCount", { pageCount: numPages }))), /* @__PURE__ */ React.createElement("div", {
|
|
30540
30625
|
className: "sps-icon-button-panel",
|
|
30541
30626
|
"data-testid": `${testId}__buttons`
|
|
30542
30627
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -30572,7 +30657,8 @@ const propsDoc$C = {
|
|
|
30572
30657
|
pageSizeOptions: "Array<number>",
|
|
30573
30658
|
totalResults: "number",
|
|
30574
30659
|
onPageChange: "(page: number, pageSize: number, indices: [number, number]) => void",
|
|
30575
|
-
disabled: "boolean"
|
|
30660
|
+
disabled: "boolean",
|
|
30661
|
+
unknownPageCount: "boolean"
|
|
30576
30662
|
};
|
|
30577
30663
|
const propTypes$C = __spreadValues({
|
|
30578
30664
|
onPageChange: fun().isRequired,
|
|
@@ -30580,7 +30666,8 @@ const propTypes$C = __spreadValues({
|
|
|
30580
30666
|
pageSize: propTypes$1G.exports.number,
|
|
30581
30667
|
pageSizeOptions: propTypes$1G.exports.arrayOf(propTypes$1G.exports.number),
|
|
30582
30668
|
totalResults: propTypes$1G.exports.number,
|
|
30583
|
-
disabled: propTypes$1G.exports.bool
|
|
30669
|
+
disabled: propTypes$1G.exports.bool,
|
|
30670
|
+
unknownPageCount: propTypes$1G.exports.bool
|
|
30584
30671
|
}, spsGlobalPropTypes);
|
|
30585
30672
|
function SpsPagination(props2) {
|
|
30586
30673
|
const _a = props2, {
|
|
@@ -30592,7 +30679,8 @@ function SpsPagination(props2) {
|
|
|
30592
30679
|
"data-testid": testId,
|
|
30593
30680
|
totalResults,
|
|
30594
30681
|
unsafelyReplaceClassName,
|
|
30595
|
-
disabled = false
|
|
30682
|
+
disabled = false,
|
|
30683
|
+
unknownPageCount = false
|
|
30596
30684
|
} = _a, rest = __objRest(_a, [
|
|
30597
30685
|
"className",
|
|
30598
30686
|
"onPageChange",
|
|
@@ -30602,7 +30690,8 @@ function SpsPagination(props2) {
|
|
|
30602
30690
|
"data-testid",
|
|
30603
30691
|
"totalResults",
|
|
30604
30692
|
"unsafelyReplaceClassName",
|
|
30605
|
-
"disabled"
|
|
30693
|
+
"disabled",
|
|
30694
|
+
"unknownPageCount"
|
|
30606
30695
|
]);
|
|
30607
30696
|
const [state, patchState] = usePatchReducer({
|
|
30608
30697
|
page: pageProp,
|
|
@@ -30680,13 +30769,16 @@ function SpsPagination(props2) {
|
|
|
30680
30769
|
value: state.pageSize,
|
|
30681
30770
|
className: "ml-1 mr-1",
|
|
30682
30771
|
disabled
|
|
30683
|
-
}), "Per Page"), /* @__PURE__ */ React.createElement("div", {
|
|
30772
|
+
}), "Per Page"), unknownPageCount ? /* @__PURE__ */ React.createElement("div", {
|
|
30773
|
+
className: "sps-pagination__details"
|
|
30774
|
+
}, `Viewing ${state.indices[0]} - ${state.indices[1]}`) : /* @__PURE__ */ React.createElement("div", {
|
|
30684
30775
|
className: "sps-pagination__details"
|
|
30685
30776
|
}, `Viewing ${state.indices[0]} - ${state.indices[1]} of ${totalResultsString()}`), /* @__PURE__ */ React.createElement(SpsPageSelector, {
|
|
30686
30777
|
numPages: state.numPages,
|
|
30687
30778
|
page: state.page,
|
|
30688
30779
|
onPageChange: handlePageChange,
|
|
30689
|
-
disabled
|
|
30780
|
+
disabled,
|
|
30781
|
+
unknownPageCount
|
|
30690
30782
|
}));
|
|
30691
30783
|
}
|
|
30692
30784
|
Object.assign(SpsPagination, {
|
|
@@ -30741,6 +30833,35 @@ const SpsPaginationExamples = {
|
|
|
30741
30833
|
}
|
|
30742
30834
|
`
|
|
30743
30835
|
},
|
|
30836
|
+
situational: {
|
|
30837
|
+
description: () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h4", null, "Unknown Page Count"), /* @__PURE__ */ React.createElement("p", null, "In cases where the exact page count of results is not able to be determined, a variation of the Pagination component with limited features can be utilized.")),
|
|
30838
|
+
react: code`
|
|
30839
|
+
function Component() {
|
|
30840
|
+
const [page, setPage] = React.useState(2);
|
|
30841
|
+
const [pageSize, setPageSize] = React.useState(25);
|
|
30842
|
+
|
|
30843
|
+
function handlePageChange(newPage, newPageSize) {
|
|
30844
|
+
console.log("change", newPage, newPageSize);
|
|
30845
|
+
setPage(newPage);
|
|
30846
|
+
setPageSize(newPageSize);
|
|
30847
|
+
}
|
|
30848
|
+
|
|
30849
|
+
return (
|
|
30850
|
+
<React.Fragment>
|
|
30851
|
+
<SpsPagination id="basic"
|
|
30852
|
+
totalResults={123}
|
|
30853
|
+
page={page}
|
|
30854
|
+
pageSize={pageSize}
|
|
30855
|
+
onPageChange={handlePageChange}
|
|
30856
|
+
unknownPageCount
|
|
30857
|
+
/>
|
|
30858
|
+
<span className="mr-2">page: {page}</span>
|
|
30859
|
+
<span>pageSize: {pageSize}</span>
|
|
30860
|
+
</React.Fragment>
|
|
30861
|
+
);
|
|
30862
|
+
}
|
|
30863
|
+
`
|
|
30864
|
+
},
|
|
30744
30865
|
disabled: {
|
|
30745
30866
|
description: "Disabled state",
|
|
30746
30867
|
react: code`
|
|
@@ -30820,7 +30941,7 @@ const propsDoc$A = {
|
|
|
30820
30941
|
onTabChange: "(newTab: string) => void",
|
|
30821
30942
|
onProductNameClick: "React.MouseEventHandler",
|
|
30822
30943
|
productLogoSrc: "string",
|
|
30823
|
-
productName:
|
|
30944
|
+
productName: "string",
|
|
30824
30945
|
productNameHref: "string",
|
|
30825
30946
|
tabs: "Array<string>"
|
|
30826
30947
|
};
|
|
@@ -30830,7 +30951,7 @@ const propTypes$B = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
30830
30951
|
onTabChange: fun(),
|
|
30831
30952
|
onProductNameClick: fun(),
|
|
30832
30953
|
productLogoSrc: propTypes$1G.exports.string,
|
|
30833
|
-
productName: propTypes$1G.exports.string
|
|
30954
|
+
productName: propTypes$1G.exports.string,
|
|
30834
30955
|
productNameHref: propTypes$1G.exports.string,
|
|
30835
30956
|
tabs: propTypes$1G.exports.arrayOf(propTypes$1G.exports.string)
|
|
30836
30957
|
});
|
|
@@ -30879,7 +31000,7 @@ function SpsProductBar(props2) {
|
|
|
30879
31000
|
ref: rootElement
|
|
30880
31001
|
}), /* @__PURE__ */ React.createElement("nav", {
|
|
30881
31002
|
className: clsx("sps-navbar", "sps-navbar--expand-lg", fullWidth && "sps-navbar--full-width")
|
|
30882
|
-
}, /* @__PURE__ */ React.createElement("a", {
|
|
31003
|
+
}, productName || productLogoSrc ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("a", {
|
|
30883
31004
|
className: "sps-navbar__brand",
|
|
30884
31005
|
href: productNameHref,
|
|
30885
31006
|
onClick: onProductNameClick
|
|
@@ -30888,11 +31009,11 @@ function SpsProductBar(props2) {
|
|
|
30888
31009
|
src: productLogoSrc,
|
|
30889
31010
|
"aria-hidden": "true",
|
|
30890
31011
|
alt: `${productName} Logo`
|
|
30891
|
-
}), /* @__PURE__ */ React.createElement("span", {
|
|
31012
|
+
}), productName && /* @__PURE__ */ React.createElement("span", {
|
|
30892
31013
|
className: "sps-navbar__brand-name"
|
|
30893
31014
|
}, productName)), /* @__PURE__ */ React.createElement("span", {
|
|
30894
31015
|
className: "sps-vertical-rule"
|
|
30895
|
-
}), /* @__PURE__ */ React.createElement("div", {
|
|
31016
|
+
})) : null, /* @__PURE__ */ React.createElement("div", {
|
|
30896
31017
|
className: "sps-navbar__nav"
|
|
30897
31018
|
}, tabs.map((tab2) => /* @__PURE__ */ React.createElement("a", {
|
|
30898
31019
|
className: clsx("sps-nav__item", "sps-nav__link", tab2 === activeTab && "active"),
|
|
@@ -31970,8 +32091,8 @@ const propTypes$x = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
31970
32091
|
ref: ref(),
|
|
31971
32092
|
value: propTypes$1G.exports.any
|
|
31972
32093
|
});
|
|
31973
|
-
function SpsRadioButton(
|
|
31974
|
-
var
|
|
32094
|
+
function SpsRadioButton(_I) {
|
|
32095
|
+
var _J = _I, {
|
|
31975
32096
|
checked,
|
|
31976
32097
|
className,
|
|
31977
32098
|
"data-testid": testId,
|
|
@@ -31986,7 +32107,7 @@ function SpsRadioButton(_E) {
|
|
|
31986
32107
|
ref: ref2,
|
|
31987
32108
|
unsafelyReplaceClassName,
|
|
31988
32109
|
value
|
|
31989
|
-
} =
|
|
32110
|
+
} = _J, rest = __objRest(_J, [
|
|
31990
32111
|
"checked",
|
|
31991
32112
|
"className",
|
|
31992
32113
|
"data-testid",
|
|
@@ -32995,8 +33116,8 @@ const propTypes$v = __spreadValues({
|
|
|
32995
33116
|
widthPx: propTypes$1G.exports.number,
|
|
32996
33117
|
widthRem: propTypes$1G.exports.number
|
|
32997
33118
|
}, spsGlobalPropTypes);
|
|
32998
|
-
function SpsSortingHeaderCell(
|
|
32999
|
-
var
|
|
33119
|
+
function SpsSortingHeaderCell(_K) {
|
|
33120
|
+
var _L = _K, {
|
|
33000
33121
|
className,
|
|
33001
33122
|
"data-testid": testId,
|
|
33002
33123
|
unsafelyReplaceClassName,
|
|
@@ -33009,7 +33130,7 @@ function SpsSortingHeaderCell(_G) {
|
|
|
33009
33130
|
widthPx,
|
|
33010
33131
|
widthRem,
|
|
33011
33132
|
style: style2
|
|
33012
|
-
} =
|
|
33133
|
+
} = _L, rest = __objRest(_L, [
|
|
33013
33134
|
"className",
|
|
33014
33135
|
"data-testid",
|
|
33015
33136
|
"unsafelyReplaceClassName",
|
|
@@ -33066,15 +33187,15 @@ const propTypes$u = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
33066
33187
|
sort: propTypes$1G.exports.arrayOf(impl()),
|
|
33067
33188
|
onSortChange: fun()
|
|
33068
33189
|
});
|
|
33069
|
-
function SpsSortingHeader(
|
|
33070
|
-
var
|
|
33190
|
+
function SpsSortingHeader(_M) {
|
|
33191
|
+
var _N = _M, {
|
|
33071
33192
|
className,
|
|
33072
33193
|
"data-testid": testId,
|
|
33073
33194
|
unsafelyReplaceClassName,
|
|
33074
33195
|
sort,
|
|
33075
33196
|
onSortChange,
|
|
33076
33197
|
children
|
|
33077
|
-
} =
|
|
33198
|
+
} = _N, rest = __objRest(_N, [
|
|
33078
33199
|
"className",
|
|
33079
33200
|
"data-testid",
|
|
33080
33201
|
"unsafelyReplaceClassName",
|
|
@@ -33821,8 +33942,8 @@ const propTypes$o = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
33821
33942
|
onClearCompleted: fun(),
|
|
33822
33943
|
suppressTooltips: propTypes$1G.exports.bool
|
|
33823
33944
|
});
|
|
33824
|
-
function SpsTaskQueue(
|
|
33825
|
-
var
|
|
33945
|
+
function SpsTaskQueue(_O) {
|
|
33946
|
+
var _P = _O, {
|
|
33826
33947
|
tasks = [],
|
|
33827
33948
|
taskQueuePosition = Position.BOTTOM_RIGHT,
|
|
33828
33949
|
notificationText,
|
|
@@ -33834,7 +33955,7 @@ function SpsTaskQueue(_K) {
|
|
|
33834
33955
|
"data-testid": testId,
|
|
33835
33956
|
unsafelyReplaceClassName,
|
|
33836
33957
|
suppressTooltips = false
|
|
33837
|
-
} =
|
|
33958
|
+
} = _P, rest = __objRest(_P, [
|
|
33838
33959
|
"tasks",
|
|
33839
33960
|
"taskQueuePosition",
|
|
33840
33961
|
"notificationText",
|
|
@@ -33878,6 +33999,7 @@ function SpsTaskQueue(_K) {
|
|
|
33878
33999
|
const hasCompletedTask = tasks.some((task) => task.status === SpsTaskStatus.COMPLETED || task.status === SpsTaskStatus.ERRORED);
|
|
33879
34000
|
const onCloseRef = React.useRef(onClose);
|
|
33880
34001
|
onCloseRef.current = onClose;
|
|
34002
|
+
const tasksList = React.useRef();
|
|
33881
34003
|
const handleToggle = () => {
|
|
33882
34004
|
if (hasTasks && !isOpen) {
|
|
33883
34005
|
setIsOpen(true);
|
|
@@ -33890,6 +34012,7 @@ function SpsTaskQueue(_K) {
|
|
|
33890
34012
|
onClose();
|
|
33891
34013
|
}
|
|
33892
34014
|
}
|
|
34015
|
+
tasksList.current.scrollTop = 0;
|
|
33893
34016
|
};
|
|
33894
34017
|
const getTaskIcon = (task) => task.status === SpsTaskStatus.IN_PROGRESS ? SpsTaskStatusIcons[task.status] : `sps-icon sps-icon-${SpsTaskStatusIcons[task.status]}`;
|
|
33895
34018
|
React.useEffect(() => {
|
|
@@ -33990,12 +34113,13 @@ function SpsTaskQueue(_K) {
|
|
|
33990
34113
|
kind: tooltipKind,
|
|
33991
34114
|
showOn: hasTasks ? TooltipShowTrigger.MANUAL : TooltipShowTrigger.MOUSEOVER,
|
|
33992
34115
|
isShown: showNotification && !isOpen ? TooltipVisibility.VISIBLE : TooltipVisibility.HIDDEN,
|
|
33993
|
-
hideDelay: TASK_QUEUE_NOTIFICATION_DURATION_MS
|
|
34116
|
+
hideDelay: Number(hasTasks) && TASK_QUEUE_NOTIFICATION_DURATION_MS
|
|
33994
34117
|
}, !suppressTooltips && showNotification && (notificationText || t2("design-system:taskQueue.newTask")), !suppressTooltips && !showNotification && !hasTasks && t2("design-system:taskQueue.noTasks")), portal(/* @__PURE__ */ React.createElement("div", {
|
|
33995
34118
|
ref: taskQueueDropdownRef,
|
|
33996
34119
|
className: clsx("sps-task-queue__task-list", isOpen && "sps-task-queue__task-list--open", "z-stratum-dropdown"),
|
|
33997
34120
|
style: posStyle
|
|
33998
34121
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
34122
|
+
ref: tasksList,
|
|
33999
34123
|
className: "sps-task-queue__task-list-tasks"
|
|
34000
34124
|
}, tasks.map((task, taskIndex) => /* @__PURE__ */ React.createElement("div", {
|
|
34001
34125
|
key: taskIndex,
|
|
@@ -34364,8 +34488,8 @@ const propTypes$n = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
34364
34488
|
value: propTypes$1G.exports.string,
|
|
34365
34489
|
additionalText: propTypes$1G.exports.string
|
|
34366
34490
|
});
|
|
34367
|
-
const SpsTextInput = React.forwardRef((
|
|
34368
|
-
var
|
|
34491
|
+
const SpsTextInput = React.forwardRef((_Q, ref2) => {
|
|
34492
|
+
var _R = _Q, {
|
|
34369
34493
|
className,
|
|
34370
34494
|
disabled = false,
|
|
34371
34495
|
formControl: formControl2,
|
|
@@ -34380,7 +34504,7 @@ const SpsTextInput = React.forwardRef((_M, ref2) => {
|
|
|
34380
34504
|
unsafelyReplaceClassName,
|
|
34381
34505
|
value = "",
|
|
34382
34506
|
additionalText
|
|
34383
|
-
} =
|
|
34507
|
+
} = _R, rest = __objRest(_R, [
|
|
34384
34508
|
"className",
|
|
34385
34509
|
"disabled",
|
|
34386
34510
|
"formControl",
|
|
@@ -34595,8 +34719,8 @@ const propTypes$m = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
34595
34719
|
value: propTypes$1G.exports.string,
|
|
34596
34720
|
additionalText: propTypes$1G.exports.string
|
|
34597
34721
|
});
|
|
34598
|
-
function SpsTextarea(
|
|
34599
|
-
var
|
|
34722
|
+
function SpsTextarea(_S) {
|
|
34723
|
+
var _T = _S, {
|
|
34600
34724
|
className,
|
|
34601
34725
|
disabled = false,
|
|
34602
34726
|
formControl: formControl2,
|
|
@@ -34611,7 +34735,7 @@ function SpsTextarea(_O) {
|
|
|
34611
34735
|
unsafelyReplaceClassName,
|
|
34612
34736
|
value = "",
|
|
34613
34737
|
additionalText
|
|
34614
|
-
} =
|
|
34738
|
+
} = _T, rest = __objRest(_T, [
|
|
34615
34739
|
"className",
|
|
34616
34740
|
"disabled",
|
|
34617
34741
|
"formControl",
|
|
@@ -34807,7 +34931,8 @@ const propsDoc$l = {
|
|
|
34807
34931
|
icon: { type: "ReactNodeOrRenderFn", required: "true" },
|
|
34808
34932
|
error: "boolean",
|
|
34809
34933
|
title: { type: "string", required: "true" },
|
|
34810
|
-
warning: "boolean"
|
|
34934
|
+
warning: "boolean",
|
|
34935
|
+
disabled: "boolean"
|
|
34811
34936
|
};
|
|
34812
34937
|
const propTypes$l = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34813
34938
|
href: propTypes$1G.exports.string,
|
|
@@ -34815,7 +34940,8 @@ const propTypes$l = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
34815
34940
|
icon: nodeOrRenderFn.isRequired,
|
|
34816
34941
|
error: propTypes$1G.exports.bool,
|
|
34817
34942
|
title: propTypes$1G.exports.string.isRequired,
|
|
34818
|
-
warning: propTypes$1G.exports.bool
|
|
34943
|
+
warning: propTypes$1G.exports.bool,
|
|
34944
|
+
disabled: propTypes$1G.exports.bool
|
|
34819
34945
|
});
|
|
34820
34946
|
function SpsTile(props2) {
|
|
34821
34947
|
const _a = props2, {
|
|
@@ -34826,7 +34952,8 @@ function SpsTile(props2) {
|
|
|
34826
34952
|
error = false,
|
|
34827
34953
|
title,
|
|
34828
34954
|
unsafelyReplaceClassName,
|
|
34829
|
-
warning = false
|
|
34955
|
+
warning = false,
|
|
34956
|
+
disabled = false
|
|
34830
34957
|
} = _a, rest = __objRest(_a, [
|
|
34831
34958
|
"className",
|
|
34832
34959
|
"href",
|
|
@@ -34835,9 +34962,10 @@ function SpsTile(props2) {
|
|
|
34835
34962
|
"error",
|
|
34836
34963
|
"title",
|
|
34837
34964
|
"unsafelyReplaceClassName",
|
|
34838
|
-
"warning"
|
|
34965
|
+
"warning",
|
|
34966
|
+
"disabled"
|
|
34839
34967
|
]);
|
|
34840
|
-
const classes = clsx(unsafelyReplaceClassName || "sps-tile", className, error && "sps-tile--error", warning && "sps-tile--warning");
|
|
34968
|
+
const classes = clsx(unsafelyReplaceClassName || "sps-tile", className, error && "sps-tile--error", warning && "sps-tile--warning", disabled && "sps-tile--disabled");
|
|
34841
34969
|
React.useEffect(() => {
|
|
34842
34970
|
if (warning && error) {
|
|
34843
34971
|
throw new Error("Tile should have warning or error, not both");
|
|
@@ -34847,7 +34975,7 @@ function SpsTile(props2) {
|
|
|
34847
34975
|
className: "sps-tile-container sfg-col-3 sfg-break-col-6"
|
|
34848
34976
|
}, /* @__PURE__ */ React.createElement("a", __spreadValues({
|
|
34849
34977
|
className: classes,
|
|
34850
|
-
href,
|
|
34978
|
+
href: disabled ? void 0 : href,
|
|
34851
34979
|
target,
|
|
34852
34980
|
rel: target === "_blank" ? "noopener noreferrer" : void 0
|
|
34853
34981
|
}, rest), (warning || error) && /* @__PURE__ */ React.createElement("div", {
|
|
@@ -36201,8 +36329,8 @@ function Component() {
|
|
|
36201
36329
|
};
|
|
36202
36330
|
const propsDoc$7 = {};
|
|
36203
36331
|
const propTypes$7 = __spreadValues({}, spsGlobalPropTypes);
|
|
36204
|
-
function SpsFilterPanel(
|
|
36205
|
-
var
|
|
36332
|
+
function SpsFilterPanel(_U) {
|
|
36333
|
+
var _V = _U, { children, className } = _V, rest = __objRest(_V, ["children", "className"]);
|
|
36206
36334
|
return /* @__PURE__ */ React.createElement("div", __spreadValues({
|
|
36207
36335
|
className: clsx("sps-filter-panel", className)
|
|
36208
36336
|
}, rest), children);
|
|
@@ -36228,8 +36356,8 @@ const propTypes$6 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
36228
36356
|
onExpand: fun(),
|
|
36229
36357
|
onCollapse: fun()
|
|
36230
36358
|
});
|
|
36231
|
-
function SpsFilterPanelSection(
|
|
36232
|
-
var
|
|
36359
|
+
function SpsFilterPanelSection(_W) {
|
|
36360
|
+
var _X = _W, {
|
|
36233
36361
|
children,
|
|
36234
36362
|
className,
|
|
36235
36363
|
title,
|
|
@@ -36238,7 +36366,7 @@ function SpsFilterPanelSection(_S) {
|
|
|
36238
36366
|
heightRem,
|
|
36239
36367
|
onExpand,
|
|
36240
36368
|
onCollapse
|
|
36241
|
-
} =
|
|
36369
|
+
} = _X, rest = __objRest(_X, [
|
|
36242
36370
|
"children",
|
|
36243
36371
|
"className",
|
|
36244
36372
|
"title",
|
|
@@ -36291,12 +36419,12 @@ const propsDoc$5 = {
|
|
|
36291
36419
|
const propTypes$5 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36292
36420
|
onClear: fun()
|
|
36293
36421
|
});
|
|
36294
|
-
function SpsFilterPanelCap(
|
|
36295
|
-
var
|
|
36422
|
+
function SpsFilterPanelCap(_Y) {
|
|
36423
|
+
var _Z = _Y, {
|
|
36296
36424
|
children,
|
|
36297
36425
|
className,
|
|
36298
36426
|
onClear
|
|
36299
|
-
} =
|
|
36427
|
+
} = _Z, rest = __objRest(_Z, [
|
|
36300
36428
|
"children",
|
|
36301
36429
|
"className",
|
|
36302
36430
|
"onClear"
|
|
@@ -36655,14 +36783,14 @@ const propTypes$4 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
36655
36783
|
formMeta: impl(),
|
|
36656
36784
|
onFilterChange: fun()
|
|
36657
36785
|
});
|
|
36658
|
-
function SpsFilterPanelFilterBox(
|
|
36659
|
-
var
|
|
36786
|
+
function SpsFilterPanelFilterBox(__) {
|
|
36787
|
+
var _$ = __, {
|
|
36660
36788
|
className,
|
|
36661
36789
|
value,
|
|
36662
36790
|
placeholder,
|
|
36663
36791
|
formMeta,
|
|
36664
36792
|
onFilterChange
|
|
36665
|
-
} =
|
|
36793
|
+
} = _$, rest = __objRest(_$, [
|
|
36666
36794
|
"className",
|
|
36667
36795
|
"value",
|
|
36668
36796
|
"placeholder",
|
|
@@ -36691,12 +36819,12 @@ const propsDoc$3 = {
|
|
|
36691
36819
|
const propTypes$3 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36692
36820
|
showCondition: propTypes$1G.exports.bool
|
|
36693
36821
|
});
|
|
36694
|
-
function SpsConditionalField(
|
|
36695
|
-
var
|
|
36822
|
+
function SpsConditionalField(_aa) {
|
|
36823
|
+
var _ba = _aa, {
|
|
36696
36824
|
showCondition = true,
|
|
36697
36825
|
children,
|
|
36698
36826
|
className
|
|
36699
|
-
} =
|
|
36827
|
+
} = _ba, rest = __objRest(_ba, [
|
|
36700
36828
|
"showCondition",
|
|
36701
36829
|
"children",
|
|
36702
36830
|
"className"
|
|
@@ -37197,8 +37325,8 @@ function strToDollars(str) {
|
|
|
37197
37325
|
function dollarsToStr(dollars) {
|
|
37198
37326
|
return typeof dollars === "number" ? dollars.toFixed(2) : "";
|
|
37199
37327
|
}
|
|
37200
|
-
function SpsCurrencyInput(
|
|
37201
|
-
var
|
|
37328
|
+
function SpsCurrencyInput(_ca) {
|
|
37329
|
+
var _da = _ca, {
|
|
37202
37330
|
className,
|
|
37203
37331
|
disabled = false,
|
|
37204
37332
|
formMeta,
|
|
@@ -37208,7 +37336,7 @@ function SpsCurrencyInput(__) {
|
|
|
37208
37336
|
ref: ref2,
|
|
37209
37337
|
title,
|
|
37210
37338
|
value
|
|
37211
|
-
} =
|
|
37339
|
+
} = _da, rest = __objRest(_da, [
|
|
37212
37340
|
"className",
|
|
37213
37341
|
"disabled",
|
|
37214
37342
|
"formMeta",
|
|
@@ -37372,6 +37500,7 @@ const propTypes$1 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
37372
37500
|
function SpsKeyValueTag(props2) {
|
|
37373
37501
|
const _a = props2, {
|
|
37374
37502
|
color = TagKind.KEY,
|
|
37503
|
+
className,
|
|
37375
37504
|
"data-testid": testId,
|
|
37376
37505
|
href,
|
|
37377
37506
|
icon,
|
|
@@ -37380,6 +37509,7 @@ function SpsKeyValueTag(props2) {
|
|
|
37380
37509
|
unsafelyReplaceClassName
|
|
37381
37510
|
} = _a, rest = __objRest(_a, [
|
|
37382
37511
|
"color",
|
|
37512
|
+
"className",
|
|
37383
37513
|
"data-testid",
|
|
37384
37514
|
"href",
|
|
37385
37515
|
"icon",
|
|
@@ -37387,7 +37517,7 @@ function SpsKeyValueTag(props2) {
|
|
|
37387
37517
|
"value",
|
|
37388
37518
|
"unsafelyReplaceClassName"
|
|
37389
37519
|
]);
|
|
37390
|
-
const classes = clsx(unsafelyReplaceClassName || "sps-key-value-tag", href && "sps-key-value-tag--link");
|
|
37520
|
+
const classes = clsx(unsafelyReplaceClassName || "sps-key-value-tag", href && "sps-key-value-tag--link", className);
|
|
37391
37521
|
return /* @__PURE__ */ React.createElement("span", __spreadValues({
|
|
37392
37522
|
className: classes,
|
|
37393
37523
|
"data-testid": `${testId}__key-value-tag`
|
|
@@ -37551,4 +37681,4 @@ Object.assign(SpsVr, {
|
|
|
37551
37681
|
propTypes,
|
|
37552
37682
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
37553
37683
|
});
|
|
37554
|
-
export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, OnSubmitErrorKeys, PortalContext, PreventativeErrorKeys, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsListToolbarSortBy, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalExamples, SpsModalFooter, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, SpsSearchResultsBarV2, SpsSelect, SpsSelectExamples, SpsSideNav, SpsSideNavExamples, SpsSlackLink, SpsSlackLinkExamples, SpsSortingHeader, SpsSortingHeaderCell, SpsSortingHeaderExamples, SpsSpinner, SpsSpinnerExamples, SpsSplitButton, SpsSplitButtonExamples, SpsSteppedProgressBar, SpsSteppedProgressBarExamples, SpsSummaryListColumn, SpsSummaryListExamples, SpsSummaryListExpansion, SpsSummaryListRow, SpsTab, SpsTabPanel, SpsTable, SpsTableBody, SpsTableCell, SpsTableExamples, SpsTableHead, SpsTableHeader, SpsTableRow, SpsTabsV2, SpsTag, SpsTagExamples, SpsTaskQueue, SpsTaskQueueExamples, SpsTbody, SpsTd, SpsTextInput, SpsTextInputExamples, SpsTextarea, SpsTextareaExamples, SpsTh, SpsThead, SpsTile, SpsTileList, SpsTileListExamples, SpsToggle, SpsToggleExamples, SpsTooltip, SpsTooltipExamples, SpsTooltipTitle, SpsTr, SpsValidators, SpsVerticalRule, SpsVr, SpsWf, SpsWfDoc, SpsWfDs, SpsWfStep, SpsWizardExamples, SpsWizardSidebar, SpsWizardSubstep, SpsWorkflow, SpsWorkflowDocument, SpsWorkflowDocumentStatus, SpsWorkflowExamples, SpsWorkflowStep, SpsZeroState, SpsZeroStateExamples, TooltipVisibility, ValidationMode, addOnChangeErrorKey, addOnSubmitErrorKey, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useCustomValidator, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate };
|
|
37684
|
+
export { AsTypingErrorKeys, ContentOrderExample, DEFAULT_PRESETS, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, OnSubmitErrorKeys, PortalContext, PreventativeErrorKeys, Provide, SimpleDateUtils, SpsAddRemoveFormRowExamples, SpsAdvancedSearch, SpsAdvancedSearchExamples, SpsApp, SpsAutocomplete, SpsAutocompleteExamples, SpsButton, SpsButtonExamples, SpsButtonGroup, SpsCard, SpsCardExamples, SpsCardTabbedPane, SpsCardV2, SpsCardV2Footer, SpsCardV2Header, SpsCardV2Title, SpsCheckbox, SpsCheckboxDropdown, SpsCheckboxExamples, SpsClickableTag, SpsClickableTagExamples, SpsColumnChooser, SpsColumnChooserColumn, SpsColumnChooserExamples, SpsConditionalField, SpsConditionalFieldExamples, SpsContentRow, SpsContentRowCol, SpsContentRowExamples, SpsContentRowExpansion, SpsCurrencyInput, SpsCurrencyInputExamples, SpsDateRangePicker, SpsDateRangePickerExamples, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatetimeExamples, SpsDd, SpsDescriptionList, SpsDescriptionListDefinition, SpsDescriptionListExamples, SpsDescriptionListTerm, SpsDl, SpsDropdown, SpsDropdownExamples, SpsDt, SpsFeedbackBlock, SpsFeedbackBlockExamples, SpsFieldset, SpsFieldsetExamples, SpsFilterPanel, SpsFilterPanelCap, SpsFilterPanelExamples, SpsFilterPanelFilterBox, SpsFilterPanelSection, SpsFilterTile, SpsFilterTileList, SpsFilterTileListExamples, SpsFocusedTask, SpsFocusedTaskActions, SpsFocusedTaskExamples, SpsForm, SpsFormArrayMeta, SpsFormComponentWrapper, SpsFormExamples, SpsFormFieldMeta, SpsFormGroupMeta, SpsFormMetaBase, SpsFormSetMeta, SpsGrowler, SpsGrowlerExamples, SpsI, SpsIconButtonPanel, SpsIncrementor, SpsIncrementorExamples, SpsInputGroup, SpsInsightTile, SpsInsights, SpsKeyValueList, SpsKeyValueListExamples, SpsKeyValueListItem, SpsKeyValueTag, SpsKeyValueTagExamples, SpsLabel, SpsLabelExamples, SpsListActionBar, SpsListActionBarExamples, SpsListToolbar, SpsListToolbarExamples, SpsListToolbarSearch, SpsListToolbarSearchInfo, SpsListToolbarSortBy, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalExamples, SpsModalFooter, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, SpsSearchResultsBarV2, SpsSelect, SpsSelectExamples, SpsSideNav, SpsSideNavExamples, SpsSlackLink, SpsSlackLinkExamples, SpsSortingHeader, SpsSortingHeaderCell, SpsSortingHeaderExamples, SpsSpinner, SpsSpinnerExamples, SpsSplitButton, SpsSplitButtonExamples, SpsSteppedProgressBar, SpsSteppedProgressBarExamples, SpsSummaryListColumn, SpsSummaryListExamples, SpsSummaryListExpansion, SpsSummaryListRow, SpsTab, SpsTabPanel, SpsTable, SpsTableBody, SpsTableCell, SpsTableExamples, SpsTableHead, SpsTableHeader, SpsTableRow, SpsTabsV2, SpsTag, SpsTagExamples, SpsTaskQueue, SpsTaskQueueExamples, SpsTbody, SpsTd, SpsTextInput, SpsTextInputExamples, SpsTextarea, SpsTextareaExamples, SpsTh, SpsThead, SpsTile, SpsTileList, SpsTileListExamples, SpsToggle, SpsToggleExamples, SpsTooltip, SpsTooltipExamples, SpsTooltipTitle, SpsTr, SpsValidators, SpsVerticalRule, SpsVr, SpsWf, SpsWfDoc, SpsWfDs, SpsWfStep, SpsWizardExamples, SpsWizardSidebar, SpsWizardSubstep, SpsWorkflow, SpsWorkflowDocument, SpsWorkflowDocumentStatus, SpsWorkflowExamples, SpsWorkflowStep, SpsZeroState, SpsZeroStateExamples, TooltipVisibility, ValidationMode, addOnChangeErrorKey, addOnSubmitErrorKey, bindProps, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useCustomValidator, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate };
|