@capillarytech/blaze-ui 0.1.6-alpha.3 → 0.1.6-alpha.32
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/components/CapInput/CapInput.js +60 -0
- package/components/CapInput/Number.js +39 -0
- package/components/CapInput/Search.js +34 -0
- package/components/CapInput/TextArea.js +41 -0
- package/components/CapInput/index.js +13 -0
- package/components/CapInput/messages.js +24 -0
- package/components/CapInput/styles.js +8 -0
- package/components/CapSkeleton/CapSkeleton.js +24 -0
- package/components/CapSkeleton/index.js +7 -0
- package/components/CapSpin/CapSpin.js +30 -0
- package/components/CapSpin/index.js +7 -0
- package/components/CapTable/CapTable.js +118 -0
- package/components/CapTable/index.js +7 -0
- package/components/CapTable/loadable.js +18 -0
- package/components/CapTable/styles.js +23 -0
- package/components/CapTestSelect/CapTestSelect.js +36 -0
- package/components/CapTestSelect/index.js +7 -0
- package/components/CapUnifiedSelect/CapUnifiedSelect.js +359 -0
- package/components/CapUnifiedSelect/index.js +7 -0
- package/components/CapUnifiedSelect/messages.js +27 -0
- package/components/CapUnifiedSelect/styles.js +36 -0
- package/components/LocaleHoc/index.js +42 -0
- package/components/index.js +33 -0
- package/components/styled/index.js +14 -0
- package/components/styled/variables.js +70 -0
- package/{translations → components/translations}/en.js +37 -35
- package/dist/components/CapSkeleton/CapSkeleton.js +29 -0
- package/dist/components/CapSkeleton/index.js +13 -0
- package/dist/components/CapSpin/CapSpin.js +35 -0
- package/dist/components/CapSpin/index.js +13 -0
- package/dist/{CapTable → components/CapTable}/loadable.js +4 -4
- package/dist/components/CapTestSelect/CapTestSelect.js +40 -0
- package/dist/components/CapTestSelect/index.js +13 -0
- package/dist/components/CapUnifiedSelect/CapUnifiedSelect.js +406 -0
- package/dist/components/CapUnifiedSelect/index.js +13 -0
- package/dist/components/CapUnifiedSelect/messages.js +29 -0
- package/dist/components/CapUnifiedSelect/styles.js +39 -0
- package/dist/{index.js → components/index.js} +27 -0
- package/dist/esm/{CapRow/CapRow.js → components/CapSkeleton/CapSkeleton.js} +12 -12
- package/dist/esm/components/CapSkeleton/index.js +1 -0
- package/dist/esm/components/CapSpin/CapSpin.js +28 -0
- package/dist/esm/components/CapSpin/index.js +1 -0
- package/dist/esm/components/CapTable/loadable.js +12 -0
- package/dist/esm/components/CapTestSelect/CapTestSelect.js +34 -0
- package/dist/esm/components/CapTestSelect/index.js +1 -0
- package/dist/esm/components/CapUnifiedSelect/CapUnifiedSelect.js +398 -0
- package/dist/esm/components/CapUnifiedSelect/index.js +1 -0
- package/dist/esm/components/CapUnifiedSelect/styles.js +31 -0
- package/dist/esm/{index.js → components/index.js} +5 -1
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/withStyles.js +23 -0
- package/dist/utils/index.js +13 -0
- package/dist/utils/withStyles.js +29 -0
- package/package.json +6 -10
- package/utils/index.js +7 -0
- package/utils/withStyles.js +15 -0
- package/CapHeading/CapHeading.js +0 -71
- package/CapHeading/index.js +0 -1
- package/CapHeading/styles.js +0 -125
- package/CapInfoNote/CapInfoNote.js +0 -54
- package/CapInfoNote/index.js +0 -1
- package/CapInfoNote/styles.js +0 -63
- package/CapInput/CapInput.js +0 -67
- package/CapInput/Number.js +0 -38
- package/CapInput/Search.js +0 -32
- package/CapInput/TextArea.js +0 -45
- package/CapInput/index.js +0 -10
- package/CapInput/loadable.js +0 -9
- package/CapInput/messages.js +0 -27
- package/CapInput/styles.js +0 -81
- package/CapLabel/CapLabel.js +0 -106
- package/CapLabel/index.js +0 -1
- package/CapLabel/styles.js +0 -221
- package/CapRow/CapRow.js +0 -22
- package/CapRow/index.js +0 -1
- package/CapRow/styles.js +0 -9
- package/CapTable/CapTable.js +0 -146
- package/CapTable/index.js +0 -3
- package/CapTable/loadable.js +0 -13
- package/CapTable/styles.js +0 -134
- package/CapTooltip/CapTooltip.js +0 -36
- package/CapTooltip/index.js +0 -1
- package/CapTooltip/styles.js +0 -42
- package/CapUnifiedSelect/CapUnifiedSelect.js +0 -121
- package/CapUnifiedSelect/index.js +0 -4
- package/CapUnifiedSelect/loadable.js +0 -3
- package/CapUnifiedSelect/messages.js +0 -24
- package/CapUnifiedSelect/styles.js +0 -223
- package/LocaleHoc/index.js +0 -38
- package/dist/235.index.js +0 -2
- package/dist/235.index.js.LICENSE.txt +0 -29
- package/dist/603.index.js +0 -1
- package/dist/esm/CapHeading/CapHeading.js +0 -41
- package/dist/esm/CapHeading/index.js +0 -1
- package/dist/esm/CapHeading/styles.js +0 -123
- package/dist/esm/CapInfoNote/CapInfoNote.js +0 -62
- package/dist/esm/CapInfoNote/index.js +0 -1
- package/dist/esm/CapInfoNote/styles.js +0 -6
- package/dist/esm/CapInput/loadable.js +0 -9
- package/dist/esm/CapLabel/CapLabel.js +0 -50
- package/dist/esm/CapLabel/index.js +0 -1
- package/dist/esm/CapLabel/styles.js +0 -219
- package/dist/esm/CapRow/index.js +0 -1
- package/dist/esm/CapRow/styles.js +0 -5
- package/dist/esm/CapTable/loadable.js +0 -12
- package/dist/esm/CapTooltip/CapTooltip.js +0 -34
- package/dist/esm/CapTooltip/index.js +0 -1
- package/dist/esm/CapTooltip/styles.js +0 -6
- package/dist/esm/CapUnifiedSelect/CapUnifiedSelect.js +0 -101
- package/dist/esm/CapUnifiedSelect/index.js +0 -3
- package/dist/esm/CapUnifiedSelect/loadable.js +0 -4
- package/dist/esm/CapUnifiedSelect/styles.js +0 -15
- package/dist/index.js.LICENSE.txt +0 -7
- package/index.js +0 -10
- package/styled/index.js +0 -6
- package/styled/variables.js +0 -89
- /package/dist/{CapInput → components/CapInput}/CapInput.js +0 -0
- /package/dist/{CapInput → components/CapInput}/Number.js +0 -0
- /package/dist/{CapInput → components/CapInput}/Search.js +0 -0
- /package/dist/{CapInput → components/CapInput}/TextArea.js +0 -0
- /package/dist/{CapInput → components/CapInput}/index.js +0 -0
- /package/dist/{CapInput → components/CapInput}/messages.js +0 -0
- /package/dist/{CapInput → components/CapInput}/styles.js +0 -0
- /package/dist/{CapTable → components/CapTable}/CapTable.js +0 -0
- /package/dist/{CapTable → components/CapTable}/index.js +0 -0
- /package/dist/{CapTable → components/CapTable}/styles.js +0 -0
- /package/dist/{LocaleHoc → components/LocaleHoc}/index.js +0 -0
- /package/dist/{styled → components/styled}/index.js +0 -0
- /package/dist/{styled → components/styled}/variables.js +0 -0
- /package/dist/{translations → components/translations}/en.js +0 -0
- /package/dist/esm/{CapInput → components/CapInput}/CapInput.js +0 -0
- /package/dist/esm/{CapInput → components/CapInput}/Number.js +0 -0
- /package/dist/esm/{CapInput → components/CapInput}/Search.js +0 -0
- /package/dist/esm/{CapInput → components/CapInput}/TextArea.js +0 -0
- /package/dist/esm/{CapInput → components/CapInput}/index.js +0 -0
- /package/dist/esm/{CapInput → components/CapInput}/messages.js +0 -0
- /package/dist/esm/{CapInput → components/CapInput}/styles.js +0 -0
- /package/dist/esm/{CapTable → components/CapTable}/CapTable.js +0 -0
- /package/dist/esm/{CapTable → components/CapTable}/index.js +0 -0
- /package/dist/esm/{CapTable → components/CapTable}/styles.js +0 -0
- /package/dist/esm/{CapUnifiedSelect → components/CapUnifiedSelect}/messages.js +0 -0
- /package/dist/esm/{LocaleHoc → components/LocaleHoc}/index.js +0 -0
- /package/dist/esm/{styled → components/styled}/index.js +0 -0
- /package/dist/esm/{styled → components/styled}/variables.js +0 -0
- /package/dist/esm/{translations → components/translations}/en.js +0 -0
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = exports.default = {
|
|
2
6
|
CapMultiSelect: {
|
|
3
7
|
noResultsFoundText: "No results found",
|
|
4
8
|
selectText: "Select",
|
|
@@ -7,11 +11,11 @@ export default {
|
|
|
7
11
|
selectedText: "selected",
|
|
8
12
|
selectAllText: "Select all",
|
|
9
13
|
selectAllSearchResultsText: "Select all searched results",
|
|
10
|
-
moreText: "more"
|
|
14
|
+
moreText: "more"
|
|
11
15
|
},
|
|
12
16
|
CapModal: {
|
|
13
17
|
okText: 'Yes',
|
|
14
|
-
closeText: 'No'
|
|
18
|
+
closeText: 'No'
|
|
15
19
|
},
|
|
16
20
|
CapMultiSelectWithTree: {
|
|
17
21
|
noResultsFoundText: "No results found",
|
|
@@ -22,20 +26,20 @@ export default {
|
|
|
22
26
|
selectAllText: "Select all",
|
|
23
27
|
selectAllSearchResultsText: "Select all searched results",
|
|
24
28
|
moreText: "more",
|
|
25
|
-
storeUploadsText: "Store IDs are uploaded already"
|
|
29
|
+
storeUploadsText: "Store IDs are uploaded already"
|
|
26
30
|
},
|
|
27
31
|
CapCustomSelect: {
|
|
28
32
|
searchPlaceholder: 'Search',
|
|
29
|
-
selectPlaceholder: 'Select Option'
|
|
33
|
+
selectPlaceholder: 'Select Option'
|
|
30
34
|
},
|
|
31
35
|
CapMultiSelectDatePicker: {
|
|
32
|
-
lastDayText: 'Last day of month'
|
|
36
|
+
lastDayText: 'Last day of month'
|
|
33
37
|
},
|
|
34
38
|
CapTable: {
|
|
35
|
-
loadMoreData: 'Loading more data...'
|
|
39
|
+
loadMoreData: 'Loading more data...'
|
|
36
40
|
},
|
|
37
41
|
CapIllustration: {
|
|
38
|
-
accessForbiddenMsg: 'Action cannot be performed due to insufficient permission'
|
|
42
|
+
accessForbiddenMsg: 'Action cannot be performed due to insufficient permission'
|
|
39
43
|
},
|
|
40
44
|
CapNavigation: {
|
|
41
45
|
businessProcesses: 'Workbench',
|
|
@@ -51,20 +55,20 @@ export default {
|
|
|
51
55
|
selectOrganization: 'Select Organization',
|
|
52
56
|
organization: 'Organization',
|
|
53
57
|
noResultText: 'No results found',
|
|
54
|
-
selectProduct: 'Select Product'
|
|
58
|
+
selectProduct: 'Select Product'
|
|
55
59
|
},
|
|
56
60
|
InfoNote: {
|
|
57
|
-
noteText: 'Note'
|
|
61
|
+
noteText: 'Note'
|
|
58
62
|
},
|
|
59
63
|
SomethingWentWrong: {
|
|
60
64
|
title: 'Sorry, something went wrong.',
|
|
61
65
|
description: 'Please try again. If this issue occurs again, please reach out to Capillary support team.',
|
|
62
|
-
reloadText: 'Try refreshing again'
|
|
66
|
+
reloadText: 'Try refreshing again'
|
|
63
67
|
},
|
|
64
68
|
CapBlock: {
|
|
65
69
|
deleteBlockMsg: 'Delete',
|
|
66
70
|
expandBlockMsg: 'Expand',
|
|
67
|
-
collapseBlockMsg: 'Collapse'
|
|
71
|
+
collapseBlockMsg: 'Collapse'
|
|
68
72
|
},
|
|
69
73
|
CapMultiplePath: {
|
|
70
74
|
notUniqueMsg: 'Not Unique',
|
|
@@ -75,7 +79,7 @@ export default {
|
|
|
75
79
|
yesMsg: 'Yes',
|
|
76
80
|
noMsg: 'No',
|
|
77
81
|
pathMsg: 'Path',
|
|
78
|
-
addPathMessage: 'Add Path'
|
|
82
|
+
addPathMessage: 'Add Path'
|
|
79
83
|
},
|
|
80
84
|
CapCondition: {
|
|
81
85
|
includeMsg: 'include',
|
|
@@ -118,9 +122,8 @@ export default {
|
|
|
118
122
|
storeIdsMsg: 'Store IDs',
|
|
119
123
|
downloadStoreIdMsg: 'Download Store ID',
|
|
120
124
|
downloadStoreIdCodeNameMsg: 'Download Store ID, code & name',
|
|
121
|
-
downloadInProgressMsg: 'Download in progress, might take a while'
|
|
125
|
+
downloadInProgressMsg: 'Download in progress, might take a while'
|
|
122
126
|
},
|
|
123
|
-
|
|
124
127
|
CapConditionPreview: {
|
|
125
128
|
includeMsg: 'Include',
|
|
126
129
|
excludeMsg: 'Exclude',
|
|
@@ -146,15 +149,15 @@ export default {
|
|
|
146
149
|
viewMoreMsg: 'View more',
|
|
147
150
|
uploadInProgressMsg: 'Upload in progress',
|
|
148
151
|
uploadFailedErrorMsg: 'Upload failed',
|
|
149
|
-
uploadInvalidErrorMsg: 'Invalid file uploaded'
|
|
152
|
+
uploadInvalidErrorMsg: 'Invalid file uploaded'
|
|
150
153
|
},
|
|
151
154
|
CapPopoverTree: {
|
|
152
155
|
emptyDataMessage: 'No data found',
|
|
153
|
-
searchPlaceholder: 'Search'
|
|
156
|
+
searchPlaceholder: 'Search'
|
|
154
157
|
},
|
|
155
158
|
CapGraphBlockNode: {
|
|
156
159
|
configureText: 'Configure',
|
|
157
|
-
replaceEngagementBlockMsg: 'Replace engagement block'
|
|
160
|
+
replaceEngagementBlockMsg: 'Replace engagement block'
|
|
158
161
|
},
|
|
159
162
|
CapStaticTemplates: {
|
|
160
163
|
strategyTitleMsg: 'Select the strategy',
|
|
@@ -163,9 +166,8 @@ export default {
|
|
|
163
166
|
blankCategoryLabel: 'Custom',
|
|
164
167
|
blankTemplateLabel: 'Build from scratch',
|
|
165
168
|
blankTemplateDescription: 'Create your own journey from scratch',
|
|
166
|
-
searchPlaceholderMsg: 'Search strategy'
|
|
169
|
+
searchPlaceholderMsg: 'Search strategy'
|
|
167
170
|
},
|
|
168
|
-
|
|
169
171
|
CapProductSelection: {
|
|
170
172
|
lineItem: 'Line items',
|
|
171
173
|
selectAttribute: 'Select Attribute',
|
|
@@ -184,10 +186,10 @@ export default {
|
|
|
184
186
|
cancelText: 'Cancel',
|
|
185
187
|
comingSoon: 'Coming soon',
|
|
186
188
|
selectValues: 'Select value(s)',
|
|
187
|
-
atleast1Attribute: 'At least 1 attribute is required'
|
|
189
|
+
atleast1Attribute: 'At least 1 attribute is required'
|
|
188
190
|
},
|
|
189
191
|
CapTruncateList: {
|
|
190
|
-
more: 'more'
|
|
192
|
+
more: 'more'
|
|
191
193
|
},
|
|
192
194
|
CapSKUUploader: {
|
|
193
195
|
validatingSKUs: 'Validating SKUs',
|
|
@@ -197,7 +199,7 @@ export default {
|
|
|
197
199
|
addedSKUsMsg: 'Added SKUs',
|
|
198
200
|
skuFileName: 'SKU.csv',
|
|
199
201
|
invalidSKUFilename: 'invalidSKU.csv',
|
|
200
|
-
uploadedMsg: 'uploaded'
|
|
202
|
+
uploadedMsg: 'uploaded'
|
|
201
203
|
},
|
|
202
204
|
CapDndGraph: {
|
|
203
205
|
deleteBlockModalHeaderText: 'Delete block',
|
|
@@ -211,34 +213,34 @@ export default {
|
|
|
211
213
|
blockIsLinkedText: 'block is linked to the',
|
|
212
214
|
blockText: 'block.',
|
|
213
215
|
disconnectText: 'Deleting this block will disconnect the join.',
|
|
214
|
-
areYouSureText: 'Are you sure?'
|
|
216
|
+
areYouSureText: 'Are you sure?'
|
|
215
217
|
},
|
|
216
218
|
CapDragAndDrop: {
|
|
217
219
|
dropboxtext: 'Drop here!',
|
|
218
220
|
selectFilesText: 'Select files from your computer',
|
|
219
221
|
invalidFileSelectionText: 'Invalid file selection!',
|
|
220
222
|
or: 'OR',
|
|
221
|
-
droptext: 'Drag and drop files'
|
|
223
|
+
droptext: 'Drag and drop files'
|
|
222
224
|
},
|
|
223
225
|
CapRoadMap: {
|
|
224
|
-
defaultRoadMapDisabledMessage: "Not configured yet"
|
|
226
|
+
defaultRoadMapDisabledMessage: "Not configured yet"
|
|
225
227
|
},
|
|
226
228
|
CapTimelineCard: {
|
|
227
229
|
defaultConfiguringMessage: 'Configuring...',
|
|
228
230
|
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
229
231
|
toConfigure: 'To configure ',
|
|
230
|
-
completePrevSteps: ' complete the previous steps.'
|
|
232
|
+
completePrevSteps: ' complete the previous steps.'
|
|
231
233
|
},
|
|
232
234
|
CapTimelineNestedCard: {
|
|
233
235
|
defaultConfiguringMessage: 'Configuring...',
|
|
234
236
|
defaultNotConfiguredMessage: 'Not configured yet...',
|
|
235
237
|
toConfigure: 'To configure ',
|
|
236
|
-
completePrevSteps: ' complete the previous steps.'
|
|
238
|
+
completePrevSteps: ' complete the previous steps.'
|
|
237
239
|
},
|
|
238
240
|
NestedCardParent: {
|
|
239
241
|
defaultNestedTitle: 'Triggers',
|
|
240
242
|
toConfigure: 'To configure ',
|
|
241
|
-
completePrevSteps: ' complete the previous steps.'
|
|
243
|
+
completePrevSteps: ' complete the previous steps.'
|
|
242
244
|
},
|
|
243
245
|
'CapAskAira.DocumentationBot': {
|
|
244
246
|
textAskYourQuestion: "Ask your question here",
|
|
@@ -250,7 +252,7 @@ export default {
|
|
|
250
252
|
textWasHelpful: "Was this response helpful?",
|
|
251
253
|
textConfidence: "confidence",
|
|
252
254
|
textTooltip: "Need help? Ask Aira",
|
|
253
|
-
textCantConnect: "Can't connect to the server."
|
|
255
|
+
textCantConnect: "Can't connect to the server."
|
|
254
256
|
},
|
|
255
257
|
'CapAskAira.RuleGenerationBot': {
|
|
256
258
|
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
@@ -263,7 +265,7 @@ export default {
|
|
|
263
265
|
textRuleLoading: "Rule is loading... Hang tight!",
|
|
264
266
|
textThank: 'Thank you for your response!',
|
|
265
267
|
textWarn: 'Aira responses may be inaccurate or misleading. Help us to improve!',
|
|
266
|
-
textAddCommentPlaceholder: 'Add comment'
|
|
268
|
+
textAddCommentPlaceholder: 'Add comment'
|
|
267
269
|
},
|
|
268
270
|
'CapAskAira.ContentGenerationBot': {
|
|
269
271
|
textTypeAMessage: 'Type a message above and ask AiRA to recommend the best content',
|
|
@@ -277,7 +279,7 @@ export default {
|
|
|
277
279
|
textReplaced: 'Replaced',
|
|
278
280
|
textResetToDefault: "Reset to default",
|
|
279
281
|
textMoreLikeThis: "More like this",
|
|
280
|
-
textGenerateMore: "Generate more"
|
|
282
|
+
textGenerateMore: "Generate more"
|
|
281
283
|
},
|
|
282
284
|
'CapAskAira.ConfigurationBot': {
|
|
283
285
|
textAiraTitle: 'Aira Configuration Bot',
|
|
@@ -298,7 +300,7 @@ export default {
|
|
|
298
300
|
textCantConnect: "Can't connect to the server.",
|
|
299
301
|
textCreate: 'Create',
|
|
300
302
|
textCancel: 'Cancel',
|
|
301
|
-
textGeneratingResponse: 'Generating response'
|
|
303
|
+
textGeneratingResponse: 'Generating response'
|
|
302
304
|
},
|
|
303
305
|
'CapAskAira.DocumentationChatBot': {
|
|
304
306
|
textBotPlaceholder: 'Ask Aira about anything on our CRM platform',
|
|
@@ -318,7 +320,7 @@ export default {
|
|
|
318
320
|
textDownload: 'Download',
|
|
319
321
|
textImageDownload: 'Image downloaded successfully!',
|
|
320
322
|
textComingSoon: 'Coming soon',
|
|
321
|
-
textGenerateMore: 'Generate more'
|
|
323
|
+
textGenerateMore: 'Generate more'
|
|
322
324
|
},
|
|
323
325
|
'CapAskAira.RuleSummarizationBot': {
|
|
324
326
|
textRuleBotPlaceholder: 'Ask Aira to write an expression',
|
|
@@ -328,4 +330,4 @@ export default {
|
|
|
328
330
|
textSummarizeChatBotDesc: 'Enter the expression and Aira will generate a summary in plain english',
|
|
329
331
|
textRuleChatBot: 'Aira Expression Translator'
|
|
330
332
|
}
|
|
331
|
-
};
|
|
333
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _antd = require("antd");
|
|
10
|
+
var _excluded = ["className"];
|
|
11
|
+
/**
|
|
12
|
+
* CapSkeleton - Migrated to Ant Design v5
|
|
13
|
+
*/
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
18
|
+
var CapSkeleton = function CapSkeleton(_ref) {
|
|
19
|
+
var className = _ref.className,
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
var combinedClassName = "cap-skeleton-v2 ".concat(className || '').trim();
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Skeleton, _extends({
|
|
23
|
+
className: combinedClassName
|
|
24
|
+
}, rest));
|
|
25
|
+
};
|
|
26
|
+
CapSkeleton.propTypes = {
|
|
27
|
+
className: _propTypes["default"].string
|
|
28
|
+
};
|
|
29
|
+
var _default = exports["default"] = CapSkeleton;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _CapSkeleton["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _CapSkeleton = _interopRequireDefault(require("./CapSkeleton"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _antd = require("antd");
|
|
10
|
+
var _excluded = ["className"];
|
|
11
|
+
/**
|
|
12
|
+
* CapSpin - Migrated to Ant Design v5
|
|
13
|
+
*/
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
17
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
18
|
+
var CapSpin = function CapSpin(_ref) {
|
|
19
|
+
var className = _ref.className,
|
|
20
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Spin, _extends({
|
|
22
|
+
className: className
|
|
23
|
+
}, rest));
|
|
24
|
+
};
|
|
25
|
+
CapSpin.propTypes = {
|
|
26
|
+
className: _propTypes["default"].string,
|
|
27
|
+
size: _propTypes["default"].oneOf(['small', 'default', 'large']),
|
|
28
|
+
spinning: _propTypes["default"].bool,
|
|
29
|
+
tip: _propTypes["default"].string,
|
|
30
|
+
delay: _propTypes["default"].number,
|
|
31
|
+
indicator: _propTypes["default"].node,
|
|
32
|
+
fullscreen: _propTypes["default"].bool,
|
|
33
|
+
wrapperClassName: _propTypes["default"].string
|
|
34
|
+
};
|
|
35
|
+
var _default = exports["default"] = CapSpin;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _CapSpin["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _CapSpin = _interopRequireDefault(require("./CapSpin"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _CapSkeleton = _interopRequireDefault(require("../CapSkeleton"));
|
|
8
8
|
var _capUiUtils = require("@capillarytech/cap-ui-utils");
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -15,9 +15,9 @@ var LoadableComponent = (0, _capUiUtils.loadable)(function () {
|
|
|
15
15
|
return _interopRequireWildcard(require('./CapTable'));
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
|
-
var CapTableLoadable = function CapTableLoadable() {
|
|
18
|
+
var CapTableLoadable = function CapTableLoadable(props) {
|
|
19
19
|
return /*#__PURE__*/_react["default"].createElement(_react.Suspense, {
|
|
20
|
-
fallback: /*#__PURE__*/_react["default"].createElement(
|
|
21
|
-
}, /*#__PURE__*/_react["default"].createElement(LoadableComponent,
|
|
20
|
+
fallback: /*#__PURE__*/_react["default"].createElement(_CapSkeleton["default"], null)
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement(LoadableComponent, props));
|
|
22
22
|
};
|
|
23
23
|
var _default = exports["default"] = CapTableLoadable;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _antd = require("antd");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
/**
|
|
12
|
+
* Test component to verify Ant Design v5 Select integration
|
|
13
|
+
* This is a simple wrapper for testing purposes only
|
|
14
|
+
*/
|
|
15
|
+
var CapTestSelect = function CapTestSelect(props) {
|
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Select, props);
|
|
17
|
+
};
|
|
18
|
+
CapTestSelect.propTypes = {
|
|
19
|
+
// Common Select props from antd
|
|
20
|
+
allowClear: _propTypes["default"].bool,
|
|
21
|
+
defaultValue: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number, _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]))]),
|
|
22
|
+
disabled: _propTypes["default"].bool,
|
|
23
|
+
loading: _propTypes["default"].bool,
|
|
24
|
+
mode: _propTypes["default"].oneOf(['multiple', 'tags']),
|
|
25
|
+
placeholder: _propTypes["default"].string,
|
|
26
|
+
showSearch: _propTypes["default"].bool,
|
|
27
|
+
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number, _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]))]),
|
|
28
|
+
options: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
|
29
|
+
label: _propTypes["default"].node,
|
|
30
|
+
value: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
31
|
+
disabled: _propTypes["default"].bool
|
|
32
|
+
}))
|
|
33
|
+
};
|
|
34
|
+
CapTestSelect.defaultProps = {
|
|
35
|
+
allowClear: false,
|
|
36
|
+
disabled: false,
|
|
37
|
+
loading: false,
|
|
38
|
+
showSearch: false
|
|
39
|
+
};
|
|
40
|
+
var _default = exports["default"] = CapTestSelect;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _CapTestSelect["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _CapTestSelect = _interopRequireDefault(require("./CapTestSelect"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|