@spscommerce/ds-react 5.2.5 → 5.5.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/datepicker-v2/utils.d.ts +2 -1
- package/lib/index.cjs.js +158 -91
- package/lib/index.es.js +822 -688
- package/lib/list-toolbar/SpsListToolbarSearchInfo.d.ts +10 -0
- package/lib/list-toolbar/index.d.ts +1 -0
- package/lib/stepped-progress-bar/SpsSteppedProgressBar.d.ts +3 -1
- package/lib/stepped-progress-bar/{SpsStepepdProgressBar.examples.d.ts → SpsSteppedProgressBar.examples.d.ts} +4 -0
- package/lib/stepped-progress-bar/index.d.ts +1 -1
- package/lib/test-util.d.ts +1 -0
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
|
@@ -31,13 +31,13 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import * as React from "react";
|
|
33
33
|
import React__default, { useRef, useEffect, createContext, useMemo as useMemo$1, useContext, useReducer, useState, useCallback as useCallback$1, useLayoutEffect as useLayoutEffect$1 } from "react";
|
|
34
|
-
import { noI18nI18n, ButtonKind, ButtonType, SpsIcon, SpinnerSize, Position, ZStratum, SpsOptionListOption, DropdownKind, SPS_ACTION_DEFAULTS, ClickableTagKind, TagKind, SpsIconSize, SelectMode, TooltipKind, TooltipShowTrigger, TOOLTIP_HIDE_DELAY_MS_DEFAULT, FeedbackBlockKind, FeedbackBlockIcons, GrowlerKind, GrowlerIcon, GROWLER_VISIBLE_DURATION_MS, GROWLER_FADEOUT_DURATION_MS, SpsInsightTileKind, SpsInsightTileIcons, KeyValueListTitleColor, SortDirection, ModalKind, ModalSize, DEFAULT_PAGE_SIZE_OPTIONS, StdButtonKind, SpsTaskStatus, TASK_QUEUE_NOTIFICATION_DURATION_MS, SpsTaskStatusIcons, SpsFilterTileKind, RingSize, WizardSubstepConditions } from "@spscommerce/ds-shared";
|
|
34
|
+
import { noI18nI18n, ButtonKind, ButtonType, SpsIcon, SpinnerSize, Position, ZStratum, SpsOptionListOption, DropdownKind, SPS_ACTION_DEFAULTS, ClickableTagKind, TagKind, SpsIconSize, SelectMode, TooltipKind, TooltipShowTrigger, TOOLTIP_HIDE_DELAY_MS_DEFAULT, FeedbackBlockKind, FeedbackBlockIcons, GrowlerKind, GrowlerIcon, GROWLER_VISIBLE_DURATION_MS, GROWLER_FADEOUT_DURATION_MS, SpsInsightTileKind, SpsInsightTileIcons, KeyValueListTitleColor, SortDirection, ModalKind, ModalSize, DEFAULT_PAGE_SIZE_OPTIONS, SteppedProgressBarColor, StdButtonKind, SpsTaskStatus, TASK_QUEUE_NOTIFICATION_DURATION_MS, SpsTaskStatusIcons, SpsFilterTileKind, RingSize, WizardSubstepConditions } from "@spscommerce/ds-shared";
|
|
35
35
|
import { values as values$3, code, debounce, flatten, deepFreeze, setPath, diff, DiffChange, getPath, crumblePath, traversePath, forEachNestedObject, lockToAnimationFrames, constrain } from "@spscommerce/utils";
|
|
36
36
|
import * as ReactDOM from "react-dom";
|
|
37
37
|
import { createPortal, unstable_batchedUpdates } from "react-dom";
|
|
38
38
|
import { useCollection } from "@react-stately/collections";
|
|
39
39
|
import { PositioningService, Position as Position$1 } from "@spscommerce/positioning";
|
|
40
|
-
import * as moment$
|
|
40
|
+
import * as moment$6 from "moment-timezone";
|
|
41
41
|
import moment__default from "moment-timezone";
|
|
42
42
|
import { colors } from "@spscommerce/ds-colors";
|
|
43
43
|
function toVal(mix) {
|
|
@@ -81,7 +81,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
|
|
|
81
81
|
function commonjsRequire(path) {
|
|
82
82
|
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
83
83
|
}
|
|
84
|
-
var propTypes$
|
|
84
|
+
var propTypes$1M = { exports: {} };
|
|
85
85
|
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
86
86
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
87
87
|
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
@@ -129,32 +129,32 @@ var factoryWithThrowingShims = function() {
|
|
|
129
129
|
return ReactPropTypes;
|
|
130
130
|
};
|
|
131
131
|
{
|
|
132
|
-
propTypes$
|
|
132
|
+
propTypes$1M.exports = factoryWithThrowingShims();
|
|
133
133
|
}
|
|
134
134
|
function deprecated(type) {
|
|
135
135
|
return type;
|
|
136
136
|
}
|
|
137
137
|
function enumValue(e2) {
|
|
138
|
-
return propTypes$
|
|
138
|
+
return propTypes$1M.exports.oneOf(values$3(e2));
|
|
139
139
|
}
|
|
140
140
|
function fun() {
|
|
141
|
-
return propTypes$
|
|
141
|
+
return propTypes$1M.exports.func;
|
|
142
142
|
}
|
|
143
143
|
function impl() {
|
|
144
|
-
return propTypes$
|
|
144
|
+
return propTypes$1M.exports.object;
|
|
145
145
|
}
|
|
146
146
|
function ref() {
|
|
147
|
-
return propTypes$
|
|
147
|
+
return propTypes$1M.exports.object;
|
|
148
148
|
}
|
|
149
|
-
const nodeOrRenderFn = propTypes$
|
|
149
|
+
const nodeOrRenderFn = propTypes$1M.exports.oneOfType([propTypes$1M.exports.node, propTypes$1M.exports.func]);
|
|
150
150
|
const spsGlobalPropTypes = {
|
|
151
|
-
children: propTypes$
|
|
152
|
-
className: propTypes$
|
|
153
|
-
"data-testid": propTypes$
|
|
154
|
-
unsafelyReplaceClassName: propTypes$
|
|
151
|
+
children: propTypes$1M.exports.oneOfType([propTypes$1M.exports.arrayOf(propTypes$1M.exports.node), propTypes$1M.exports.node]),
|
|
152
|
+
className: propTypes$1M.exports.string,
|
|
153
|
+
"data-testid": propTypes$1M.exports.string,
|
|
154
|
+
unsafelyReplaceClassName: propTypes$1M.exports.string
|
|
155
155
|
};
|
|
156
156
|
const I18nContext = React.createContext(noI18nI18n);
|
|
157
|
-
const propsDoc$
|
|
157
|
+
const propsDoc$1H = {
|
|
158
158
|
disabled: "boolean",
|
|
159
159
|
href: "string",
|
|
160
160
|
icon: "SpsIcon",
|
|
@@ -163,13 +163,13 @@ const propsDoc$1G = {
|
|
|
163
163
|
spinningTitle: "string",
|
|
164
164
|
type: "ButtonType"
|
|
165
165
|
};
|
|
166
|
-
const propTypes$
|
|
167
|
-
disabled: propTypes$
|
|
168
|
-
href: propTypes$
|
|
166
|
+
const propTypes$1L = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
167
|
+
disabled: propTypes$1M.exports.bool,
|
|
168
|
+
href: propTypes$1M.exports.string,
|
|
169
169
|
icon: enumValue(SpsIcon),
|
|
170
170
|
kind: enumValue(ButtonKind),
|
|
171
|
-
spinning: propTypes$
|
|
172
|
-
spinningTitle: propTypes$
|
|
171
|
+
spinning: propTypes$1M.exports.bool,
|
|
172
|
+
spinningTitle: propTypes$1M.exports.string,
|
|
173
173
|
type: enumValue(ButtonType)
|
|
174
174
|
});
|
|
175
175
|
function SpsButton(props2) {
|
|
@@ -219,8 +219,8 @@ function SpsButton(props2) {
|
|
|
219
219
|
}), iconElement, children, spinner));
|
|
220
220
|
}
|
|
221
221
|
Object.assign(SpsButton, {
|
|
222
|
-
props: propsDoc$
|
|
223
|
-
propTypes: propTypes$
|
|
222
|
+
props: propsDoc$1H,
|
|
223
|
+
propTypes: propTypes$1L,
|
|
224
224
|
displayName: "SpsButton"
|
|
225
225
|
});
|
|
226
226
|
const spsFormProps = {
|
|
@@ -272,7 +272,7 @@ Object.assign(SpsForm, {
|
|
|
272
272
|
function contentOf(nodeOrRenderFn2) {
|
|
273
273
|
return typeof nodeOrRenderFn2 === "function" ? nodeOrRenderFn2() : nodeOrRenderFn2;
|
|
274
274
|
}
|
|
275
|
-
const propsDoc$
|
|
275
|
+
const propsDoc$1G = __spreadProps(__spreadValues({}, spsFormProps), {
|
|
276
276
|
controlsDisabled: "boolean",
|
|
277
277
|
footerLinks: "ReactNodeOrRenderFn",
|
|
278
278
|
formMeta: "SpsFormArrayMeta<any> | SpsFormGroupMeta<any>",
|
|
@@ -280,16 +280,16 @@ const propsDoc$1F = __spreadProps(__spreadValues({}, spsFormProps), {
|
|
|
280
280
|
onClear: "() => void",
|
|
281
281
|
onSubmit: "React.FormEventHandler"
|
|
282
282
|
});
|
|
283
|
-
const propTypes$
|
|
284
|
-
controlsDisabled: propTypes$
|
|
283
|
+
const propTypes$1K = __spreadProps(__spreadValues(__spreadValues({}, spsGlobalPropTypes), spsFormPropTypes), {
|
|
284
|
+
controlsDisabled: propTypes$1M.exports.bool,
|
|
285
285
|
footerLinks: nodeOrRenderFn,
|
|
286
286
|
formArray: impl(),
|
|
287
287
|
formGroup: impl(),
|
|
288
|
-
formMeta: propTypes$
|
|
288
|
+
formMeta: propTypes$1M.exports.oneOfType([
|
|
289
289
|
impl(),
|
|
290
290
|
impl()
|
|
291
291
|
]),
|
|
292
|
-
isOpen: propTypes$
|
|
292
|
+
isOpen: propTypes$1M.exports.bool,
|
|
293
293
|
onClear: fun(),
|
|
294
294
|
onSubmit: fun()
|
|
295
295
|
});
|
|
@@ -354,8 +354,8 @@ function SpsAdvancedSearch(props2) {
|
|
|
354
354
|
}, t2("design-system:advancedSearch.search"))))));
|
|
355
355
|
}
|
|
356
356
|
Object.assign(SpsAdvancedSearch, {
|
|
357
|
-
props: propsDoc$
|
|
358
|
-
propTypes: propTypes$
|
|
357
|
+
props: propsDoc$1G,
|
|
358
|
+
propTypes: propTypes$1K,
|
|
359
359
|
displayName: "SpsAdvancedSearch"
|
|
360
360
|
});
|
|
361
361
|
const SpsAdvancedSearchExamples = {
|
|
@@ -598,7 +598,7 @@ function useFormControlId(id2, formControl2) {
|
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
const spsFormComponentWrapperPropTypes = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
601
|
-
focusInputOnClick: propTypes$
|
|
601
|
+
focusInputOnClick: propTypes$1M.exports.bool,
|
|
602
602
|
formMeta: impl(),
|
|
603
603
|
formControl: impl(),
|
|
604
604
|
inputRef: ref()
|
|
@@ -748,15 +748,15 @@ var scrollIntoViewImport = /* @__PURE__ */ Object.freeze({
|
|
|
748
748
|
[Symbol.toStringTag]: "Module",
|
|
749
749
|
"default": scrollIntoView$1
|
|
750
750
|
});
|
|
751
|
-
const propsDoc$
|
|
751
|
+
const propsDoc$1F = {
|
|
752
752
|
alt: "string",
|
|
753
753
|
size: "SpinnerSize",
|
|
754
754
|
title: "string"
|
|
755
755
|
};
|
|
756
|
-
const propTypes$
|
|
757
|
-
alt: propTypes$
|
|
756
|
+
const propTypes$1J = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
757
|
+
alt: propTypes$1M.exports.string,
|
|
758
758
|
size: enumValue(SpinnerSize),
|
|
759
|
-
title: propTypes$
|
|
759
|
+
title: propTypes$1M.exports.string
|
|
760
760
|
});
|
|
761
761
|
function SpsSpinner(props2) {
|
|
762
762
|
const _a = props2, {
|
|
@@ -784,8 +784,8 @@ function SpsSpinner(props2) {
|
|
|
784
784
|
}, rest));
|
|
785
785
|
}
|
|
786
786
|
Object.assign(SpsSpinner, {
|
|
787
|
-
props: propsDoc$
|
|
788
|
-
propTypes: propTypes$
|
|
787
|
+
props: propsDoc$1F,
|
|
788
|
+
propTypes: propTypes$1J,
|
|
789
789
|
displayName: "SpsSpinner"
|
|
790
790
|
});
|
|
791
791
|
const NAVBAR_HEIGHT = 60;
|
|
@@ -973,48 +973,48 @@ const spsOptionListPassthroughProps = {
|
|
|
973
973
|
zeroState: "string"
|
|
974
974
|
},
|
|
975
975
|
propTypes: {
|
|
976
|
-
captionKey: propTypes$
|
|
977
|
-
comparisonKey: propTypes$
|
|
978
|
-
disabledOptions: propTypes$
|
|
979
|
-
options: propTypes$
|
|
980
|
-
propTypes$
|
|
981
|
-
propTypes$
|
|
976
|
+
captionKey: propTypes$1M.exports.string,
|
|
977
|
+
comparisonKey: propTypes$1M.exports.string,
|
|
978
|
+
disabledOptions: propTypes$1M.exports.arrayOf(propTypes$1M.exports.any),
|
|
979
|
+
options: propTypes$1M.exports.oneOfType([
|
|
980
|
+
propTypes$1M.exports.array,
|
|
981
|
+
propTypes$1M.exports.instanceOf(Promise),
|
|
982
982
|
fun()
|
|
983
983
|
]).isRequired,
|
|
984
|
-
tall: propTypes$
|
|
985
|
-
textKey: propTypes$
|
|
986
|
-
valueKey: propTypes$
|
|
987
|
-
zeroState: propTypes$
|
|
984
|
+
tall: propTypes$1M.exports.bool,
|
|
985
|
+
textKey: propTypes$1M.exports.string,
|
|
986
|
+
valueKey: propTypes$1M.exports.string,
|
|
987
|
+
zeroState: propTypes$1M.exports.string
|
|
988
988
|
}
|
|
989
989
|
};
|
|
990
990
|
const searchableOptionListProps = {
|
|
991
|
-
hideInlineSearch: propTypes$
|
|
991
|
+
hideInlineSearch: propTypes$1M.exports.bool,
|
|
992
992
|
onSearchChange: fun(),
|
|
993
|
-
search: propTypes$
|
|
994
|
-
searchDebounce: propTypes$
|
|
995
|
-
searchPlaceholder: propTypes$
|
|
993
|
+
search: propTypes$1M.exports.string,
|
|
994
|
+
searchDebounce: propTypes$1M.exports.number,
|
|
995
|
+
searchPlaceholder: propTypes$1M.exports.string,
|
|
996
996
|
searchInputRef: ref()
|
|
997
997
|
};
|
|
998
|
-
const propTypes$
|
|
998
|
+
const propTypes$1I = __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, spsGlobalPropTypes), spsOptionListPassthroughProps.propTypes), searchableOptionListProps), {
|
|
999
999
|
attachTo: ref().isRequired,
|
|
1000
|
-
conformWidth: propTypes$
|
|
1001
|
-
id: propTypes$
|
|
1002
|
-
isOpen: propTypes$
|
|
1003
|
-
keepOpen: propTypes$
|
|
1000
|
+
conformWidth: propTypes$1M.exports.bool,
|
|
1001
|
+
id: propTypes$1M.exports.string.isRequired,
|
|
1002
|
+
isOpen: propTypes$1M.exports.bool,
|
|
1003
|
+
keepOpen: propTypes$1M.exports.bool,
|
|
1004
1004
|
keyDown: impl(),
|
|
1005
|
-
nullOption: propTypes$
|
|
1006
|
-
offsets: propTypes$
|
|
1005
|
+
nullOption: propTypes$1M.exports.string,
|
|
1006
|
+
offsets: propTypes$1M.exports.arrayOf(propTypes$1M.exports.number),
|
|
1007
1007
|
onOptionListChanged: fun(),
|
|
1008
1008
|
onOptionSelected: fun(),
|
|
1009
1009
|
onPositionFlip: fun(),
|
|
1010
1010
|
onSelfToggle: fun(),
|
|
1011
|
-
optionRole: propTypes$
|
|
1012
|
-
positionOverride: propTypes$
|
|
1013
|
-
selectedOption: propTypes$
|
|
1011
|
+
optionRole: propTypes$1M.exports.string,
|
|
1012
|
+
positionOverride: propTypes$1M.exports.arrayOf(enumValue(Position)),
|
|
1013
|
+
selectedOption: propTypes$1M.exports.any,
|
|
1014
1014
|
specialAction: fun(),
|
|
1015
|
-
ignoreWidthStyles: propTypes$
|
|
1016
|
-
loading: propTypes$
|
|
1017
|
-
filterByTextAndCaptionKey: propTypes$
|
|
1015
|
+
ignoreWidthStyles: propTypes$1M.exports.bool,
|
|
1016
|
+
loading: propTypes$1M.exports.bool,
|
|
1017
|
+
filterByTextAndCaptionKey: propTypes$1M.exports.bool
|
|
1018
1018
|
});
|
|
1019
1019
|
async function updateOptions(props2, searchState, searchStatePatch, setOptionList, setAnyOptionHasIcon, promiseRef) {
|
|
1020
1020
|
const options = typeof props2.options === "function" ? props2.options(searchState.value) : props2.options || [];
|
|
@@ -1317,7 +1317,8 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
1317
1317
|
specialAction,
|
|
1318
1318
|
unsafelyReplaceClassName,
|
|
1319
1319
|
loading,
|
|
1320
|
-
filterByTextAndCaptionKey
|
|
1320
|
+
filterByTextAndCaptionKey,
|
|
1321
|
+
"data-testid": testId
|
|
1321
1322
|
} = _a, rest = __objRest(_a, [
|
|
1322
1323
|
"captionKey",
|
|
1323
1324
|
"comparisonKey",
|
|
@@ -1351,7 +1352,8 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
1351
1352
|
"specialAction",
|
|
1352
1353
|
"unsafelyReplaceClassName",
|
|
1353
1354
|
"loading",
|
|
1354
|
-
"filterByTextAndCaptionKey"
|
|
1355
|
+
"filterByTextAndCaptionKey",
|
|
1356
|
+
"data-testid"
|
|
1355
1357
|
]);
|
|
1356
1358
|
const specialActionOption = React.useMemo(() => specialAction ? new SpsOptionListOption(specialAction, {
|
|
1357
1359
|
textKey: "label",
|
|
@@ -1573,10 +1575,12 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
1573
1575
|
tabIndex: -1,
|
|
1574
1576
|
ref: rootRef,
|
|
1575
1577
|
style: posStyle,
|
|
1576
|
-
onMouseLeave: () => setHighlightedOptionIndex(-1)
|
|
1578
|
+
onMouseLeave: () => setHighlightedOptionIndex(-1),
|
|
1579
|
+
"data-testid": testId
|
|
1577
1580
|
}, rest), searchElement, /* @__PURE__ */ React.createElement("div", {
|
|
1578
1581
|
className: optionsClasses,
|
|
1579
|
-
ref: optionsRef
|
|
1582
|
+
ref: optionsRef,
|
|
1583
|
+
"data-testid": `${testId}-options`
|
|
1580
1584
|
}, !loading && !searchState.pending && zeroState && (searchState.value || !searchState.isAsync) && optionList.length === 0 && /* @__PURE__ */ React.createElement("div", {
|
|
1581
1585
|
className: "sps-option-list__zero-state"
|
|
1582
1586
|
}, zeroState), (loading || searchState.pending) && /* @__PURE__ */ React.createElement("div", {
|
|
@@ -1593,7 +1597,8 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
1593
1597
|
onClick: (event) => handleOptionClick(event, option),
|
|
1594
1598
|
onMouseOver: () => setHighlightedOptionIndex(i2),
|
|
1595
1599
|
tabIndex: -1,
|
|
1596
|
-
ref: highlightedOptionIndex === i2 ? highlightedOptionRef : null
|
|
1600
|
+
ref: highlightedOptionIndex === i2 ? highlightedOptionRef : null,
|
|
1601
|
+
"data-testid": `${testId}-option-${i2}`
|
|
1597
1602
|
}, option.value && option.value.icon && /* @__PURE__ */ React.createElement("i", {
|
|
1598
1603
|
className: clsx("sps-icon", "sps-option-list__option-icon", `sps-icon-${String(option.value.icon)}`)
|
|
1599
1604
|
}), (!option.value || !option.value.icon && anyOptionHasIcon) && /* @__PURE__ */ React.createElement("span", {
|
|
@@ -1621,7 +1626,7 @@ const SpsOptionList = React.forwardRef((props2, ref2) => {
|
|
|
1621
1626
|
}), /* @__PURE__ */ React.createElement("span", null, specialAction.label))));
|
|
1622
1627
|
});
|
|
1623
1628
|
Object.assign(SpsOptionList, {
|
|
1624
|
-
propTypes: propTypes$
|
|
1629
|
+
propTypes: propTypes$1I,
|
|
1625
1630
|
displayName: "SpsOptionList"
|
|
1626
1631
|
});
|
|
1627
1632
|
function selectChildren(children = [], groups = []) {
|
|
@@ -1710,7 +1715,7 @@ function useInputPopup(rootRef, popupRef) {
|
|
|
1710
1715
|
doHidePopup
|
|
1711
1716
|
};
|
|
1712
1717
|
}
|
|
1713
|
-
const propsDoc$
|
|
1718
|
+
const propsDoc$1E = {
|
|
1714
1719
|
debounce: "number",
|
|
1715
1720
|
disabled: "boolean",
|
|
1716
1721
|
formMeta: "SpsFormFieldMeta<string>",
|
|
@@ -1729,23 +1734,23 @@ const propsDoc$1D = {
|
|
|
1729
1734
|
zeroState: "string",
|
|
1730
1735
|
loading: "boolean"
|
|
1731
1736
|
};
|
|
1732
|
-
const propTypes$
|
|
1733
|
-
debounce: propTypes$
|
|
1734
|
-
disabled: propTypes$
|
|
1737
|
+
const propTypes$1H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
1738
|
+
debounce: propTypes$1M.exports.number,
|
|
1739
|
+
disabled: propTypes$1M.exports.bool,
|
|
1735
1740
|
formControl: impl(),
|
|
1736
1741
|
formMeta: impl(),
|
|
1737
1742
|
icon: enumValue(SpsIcon),
|
|
1738
1743
|
onChange: fun(),
|
|
1739
|
-
placeholder: propTypes$
|
|
1740
|
-
suggestions: propTypes$
|
|
1741
|
-
propTypes$
|
|
1742
|
-
propTypes$
|
|
1744
|
+
placeholder: propTypes$1M.exports.string,
|
|
1745
|
+
suggestions: propTypes$1M.exports.oneOfType([
|
|
1746
|
+
propTypes$1M.exports.arrayOf(propTypes$1M.exports.string),
|
|
1747
|
+
propTypes$1M.exports.instanceOf(Promise),
|
|
1743
1748
|
fun()
|
|
1744
1749
|
]).isRequired,
|
|
1745
|
-
tallOptionList: propTypes$
|
|
1746
|
-
value: propTypes$
|
|
1747
|
-
zeroState: propTypes$
|
|
1748
|
-
loading: propTypes$
|
|
1750
|
+
tallOptionList: propTypes$1M.exports.bool,
|
|
1751
|
+
value: propTypes$1M.exports.string,
|
|
1752
|
+
zeroState: propTypes$1M.exports.string,
|
|
1753
|
+
loading: propTypes$1M.exports.bool
|
|
1749
1754
|
});
|
|
1750
1755
|
function SpsAutocomplete(_a) {
|
|
1751
1756
|
var _b = _a, {
|
|
@@ -1892,8 +1897,8 @@ function SpsAutocomplete(_a) {
|
|
|
1892
1897
|
}));
|
|
1893
1898
|
}
|
|
1894
1899
|
Object.assign(SpsAutocomplete, {
|
|
1895
|
-
props: propsDoc$
|
|
1896
|
-
propTypes: propTypes$
|
|
1900
|
+
props: propsDoc$1E,
|
|
1901
|
+
propTypes: propTypes$1H,
|
|
1897
1902
|
displayName: "SpsAutocomplete"
|
|
1898
1903
|
});
|
|
1899
1904
|
const SpsAutocompleteExamples = {
|
|
@@ -2016,7 +2021,7 @@ const SpsAutocompleteExamples = {
|
|
|
2016
2021
|
}
|
|
2017
2022
|
}
|
|
2018
2023
|
};
|
|
2019
|
-
const propsDoc$
|
|
2024
|
+
const propsDoc$1D = {
|
|
2020
2025
|
alignLeft: "boolean",
|
|
2021
2026
|
disabled: "boolean",
|
|
2022
2027
|
icon: "SpsIcon",
|
|
@@ -2030,19 +2035,19 @@ const propsDoc$1C = {
|
|
|
2030
2035
|
onClose: "() => void",
|
|
2031
2036
|
loading: "boolean"
|
|
2032
2037
|
};
|
|
2033
|
-
const propTypes$
|
|
2034
|
-
alignLeft: propTypes$
|
|
2035
|
-
disabled: propTypes$
|
|
2038
|
+
const propTypes$1G = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
2039
|
+
alignLeft: propTypes$1M.exports.bool,
|
|
2040
|
+
disabled: propTypes$1M.exports.bool,
|
|
2036
2041
|
icon: enumValue(SpsIcon),
|
|
2037
2042
|
kind: enumValue(DropdownKind),
|
|
2038
|
-
label: propTypes$
|
|
2039
|
-
options: propTypes$
|
|
2040
|
-
spinning: propTypes$
|
|
2041
|
-
spinningTitle: propTypes$
|
|
2042
|
-
tallOptionList: propTypes$
|
|
2043
|
+
label: propTypes$1M.exports.string,
|
|
2044
|
+
options: propTypes$1M.exports.arrayOf(propTypes$1M.exports.oneOfType([propTypes$1M.exports.func, propTypes$1M.exports.any])).isRequired,
|
|
2045
|
+
spinning: propTypes$1M.exports.bool,
|
|
2046
|
+
spinningTitle: propTypes$1M.exports.string,
|
|
2047
|
+
tallOptionList: propTypes$1M.exports.bool,
|
|
2043
2048
|
onOpen: fun(),
|
|
2044
2049
|
onClose: fun(),
|
|
2045
|
-
loading: propTypes$
|
|
2050
|
+
loading: propTypes$1M.exports.bool
|
|
2046
2051
|
});
|
|
2047
2052
|
function SpsDropdown(props2) {
|
|
2048
2053
|
const _a = props2, {
|
|
@@ -2199,12 +2204,12 @@ function SpsDropdown(props2) {
|
|
|
2199
2204
|
}, spinningTitle || t2("design-system:button.spinningTitle")))));
|
|
2200
2205
|
}
|
|
2201
2206
|
Object.assign(SpsDropdown, {
|
|
2202
|
-
props: propsDoc$
|
|
2203
|
-
propTypes: propTypes$
|
|
2207
|
+
props: propsDoc$1D,
|
|
2208
|
+
propTypes: propTypes$1G,
|
|
2204
2209
|
displayName: "SpsDropdown"
|
|
2205
2210
|
});
|
|
2206
|
-
const propsDoc$
|
|
2207
|
-
const propTypes$
|
|
2211
|
+
const propsDoc$1C = {};
|
|
2212
|
+
const propTypes$1F = __spreadValues({}, spsGlobalPropTypes);
|
|
2208
2213
|
function SpsButtonGroup(props2) {
|
|
2209
2214
|
const _a = props2, {
|
|
2210
2215
|
children,
|
|
@@ -2235,8 +2240,8 @@ function SpsButtonGroup(props2) {
|
|
|
2235
2240
|
}), others.length > 0 && others);
|
|
2236
2241
|
}
|
|
2237
2242
|
Object.assign(SpsButtonGroup, {
|
|
2238
|
-
props: propsDoc$
|
|
2239
|
-
propTypes: propTypes$
|
|
2243
|
+
props: propsDoc$1C,
|
|
2244
|
+
propTypes: propTypes$1F,
|
|
2240
2245
|
displayName: "SpsButtonGroup"
|
|
2241
2246
|
});
|
|
2242
2247
|
const SpsButtonExamples = {
|
|
@@ -4968,8 +4973,8 @@ function SpsTabPanel(_c) {
|
|
|
4968
4973
|
className: "sps-card__body"
|
|
4969
4974
|
}), state.selectedItem ? state.selectedItem.props.children : null);
|
|
4970
4975
|
}
|
|
4971
|
-
const propsDoc$
|
|
4972
|
-
const propTypes$
|
|
4976
|
+
const propsDoc$1B = {};
|
|
4977
|
+
const propTypes$1E = {};
|
|
4973
4978
|
function SpsTabsV2(props2) {
|
|
4974
4979
|
const state = useTabListState(props2);
|
|
4975
4980
|
const ref2 = React.useRef();
|
|
@@ -4987,12 +4992,12 @@ function SpsTabsV2(props2) {
|
|
|
4987
4992
|
}));
|
|
4988
4993
|
}
|
|
4989
4994
|
Object.assign(SpsTabsV2, {
|
|
4990
|
-
props: propsDoc$
|
|
4991
|
-
propTypes: propTypes$
|
|
4995
|
+
props: propsDoc$1B,
|
|
4996
|
+
propTypes: propTypes$1E,
|
|
4992
4997
|
displayName: "SpsTabsV2"
|
|
4993
4998
|
});
|
|
4994
|
-
const propsDoc$
|
|
4995
|
-
const propTypes$
|
|
4999
|
+
const propsDoc$1A = {};
|
|
5000
|
+
const propTypes$1D = {};
|
|
4996
5001
|
function SpsCardV2Footer(_e) {
|
|
4997
5002
|
var _f = _e, {
|
|
4998
5003
|
children,
|
|
@@ -5006,12 +5011,12 @@ function SpsCardV2Footer(_e) {
|
|
|
5006
5011
|
}, rest), children);
|
|
5007
5012
|
}
|
|
5008
5013
|
Object.assign(SpsCardV2Footer, {
|
|
5009
|
-
props: propsDoc$
|
|
5010
|
-
propTypes: propTypes$
|
|
5014
|
+
props: propsDoc$1A,
|
|
5015
|
+
propTypes: propTypes$1D,
|
|
5011
5016
|
displayName: "SpsCardV2Footer"
|
|
5012
5017
|
});
|
|
5013
|
-
const propsDoc$
|
|
5014
|
-
const propTypes$
|
|
5018
|
+
const propsDoc$1z = {};
|
|
5019
|
+
const propTypes$1C = {};
|
|
5015
5020
|
function SpsCardV2Header(_g) {
|
|
5016
5021
|
var _h = _g, {
|
|
5017
5022
|
children,
|
|
@@ -5025,12 +5030,12 @@ function SpsCardV2Header(_g) {
|
|
|
5025
5030
|
}, rest), children);
|
|
5026
5031
|
}
|
|
5027
5032
|
Object.assign(SpsCardV2Header, {
|
|
5028
|
-
props: propsDoc$
|
|
5029
|
-
propTypes: propTypes$
|
|
5033
|
+
props: propsDoc$1z,
|
|
5034
|
+
propTypes: propTypes$1C,
|
|
5030
5035
|
displayName: "SpsCardV2Header"
|
|
5031
5036
|
});
|
|
5032
|
-
const propsDoc$
|
|
5033
|
-
const propTypes$
|
|
5037
|
+
const propsDoc$1y = {};
|
|
5038
|
+
const propTypes$1B = {};
|
|
5034
5039
|
function SpsCardV2(_i) {
|
|
5035
5040
|
var _j = _i, {
|
|
5036
5041
|
children,
|
|
@@ -5056,12 +5061,12 @@ function SpsCardV2(_i) {
|
|
|
5056
5061
|
}, bodyContent), footer);
|
|
5057
5062
|
}
|
|
5058
5063
|
Object.assign(SpsCardV2, {
|
|
5059
|
-
props: propsDoc$
|
|
5060
|
-
propTypes: propTypes$
|
|
5064
|
+
props: propsDoc$1y,
|
|
5065
|
+
propTypes: propTypes$1B,
|
|
5061
5066
|
displayName: "SpsCardV2"
|
|
5062
5067
|
});
|
|
5063
|
-
const propsDoc$
|
|
5064
|
-
const propTypes$
|
|
5068
|
+
const propsDoc$1x = {};
|
|
5069
|
+
const propTypes$1A = {};
|
|
5065
5070
|
function SpsCardV2Title(_k) {
|
|
5066
5071
|
var _l = _k, {
|
|
5067
5072
|
children,
|
|
@@ -5075,8 +5080,8 @@ function SpsCardV2Title(_k) {
|
|
|
5075
5080
|
}, rest), children);
|
|
5076
5081
|
}
|
|
5077
5082
|
Object.assign(SpsCardV2Title, {
|
|
5078
|
-
props: propsDoc$
|
|
5079
|
-
propTypes: propTypes$
|
|
5083
|
+
props: propsDoc$1x,
|
|
5084
|
+
propTypes: propTypes$1A,
|
|
5080
5085
|
displayName: "SpsCardV2Title"
|
|
5081
5086
|
});
|
|
5082
5087
|
const SpsCardExamples = {
|
|
@@ -5384,7 +5389,7 @@ const SpsCardExamples = {
|
|
|
5384
5389
|
}
|
|
5385
5390
|
}
|
|
5386
5391
|
};
|
|
5387
|
-
const propsDoc$
|
|
5392
|
+
const propsDoc$1w = {
|
|
5388
5393
|
checked: "boolean",
|
|
5389
5394
|
disabled: "boolean",
|
|
5390
5395
|
formMeta: "SpsFormFieldMeta<boolean>",
|
|
@@ -5393,14 +5398,14 @@ const propsDoc$1v = {
|
|
|
5393
5398
|
label: "string",
|
|
5394
5399
|
onChange: "ChangeEventHandler"
|
|
5395
5400
|
};
|
|
5396
|
-
const propTypes$
|
|
5397
|
-
checked: propTypes$
|
|
5398
|
-
disabled: propTypes$
|
|
5401
|
+
const propTypes$1z = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
5402
|
+
checked: propTypes$1M.exports.bool,
|
|
5403
|
+
disabled: propTypes$1M.exports.bool,
|
|
5399
5404
|
formControl: impl(),
|
|
5400
5405
|
formMeta: impl(),
|
|
5401
|
-
indeterminate: propTypes$
|
|
5402
|
-
inline: propTypes$
|
|
5403
|
-
label: propTypes$
|
|
5406
|
+
indeterminate: propTypes$1M.exports.bool,
|
|
5407
|
+
inline: propTypes$1M.exports.bool,
|
|
5408
|
+
label: propTypes$1M.exports.string,
|
|
5404
5409
|
onChange: fun()
|
|
5405
5410
|
});
|
|
5406
5411
|
function SpsCheckbox(_m) {
|
|
@@ -5475,8 +5480,8 @@ function SpsCheckbox(_m) {
|
|
|
5475
5480
|
}, label || ""));
|
|
5476
5481
|
}
|
|
5477
5482
|
Object.assign(SpsCheckbox, {
|
|
5478
|
-
props: propsDoc$
|
|
5479
|
-
propTypes: propTypes$
|
|
5483
|
+
props: propsDoc$1w,
|
|
5484
|
+
propTypes: propTypes$1z,
|
|
5480
5485
|
displayName: "SpsCheckbox"
|
|
5481
5486
|
});
|
|
5482
5487
|
const SpsCheckboxExamples = {
|
|
@@ -5604,16 +5609,16 @@ const SpsCheckboxExamples = {
|
|
|
5604
5609
|
}
|
|
5605
5610
|
}
|
|
5606
5611
|
};
|
|
5607
|
-
const propsDoc$
|
|
5612
|
+
const propsDoc$1v = {
|
|
5608
5613
|
disabled: "boolean",
|
|
5609
5614
|
href: "string",
|
|
5610
5615
|
kind: "ClickableTagKind",
|
|
5611
5616
|
onAdd: "() => void",
|
|
5612
5617
|
onRemove: "() => void"
|
|
5613
5618
|
};
|
|
5614
|
-
const propTypes$
|
|
5615
|
-
disabled: propTypes$
|
|
5616
|
-
href: propTypes$
|
|
5619
|
+
const propTypes$1y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
5620
|
+
disabled: propTypes$1M.exports.bool,
|
|
5621
|
+
href: propTypes$1M.exports.string,
|
|
5617
5622
|
kind: enumValue(ClickableTagKind),
|
|
5618
5623
|
onAdd: fun(),
|
|
5619
5624
|
onRemove: fun()
|
|
@@ -5684,8 +5689,8 @@ function SpsClickableTag(props2) {
|
|
|
5684
5689
|
})));
|
|
5685
5690
|
}
|
|
5686
5691
|
Object.assign(SpsClickableTag, {
|
|
5687
|
-
props: propsDoc$
|
|
5688
|
-
propTypes: propTypes$
|
|
5692
|
+
props: propsDoc$1v,
|
|
5693
|
+
propTypes: propTypes$1y,
|
|
5689
5694
|
displayName: "SpsClickableTag"
|
|
5690
5695
|
});
|
|
5691
5696
|
const SpsClickableTagExamples = {
|
|
@@ -13913,15 +13918,15 @@ var ConnectedDraggable = connect(makeMapStateToProps$1, mapDispatchToProps$1, nu
|
|
|
13913
13918
|
areStatePropsEqual: isStrictEqual
|
|
13914
13919
|
})(Draggable);
|
|
13915
13920
|
ConnectedDraggable.defaultProps = defaultProps$1;
|
|
13916
|
-
const propsDoc$
|
|
13921
|
+
const propsDoc$1u = {
|
|
13917
13922
|
content: "ReactNodeLike",
|
|
13918
13923
|
icon: "SpsIcon",
|
|
13919
13924
|
title: "string"
|
|
13920
13925
|
};
|
|
13921
|
-
const propTypes$
|
|
13922
|
-
content: propTypes$
|
|
13926
|
+
const propTypes$1x = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
13927
|
+
content: propTypes$1M.exports.node,
|
|
13923
13928
|
icon: enumValue(SpsIcon),
|
|
13924
|
-
title: propTypes$
|
|
13929
|
+
title: propTypes$1M.exports.string
|
|
13925
13930
|
});
|
|
13926
13931
|
function SpsCardHeader(props2) {
|
|
13927
13932
|
const _a = props2, {
|
|
@@ -13953,15 +13958,15 @@ function SpsCardHeader(props2) {
|
|
|
13953
13958
|
}, content));
|
|
13954
13959
|
}
|
|
13955
13960
|
Object.assign(SpsCardHeader, {
|
|
13956
|
-
props: propsDoc$
|
|
13957
|
-
propTypes: propTypes$
|
|
13961
|
+
props: propsDoc$1u,
|
|
13962
|
+
propTypes: propTypes$1x,
|
|
13958
13963
|
displayName: "SpsCardHeader"
|
|
13959
13964
|
});
|
|
13960
|
-
const propsDoc$
|
|
13965
|
+
const propsDoc$1t = {
|
|
13961
13966
|
icon: "SpsIcon",
|
|
13962
13967
|
kind: "TagKind"
|
|
13963
13968
|
};
|
|
13964
|
-
const propTypes$
|
|
13969
|
+
const propTypes$1w = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
13965
13970
|
icon: enumValue(SpsIcon),
|
|
13966
13971
|
kind: enumValue(TagKind)
|
|
13967
13972
|
});
|
|
@@ -13994,11 +13999,11 @@ function SpsTag(props2) {
|
|
|
13994
13999
|
}), children);
|
|
13995
14000
|
}
|
|
13996
14001
|
Object.assign(SpsTag, {
|
|
13997
|
-
props: propsDoc$
|
|
13998
|
-
propTypes: propTypes$
|
|
14002
|
+
props: propsDoc$1t,
|
|
14003
|
+
propTypes: propTypes$1w,
|
|
13999
14004
|
displayName: "SpsTag"
|
|
14000
14005
|
});
|
|
14001
|
-
const propsDoc$
|
|
14006
|
+
const propsDoc$1s = {
|
|
14002
14007
|
activateTab: "Function",
|
|
14003
14008
|
active: "boolean",
|
|
14004
14009
|
icon: "SpsIcon",
|
|
@@ -14008,13 +14013,13 @@ const propsDoc$1r = {
|
|
|
14008
14013
|
tagKind: "TagKind",
|
|
14009
14014
|
tagIcon: "SpsIcon"
|
|
14010
14015
|
};
|
|
14011
|
-
const propTypes$
|
|
14012
|
-
activateTab: propTypes$
|
|
14013
|
-
active: propTypes$
|
|
14016
|
+
const propTypes$1v = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14017
|
+
activateTab: propTypes$1M.exports.func,
|
|
14018
|
+
active: propTypes$1M.exports.bool,
|
|
14014
14019
|
icon: enumValue(SpsIcon),
|
|
14015
|
-
label: propTypes$
|
|
14016
|
-
index: propTypes$
|
|
14017
|
-
tag: propTypes$
|
|
14020
|
+
label: propTypes$1M.exports.string,
|
|
14021
|
+
index: propTypes$1M.exports.number,
|
|
14022
|
+
tag: propTypes$1M.exports.string,
|
|
14018
14023
|
tagKind: enumValue(TagKind),
|
|
14019
14024
|
tagIcon: enumValue(SpsIcon)
|
|
14020
14025
|
});
|
|
@@ -14077,8 +14082,8 @@ function SpsCardTabbedPane(props2) {
|
|
|
14077
14082
|
}, tag));
|
|
14078
14083
|
}
|
|
14079
14084
|
Object.assign(SpsCardTabbedPane, {
|
|
14080
|
-
props: propsDoc$
|
|
14081
|
-
propTypes: propTypes$
|
|
14085
|
+
props: propsDoc$1s,
|
|
14086
|
+
propTypes: propTypes$1v,
|
|
14082
14087
|
displayName: "SpsCardTabbedPane"
|
|
14083
14088
|
});
|
|
14084
14089
|
function useTab(children, activeTab, isTabbedCard) {
|
|
@@ -14120,19 +14125,19 @@ function useTab(children, activeTab, isTabbedCard) {
|
|
|
14120
14125
|
}, [activeTab, children]);
|
|
14121
14126
|
return [currentlyActiveTab, activateTab];
|
|
14122
14127
|
}
|
|
14123
|
-
const propsDoc$
|
|
14128
|
+
const propsDoc$1r = {
|
|
14124
14129
|
activeTab: "string",
|
|
14125
14130
|
footer: "ReactNodeOrRenderFn",
|
|
14126
14131
|
headerContent: "ReactNodeOrRenderFn",
|
|
14127
14132
|
headerIcon: "SpsIcon",
|
|
14128
14133
|
headerTitle: "string"
|
|
14129
14134
|
};
|
|
14130
|
-
const propTypes$
|
|
14131
|
-
activeTab: propTypes$
|
|
14135
|
+
const propTypes$1u = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14136
|
+
activeTab: propTypes$1M.exports.string,
|
|
14132
14137
|
footer: nodeOrRenderFn,
|
|
14133
14138
|
headerContent: nodeOrRenderFn,
|
|
14134
14139
|
headerIcon: enumValue(SpsIcon),
|
|
14135
|
-
headerTitle: propTypes$
|
|
14140
|
+
headerTitle: propTypes$1M.exports.string
|
|
14136
14141
|
});
|
|
14137
14142
|
function SpsCard(props2) {
|
|
14138
14143
|
React.useEffect(() => {
|
|
@@ -14199,11 +14204,11 @@ function SpsCard(props2) {
|
|
|
14199
14204
|
}, contentOf(footer)));
|
|
14200
14205
|
}
|
|
14201
14206
|
Object.assign(SpsCard, {
|
|
14202
|
-
props: propsDoc$
|
|
14203
|
-
propTypes: propTypes$
|
|
14207
|
+
props: propsDoc$1r,
|
|
14208
|
+
propTypes: propTypes$1u,
|
|
14204
14209
|
displayName: "SpsCard"
|
|
14205
14210
|
});
|
|
14206
|
-
const propsDoc$
|
|
14211
|
+
const propsDoc$1q = {
|
|
14207
14212
|
index: "number",
|
|
14208
14213
|
key: "string",
|
|
14209
14214
|
columnId: "string",
|
|
@@ -14212,14 +14217,14 @@ const propsDoc$1p = {
|
|
|
14212
14217
|
onDelete: "(columnValue: string) => void",
|
|
14213
14218
|
mandatory: "boolean"
|
|
14214
14219
|
};
|
|
14215
|
-
const propTypes$
|
|
14216
|
-
index: propTypes$
|
|
14217
|
-
key: propTypes$
|
|
14218
|
-
columnId: propTypes$
|
|
14219
|
-
name: propTypes$
|
|
14220
|
-
value: propTypes$
|
|
14220
|
+
const propTypes$1t = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14221
|
+
index: propTypes$1M.exports.number,
|
|
14222
|
+
key: propTypes$1M.exports.string,
|
|
14223
|
+
columnId: propTypes$1M.exports.string,
|
|
14224
|
+
name: propTypes$1M.exports.string,
|
|
14225
|
+
value: propTypes$1M.exports.string,
|
|
14221
14226
|
onDelete: fun(),
|
|
14222
|
-
mandatory: propTypes$
|
|
14227
|
+
mandatory: propTypes$1M.exports.bool
|
|
14223
14228
|
});
|
|
14224
14229
|
function SpsColumnChooserColumn(props2) {
|
|
14225
14230
|
const _a = props2, {
|
|
@@ -14275,20 +14280,20 @@ function SpsColumnChooserColumn(props2) {
|
|
|
14275
14280
|
})))));
|
|
14276
14281
|
}
|
|
14277
14282
|
Object.assign(SpsColumnChooserColumn, {
|
|
14278
|
-
props: propsDoc$
|
|
14279
|
-
propTypes: propTypes$
|
|
14283
|
+
props: propsDoc$1q,
|
|
14284
|
+
propTypes: propTypes$1t,
|
|
14280
14285
|
displayName: "SpsColumnChooserColumn"
|
|
14281
14286
|
});
|
|
14282
|
-
const propsDoc$
|
|
14287
|
+
const propsDoc$1p = {
|
|
14283
14288
|
maxSelectedColumns: "number",
|
|
14284
14289
|
unselectedColumns: "ColumnProps[]",
|
|
14285
14290
|
selectedColumns: "ColumnProps[]",
|
|
14286
14291
|
onApplyChanges: "(selectedColumns: ColumnProps[]) => void"
|
|
14287
14292
|
};
|
|
14288
|
-
const propTypes$
|
|
14289
|
-
maxSelectedColumns: propTypes$
|
|
14290
|
-
unselectedColumns: propTypes$
|
|
14291
|
-
selectedColumns: propTypes$
|
|
14293
|
+
const propTypes$1s = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14294
|
+
maxSelectedColumns: propTypes$1M.exports.number,
|
|
14295
|
+
unselectedColumns: propTypes$1M.exports.array,
|
|
14296
|
+
selectedColumns: propTypes$1M.exports.array,
|
|
14292
14297
|
onApplyChanges: fun()
|
|
14293
14298
|
});
|
|
14294
14299
|
function SpsColumnChooser(props2) {
|
|
@@ -14428,8 +14433,8 @@ function SpsColumnChooser(props2) {
|
|
|
14428
14433
|
})), provided.placeholder)))));
|
|
14429
14434
|
}
|
|
14430
14435
|
Object.assign(SpsColumnChooser, {
|
|
14431
|
-
props: propsDoc$
|
|
14432
|
-
propTypes: propTypes$
|
|
14436
|
+
props: propsDoc$1p,
|
|
14437
|
+
propTypes: propTypes$1s,
|
|
14433
14438
|
displayName: "SpsColumnChooser"
|
|
14434
14439
|
});
|
|
14435
14440
|
const SpsColumnChooserExamples = {
|
|
@@ -14461,11 +14466,11 @@ const SpsColumnChooserExamples = {
|
|
|
14461
14466
|
}
|
|
14462
14467
|
}
|
|
14463
14468
|
};
|
|
14464
|
-
const propsDoc$
|
|
14469
|
+
const propsDoc$1o = {
|
|
14465
14470
|
icon: { type: "SpsIcon", required: true },
|
|
14466
14471
|
size: "SpsIconSize"
|
|
14467
14472
|
};
|
|
14468
|
-
const propTypes$
|
|
14473
|
+
const propTypes$1r = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14469
14474
|
icon: enumValue(SpsIcon).isRequired,
|
|
14470
14475
|
size: enumValue(SpsIconSize)
|
|
14471
14476
|
});
|
|
@@ -14491,28 +14496,28 @@ function SpsI(props2) {
|
|
|
14491
14496
|
}, rest));
|
|
14492
14497
|
}
|
|
14493
14498
|
Object.assign(SpsI, {
|
|
14494
|
-
props: propsDoc$
|
|
14495
|
-
propTypes: propTypes$
|
|
14499
|
+
props: propsDoc$1o,
|
|
14500
|
+
propTypes: propTypes$1r,
|
|
14496
14501
|
displayName: "SpsI"
|
|
14497
14502
|
});
|
|
14498
14503
|
Object.assign(SpsI, {
|
|
14499
|
-
props: propsDoc$
|
|
14500
|
-
propTypes: propTypes$
|
|
14504
|
+
props: propsDoc$1o,
|
|
14505
|
+
propTypes: propTypes$1r,
|
|
14501
14506
|
displayName: "SpsI"
|
|
14502
14507
|
});
|
|
14503
|
-
const propsDoc$
|
|
14508
|
+
const propsDoc$1n = {
|
|
14504
14509
|
borderless: "boolean",
|
|
14505
14510
|
lean: "boolean",
|
|
14506
14511
|
leaner: { type: "boolean", deprecated: true },
|
|
14507
14512
|
widthPx: "number",
|
|
14508
14513
|
widthRem: "number"
|
|
14509
14514
|
};
|
|
14510
|
-
const propTypes$
|
|
14511
|
-
borderless: propTypes$
|
|
14512
|
-
lean: propTypes$
|
|
14513
|
-
leaner: propTypes$
|
|
14514
|
-
widthPx: propTypes$
|
|
14515
|
-
widthRem: propTypes$
|
|
14515
|
+
const propTypes$1q = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14516
|
+
borderless: propTypes$1M.exports.bool,
|
|
14517
|
+
lean: propTypes$1M.exports.bool,
|
|
14518
|
+
leaner: propTypes$1M.exports.bool,
|
|
14519
|
+
widthPx: propTypes$1M.exports.number,
|
|
14520
|
+
widthRem: propTypes$1M.exports.number
|
|
14516
14521
|
});
|
|
14517
14522
|
function SpsContentRowCol(props2) {
|
|
14518
14523
|
const _a = props2, {
|
|
@@ -14557,12 +14562,12 @@ function SpsContentRowCol(props2) {
|
|
|
14557
14562
|
}), children);
|
|
14558
14563
|
}
|
|
14559
14564
|
Object.assign(SpsContentRowCol, {
|
|
14560
|
-
props: propsDoc$
|
|
14561
|
-
propTypes: propTypes$
|
|
14565
|
+
props: propsDoc$1n,
|
|
14566
|
+
propTypes: propTypes$1q,
|
|
14562
14567
|
displayName: "SpsContentRowCol"
|
|
14563
14568
|
});
|
|
14564
|
-
const propsDoc$
|
|
14565
|
-
const propTypes$
|
|
14569
|
+
const propsDoc$1m = {};
|
|
14570
|
+
const propTypes$1p = __spreadValues({}, spsGlobalPropTypes);
|
|
14566
14571
|
function SpsContentRowExpansion(props2) {
|
|
14567
14572
|
const _a = props2, {
|
|
14568
14573
|
children,
|
|
@@ -14583,11 +14588,11 @@ function SpsContentRowExpansion(props2) {
|
|
|
14583
14588
|
}), children);
|
|
14584
14589
|
}
|
|
14585
14590
|
Object.assign(SpsContentRowExpansion, {
|
|
14586
|
-
props: propsDoc$
|
|
14587
|
-
propTypes: propTypes$
|
|
14591
|
+
props: propsDoc$1m,
|
|
14592
|
+
propTypes: propTypes$1p,
|
|
14588
14593
|
displayName: "SpsContentRowExpansion"
|
|
14589
14594
|
});
|
|
14590
|
-
const propsDoc$
|
|
14595
|
+
const propsDoc$1l = {
|
|
14591
14596
|
alternateLayout: "boolean",
|
|
14592
14597
|
initiallyExpanded: "boolean",
|
|
14593
14598
|
cardSpacing: "boolean",
|
|
@@ -14600,18 +14605,18 @@ const propsDoc$1k = {
|
|
|
14600
14605
|
selectable: "boolean",
|
|
14601
14606
|
selected: "boolean"
|
|
14602
14607
|
};
|
|
14603
|
-
const propTypes$
|
|
14604
|
-
alternateLayout: propTypes$
|
|
14605
|
-
cardSpacing: propTypes$
|
|
14606
|
-
expanded: propTypes$
|
|
14607
|
-
initiallyExpanded: propTypes$
|
|
14608
|
+
const propTypes$1o = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
14609
|
+
alternateLayout: propTypes$1M.exports.bool,
|
|
14610
|
+
cardSpacing: propTypes$1M.exports.bool,
|
|
14611
|
+
expanded: propTypes$1M.exports.bool,
|
|
14612
|
+
initiallyExpanded: propTypes$1M.exports.bool,
|
|
14608
14613
|
onBeforeCollapsed: fun(),
|
|
14609
14614
|
onBeforeExpanded: fun(),
|
|
14610
14615
|
onSelectionChange: fun(),
|
|
14611
14616
|
onCollapsed: fun(),
|
|
14612
14617
|
onExpanded: fun(),
|
|
14613
|
-
selectable: propTypes$
|
|
14614
|
-
selected: propTypes$
|
|
14618
|
+
selectable: propTypes$1M.exports.bool,
|
|
14619
|
+
selected: propTypes$1M.exports.bool
|
|
14615
14620
|
});
|
|
14616
14621
|
function SpsContentRow(props2) {
|
|
14617
14622
|
const _a = props2, {
|
|
@@ -14692,8 +14697,8 @@ function SpsContentRow(props2) {
|
|
|
14692
14697
|
}, /* @__PURE__ */ React.createElement("section", null, ContentRowCheckBox()), /* @__PURE__ */ React.createElement("section", null, ExpandoThingy())), columns), expansion);
|
|
14693
14698
|
}
|
|
14694
14699
|
Object.assign(SpsContentRow, {
|
|
14695
|
-
props: propsDoc$
|
|
14696
|
-
propTypes: propTypes$
|
|
14700
|
+
props: propsDoc$1l,
|
|
14701
|
+
propTypes: propTypes$1o,
|
|
14697
14702
|
displayName: "SpsContentRow"
|
|
14698
14703
|
});
|
|
14699
14704
|
const SpsContentRowExamples = {
|
|
@@ -15132,7 +15137,7 @@ const SpsContentRowExamples = {
|
|
|
15132
15137
|
}
|
|
15133
15138
|
}
|
|
15134
15139
|
};
|
|
15135
|
-
const moment$
|
|
15140
|
+
const moment$5 = moment$6.default || moment$6;
|
|
15136
15141
|
function newWeekArray$1() {
|
|
15137
15142
|
return new Array(7);
|
|
15138
15143
|
}
|
|
@@ -15157,12 +15162,12 @@ function generateWeeks$1(date2) {
|
|
|
15157
15162
|
return newWeeks;
|
|
15158
15163
|
}
|
|
15159
15164
|
function parse2(value) {
|
|
15160
|
-
return moment$
|
|
15165
|
+
return moment$5(`${value} 00:00:00`);
|
|
15161
15166
|
}
|
|
15162
15167
|
function weekOfMonth$1(date2) {
|
|
15163
15168
|
return Math.floor((date2.clone().date(1).day() + date2.date() - 1) / 7);
|
|
15164
15169
|
}
|
|
15165
|
-
const propsDoc$
|
|
15170
|
+
const propsDoc$1k = {
|
|
15166
15171
|
disabled: "boolean",
|
|
15167
15172
|
format: "string",
|
|
15168
15173
|
maxDate: "string",
|
|
@@ -15172,21 +15177,21 @@ const propsDoc$1j = {
|
|
|
15172
15177
|
placeholder: "string",
|
|
15173
15178
|
value: "string"
|
|
15174
15179
|
};
|
|
15175
|
-
const propTypes$
|
|
15176
|
-
disabled: propTypes$
|
|
15177
|
-
format: propTypes$
|
|
15178
|
-
maxDate: propTypes$
|
|
15179
|
-
minDate: propTypes$
|
|
15180
|
+
const propTypes$1n = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15181
|
+
disabled: propTypes$1M.exports.bool,
|
|
15182
|
+
format: propTypes$1M.exports.string,
|
|
15183
|
+
maxDate: propTypes$1M.exports.string,
|
|
15184
|
+
minDate: propTypes$1M.exports.string,
|
|
15180
15185
|
onChange: fun(),
|
|
15181
15186
|
onClickOutside: fun(),
|
|
15182
|
-
placeholder: propTypes$
|
|
15183
|
-
value: propTypes$
|
|
15187
|
+
placeholder: propTypes$1M.exports.string,
|
|
15188
|
+
value: propTypes$1M.exports.string
|
|
15184
15189
|
});
|
|
15185
15190
|
function SpsDatepicker(props2) {
|
|
15186
15191
|
const _a = props2, {
|
|
15187
15192
|
className,
|
|
15188
15193
|
disabled,
|
|
15189
|
-
format = moment$
|
|
15194
|
+
format = moment$5.localeData().longDateFormat("MM/DD/YYYY") || "MM/DD/YYYY",
|
|
15190
15195
|
maxDate,
|
|
15191
15196
|
minDate,
|
|
15192
15197
|
onChange,
|
|
@@ -15221,20 +15226,20 @@ function SpsDatepicker(props2) {
|
|
|
15221
15226
|
isInitialValue: true,
|
|
15222
15227
|
keyboardFocusDay: null,
|
|
15223
15228
|
text: "",
|
|
15224
|
-
minDateMoment: minDate ? moment$
|
|
15225
|
-
maxDateMoment: maxDate ? moment$
|
|
15229
|
+
minDateMoment: minDate ? moment$5(minDate) : {},
|
|
15230
|
+
maxDateMoment: maxDate ? moment$5(maxDate) : {}
|
|
15226
15231
|
});
|
|
15227
15232
|
function setCalendarView(displayMoment) {
|
|
15228
15233
|
let theMoment = displayMoment;
|
|
15229
15234
|
if (!displayMoment || !displayMoment.isValid()) {
|
|
15230
|
-
if (moment$
|
|
15235
|
+
if (moment$5.isMoment(state.currentValue) && state.currentValue.isValid()) {
|
|
15231
15236
|
theMoment = state.currentValue.clone();
|
|
15232
15237
|
} else if (minDate) {
|
|
15233
15238
|
theMoment = state.minDateMoment.clone();
|
|
15234
15239
|
} else if (maxDate) {
|
|
15235
15240
|
theMoment = state.maxDateMoment.clone();
|
|
15236
15241
|
} else {
|
|
15237
|
-
theMoment = moment$
|
|
15242
|
+
theMoment = moment$5();
|
|
15238
15243
|
}
|
|
15239
15244
|
}
|
|
15240
15245
|
const newView = theMoment.set({
|
|
@@ -15262,7 +15267,7 @@ function SpsDatepicker(props2) {
|
|
|
15262
15267
|
}
|
|
15263
15268
|
React.useEffect(() => {
|
|
15264
15269
|
document.addEventListener("mousedown", handleClickOutside);
|
|
15265
|
-
patchState({ weekdayNames: Object.freeze(moment$
|
|
15270
|
+
patchState({ weekdayNames: Object.freeze(moment$5.weekdaysShort()) });
|
|
15266
15271
|
setCalendarView(null);
|
|
15267
15272
|
return () => {
|
|
15268
15273
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
@@ -15280,7 +15285,7 @@ function SpsDatepicker(props2) {
|
|
|
15280
15285
|
}
|
|
15281
15286
|
}, [value]);
|
|
15282
15287
|
React.useEffect(() => {
|
|
15283
|
-
if (moment$
|
|
15288
|
+
if (moment$5.isMoment(state.view)) {
|
|
15284
15289
|
patchState({ weeks: generateWeeks$1(state.view) });
|
|
15285
15290
|
}
|
|
15286
15291
|
}, [state.view]);
|
|
@@ -15291,7 +15296,7 @@ function SpsDatepicker(props2) {
|
|
|
15291
15296
|
setCalendarView(state.view.add(1, "month"));
|
|
15292
15297
|
}
|
|
15293
15298
|
React.useEffect(() => {
|
|
15294
|
-
if (moment$
|
|
15299
|
+
if (moment$5.isMoment(state.keyboardFocusDay)) {
|
|
15295
15300
|
if (state.keyboardFocusDay.isBefore(state.view, "month")) {
|
|
15296
15301
|
viewPreviousMonth();
|
|
15297
15302
|
} else if (state.keyboardFocusDay.isAfter(state.view, "month")) {
|
|
@@ -15305,7 +15310,7 @@ function SpsDatepicker(props2) {
|
|
|
15305
15310
|
}
|
|
15306
15311
|
}, [state.isOpen]);
|
|
15307
15312
|
React.useEffect(() => {
|
|
15308
|
-
if (moment$
|
|
15313
|
+
if (moment$5.isMoment(state.currentValue)) {
|
|
15309
15314
|
setCalendarView(null);
|
|
15310
15315
|
}
|
|
15311
15316
|
if (onChange && typeof onChange === "function" && !state.isInitialValue) {
|
|
@@ -15341,7 +15346,7 @@ function SpsDatepicker(props2) {
|
|
|
15341
15346
|
currentValue: null,
|
|
15342
15347
|
isInitialValue: false
|
|
15343
15348
|
});
|
|
15344
|
-
setCalendarView(moment$
|
|
15349
|
+
setCalendarView(moment$5());
|
|
15345
15350
|
inputRef.current.value = "";
|
|
15346
15351
|
show();
|
|
15347
15352
|
inputRef.current.focus();
|
|
@@ -15350,17 +15355,17 @@ function SpsDatepicker(props2) {
|
|
|
15350
15355
|
return date2 && (minDate && state.minDateMoment.isAfter(date2, "day")) || maxDate && state.maxDateMoment.isBefore(date2, "day");
|
|
15351
15356
|
}
|
|
15352
15357
|
function updateText(newValue) {
|
|
15353
|
-
inputRef.current.value = moment$
|
|
15358
|
+
inputRef.current.value = moment$5.isMoment(newValue) ? newValue.format(format) : "";
|
|
15354
15359
|
}
|
|
15355
15360
|
function selectDate(date2) {
|
|
15356
15361
|
if (date2 && !dateIsDisabled(date2)) {
|
|
15357
15362
|
let val;
|
|
15358
|
-
if (state.currentValue && moment$
|
|
15363
|
+
if (state.currentValue && moment$5.isMoment(date2)) {
|
|
15359
15364
|
val = date2.clone();
|
|
15360
|
-
} else if (state.currentValue && moment$
|
|
15365
|
+
} else if (state.currentValue && moment$5.isMoment(state.currentValue)) {
|
|
15361
15366
|
val = state.currentValue.clone().set(date2);
|
|
15362
15367
|
} else {
|
|
15363
|
-
val = moment$
|
|
15368
|
+
val = moment$5(date2);
|
|
15364
15369
|
}
|
|
15365
15370
|
updateText(val);
|
|
15366
15371
|
patchState({
|
|
@@ -15373,10 +15378,10 @@ function SpsDatepicker(props2) {
|
|
|
15373
15378
|
}
|
|
15374
15379
|
}
|
|
15375
15380
|
function dateIsSelected(date2) {
|
|
15376
|
-
return date2 && moment$
|
|
15381
|
+
return date2 && moment$5.isMoment(state.currentValue) && state.currentValue.isValid() && state.currentValue.isSame(date2, "day");
|
|
15377
15382
|
}
|
|
15378
15383
|
function dateIsFocused(date2) {
|
|
15379
|
-
return date2 && moment$
|
|
15384
|
+
return date2 && moment$5.isMoment(state.keyboardFocusDay) && state.keyboardFocusDay.isSame(date2, "day");
|
|
15380
15385
|
}
|
|
15381
15386
|
function onKeyDown(event) {
|
|
15382
15387
|
switch (event.key) {
|
|
@@ -15384,7 +15389,7 @@ function SpsDatepicker(props2) {
|
|
|
15384
15389
|
case "ArrowUp":
|
|
15385
15390
|
if (state.keyboardFocusDay) {
|
|
15386
15391
|
event.preventDefault();
|
|
15387
|
-
const newFocusDay = weekOfMonth$1(state.keyboardFocusDay) === 0 ? null : moment$
|
|
15392
|
+
const newFocusDay = weekOfMonth$1(state.keyboardFocusDay) === 0 ? null : moment$5.max(state.keyboardFocusDay.clone().subtract(1, "week"), state.keyboardFocusDay.date(1));
|
|
15388
15393
|
patchState({ keyboardFocusDay: newFocusDay });
|
|
15389
15394
|
if (!newFocusDay) {
|
|
15390
15395
|
inputRef.current.focus();
|
|
@@ -15397,10 +15402,10 @@ function SpsDatepicker(props2) {
|
|
|
15397
15402
|
if (!state.isOpen) {
|
|
15398
15403
|
show();
|
|
15399
15404
|
}
|
|
15400
|
-
if (moment$
|
|
15401
|
-
const newFocusDay = moment$
|
|
15405
|
+
if (moment$5.isMoment(state.keyboardFocusDay)) {
|
|
15406
|
+
const newFocusDay = moment$5.min(state.keyboardFocusDay.clone().add(1, "week"), state.keyboardFocusDay.date(state.keyboardFocusDay.daysInMonth()));
|
|
15402
15407
|
patchState({ keyboardFocusDay: newFocusDay });
|
|
15403
|
-
} else if (moment$
|
|
15408
|
+
} else if (moment$5.isMoment(state.view)) {
|
|
15404
15409
|
patchState({ keyboardFocusDay: state.view.clone() });
|
|
15405
15410
|
}
|
|
15406
15411
|
break;
|
|
@@ -15411,7 +15416,7 @@ function SpsDatepicker(props2) {
|
|
|
15411
15416
|
let newFocusDay;
|
|
15412
15417
|
if (state.keyboardFocusDay.day() === 0 || state.keyboardFocusDay.date() === 1) {
|
|
15413
15418
|
const week = weekOfMonth$1(state.keyboardFocusDay);
|
|
15414
|
-
newFocusDay = week ? moment$
|
|
15419
|
+
newFocusDay = week ? moment$5.min(state.keyboardFocusDay.clone().add(week, "weeks"), state.keyboardFocusDay.date(state.keyboardFocusDay.daysInMonth())) : state.keyboardFocusDay.subtract(1, "month").date(1).day(6);
|
|
15415
15420
|
} else {
|
|
15416
15421
|
newFocusDay = state.keyboardFocusDay.clone().subtract(1, "day");
|
|
15417
15422
|
}
|
|
@@ -15425,7 +15430,7 @@ function SpsDatepicker(props2) {
|
|
|
15425
15430
|
let newFocusDay;
|
|
15426
15431
|
if (state.keyboardFocusDay.day() === 6 || state.keyboardFocusDay.date() === state.keyboardFocusDay.daysInMonth()) {
|
|
15427
15432
|
const week = weekOfMonth$1(state.keyboardFocusDay);
|
|
15428
|
-
newFocusDay = week ? moment$
|
|
15433
|
+
newFocusDay = week ? moment$5.min(state.keyboardFocusDay.clone().add(week, "weeks").day(0), state.keyboardFocusDay.date(state.keyboardFocusDay.daysInMonth()).day(0)) : state.keyboardFocusDay.add(1, "month").date(1);
|
|
15429
15434
|
} else {
|
|
15430
15435
|
newFocusDay = state.keyboardFocusDay.clone().add(1, "day");
|
|
15431
15436
|
}
|
|
@@ -15508,9 +15513,9 @@ function SpsDatepicker(props2) {
|
|
|
15508
15513
|
className: "sps-datepicker__calendar-head-label"
|
|
15509
15514
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
15510
15515
|
className: "sps-datepicker__calendar-head-label-month"
|
|
15511
|
-
}, moment$
|
|
15516
|
+
}, moment$5.isMoment(state.view) ? state.view.format("MMMM") : ""), /* @__PURE__ */ React.createElement("span", {
|
|
15512
15517
|
className: "sps-datepicker__calendar-head-label-year"
|
|
15513
|
-
}, moment$
|
|
15518
|
+
}, moment$5.isMoment(state.view) ? state.view.year() : "")), /* @__PURE__ */ React.createElement("a", {
|
|
15514
15519
|
className: "sps-datepicker__button sps-datepicker__button-next-month",
|
|
15515
15520
|
onClick: viewNextMonth
|
|
15516
15521
|
}, /* @__PURE__ */ React.createElement("i", {
|
|
@@ -15543,8 +15548,8 @@ function SpsDatepicker(props2) {
|
|
|
15543
15548
|
}))));
|
|
15544
15549
|
}
|
|
15545
15550
|
Object.assign(SpsDatepicker, {
|
|
15546
|
-
props: propsDoc$
|
|
15547
|
-
propTypes: propTypes$
|
|
15551
|
+
props: propsDoc$1k,
|
|
15552
|
+
propTypes: propTypes$1n,
|
|
15548
15553
|
displayName: "SpsDatepicker"
|
|
15549
15554
|
});
|
|
15550
15555
|
const SpsDatepickerExamples = {
|
|
@@ -15639,7 +15644,7 @@ const SpsDatepickerExamples = {
|
|
|
15639
15644
|
}
|
|
15640
15645
|
}
|
|
15641
15646
|
};
|
|
15642
|
-
const propsDoc$
|
|
15647
|
+
const propsDoc$1j = {
|
|
15643
15648
|
placeholder: "string",
|
|
15644
15649
|
disabled: "boolean",
|
|
15645
15650
|
format: "string",
|
|
@@ -15650,13 +15655,13 @@ const propsDoc$1i = {
|
|
|
15650
15655
|
value: "MomentRange",
|
|
15651
15656
|
preset: "Duration"
|
|
15652
15657
|
};
|
|
15653
|
-
const propTypes$
|
|
15654
|
-
placeholder: propTypes$
|
|
15655
|
-
disabled: propTypes$
|
|
15656
|
-
format: propTypes$
|
|
15657
|
-
minDate: propTypes$
|
|
15658
|
-
maxDate: propTypes$
|
|
15659
|
-
availablePresets: propTypes$
|
|
15658
|
+
const propTypes$1m = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
15659
|
+
placeholder: propTypes$1M.exports.string,
|
|
15660
|
+
disabled: propTypes$1M.exports.bool,
|
|
15661
|
+
format: propTypes$1M.exports.string,
|
|
15662
|
+
minDate: propTypes$1M.exports.string,
|
|
15663
|
+
maxDate: propTypes$1M.exports.string,
|
|
15664
|
+
availablePresets: propTypes$1M.exports.array,
|
|
15660
15665
|
onChange: fun(),
|
|
15661
15666
|
value: impl(),
|
|
15662
15667
|
preset: impl()
|
|
@@ -15664,7 +15669,7 @@ const propTypes$1l = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
|
15664
15669
|
function weekOfMonth(mmt) {
|
|
15665
15670
|
return Math.floor((mmt.clone().date(1).day() + mmt.date() - 1) / 7);
|
|
15666
15671
|
}
|
|
15667
|
-
const moment$
|
|
15672
|
+
const moment$4 = moment$6.default || moment$6;
|
|
15668
15673
|
const defaultPresets = [
|
|
15669
15674
|
{ days: 1 },
|
|
15670
15675
|
{ days: 7 },
|
|
@@ -15672,7 +15677,7 @@ const defaultPresets = [
|
|
|
15672
15677
|
{ days: 60 },
|
|
15673
15678
|
{ days: 90 },
|
|
15674
15679
|
{ years: 1 }
|
|
15675
|
-
].map(moment$
|
|
15680
|
+
].map(moment$4.duration);
|
|
15676
15681
|
const _positioningService = new PositioningService();
|
|
15677
15682
|
let idNum = 0;
|
|
15678
15683
|
function SpsDateRangePicker(props2) {
|
|
@@ -15680,7 +15685,7 @@ function SpsDateRangePicker(props2) {
|
|
|
15680
15685
|
className,
|
|
15681
15686
|
placeholder = "MM/DD/YYYY - MM/DD/YYYY",
|
|
15682
15687
|
disabled,
|
|
15683
|
-
format = moment$
|
|
15688
|
+
format = moment$4.localeData().longDateFormat("MM/DD/YYYY") || "MM/DD/YYYY",
|
|
15684
15689
|
maxDate,
|
|
15685
15690
|
minDate,
|
|
15686
15691
|
availablePresets,
|
|
@@ -15712,14 +15717,14 @@ function SpsDateRangePicker(props2) {
|
|
|
15712
15717
|
const [mouseoverRange, setMouseoverRange] = React.useState(null);
|
|
15713
15718
|
const [selectMode, setSelectMode] = React.useState(SelectMode.START);
|
|
15714
15719
|
const [keyboardFocusDay, setKeyboardFocusDay] = React.useState();
|
|
15715
|
-
const [minDateMoment, setMinDateMoment] = React.useState(minDate ? moment$
|
|
15716
|
-
const [maxDateMoment, setMaxDateMoment] = React.useState(maxDate ? moment$
|
|
15720
|
+
const [minDateMoment, setMinDateMoment] = React.useState(minDate ? moment$4(minDate) : {});
|
|
15721
|
+
const [maxDateMoment, setMaxDateMoment] = React.useState(maxDate ? moment$4(maxDate) : {});
|
|
15717
15722
|
const [isInitialValue, setIsInitialValue] = React.useState(true);
|
|
15718
15723
|
const [months, setMonths] = React.useState(null);
|
|
15719
15724
|
const inputElement = React.useRef(null);
|
|
15720
15725
|
const calendar = React.useRef(null);
|
|
15721
15726
|
const dateRange2 = React.useRef(null);
|
|
15722
|
-
const weekDayNames = Object.freeze(moment$
|
|
15727
|
+
const weekDayNames = Object.freeze(moment$4.weekdaysShort());
|
|
15723
15728
|
let leftAligned = false;
|
|
15724
15729
|
const _idNum = idNum++;
|
|
15725
15730
|
const textRef = React.useRef();
|
|
@@ -15798,7 +15803,7 @@ function SpsDateRangePicker(props2) {
|
|
|
15798
15803
|
} else if (maxDate) {
|
|
15799
15804
|
displayMoment = maxDateMoment.clone();
|
|
15800
15805
|
} else {
|
|
15801
|
-
displayMoment = moment$
|
|
15806
|
+
displayMoment = moment$4();
|
|
15802
15807
|
}
|
|
15803
15808
|
displayMoment.startOf("month");
|
|
15804
15809
|
const viewStart = displayMoment.clone().subtract(1, "month");
|
|
@@ -15818,7 +15823,7 @@ function SpsDateRangePicker(props2) {
|
|
|
15818
15823
|
const updatePresets = () => {
|
|
15819
15824
|
if (availablePresets) {
|
|
15820
15825
|
const psts = availablePresets;
|
|
15821
|
-
const today = moment$
|
|
15826
|
+
const today = moment$4();
|
|
15822
15827
|
const todayIsAllowed = !dateIsDisabled(today);
|
|
15823
15828
|
const t2 = psts.filter((pst) => todayIsAllowed && !dateIsDisabled(today.subtract(pst)));
|
|
15824
15829
|
setPreset(t2);
|
|
@@ -15837,7 +15842,7 @@ function SpsDateRangePicker(props2) {
|
|
|
15837
15842
|
}, []);
|
|
15838
15843
|
const matchPreset = (newPreset) => {
|
|
15839
15844
|
if (presets && newPreset) {
|
|
15840
|
-
const match2 = presets.find((pst) => pst.asMilliseconds() === moment$
|
|
15845
|
+
const match2 = presets.find((pst) => pst.asMilliseconds() === moment$4.duration(newPreset).asMilliseconds());
|
|
15841
15846
|
return match2;
|
|
15842
15847
|
}
|
|
15843
15848
|
return void 0;
|
|
@@ -15847,7 +15852,7 @@ function SpsDateRangePicker(props2) {
|
|
|
15847
15852
|
let newValue;
|
|
15848
15853
|
if (matchedPreset) {
|
|
15849
15854
|
setSelectedPreset(matchedPreset);
|
|
15850
|
-
const today = moment$
|
|
15855
|
+
const today = moment$4();
|
|
15851
15856
|
newValue = {
|
|
15852
15857
|
preset: matchedPreset,
|
|
15853
15858
|
start: today.clone().subtract(matchedPreset).add(1, "day").startOf("day"),
|
|
@@ -15879,13 +15884,13 @@ function SpsDateRangePicker(props2) {
|
|
|
15879
15884
|
}
|
|
15880
15885
|
}, [currentValue]);
|
|
15881
15886
|
React.useEffect(() => {
|
|
15882
|
-
setMinDateMoment(moment$
|
|
15887
|
+
setMinDateMoment(moment$4(minDate).add(1, "day"));
|
|
15883
15888
|
}, [minDate]);
|
|
15884
15889
|
React.useEffect(() => {
|
|
15885
15890
|
updatePresets();
|
|
15886
15891
|
}, [minDate, maxDate]);
|
|
15887
15892
|
React.useEffect(() => {
|
|
15888
|
-
setMaxDateMoment(moment$
|
|
15893
|
+
setMaxDateMoment(moment$4(maxDate).add(1, "day"));
|
|
15889
15894
|
}, [maxDate]);
|
|
15890
15895
|
React.useEffect(() => {
|
|
15891
15896
|
setTimeout(() => {
|
|
@@ -15893,8 +15898,8 @@ function SpsDateRangePicker(props2) {
|
|
|
15893
15898
|
updateFromPreset(selectedPreset);
|
|
15894
15899
|
}
|
|
15895
15900
|
if (preset2) {
|
|
15896
|
-
setSelectedPreset(moment$
|
|
15897
|
-
updateFromPreset(moment$
|
|
15901
|
+
setSelectedPreset(moment$4.duration(preset2));
|
|
15902
|
+
updateFromPreset(moment$4.duration(preset2));
|
|
15898
15903
|
}
|
|
15899
15904
|
}, 0);
|
|
15900
15905
|
}, [presets]);
|
|
@@ -15932,9 +15937,9 @@ function SpsDateRangePicker(props2) {
|
|
|
15932
15937
|
} else {
|
|
15933
15938
|
[startStr, endStr] = split;
|
|
15934
15939
|
const startDateStr = startStr ? startStr.trim().split("/") : [];
|
|
15935
|
-
start = moment$
|
|
15940
|
+
start = moment$4({ year: parseInt(startDateStr[2], 10), month: parseInt(startDateStr[0], 10) - 1, day: parseInt(startDateStr[1], 10) });
|
|
15936
15941
|
const endDateStr = endStr ? endStr.trim().split("/") : [];
|
|
15937
|
-
end2 = moment$
|
|
15942
|
+
end2 = moment$4({ year: parseInt(endDateStr[2], 10), month: parseInt(endDateStr[0], 10) - 1, day: parseInt(endDateStr[1], 10) });
|
|
15938
15943
|
}
|
|
15939
15944
|
return {
|
|
15940
15945
|
start,
|
|
@@ -15958,7 +15963,7 @@ function SpsDateRangePicker(props2) {
|
|
|
15958
15963
|
return `Last ${pst.humanize().replace("a ", "")}`;
|
|
15959
15964
|
};
|
|
15960
15965
|
const dateIsSelected = (date2) => date2 && currentValue && (currentValue.start && currentValue.start.isSame(date2, "day") || currentValue.end && currentValue.end.isSame(date2, "day") || currentValue.start && currentValue.end && currentValue.start.isBefore(date2, "day") && currentValue.end.isAfter(date2, "day"));
|
|
15961
|
-
const dateIsFocused = (date2) => date2 && keyboardFocusDay && moment$
|
|
15966
|
+
const dateIsFocused = (date2) => date2 && keyboardFocusDay && moment$4.isMoment(keyboardFocusDay) && keyboardFocusDay.isSame(date2, "day");
|
|
15962
15967
|
const dateIsSelectionStart = (date2) => date2 && currentValue && currentValue.start && currentValue.start.isSame(date2, "day") && currentValue.end && !currentValue.end.isSame(date2, "day");
|
|
15963
15968
|
const dateIsSelectionMiddle = (date2) => date2 && currentValue && currentValue.start && currentValue.start.isBefore(date2, "day") && currentValue.end && currentValue.end.isAfter(date2, "day");
|
|
15964
15969
|
const dateIsSelectionEnd = (date2) => date2 && currentValue && currentValue.start && !currentValue.start.isSame(date2, "day") && currentValue.end && currentValue.end.isSame(date2, "day");
|
|
@@ -16007,7 +16012,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16007
16012
|
if (event && event.target) {
|
|
16008
16013
|
try {
|
|
16009
16014
|
const date2 = JSON.parse(event.target.getAttribute("data-date"));
|
|
16010
|
-
selectDate(moment$
|
|
16015
|
+
selectDate(moment$4(date2));
|
|
16011
16016
|
} catch (ignore) {
|
|
16012
16017
|
}
|
|
16013
16018
|
}
|
|
@@ -16027,7 +16032,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16027
16032
|
const onCalendarMouseover = (event) => {
|
|
16028
16033
|
try {
|
|
16029
16034
|
const date2 = JSON.parse(event.target.getAttribute("data-date"));
|
|
16030
|
-
updateMouseoverRange(moment$
|
|
16035
|
+
updateMouseoverRange(moment$4(date2));
|
|
16031
16036
|
} catch (ignore) {
|
|
16032
16037
|
}
|
|
16033
16038
|
};
|
|
@@ -16100,7 +16105,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16100
16105
|
open();
|
|
16101
16106
|
}
|
|
16102
16107
|
if (keyboardFocusDay) {
|
|
16103
|
-
newKeyboardFocusDay = moment$
|
|
16108
|
+
newKeyboardFocusDay = moment$4.min(keyboardFocusDay.clone().add(1, "week"), keyboardFocusDay.date(keyboardFocusDay.daysInMonth()));
|
|
16104
16109
|
setKeyboardFocusDay(newKeyboardFocusDay);
|
|
16105
16110
|
} else {
|
|
16106
16111
|
focusCalendar();
|
|
@@ -16116,7 +16121,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16116
16121
|
setKeyboardFocusDay(null);
|
|
16117
16122
|
inputElement.current.focus();
|
|
16118
16123
|
} else {
|
|
16119
|
-
newKeyboardFocusDay = moment$
|
|
16124
|
+
newKeyboardFocusDay = moment$4.max(keyboardFocusDay.clone().subtract(1, "week"), keyboardFocusDay.date(1));
|
|
16120
16125
|
setKeyboardFocusDay(newKeyboardFocusDay);
|
|
16121
16126
|
}
|
|
16122
16127
|
}
|
|
@@ -16130,7 +16135,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16130
16135
|
const week = weekOfMonth(keyboardFocusDay);
|
|
16131
16136
|
keyboardFocusDay.subtract(1, "month").date(1).day(6);
|
|
16132
16137
|
if (week) {
|
|
16133
|
-
newKeyboardFocusDay = moment$
|
|
16138
|
+
newKeyboardFocusDay = moment$4.min(keyboardFocusDay.clone().add(week, "weeks"), keyboardFocusDay.date(keyboardFocusDay.daysInMonth()));
|
|
16134
16139
|
setKeyboardFocusDay(newKeyboardFocusDay);
|
|
16135
16140
|
}
|
|
16136
16141
|
} else {
|
|
@@ -16148,7 +16153,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16148
16153
|
const week = weekOfMonth(keyboardFocusDay);
|
|
16149
16154
|
keyboardFocusDay.add(1, "month").date(1);
|
|
16150
16155
|
if (week) {
|
|
16151
|
-
newKeyboardFocusDay = moment$
|
|
16156
|
+
newKeyboardFocusDay = moment$4.min(keyboardFocusDay.clone().add(week, "weeks").day(0), keyboardFocusDay.date(keyboardFocusDay.daysInMonth()).day(0));
|
|
16152
16157
|
setKeyboardFocusDay(newKeyboardFocusDay);
|
|
16153
16158
|
}
|
|
16154
16159
|
} else {
|
|
@@ -16165,7 +16170,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16165
16170
|
break;
|
|
16166
16171
|
case "Esc":
|
|
16167
16172
|
case "Escape":
|
|
16168
|
-
if (keyboardFocusDay && moment$
|
|
16173
|
+
if (keyboardFocusDay && moment$4.isMoment(keyboardFocusDay)) {
|
|
16169
16174
|
setKeyboardFocusDay(null);
|
|
16170
16175
|
inputElement.current.focus();
|
|
16171
16176
|
} else {
|
|
@@ -16176,7 +16181,7 @@ function SpsDateRangePicker(props2) {
|
|
|
16176
16181
|
}
|
|
16177
16182
|
break;
|
|
16178
16183
|
}
|
|
16179
|
-
if (keyboardFocusDay && moment$
|
|
16184
|
+
if (keyboardFocusDay && moment$4.isMoment(keyboardFocusDay)) {
|
|
16180
16185
|
if (keyboardFocusDay.isBefore(view.start, "month")) {
|
|
16181
16186
|
viewPreviousMonth();
|
|
16182
16187
|
} else if (keyboardFocusDay.isAfter(view.end, "month")) {
|
|
@@ -16304,8 +16309,8 @@ function SpsDateRangePicker(props2) {
|
|
|
16304
16309
|
}) : "")));
|
|
16305
16310
|
}
|
|
16306
16311
|
Object.assign(SpsDateRangePicker, {
|
|
16307
|
-
props: propsDoc$
|
|
16308
|
-
propTypes: propTypes$
|
|
16312
|
+
props: propsDoc$1j,
|
|
16313
|
+
propTypes: propTypes$1m,
|
|
16309
16314
|
displayName: "SpsDateRangePicker"
|
|
16310
16315
|
});
|
|
16311
16316
|
const SpsDateRangePickerExamples = {
|
|
@@ -16429,7 +16434,7 @@ const SpsDateRangePickerExamples = {
|
|
|
16429
16434
|
])
|
|
16430
16435
|
const { formValue, formMeta, updateForm } = useSpsForm(
|
|
16431
16436
|
{
|
|
16432
|
-
dateRange: presets.current[0],
|
|
16437
|
+
dateRange: SimpleDateUtils.createRangeFromPreset(presets.current[0]),
|
|
16433
16438
|
},
|
|
16434
16439
|
{
|
|
16435
16440
|
dateRange: [SpsValidators.dateRange],
|
|
@@ -16454,7 +16459,7 @@ const SpsDateRangePickerExamples = {
|
|
|
16454
16459
|
}
|
|
16455
16460
|
}
|
|
16456
16461
|
};
|
|
16457
|
-
var moment$
|
|
16462
|
+
var moment$3 = { exports: {} };
|
|
16458
16463
|
(function(module, exports) {
|
|
16459
16464
|
(function(global2, factory) {
|
|
16460
16465
|
module.exports = factory();
|
|
@@ -20144,10 +20149,10 @@ var moment$4 = { exports: {} };
|
|
|
20144
20149
|
};
|
|
20145
20150
|
return hooks;
|
|
20146
20151
|
});
|
|
20147
|
-
})(moment$
|
|
20152
|
+
})(moment$3);
|
|
20148
20153
|
(function(module, exports) {
|
|
20149
20154
|
(function(global2, factory) {
|
|
20150
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20155
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20151
20156
|
})(commonjsGlobal, function(moment2) {
|
|
20152
20157
|
//! moment.js locale configuration
|
|
20153
20158
|
var enAu = moment2.defineLocale("en-au", {
|
|
@@ -20203,7 +20208,7 @@ var moment$4 = { exports: {} };
|
|
|
20203
20208
|
})();
|
|
20204
20209
|
(function(module, exports) {
|
|
20205
20210
|
(function(global2, factory) {
|
|
20206
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20211
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20207
20212
|
})(commonjsGlobal, function(moment2) {
|
|
20208
20213
|
//! moment.js locale configuration
|
|
20209
20214
|
var enCa = moment2.defineLocale("en-ca", {
|
|
@@ -20255,7 +20260,7 @@ var moment$4 = { exports: {} };
|
|
|
20255
20260
|
})();
|
|
20256
20261
|
(function(module, exports) {
|
|
20257
20262
|
(function(global2, factory) {
|
|
20258
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20263
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20259
20264
|
})(commonjsGlobal, function(moment2) {
|
|
20260
20265
|
//! moment.js locale configuration
|
|
20261
20266
|
var enIe = moment2.defineLocale("en-ie", {
|
|
@@ -20311,7 +20316,7 @@ var moment$4 = { exports: {} };
|
|
|
20311
20316
|
})();
|
|
20312
20317
|
(function(module, exports) {
|
|
20313
20318
|
(function(global2, factory) {
|
|
20314
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20319
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20315
20320
|
})(commonjsGlobal, function(moment2) {
|
|
20316
20321
|
//! moment.js locale configuration
|
|
20317
20322
|
var enGb = moment2.defineLocale("en-gb", {
|
|
@@ -20367,7 +20372,7 @@ var moment$4 = { exports: {} };
|
|
|
20367
20372
|
})();
|
|
20368
20373
|
(function(module, exports) {
|
|
20369
20374
|
(function(global2, factory) {
|
|
20370
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20375
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20371
20376
|
})(commonjsGlobal, function(moment2) {
|
|
20372
20377
|
//! moment.js locale configuration
|
|
20373
20378
|
var frCa = moment2.defineLocale("fr-ca", {
|
|
@@ -20431,7 +20436,7 @@ var moment$4 = { exports: {} };
|
|
|
20431
20436
|
})();
|
|
20432
20437
|
(function(module, exports) {
|
|
20433
20438
|
(function(global2, factory) {
|
|
20434
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20439
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20435
20440
|
})(commonjsGlobal, function(moment2) {
|
|
20436
20441
|
//! moment.js locale configuration
|
|
20437
20442
|
var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, monthsParse = [
|
|
@@ -20522,7 +20527,7 @@ var moment$4 = { exports: {} };
|
|
|
20522
20527
|
})();
|
|
20523
20528
|
(function(module, exports) {
|
|
20524
20529
|
(function(global2, factory) {
|
|
20525
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20530
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20526
20531
|
})(commonjsGlobal, function(moment2) {
|
|
20527
20532
|
//! moment.js locale configuration
|
|
20528
20533
|
var monthsShortDot = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), monthsShort = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"), monthsParse = [
|
|
@@ -20618,7 +20623,7 @@ var moment$4 = { exports: {} };
|
|
|
20618
20623
|
})();
|
|
20619
20624
|
(function(module, exports) {
|
|
20620
20625
|
(function(global2, factory) {
|
|
20621
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20626
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20622
20627
|
})(commonjsGlobal, function(moment2) {
|
|
20623
20628
|
//! moment.js locale configuration
|
|
20624
20629
|
var zhCn = moment2.defineLocale("zh-cn", {
|
|
@@ -20732,7 +20737,7 @@ var moment$4 = { exports: {} };
|
|
|
20732
20737
|
})();
|
|
20733
20738
|
(function(module, exports) {
|
|
20734
20739
|
(function(global2, factory) {
|
|
20735
|
-
typeof commonjsRequire === "function" ? factory(moment$
|
|
20740
|
+
typeof commonjsRequire === "function" ? factory(moment$3.exports) : factory(global2.moment);
|
|
20736
20741
|
})(commonjsGlobal, function(moment2) {
|
|
20737
20742
|
//! moment.js locale configuration
|
|
20738
20743
|
var zhTw = moment2.defineLocale("zh-tw", {
|
|
@@ -20908,7 +20913,7 @@ const formatMaps = {
|
|
|
20908
20913
|
LONG_FULLDATETIME: "LLLL",
|
|
20909
20914
|
LONG_FULLDATETIME_ZONE: "LLLL z"
|
|
20910
20915
|
};
|
|
20911
|
-
const propsDoc$
|
|
20916
|
+
const propsDoc$1i = {
|
|
20912
20917
|
currentUser: "any",
|
|
20913
20918
|
dateToFormat: "string | Date",
|
|
20914
20919
|
format: "string",
|
|
@@ -20917,17 +20922,17 @@ const propsDoc$1h = {
|
|
|
20917
20922
|
relativeHrs: "number",
|
|
20918
20923
|
tz: "string"
|
|
20919
20924
|
};
|
|
20920
|
-
const propTypes$
|
|
20921
|
-
currentUser: propTypes$
|
|
20922
|
-
dateToFormat: propTypes$
|
|
20923
|
-
propTypes$
|
|
20924
|
-
propTypes$
|
|
20925
|
+
const propTypes$1l = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
20926
|
+
currentUser: propTypes$1M.exports.any,
|
|
20927
|
+
dateToFormat: propTypes$1M.exports.oneOfType([
|
|
20928
|
+
propTypes$1M.exports.string,
|
|
20929
|
+
propTypes$1M.exports.instanceOf(Date)
|
|
20925
20930
|
]),
|
|
20926
|
-
format: propTypes$
|
|
20927
|
-
locale: propTypes$
|
|
20928
|
-
relative: propTypes$
|
|
20929
|
-
relativeHrs: propTypes$
|
|
20930
|
-
tz: propTypes$
|
|
20931
|
+
format: propTypes$1M.exports.string,
|
|
20932
|
+
locale: propTypes$1M.exports.string,
|
|
20933
|
+
relative: propTypes$1M.exports.bool,
|
|
20934
|
+
relativeHrs: propTypes$1M.exports.number,
|
|
20935
|
+
tz: propTypes$1M.exports.string
|
|
20931
20936
|
});
|
|
20932
20937
|
function showRelative(dateToCheck, relative, relativeHrs) {
|
|
20933
20938
|
if (!relativeHrs && !relative) {
|
|
@@ -21003,8 +21008,8 @@ function SpsDateTime(props2) {
|
|
|
21003
21008
|
}));
|
|
21004
21009
|
}
|
|
21005
21010
|
Object.assign(SpsDateTime, {
|
|
21006
|
-
props: propsDoc$
|
|
21007
|
-
propTypes: propTypes$
|
|
21011
|
+
props: propsDoc$1i,
|
|
21012
|
+
propTypes: propTypes$1l,
|
|
21008
21013
|
displayName: "SpsDateTime"
|
|
21009
21014
|
});
|
|
21010
21015
|
const SpsDatetimeExamples = {
|
|
@@ -21025,15 +21030,15 @@ const SpsDatetimeExamples = {
|
|
|
21025
21030
|
}
|
|
21026
21031
|
}
|
|
21027
21032
|
};
|
|
21028
|
-
const propsDoc$
|
|
21033
|
+
const propsDoc$1h = {
|
|
21029
21034
|
compact: "boolean",
|
|
21030
21035
|
wideTerms: "boolean",
|
|
21031
21036
|
widerTerms: "boolean"
|
|
21032
21037
|
};
|
|
21033
|
-
const propTypes$
|
|
21034
|
-
compact: propTypes$
|
|
21035
|
-
wideTerms: propTypes$
|
|
21036
|
-
widerTerms: propTypes$
|
|
21038
|
+
const propTypes$1k = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21039
|
+
compact: propTypes$1M.exports.bool,
|
|
21040
|
+
wideTerms: propTypes$1M.exports.bool,
|
|
21041
|
+
widerTerms: propTypes$1M.exports.bool
|
|
21037
21042
|
});
|
|
21038
21043
|
function SpsDescriptionList(props2) {
|
|
21039
21044
|
const _a = props2, {
|
|
@@ -21073,20 +21078,20 @@ function SpsDescriptionList(props2) {
|
|
|
21073
21078
|
}, rest), childrenWithProps);
|
|
21074
21079
|
}
|
|
21075
21080
|
Object.assign(SpsDescriptionList, {
|
|
21076
|
-
props: propsDoc$
|
|
21077
|
-
propTypes: propTypes$
|
|
21081
|
+
props: propsDoc$1h,
|
|
21082
|
+
propTypes: propTypes$1k,
|
|
21078
21083
|
displayName: "SpsDescriptionList / SpsDl"
|
|
21079
21084
|
});
|
|
21080
21085
|
function SpsDl(p2) {
|
|
21081
21086
|
return SpsDescriptionList(p2);
|
|
21082
21087
|
}
|
|
21083
21088
|
Object.assign(SpsDl, {
|
|
21084
|
-
props: propsDoc$
|
|
21085
|
-
propTypes: propTypes$
|
|
21089
|
+
props: propsDoc$1h,
|
|
21090
|
+
propTypes: propTypes$1k,
|
|
21086
21091
|
displayName: "SpsDescriptionList / SpsDl"
|
|
21087
21092
|
});
|
|
21088
|
-
const propsDoc$
|
|
21089
|
-
const propTypes$
|
|
21093
|
+
const propsDoc$1g = {};
|
|
21094
|
+
const propTypes$1j = __spreadValues({}, spsGlobalPropTypes);
|
|
21090
21095
|
function SpsDescriptionListDefinition(props2) {
|
|
21091
21096
|
const _a = props2, {
|
|
21092
21097
|
children,
|
|
@@ -21106,16 +21111,16 @@ function SpsDescriptionListDefinition(props2) {
|
|
|
21106
21111
|
}, rest), children);
|
|
21107
21112
|
}
|
|
21108
21113
|
Object.assign(SpsDescriptionListDefinition, {
|
|
21109
|
-
props: propsDoc$
|
|
21110
|
-
propTypes: propTypes$
|
|
21114
|
+
props: propsDoc$1g,
|
|
21115
|
+
propTypes: propTypes$1j,
|
|
21111
21116
|
displayName: "SpsDescriptionListDefinition / SpsDd"
|
|
21112
21117
|
});
|
|
21113
21118
|
function SpsDd(p2) {
|
|
21114
21119
|
return SpsDescriptionListDefinition(p2);
|
|
21115
21120
|
}
|
|
21116
21121
|
Object.assign(SpsDd, {
|
|
21117
|
-
props: propsDoc$
|
|
21118
|
-
propTypes: propTypes$
|
|
21122
|
+
props: propsDoc$1g,
|
|
21123
|
+
propTypes: propTypes$1j,
|
|
21119
21124
|
displayName: "SpsDescriptionListDefinition / SpsDd"
|
|
21120
21125
|
});
|
|
21121
21126
|
var TooltipVisibility;
|
|
@@ -21130,7 +21135,7 @@ function toggleTooltipState(state) {
|
|
|
21130
21135
|
}
|
|
21131
21136
|
const CARET_SPACING_PX = 13;
|
|
21132
21137
|
const openTips = new Map();
|
|
21133
|
-
const propsDoc$
|
|
21138
|
+
const propsDoc$1f = {
|
|
21134
21139
|
for: { type: "React.MutableRefObject<any> | string", required: true },
|
|
21135
21140
|
hideDelay: "number",
|
|
21136
21141
|
isShown: "TooltipVisibility",
|
|
@@ -21142,17 +21147,17 @@ const propsDoc$1e = {
|
|
|
21142
21147
|
showOn: "TooltipShowTrigger",
|
|
21143
21148
|
title: "string | ReactNode"
|
|
21144
21149
|
};
|
|
21145
|
-
const propTypes$
|
|
21146
|
-
for: propTypes$
|
|
21147
|
-
hideDelay: propTypes$
|
|
21150
|
+
const propTypes$1i = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21151
|
+
for: propTypes$1M.exports.oneOfType([ref(), propTypes$1M.exports.string]).isRequired,
|
|
21152
|
+
hideDelay: propTypes$1M.exports.number,
|
|
21148
21153
|
isShown: enumValue(TooltipVisibility),
|
|
21149
21154
|
kind: enumValue(TooltipKind),
|
|
21150
|
-
offsets: propTypes$
|
|
21155
|
+
offsets: propTypes$1M.exports.arrayOf(propTypes$1M.exports.number),
|
|
21151
21156
|
onDeferred: fun(),
|
|
21152
21157
|
position: enumValue(Position),
|
|
21153
21158
|
altPosition: enumValue(Position),
|
|
21154
21159
|
showOn: enumValue(TooltipShowTrigger),
|
|
21155
|
-
title: propTypes$
|
|
21160
|
+
title: propTypes$1M.exports.string || propTypes$1M.exports.node
|
|
21156
21161
|
});
|
|
21157
21162
|
function SpsTooltip({
|
|
21158
21163
|
children,
|
|
@@ -21318,26 +21323,26 @@ function SpsTooltip({
|
|
|
21318
21323
|
})));
|
|
21319
21324
|
}
|
|
21320
21325
|
Object.assign(SpsTooltip, {
|
|
21321
|
-
props: propsDoc$
|
|
21322
|
-
propTypes: propTypes$
|
|
21326
|
+
props: propsDoc$1f,
|
|
21327
|
+
propTypes: propTypes$1i,
|
|
21323
21328
|
displayName: "SpsTooltip"
|
|
21324
21329
|
});
|
|
21325
|
-
const propsDoc$
|
|
21330
|
+
const propsDoc$1e = {
|
|
21326
21331
|
error: "boolean",
|
|
21327
21332
|
errors: "ReactNodeOrRenderFn",
|
|
21328
21333
|
help: "ReactNodeOrRenderFn",
|
|
21329
21334
|
labelFor: "SpsFormFieldMeta<any>",
|
|
21330
21335
|
required: "boolean"
|
|
21331
21336
|
};
|
|
21332
|
-
const propTypes$
|
|
21333
|
-
error: propTypes$
|
|
21337
|
+
const propTypes$1h = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21338
|
+
error: propTypes$1M.exports.bool,
|
|
21334
21339
|
errors: nodeOrRenderFn,
|
|
21335
21340
|
help: nodeOrRenderFn,
|
|
21336
|
-
labelFor: propTypes$
|
|
21341
|
+
labelFor: propTypes$1M.exports.oneOfType([
|
|
21337
21342
|
impl(),
|
|
21338
21343
|
impl()
|
|
21339
21344
|
]),
|
|
21340
|
-
required: propTypes$
|
|
21345
|
+
required: propTypes$1M.exports.bool
|
|
21341
21346
|
});
|
|
21342
21347
|
function SpsDescriptionListTerm(props2) {
|
|
21343
21348
|
const _a = props2, {
|
|
@@ -21393,16 +21398,16 @@ function SpsDescriptionListTerm(props2) {
|
|
|
21393
21398
|
}, contentOf(tipKind === TooltipKind.ERROR ? errors : help)));
|
|
21394
21399
|
}
|
|
21395
21400
|
Object.assign(SpsDescriptionListTerm, {
|
|
21396
|
-
props: propsDoc$
|
|
21397
|
-
propTypes: propTypes$
|
|
21401
|
+
props: propsDoc$1e,
|
|
21402
|
+
propTypes: propTypes$1h,
|
|
21398
21403
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
21399
21404
|
});
|
|
21400
21405
|
function SpsDt(p2) {
|
|
21401
21406
|
return SpsDescriptionListTerm(p2);
|
|
21402
21407
|
}
|
|
21403
21408
|
Object.assign(SpsDt, {
|
|
21404
|
-
props: propsDoc$
|
|
21405
|
-
propTypes: propTypes$
|
|
21409
|
+
props: propsDoc$1e,
|
|
21410
|
+
propTypes: propTypes$1h,
|
|
21406
21411
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
21407
21412
|
});
|
|
21408
21413
|
const SpsDescriptionListExamples = {
|
|
@@ -21880,19 +21885,19 @@ const SpsDropdownExamples = {
|
|
|
21880
21885
|
}
|
|
21881
21886
|
}
|
|
21882
21887
|
};
|
|
21883
|
-
const propsDoc$
|
|
21888
|
+
const propsDoc$1d = {
|
|
21884
21889
|
checked: "boolean",
|
|
21885
21890
|
onChange: "ChangeEventHandler",
|
|
21886
21891
|
indeterminate: "boolean",
|
|
21887
21892
|
disabled: "boolean",
|
|
21888
21893
|
options: "Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"
|
|
21889
21894
|
};
|
|
21890
|
-
const propTypes$
|
|
21891
|
-
checked: propTypes$
|
|
21895
|
+
const propTypes$1g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21896
|
+
checked: propTypes$1M.exports.bool,
|
|
21892
21897
|
onChange: fun(),
|
|
21893
|
-
indeterminate: propTypes$
|
|
21894
|
-
options: propTypes$
|
|
21895
|
-
disabled: propTypes$
|
|
21898
|
+
indeterminate: propTypes$1M.exports.bool,
|
|
21899
|
+
options: propTypes$1M.exports.arrayOf(propTypes$1M.exports.oneOfType([propTypes$1M.exports.func, propTypes$1M.exports.any])).isRequired,
|
|
21900
|
+
disabled: propTypes$1M.exports.bool
|
|
21896
21901
|
});
|
|
21897
21902
|
function SpsCheckboxDropdown(props2) {
|
|
21898
21903
|
const _a = props2, {
|
|
@@ -21926,14 +21931,14 @@ function SpsCheckboxDropdown(props2) {
|
|
|
21926
21931
|
}));
|
|
21927
21932
|
}
|
|
21928
21933
|
Object.assign(SpsCheckboxDropdown, {
|
|
21929
|
-
props: propsDoc$
|
|
21930
|
-
propTypes: propTypes$
|
|
21934
|
+
props: propsDoc$1d,
|
|
21935
|
+
propTypes: propTypes$1g,
|
|
21931
21936
|
displayName: "SpsCheckboxDropdown"
|
|
21932
21937
|
});
|
|
21933
|
-
const propsDoc$
|
|
21938
|
+
const propsDoc$1c = {
|
|
21934
21939
|
kind: "FeedbackBlockKind"
|
|
21935
21940
|
};
|
|
21936
|
-
const propTypes$
|
|
21941
|
+
const propTypes$1f = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
21937
21942
|
kind: enumValue(FeedbackBlockKind)
|
|
21938
21943
|
});
|
|
21939
21944
|
function SpsFeedbackBlock(props2) {
|
|
@@ -21964,8 +21969,8 @@ function SpsFeedbackBlock(props2) {
|
|
|
21964
21969
|
}, children));
|
|
21965
21970
|
}
|
|
21966
21971
|
Object.assign(SpsFeedbackBlock, {
|
|
21967
|
-
props: propsDoc$
|
|
21968
|
-
propTypes: propTypes$
|
|
21972
|
+
props: propsDoc$1c,
|
|
21973
|
+
propTypes: propTypes$1f,
|
|
21969
21974
|
displayName: "SpsFeedbackBlock"
|
|
21970
21975
|
});
|
|
21971
21976
|
const SpsFeedbackBlockExamples = {
|
|
@@ -22067,7 +22072,7 @@ const SpsFeedbackBlockExamples = {
|
|
|
22067
22072
|
}
|
|
22068
22073
|
}
|
|
22069
22074
|
};
|
|
22070
|
-
const propsDoc$
|
|
22075
|
+
const propsDoc$1b = {
|
|
22071
22076
|
errors: "ReactNodeOrRenderFn",
|
|
22072
22077
|
formMeta: "SpsFormSetMeta<any>",
|
|
22073
22078
|
legend: "string",
|
|
@@ -22076,16 +22081,16 @@ const propsDoc$1a = {
|
|
|
22076
22081
|
onToggled: "(isEnabled: boolean) => void",
|
|
22077
22082
|
tooltip: "string"
|
|
22078
22083
|
};
|
|
22079
|
-
const propTypes$
|
|
22084
|
+
const propTypes$1e = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22080
22085
|
errors: nodeOrRenderFn,
|
|
22081
22086
|
formArray: impl(),
|
|
22082
22087
|
formGroup: impl(),
|
|
22083
22088
|
formMeta: impl(),
|
|
22084
|
-
legend: propTypes$
|
|
22085
|
-
optional: propTypes$
|
|
22086
|
-
enabled: propTypes$
|
|
22089
|
+
legend: propTypes$1M.exports.string,
|
|
22090
|
+
optional: propTypes$1M.exports.bool,
|
|
22091
|
+
enabled: propTypes$1M.exports.bool,
|
|
22087
22092
|
onToggled: fun(),
|
|
22088
|
-
tooltip: propTypes$
|
|
22093
|
+
tooltip: propTypes$1M.exports.string
|
|
22089
22094
|
});
|
|
22090
22095
|
function SpsFieldset({
|
|
22091
22096
|
children,
|
|
@@ -22161,8 +22166,8 @@ function SpsFieldset({
|
|
|
22161
22166
|
}, contentOf(errors)), children));
|
|
22162
22167
|
}
|
|
22163
22168
|
Object.assign(SpsFieldset, {
|
|
22164
|
-
props: propsDoc$
|
|
22165
|
-
propTypes: propTypes$
|
|
22169
|
+
props: propsDoc$1b,
|
|
22170
|
+
propTypes: propTypes$1e,
|
|
22166
22171
|
displayName: "SpsFieldset"
|
|
22167
22172
|
});
|
|
22168
22173
|
const SpsFieldsetExamples = {
|
|
@@ -22448,8 +22453,8 @@ const SpsFieldsetExamples = {
|
|
|
22448
22453
|
}
|
|
22449
22454
|
}
|
|
22450
22455
|
};
|
|
22451
|
-
const propsDoc$
|
|
22452
|
-
const propTypes$
|
|
22456
|
+
const propsDoc$1a = {};
|
|
22457
|
+
const propTypes$1d = __spreadValues({}, spsGlobalPropTypes);
|
|
22453
22458
|
function SpsFocusedTaskActions(props2) {
|
|
22454
22459
|
const _a = props2, {
|
|
22455
22460
|
children,
|
|
@@ -22470,18 +22475,18 @@ function SpsFocusedTaskActions(props2) {
|
|
|
22470
22475
|
}, children)));
|
|
22471
22476
|
}
|
|
22472
22477
|
Object.assign(SpsFocusedTaskActions, {
|
|
22473
|
-
props: propsDoc$
|
|
22474
|
-
propTypes: propTypes$
|
|
22478
|
+
props: propsDoc$1a,
|
|
22479
|
+
propTypes: propTypes$1d,
|
|
22475
22480
|
displayName: "SpsFocusedTaskActions"
|
|
22476
22481
|
});
|
|
22477
|
-
const propsDoc$
|
|
22482
|
+
const propsDoc$19 = {
|
|
22478
22483
|
fullWidth: "boolean",
|
|
22479
22484
|
isOpen: "boolean",
|
|
22480
22485
|
onClose: "() => void"
|
|
22481
22486
|
};
|
|
22482
|
-
const propTypes$
|
|
22483
|
-
fullWidth: propTypes$
|
|
22484
|
-
isOpen: propTypes$
|
|
22487
|
+
const propTypes$1c = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
22488
|
+
fullWidth: propTypes$1M.exports.bool,
|
|
22489
|
+
isOpen: propTypes$1M.exports.bool,
|
|
22485
22490
|
onClose: fun()
|
|
22486
22491
|
});
|
|
22487
22492
|
function SpsFocusedTask(props2) {
|
|
@@ -22538,8 +22543,8 @@ function SpsFocusedTask(props2) {
|
|
|
22538
22543
|
}, isOpen && content)), actions);
|
|
22539
22544
|
}
|
|
22540
22545
|
Object.assign(SpsFocusedTask, {
|
|
22541
|
-
props: propsDoc$
|
|
22542
|
-
propTypes: propTypes$
|
|
22546
|
+
props: propsDoc$19,
|
|
22547
|
+
propTypes: propTypes$1c,
|
|
22543
22548
|
displayName: "SpsFocusedTask"
|
|
22544
22549
|
});
|
|
22545
22550
|
const SpsFocusedTaskExamples = {
|
|
@@ -22669,7 +22674,7 @@ function isPlainObject(value) {
|
|
|
22669
22674
|
var lodash_isplainobject = isPlainObject;
|
|
22670
22675
|
const OnBlurErrorKeys = new Set();
|
|
22671
22676
|
const AsTypingErrorKeys = new Set();
|
|
22672
|
-
const moment$
|
|
22677
|
+
const moment$2 = moment$6.default || moment$6;
|
|
22673
22678
|
const FORMAT = "MM/DD/YYYY";
|
|
22674
22679
|
const FORMAT_PATTERN = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;
|
|
22675
22680
|
const SYMBOL_DATE_PARSE_ERROR = Symbol("Date Parse Error");
|
|
@@ -22725,7 +22730,7 @@ const SimpleDateUtils = Object.freeze({
|
|
|
22725
22730
|
if (!date2) {
|
|
22726
22731
|
return null;
|
|
22727
22732
|
}
|
|
22728
|
-
return moment$
|
|
22733
|
+
return moment$2(__spreadProps(__spreadValues({}, date2), {
|
|
22729
22734
|
month: date2.month - 1
|
|
22730
22735
|
}));
|
|
22731
22736
|
},
|
|
@@ -22786,6 +22791,14 @@ const SimpleDateUtils = Object.freeze({
|
|
|
22786
22791
|
month: date2.month + 1 > 12 ? 1 : date2.month + 1,
|
|
22787
22792
|
date: date2.date
|
|
22788
22793
|
});
|
|
22794
|
+
},
|
|
22795
|
+
createRangeFromPreset(preset2) {
|
|
22796
|
+
if (typeof preset2.definition === "function") {
|
|
22797
|
+
return preset2.definition();
|
|
22798
|
+
}
|
|
22799
|
+
const end2 = moment$2();
|
|
22800
|
+
const start = end2.clone().subtract(moment$2.duration(preset2.definition));
|
|
22801
|
+
return [SimpleDateUtils.createFrom(start), SimpleDateUtils.createFrom(end2)];
|
|
22789
22802
|
}
|
|
22790
22803
|
});
|
|
22791
22804
|
const date = function dateValidator(value) {
|
|
@@ -24022,19 +24035,19 @@ const SpsAddRemoveFormRowExamples = {
|
|
|
24022
24035
|
}
|
|
24023
24036
|
}
|
|
24024
24037
|
};
|
|
24025
|
-
const propsDoc$
|
|
24038
|
+
const propsDoc$18 = {
|
|
24026
24039
|
imgSrc: "string",
|
|
24027
24040
|
kind: "GrowlerKind",
|
|
24028
24041
|
onClose: "() => void",
|
|
24029
24042
|
persist: "boolean",
|
|
24030
24043
|
title: "string"
|
|
24031
24044
|
};
|
|
24032
|
-
const propTypes$
|
|
24033
|
-
imgSrc: propTypes$
|
|
24045
|
+
const propTypes$1b = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24046
|
+
imgSrc: propTypes$1M.exports.string,
|
|
24034
24047
|
kind: enumValue(GrowlerKind),
|
|
24035
24048
|
onClose: fun(),
|
|
24036
|
-
persist: propTypes$
|
|
24037
|
-
title: propTypes$
|
|
24049
|
+
persist: propTypes$1M.exports.bool,
|
|
24050
|
+
title: propTypes$1M.exports.string
|
|
24038
24051
|
});
|
|
24039
24052
|
function SpsGrowler(props2) {
|
|
24040
24053
|
const _a = props2, {
|
|
@@ -24140,8 +24153,8 @@ function SpsGrowler(props2) {
|
|
|
24140
24153
|
})))));
|
|
24141
24154
|
}
|
|
24142
24155
|
Object.assign(SpsGrowler, {
|
|
24143
|
-
props: propsDoc$
|
|
24144
|
-
propTypes: propTypes$
|
|
24156
|
+
props: propsDoc$18,
|
|
24157
|
+
propTypes: propTypes$1b,
|
|
24145
24158
|
displayName: "SpsGrowler"
|
|
24146
24159
|
});
|
|
24147
24160
|
const SpsGrowlerExamples = {
|
|
@@ -24516,18 +24529,18 @@ const SpsGrowlerExamples = {
|
|
|
24516
24529
|
}
|
|
24517
24530
|
}
|
|
24518
24531
|
};
|
|
24519
|
-
const propsDoc$
|
|
24532
|
+
const propsDoc$17 = {
|
|
24520
24533
|
disabled: "boolean",
|
|
24521
24534
|
min: "number",
|
|
24522
24535
|
max: "number",
|
|
24523
24536
|
step: "number",
|
|
24524
24537
|
onValueChange: "(newValue: number) => void"
|
|
24525
24538
|
};
|
|
24526
|
-
const propTypes$
|
|
24527
|
-
disabled: propTypes$
|
|
24528
|
-
min: propTypes$
|
|
24529
|
-
max: propTypes$
|
|
24530
|
-
step: propTypes$
|
|
24539
|
+
const propTypes$1a = __spreadValues({
|
|
24540
|
+
disabled: propTypes$1M.exports.bool,
|
|
24541
|
+
min: propTypes$1M.exports.number,
|
|
24542
|
+
max: propTypes$1M.exports.number,
|
|
24543
|
+
step: propTypes$1M.exports.number,
|
|
24531
24544
|
onValueChange: fun()
|
|
24532
24545
|
}, spsGlobalPropTypes);
|
|
24533
24546
|
function SpsIncrementor(props2) {
|
|
@@ -24630,8 +24643,8 @@ function SpsIncrementor(props2) {
|
|
|
24630
24643
|
}))));
|
|
24631
24644
|
}
|
|
24632
24645
|
Object.assign(SpsIncrementor, {
|
|
24633
|
-
props: propsDoc$
|
|
24634
|
-
propTypes: propTypes$
|
|
24646
|
+
props: propsDoc$17,
|
|
24647
|
+
propTypes: propTypes$1a,
|
|
24635
24648
|
displayName: "SpsIncrementor"
|
|
24636
24649
|
});
|
|
24637
24650
|
const SpsIncrementorExamples = {
|
|
@@ -24670,7 +24683,7 @@ function SpsInsights(props2) {
|
|
|
24670
24683
|
className: "insight-tile-wrapper"
|
|
24671
24684
|
}, children);
|
|
24672
24685
|
}
|
|
24673
|
-
const propsDoc$
|
|
24686
|
+
const propsDoc$16 = {
|
|
24674
24687
|
horizontal: "boolean",
|
|
24675
24688
|
icon: "SpsIcon",
|
|
24676
24689
|
kind: "SpsInsightTileKind",
|
|
@@ -24679,14 +24692,14 @@ const propsDoc$15 = {
|
|
|
24679
24692
|
partnerCount: "number",
|
|
24680
24693
|
totalPartners: "number"
|
|
24681
24694
|
};
|
|
24682
|
-
const propTypes$
|
|
24683
|
-
horizontal: propTypes$
|
|
24695
|
+
const propTypes$19 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
24696
|
+
horizontal: propTypes$1M.exports.bool,
|
|
24684
24697
|
icon: enumValue(SpsIcon),
|
|
24685
24698
|
kind: enumValue(SpsInsightTileKind),
|
|
24686
|
-
title: propTypes$
|
|
24687
|
-
metric: propTypes$
|
|
24688
|
-
partnerCount: propTypes$
|
|
24689
|
-
totalPartners: propTypes$
|
|
24699
|
+
title: propTypes$1M.exports.string,
|
|
24700
|
+
metric: propTypes$1M.exports.number || propTypes$1M.exports.string,
|
|
24701
|
+
partnerCount: propTypes$1M.exports.number,
|
|
24702
|
+
totalPartners: propTypes$1M.exports.number
|
|
24690
24703
|
});
|
|
24691
24704
|
function SpsInsightTile(props2) {
|
|
24692
24705
|
const _a = props2, {
|
|
@@ -24746,8 +24759,8 @@ function SpsInsightTile(props2) {
|
|
|
24746
24759
|
}, t2("design-system:insightTile.partners")))));
|
|
24747
24760
|
}
|
|
24748
24761
|
Object.assign(SpsInsightTile, {
|
|
24749
|
-
props: propsDoc$
|
|
24750
|
-
propTypes: propTypes$
|
|
24762
|
+
props: propsDoc$16,
|
|
24763
|
+
propTypes: propTypes$19,
|
|
24751
24764
|
displayName: "SpsInsightTile"
|
|
24752
24765
|
});
|
|
24753
24766
|
const SpsInsightTileExamples = {
|
|
@@ -25021,11 +25034,11 @@ const SpsInsightTileExamples = {
|
|
|
25021
25034
|
}
|
|
25022
25035
|
}
|
|
25023
25036
|
};
|
|
25024
|
-
const propsDoc$
|
|
25037
|
+
const propsDoc$15 = {
|
|
25025
25038
|
inline: "boolean"
|
|
25026
25039
|
};
|
|
25027
|
-
const propTypes$
|
|
25028
|
-
inline: propTypes$
|
|
25040
|
+
const propTypes$18 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25041
|
+
inline: propTypes$1M.exports.bool
|
|
25029
25042
|
});
|
|
25030
25043
|
function SpsKeyValueList(props2) {
|
|
25031
25044
|
const _a = props2, {
|
|
@@ -25048,16 +25061,16 @@ function SpsKeyValueList(props2) {
|
|
|
25048
25061
|
}, rest), children);
|
|
25049
25062
|
}
|
|
25050
25063
|
Object.assign(SpsKeyValueList, {
|
|
25051
|
-
props: propsDoc$
|
|
25052
|
-
propTypes: propTypes$
|
|
25064
|
+
props: propsDoc$15,
|
|
25065
|
+
propTypes: propTypes$18,
|
|
25053
25066
|
displayName: "SpsKeyValueList"
|
|
25054
25067
|
});
|
|
25055
|
-
const propsDoc$
|
|
25068
|
+
const propsDoc$14 = {
|
|
25056
25069
|
itemKey: { type: "string | nodeOrRenderFn", required: true },
|
|
25057
25070
|
titleColor: "KeyValueListTitleColor"
|
|
25058
25071
|
};
|
|
25059
|
-
const propTypes$
|
|
25060
|
-
itemKey: propTypes$
|
|
25072
|
+
const propTypes$17 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25073
|
+
itemKey: propTypes$1M.exports.string.isRequired || nodeOrRenderFn.isRequired,
|
|
25061
25074
|
titleColor: enumValue(KeyValueListTitleColor)
|
|
25062
25075
|
});
|
|
25063
25076
|
function SpsKeyValueListItem(props2) {
|
|
@@ -25089,8 +25102,8 @@ function SpsKeyValueListItem(props2) {
|
|
|
25089
25102
|
}, children));
|
|
25090
25103
|
}
|
|
25091
25104
|
Object.assign(SpsKeyValueListItem, {
|
|
25092
|
-
props: propsDoc$
|
|
25093
|
-
propTypes: propTypes$
|
|
25105
|
+
props: propsDoc$14,
|
|
25106
|
+
propTypes: propTypes$17,
|
|
25094
25107
|
displayName: "SpsKeyValueListItem"
|
|
25095
25108
|
});
|
|
25096
25109
|
const SpsKeyValueListExamples = {
|
|
@@ -25133,7 +25146,7 @@ const SpsKeyValueListExamples = {
|
|
|
25133
25146
|
}
|
|
25134
25147
|
}
|
|
25135
25148
|
};
|
|
25136
|
-
const propsDoc$
|
|
25149
|
+
const propsDoc$13 = {
|
|
25137
25150
|
for: { type: "SpsFormMetaBase<any>", required: true },
|
|
25138
25151
|
description: "string",
|
|
25139
25152
|
stronglySuggested: "boolean",
|
|
@@ -25142,16 +25155,16 @@ const propsDoc$12 = {
|
|
|
25142
25155
|
helpIconColor: "string",
|
|
25143
25156
|
errors: "ReactNodeOrRenderFn"
|
|
25144
25157
|
};
|
|
25145
|
-
const propTypes$
|
|
25146
|
-
description: propTypes$
|
|
25147
|
-
for: propTypes$
|
|
25158
|
+
const propTypes$16 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25159
|
+
description: propTypes$1M.exports.string,
|
|
25160
|
+
for: propTypes$1M.exports.oneOfType([
|
|
25148
25161
|
impl(),
|
|
25149
25162
|
impl()
|
|
25150
25163
|
]).isRequired,
|
|
25151
|
-
stronglySuggested: propTypes$
|
|
25164
|
+
stronglySuggested: propTypes$1M.exports.bool,
|
|
25152
25165
|
help: nodeOrRenderFn,
|
|
25153
25166
|
helpIcon: enumValue(SpsIcon),
|
|
25154
|
-
helpIconColor: propTypes$
|
|
25167
|
+
helpIconColor: propTypes$1M.exports.string,
|
|
25155
25168
|
errors: nodeOrRenderFn
|
|
25156
25169
|
});
|
|
25157
25170
|
function SpsLabel(_o) {
|
|
@@ -25312,8 +25325,8 @@ function SpsLabel(_o) {
|
|
|
25312
25325
|
}, description));
|
|
25313
25326
|
}
|
|
25314
25327
|
Object.assign(SpsLabel, {
|
|
25315
|
-
props: propsDoc$
|
|
25316
|
-
propTypes: propTypes$
|
|
25328
|
+
props: propsDoc$13,
|
|
25329
|
+
propTypes: propTypes$16,
|
|
25317
25330
|
displayName: "SpsLabel"
|
|
25318
25331
|
});
|
|
25319
25332
|
const SpsLabelExamples = {
|
|
@@ -25531,13 +25544,13 @@ const SpsLabelExamples = {
|
|
|
25531
25544
|
}
|
|
25532
25545
|
}
|
|
25533
25546
|
};
|
|
25534
|
-
const propsDoc$
|
|
25547
|
+
const propsDoc$12 = {
|
|
25535
25548
|
clearSelected: { type: "() => void", required: true },
|
|
25536
25549
|
itemsSelected: { type: "string | number", required: true }
|
|
25537
25550
|
};
|
|
25538
|
-
const propTypes$
|
|
25551
|
+
const propTypes$15 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25539
25552
|
clearSelected: fun().isRequired,
|
|
25540
|
-
itemsSelected: propTypes$
|
|
25553
|
+
itemsSelected: propTypes$1M.exports.oneOfType([propTypes$1M.exports.string, propTypes$1M.exports.number])
|
|
25541
25554
|
});
|
|
25542
25555
|
function SpsListActionBar(props2) {
|
|
25543
25556
|
const _a = props2, {
|
|
@@ -25587,8 +25600,8 @@ function SpsListActionBar(props2) {
|
|
|
25587
25600
|
}, t2("design-system:listActionBar.clearSelected")))));
|
|
25588
25601
|
}
|
|
25589
25602
|
Object.assign(SpsListActionBar, {
|
|
25590
|
-
props: propsDoc$
|
|
25591
|
-
propTypes: propTypes$
|
|
25603
|
+
props: propsDoc$12,
|
|
25604
|
+
propTypes: propTypes$15,
|
|
25592
25605
|
displayName: "SpsListActionBar"
|
|
25593
25606
|
});
|
|
25594
25607
|
const getScrollParent = (node) => {
|
|
@@ -25784,18 +25797,18 @@ const usePinnedTableHeadStyle = (containerRef) => {
|
|
|
25784
25797
|
};
|
|
25785
25798
|
});
|
|
25786
25799
|
};
|
|
25787
|
-
const propsDoc$
|
|
25800
|
+
const propsDoc$11 = {
|
|
25788
25801
|
controlCell: "boolean",
|
|
25789
25802
|
currentSort: "Array<SortedColumn>",
|
|
25790
25803
|
onSortChange: "SortChangeHandler",
|
|
25791
25804
|
sortKey: "string"
|
|
25792
25805
|
};
|
|
25793
|
-
const propTypes$
|
|
25794
|
-
controlCell: propTypes$
|
|
25795
|
-
currentSort: propTypes$
|
|
25806
|
+
const propTypes$14 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25807
|
+
controlCell: propTypes$1M.exports.bool,
|
|
25808
|
+
currentSort: propTypes$1M.exports.arrayOf(impl()),
|
|
25796
25809
|
onSortChange: fun(),
|
|
25797
|
-
sortKey: propTypes$
|
|
25798
|
-
pinned: propTypes$
|
|
25810
|
+
sortKey: propTypes$1M.exports.string,
|
|
25811
|
+
pinned: propTypes$1M.exports.bool
|
|
25799
25812
|
});
|
|
25800
25813
|
function SpsTableHeader(props2) {
|
|
25801
25814
|
const _a = props2, {
|
|
@@ -25854,24 +25867,24 @@ function SpsTableHeader(props2) {
|
|
|
25854
25867
|
}, children));
|
|
25855
25868
|
}
|
|
25856
25869
|
Object.assign(SpsTableHeader, {
|
|
25857
|
-
props: propsDoc$
|
|
25858
|
-
propTypes: propTypes$
|
|
25870
|
+
props: propsDoc$11,
|
|
25871
|
+
propTypes: propTypes$14,
|
|
25859
25872
|
displayName: "SpsTableHeader"
|
|
25860
25873
|
});
|
|
25861
25874
|
function SpsTh(props2) {
|
|
25862
25875
|
return /* @__PURE__ */ React.createElement(SpsTableHeader, __spreadValues({}, props2));
|
|
25863
25876
|
}
|
|
25864
25877
|
Object.assign(SpsTh, {
|
|
25865
|
-
props: propsDoc$
|
|
25866
|
-
propTypes: propTypes$
|
|
25878
|
+
props: propsDoc$11,
|
|
25879
|
+
propTypes: propTypes$14,
|
|
25867
25880
|
displayName: "SpsTh"
|
|
25868
25881
|
});
|
|
25869
|
-
const propsDoc
|
|
25882
|
+
const propsDoc$10 = {
|
|
25870
25883
|
currentSort: "Array<SortedColumn>",
|
|
25871
25884
|
onSortChange: "SortChangeHandler"
|
|
25872
25885
|
};
|
|
25873
|
-
const propTypes$
|
|
25874
|
-
currentSort: propTypes$
|
|
25886
|
+
const propTypes$13 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25887
|
+
currentSort: propTypes$1M.exports.arrayOf(impl()),
|
|
25875
25888
|
onSortChange: fun()
|
|
25876
25889
|
});
|
|
25877
25890
|
function SpsTableRow(props2) {
|
|
@@ -25907,26 +25920,26 @@ function SpsTableRow(props2) {
|
|
|
25907
25920
|
}));
|
|
25908
25921
|
}
|
|
25909
25922
|
Object.assign(SpsTableRow, {
|
|
25910
|
-
props: propsDoc
|
|
25911
|
-
propTypes: propTypes$
|
|
25923
|
+
props: propsDoc$10,
|
|
25924
|
+
propTypes: propTypes$13,
|
|
25912
25925
|
displayName: "SpsTableRow"
|
|
25913
25926
|
});
|
|
25914
25927
|
function SpsTr(props2) {
|
|
25915
25928
|
return /* @__PURE__ */ React.createElement(SpsTableRow, __spreadValues({}, props2));
|
|
25916
25929
|
}
|
|
25917
25930
|
Object.assign(SpsTr, {
|
|
25918
|
-
props: propsDoc
|
|
25919
|
-
propTypes: propTypes$
|
|
25931
|
+
props: propsDoc$10,
|
|
25932
|
+
propTypes: propTypes$13,
|
|
25920
25933
|
displayName: "SpsTr"
|
|
25921
25934
|
});
|
|
25922
|
-
const propsDoc
|
|
25935
|
+
const propsDoc$$ = {
|
|
25923
25936
|
currentSort: "Array<SortedColumn>",
|
|
25924
25937
|
onSortChange: "SortChangeHandler"
|
|
25925
25938
|
};
|
|
25926
|
-
const propTypes$
|
|
25939
|
+
const propTypes$12 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25927
25940
|
onSortChange: fun(),
|
|
25928
|
-
currentSort: propTypes$
|
|
25929
|
-
pinned: propTypes$
|
|
25941
|
+
currentSort: propTypes$1M.exports.arrayOf(impl()),
|
|
25942
|
+
pinned: propTypes$1M.exports.bool
|
|
25930
25943
|
});
|
|
25931
25944
|
function SpsTableHead(props2) {
|
|
25932
25945
|
const _a = props2, {
|
|
@@ -25962,27 +25975,27 @@ function SpsTableHead(props2) {
|
|
|
25962
25975
|
}));
|
|
25963
25976
|
}
|
|
25964
25977
|
Object.assign(SpsTableHead, {
|
|
25965
|
-
props: propsDoc
|
|
25966
|
-
propTypes: propTypes$
|
|
25978
|
+
props: propsDoc$$,
|
|
25979
|
+
propTypes: propTypes$12,
|
|
25967
25980
|
displayName: "SpsTableHead"
|
|
25968
25981
|
});
|
|
25969
25982
|
function SpsThead(props2) {
|
|
25970
25983
|
return /* @__PURE__ */ React.createElement(SpsTableHead, __spreadValues({}, props2));
|
|
25971
25984
|
}
|
|
25972
25985
|
Object.assign(SpsThead, {
|
|
25973
|
-
props: propsDoc
|
|
25974
|
-
propTypes: propTypes$
|
|
25986
|
+
props: propsDoc$$,
|
|
25987
|
+
propTypes: propTypes$12,
|
|
25975
25988
|
displayName: "SpsThead"
|
|
25976
25989
|
});
|
|
25977
|
-
const propsDoc$
|
|
25990
|
+
const propsDoc$_ = {
|
|
25978
25991
|
sort: "SortedColumn",
|
|
25979
25992
|
onSortChange: "SortChangeHandler",
|
|
25980
25993
|
selectable: "boolean"
|
|
25981
25994
|
};
|
|
25982
|
-
const propTypes$
|
|
25995
|
+
const propTypes$11 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
25983
25996
|
onSortChange: fun(),
|
|
25984
|
-
sort: propTypes$
|
|
25985
|
-
selectable: propTypes$
|
|
25997
|
+
sort: propTypes$1M.exports.arrayOf(impl()),
|
|
25998
|
+
selectable: propTypes$1M.exports.bool
|
|
25986
25999
|
});
|
|
25987
26000
|
function SpsTable(props2) {
|
|
25988
26001
|
const _a = props2, {
|
|
@@ -26037,12 +26050,12 @@ function SpsTable(props2) {
|
|
|
26037
26050
|
})));
|
|
26038
26051
|
}
|
|
26039
26052
|
Object.assign(SpsTable, {
|
|
26040
|
-
props: propsDoc$
|
|
26041
|
-
propTypes: propTypes$
|
|
26053
|
+
props: propsDoc$_,
|
|
26054
|
+
propTypes: propTypes$11,
|
|
26042
26055
|
displayName: "SpsTable"
|
|
26043
26056
|
});
|
|
26044
|
-
const propsDoc$
|
|
26045
|
-
const propTypes
|
|
26057
|
+
const propsDoc$Z = {};
|
|
26058
|
+
const propTypes$10 = __spreadValues({}, spsGlobalPropTypes);
|
|
26046
26059
|
function SpsTableBody(props2) {
|
|
26047
26060
|
const _a = props2, {
|
|
26048
26061
|
children,
|
|
@@ -26062,34 +26075,34 @@ function SpsTableBody(props2) {
|
|
|
26062
26075
|
}, rest), children);
|
|
26063
26076
|
}
|
|
26064
26077
|
Object.assign(SpsTableBody, {
|
|
26065
|
-
props: propsDoc$
|
|
26066
|
-
propTypes: propTypes
|
|
26078
|
+
props: propsDoc$Z,
|
|
26079
|
+
propTypes: propTypes$10,
|
|
26067
26080
|
displayName: "SpsTableBody"
|
|
26068
26081
|
});
|
|
26069
26082
|
function SpsTbody(props2) {
|
|
26070
26083
|
return /* @__PURE__ */ React.createElement(SpsTableBody, __spreadValues({}, props2));
|
|
26071
26084
|
}
|
|
26072
26085
|
Object.assign(SpsTbody, {
|
|
26073
|
-
props: propsDoc$
|
|
26074
|
-
propTypes: propTypes
|
|
26086
|
+
props: propsDoc$Z,
|
|
26087
|
+
propTypes: propTypes$10,
|
|
26075
26088
|
displayName: "SpsTbody"
|
|
26076
26089
|
});
|
|
26077
|
-
const propsDoc$
|
|
26090
|
+
const propsDoc$Y = {
|
|
26078
26091
|
buttonCell: "boolean",
|
|
26079
26092
|
controlCell: "boolean",
|
|
26080
26093
|
wrap: "SpsTableCellWrapWidth"
|
|
26081
26094
|
};
|
|
26082
|
-
const propTypes
|
|
26083
|
-
buttonCell: propTypes$
|
|
26084
|
-
controlCell: propTypes$
|
|
26085
|
-
wrap: propTypes$
|
|
26095
|
+
const propTypes$$ = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
26096
|
+
buttonCell: propTypes$1M.exports.bool,
|
|
26097
|
+
controlCell: propTypes$1M.exports.bool,
|
|
26098
|
+
wrap: propTypes$1M.exports.oneOf([
|
|
26086
26099
|
200,
|
|
26087
26100
|
300,
|
|
26088
26101
|
400,
|
|
26089
26102
|
500,
|
|
26090
26103
|
600
|
|
26091
26104
|
]),
|
|
26092
|
-
pinned: propTypes$
|
|
26105
|
+
pinned: propTypes$1M.exports.bool
|
|
26093
26106
|
});
|
|
26094
26107
|
function SpsTableCell(props2) {
|
|
26095
26108
|
const _a = props2, {
|
|
@@ -26122,20 +26135,20 @@ function SpsTableCell(props2) {
|
|
|
26122
26135
|
}, rest), children);
|
|
26123
26136
|
}
|
|
26124
26137
|
Object.assign(SpsTableCell, {
|
|
26125
|
-
props: propsDoc$
|
|
26126
|
-
propTypes: propTypes
|
|
26138
|
+
props: propsDoc$Y,
|
|
26139
|
+
propTypes: propTypes$$,
|
|
26127
26140
|
displayName: "SpsTableCell"
|
|
26128
26141
|
});
|
|
26129
26142
|
function SpsTd(props2) {
|
|
26130
26143
|
return /* @__PURE__ */ React.createElement(SpsTableCell, __spreadValues({}, props2));
|
|
26131
26144
|
}
|
|
26132
26145
|
Object.assign(SpsTd, {
|
|
26133
|
-
props: propsDoc$
|
|
26134
|
-
propTypes: propTypes
|
|
26146
|
+
props: propsDoc$Y,
|
|
26147
|
+
propTypes: propTypes$$,
|
|
26135
26148
|
displayName: "SpsTd"
|
|
26136
26149
|
});
|
|
26137
|
-
const propsDoc$
|
|
26138
|
-
const propTypes$
|
|
26150
|
+
const propsDoc$X = {};
|
|
26151
|
+
const propTypes$_ = __spreadValues({}, spsGlobalPropTypes);
|
|
26139
26152
|
const CSS_BLOCK$3 = "sps-icon-button-panel";
|
|
26140
26153
|
function SpsIconButtonPanel(_q) {
|
|
26141
26154
|
var _r = _q, {
|
|
@@ -26154,8 +26167,8 @@ function SpsIconButtonPanel(_q) {
|
|
|
26154
26167
|
}, rest), iconButtons);
|
|
26155
26168
|
}
|
|
26156
26169
|
Object.assign(SpsIconButtonPanel, {
|
|
26157
|
-
props: propsDoc$
|
|
26158
|
-
propTypes: propTypes$
|
|
26170
|
+
props: propsDoc$X,
|
|
26171
|
+
propTypes: propTypes$_,
|
|
26159
26172
|
displayName: "SpsIconButtonPanel"
|
|
26160
26173
|
});
|
|
26161
26174
|
const SpsTableExamples = {
|
|
@@ -27339,8 +27352,8 @@ const SpsListActionBarExamples = {
|
|
|
27339
27352
|
}
|
|
27340
27353
|
}
|
|
27341
27354
|
};
|
|
27342
|
-
const propTypes$
|
|
27343
|
-
tabs: propTypes$
|
|
27355
|
+
const propTypes$Z = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27356
|
+
tabs: propTypes$1M.exports.arrayOf(impl()).isRequired,
|
|
27344
27357
|
activeTab: impl(),
|
|
27345
27358
|
onTabChange: fun()
|
|
27346
27359
|
});
|
|
@@ -27404,18 +27417,18 @@ function SpsTabs(props2) {
|
|
|
27404
27417
|
}, tab2.tag)))));
|
|
27405
27418
|
}
|
|
27406
27419
|
Object.assign(SpsTabs, {
|
|
27407
|
-
propTypes: propTypes$
|
|
27420
|
+
propTypes: propTypes$Z,
|
|
27408
27421
|
displayName: "SpsTabs"
|
|
27409
27422
|
});
|
|
27410
|
-
const propsDoc$
|
|
27423
|
+
const propsDoc$W = {
|
|
27411
27424
|
formMeta: "SpsFormSetMeta<any>",
|
|
27412
27425
|
stacked: "boolean"
|
|
27413
27426
|
};
|
|
27414
|
-
const propTypes$
|
|
27427
|
+
const propTypes$Y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27415
27428
|
formArray: impl(),
|
|
27416
27429
|
formGroup: impl(),
|
|
27417
27430
|
formMeta: impl(),
|
|
27418
|
-
stacked: propTypes$
|
|
27431
|
+
stacked: propTypes$1M.exports.bool
|
|
27419
27432
|
});
|
|
27420
27433
|
function SpsInputGroup(_s) {
|
|
27421
27434
|
var _t = _s, {
|
|
@@ -27460,14 +27473,14 @@ function SpsInputGroup(_s) {
|
|
|
27460
27473
|
}, children));
|
|
27461
27474
|
}
|
|
27462
27475
|
Object.assign(SpsInputGroup, {
|
|
27463
|
-
props: propsDoc$
|
|
27464
|
-
propTypes: propTypes$
|
|
27476
|
+
props: propsDoc$W,
|
|
27477
|
+
propTypes: propTypes$Y,
|
|
27465
27478
|
displayName: "SpsInputGroup"
|
|
27466
27479
|
});
|
|
27467
|
-
const propsDoc$
|
|
27480
|
+
const propsDoc$V = {
|
|
27468
27481
|
onSubmit: "FormEventHandler"
|
|
27469
27482
|
};
|
|
27470
|
-
const propTypes$
|
|
27483
|
+
const propTypes$X = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27471
27484
|
onSubmit: fun()
|
|
27472
27485
|
});
|
|
27473
27486
|
function SpsListToolbarSearch(props2) {
|
|
@@ -27490,9 +27503,22 @@ function SpsListToolbarSearch(props2) {
|
|
|
27490
27503
|
}, children));
|
|
27491
27504
|
}
|
|
27492
27505
|
Object.assign(SpsListToolbarSearch, {
|
|
27506
|
+
props: propsDoc$V,
|
|
27507
|
+
propTypes: propTypes$X,
|
|
27508
|
+
displayName: "SpsListToolbarSearch"
|
|
27509
|
+
});
|
|
27510
|
+
const propsDoc$U = {};
|
|
27511
|
+
const propTypes$W = __spreadValues({}, spsGlobalPropTypes);
|
|
27512
|
+
function SpsListToolbarSearchInfo(props2) {
|
|
27513
|
+
const {
|
|
27514
|
+
children
|
|
27515
|
+
} = props2;
|
|
27516
|
+
return /* @__PURE__ */ React.createElement("div", null, children);
|
|
27517
|
+
}
|
|
27518
|
+
Object.assign(SpsListToolbarSearchInfo, {
|
|
27493
27519
|
props: propsDoc$U,
|
|
27494
27520
|
propTypes: propTypes$W,
|
|
27495
|
-
displayName: "
|
|
27521
|
+
displayName: "SpsListToolbarSearchInfo"
|
|
27496
27522
|
});
|
|
27497
27523
|
const propsDoc$T = {
|
|
27498
27524
|
activeTab: "SpsTab",
|
|
@@ -27509,18 +27535,18 @@ const propsDoc$T = {
|
|
|
27509
27535
|
};
|
|
27510
27536
|
const propTypes$V = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
27511
27537
|
activeTab: impl(),
|
|
27512
|
-
advancedSearch: propTypes$
|
|
27513
|
-
isOpen: propTypes$
|
|
27514
|
-
enteredFields: propTypes$
|
|
27538
|
+
advancedSearch: propTypes$1M.exports.shape({
|
|
27539
|
+
isOpen: propTypes$1M.exports.bool,
|
|
27540
|
+
enteredFields: propTypes$1M.exports.number
|
|
27515
27541
|
}),
|
|
27516
27542
|
onToggleAdvancedSearch: fun(),
|
|
27517
27543
|
onTabChange: fun(),
|
|
27518
|
-
title: propTypes$
|
|
27519
|
-
tabs: propTypes$
|
|
27544
|
+
title: propTypes$1M.exports.string,
|
|
27545
|
+
tabs: propTypes$1M.exports.arrayOf(impl()),
|
|
27520
27546
|
onToolbarPinned: fun(),
|
|
27521
|
-
selectable: propTypes$
|
|
27522
|
-
isSelected: propTypes$
|
|
27523
|
-
isIndeterminate: propTypes$
|
|
27547
|
+
selectable: propTypes$1M.exports.bool,
|
|
27548
|
+
isSelected: propTypes$1M.exports.bool,
|
|
27549
|
+
isIndeterminate: propTypes$1M.exports.bool,
|
|
27524
27550
|
onSelectionChange: fun()
|
|
27525
27551
|
});
|
|
27526
27552
|
function SpsListToolbar(props2) {
|
|
@@ -27624,8 +27650,13 @@ function SpsListToolbar(props2) {
|
|
|
27624
27650
|
emitToolbarPinned(isPinned);
|
|
27625
27651
|
}, [isPinned]);
|
|
27626
27652
|
const classes = clsx(unsafelyReplaceClassName || "sps-list-toolbar", isPinned && "sps-list-toolbar--pinned", isPinned && "z-stratum-bar", advancedSearch && advancedSearch.isOpen && "sps-list-toolbar--advanced-search-open", className);
|
|
27627
|
-
const [
|
|
27628
|
-
|
|
27653
|
+
const [
|
|
27654
|
+
listToolbarSearch,
|
|
27655
|
+
listToolbarSearchInfo,
|
|
27656
|
+
otherChildren
|
|
27657
|
+
] = selectChildren(children, [
|
|
27658
|
+
{ type: SpsListToolbarSearch },
|
|
27659
|
+
{ type: SpsListToolbarSearchInfo }
|
|
27629
27660
|
]);
|
|
27630
27661
|
return /* @__PURE__ */ React.createElement("div", {
|
|
27631
27662
|
className: "sps-list-toolbar__wrapper",
|
|
@@ -27649,7 +27680,7 @@ function SpsListToolbar(props2) {
|
|
|
27649
27680
|
"data-testid": `${testId}__tabs`
|
|
27650
27681
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
27651
27682
|
className: "sps-list-toolbar__search-controls"
|
|
27652
|
-
}, !title && listToolbarSearch, listToolbarSearch.length > 0 && advancedSearch && /* @__PURE__ */ React.createElement("div", {
|
|
27683
|
+
}, !title && listToolbarSearch, !title && listToolbarSearchInfo, listToolbarSearch.length > 0 && advancedSearch && /* @__PURE__ */ React.createElement("div", {
|
|
27653
27684
|
className: "sps-list-toolbar__advanced-search-toggle",
|
|
27654
27685
|
"data-testid": `${testId}__advanced-search`
|
|
27655
27686
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -27924,6 +27955,50 @@ const SpsListToolbarExamples = {
|
|
|
27924
27955
|
)
|
|
27925
27956
|
}
|
|
27926
27957
|
`
|
|
27958
|
+
},
|
|
27959
|
+
searchInfo: {
|
|
27960
|
+
description: () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h5", null, "Search Info"), /* @__PURE__ */ React.createElement("p", null, "Use SpsListToolbarSearchInfo component to add additional information about your search.")),
|
|
27961
|
+
react: code`
|
|
27962
|
+
function Component() {
|
|
27963
|
+
const filterKeys = ["Key Item ID", "Document Type", "Sender Name", "Receiver Name"];
|
|
27964
|
+
|
|
27965
|
+
const { formValue, formMeta, updateForm } = useSpsForm({
|
|
27966
|
+
searchText: "",
|
|
27967
|
+
filterOption: filterKeys[0],
|
|
27968
|
+
});
|
|
27969
|
+
|
|
27970
|
+
function handleSearch(event) {
|
|
27971
|
+
console.log(event, formValue.searchText)
|
|
27972
|
+
}
|
|
27973
|
+
|
|
27974
|
+
return (
|
|
27975
|
+
<SpsListToolbar>
|
|
27976
|
+
<SpsListToolbarSearch onSubmit={handleSearch}>
|
|
27977
|
+
<SpsSelect
|
|
27978
|
+
options={filterKeys}
|
|
27979
|
+
formMeta={formMeta.fields.filterOption}
|
|
27980
|
+
value={formValue.filterOption}
|
|
27981
|
+
notClearable
|
|
27982
|
+
/>
|
|
27983
|
+
<SpsTextInput
|
|
27984
|
+
value={formValue.searchText}
|
|
27985
|
+
formMeta={formMeta.fields.searchText}
|
|
27986
|
+
icon={SpsIcon.FILTER}
|
|
27987
|
+
placeholder="Filter fields"
|
|
27988
|
+
/>
|
|
27989
|
+
</SpsListToolbarSearch>
|
|
27990
|
+
<SpsListToolbarSearchInfo>
|
|
27991
|
+
<div style={{ display: 'flex', alignItems: 'center'}}>
|
|
27992
|
+
<span style={{ marginRight: 5 }} >
|
|
27993
|
+
Key Item ID = Vendor Part Number
|
|
27994
|
+
</span>
|
|
27995
|
+
<SpsI icon={SpsIcon.INFO_CIRCLE} className="blue200"/>
|
|
27996
|
+
</div>
|
|
27997
|
+
</SpsListToolbarSearchInfo>
|
|
27998
|
+
</SpsListToolbar>
|
|
27999
|
+
)
|
|
28000
|
+
}
|
|
28001
|
+
`
|
|
27927
28002
|
}
|
|
27928
28003
|
}
|
|
27929
28004
|
},
|
|
@@ -28139,7 +28214,7 @@ const propsDoc$S = {
|
|
|
28139
28214
|
};
|
|
28140
28215
|
const propTypes$U = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28141
28216
|
kind: enumValue(FeedbackBlockKind),
|
|
28142
|
-
message: propTypes$
|
|
28217
|
+
message: propTypes$1M.exports.node.isRequired
|
|
28143
28218
|
});
|
|
28144
28219
|
function SpsMicroBlock(props2) {
|
|
28145
28220
|
const _a = props2, {
|
|
@@ -28232,7 +28307,7 @@ const propsDoc$R = {
|
|
|
28232
28307
|
const propTypes$T = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28233
28308
|
kind: enumValue(ModalKind),
|
|
28234
28309
|
size: enumValue(ModalSize),
|
|
28235
|
-
title: propTypes$
|
|
28310
|
+
title: propTypes$1M.exports.string,
|
|
28236
28311
|
onClose: fun(),
|
|
28237
28312
|
focusElementOnOpen: ref()
|
|
28238
28313
|
});
|
|
@@ -28826,27 +28901,27 @@ const propsDoc$Q = {
|
|
|
28826
28901
|
};
|
|
28827
28902
|
const propTypes$S = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
28828
28903
|
action: fun(),
|
|
28829
|
-
captionKey: propTypes$
|
|
28830
|
-
debounce: propTypes$
|
|
28831
|
-
disabled: propTypes$
|
|
28832
|
-
disableSelected: propTypes$
|
|
28833
|
-
comparisonKey: propTypes$
|
|
28904
|
+
captionKey: propTypes$1M.exports.string,
|
|
28905
|
+
debounce: propTypes$1M.exports.number,
|
|
28906
|
+
disabled: propTypes$1M.exports.bool,
|
|
28907
|
+
disableSelected: propTypes$1M.exports.bool,
|
|
28908
|
+
comparisonKey: propTypes$1M.exports.string,
|
|
28834
28909
|
formControl: impl(),
|
|
28835
28910
|
formMeta: impl(),
|
|
28836
|
-
hideSelected: propTypes$
|
|
28911
|
+
hideSelected: propTypes$1M.exports.bool,
|
|
28837
28912
|
icon: enumValue(SpsIcon),
|
|
28838
28913
|
onChange: fun(),
|
|
28839
|
-
options: propTypes$
|
|
28840
|
-
propTypes$
|
|
28841
|
-
propTypes$
|
|
28914
|
+
options: propTypes$1M.exports.oneOfType([
|
|
28915
|
+
propTypes$1M.exports.array,
|
|
28916
|
+
propTypes$1M.exports.instanceOf(Promise),
|
|
28842
28917
|
fun()
|
|
28843
28918
|
]).isRequired,
|
|
28844
|
-
placeholder: propTypes$
|
|
28845
|
-
tallOptionList: propTypes$
|
|
28846
|
-
textKey: propTypes$
|
|
28847
|
-
value: propTypes$
|
|
28848
|
-
zeroState: propTypes$
|
|
28849
|
-
loading: propTypes$
|
|
28919
|
+
placeholder: propTypes$1M.exports.string,
|
|
28920
|
+
tallOptionList: propTypes$1M.exports.bool,
|
|
28921
|
+
textKey: propTypes$1M.exports.string,
|
|
28922
|
+
value: propTypes$1M.exports.any,
|
|
28923
|
+
zeroState: propTypes$1M.exports.string,
|
|
28924
|
+
loading: propTypes$1M.exports.bool
|
|
28850
28925
|
});
|
|
28851
28926
|
function SpsMultiSelect(_w) {
|
|
28852
28927
|
var _x = _w, {
|
|
@@ -29402,29 +29477,29 @@ const propsDoc$N = {
|
|
|
29402
29477
|
};
|
|
29403
29478
|
const propTypes$P = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
29404
29479
|
action: fun(),
|
|
29405
|
-
captionKey: propTypes$
|
|
29406
|
-
comparisonKey: propTypes$
|
|
29407
|
-
disabled: propTypes$
|
|
29480
|
+
captionKey: propTypes$1M.exports.string,
|
|
29481
|
+
comparisonKey: propTypes$1M.exports.string,
|
|
29482
|
+
disabled: propTypes$1M.exports.bool,
|
|
29408
29483
|
formControl: impl(),
|
|
29409
29484
|
formMeta: impl(),
|
|
29410
|
-
notClearable: propTypes$
|
|
29411
|
-
options: propTypes$
|
|
29412
|
-
propTypes$
|
|
29413
|
-
propTypes$
|
|
29485
|
+
notClearable: propTypes$1M.exports.bool,
|
|
29486
|
+
options: propTypes$1M.exports.oneOfType([
|
|
29487
|
+
propTypes$1M.exports.array,
|
|
29488
|
+
propTypes$1M.exports.instanceOf(Promise),
|
|
29414
29489
|
fun()
|
|
29415
29490
|
]).isRequired,
|
|
29416
29491
|
onChange: fun(),
|
|
29417
|
-
placeholder: propTypes$
|
|
29418
|
-
searchDebounce: propTypes$
|
|
29419
|
-
searchPlaceholder: propTypes$
|
|
29420
|
-
tallOptionList: propTypes$
|
|
29421
|
-
textKey: propTypes$
|
|
29422
|
-
valueKey: propTypes$
|
|
29423
|
-
value: propTypes$
|
|
29424
|
-
zeroState: propTypes$
|
|
29425
|
-
autoFixWidth: propTypes$
|
|
29426
|
-
loading: propTypes$
|
|
29427
|
-
filterByTextAndCaptionKey: propTypes$
|
|
29492
|
+
placeholder: propTypes$1M.exports.string,
|
|
29493
|
+
searchDebounce: propTypes$1M.exports.number,
|
|
29494
|
+
searchPlaceholder: propTypes$1M.exports.string,
|
|
29495
|
+
tallOptionList: propTypes$1M.exports.bool,
|
|
29496
|
+
textKey: propTypes$1M.exports.string,
|
|
29497
|
+
valueKey: propTypes$1M.exports.string,
|
|
29498
|
+
value: propTypes$1M.exports.any,
|
|
29499
|
+
zeroState: propTypes$1M.exports.string,
|
|
29500
|
+
autoFixWidth: propTypes$1M.exports.bool,
|
|
29501
|
+
loading: propTypes$1M.exports.bool,
|
|
29502
|
+
filterByTextAndCaptionKey: propTypes$1M.exports.bool
|
|
29428
29503
|
});
|
|
29429
29504
|
const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
29430
29505
|
const _a = props2, {
|
|
@@ -29450,7 +29525,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
29450
29525
|
value: valueProp,
|
|
29451
29526
|
zeroState,
|
|
29452
29527
|
loading,
|
|
29453
|
-
filterByTextAndCaptionKey
|
|
29528
|
+
filterByTextAndCaptionKey,
|
|
29529
|
+
"data-testid": testId
|
|
29454
29530
|
} = _a, rest = __objRest(_a, [
|
|
29455
29531
|
"action",
|
|
29456
29532
|
"autoFixWidth",
|
|
@@ -29474,7 +29550,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
29474
29550
|
"value",
|
|
29475
29551
|
"zeroState",
|
|
29476
29552
|
"loading",
|
|
29477
|
-
"filterByTextAndCaptionKey"
|
|
29553
|
+
"filterByTextAndCaptionKey",
|
|
29554
|
+
"data-testid"
|
|
29478
29555
|
]);
|
|
29479
29556
|
const meta = formMeta || formControl2;
|
|
29480
29557
|
const { wrapperId, controlId } = useFormControlId(id2, meta);
|
|
@@ -29596,21 +29673,25 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
29596
29673
|
formMeta,
|
|
29597
29674
|
ref: rootElement,
|
|
29598
29675
|
role: "listbox",
|
|
29599
|
-
"aria-owns": state.optionIds
|
|
29676
|
+
"aria-owns": state.optionIds,
|
|
29677
|
+
"data-testid": testId
|
|
29600
29678
|
}, rest), /* @__PURE__ */ React.createElement("div", {
|
|
29601
29679
|
className: clsx("sps-select__dropctrl", disabled && "disabled"),
|
|
29602
29680
|
id: controlId,
|
|
29603
29681
|
tabIndex: 0,
|
|
29604
29682
|
onClick: handleControlButtonClick,
|
|
29605
29683
|
ref: controlButton,
|
|
29606
|
-
title: valueText
|
|
29684
|
+
title: valueText,
|
|
29685
|
+
"data-testid": `${testId}-dropctrl`
|
|
29607
29686
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
29608
29687
|
className: "sps-select__dropctrl-content"
|
|
29609
29688
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
29610
|
-
className: clsx("sps-select__value", !state.text && "sps-select__value--placeholder")
|
|
29689
|
+
className: clsx("sps-select__value", !state.text && "sps-select__value--placeholder"),
|
|
29690
|
+
"data-testid": `${testId}-value`
|
|
29611
29691
|
}, valueText), state.value && !notClearable && !disabled && /* @__PURE__ */ React.createElement("i", {
|
|
29612
29692
|
className: "sps-icon sps-icon-x-circle sps-select__clear-btn",
|
|
29613
|
-
onClick: handleClearIconClick
|
|
29693
|
+
onClick: handleClearIconClick,
|
|
29694
|
+
"data-testid": `${testId}-clear-value`
|
|
29614
29695
|
}), /* @__PURE__ */ React.createElement("i", {
|
|
29615
29696
|
className: "sps-icon sps-icon-chevron-down"
|
|
29616
29697
|
}))), /* @__PURE__ */ React.createElement(SpsOptionList, {
|
|
@@ -29638,7 +29719,8 @@ const SpsSelect = React.forwardRef((props2, ref2) => {
|
|
|
29638
29719
|
onOptionListChanged: handleOptionListChanged,
|
|
29639
29720
|
zeroState,
|
|
29640
29721
|
ignoreWidthStyles: autoFixWidth,
|
|
29641
|
-
loading
|
|
29722
|
+
loading,
|
|
29723
|
+
"data-testid": `${testId}-option-list`
|
|
29642
29724
|
}));
|
|
29643
29725
|
});
|
|
29644
29726
|
Object.assign(SpsSelect, {
|
|
@@ -29653,10 +29735,10 @@ const propsDoc$M = {
|
|
|
29653
29735
|
disabled: "boolean"
|
|
29654
29736
|
};
|
|
29655
29737
|
const propTypes$O = __spreadValues({
|
|
29656
|
-
numPages: propTypes$
|
|
29738
|
+
numPages: propTypes$1M.exports.number,
|
|
29657
29739
|
onPageChange: fun(),
|
|
29658
|
-
page: propTypes$
|
|
29659
|
-
disabled: propTypes$
|
|
29740
|
+
page: propTypes$1M.exports.number,
|
|
29741
|
+
disabled: propTypes$1M.exports.bool
|
|
29660
29742
|
}, spsGlobalPropTypes);
|
|
29661
29743
|
function SpsPageSelector(props2) {
|
|
29662
29744
|
const _a = props2, {
|
|
@@ -29763,11 +29845,11 @@ const propsDoc$L = {
|
|
|
29763
29845
|
};
|
|
29764
29846
|
const propTypes$N = __spreadValues({
|
|
29765
29847
|
onPageChange: fun().isRequired,
|
|
29766
|
-
page: propTypes$
|
|
29767
|
-
pageSize: propTypes$
|
|
29768
|
-
pageSizeOptions: propTypes$
|
|
29769
|
-
totalResults: propTypes$
|
|
29770
|
-
disabled: propTypes$
|
|
29848
|
+
page: propTypes$1M.exports.number,
|
|
29849
|
+
pageSize: propTypes$1M.exports.number,
|
|
29850
|
+
pageSizeOptions: propTypes$1M.exports.arrayOf(propTypes$1M.exports.number),
|
|
29851
|
+
totalResults: propTypes$1M.exports.number,
|
|
29852
|
+
disabled: propTypes$1M.exports.bool
|
|
29771
29853
|
}, spsGlobalPropTypes);
|
|
29772
29854
|
function SpsPagination(props2) {
|
|
29773
29855
|
const _a = props2, {
|
|
@@ -30012,14 +30094,14 @@ const propsDoc$J = {
|
|
|
30012
30094
|
tabs: "Array<string>"
|
|
30013
30095
|
};
|
|
30014
30096
|
const propTypes$M = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
30015
|
-
activeTab: propTypes$
|
|
30016
|
-
fullWidth: propTypes$
|
|
30097
|
+
activeTab: propTypes$1M.exports.string,
|
|
30098
|
+
fullWidth: propTypes$1M.exports.bool,
|
|
30017
30099
|
onTabChange: fun(),
|
|
30018
30100
|
onProductNameClick: fun(),
|
|
30019
|
-
productLogoSrc: propTypes$
|
|
30020
|
-
productName: propTypes$
|
|
30021
|
-
productNameHref: propTypes$
|
|
30022
|
-
tabs: propTypes$
|
|
30101
|
+
productLogoSrc: propTypes$1M.exports.string,
|
|
30102
|
+
productName: propTypes$1M.exports.string.isRequired,
|
|
30103
|
+
productNameHref: propTypes$1M.exports.string,
|
|
30104
|
+
tabs: propTypes$1M.exports.arrayOf(propTypes$1M.exports.string)
|
|
30023
30105
|
});
|
|
30024
30106
|
function SpsProductBar(props2) {
|
|
30025
30107
|
const _a = props2, {
|
|
@@ -30242,10 +30324,10 @@ const propsDoc$I = {
|
|
|
30242
30324
|
onClose: "() => void"
|
|
30243
30325
|
};
|
|
30244
30326
|
const propTypes$L = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
30245
|
-
percentComplete: propTypes$
|
|
30246
|
-
title: propTypes$
|
|
30247
|
-
detail: propTypes$
|
|
30248
|
-
disabled: propTypes$
|
|
30327
|
+
percentComplete: propTypes$1M.exports.number,
|
|
30328
|
+
title: propTypes$1M.exports.string,
|
|
30329
|
+
detail: propTypes$1M.exports.string,
|
|
30330
|
+
disabled: propTypes$1M.exports.bool,
|
|
30249
30331
|
onClose: fun()
|
|
30250
30332
|
});
|
|
30251
30333
|
function SpsProgressBar(props2) {
|
|
@@ -30362,6 +30444,37 @@ const SpsSteppedProgressBarExamples = {
|
|
|
30362
30444
|
}
|
|
30363
30445
|
`
|
|
30364
30446
|
},
|
|
30447
|
+
color: {
|
|
30448
|
+
description: () => /* @__PURE__ */ React.createElement("h4", null, "Alternate Color"),
|
|
30449
|
+
react: code`
|
|
30450
|
+
function Component() {
|
|
30451
|
+
const iconsData = [
|
|
30452
|
+
{index: 4, icon: SpsIcon.CALENDAR},
|
|
30453
|
+
{index: 8, icon: SpsIcon.CALENDAR},
|
|
30454
|
+
];
|
|
30455
|
+
const tooltipsData = [
|
|
30456
|
+
{index: 0, title: 'Title 1', description: 'Description'},
|
|
30457
|
+
{index: 4, title: 'Title 5', description: 'Description'},
|
|
30458
|
+
{index: 8, title: 'Title 9', description: 'Description'},
|
|
30459
|
+
{index: 11, title: 'Title 12', description: 'Description'},
|
|
30460
|
+
]
|
|
30461
|
+
|
|
30462
|
+
return (
|
|
30463
|
+
<SpsCard>
|
|
30464
|
+
<SpsSteppedProgressBar
|
|
30465
|
+
title="Process Name"
|
|
30466
|
+
showStepsCounter={true}
|
|
30467
|
+
stepsCount={12}
|
|
30468
|
+
completedStepsCount={4}
|
|
30469
|
+
icons={iconsData}
|
|
30470
|
+
tooltipsData={tooltipsData}
|
|
30471
|
+
color={SteppedProgressBarColor.GRAY}
|
|
30472
|
+
/>
|
|
30473
|
+
</SpsCard>
|
|
30474
|
+
)
|
|
30475
|
+
}
|
|
30476
|
+
`
|
|
30477
|
+
},
|
|
30365
30478
|
completed: {
|
|
30366
30479
|
description: () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h4", null, "Completed State"), /* @__PURE__ */ React.createElement("p", null, "Once complete, the progress bar appears in green.")),
|
|
30367
30480
|
react: code`
|
|
@@ -30951,16 +31064,18 @@ const propsDoc$G = {
|
|
|
30951
31064
|
disabled: "boolean",
|
|
30952
31065
|
showStepsCounter: "boolean",
|
|
30953
31066
|
icons: "IconsProps[]",
|
|
30954
|
-
tooltipsData: "TooltipsProps[]"
|
|
31067
|
+
tooltipsData: "TooltipsProps[]",
|
|
31068
|
+
color: "SteppedProgressBarColor"
|
|
30955
31069
|
};
|
|
30956
31070
|
const propTypes$J = {
|
|
30957
|
-
title: propTypes$
|
|
30958
|
-
stepsCount: propTypes$
|
|
30959
|
-
completedStepsCount: propTypes$
|
|
30960
|
-
disabled: propTypes$
|
|
30961
|
-
showStepsCounter: propTypes$
|
|
30962
|
-
icons: propTypes$
|
|
30963
|
-
tooltipsData: propTypes$
|
|
31071
|
+
title: propTypes$1M.exports.string,
|
|
31072
|
+
stepsCount: propTypes$1M.exports.number,
|
|
31073
|
+
completedStepsCount: propTypes$1M.exports.number,
|
|
31074
|
+
disabled: propTypes$1M.exports.bool,
|
|
31075
|
+
showStepsCounter: propTypes$1M.exports.bool,
|
|
31076
|
+
icons: propTypes$1M.exports.arrayOf(impl()),
|
|
31077
|
+
tooltipsData: propTypes$1M.exports.arrayOf(impl()),
|
|
31078
|
+
color: enumValue(SteppedProgressBarColor)
|
|
30964
31079
|
};
|
|
30965
31080
|
function SpsSteppedProgressBar(props2) {
|
|
30966
31081
|
const {
|
|
@@ -30971,7 +31086,8 @@ function SpsSteppedProgressBar(props2) {
|
|
|
30971
31086
|
showStepsCounter,
|
|
30972
31087
|
icons,
|
|
30973
31088
|
tooltipsData,
|
|
30974
|
-
className
|
|
31089
|
+
className,
|
|
31090
|
+
color = SteppedProgressBarColor.PURPLE
|
|
30975
31091
|
} = props2;
|
|
30976
31092
|
function findIcon(idx) {
|
|
30977
31093
|
return icons && icons.find((i2) => i2.index === idx);
|
|
@@ -30980,7 +31096,7 @@ function SpsSteppedProgressBar(props2) {
|
|
|
30980
31096
|
return tooltipsData && tooltipsData.find((i2) => i2.index === idx);
|
|
30981
31097
|
}
|
|
30982
31098
|
const data = Array.from(Array(stepsCount)).map(() => useElementId(null).current);
|
|
30983
|
-
const classes = clsx("sps-stepped-progress-bar", completedStepsCount === stepsCount && "sps-stepped-progress-bar--complete", disabled && "sps-stepped-progress-bar--disabled", className);
|
|
31099
|
+
const classes = clsx("sps-stepped-progress-bar", `sps-stepped-progress-bar--${color}`, completedStepsCount === stepsCount && "sps-stepped-progress-bar--complete", disabled && "sps-stepped-progress-bar--disabled", className);
|
|
30984
31100
|
return /* @__PURE__ */ React.createElement("div", {
|
|
30985
31101
|
className: classes
|
|
30986
31102
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -31117,16 +31233,16 @@ const propsDoc$F = {
|
|
|
31117
31233
|
value: "any"
|
|
31118
31234
|
};
|
|
31119
31235
|
const propTypes$I = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31120
|
-
checked: propTypes$
|
|
31121
|
-
disabled: propTypes$
|
|
31236
|
+
checked: propTypes$1M.exports.bool,
|
|
31237
|
+
disabled: propTypes$1M.exports.bool,
|
|
31122
31238
|
formControl: impl(),
|
|
31123
31239
|
formMeta: impl(),
|
|
31124
|
-
inline: propTypes$
|
|
31125
|
-
label: propTypes$
|
|
31126
|
-
name: propTypes$
|
|
31240
|
+
inline: propTypes$1M.exports.bool,
|
|
31241
|
+
label: propTypes$1M.exports.string,
|
|
31242
|
+
name: propTypes$1M.exports.string.isRequired,
|
|
31127
31243
|
onChange: fun(),
|
|
31128
31244
|
ref: ref(),
|
|
31129
|
-
value: propTypes$
|
|
31245
|
+
value: propTypes$1M.exports.any
|
|
31130
31246
|
});
|
|
31131
31247
|
function SpsRadioButton(_y) {
|
|
31132
31248
|
var _z = _y, {
|
|
@@ -31291,7 +31407,7 @@ const propsDoc$E = {
|
|
|
31291
31407
|
maxHeight: "string"
|
|
31292
31408
|
};
|
|
31293
31409
|
const propTypes$H = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31294
|
-
maxHeight: propTypes$
|
|
31410
|
+
maxHeight: propTypes$1M.exports.string
|
|
31295
31411
|
});
|
|
31296
31412
|
function SpsScrollableContainer(props2) {
|
|
31297
31413
|
const {
|
|
@@ -31391,8 +31507,8 @@ const propsDoc$D = {
|
|
|
31391
31507
|
onClear: "() => void"
|
|
31392
31508
|
};
|
|
31393
31509
|
const propTypes$G = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
31394
|
-
resultsCount: propTypes$
|
|
31395
|
-
totalResults: propTypes$
|
|
31510
|
+
resultsCount: propTypes$1M.exports.number,
|
|
31511
|
+
totalResults: propTypes$1M.exports.number,
|
|
31396
31512
|
onClear: fun()
|
|
31397
31513
|
});
|
|
31398
31514
|
function SpsSearchResultsBar(props2) {
|
|
@@ -32252,12 +32368,12 @@ const propsDoc$C = {
|
|
|
32252
32368
|
widthRem: "number"
|
|
32253
32369
|
};
|
|
32254
32370
|
const propTypes$F = __spreadValues({
|
|
32255
|
-
sortKey: propTypes$
|
|
32256
|
-
sortDisabled: propTypes$
|
|
32257
|
-
sort: propTypes$
|
|
32371
|
+
sortKey: propTypes$1M.exports.string,
|
|
32372
|
+
sortDisabled: propTypes$1M.exports.bool,
|
|
32373
|
+
sort: propTypes$1M.exports.arrayOf(impl()),
|
|
32258
32374
|
onSortChange: fun(),
|
|
32259
|
-
widthPx: propTypes$
|
|
32260
|
-
widthRem: propTypes$
|
|
32375
|
+
widthPx: propTypes$1M.exports.number,
|
|
32376
|
+
widthRem: propTypes$1M.exports.number
|
|
32261
32377
|
}, spsGlobalPropTypes);
|
|
32262
32378
|
function SpsSortingHeaderCell(_A) {
|
|
32263
32379
|
var _B = _A, {
|
|
@@ -32327,7 +32443,7 @@ const propsDoc$B = {
|
|
|
32327
32443
|
onSortChange: "SortChangeHandler"
|
|
32328
32444
|
};
|
|
32329
32445
|
const propTypes$E = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32330
|
-
sort: propTypes$
|
|
32446
|
+
sort: propTypes$1M.exports.arrayOf(impl()),
|
|
32331
32447
|
onSortChange: fun()
|
|
32332
32448
|
});
|
|
32333
32449
|
function SpsSortingHeader(_C) {
|
|
@@ -32405,12 +32521,12 @@ const propsDoc$A = {
|
|
|
32405
32521
|
options: "Array<SpsActionMethod | [SpsActionDescriptor, () => void]>"
|
|
32406
32522
|
};
|
|
32407
32523
|
const propTypes$D = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32408
|
-
disabled: propTypes$
|
|
32409
|
-
href: propTypes$
|
|
32410
|
-
label: propTypes$
|
|
32524
|
+
disabled: propTypes$1M.exports.bool,
|
|
32525
|
+
href: propTypes$1M.exports.string,
|
|
32526
|
+
label: propTypes$1M.exports.string,
|
|
32411
32527
|
icon: enumValue(SpsIcon),
|
|
32412
32528
|
kind: enumValue(StdButtonKind),
|
|
32413
|
-
options: propTypes$
|
|
32529
|
+
options: propTypes$1M.exports.arrayOf(propTypes$1M.exports.oneOfType([propTypes$1M.exports.func, propTypes$1M.exports.any]))
|
|
32414
32530
|
});
|
|
32415
32531
|
function SpsSplitButton(props2) {
|
|
32416
32532
|
const _a = props2, {
|
|
@@ -32567,7 +32683,7 @@ const propsDoc$z = {
|
|
|
32567
32683
|
channelId: { type: "string", required: true }
|
|
32568
32684
|
};
|
|
32569
32685
|
const propTypes$C = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32570
|
-
channelId: propTypes$
|
|
32686
|
+
channelId: propTypes$1M.exports.string.isRequired
|
|
32571
32687
|
});
|
|
32572
32688
|
function SpsSlackLink(props2) {
|
|
32573
32689
|
const _a = props2, {
|
|
@@ -32649,8 +32765,8 @@ const propsDoc$x = {
|
|
|
32649
32765
|
onToggle: "(isExpanded: boolean) => void"
|
|
32650
32766
|
};
|
|
32651
32767
|
const propTypes$A = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32652
|
-
expanded: propTypes$
|
|
32653
|
-
selected: propTypes$
|
|
32768
|
+
expanded: propTypes$1M.exports.bool,
|
|
32769
|
+
selected: propTypes$1M.exports.bool,
|
|
32654
32770
|
onToggle: fun()
|
|
32655
32771
|
});
|
|
32656
32772
|
function SpsSummaryListRow(props2) {
|
|
@@ -32732,10 +32848,10 @@ const propsDoc$w = {
|
|
|
32732
32848
|
width: "string"
|
|
32733
32849
|
};
|
|
32734
32850
|
const propTypes$z = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
32735
|
-
borderless: propTypes$
|
|
32736
|
-
lean: propTypes$
|
|
32737
|
-
leaner: propTypes$
|
|
32738
|
-
width: propTypes$
|
|
32851
|
+
borderless: propTypes$1M.exports.bool,
|
|
32852
|
+
lean: propTypes$1M.exports.bool,
|
|
32853
|
+
leaner: propTypes$1M.exports.bool,
|
|
32854
|
+
width: propTypes$1M.exports.string
|
|
32739
32855
|
});
|
|
32740
32856
|
function SpsSummaryListColumn(props2) {
|
|
32741
32857
|
const _a = props2, {
|
|
@@ -33068,17 +33184,17 @@ const props = {
|
|
|
33068
33184
|
suppressTooltips: "boolean"
|
|
33069
33185
|
};
|
|
33070
33186
|
const propTypes$y = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
33071
|
-
tasks: propTypes$
|
|
33187
|
+
tasks: propTypes$1M.exports.arrayOf(propTypes$1M.exports.any),
|
|
33072
33188
|
taskQueuePosition: enumValue(Position),
|
|
33073
|
-
notificationText: propTypes$
|
|
33074
|
-
tooltipConfig: propTypes$
|
|
33189
|
+
notificationText: propTypes$1M.exports.string,
|
|
33190
|
+
tooltipConfig: propTypes$1M.exports.shape({
|
|
33075
33191
|
position: enumValue(Position),
|
|
33076
33192
|
kind: enumValue(TooltipKind)
|
|
33077
33193
|
}),
|
|
33078
33194
|
onClose: fun(),
|
|
33079
33195
|
onOpen: fun(),
|
|
33080
33196
|
onClearCompleted: fun(),
|
|
33081
|
-
suppressTooltips: propTypes$
|
|
33197
|
+
suppressTooltips: propTypes$1M.exports.bool
|
|
33082
33198
|
});
|
|
33083
33199
|
function SpsTaskQueue(_E) {
|
|
33084
33200
|
var _F = _E, {
|
|
@@ -33614,14 +33730,14 @@ const propsDoc$v = {
|
|
|
33614
33730
|
value: "string"
|
|
33615
33731
|
};
|
|
33616
33732
|
const propTypes$x = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
33617
|
-
disabled: propTypes$
|
|
33733
|
+
disabled: propTypes$1M.exports.bool,
|
|
33618
33734
|
formControl: impl(),
|
|
33619
33735
|
formMeta: impl(),
|
|
33620
33736
|
icon: enumValue(SpsIcon),
|
|
33621
|
-
name: propTypes$
|
|
33737
|
+
name: propTypes$1M.exports.string,
|
|
33622
33738
|
onChange: fun(),
|
|
33623
|
-
placeholder: propTypes$
|
|
33624
|
-
value: propTypes$
|
|
33739
|
+
placeholder: propTypes$1M.exports.string,
|
|
33740
|
+
value: propTypes$1M.exports.string
|
|
33625
33741
|
});
|
|
33626
33742
|
const SpsTextInput = React.forwardRef((_G, ref2) => {
|
|
33627
33743
|
var _H = _G, {
|
|
@@ -33699,6 +33815,7 @@ const SpsTextInput = React.forwardRef((_G, ref2) => {
|
|
|
33699
33815
|
value,
|
|
33700
33816
|
disabled
|
|
33701
33817
|
}, rest)), value && !disabled && /* @__PURE__ */ React.createElement("i", {
|
|
33818
|
+
"data-testid": `${testId}__input_clear`,
|
|
33702
33819
|
className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn",
|
|
33703
33820
|
onClick: clear
|
|
33704
33821
|
})));
|
|
@@ -33810,15 +33927,15 @@ const propsDoc$u = {
|
|
|
33810
33927
|
value: "string"
|
|
33811
33928
|
};
|
|
33812
33929
|
const propTypes$w = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
33813
|
-
disabled: propTypes$
|
|
33930
|
+
disabled: propTypes$1M.exports.bool,
|
|
33814
33931
|
formControl: impl(),
|
|
33815
33932
|
formMeta: impl(),
|
|
33816
|
-
name: propTypes$
|
|
33933
|
+
name: propTypes$1M.exports.string,
|
|
33817
33934
|
onChange: fun(),
|
|
33818
|
-
placeholder: propTypes$
|
|
33935
|
+
placeholder: propTypes$1M.exports.string,
|
|
33819
33936
|
ref: ref(),
|
|
33820
|
-
rows: propTypes$
|
|
33821
|
-
value: propTypes$
|
|
33937
|
+
rows: propTypes$1M.exports.number,
|
|
33938
|
+
value: propTypes$1M.exports.string
|
|
33822
33939
|
});
|
|
33823
33940
|
function SpsTextarea(_I) {
|
|
33824
33941
|
var _J = _I, {
|
|
@@ -34012,12 +34129,12 @@ const propsDoc$t = {
|
|
|
34012
34129
|
warning: "boolean"
|
|
34013
34130
|
};
|
|
34014
34131
|
const propTypes$v = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34015
|
-
href: propTypes$
|
|
34016
|
-
target: propTypes$
|
|
34132
|
+
href: propTypes$1M.exports.string,
|
|
34133
|
+
target: propTypes$1M.exports.string,
|
|
34017
34134
|
icon: nodeOrRenderFn.isRequired,
|
|
34018
|
-
error: propTypes$
|
|
34019
|
-
title: propTypes$
|
|
34020
|
-
warning: propTypes$
|
|
34135
|
+
error: propTypes$1M.exports.bool,
|
|
34136
|
+
title: propTypes$1M.exports.string.isRequired,
|
|
34137
|
+
warning: propTypes$1M.exports.bool
|
|
34021
34138
|
});
|
|
34022
34139
|
function SpsTile(props2) {
|
|
34023
34140
|
const _a = props2, {
|
|
@@ -34336,10 +34453,10 @@ const propsDoc$r = {
|
|
|
34336
34453
|
active: "boolean"
|
|
34337
34454
|
};
|
|
34338
34455
|
const propTypes$t = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34339
|
-
value: propTypes$
|
|
34340
|
-
title: propTypes$
|
|
34456
|
+
value: propTypes$1M.exports.number.isRequired,
|
|
34457
|
+
title: propTypes$1M.exports.string.isRequired,
|
|
34341
34458
|
kind: enumValue(SpsFilterTileKind),
|
|
34342
|
-
active: propTypes$
|
|
34459
|
+
active: propTypes$1M.exports.bool
|
|
34343
34460
|
});
|
|
34344
34461
|
function SpsFilterTile(props2) {
|
|
34345
34462
|
const _a = props2, {
|
|
@@ -34477,18 +34594,18 @@ const propsDoc$p = {
|
|
|
34477
34594
|
onChange: "(isActive: boolean) => void"
|
|
34478
34595
|
};
|
|
34479
34596
|
const propTypes$r = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34480
|
-
active: propTypes$
|
|
34481
|
-
activeDescription: deprecated(propTypes$
|
|
34482
|
-
activeLabel: deprecated(propTypes$
|
|
34483
|
-
description: propTypes$
|
|
34484
|
-
disabled: propTypes$
|
|
34597
|
+
active: propTypes$1M.exports.bool,
|
|
34598
|
+
activeDescription: deprecated(propTypes$1M.exports.string),
|
|
34599
|
+
activeLabel: deprecated(propTypes$1M.exports.string),
|
|
34600
|
+
description: propTypes$1M.exports.string,
|
|
34601
|
+
disabled: propTypes$1M.exports.bool,
|
|
34485
34602
|
formControl: impl(),
|
|
34486
34603
|
formMeta: impl(),
|
|
34487
|
-
id: propTypes$
|
|
34488
|
-
inactiveDescription: deprecated(propTypes$
|
|
34489
|
-
inactiveLabel: deprecated(propTypes$
|
|
34490
|
-
label: propTypes$
|
|
34491
|
-
large: propTypes$
|
|
34604
|
+
id: propTypes$1M.exports.string,
|
|
34605
|
+
inactiveDescription: deprecated(propTypes$1M.exports.string),
|
|
34606
|
+
inactiveLabel: deprecated(propTypes$1M.exports.string),
|
|
34607
|
+
label: propTypes$1M.exports.string,
|
|
34608
|
+
large: propTypes$1M.exports.bool,
|
|
34492
34609
|
onChange: fun(),
|
|
34493
34610
|
ref: ref()
|
|
34494
34611
|
});
|
|
@@ -34673,7 +34790,7 @@ const propsDoc$o = {
|
|
|
34673
34790
|
icon: "SpsIcon"
|
|
34674
34791
|
};
|
|
34675
34792
|
const propTypes$q = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34676
|
-
heading: propTypes$
|
|
34793
|
+
heading: propTypes$1M.exports.string,
|
|
34677
34794
|
icon: enumValue(SpsIcon)
|
|
34678
34795
|
});
|
|
34679
34796
|
function SpsWorkflow(props2) {
|
|
@@ -34725,7 +34842,7 @@ const propsDoc$n = {
|
|
|
34725
34842
|
progress: "number"
|
|
34726
34843
|
};
|
|
34727
34844
|
const propTypes$p = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34728
|
-
progress: propTypes$
|
|
34845
|
+
progress: propTypes$1M.exports.number,
|
|
34729
34846
|
size: enumValue(RingSize)
|
|
34730
34847
|
});
|
|
34731
34848
|
function SpsProgressRing({
|
|
@@ -34770,7 +34887,7 @@ const propsDoc$m = {
|
|
|
34770
34887
|
phases: "WizardPhase[]"
|
|
34771
34888
|
};
|
|
34772
34889
|
const propTypes$o = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34773
|
-
phases: propTypes$
|
|
34890
|
+
phases: propTypes$1M.exports.arrayOf(impl())
|
|
34774
34891
|
});
|
|
34775
34892
|
const CSS_BLOCK$2 = "sps-wizard-sidebar";
|
|
34776
34893
|
function SpsWizardSidebar({
|
|
@@ -34821,10 +34938,10 @@ const propsDoc$l = {
|
|
|
34821
34938
|
};
|
|
34822
34939
|
const propTypes$n = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
34823
34940
|
condition: enumValue(WizardSubstepConditions).isRequired,
|
|
34824
|
-
display: propTypes$
|
|
34825
|
-
orderPosition: propTypes$
|
|
34826
|
-
propTypes$
|
|
34827
|
-
propTypes$
|
|
34941
|
+
display: propTypes$1M.exports.string.isRequired,
|
|
34942
|
+
orderPosition: propTypes$1M.exports.oneOfType([
|
|
34943
|
+
propTypes$1M.exports.string,
|
|
34944
|
+
propTypes$1M.exports.number
|
|
34828
34945
|
]).isRequired
|
|
34829
34946
|
});
|
|
34830
34947
|
function SpsWizardSubstep(props2) {
|
|
@@ -35025,7 +35142,7 @@ const propsDoc$i = {
|
|
|
35025
35142
|
};
|
|
35026
35143
|
const propTypes$k = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35027
35144
|
icon: enumValue(SpsIcon).isRequired,
|
|
35028
|
-
title: propTypes$
|
|
35145
|
+
title: propTypes$1M.exports.string.isRequired
|
|
35029
35146
|
});
|
|
35030
35147
|
function SpsWorkflowStep(props2) {
|
|
35031
35148
|
const _a = props2, {
|
|
@@ -35136,9 +35253,9 @@ const propsDoc$h = {
|
|
|
35136
35253
|
subHeading: "string"
|
|
35137
35254
|
};
|
|
35138
35255
|
const propTypes$j = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35139
|
-
artwork: propTypes$
|
|
35140
|
-
heading: propTypes$
|
|
35141
|
-
subHeading: propTypes$
|
|
35256
|
+
artwork: propTypes$1M.exports.string.isRequired,
|
|
35257
|
+
heading: propTypes$1M.exports.string.isRequired,
|
|
35258
|
+
subHeading: propTypes$1M.exports.string
|
|
35142
35259
|
});
|
|
35143
35260
|
function SpsZeroState(props2) {
|
|
35144
35261
|
const _a = props2, {
|
|
@@ -35414,10 +35531,10 @@ const propsDoc$e = {
|
|
|
35414
35531
|
onCollapse: "() => void"
|
|
35415
35532
|
};
|
|
35416
35533
|
const propTypes$g = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35417
|
-
title: propTypes$
|
|
35418
|
-
expanded: propTypes$
|
|
35419
|
-
heightPx: propTypes$
|
|
35420
|
-
heightRem: propTypes$
|
|
35534
|
+
title: propTypes$1M.exports.string,
|
|
35535
|
+
expanded: propTypes$1M.exports.bool,
|
|
35536
|
+
heightPx: propTypes$1M.exports.number,
|
|
35537
|
+
heightRem: propTypes$1M.exports.number,
|
|
35421
35538
|
onExpand: fun(),
|
|
35422
35539
|
onCollapse: fun()
|
|
35423
35540
|
});
|
|
@@ -35843,9 +35960,9 @@ const propsDoc$c = {
|
|
|
35843
35960
|
onFilterChange: "ChangeEventHandler<HTMLInputElement>"
|
|
35844
35961
|
};
|
|
35845
35962
|
const propTypes$e = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35846
|
-
value: propTypes$
|
|
35847
|
-
placeholder: propTypes$
|
|
35848
|
-
formMeta: propTypes$
|
|
35963
|
+
value: propTypes$1M.exports.string,
|
|
35964
|
+
placeholder: propTypes$1M.exports.string,
|
|
35965
|
+
formMeta: propTypes$1M.exports.oneOfType([
|
|
35849
35966
|
impl(),
|
|
35850
35967
|
impl()
|
|
35851
35968
|
]),
|
|
@@ -35885,7 +36002,7 @@ const propsDoc$b = {
|
|
|
35885
36002
|
showCondition: "boolean"
|
|
35886
36003
|
};
|
|
35887
36004
|
const propTypes$d = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
35888
|
-
showCondition: propTypes$
|
|
36005
|
+
showCondition: propTypes$1M.exports.bool
|
|
35889
36006
|
});
|
|
35890
36007
|
function SpsConditionalField(_S) {
|
|
35891
36008
|
var _T = _S, {
|
|
@@ -36217,7 +36334,11 @@ const MANIFEST = {
|
|
|
36217
36334
|
},
|
|
36218
36335
|
"List Toolbar": {
|
|
36219
36336
|
description: () => /* @__PURE__ */ React.createElement("p", null, "The List Toolbar provides the ability to interact with elements in a list or table. It can contain elements to search, filter, sort, or perform other actions."),
|
|
36220
|
-
components: [
|
|
36337
|
+
components: [
|
|
36338
|
+
SpsListToolbar,
|
|
36339
|
+
SpsListToolbarSearch,
|
|
36340
|
+
SpsListToolbarSearchInfo
|
|
36341
|
+
],
|
|
36221
36342
|
examples: SpsListToolbarExamples
|
|
36222
36343
|
},
|
|
36223
36344
|
"Micro Block": {
|
|
@@ -36359,12 +36480,12 @@ const MANIFEST = {
|
|
|
36359
36480
|
examples: SpsZeroStateExamples
|
|
36360
36481
|
}
|
|
36361
36482
|
};
|
|
36362
|
-
const moment$
|
|
36483
|
+
const moment$1 = moment$6.default || moment$6;
|
|
36363
36484
|
function newWeekArray() {
|
|
36364
36485
|
return new Array(7).fill(null);
|
|
36365
36486
|
}
|
|
36366
36487
|
function generateWeeks(date2) {
|
|
36367
|
-
const dateAsMoment = moment$
|
|
36488
|
+
const dateAsMoment = moment$1({
|
|
36368
36489
|
year: date2.year,
|
|
36369
36490
|
month: date2.month - 1,
|
|
36370
36491
|
date: 1
|
|
@@ -36402,13 +36523,13 @@ function useMoment(date2) {
|
|
|
36402
36523
|
React.useEffect(() => setMomentValue(SimpleDateUtils.toMoment(date2)), [date2]);
|
|
36403
36524
|
return momentValue;
|
|
36404
36525
|
}
|
|
36405
|
-
const moment
|
|
36526
|
+
const moment = moment$6.default || moment$6;
|
|
36406
36527
|
const propTypes$c = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36407
36528
|
maxDate: impl(),
|
|
36408
36529
|
minDate: impl(),
|
|
36409
36530
|
onNewSelection: fun().isRequired,
|
|
36410
36531
|
selectedDate: impl(),
|
|
36411
|
-
selectedRange: propTypes$
|
|
36532
|
+
selectedRange: propTypes$1M.exports.arrayOf(impl())
|
|
36412
36533
|
});
|
|
36413
36534
|
const CSS_ELEMENT$1 = "sps-datepicker__calendar";
|
|
36414
36535
|
function determineViewMonth({
|
|
@@ -36509,7 +36630,7 @@ function SpsDatepickerCalendar(props2) {
|
|
|
36509
36630
|
className: `${CSS_ELEMENT$1}-body`
|
|
36510
36631
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
36511
36632
|
className: "sps-datepicker__calendar-row"
|
|
36512
|
-
}, moment
|
|
36633
|
+
}, moment.weekdaysShort().map((dayName) => /* @__PURE__ */ React.createElement("div", {
|
|
36513
36634
|
key: dayName,
|
|
36514
36635
|
className: "sps-datepicker__calendar-header-cell"
|
|
36515
36636
|
}, dayName))), cal.map((week, i2) => /* @__PURE__ */ React.createElement("div", {
|
|
@@ -36528,7 +36649,7 @@ Object.assign(SpsDatepickerCalendar, {
|
|
|
36528
36649
|
const CSS_ELEMENT = "sps-datepicker__popup";
|
|
36529
36650
|
const propTypes$b = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36530
36651
|
attachTo: ref().isRequired,
|
|
36531
|
-
isOpen: propTypes$
|
|
36652
|
+
isOpen: propTypes$1M.exports.bool.isRequired
|
|
36532
36653
|
});
|
|
36533
36654
|
const SpsDatepickerPopup = React.forwardRef((_U, ref2) => {
|
|
36534
36655
|
var _V = _U, {
|
|
@@ -36566,7 +36687,7 @@ const propsDoc$a = {
|
|
|
36566
36687
|
value: "SimpleDate"
|
|
36567
36688
|
};
|
|
36568
36689
|
const propTypes$a = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36569
|
-
disabled: propTypes$
|
|
36690
|
+
disabled: propTypes$1M.exports.bool,
|
|
36570
36691
|
formMeta: impl(),
|
|
36571
36692
|
maxDate: impl(),
|
|
36572
36693
|
minDate: impl(),
|
|
@@ -36677,7 +36798,6 @@ Object.assign(SpsDatepickerV2, {
|
|
|
36677
36798
|
propTypes: propTypes$a,
|
|
36678
36799
|
displayName: "SpsDatepickerV2"
|
|
36679
36800
|
});
|
|
36680
|
-
const moment = moment$7.default || moment$7;
|
|
36681
36801
|
const propsDoc$9 = {
|
|
36682
36802
|
disabled: "boolean",
|
|
36683
36803
|
formMeta: "SpsFormFieldMeta<SimpleDateRange | DatePreset>",
|
|
@@ -36688,12 +36808,12 @@ const propsDoc$9 = {
|
|
|
36688
36808
|
value: "SimpleDateRange | DatePreset"
|
|
36689
36809
|
};
|
|
36690
36810
|
const propTypes$9 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36691
|
-
disabled: propTypes$
|
|
36811
|
+
disabled: propTypes$1M.exports.bool,
|
|
36692
36812
|
formMeta: impl(),
|
|
36693
36813
|
maxDate: impl(),
|
|
36694
36814
|
minDate: impl(),
|
|
36695
36815
|
onChange: fun(),
|
|
36696
|
-
presets: propTypes$
|
|
36816
|
+
presets: propTypes$1M.exports.arrayOf(impl())
|
|
36697
36817
|
});
|
|
36698
36818
|
const CSS_BLOCK = "sps-datepicker";
|
|
36699
36819
|
const DEFAULT_PRESETS = [
|
|
@@ -36734,6 +36854,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
36734
36854
|
const textInput = React.useRef();
|
|
36735
36855
|
const popupRef = React.useRef();
|
|
36736
36856
|
const [stringValue, setStringValue] = React.useState(Array.isArray(value) ? SimpleDateUtils.toStringRange(value) : "");
|
|
36857
|
+
const [selectedPreset, setSelectedPreset] = React.useState(null);
|
|
36737
36858
|
const [displayRange, setDisplayRange] = React.useState();
|
|
36738
36859
|
const {
|
|
36739
36860
|
showPopup,
|
|
@@ -36764,6 +36885,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
36764
36885
|
updateValue(newValue);
|
|
36765
36886
|
setStringValue(SimpleDateUtils.toStringRange(newValue));
|
|
36766
36887
|
setDisplayRange(null);
|
|
36888
|
+
setSelectedPreset(null);
|
|
36767
36889
|
}
|
|
36768
36890
|
function handleTextInputChange(event) {
|
|
36769
36891
|
setStringValue(event.target.value);
|
|
@@ -36775,6 +36897,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
36775
36897
|
setStringValue("");
|
|
36776
36898
|
updateValue();
|
|
36777
36899
|
setDisplayRange(null);
|
|
36900
|
+
setSelectedPreset(null);
|
|
36778
36901
|
}
|
|
36779
36902
|
function handleTextInputKeyDown(event) {
|
|
36780
36903
|
switch (event.key) {
|
|
@@ -36789,28 +36912,39 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
36789
36912
|
}
|
|
36790
36913
|
}
|
|
36791
36914
|
function selectPreset(newPreset) {
|
|
36915
|
+
if (!newPreset) {
|
|
36916
|
+
setSelectedPreset(null);
|
|
36917
|
+
updateValue(null);
|
|
36918
|
+
return;
|
|
36919
|
+
}
|
|
36792
36920
|
setStringValue("");
|
|
36793
|
-
|
|
36921
|
+
setSelectedPreset(newPreset);
|
|
36922
|
+
updateValue(SimpleDateUtils.createRangeFromPreset(newPreset));
|
|
36794
36923
|
}
|
|
36924
|
+
React.useEffect(() => {
|
|
36925
|
+
if (!value) {
|
|
36926
|
+
return;
|
|
36927
|
+
}
|
|
36928
|
+
if (presets !== DEFAULT_PRESETS && Array.isArray(value)) {
|
|
36929
|
+
const preselectedRange = SimpleDateUtils.toStringRange(value);
|
|
36930
|
+
const preselectedPreset = presets.find((preset2) => preselectedRange === SimpleDateUtils.toStringRange(SimpleDateUtils.createRangeFromPreset(preset2)));
|
|
36931
|
+
if (preselectedPreset) {
|
|
36932
|
+
selectPreset(preselectedPreset);
|
|
36933
|
+
}
|
|
36934
|
+
}
|
|
36935
|
+
}, []);
|
|
36795
36936
|
React.useEffect(() => {
|
|
36796
36937
|
if (!value) {
|
|
36797
36938
|
clear();
|
|
36798
|
-
} else if (Array.isArray(value)) {
|
|
36939
|
+
} else if (Array.isArray(value) && !selectedPreset) {
|
|
36799
36940
|
if (value.every((v2) => SimpleDateUtils.isValid(v2))) {
|
|
36800
36941
|
setStringValue(SimpleDateUtils.toStringRange(value));
|
|
36801
36942
|
}
|
|
36802
36943
|
setDisplayRange(null);
|
|
36803
|
-
} else if (
|
|
36804
|
-
|
|
36805
|
-
} else {
|
|
36806
|
-
const end2 = moment();
|
|
36807
|
-
const start = end2.clone().subtract(moment.duration(value.definition));
|
|
36808
|
-
setDisplayRange([
|
|
36809
|
-
SimpleDateUtils.createFrom(start),
|
|
36810
|
-
SimpleDateUtils.createFrom(end2)
|
|
36811
|
-
]);
|
|
36944
|
+
} else if (Array.isArray(value) && selectedPreset) {
|
|
36945
|
+
setStringValue("");
|
|
36812
36946
|
}
|
|
36813
|
-
}, [value]);
|
|
36947
|
+
}, [value, selectedPreset]);
|
|
36814
36948
|
function getPresetText(preset2) {
|
|
36815
36949
|
return preset2 && /^design-system:/.test(preset2.label) ? t2(preset2.label) : preset2.label;
|
|
36816
36950
|
}
|
|
@@ -36826,16 +36960,16 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
36826
36960
|
className: clsx("sps-form-control", disabled && "disabled")
|
|
36827
36961
|
}, /* @__PURE__ */ React.createElement("i", {
|
|
36828
36962
|
className: clsx("sps-text-input__icon", "sps-icon", "sps-icon-calendar")
|
|
36829
|
-
}),
|
|
36963
|
+
}), selectedPreset && /* @__PURE__ */ React.createElement("div", {
|
|
36830
36964
|
className: "sps-datepicker__selected-preset"
|
|
36831
36965
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
36832
36966
|
className: "sps-tag sps-tag--info"
|
|
36833
|
-
}, getPresetText(
|
|
36967
|
+
}, getPresetText(selectedPreset))), /* @__PURE__ */ React.createElement("input", __spreadValues({
|
|
36834
36968
|
type: "text",
|
|
36835
36969
|
ref: textInput,
|
|
36836
36970
|
className: "sps-text-input__input",
|
|
36837
36971
|
id: controlId,
|
|
36838
|
-
placeholder: !
|
|
36972
|
+
placeholder: !stringValue && !selectedPreset ? FORMAT : void 0,
|
|
36839
36973
|
onChange: handleTextInputChange,
|
|
36840
36974
|
onClick: doShowPopup,
|
|
36841
36975
|
onFocus: doShowPopup,
|
|
@@ -36859,7 +36993,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
36859
36993
|
type: "radio",
|
|
36860
36994
|
id: `sps-date-range-picker-${wrapperId}__range-custom`,
|
|
36861
36995
|
className: "sps-custom-control__input",
|
|
36862
|
-
checked: !
|
|
36996
|
+
checked: !selectedPreset,
|
|
36863
36997
|
name: `sps-date-range-picker-${wrapperId}__range`,
|
|
36864
36998
|
onChange: () => selectPreset(null)
|
|
36865
36999
|
}), /* @__PURE__ */ React.createElement("label", {
|
|
@@ -36873,7 +37007,7 @@ function SpsDateRangePickerV2(_Y) {
|
|
|
36873
37007
|
id: `sps-date-range-picker-${wrapperId}__range-${i2}`,
|
|
36874
37008
|
name: `sps-date-range-picker-${wrapperId}__range`,
|
|
36875
37009
|
onChange: () => selectPreset(preset2),
|
|
36876
|
-
checked:
|
|
37010
|
+
checked: (selectedPreset == null ? void 0 : selectedPreset.definition) ? selectedPreset.definition === preset2.definition : false,
|
|
36877
37011
|
className: "sps-custom-control__input"
|
|
36878
37012
|
}), /* @__PURE__ */ React.createElement("label", {
|
|
36879
37013
|
className: "sps-custom-control__label",
|
|
@@ -36898,12 +37032,12 @@ const propsDoc$8 = {
|
|
|
36898
37032
|
value: "number"
|
|
36899
37033
|
};
|
|
36900
37034
|
const propTypes$8 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
36901
|
-
disabled: propTypes$
|
|
37035
|
+
disabled: propTypes$1M.exports.bool,
|
|
36902
37036
|
formMeta: impl(),
|
|
36903
|
-
name: propTypes$
|
|
37037
|
+
name: propTypes$1M.exports.string,
|
|
36904
37038
|
onChange: fun(),
|
|
36905
37039
|
ref: ref(),
|
|
36906
|
-
value: propTypes$
|
|
37040
|
+
value: propTypes$1M.exports.number
|
|
36907
37041
|
});
|
|
36908
37042
|
function strToDollars(str) {
|
|
36909
37043
|
return str ? Number.parseInt(str.replace(/[^\d]/g, ""), 10) / 100 : null;
|
|
@@ -37078,10 +37212,10 @@ const propsDoc$7 = {
|
|
|
37078
37212
|
};
|
|
37079
37213
|
const propTypes$7 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37080
37214
|
color: enumValue(TagKind),
|
|
37081
|
-
href: propTypes$
|
|
37215
|
+
href: propTypes$1M.exports.string,
|
|
37082
37216
|
icon: enumValue(SpsIcon),
|
|
37083
|
-
tagKey: propTypes$
|
|
37084
|
-
value: propTypes$
|
|
37217
|
+
tagKey: propTypes$1M.exports.string.isRequired,
|
|
37218
|
+
value: propTypes$1M.exports.string.isRequired
|
|
37085
37219
|
});
|
|
37086
37220
|
function SpsKeyValueTag(props2) {
|
|
37087
37221
|
const _a = props2, {
|
|
@@ -37174,8 +37308,8 @@ const propsDoc$6 = {
|
|
|
37174
37308
|
header: "string | () => string"
|
|
37175
37309
|
};
|
|
37176
37310
|
const propTypes$6 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37177
|
-
header: propTypes$
|
|
37178
|
-
propTypes$
|
|
37311
|
+
header: propTypes$1M.exports.oneOfType([
|
|
37312
|
+
propTypes$1M.exports.string,
|
|
37179
37313
|
fun()
|
|
37180
37314
|
])
|
|
37181
37315
|
});
|
|
@@ -37207,8 +37341,8 @@ const propsDoc$5 = {
|
|
|
37207
37341
|
backdrop: "string"
|
|
37208
37342
|
};
|
|
37209
37343
|
const propTypes$5 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37210
|
-
onOverlayClick: propTypes$
|
|
37211
|
-
backdrop: propTypes$
|
|
37344
|
+
onOverlayClick: propTypes$1M.exports.func,
|
|
37345
|
+
backdrop: propTypes$1M.exports.string
|
|
37212
37346
|
});
|
|
37213
37347
|
function SpsModalOverlay(props2) {
|
|
37214
37348
|
const _a = props2, {
|
|
@@ -37278,12 +37412,12 @@ const propsDoc$3 = {
|
|
|
37278
37412
|
closeModal: "() => void"
|
|
37279
37413
|
};
|
|
37280
37414
|
const propTypes$3 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37281
|
-
handleAsync: propTypes$
|
|
37282
|
-
turnAsyncOn: propTypes$
|
|
37283
|
-
turnAsyncOff: propTypes$
|
|
37284
|
-
isAsyncOn: propTypes$
|
|
37415
|
+
handleAsync: propTypes$1M.exports.shape({
|
|
37416
|
+
turnAsyncOn: propTypes$1M.exports.func,
|
|
37417
|
+
turnAsyncOff: propTypes$1M.exports.func,
|
|
37418
|
+
isAsyncOn: propTypes$1M.exports.bool
|
|
37285
37419
|
}),
|
|
37286
|
-
closeModal: propTypes$
|
|
37420
|
+
closeModal: propTypes$1M.exports.func
|
|
37287
37421
|
});
|
|
37288
37422
|
function SpsModalFooter(props2) {
|
|
37289
37423
|
const {
|
|
@@ -37325,10 +37459,10 @@ const propsDoc$2 = {
|
|
|
37325
37459
|
const propTypes$2 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37326
37460
|
kind: enumValue(ButtonKind),
|
|
37327
37461
|
closeModal: fun(),
|
|
37328
|
-
handleAsync: propTypes$
|
|
37329
|
-
turnAsyncOn: propTypes$
|
|
37330
|
-
turnAsyncOff: propTypes$
|
|
37331
|
-
isAsyncOn: propTypes$
|
|
37462
|
+
handleAsync: propTypes$1M.exports.shape({
|
|
37463
|
+
turnAsyncOn: propTypes$1M.exports.func,
|
|
37464
|
+
turnAsyncOff: propTypes$1M.exports.func,
|
|
37465
|
+
isAsyncOn: propTypes$1M.exports.bool
|
|
37332
37466
|
})
|
|
37333
37467
|
});
|
|
37334
37468
|
function SpsModalAction(props2) {
|
|
@@ -37383,18 +37517,18 @@ const propsDoc$1 = {
|
|
|
37383
37517
|
onClose: "Function"
|
|
37384
37518
|
};
|
|
37385
37519
|
const propTypes$1 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
|
|
37386
|
-
kind: propTypes$
|
|
37387
|
-
id: propTypes$
|
|
37388
|
-
isOpen: propTypes$
|
|
37389
|
-
header: propTypes$
|
|
37390
|
-
propTypes$
|
|
37520
|
+
kind: propTypes$1M.exports.string,
|
|
37521
|
+
id: propTypes$1M.exports.string,
|
|
37522
|
+
isOpen: propTypes$1M.exports.bool,
|
|
37523
|
+
header: propTypes$1M.exports.oneOfType([
|
|
37524
|
+
propTypes$1M.exports.string,
|
|
37391
37525
|
fun()
|
|
37392
37526
|
]),
|
|
37393
|
-
onClose: propTypes$
|
|
37394
|
-
onOpen: propTypes$
|
|
37395
|
-
size: propTypes$
|
|
37396
|
-
backdrop: propTypes$
|
|
37397
|
-
actionRequired: propTypes$
|
|
37527
|
+
onClose: propTypes$1M.exports.func,
|
|
37528
|
+
onOpen: propTypes$1M.exports.func,
|
|
37529
|
+
size: propTypes$1M.exports.string,
|
|
37530
|
+
backdrop: propTypes$1M.exports.string,
|
|
37531
|
+
actionRequired: propTypes$1M.exports.bool
|
|
37398
37532
|
});
|
|
37399
37533
|
function SpsModal(modalProps) {
|
|
37400
37534
|
let lastFocusable;
|
|
@@ -37648,4 +37782,4 @@ Object.assign(SpsVr, {
|
|
|
37648
37782
|
propTypes,
|
|
37649
37783
|
displayName: "SpsDescriptionListTerm / SpsDt"
|
|
37650
37784
|
});
|
|
37651
|
-
export { AsTypingErrorKeys, ContentOrderExample, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, 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, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, 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, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, 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, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|
|
37785
|
+
export { AsTypingErrorKeys, ContentOrderExample, FauxChangeEvent, I18nContext, MANIFEST, OnBlurErrorKeys, PortalContext, 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, SpsDateRangePickerV2, SpsDateTime, SpsDatepicker, SpsDatepickerExamples, SpsDatepickerV2, 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, SpsMicroBlock, SpsMicroBlockExamples, SpsMicroZeroState, SpsModal, SpsModalAction, SpsModalBody, SpsModalExamples, SpsModalFooter, SpsModalHeader, SpsModalOverlay, SpsModalV2, SpsModalV2Footer, SpsMultiSelect, SpsMultiSelectExamples, SpsPageSelector, SpsPageSubtitle, SpsPageTitle, SpsPageTitleExamples, SpsPagination, SpsPaginationExamples, SpsProductBar, SpsProductBarExamples, SpsProductBarTab, SpsProgressBar, SpsProgressBarExamples, SpsProgressRing, SpsRadioButton, SpsRadioButtonExamples, SpsScrollableContainer, SpsScrollableContainerExamples, SpsSearchResultsBar, SpsSearchResultsBarExamples, 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, contentOf, date, dateConstraint, dateRange, findParentBranches, flipPosition, formArray, formControl, formGroup, getMember, getPosition, selectChildren, toggleTooltipState, useCheckDeprecatedProps, useDidUpdateEffect, useDocumentEventListener, useElementId, useForm, useGrowlers, useInputPopup, usePatchReducer, usePortal, useServerSideValidation, useSpsAction, useSpsForm, validate, weekOfMonth };
|