@spscommerce/ds-shared 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/lib/bar-chart.d.ts +12 -0
- package/lib/button.d.ts +34 -0
- package/lib/clickable-tag.d.ts +4 -0
- package/lib/datetime.d.ts +36 -0
- package/lib/examples.d.ts +41 -0
- package/lib/feedback.d.ts +15 -0
- package/lib/filter-tile.d.ts +7 -0
- package/lib/grid.d.ts +2 -0
- package/lib/growler.d.ts +12 -0
- package/lib/i18n.d.ts +4 -0
- package/lib/icon.d.ts +187 -0
- package/lib/index.cjs.js +1 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.es.js +527 -0
- package/lib/insight-card.d.ts +15 -0
- package/lib/insight-tile.d.ts +15 -0
- package/lib/key-value-list-item.d.ts +4 -0
- package/lib/line-chart.d.ts +8 -0
- package/lib/modal.d.ts +13 -0
- package/lib/option-list.d.ts +32 -0
- package/lib/pagination.d.ts +2 -0
- package/lib/positioning.d.ts +14 -0
- package/lib/ring-size.d.ts +5 -0
- package/lib/spinner.d.ts +5 -0
- package/lib/sps-action.d.ts +26 -0
- package/lib/stacked-horizontal-bar-chart.d.ts +8 -0
- package/lib/stepped-progress-bar.d.ts +7 -0
- package/lib/table.d.ts +12 -0
- package/lib/tabs.d.ts +13 -0
- package/lib/tag.d.ts +9 -0
- package/lib/task-queue.d.ts +24 -0
- package/lib/tooltip.d.ts +13 -0
- package/lib/translations.d.ts +139 -0
- package/lib/wizard-substep-condition.d.ts +6 -0
- package/lib/z-strata.d.ts +7 -0
- package/package.json +35 -0
- package/tsconfig.json +13 -0
- package/vite.config.js +20 -0
package/lib/index.es.js
ADDED
|
@@ -0,0 +1,527 @@
|
|
|
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;
|
|
16
|
+
};
|
|
17
|
+
import { getPath, template, simpleMetadataDecoratorApplicator } from "@spscommerce/utils";
|
|
18
|
+
var StdButtonKind;
|
|
19
|
+
(function(StdButtonKind2) {
|
|
20
|
+
StdButtonKind2["DEFAULT"] = "default";
|
|
21
|
+
StdButtonKind2["CONFIRM"] = "confirm";
|
|
22
|
+
StdButtonKind2["DELETE"] = "delete";
|
|
23
|
+
StdButtonKind2["KEY"] = "key";
|
|
24
|
+
})(StdButtonKind || (StdButtonKind = {}));
|
|
25
|
+
var ButtonKindIcon;
|
|
26
|
+
(function(ButtonKindIcon2) {
|
|
27
|
+
ButtonKindIcon2["ICON"] = "icon";
|
|
28
|
+
})(ButtonKindIcon || (ButtonKindIcon = {}));
|
|
29
|
+
var ButtonKindLink;
|
|
30
|
+
(function(ButtonKindLink2) {
|
|
31
|
+
ButtonKindLink2["LINK"] = "link";
|
|
32
|
+
})(ButtonKindLink || (ButtonKindLink = {}));
|
|
33
|
+
const DropdownKind = Object.freeze(__spreadValues(__spreadValues({}, StdButtonKind), ButtonKindIcon));
|
|
34
|
+
const ButtonKind = Object.freeze(__spreadValues(__spreadValues(__spreadValues({}, StdButtonKind), ButtonKindIcon), ButtonKindLink));
|
|
35
|
+
var ButtonType;
|
|
36
|
+
(function(ButtonType2) {
|
|
37
|
+
ButtonType2["BUTTON"] = "button";
|
|
38
|
+
ButtonType2["SUBMIT"] = "submit";
|
|
39
|
+
})(ButtonType || (ButtonType = {}));
|
|
40
|
+
var SelectMode;
|
|
41
|
+
(function(SelectMode2) {
|
|
42
|
+
SelectMode2[SelectMode2["START"] = 0] = "START";
|
|
43
|
+
SelectMode2[SelectMode2["END"] = 1] = "END";
|
|
44
|
+
})(SelectMode || (SelectMode = {}));
|
|
45
|
+
var ClickableTagKind;
|
|
46
|
+
(function(ClickableTagKind2) {
|
|
47
|
+
ClickableTagKind2["BLUE"] = "blue";
|
|
48
|
+
ClickableTagKind2["GRAY"] = "gray";
|
|
49
|
+
})(ClickableTagKind || (ClickableTagKind = {}));
|
|
50
|
+
function exampleIsReactComponentExample(example) {
|
|
51
|
+
return example.hasOwnProperty("react");
|
|
52
|
+
}
|
|
53
|
+
function exampleIsReactJSXExample(example) {
|
|
54
|
+
return example.hasOwnProperty("jsx");
|
|
55
|
+
}
|
|
56
|
+
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";
|
|
63
|
+
})(SpsIconSize || (SpsIconSize = {}));
|
|
64
|
+
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["USER_IMPERSONATION"] = "user-impersonation";
|
|
241
|
+
SpsIcon2["WRENCH"] = "wrench";
|
|
242
|
+
SpsIcon2["X"] = "x";
|
|
243
|
+
SpsIcon2["X_CIRCLE"] = "x-circle";
|
|
244
|
+
})(SpsIcon || (SpsIcon = {}));
|
|
245
|
+
var FeedbackBlockKind;
|
|
246
|
+
(function(FeedbackBlockKind2) {
|
|
247
|
+
FeedbackBlockKind2["TIP"] = "tip";
|
|
248
|
+
FeedbackBlockKind2["SUCCESS"] = "success";
|
|
249
|
+
FeedbackBlockKind2["WARNING"] = "warning";
|
|
250
|
+
FeedbackBlockKind2["ERROR"] = "error";
|
|
251
|
+
FeedbackBlockKind2["INFO"] = "info";
|
|
252
|
+
})(FeedbackBlockKind || (FeedbackBlockKind = {}));
|
|
253
|
+
const FeedbackBlockIcons = Object.freeze({
|
|
254
|
+
[FeedbackBlockKind.TIP]: SpsIcon.LIGHTBULB,
|
|
255
|
+
[FeedbackBlockKind.ERROR]: SpsIcon.EXCLAMATION_CIRCLE,
|
|
256
|
+
[FeedbackBlockKind.INFO]: SpsIcon.INFO_CIRCLE,
|
|
257
|
+
[FeedbackBlockKind.SUCCESS]: SpsIcon.CHECKMARK,
|
|
258
|
+
[FeedbackBlockKind.WARNING]: SpsIcon.EXCLAMATION_TRIANGLE
|
|
259
|
+
});
|
|
260
|
+
var SpsFilterTileKind;
|
|
261
|
+
(function(SpsFilterTileKind2) {
|
|
262
|
+
SpsFilterTileKind2["GENERAL"] = "general";
|
|
263
|
+
SpsFilterTileKind2["SUCCESS"] = "success";
|
|
264
|
+
SpsFilterTileKind2["ERROR"] = "error";
|
|
265
|
+
SpsFilterTileKind2["WARNING"] = "warning";
|
|
266
|
+
SpsFilterTileKind2["PROCESSING"] = "processing";
|
|
267
|
+
})(SpsFilterTileKind || (SpsFilterTileKind = {}));
|
|
268
|
+
const GROWLER_VISIBLE_DURATION_MS = 7e3;
|
|
269
|
+
const GROWLER_FADEOUT_DURATION_MS = 2e3;
|
|
270
|
+
var GrowlerKind;
|
|
271
|
+
(function(GrowlerKind2) {
|
|
272
|
+
GrowlerKind2["ACTIVITY"] = "activity";
|
|
273
|
+
GrowlerKind2["ERROR"] = "error";
|
|
274
|
+
GrowlerKind2["INFO"] = "info";
|
|
275
|
+
GrowlerKind2["PROGRESS"] = "progress";
|
|
276
|
+
GrowlerKind2["SUCCESS"] = "success";
|
|
277
|
+
GrowlerKind2["WARNING"] = "warning";
|
|
278
|
+
})(GrowlerKind || (GrowlerKind = {}));
|
|
279
|
+
const GrowlerIcon = new Map([
|
|
280
|
+
[GrowlerKind.INFO, SpsIcon.INFO_CIRCLE],
|
|
281
|
+
[GrowlerKind.WARNING, SpsIcon.EXCLAMATION_TRIANGLE],
|
|
282
|
+
[GrowlerKind.ERROR, SpsIcon.EXCLAMATION_CIRCLE],
|
|
283
|
+
[GrowlerKind.SUCCESS, SpsIcon.CHECKMARK]
|
|
284
|
+
]);
|
|
285
|
+
var translations = { "advancedSearch": { "clear": "Clear Fields", "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." }, "preventativeErrors": { "maxLength": "This field accepts a maximum number of characters.", "alpha": "This field accepts only alphabetic values.", "numeric": "This field accepts only numerical values.", "nonNumeric": "This field accepts only non-numerical values." }, "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", "clearResults": "Clear Results", "count": "{{count}} of {{total}}", "matchingResults": "Matching results", "noAdvancedSearchSelections": "No Advanced Search Selections", "results": "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." } };
|
|
286
|
+
const noI18nI18n = {
|
|
287
|
+
t(key, interpolations) {
|
|
288
|
+
const text = getPath(translations, key.replace(/^design-system:/, ""));
|
|
289
|
+
return interpolations ? template(text)(interpolations) : text;
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
var SpsInsightCardKind;
|
|
293
|
+
(function(SpsInsightCardKind2) {
|
|
294
|
+
SpsInsightCardKind2["GENERAL"] = "general";
|
|
295
|
+
SpsInsightCardKind2["SUCCESS"] = "success";
|
|
296
|
+
SpsInsightCardKind2["ERROR"] = "error";
|
|
297
|
+
SpsInsightCardKind2["WARNING"] = "warning";
|
|
298
|
+
SpsInsightCardKind2["PROCESSING"] = "processing";
|
|
299
|
+
})(SpsInsightCardKind || (SpsInsightCardKind = {}));
|
|
300
|
+
const SpsInsightCardIcons = Object.freeze({
|
|
301
|
+
[SpsInsightCardKind.GENERAL]: SpsIcon.STATUS_NEW,
|
|
302
|
+
[SpsInsightCardKind.SUCCESS]: SpsIcon.STATUS_OK,
|
|
303
|
+
[SpsInsightCardKind.ERROR]: SpsIcon.STATUS_ERROR,
|
|
304
|
+
[SpsInsightCardKind.WARNING]: SpsIcon.STATUS_WARNING,
|
|
305
|
+
[SpsInsightCardKind.PROCESSING]: SpsIcon.STATUS_IN_PROCESS
|
|
306
|
+
});
|
|
307
|
+
var SpsInsightTileKind;
|
|
308
|
+
(function(SpsInsightTileKind2) {
|
|
309
|
+
SpsInsightTileKind2["GENERAL"] = "general";
|
|
310
|
+
SpsInsightTileKind2["SUCCESS"] = "success";
|
|
311
|
+
SpsInsightTileKind2["ERROR"] = "error";
|
|
312
|
+
SpsInsightTileKind2["WARNING"] = "warning";
|
|
313
|
+
SpsInsightTileKind2["PROCESSING"] = "processing";
|
|
314
|
+
})(SpsInsightTileKind || (SpsInsightTileKind = {}));
|
|
315
|
+
const SpsInsightTileIcons = Object.freeze({
|
|
316
|
+
[SpsInsightTileKind.GENERAL]: SpsIcon.STATUS_NEW,
|
|
317
|
+
[SpsInsightTileKind.SUCCESS]: SpsIcon.STATUS_OK,
|
|
318
|
+
[SpsInsightTileKind.ERROR]: SpsIcon.STATUS_ERROR,
|
|
319
|
+
[SpsInsightTileKind.WARNING]: SpsIcon.STATUS_WARNING,
|
|
320
|
+
[SpsInsightTileKind.PROCESSING]: SpsIcon.STATUS_IN_PROCESS
|
|
321
|
+
});
|
|
322
|
+
var KeyValueListTitleColor;
|
|
323
|
+
(function(KeyValueListTitleColor2) {
|
|
324
|
+
KeyValueListTitleColor2["LIGHT"] = "light";
|
|
325
|
+
KeyValueListTitleColor2["DARK"] = "dark";
|
|
326
|
+
})(KeyValueListTitleColor || (KeyValueListTitleColor = {}));
|
|
327
|
+
var LineChartColors;
|
|
328
|
+
(function(LineChartColors2) {
|
|
329
|
+
LineChartColors2["BLUE"] = "blue200";
|
|
330
|
+
LineChartColors2["GRAY"] = "gray600";
|
|
331
|
+
LineChartColors2["GREEN"] = "green200";
|
|
332
|
+
LineChartColors2["ORANGE"] = "orange200";
|
|
333
|
+
LineChartColors2["PURPLE"] = "purple200";
|
|
334
|
+
LineChartColors2["RED"] = "red200";
|
|
335
|
+
})(LineChartColors || (LineChartColors = {}));
|
|
336
|
+
var ModalKind;
|
|
337
|
+
(function(ModalKind2) {
|
|
338
|
+
ModalKind2["GENERAL"] = "general";
|
|
339
|
+
ModalKind2["INFO"] = "info";
|
|
340
|
+
ModalKind2["SUCCESS"] = "success";
|
|
341
|
+
ModalKind2["WARNING"] = "warning";
|
|
342
|
+
ModalKind2["SERIOUS_WARNING"] = "serious-warning";
|
|
343
|
+
})(ModalKind || (ModalKind = {}));
|
|
344
|
+
var ModalSize;
|
|
345
|
+
(function(ModalSize2) {
|
|
346
|
+
ModalSize2["SMALL"] = "small";
|
|
347
|
+
ModalSize2["MEDIUM"] = "medium";
|
|
348
|
+
ModalSize2["LARGE"] = "large";
|
|
349
|
+
ModalSize2["X_LARGE"] = "xlarge";
|
|
350
|
+
})(ModalSize || (ModalSize = {}));
|
|
351
|
+
class SpsOptionListOption {
|
|
352
|
+
constructor(value, config = {}) {
|
|
353
|
+
this.value = value;
|
|
354
|
+
Object.assign(this, config);
|
|
355
|
+
}
|
|
356
|
+
get text() {
|
|
357
|
+
if (this.textInternal) {
|
|
358
|
+
return this.textInternal;
|
|
359
|
+
}
|
|
360
|
+
if (!this.value) {
|
|
361
|
+
return "";
|
|
362
|
+
}
|
|
363
|
+
return this.textKey ? this.value[this.textKey] : String(this.value);
|
|
364
|
+
}
|
|
365
|
+
set text(value) {
|
|
366
|
+
this.textInternal = value;
|
|
367
|
+
}
|
|
368
|
+
get caption() {
|
|
369
|
+
if (this.captionInternal) {
|
|
370
|
+
return this.captionInternal;
|
|
371
|
+
}
|
|
372
|
+
if (!this.value) {
|
|
373
|
+
return "";
|
|
374
|
+
}
|
|
375
|
+
return this.captionKey ? this.value[this.captionKey] : "";
|
|
376
|
+
}
|
|
377
|
+
set caption(value) {
|
|
378
|
+
this.captionInternal = value;
|
|
379
|
+
}
|
|
380
|
+
get href() {
|
|
381
|
+
if (this.value) {
|
|
382
|
+
return this.value.isLink && typeof this.value === "function" ? this.value() : this.value.href;
|
|
383
|
+
}
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
386
|
+
get disabled() {
|
|
387
|
+
if (typeof this.disabledInternal !== "undefined") {
|
|
388
|
+
return this.disabledInternal;
|
|
389
|
+
}
|
|
390
|
+
return this.value ? this.value.disabled : false;
|
|
391
|
+
}
|
|
392
|
+
set disabled(value) {
|
|
393
|
+
this.disabledInternal = value;
|
|
394
|
+
}
|
|
395
|
+
get bold() {
|
|
396
|
+
if (typeof this.boldInternal !== "undefined") {
|
|
397
|
+
return this.boldInternal;
|
|
398
|
+
}
|
|
399
|
+
return this.value ? this.value.bold && this.value.bold === true : false;
|
|
400
|
+
}
|
|
401
|
+
getHtml(patternToUnderline) {
|
|
402
|
+
if (patternToUnderline) {
|
|
403
|
+
return this.text.replace(patternToUnderline, "<u>$&</u>");
|
|
404
|
+
}
|
|
405
|
+
return this.text;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
const DEFAULT_PAGE_SIZE_OPTIONS = [
|
|
409
|
+
10,
|
|
410
|
+
25,
|
|
411
|
+
50,
|
|
412
|
+
100
|
|
413
|
+
];
|
|
414
|
+
var Position;
|
|
415
|
+
(function(Position2) {
|
|
416
|
+
Position2["TOP_LEFT"] = "top left";
|
|
417
|
+
Position2["TOP_MIDDLE"] = "top middle";
|
|
418
|
+
Position2["TOP_RIGHT"] = "top right";
|
|
419
|
+
Position2["RIGHT_TOP"] = "right top";
|
|
420
|
+
Position2["RIGHT_MIDDLE"] = "right middle";
|
|
421
|
+
Position2["RIGHT_BOTTOM"] = "right bottom";
|
|
422
|
+
Position2["BOTTOM_RIGHT"] = "bottom right";
|
|
423
|
+
Position2["BOTTOM_MIDDLE"] = "bottom middle";
|
|
424
|
+
Position2["BOTTOM_LEFT"] = "bottom left";
|
|
425
|
+
Position2["LEFT_BOTTOM"] = "left bottom";
|
|
426
|
+
Position2["LEFT_MIDDLE"] = "left middle";
|
|
427
|
+
Position2["LEFT_TOP"] = "left top";
|
|
428
|
+
})(Position || (Position = {}));
|
|
429
|
+
var RingSize;
|
|
430
|
+
(function(RingSize2) {
|
|
431
|
+
RingSize2[RingSize2["SMALL"] = 14] = "SMALL";
|
|
432
|
+
RingSize2[RingSize2["MEDIUM"] = 26] = "MEDIUM";
|
|
433
|
+
RingSize2[RingSize2["LARGE"] = 38] = "LARGE";
|
|
434
|
+
})(RingSize || (RingSize = {}));
|
|
435
|
+
var SpinnerSize;
|
|
436
|
+
(function(SpinnerSize2) {
|
|
437
|
+
SpinnerSize2["SMALL"] = "small";
|
|
438
|
+
SpinnerSize2["MEDIUM"] = "medium";
|
|
439
|
+
SpinnerSize2["LARGE"] = "large";
|
|
440
|
+
})(SpinnerSize || (SpinnerSize = {}));
|
|
441
|
+
var StackedBarChartMilestone;
|
|
442
|
+
(function(StackedBarChartMilestone2) {
|
|
443
|
+
StackedBarChartMilestone2["BLUE"] = "blue200";
|
|
444
|
+
StackedBarChartMilestone2["GRAY"] = "gray600";
|
|
445
|
+
StackedBarChartMilestone2["GREEN"] = "green200";
|
|
446
|
+
StackedBarChartMilestone2["ORANGE"] = "orange200";
|
|
447
|
+
StackedBarChartMilestone2["PURPLE"] = "purple200";
|
|
448
|
+
StackedBarChartMilestone2["RED"] = "red200";
|
|
449
|
+
})(StackedBarChartMilestone || (StackedBarChartMilestone = {}));
|
|
450
|
+
var SteppedProgressBarColor;
|
|
451
|
+
(function(SteppedProgressBarColor2) {
|
|
452
|
+
SteppedProgressBarColor2["PURPLE"] = "purple";
|
|
453
|
+
SteppedProgressBarColor2["RED"] = "red";
|
|
454
|
+
SteppedProgressBarColor2["BLUE"] = "blue";
|
|
455
|
+
SteppedProgressBarColor2["ORANGE"] = "orange";
|
|
456
|
+
SteppedProgressBarColor2["GRAY"] = "gray";
|
|
457
|
+
})(SteppedProgressBarColor || (SteppedProgressBarColor = {}));
|
|
458
|
+
var SortDirection;
|
|
459
|
+
(function(SortDirection2) {
|
|
460
|
+
SortDirection2["ASCENDING"] = "ascending";
|
|
461
|
+
SortDirection2["DESCENDING"] = "descending";
|
|
462
|
+
})(SortDirection || (SortDirection = {}));
|
|
463
|
+
var TagKind;
|
|
464
|
+
(function(TagKind2) {
|
|
465
|
+
TagKind2["DEFAULT"] = "default";
|
|
466
|
+
TagKind2["KEY"] = "key";
|
|
467
|
+
TagKind2["WARNING"] = "warning";
|
|
468
|
+
TagKind2["ERROR"] = "error";
|
|
469
|
+
TagKind2["PENDING"] = "pending";
|
|
470
|
+
TagKind2["SUCCESS"] = "success";
|
|
471
|
+
TagKind2["INFO"] = "info";
|
|
472
|
+
})(TagKind || (TagKind = {}));
|
|
473
|
+
const TOOLTIP_HIDE_DELAY_MS_DEFAULT = 1e3;
|
|
474
|
+
var TooltipShowTrigger;
|
|
475
|
+
(function(TooltipShowTrigger2) {
|
|
476
|
+
TooltipShowTrigger2["MANUAL"] = "manual";
|
|
477
|
+
TooltipShowTrigger2["MOUSEOVER"] = "mouseover";
|
|
478
|
+
TooltipShowTrigger2["CLICK"] = "click";
|
|
479
|
+
})(TooltipShowTrigger || (TooltipShowTrigger = {}));
|
|
480
|
+
var TooltipKind;
|
|
481
|
+
(function(TooltipKind2) {
|
|
482
|
+
TooltipKind2["DEFAULT"] = "default";
|
|
483
|
+
TooltipKind2["HELP"] = "help";
|
|
484
|
+
TooltipKind2["ERROR"] = "error";
|
|
485
|
+
TooltipKind2["WARNING"] = "warning";
|
|
486
|
+
TooltipKind2["CONTAINER"] = "container";
|
|
487
|
+
})(TooltipKind || (TooltipKind = {}));
|
|
488
|
+
const SPS_ACTION_DEFAULTS = {
|
|
489
|
+
icon: "",
|
|
490
|
+
label: "",
|
|
491
|
+
caption: "",
|
|
492
|
+
disabled: false,
|
|
493
|
+
isLink: false
|
|
494
|
+
};
|
|
495
|
+
function SpsAction(actionDescriptor) {
|
|
496
|
+
return (target, key, descriptor) => simpleMetadataDecoratorApplicator(actionDescriptor, SPS_ACTION_DEFAULTS, target, key, descriptor);
|
|
497
|
+
}
|
|
498
|
+
var SpsTaskStatus;
|
|
499
|
+
(function(SpsTaskStatus2) {
|
|
500
|
+
SpsTaskStatus2["COMPLETED"] = "completed";
|
|
501
|
+
SpsTaskStatus2["ERRORED"] = "errored";
|
|
502
|
+
SpsTaskStatus2["WARNING"] = "warning";
|
|
503
|
+
SpsTaskStatus2["IN_PROGRESS"] = "in_progress";
|
|
504
|
+
})(SpsTaskStatus || (SpsTaskStatus = {}));
|
|
505
|
+
const SpsTaskStatusIcons = Object.freeze({
|
|
506
|
+
[SpsTaskStatus.COMPLETED]: SpsIcon.STATUS_OK,
|
|
507
|
+
[SpsTaskStatus.ERRORED]: SpsIcon.STATUS_ERROR,
|
|
508
|
+
[SpsTaskStatus.WARNING]: SpsIcon.STATUS_WARNING,
|
|
509
|
+
[SpsTaskStatus.IN_PROGRESS]: "sps-spinner sps-spinner--small"
|
|
510
|
+
});
|
|
511
|
+
const TASK_QUEUE_NOTIFICATION_DURATION_MS = 5e3;
|
|
512
|
+
var WizardSubstepConditions;
|
|
513
|
+
(function(WizardSubstepConditions2) {
|
|
514
|
+
WizardSubstepConditions2["BASIC"] = "basic";
|
|
515
|
+
WizardSubstepConditions2["COMPLETED"] = "completed";
|
|
516
|
+
WizardSubstepConditions2["COMPLETE"] = "completed";
|
|
517
|
+
WizardSubstepConditions2["ACTIVE"] = "active";
|
|
518
|
+
})(WizardSubstepConditions || (WizardSubstepConditions = {}));
|
|
519
|
+
var ZStratum;
|
|
520
|
+
(function(ZStratum2) {
|
|
521
|
+
ZStratum2[ZStratum2["BASE"] = 0] = "BASE";
|
|
522
|
+
ZStratum2[ZStratum2["TIP"] = 10] = "TIP";
|
|
523
|
+
ZStratum2[ZStratum2["DROPDOWN"] = 100] = "DROPDOWN";
|
|
524
|
+
ZStratum2[ZStratum2["BAR"] = 1e3] = "BAR";
|
|
525
|
+
ZStratum2[ZStratum2["DIALOG"] = 1e4] = "DIALOG";
|
|
526
|
+
})(ZStratum || (ZStratum = {}));
|
|
527
|
+
export { ButtonKind, ButtonType, ClickableTagKind, DEFAULT_PAGE_SIZE_OPTIONS, DropdownKind, FeedbackBlockIcons, FeedbackBlockKind, GROWLER_FADEOUT_DURATION_MS, GROWLER_VISIBLE_DURATION_MS, GrowlerIcon, GrowlerKind, KeyValueListTitleColor, LineChartColors, ModalKind, ModalSize, Position, RingSize, SPS_ACTION_DEFAULTS, SelectMode, SortDirection, SpinnerSize, SpsAction, SpsFilterTileKind, SpsIcon, SpsIconSize, SpsInsightCardIcons, SpsInsightCardKind, SpsInsightTileIcons, SpsInsightTileKind, SpsOptionListOption, SpsTaskStatus, SpsTaskStatusIcons, StackedBarChartMilestone, StdButtonKind, SteppedProgressBarColor, TASK_QUEUE_NOTIFICATION_DURATION_MS, TOOLTIP_HIDE_DELAY_MS_DEFAULT, TagKind, TooltipKind, TooltipShowTrigger, WizardSubstepConditions, ZStratum, exampleIsReactComponentExample, exampleIsReactJSXExample, noI18nI18n };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpsIcon } from "./icon";
|
|
2
|
+
export declare enum SpsInsightCardKind {
|
|
3
|
+
GENERAL = "general",
|
|
4
|
+
SUCCESS = "success",
|
|
5
|
+
ERROR = "error",
|
|
6
|
+
WARNING = "warning",
|
|
7
|
+
PROCESSING = "processing"
|
|
8
|
+
}
|
|
9
|
+
export declare const SpsInsightCardIcons: Readonly<{
|
|
10
|
+
general: SpsIcon;
|
|
11
|
+
success: SpsIcon;
|
|
12
|
+
error: SpsIcon;
|
|
13
|
+
warning: SpsIcon;
|
|
14
|
+
processing: SpsIcon;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpsIcon } from "./icon";
|
|
2
|
+
export declare enum SpsInsightTileKind {
|
|
3
|
+
GENERAL = "general",
|
|
4
|
+
SUCCESS = "success",
|
|
5
|
+
ERROR = "error",
|
|
6
|
+
WARNING = "warning",
|
|
7
|
+
PROCESSING = "processing"
|
|
8
|
+
}
|
|
9
|
+
export declare const SpsInsightTileIcons: Readonly<{
|
|
10
|
+
general: SpsIcon;
|
|
11
|
+
success: SpsIcon;
|
|
12
|
+
error: SpsIcon;
|
|
13
|
+
warning: SpsIcon;
|
|
14
|
+
processing: SpsIcon;
|
|
15
|
+
}>;
|
package/lib/modal.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum ModalKind {
|
|
2
|
+
GENERAL = "general",
|
|
3
|
+
INFO = "info",
|
|
4
|
+
SUCCESS = "success",
|
|
5
|
+
WARNING = "warning",
|
|
6
|
+
SERIOUS_WARNING = "serious-warning"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ModalSize {
|
|
9
|
+
SMALL = "small",
|
|
10
|
+
MEDIUM = "medium",
|
|
11
|
+
LARGE = "large",
|
|
12
|
+
X_LARGE = "xlarge"
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Shape of the config param for the `SpsOptionListOption<T>` constructor. */
|
|
2
|
+
export interface SpsOptionListOptionConfig {
|
|
3
|
+
textKey?: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
bold?: boolean;
|
|
6
|
+
captionKey?: string;
|
|
7
|
+
caption?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* All options passed in to components such as the select, the autocomplete, etc which
|
|
12
|
+
* use the Option List are normalized internally to this representation of an Option List option.
|
|
13
|
+
*/
|
|
14
|
+
export declare class SpsOptionListOption<T> {
|
|
15
|
+
value: T;
|
|
16
|
+
get text(): string;
|
|
17
|
+
set text(value: string);
|
|
18
|
+
get caption(): string;
|
|
19
|
+
set caption(value: string);
|
|
20
|
+
get href(): any;
|
|
21
|
+
get disabled(): boolean;
|
|
22
|
+
set disabled(value: boolean);
|
|
23
|
+
get bold(): boolean;
|
|
24
|
+
textKey: string;
|
|
25
|
+
captionKey: string;
|
|
26
|
+
private textInternal;
|
|
27
|
+
private captionInternal;
|
|
28
|
+
private disabledInternal;
|
|
29
|
+
private boldInternal;
|
|
30
|
+
constructor(value: T, config?: SpsOptionListOptionConfig);
|
|
31
|
+
getHtml(patternToUnderline?: RegExp): string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum Position {
|
|
2
|
+
TOP_LEFT = "top left",
|
|
3
|
+
TOP_MIDDLE = "top middle",
|
|
4
|
+
TOP_RIGHT = "top right",
|
|
5
|
+
RIGHT_TOP = "right top",
|
|
6
|
+
RIGHT_MIDDLE = "right middle",
|
|
7
|
+
RIGHT_BOTTOM = "right bottom",
|
|
8
|
+
BOTTOM_RIGHT = "bottom right",
|
|
9
|
+
BOTTOM_MIDDLE = "bottom middle",
|
|
10
|
+
BOTTOM_LEFT = "bottom left",
|
|
11
|
+
LEFT_BOTTOM = "left bottom",
|
|
12
|
+
LEFT_MIDDLE = "left middle",
|
|
13
|
+
LEFT_TOP = "left top"
|
|
14
|
+
}
|