@spscommerce/ds-shared 5.0.2 → 5.2.2-ie

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