@spscommerce/ds-shared 5.2.2-ie → 5.2.5
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/index.cjs.js +1 -595
- package/lib/index.es.js +441 -508
- package/package.json +7 -7
- package/vite.config.js +1 -1
- package/dist/out-tsc/bar-chart.d.ts +0 -12
- package/dist/out-tsc/bar-chart.js +0 -2
- package/dist/out-tsc/bar-chart.js.map +0 -1
- package/dist/out-tsc/button.d.ts +0 -34
- package/dist/out-tsc/button.js +0 -36
- package/dist/out-tsc/button.js.map +0 -1
- package/dist/out-tsc/clickable-tag.d.ts +0 -4
- package/dist/out-tsc/clickable-tag.js +0 -6
- package/dist/out-tsc/clickable-tag.js.map +0 -1
- package/dist/out-tsc/datetime.d.ts +0 -36
- package/dist/out-tsc/datetime.js +0 -6
- package/dist/out-tsc/datetime.js.map +0 -1
- package/dist/out-tsc/examples.d.ts +0 -41
- package/dist/out-tsc/examples.js +0 -7
- package/dist/out-tsc/examples.js.map +0 -1
- package/dist/out-tsc/feedback.d.ts +0 -15
- package/dist/out-tsc/feedback.js +0 -18
- package/dist/out-tsc/feedback.js.map +0 -1
- package/dist/out-tsc/filter-tile.d.ts +0 -7
- package/dist/out-tsc/filter-tile.js +0 -9
- package/dist/out-tsc/filter-tile.js.map +0 -1
- package/dist/out-tsc/grid.d.ts +0 -2
- package/dist/out-tsc/grid.js +0 -2
- package/dist/out-tsc/grid.js.map +0 -1
- package/dist/out-tsc/growler.d.ts +0 -12
- package/dist/out-tsc/growler.js +0 -23
- package/dist/out-tsc/growler.js.map +0 -1
- package/dist/out-tsc/i18n.d.ts +0 -4
- package/dist/out-tsc/i18n.js +0 -9
- package/dist/out-tsc/i18n.js.map +0 -1
- package/dist/out-tsc/icon.d.ts +0 -186
- package/dist/out-tsc/icon.js +0 -189
- package/dist/out-tsc/icon.js.map +0 -1
- package/dist/out-tsc/index.d.ts +0 -29
- package/dist/out-tsc/index.js +0 -30
- package/dist/out-tsc/index.js.map +0 -1
- package/dist/out-tsc/insight-card.d.ts +0 -15
- package/dist/out-tsc/insight-card.js +0 -18
- package/dist/out-tsc/insight-card.js.map +0 -1
- package/dist/out-tsc/insight-tile.d.ts +0 -15
- package/dist/out-tsc/insight-tile.js +0 -18
- package/dist/out-tsc/insight-tile.js.map +0 -1
- package/dist/out-tsc/key-value-list-item.d.ts +0 -4
- package/dist/out-tsc/key-value-list-item.js +0 -6
- package/dist/out-tsc/key-value-list-item.js.map +0 -1
- package/dist/out-tsc/modal.d.ts +0 -12
- package/dist/out-tsc/modal.js +0 -15
- package/dist/out-tsc/modal.js.map +0 -1
- package/dist/out-tsc/multi-select.d.ts +0 -5
- package/dist/out-tsc/multi-select.js +0 -7
- package/dist/out-tsc/multi-select.js.map +0 -1
- package/dist/out-tsc/option-list.d.ts +0 -32
- package/dist/out-tsc/option-list.js +0 -87
- package/dist/out-tsc/option-list.js.map +0 -1
- package/dist/out-tsc/pagination.d.ts +0 -2
- package/dist/out-tsc/pagination.js +0 -6
- package/dist/out-tsc/pagination.js.map +0 -1
- package/dist/out-tsc/positioning.d.ts +0 -14
- package/dist/out-tsc/positioning.js +0 -16
- package/dist/out-tsc/positioning.js.map +0 -1
- package/dist/out-tsc/ring-size.d.ts +0 -5
- package/dist/out-tsc/ring-size.js +0 -7
- package/dist/out-tsc/ring-size.js.map +0 -1
- package/dist/out-tsc/spinner.d.ts +0 -5
- package/dist/out-tsc/spinner.js +0 -7
- package/dist/out-tsc/spinner.js.map +0 -1
- package/dist/out-tsc/sps-action.d.ts +0 -25
- package/dist/out-tsc/sps-action.js +0 -18
- package/dist/out-tsc/sps-action.js.map +0 -1
- package/dist/out-tsc/stacked-horizontal-bar-chart.d.ts +0 -7
- package/dist/out-tsc/stacked-horizontal-bar-chart.js +0 -9
- package/dist/out-tsc/stacked-horizontal-bar-chart.js.map +0 -1
- package/dist/out-tsc/table.d.ts +0 -10
- package/dist/out-tsc/table.js +0 -6
- package/dist/out-tsc/table.js.map +0 -1
- package/dist/out-tsc/tabs.d.ts +0 -13
- package/dist/out-tsc/tabs.js +0 -2
- package/dist/out-tsc/tabs.js.map +0 -1
- package/dist/out-tsc/tag.d.ts +0 -9
- package/dist/out-tsc/tag.js +0 -11
- package/dist/out-tsc/tag.js.map +0 -1
- package/dist/out-tsc/task-queue.d.ts +0 -24
- package/dist/out-tsc/task-queue.js +0 -18
- package/dist/out-tsc/task-queue.js.map +0 -1
- package/dist/out-tsc/tooltip.d.ts +0 -13
- package/dist/out-tsc/tooltip.js +0 -16
- package/dist/out-tsc/tooltip.js.map +0 -1
- package/dist/out-tsc/translations.d.ts +0 -130
- package/dist/out-tsc/translations.js +0 -2
- package/dist/out-tsc/translations.js.map +0 -1
- package/dist/out-tsc/wizard-substep-condition.d.ts +0 -6
- package/dist/out-tsc/wizard-substep-condition.js +0 -8
- package/dist/out-tsc/wizard-substep-condition.js.map +0 -1
- package/dist/out-tsc/z-strata.d.ts +0 -7
- package/dist/out-tsc/z-strata.js +0 -9
- package/dist/out-tsc/z-strata.js.map +0 -1
- package/lib/multi-select.d.ts +0 -5
- package/rollup.config.js +0 -22
- package/spscommerce-ds-shared-4.36.3-ie.tgz +0 -0
- package/spscommerce-ds-shared-5.0.2-ie.tgz +0 -0
package/lib/index.es.js
CHANGED
|
@@ -1,574 +1,507 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
13
16
|
};
|
|
17
|
+
import { getPath, template, simpleMetadataDecoratorApplicator } from "@spscommerce/utils";
|
|
14
18
|
var StdButtonKind;
|
|
15
|
-
(function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
(function(StdButtonKind2) {
|
|
20
|
+
StdButtonKind2["DEFAULT"] = "default";
|
|
21
|
+
StdButtonKind2["CONFIRM"] = "confirm";
|
|
22
|
+
StdButtonKind2["DELETE"] = "delete";
|
|
23
|
+
StdButtonKind2["KEY"] = "key";
|
|
20
24
|
})(StdButtonKind || (StdButtonKind = {}));
|
|
21
25
|
var ButtonKindIcon;
|
|
22
|
-
(function
|
|
23
|
-
|
|
26
|
+
(function(ButtonKindIcon2) {
|
|
27
|
+
ButtonKindIcon2["ICON"] = "icon";
|
|
24
28
|
})(ButtonKindIcon || (ButtonKindIcon = {}));
|
|
25
29
|
var ButtonKindLink;
|
|
26
|
-
(function
|
|
27
|
-
|
|
30
|
+
(function(ButtonKindLink2) {
|
|
31
|
+
ButtonKindLink2["LINK"] = "link";
|
|
28
32
|
})(ButtonKindLink || (ButtonKindLink = {}));
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
32
|
-
var ButtonKind = Object.freeze(__assign(__assign(__assign({}, StdButtonKind), ButtonKindIcon), ButtonKindLink));
|
|
33
|
+
const DropdownKind = Object.freeze(__spreadValues(__spreadValues({}, StdButtonKind), ButtonKindIcon));
|
|
34
|
+
const ButtonKind = Object.freeze(__spreadValues(__spreadValues(__spreadValues({}, StdButtonKind), ButtonKindIcon), ButtonKindLink));
|
|
33
35
|
var ButtonType;
|
|
34
|
-
(function
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
(function(ButtonType2) {
|
|
37
|
+
ButtonType2["BUTTON"] = "button";
|
|
38
|
+
ButtonType2["SUBMIT"] = "submit";
|
|
37
39
|
})(ButtonType || (ButtonType = {}));
|
|
38
|
-
|
|
39
40
|
var SelectMode;
|
|
40
|
-
(function
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
(function(SelectMode2) {
|
|
42
|
+
SelectMode2[SelectMode2["START"] = 0] = "START";
|
|
43
|
+
SelectMode2[SelectMode2["END"] = 1] = "END";
|
|
43
44
|
})(SelectMode || (SelectMode = {}));
|
|
44
|
-
|
|
45
45
|
var ClickableTagKind;
|
|
46
|
-
(function
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
(function(ClickableTagKind2) {
|
|
47
|
+
ClickableTagKind2["BLUE"] = "blue";
|
|
48
|
+
ClickableTagKind2["GRAY"] = "gray";
|
|
49
49
|
})(ClickableTagKind || (ClickableTagKind = {}));
|
|
50
|
-
|
|
51
50
|
function exampleIsReactComponentExample(example) {
|
|
52
|
-
|
|
51
|
+
return example.hasOwnProperty("react");
|
|
53
52
|
}
|
|
54
53
|
function exampleIsReactJSXExample(example) {
|
|
55
|
-
|
|
54
|
+
return example.hasOwnProperty("jsx");
|
|
56
55
|
}
|
|
57
|
-
|
|
58
56
|
var SpsIconSize;
|
|
59
|
-
(function
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
(function(SpsIconSize2) {
|
|
58
|
+
SpsIconSize2["EXTRA_SMALL"] = "xs";
|
|
59
|
+
SpsIconSize2["SMALL"] = "sm";
|
|
60
|
+
SpsIconSize2["MEDIUM"] = "md";
|
|
61
|
+
SpsIconSize2["LARGE"] = "lg";
|
|
62
|
+
SpsIconSize2["EXTRA_LARGE"] = "xl";
|
|
65
63
|
})(SpsIconSize || (SpsIconSize = {}));
|
|
66
64
|
var SpsIcon;
|
|
67
|
-
(function
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
65
|
+
(function(SpsIcon2) {
|
|
66
|
+
SpsIcon2["ANGLE_LEFT"] = "angle-left";
|
|
67
|
+
SpsIcon2["ANGLE_RIGHT"] = "angle-right";
|
|
68
|
+
SpsIcon2["ARCHIVE"] = "archive";
|
|
69
|
+
SpsIcon2["ARCHIVE_CIRCLE"] = "archive-circle";
|
|
70
|
+
SpsIcon2["ARROW_DOWN"] = "arrow-down";
|
|
71
|
+
SpsIcon2["ARROW_LEFT"] = "arrow-left";
|
|
72
|
+
SpsIcon2["ARROW_LEFT_CIRCLE"] = "arrow-left-circle";
|
|
73
|
+
SpsIcon2["ARROW_RIGHT"] = "arrow-right";
|
|
74
|
+
SpsIcon2["ARROW_RIGHT_CIRCLE"] = "arrow-right-circle";
|
|
75
|
+
SpsIcon2["ARROW_UP"] = "arrow-up";
|
|
76
|
+
SpsIcon2["ASTERISK"] = "asterisk";
|
|
77
|
+
SpsIcon2["ASTERISK_CIRCLE"] = "asterisk-circle";
|
|
78
|
+
SpsIcon2["BAN"] = "ban";
|
|
79
|
+
SpsIcon2["BAN_CIRCLE"] = "ban-circle";
|
|
80
|
+
SpsIcon2["BARCODE"] = "barcode";
|
|
81
|
+
SpsIcon2["BELL"] = "bell";
|
|
82
|
+
SpsIcon2["BELL_FILLED"] = "bell-filled";
|
|
83
|
+
SpsIcon2["BOLT"] = "bolt";
|
|
84
|
+
SpsIcon2["BOOK"] = "book";
|
|
85
|
+
SpsIcon2["BUILDING"] = "building";
|
|
86
|
+
SpsIcon2["BURST"] = "burst";
|
|
87
|
+
SpsIcon2["BURST_BOLT"] = "burst-bolt";
|
|
88
|
+
SpsIcon2["CALENDAR"] = "calendar";
|
|
89
|
+
SpsIcon2["CALENDAR_BLANK"] = "calendar-blank";
|
|
90
|
+
SpsIcon2["CALENDAR_BLANK_CIRCLE"] = "calendar-blank-circle";
|
|
91
|
+
SpsIcon2["CALENDAR_SELECT"] = "calendar-select";
|
|
92
|
+
SpsIcon2["CAMERA"] = "camera";
|
|
93
|
+
SpsIcon2["CHART_AREA"] = "chart-area";
|
|
94
|
+
SpsIcon2["CHART_BAR"] = "chart-bar";
|
|
95
|
+
SpsIcon2["CHART_LINE"] = "chart-line";
|
|
96
|
+
SpsIcon2["CHART_PIE"] = "chart-pie";
|
|
97
|
+
SpsIcon2["CHECKMARK"] = "checkmark";
|
|
98
|
+
SpsIcon2["CHECKMARK_CIRCLE"] = "checkmark-circle";
|
|
99
|
+
SpsIcon2["CHEVRON_DOWN"] = "chevron-down";
|
|
100
|
+
SpsIcon2["CHEVRON_LEFT"] = "chevron-left";
|
|
101
|
+
SpsIcon2["CHEVRON_RIGHT"] = "chevron-right";
|
|
102
|
+
SpsIcon2["CHEVRON_UP"] = "chevron-up";
|
|
103
|
+
SpsIcon2["CIRCLE_OUTLINE"] = "circle-outline";
|
|
104
|
+
SpsIcon2["CLOCK"] = "clock";
|
|
105
|
+
SpsIcon2["CLOCK_CIRCLE"] = "clock-circle";
|
|
106
|
+
SpsIcon2["CODE_FORK"] = "code-fork";
|
|
107
|
+
SpsIcon2["COLUMN_SWITCHER"] = "column-switcher";
|
|
108
|
+
SpsIcon2["COMMENT_BUBBLE"] = "comment-bubble";
|
|
109
|
+
SpsIcon2["COMMENT_BUBBLE_QUESTION"] = "comment-bubble-question";
|
|
110
|
+
SpsIcon2["CONVERSATION"] = "conversation";
|
|
111
|
+
SpsIcon2["CREDIT_CARD"] = "credit-card";
|
|
112
|
+
SpsIcon2["DASHBOARD"] = "dashboard";
|
|
113
|
+
SpsIcon2["DATABASE"] = "database";
|
|
114
|
+
SpsIcon2["DESCENDING_ELLIPSES_CIRCLE"] = "descending-ellipses-circle";
|
|
115
|
+
SpsIcon2["DISK"] = "disk";
|
|
116
|
+
SpsIcon2["DISK_CIRCLE"] = "disk-circle";
|
|
117
|
+
SpsIcon2["DOLLAR_SIGN"] = "dollar-sign";
|
|
118
|
+
SpsIcon2["DOUBLE_ANGLE_LEFT"] = "double-angle-left";
|
|
119
|
+
SpsIcon2["DOUBLE_ANGLE_RIGHT"] = "double-angle-right";
|
|
120
|
+
SpsIcon2["DOWNLOAD_CLOUD"] = "download-cloud";
|
|
121
|
+
SpsIcon2["DRILL"] = "drill";
|
|
122
|
+
SpsIcon2["DUPLICATE"] = "duplicate";
|
|
123
|
+
SpsIcon2["ELLIPSES"] = "ellipses";
|
|
124
|
+
SpsIcon2["ENVELOPE"] = "envelope";
|
|
125
|
+
SpsIcon2["EXCHANGE"] = "exchange";
|
|
126
|
+
SpsIcon2["EXCLAMATION_CIRCLE"] = "exclamation-circle";
|
|
127
|
+
SpsIcon2["EXCLAMATION_TRIANGLE"] = "exclamation-triangle";
|
|
128
|
+
SpsIcon2["EXPAND_COLLAPSE"] = "expand-collapse";
|
|
129
|
+
SpsIcon2["EYE"] = "eye";
|
|
130
|
+
SpsIcon2["EYE_SLASH"] = "eye-slash";
|
|
131
|
+
SpsIcon2["FILE"] = "file";
|
|
132
|
+
SpsIcon2["FILE_DUPLICATE"] = "file-duplicate";
|
|
133
|
+
SpsIcon2["FILE_PDF"] = "file-pdf";
|
|
134
|
+
SpsIcon2["FILE_PRESENTATION"] = "file-presentation";
|
|
135
|
+
SpsIcon2["FILE_SIZE"] = "file-size";
|
|
136
|
+
SpsIcon2["FILE_SOLID"] = "file-solid";
|
|
137
|
+
SpsIcon2["FILE_SOLID_TEXT"] = "file-solid-text";
|
|
138
|
+
SpsIcon2["FILE_SPREADSHEET"] = "file-spreadsheet";
|
|
139
|
+
SpsIcon2["FILE_TEXT"] = "file-text";
|
|
140
|
+
SpsIcon2["FILTER"] = "filter";
|
|
141
|
+
SpsIcon2["FLAG"] = "flag";
|
|
142
|
+
SpsIcon2["FOLDER"] = "folder";
|
|
143
|
+
SpsIcon2["FOLDER_OPEN"] = "folder-open";
|
|
144
|
+
SpsIcon2["FOLDER_SOLID"] = "folder-solid";
|
|
145
|
+
SpsIcon2["FOLDER_SOLID_OPEN"] = "folder-solid-open";
|
|
146
|
+
SpsIcon2["GEAR"] = "gear";
|
|
147
|
+
SpsIcon2["GLOBE"] = "globe";
|
|
148
|
+
SpsIcon2["GRID"] = "grid";
|
|
149
|
+
SpsIcon2["GROUP"] = "group";
|
|
150
|
+
SpsIcon2["HAND_STOP"] = "hand-stop";
|
|
151
|
+
SpsIcon2["HANDSHAKE"] = "handshake";
|
|
152
|
+
SpsIcon2["HAT"] = "hat";
|
|
153
|
+
SpsIcon2["HEART"] = "heart";
|
|
154
|
+
SpsIcon2["HISTORY"] = "history";
|
|
155
|
+
SpsIcon2["INBOX"] = "inbox";
|
|
156
|
+
SpsIcon2["INCOMING"] = "incoming";
|
|
157
|
+
SpsIcon2["INFO_CIRCLE"] = "info-circle";
|
|
158
|
+
SpsIcon2["INTERCOM"] = "intercom";
|
|
159
|
+
SpsIcon2["ITEM_TAG"] = "item-tag";
|
|
160
|
+
SpsIcon2["KEY"] = "key";
|
|
161
|
+
SpsIcon2["LIFE_PRESERVER"] = "life-preserver";
|
|
162
|
+
SpsIcon2["LIGHTBULB"] = "lightbulb";
|
|
163
|
+
SpsIcon2["LINK"] = "link";
|
|
164
|
+
SpsIcon2["LINKEDIN"] = "linkedin";
|
|
165
|
+
SpsIcon2["LIST"] = "list";
|
|
166
|
+
SpsIcon2["LIST_CARDS"] = "list-cards";
|
|
167
|
+
SpsIcon2["LIST_COLUMNS"] = "list-columns";
|
|
168
|
+
SpsIcon2["LIST_SUMMARY"] = "list-summary";
|
|
169
|
+
SpsIcon2["LIST_TABLE"] = "list-table";
|
|
170
|
+
SpsIcon2["LOCATION"] = "location";
|
|
171
|
+
SpsIcon2["LOCKED"] = "locked";
|
|
172
|
+
SpsIcon2["LOCKED_CIRCLE"] = "locked-circle";
|
|
173
|
+
SpsIcon2["MAP"] = "map";
|
|
174
|
+
SpsIcon2["MAP_MARKER"] = "map-marker";
|
|
175
|
+
SpsIcon2["MAXIMIZE"] = "maximize";
|
|
176
|
+
SpsIcon2["MINIMIZE"] = "minimize";
|
|
177
|
+
SpsIcon2["MINUS"] = "minus";
|
|
178
|
+
SpsIcon2["MINUS_CIRCLE"] = "minus-circle";
|
|
179
|
+
SpsIcon2["NEW_FILE"] = "new-file";
|
|
180
|
+
SpsIcon2["NEW_SCREEN"] = "new-screen";
|
|
181
|
+
SpsIcon2["OUTGOING"] = "outgoing";
|
|
182
|
+
SpsIcon2["PAPER_PLANE"] = "paper-plane";
|
|
183
|
+
SpsIcon2["PENCIL"] = "pencil";
|
|
184
|
+
SpsIcon2["PHOTO"] = "photo";
|
|
185
|
+
SpsIcon2["PIN"] = "pin";
|
|
186
|
+
SpsIcon2["PINTEREST"] = "pinterest";
|
|
187
|
+
SpsIcon2["PLAY"] = "play";
|
|
188
|
+
SpsIcon2["PLUS_CIRCLE"] = "plus-circle";
|
|
189
|
+
SpsIcon2["PLUS_SIGN"] = "plus-sign";
|
|
190
|
+
SpsIcon2["PRESENTATION"] = "presentation";
|
|
191
|
+
SpsIcon2["PRINTER"] = "printer";
|
|
192
|
+
SpsIcon2["QR_CODE"] = "qr-code";
|
|
193
|
+
SpsIcon2["QUESTION_CIRCLE"] = "question-circle";
|
|
194
|
+
SpsIcon2["QUOTE_LEFT"] = "quote-left";
|
|
195
|
+
SpsIcon2["QUOTE_RIGHT"] = "quote-right";
|
|
196
|
+
SpsIcon2["RANDOM"] = "random";
|
|
197
|
+
SpsIcon2["REFRESH"] = "refresh";
|
|
198
|
+
SpsIcon2["RIGHT_CIRCLE"] = "right-circle";
|
|
199
|
+
SpsIcon2["ROCKET"] = "rocket";
|
|
200
|
+
SpsIcon2["SEARCH"] = "search";
|
|
201
|
+
SpsIcon2["SEARCH_PLUS"] = "search-plus";
|
|
202
|
+
SpsIcon2["SHARE"] = "share";
|
|
203
|
+
SpsIcon2["SHOPPING_CART"] = "shopping-cart";
|
|
204
|
+
SpsIcon2["SORT_ALPHA_ASC"] = "sort-alpha-asc";
|
|
205
|
+
SpsIcon2["SORT_ALPHA_DESC"] = "sort-alpha-desc";
|
|
206
|
+
SpsIcon2["SORT_NUM_ASC"] = "sort-num-asc";
|
|
207
|
+
SpsIcon2["SORT_NUM_DESC"] = "sort-num-desc";
|
|
208
|
+
SpsIcon2["STAR"] = "star";
|
|
209
|
+
SpsIcon2["STAR_OUTLINE"] = "star-outline";
|
|
210
|
+
SpsIcon2["STATUS_ARCHIVED"] = "status-archived";
|
|
211
|
+
SpsIcon2["STATUS_CANCELLED"] = "status-cancelled";
|
|
212
|
+
SpsIcon2["STATUS_ERROR"] = "status-error";
|
|
213
|
+
SpsIcon2["STATUS_IN_PROCESS"] = "status-in-process";
|
|
214
|
+
SpsIcon2["STATUS_IN_TRANSIT"] = "status-in-transit";
|
|
215
|
+
SpsIcon2["STATUS_LOCKED"] = "status-locked";
|
|
216
|
+
SpsIcon2["STATUS_NEW"] = "status-new";
|
|
217
|
+
SpsIcon2["STATUS_OK"] = "status-ok";
|
|
218
|
+
SpsIcon2["STATUS_ON_HOLD"] = "status-on-hold";
|
|
219
|
+
SpsIcon2["STATUS_OUTDATED"] = "status-outdated";
|
|
220
|
+
SpsIcon2["STATUS_REJECTED"] = "status-rejected";
|
|
221
|
+
SpsIcon2["STATUS_SAVED"] = "status-saved";
|
|
222
|
+
SpsIcon2["STATUS_SAVING"] = "status-saving";
|
|
223
|
+
SpsIcon2["STATUS_TEMPLATE"] = "status-template";
|
|
224
|
+
SpsIcon2["STATUS_WARNING"] = "status-warning";
|
|
225
|
+
SpsIcon2["TABLE"] = "table";
|
|
226
|
+
SpsIcon2["TABS"] = "tabs";
|
|
227
|
+
SpsIcon2["TAG"] = "tag";
|
|
228
|
+
SpsIcon2["TEMPLATE_CIRCLE"] = "template-circle";
|
|
229
|
+
SpsIcon2["THUMBS_DOWN"] = "thumbs-down";
|
|
230
|
+
SpsIcon2["THUMBS_DOWN_OUTLINE"] = "thumbs-down-outline";
|
|
231
|
+
SpsIcon2["THUMBS_UP"] = "thumbs-up";
|
|
232
|
+
SpsIcon2["THUMBS_UP_OUTLINE"] = "thumbs-up-outline";
|
|
233
|
+
SpsIcon2["TRASH"] = "trash";
|
|
234
|
+
SpsIcon2["TRUCK_SHIPPING"] = "truck-shipping";
|
|
235
|
+
SpsIcon2["TWITTER"] = "twitter";
|
|
236
|
+
SpsIcon2["UNDO"] = "undo";
|
|
237
|
+
SpsIcon2["UNLOCKED"] = "unlocked";
|
|
238
|
+
SpsIcon2["UPLOAD_CLOUD"] = "upload-cloud";
|
|
239
|
+
SpsIcon2["USER"] = "user";
|
|
240
|
+
SpsIcon2["WRENCH"] = "wrench";
|
|
241
|
+
SpsIcon2["X"] = "x";
|
|
242
|
+
SpsIcon2["X_CIRCLE"] = "x-circle";
|
|
245
243
|
})(SpsIcon || (SpsIcon = {}));
|
|
246
|
-
|
|
247
|
-
var _a$3;
|
|
248
244
|
var FeedbackBlockKind;
|
|
249
|
-
(function
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
245
|
+
(function(FeedbackBlockKind2) {
|
|
246
|
+
FeedbackBlockKind2["TIP"] = "tip";
|
|
247
|
+
FeedbackBlockKind2["SUCCESS"] = "success";
|
|
248
|
+
FeedbackBlockKind2["WARNING"] = "warning";
|
|
249
|
+
FeedbackBlockKind2["ERROR"] = "error";
|
|
250
|
+
FeedbackBlockKind2["INFO"] = "info";
|
|
255
251
|
})(FeedbackBlockKind || (FeedbackBlockKind = {}));
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
252
|
+
const FeedbackBlockIcons = Object.freeze({
|
|
253
|
+
[FeedbackBlockKind.TIP]: SpsIcon.LIGHTBULB,
|
|
254
|
+
[FeedbackBlockKind.ERROR]: SpsIcon.EXCLAMATION_CIRCLE,
|
|
255
|
+
[FeedbackBlockKind.INFO]: SpsIcon.INFO_CIRCLE,
|
|
256
|
+
[FeedbackBlockKind.SUCCESS]: SpsIcon.CHECKMARK,
|
|
257
|
+
[FeedbackBlockKind.WARNING]: SpsIcon.EXCLAMATION_TRIANGLE
|
|
258
|
+
});
|
|
264
259
|
var SpsFilterTileKind;
|
|
265
|
-
(function
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
260
|
+
(function(SpsFilterTileKind2) {
|
|
261
|
+
SpsFilterTileKind2["GENERAL"] = "general";
|
|
262
|
+
SpsFilterTileKind2["SUCCESS"] = "success";
|
|
263
|
+
SpsFilterTileKind2["ERROR"] = "error";
|
|
264
|
+
SpsFilterTileKind2["WARNING"] = "warning";
|
|
265
|
+
SpsFilterTileKind2["PROCESSING"] = "processing";
|
|
271
266
|
})(SpsFilterTileKind || (SpsFilterTileKind = {}));
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
/*
|
|
275
|
-
* If you change this don't forget to also change the CSS animation
|
|
276
|
-
* time in ds-styles
|
|
277
|
-
*/
|
|
278
|
-
var GROWLER_FADEOUT_DURATION_MS = 2000;
|
|
267
|
+
const GROWLER_VISIBLE_DURATION_MS = 7e3;
|
|
268
|
+
const GROWLER_FADEOUT_DURATION_MS = 2e3;
|
|
279
269
|
var GrowlerKind;
|
|
280
|
-
(function
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
270
|
+
(function(GrowlerKind2) {
|
|
271
|
+
GrowlerKind2["ACTIVITY"] = "activity";
|
|
272
|
+
GrowlerKind2["ERROR"] = "error";
|
|
273
|
+
GrowlerKind2["INFO"] = "info";
|
|
274
|
+
GrowlerKind2["PROGRESS"] = "progress";
|
|
275
|
+
GrowlerKind2["SUCCESS"] = "success";
|
|
276
|
+
GrowlerKind2["WARNING"] = "warning";
|
|
287
277
|
})(GrowlerKind || (GrowlerKind = {}));
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
278
|
+
const GrowlerIcon = new Map([
|
|
279
|
+
[GrowlerKind.INFO, SpsIcon.INFO_CIRCLE],
|
|
280
|
+
[GrowlerKind.WARNING, SpsIcon.EXCLAMATION_TRIANGLE],
|
|
281
|
+
[GrowlerKind.ERROR, SpsIcon.EXCLAMATION_CIRCLE],
|
|
282
|
+
[GrowlerKind.SUCCESS, SpsIcon.CHECKMARK]
|
|
293
283
|
]);
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
return interpolations ? template(text)(interpolations) : text;
|
|
301
|
-
},
|
|
284
|
+
var translations = { "advancedSearch": { "clear": "Clear", "search": "Search" }, "button": { "spinningTitle": "Loading\u2026" }, "columnChooser": { "removeButton": "Remove {{elementName}}" }, "contentRow": { "collapse": "Collapse", "expand": "Expand" }, "datepicker": { "calendar": { "prevMonth": "View Previous Month", "nextMonth": "View Next Month" }, "preset": { "custom": "Custom", "today": "Today", "sevenDays": "Last 7 days", "thirtyDays": "Last 30 days", "sixtyDays": "Last 60 days", "ninetyDays": "Last 90 days", "oneYear": "Last year" }, "presetsLabel": "Ranges" }, "fileUpload": { "acceptedTypes": "{{fileTypes}} format accepted", "acceptedTypes_plural": "{{fileTypes}} formats accepted", "cancelled": "File Upload Failed", "cancelled_plural": "File Upload(s) Failed", "close": "Close", "instructions": "Drag and drop your file here or |browse for a file| on your desktop.", "instructions_plural": "Drag and drop your files here or |browse for files| on your desktop.", "maximumSize": "{{size}} maximum", "processing": "Processing Upload\u2026", "title": "Upload Your {{description}}" }, "filterPanel": { "clear": "Clear Filters", "title": "Filters", "filterPlaceholder": "Filter options" }, "focusedTask": { "close": "Close" }, "growler": { "dismiss": "Dismiss" }, "insightCard": { "all": "ALL", "partnerCount": "{{count}} |of| {{total}}", "partners": "PARTNERS" }, "insightTile": { "all": "ALL", "partnerCount": "{{count}} |of| {{total}}", "partners": "PARTNERS" }, "label": { "errors": { "dateConstraint": { "max": "Please enter a date on or prior to {{context.maxExceeded}}.", "min": "Please enter a date on or after {{context.minExceeded}}." }, "dateFormat": "Please enter a date in the format {{context}}.", "dateRangeOrder": "End date cannot be before start date.", "dateValidity": "Please enter a valid date.", "max": "Please enter a value no greater than {{context}}.", "maxLength": "Please enter no more than {{context}} characters.", "min": "Please enter a value no less than {{context}}.", "minLength": "Please enter at least {{context}} characters.", "required": "This field is required." }, "stronglySuggested": "This field is strongly suggested." }, "listActionBar": { "clearSelected": "Clear Selected", "itemsSelected": "Items Selected" }, "listToolbar": { "advancedSearchToggle": "Advanced Search" }, "modal": { "close": "Close modal", "defaultButtonLabel": "Okay", "defaultTitle": { "general": "Action", "info": "Info", "success": "Success", "warning": "Warning", "serious-warning": "Warning" } }, "pagination": { "nextPage": "Next Page", "ofMany": "of many", "ofPageCount": "of {{pageCount}}", "page": "Page", "prevPage": "Previous Page" }, "progressBar": { "closeButtonTitle": "Close progress bar" }, "searchResultsBar": { "clear": "Clear", "count": "{{count}} of {{total}}", "matchingResults": "Matching results" }, "select": { "defaultPlaceholder": "Select one\u2026" }, "slackLink": { "label": "Chat" }, "spinner": { "defaultAltText": "Loading\u2026" }, "taskQueue": { "clearCompleted": "Clear Completed", "newTask": "You have a new task in your queue.", "noTasks": "There are currently no tasks in your queue." } };
|
|
285
|
+
const noI18nI18n = {
|
|
286
|
+
t(key, interpolations) {
|
|
287
|
+
const text = getPath(translations, key.replace(/^design-system:/, ""));
|
|
288
|
+
return interpolations ? template(text)(interpolations) : text;
|
|
289
|
+
}
|
|
302
290
|
};
|
|
303
|
-
|
|
304
|
-
var _a$2;
|
|
305
291
|
var SpsInsightCardKind;
|
|
306
|
-
(function
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
292
|
+
(function(SpsInsightCardKind2) {
|
|
293
|
+
SpsInsightCardKind2["GENERAL"] = "general";
|
|
294
|
+
SpsInsightCardKind2["SUCCESS"] = "success";
|
|
295
|
+
SpsInsightCardKind2["ERROR"] = "error";
|
|
296
|
+
SpsInsightCardKind2["WARNING"] = "warning";
|
|
297
|
+
SpsInsightCardKind2["PROCESSING"] = "processing";
|
|
312
298
|
})(SpsInsightCardKind || (SpsInsightCardKind = {}));
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
var _a$1;
|
|
299
|
+
const SpsInsightCardIcons = Object.freeze({
|
|
300
|
+
[SpsInsightCardKind.GENERAL]: SpsIcon.STATUS_NEW,
|
|
301
|
+
[SpsInsightCardKind.SUCCESS]: SpsIcon.STATUS_OK,
|
|
302
|
+
[SpsInsightCardKind.ERROR]: SpsIcon.STATUS_ERROR,
|
|
303
|
+
[SpsInsightCardKind.WARNING]: SpsIcon.STATUS_WARNING,
|
|
304
|
+
[SpsInsightCardKind.PROCESSING]: SpsIcon.STATUS_IN_PROCESS
|
|
305
|
+
});
|
|
322
306
|
var SpsInsightTileKind;
|
|
323
|
-
(function
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
307
|
+
(function(SpsInsightTileKind2) {
|
|
308
|
+
SpsInsightTileKind2["GENERAL"] = "general";
|
|
309
|
+
SpsInsightTileKind2["SUCCESS"] = "success";
|
|
310
|
+
SpsInsightTileKind2["ERROR"] = "error";
|
|
311
|
+
SpsInsightTileKind2["WARNING"] = "warning";
|
|
312
|
+
SpsInsightTileKind2["PROCESSING"] = "processing";
|
|
329
313
|
})(SpsInsightTileKind || (SpsInsightTileKind = {}));
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
314
|
+
const SpsInsightTileIcons = Object.freeze({
|
|
315
|
+
[SpsInsightTileKind.GENERAL]: SpsIcon.STATUS_NEW,
|
|
316
|
+
[SpsInsightTileKind.SUCCESS]: SpsIcon.STATUS_OK,
|
|
317
|
+
[SpsInsightTileKind.ERROR]: SpsIcon.STATUS_ERROR,
|
|
318
|
+
[SpsInsightTileKind.WARNING]: SpsIcon.STATUS_WARNING,
|
|
319
|
+
[SpsInsightTileKind.PROCESSING]: SpsIcon.STATUS_IN_PROCESS
|
|
320
|
+
});
|
|
338
321
|
var KeyValueListTitleColor;
|
|
339
|
-
(function
|
|
340
|
-
|
|
341
|
-
|
|
322
|
+
(function(KeyValueListTitleColor2) {
|
|
323
|
+
KeyValueListTitleColor2["LIGHT"] = "light";
|
|
324
|
+
KeyValueListTitleColor2["DARK"] = "dark";
|
|
342
325
|
})(KeyValueListTitleColor || (KeyValueListTitleColor = {}));
|
|
343
|
-
|
|
344
326
|
var ModalKind;
|
|
345
|
-
(function
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
327
|
+
(function(ModalKind2) {
|
|
328
|
+
ModalKind2["GENERAL"] = "general";
|
|
329
|
+
ModalKind2["INFO"] = "info";
|
|
330
|
+
ModalKind2["SUCCESS"] = "success";
|
|
331
|
+
ModalKind2["WARNING"] = "warning";
|
|
332
|
+
ModalKind2["SERIOUS_WARNING"] = "serious-warning";
|
|
351
333
|
})(ModalKind || (ModalKind = {}));
|
|
352
334
|
var ModalSize;
|
|
353
|
-
(function
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
335
|
+
(function(ModalSize2) {
|
|
336
|
+
ModalSize2["SMALL"] = "small";
|
|
337
|
+
ModalSize2["MEDIUM"] = "medium";
|
|
338
|
+
ModalSize2["LARGE"] = "large";
|
|
357
339
|
})(ModalSize || (ModalSize = {}));
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
340
|
+
class SpsOptionListOption {
|
|
341
|
+
constructor(value, config = {}) {
|
|
342
|
+
this.value = value;
|
|
343
|
+
Object.assign(this, config);
|
|
344
|
+
}
|
|
345
|
+
get text() {
|
|
346
|
+
if (this.textInternal) {
|
|
347
|
+
return this.textInternal;
|
|
348
|
+
}
|
|
349
|
+
if (!this.value) {
|
|
350
|
+
return "";
|
|
351
|
+
}
|
|
352
|
+
return this.textKey ? this.value[this.textKey] : String(this.value);
|
|
353
|
+
}
|
|
354
|
+
set text(value) {
|
|
355
|
+
this.textInternal = value;
|
|
356
|
+
}
|
|
357
|
+
get caption() {
|
|
358
|
+
if (this.captionInternal) {
|
|
359
|
+
return this.captionInternal;
|
|
360
|
+
}
|
|
361
|
+
if (!this.value) {
|
|
362
|
+
return "";
|
|
363
|
+
}
|
|
364
|
+
return this.captionKey ? this.value[this.captionKey] : "";
|
|
365
|
+
}
|
|
366
|
+
set caption(value) {
|
|
367
|
+
this.captionInternal = value;
|
|
368
|
+
}
|
|
369
|
+
get href() {
|
|
370
|
+
if (this.value) {
|
|
371
|
+
return this.value.isLink && typeof this.value === "function" ? this.value() : this.value.href;
|
|
368
372
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
configurable: true
|
|
400
|
-
});
|
|
401
|
-
Object.defineProperty(SpsOptionListOption.prototype, "href", {
|
|
402
|
-
get: function () {
|
|
403
|
-
if (this.value) {
|
|
404
|
-
return this.value.isLink && typeof this.value === "function"
|
|
405
|
-
? this.value()
|
|
406
|
-
: this.value.href;
|
|
407
|
-
}
|
|
408
|
-
return null;
|
|
409
|
-
},
|
|
410
|
-
enumerable: false,
|
|
411
|
-
configurable: true
|
|
412
|
-
});
|
|
413
|
-
Object.defineProperty(SpsOptionListOption.prototype, "disabled", {
|
|
414
|
-
get: function () {
|
|
415
|
-
if (typeof this.disabledInternal !== "undefined") {
|
|
416
|
-
return this.disabledInternal;
|
|
417
|
-
}
|
|
418
|
-
return this.value ? this.value.disabled : false;
|
|
419
|
-
},
|
|
420
|
-
set: function (value) {
|
|
421
|
-
this.disabledInternal = value;
|
|
422
|
-
},
|
|
423
|
-
enumerable: false,
|
|
424
|
-
configurable: true
|
|
425
|
-
});
|
|
426
|
-
Object.defineProperty(SpsOptionListOption.prototype, "bold", {
|
|
427
|
-
get: function () {
|
|
428
|
-
if (typeof this.boldInternal !== "undefined") {
|
|
429
|
-
return this.boldInternal;
|
|
430
|
-
}
|
|
431
|
-
return this.value ? this.value.bold && this.value.bold === true : false;
|
|
432
|
-
},
|
|
433
|
-
enumerable: false,
|
|
434
|
-
configurable: true
|
|
435
|
-
});
|
|
436
|
-
SpsOptionListOption.prototype.getHtml = function (patternToUnderline) {
|
|
437
|
-
if (patternToUnderline) {
|
|
438
|
-
return this.text.replace(patternToUnderline, "<u>$&</u>");
|
|
439
|
-
}
|
|
440
|
-
return this.text;
|
|
441
|
-
};
|
|
442
|
-
return SpsOptionListOption;
|
|
443
|
-
}());
|
|
444
|
-
|
|
445
|
-
/** The defaults for the page size selector in the Pagination component. */
|
|
446
|
-
var DEFAULT_PAGE_SIZE_OPTIONS = [10,
|
|
447
|
-
25,
|
|
448
|
-
50,
|
|
449
|
-
100];
|
|
450
|
-
|
|
373
|
+
return null;
|
|
374
|
+
}
|
|
375
|
+
get disabled() {
|
|
376
|
+
if (typeof this.disabledInternal !== "undefined") {
|
|
377
|
+
return this.disabledInternal;
|
|
378
|
+
}
|
|
379
|
+
return this.value ? this.value.disabled : false;
|
|
380
|
+
}
|
|
381
|
+
set disabled(value) {
|
|
382
|
+
this.disabledInternal = value;
|
|
383
|
+
}
|
|
384
|
+
get bold() {
|
|
385
|
+
if (typeof this.boldInternal !== "undefined") {
|
|
386
|
+
return this.boldInternal;
|
|
387
|
+
}
|
|
388
|
+
return this.value ? this.value.bold && this.value.bold === true : false;
|
|
389
|
+
}
|
|
390
|
+
getHtml(patternToUnderline) {
|
|
391
|
+
if (patternToUnderline) {
|
|
392
|
+
return this.text.replace(patternToUnderline, "<u>$&</u>");
|
|
393
|
+
}
|
|
394
|
+
return this.text;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
const DEFAULT_PAGE_SIZE_OPTIONS = [
|
|
398
|
+
10,
|
|
399
|
+
25,
|
|
400
|
+
50,
|
|
401
|
+
100
|
|
402
|
+
];
|
|
451
403
|
var Position;
|
|
452
|
-
(function
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
404
|
+
(function(Position2) {
|
|
405
|
+
Position2["TOP_LEFT"] = "top left";
|
|
406
|
+
Position2["TOP_MIDDLE"] = "top middle";
|
|
407
|
+
Position2["TOP_RIGHT"] = "top right";
|
|
408
|
+
Position2["RIGHT_TOP"] = "right top";
|
|
409
|
+
Position2["RIGHT_MIDDLE"] = "right middle";
|
|
410
|
+
Position2["RIGHT_BOTTOM"] = "right bottom";
|
|
411
|
+
Position2["BOTTOM_RIGHT"] = "bottom right";
|
|
412
|
+
Position2["BOTTOM_MIDDLE"] = "bottom middle";
|
|
413
|
+
Position2["BOTTOM_LEFT"] = "bottom left";
|
|
414
|
+
Position2["LEFT_BOTTOM"] = "left bottom";
|
|
415
|
+
Position2["LEFT_MIDDLE"] = "left middle";
|
|
416
|
+
Position2["LEFT_TOP"] = "left top";
|
|
465
417
|
})(Position || (Position = {}));
|
|
466
|
-
|
|
467
418
|
var RingSize;
|
|
468
|
-
(function
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
419
|
+
(function(RingSize2) {
|
|
420
|
+
RingSize2[RingSize2["SMALL"] = 14] = "SMALL";
|
|
421
|
+
RingSize2[RingSize2["MEDIUM"] = 26] = "MEDIUM";
|
|
422
|
+
RingSize2[RingSize2["LARGE"] = 38] = "LARGE";
|
|
472
423
|
})(RingSize || (RingSize = {}));
|
|
473
|
-
|
|
474
424
|
var SpinnerSize;
|
|
475
|
-
(function
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
425
|
+
(function(SpinnerSize2) {
|
|
426
|
+
SpinnerSize2["SMALL"] = "small";
|
|
427
|
+
SpinnerSize2["MEDIUM"] = "medium";
|
|
428
|
+
SpinnerSize2["LARGE"] = "large";
|
|
479
429
|
})(SpinnerSize || (SpinnerSize = {}));
|
|
480
|
-
|
|
481
430
|
var StackedBarChartMilestone;
|
|
482
|
-
(function
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
431
|
+
(function(StackedBarChartMilestone2) {
|
|
432
|
+
StackedBarChartMilestone2["GREEN"] = "green200";
|
|
433
|
+
StackedBarChartMilestone2["RED"] = "red200";
|
|
434
|
+
StackedBarChartMilestone2["BLUE"] = "blue200";
|
|
435
|
+
StackedBarChartMilestone2["ORANGE"] = "orange200";
|
|
436
|
+
StackedBarChartMilestone2["GRAY"] = "gray600";
|
|
488
437
|
})(StackedBarChartMilestone || (StackedBarChartMilestone = {}));
|
|
489
|
-
|
|
490
438
|
var SortDirection;
|
|
491
|
-
(function
|
|
492
|
-
|
|
493
|
-
|
|
439
|
+
(function(SortDirection2) {
|
|
440
|
+
SortDirection2["ASCENDING"] = "ascending";
|
|
441
|
+
SortDirection2["DESCENDING"] = "descending";
|
|
494
442
|
})(SortDirection || (SortDirection = {}));
|
|
495
|
-
|
|
496
443
|
var TagKind;
|
|
497
|
-
(function
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
444
|
+
(function(TagKind2) {
|
|
445
|
+
TagKind2["DEFAULT"] = "default";
|
|
446
|
+
TagKind2["KEY"] = "key";
|
|
447
|
+
TagKind2["WARNING"] = "warning";
|
|
448
|
+
TagKind2["ERROR"] = "error";
|
|
449
|
+
TagKind2["PENDING"] = "pending";
|
|
450
|
+
TagKind2["SUCCESS"] = "success";
|
|
451
|
+
TagKind2["INFO"] = "info";
|
|
505
452
|
})(TagKind || (TagKind = {}));
|
|
506
|
-
|
|
507
|
-
var TOOLTIP_HIDE_DELAY_MS_DEFAULT = 1000;
|
|
453
|
+
const TOOLTIP_HIDE_DELAY_MS_DEFAULT = 1e3;
|
|
508
454
|
var TooltipShowTrigger;
|
|
509
|
-
(function
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
455
|
+
(function(TooltipShowTrigger2) {
|
|
456
|
+
TooltipShowTrigger2["MANUAL"] = "manual";
|
|
457
|
+
TooltipShowTrigger2["MOUSEOVER"] = "mouseover";
|
|
458
|
+
TooltipShowTrigger2["CLICK"] = "click";
|
|
513
459
|
})(TooltipShowTrigger || (TooltipShowTrigger = {}));
|
|
514
460
|
var TooltipKind;
|
|
515
|
-
(function
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
461
|
+
(function(TooltipKind2) {
|
|
462
|
+
TooltipKind2["DEFAULT"] = "default";
|
|
463
|
+
TooltipKind2["HELP"] = "help";
|
|
464
|
+
TooltipKind2["ERROR"] = "error";
|
|
465
|
+
TooltipKind2["WARNING"] = "warning";
|
|
466
|
+
TooltipKind2["CONTAINER"] = "container";
|
|
521
467
|
})(TooltipKind || (TooltipKind = {}));
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
isLink: false,
|
|
468
|
+
const SPS_ACTION_DEFAULTS = {
|
|
469
|
+
icon: "",
|
|
470
|
+
label: "",
|
|
471
|
+
caption: "",
|
|
472
|
+
disabled: false,
|
|
473
|
+
isLink: false
|
|
529
474
|
};
|
|
530
|
-
/**
|
|
531
|
-
* Attaches metadata to the decorated method, designating it as an "action"
|
|
532
|
-
* that can be passed in to components such as modal and select. For example,
|
|
533
|
-
* if passed in to the modal, a button will be rendered in the modal using the
|
|
534
|
-
* specified label, icon, etc, and clicking that button will call the method.
|
|
535
|
-
*/
|
|
536
475
|
function SpsAction(actionDescriptor) {
|
|
537
|
-
|
|
476
|
+
return (target, key, descriptor) => simpleMetadataDecoratorApplicator(actionDescriptor, SPS_ACTION_DEFAULTS, target, key, descriptor);
|
|
538
477
|
}
|
|
539
|
-
|
|
540
|
-
var _a;
|
|
541
|
-
/** The possible statuses for a task in the Task Queue. */
|
|
542
478
|
var SpsTaskStatus;
|
|
543
|
-
(function
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
479
|
+
(function(SpsTaskStatus2) {
|
|
480
|
+
SpsTaskStatus2["COMPLETED"] = "completed";
|
|
481
|
+
SpsTaskStatus2["ERRORED"] = "errored";
|
|
482
|
+
SpsTaskStatus2["WARNING"] = "warning";
|
|
483
|
+
SpsTaskStatus2["IN_PROGRESS"] = "in_progress";
|
|
548
484
|
})(SpsTaskStatus || (SpsTaskStatus = {}));
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
485
|
+
const SpsTaskStatusIcons = Object.freeze({
|
|
486
|
+
[SpsTaskStatus.COMPLETED]: SpsIcon.STATUS_OK,
|
|
487
|
+
[SpsTaskStatus.ERRORED]: SpsIcon.STATUS_ERROR,
|
|
488
|
+
[SpsTaskStatus.WARNING]: SpsIcon.STATUS_WARNING,
|
|
489
|
+
[SpsTaskStatus.IN_PROGRESS]: "sps-spinner sps-spinner--small"
|
|
490
|
+
});
|
|
491
|
+
const TASK_QUEUE_NOTIFICATION_DURATION_MS = 5e3;
|
|
557
492
|
var WizardSubstepConditions;
|
|
558
|
-
(function
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
493
|
+
(function(WizardSubstepConditions2) {
|
|
494
|
+
WizardSubstepConditions2["BASIC"] = "basic";
|
|
495
|
+
WizardSubstepConditions2["COMPLETED"] = "completed";
|
|
496
|
+
WizardSubstepConditions2["COMPLETE"] = "completed";
|
|
497
|
+
WizardSubstepConditions2["ACTIVE"] = "active";
|
|
563
498
|
})(WizardSubstepConditions || (WizardSubstepConditions = {}));
|
|
564
|
-
|
|
565
499
|
var ZStratum;
|
|
566
|
-
(function
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
500
|
+
(function(ZStratum2) {
|
|
501
|
+
ZStratum2[ZStratum2["BASE"] = 0] = "BASE";
|
|
502
|
+
ZStratum2[ZStratum2["TIP"] = 10] = "TIP";
|
|
503
|
+
ZStratum2[ZStratum2["DROPDOWN"] = 100] = "DROPDOWN";
|
|
504
|
+
ZStratum2[ZStratum2["BAR"] = 1e3] = "BAR";
|
|
505
|
+
ZStratum2[ZStratum2["DIALOG"] = 1e4] = "DIALOG";
|
|
572
506
|
})(ZStratum || (ZStratum = {}));
|
|
573
|
-
|
|
574
507
|
export { ButtonKind, ButtonType, ClickableTagKind, DEFAULT_PAGE_SIZE_OPTIONS, DropdownKind, FeedbackBlockIcons, FeedbackBlockKind, GROWLER_FADEOUT_DURATION_MS, GROWLER_VISIBLE_DURATION_MS, GrowlerIcon, GrowlerKind, KeyValueListTitleColor, ModalKind, ModalSize, Position, RingSize, SPS_ACTION_DEFAULTS, SelectMode, SortDirection, SpinnerSize, SpsAction, SpsFilterTileKind, SpsIcon, SpsIconSize, SpsInsightCardIcons, SpsInsightCardKind, SpsInsightTileIcons, SpsInsightTileKind, SpsOptionListOption, SpsTaskStatus, SpsTaskStatusIcons, StackedBarChartMilestone, StdButtonKind, TASK_QUEUE_NOTIFICATION_DURATION_MS, TOOLTIP_HIDE_DELAY_MS_DEFAULT, TagKind, TooltipKind, TooltipShowTrigger, WizardSubstepConditions, ZStratum, exampleIsReactComponentExample, exampleIsReactJSXExample, noI18nI18n };
|