@capillarytech/blaze-ui 5.0.6 → 5.0.7
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/.npmrc +2 -0
- package/CapCondition/messages.d.ts +85 -0
- package/CapCondition/messages.d.ts.map +1 -0
- package/CapConditionPreview/MIGRATION_ANALYSIS.md +70 -0
- package/CapConditionPreview/README.md +40 -0
- package/CapConditionPreview/constants.d.ts +24 -0
- package/CapConditionPreview/constants.d.ts.map +1 -0
- package/CapConditionPreview/index.d.ts +7 -0
- package/CapConditionPreview/index.d.ts.map +1 -0
- package/CapConditionPreview/index.js +131 -183
- package/CapConditionPreview/index.js.map +1 -1
- package/CapConditionPreview/tests/USE_CASES_CapConditionPreview.md +65 -0
- package/CapConditionPreview/types.d.ts +82 -0
- package/CapConditionPreview/types.d.ts.map +1 -0
- package/CapListLayout/index.js +193 -25
- package/CapListLayout/index.js.map +1 -1
- package/CapNavigation/index.js +6 -7
- package/CapNavigation/index.js.map +1 -1
- package/CapSteps/Status.md +40 -0
- package/CapSteps/index.d.ts +30 -0
- package/CapSteps/index.d.ts.map +1 -0
- package/CapSteps/index.js +657 -24
- package/CapSteps/index.js.map +1 -1
- package/CapSteps/types.d.ts +26 -0
- package/CapSteps/types.d.ts.map +1 -0
- package/CapTab/README.md +406 -0
- package/CapTab/Status.md +104 -0
- package/CapTab/index.d.ts +1 -27
- package/CapTab/index.d.ts.map +1 -1
- package/CapTab/index.js +56 -7
- package/CapTab/index.js.map +1 -1
- package/CapTab/tests/USE_CASE_GAPS.md +143 -0
- package/CapTab/types.d.ts +29 -0
- package/CapTab/types.d.ts.map +1 -0
- package/CapTabV3/ANALYSIS.md +60 -0
- package/CapTabV3/README.md +156 -0
- package/CapTabV3/Status.md +52 -0
- package/CapTabV3/index.d.ts +9 -0
- package/CapTabV3/index.d.ts.map +1 -0
- package/CapTabV3/index.js +105 -67
- package/CapTabV3/index.js.map +1 -1
- package/CapTabV3/tests/USE_CASE_GAPS.md +149 -0
- package/CapTabV3/types.d.ts +28 -0
- package/CapTabV3/types.d.ts.map +1 -0
- package/CapTable/README.md +160 -0
- package/CapTable/Status.md +41 -0
- package/CapTable/index.d.ts +2 -21
- package/CapTable/index.d.ts.map +1 -1
- package/CapTable/index.js +193 -25
- package/CapTable/index.js.map +1 -1
- package/CapTable/types.d.ts +46 -0
- package/CapTable/types.d.ts.map +1 -0
- package/CapTable/utils.d.ts +24 -0
- package/CapTable/utils.d.ts.map +1 -0
- package/CapTimePicker/index.js +51 -129
- package/CapTimePicker/index.js.map +1 -1
- package/CapUserProfile/index.js +6 -7
- package/CapUserProfile/index.js.map +1 -1
- package/CapVerticalGroupTable/index.js +193 -25
- package/CapVerticalGroupTable/index.js.map +1 -1
- package/index.d.ts +7 -3
- package/index.d.ts.map +1 -1
- package/index.js +1271 -233
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/getCapThemeConfig.d.ts.map +1 -1
- package/utils/index.js +9 -1
- package/utils/index.js.map +1 -1
- package/.DS_Store +0 -0
- package/CapTimePicker/index.d.ts +0 -11
- package/CapTimePicker/index.d.ts.map +0 -1
- package/CapTimePicker/types.d.ts +0 -95
- package/CapTimePicker/types.d.ts.map +0 -1
package/CapSteps/index.js
CHANGED
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
|
-
/******/ "use strict";
|
|
3
2
|
/******/ var __webpack_modules__ = ({
|
|
4
3
|
|
|
5
4
|
/***/ 9206:
|
|
6
5
|
/***/ ((module) => {
|
|
7
6
|
|
|
7
|
+
"use strict";
|
|
8
8
|
module.exports = require("react");
|
|
9
9
|
|
|
10
10
|
/***/ }),
|
|
11
11
|
|
|
12
|
+
/***/ 10540:
|
|
13
|
+
/***/ ((module) => {
|
|
14
|
+
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* istanbul ignore next */
|
|
19
|
+
function insertStyleElement(options) {
|
|
20
|
+
var element = document.createElement("style");
|
|
21
|
+
options.setAttributes(element, options.attributes);
|
|
22
|
+
options.insert(element, options.options);
|
|
23
|
+
return element;
|
|
24
|
+
}
|
|
25
|
+
module.exports = insertStyleElement;
|
|
26
|
+
|
|
27
|
+
/***/ }),
|
|
28
|
+
|
|
12
29
|
/***/ 21020:
|
|
13
30
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14
31
|
|
|
32
|
+
"use strict";
|
|
15
33
|
/**
|
|
16
34
|
* @license React
|
|
17
35
|
* react-jsx-runtime.production.min.js
|
|
@@ -27,16 +45,242 @@ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&
|
|
|
27
45
|
|
|
28
46
|
/***/ }),
|
|
29
47
|
|
|
30
|
-
/***/
|
|
48
|
+
/***/ 29475:
|
|
49
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
50
|
+
|
|
51
|
+
// Imports
|
|
52
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
53
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
54
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
55
|
+
// Module
|
|
56
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-steps-wrapper .ant-steps-title-horizontal:not(.ant-steps-vertical),.cap-steps-wrapper .ant-steps-horizontal:not(.ant-steps-vertical){--ant-steps-description-max-width: 10rem}.cap-steps-wrapper .ant-steps-item .ant-steps-item-rail{min-width:.714rem}.cap-steps-wrapper .ant-steps-item-tail::after{display:block !important;width:100%;height:1px;background-color:#dfe2e7}.cap-steps-wrapper .ant-steps-item-title{word-break:keep-all}.cap-steps-wrapper .ant-steps-item-finish .ant-steps-item-tail::after{background-color:#47af46}.cap-steps-wrapper .ant-steps-item-process .ant-steps-item-tail::after{background-color:#dfe2e7}.cap-steps-wrapper .ant-steps-item-description{margin-top:.285rem}.cap-steps-wrapper &.ant-steps-vertical .ant-steps-item{padding-bottom:1.714rem}`, ""]);
|
|
57
|
+
// Exports
|
|
58
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
59
|
+
"cap-steps-wrapper": `cap-steps-wrapper`
|
|
60
|
+
};
|
|
61
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/***/ }),
|
|
65
|
+
|
|
66
|
+
/***/ 31601:
|
|
67
|
+
/***/ ((module) => {
|
|
68
|
+
|
|
69
|
+
"use strict";
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
module.exports = function (i) {
|
|
73
|
+
return i[1];
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/***/ }),
|
|
77
|
+
|
|
78
|
+
/***/ 46942:
|
|
79
|
+
/***/ ((module, exports) => {
|
|
80
|
+
|
|
81
|
+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
82
|
+
Copyright (c) 2018 Jed Watson.
|
|
83
|
+
Licensed under the MIT License (MIT), see
|
|
84
|
+
http://jedwatson.github.io/classnames
|
|
85
|
+
*/
|
|
86
|
+
/* global define */
|
|
87
|
+
|
|
88
|
+
(function () {
|
|
89
|
+
'use strict';
|
|
90
|
+
|
|
91
|
+
var hasOwn = {}.hasOwnProperty;
|
|
92
|
+
|
|
93
|
+
function classNames () {
|
|
94
|
+
var classes = '';
|
|
95
|
+
|
|
96
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
97
|
+
var arg = arguments[i];
|
|
98
|
+
if (arg) {
|
|
99
|
+
classes = appendClass(classes, parseValue(arg));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return classes;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function parseValue (arg) {
|
|
107
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
108
|
+
return arg;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (typeof arg !== 'object') {
|
|
112
|
+
return '';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (Array.isArray(arg)) {
|
|
116
|
+
return classNames.apply(null, arg);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
120
|
+
return arg.toString();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
var classes = '';
|
|
124
|
+
|
|
125
|
+
for (var key in arg) {
|
|
126
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
127
|
+
classes = appendClass(classes, key);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return classes;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function appendClass (value, newClass) {
|
|
135
|
+
if (!newClass) {
|
|
136
|
+
return value;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (value) {
|
|
140
|
+
return value + ' ' + newClass;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return value + newClass;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if ( true && module.exports) {
|
|
147
|
+
classNames.default = classNames;
|
|
148
|
+
module.exports = classNames;
|
|
149
|
+
} else if (true) {
|
|
150
|
+
// register as 'classnames', consistent with npm package name
|
|
151
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
|
152
|
+
return classNames;
|
|
153
|
+
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
|
154
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
155
|
+
} else // removed by dead control flow
|
|
156
|
+
{}
|
|
157
|
+
}());
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
/***/ }),
|
|
161
|
+
|
|
162
|
+
/***/ 55056:
|
|
163
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
164
|
+
|
|
165
|
+
"use strict";
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/* istanbul ignore next */
|
|
169
|
+
function setAttributesWithoutAttributes(styleElement) {
|
|
170
|
+
var nonce = true ? __webpack_require__.nc : 0;
|
|
171
|
+
if (nonce) {
|
|
172
|
+
styleElement.setAttribute("nonce", nonce);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
module.exports = setAttributesWithoutAttributes;
|
|
176
|
+
|
|
177
|
+
/***/ }),
|
|
178
|
+
|
|
179
|
+
/***/ 64273:
|
|
180
|
+
/***/ ((module) => {
|
|
181
|
+
|
|
182
|
+
"use strict";
|
|
183
|
+
module.exports = require("antd-v5");
|
|
184
|
+
|
|
185
|
+
/***/ }),
|
|
186
|
+
|
|
187
|
+
/***/ 64284:
|
|
31
188
|
/***/ ((module) => {
|
|
32
189
|
|
|
33
|
-
|
|
190
|
+
"use strict";
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/* istanbul ignore next */
|
|
194
|
+
var replaceText = function replaceText() {
|
|
195
|
+
var textStore = [];
|
|
196
|
+
return function replace(index, replacement) {
|
|
197
|
+
textStore[index] = replacement;
|
|
198
|
+
return textStore.filter(Boolean).join("\n");
|
|
199
|
+
};
|
|
200
|
+
}();
|
|
201
|
+
|
|
202
|
+
/* istanbul ignore next */
|
|
203
|
+
function apply(styleElement, index, remove, obj) {
|
|
204
|
+
var css;
|
|
205
|
+
if (remove) {
|
|
206
|
+
css = "";
|
|
207
|
+
} else {
|
|
208
|
+
css = "";
|
|
209
|
+
if (obj.supports) {
|
|
210
|
+
css += "@supports (".concat(obj.supports, ") {");
|
|
211
|
+
}
|
|
212
|
+
if (obj.media) {
|
|
213
|
+
css += "@media ".concat(obj.media, " {");
|
|
214
|
+
}
|
|
215
|
+
var needLayer = typeof obj.layer !== "undefined";
|
|
216
|
+
if (needLayer) {
|
|
217
|
+
css += "@layer".concat(obj.layer.length > 0 ? " ".concat(obj.layer) : "", " {");
|
|
218
|
+
}
|
|
219
|
+
css += obj.css;
|
|
220
|
+
if (needLayer) {
|
|
221
|
+
css += "}";
|
|
222
|
+
}
|
|
223
|
+
if (obj.media) {
|
|
224
|
+
css += "}";
|
|
225
|
+
}
|
|
226
|
+
if (obj.supports) {
|
|
227
|
+
css += "}";
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// For old IE
|
|
232
|
+
/* istanbul ignore if */
|
|
233
|
+
if (styleElement.styleSheet) {
|
|
234
|
+
styleElement.styleSheet.cssText = replaceText(index, css);
|
|
235
|
+
} else {
|
|
236
|
+
var cssNode = document.createTextNode(css);
|
|
237
|
+
var childNodes = styleElement.childNodes;
|
|
238
|
+
if (childNodes[index]) {
|
|
239
|
+
styleElement.removeChild(childNodes[index]);
|
|
240
|
+
}
|
|
241
|
+
if (childNodes.length) {
|
|
242
|
+
styleElement.insertBefore(cssNode, childNodes[index]);
|
|
243
|
+
} else {
|
|
244
|
+
styleElement.appendChild(cssNode);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
var singletonData = {
|
|
249
|
+
singleton: null,
|
|
250
|
+
singletonCounter: 0
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/* istanbul ignore next */
|
|
254
|
+
function domAPI(options) {
|
|
255
|
+
if (typeof document === "undefined") return {
|
|
256
|
+
update: function update() {},
|
|
257
|
+
remove: function remove() {}
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
// eslint-disable-next-line no-undef,no-use-before-define
|
|
261
|
+
var styleIndex = singletonData.singletonCounter++;
|
|
262
|
+
var styleElement =
|
|
263
|
+
// eslint-disable-next-line no-undef,no-use-before-define
|
|
264
|
+
singletonData.singleton || (
|
|
265
|
+
// eslint-disable-next-line no-undef,no-use-before-define
|
|
266
|
+
singletonData.singleton = options.insertStyleElement(options));
|
|
267
|
+
return {
|
|
268
|
+
update: function update(obj) {
|
|
269
|
+
apply(styleElement, styleIndex, false, obj);
|
|
270
|
+
},
|
|
271
|
+
remove: function remove(obj) {
|
|
272
|
+
apply(styleElement, styleIndex, true, obj);
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
module.exports = domAPI;
|
|
34
277
|
|
|
35
278
|
/***/ }),
|
|
36
279
|
|
|
37
280
|
/***/ 74848:
|
|
38
281
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
39
282
|
|
|
283
|
+
"use strict";
|
|
40
284
|
|
|
41
285
|
|
|
42
286
|
if (true) {
|
|
@@ -47,10 +291,279 @@ if (true) {
|
|
|
47
291
|
|
|
48
292
|
/***/ }),
|
|
49
293
|
|
|
50
|
-
/***/
|
|
294
|
+
/***/ 76314:
|
|
51
295
|
/***/ ((module) => {
|
|
52
296
|
|
|
53
|
-
|
|
297
|
+
"use strict";
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
/*
|
|
301
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
302
|
+
Author Tobias Koppers @sokra
|
|
303
|
+
*/
|
|
304
|
+
module.exports = function (cssWithMappingToString) {
|
|
305
|
+
var list = [];
|
|
306
|
+
|
|
307
|
+
// return the list of modules as css string
|
|
308
|
+
list.toString = function toString() {
|
|
309
|
+
return this.map(function (item) {
|
|
310
|
+
var content = "";
|
|
311
|
+
var needLayer = typeof item[5] !== "undefined";
|
|
312
|
+
if (item[4]) {
|
|
313
|
+
content += "@supports (".concat(item[4], ") {");
|
|
314
|
+
}
|
|
315
|
+
if (item[2]) {
|
|
316
|
+
content += "@media ".concat(item[2], " {");
|
|
317
|
+
}
|
|
318
|
+
if (needLayer) {
|
|
319
|
+
content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
|
|
320
|
+
}
|
|
321
|
+
content += cssWithMappingToString(item);
|
|
322
|
+
if (needLayer) {
|
|
323
|
+
content += "}";
|
|
324
|
+
}
|
|
325
|
+
if (item[2]) {
|
|
326
|
+
content += "}";
|
|
327
|
+
}
|
|
328
|
+
if (item[4]) {
|
|
329
|
+
content += "}";
|
|
330
|
+
}
|
|
331
|
+
return content;
|
|
332
|
+
}).join("");
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
// import a list of modules into the list
|
|
336
|
+
list.i = function i(modules, media, dedupe, supports, layer) {
|
|
337
|
+
if (typeof modules === "string") {
|
|
338
|
+
modules = [[null, modules, undefined]];
|
|
339
|
+
}
|
|
340
|
+
var alreadyImportedModules = {};
|
|
341
|
+
if (dedupe) {
|
|
342
|
+
for (var k = 0; k < this.length; k++) {
|
|
343
|
+
var id = this[k][0];
|
|
344
|
+
if (id != null) {
|
|
345
|
+
alreadyImportedModules[id] = true;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
for (var _k = 0; _k < modules.length; _k++) {
|
|
350
|
+
var item = [].concat(modules[_k]);
|
|
351
|
+
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
if (typeof layer !== "undefined") {
|
|
355
|
+
if (typeof item[5] === "undefined") {
|
|
356
|
+
item[5] = layer;
|
|
357
|
+
} else {
|
|
358
|
+
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
|
359
|
+
item[5] = layer;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
if (media) {
|
|
363
|
+
if (!item[2]) {
|
|
364
|
+
item[2] = media;
|
|
365
|
+
} else {
|
|
366
|
+
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
|
367
|
+
item[2] = media;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
if (supports) {
|
|
371
|
+
if (!item[4]) {
|
|
372
|
+
item[4] = "".concat(supports);
|
|
373
|
+
} else {
|
|
374
|
+
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
|
375
|
+
item[4] = supports;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
list.push(item);
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
return list;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/***/ }),
|
|
385
|
+
|
|
386
|
+
/***/ 77659:
|
|
387
|
+
/***/ ((module) => {
|
|
388
|
+
|
|
389
|
+
"use strict";
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
var memo = {};
|
|
393
|
+
|
|
394
|
+
/* istanbul ignore next */
|
|
395
|
+
function getTarget(target) {
|
|
396
|
+
if (typeof memo[target] === "undefined") {
|
|
397
|
+
var styleTarget = document.querySelector(target);
|
|
398
|
+
|
|
399
|
+
// Special case to return head of iframe instead of iframe itself
|
|
400
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
401
|
+
try {
|
|
402
|
+
// This will throw an exception if access to iframe is blocked
|
|
403
|
+
// due to cross-origin restrictions
|
|
404
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
405
|
+
} catch (e) {
|
|
406
|
+
// istanbul ignore next
|
|
407
|
+
styleTarget = null;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
memo[target] = styleTarget;
|
|
411
|
+
}
|
|
412
|
+
return memo[target];
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* istanbul ignore next */
|
|
416
|
+
function insertBySelector(insert, style) {
|
|
417
|
+
var target = getTarget(insert);
|
|
418
|
+
if (!target) {
|
|
419
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
420
|
+
}
|
|
421
|
+
target.appendChild(style);
|
|
422
|
+
}
|
|
423
|
+
module.exports = insertBySelector;
|
|
424
|
+
|
|
425
|
+
/***/ }),
|
|
426
|
+
|
|
427
|
+
/***/ 81640:
|
|
428
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
429
|
+
|
|
430
|
+
"use strict";
|
|
431
|
+
__webpack_require__.r(__webpack_exports__);
|
|
432
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
433
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
434
|
+
/* harmony export */ });
|
|
435
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
436
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
437
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
438
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
439
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
440
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
441
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
442
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
443
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
444
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
445
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29475);
|
|
446
|
+
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__);
|
|
447
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
448
|
+
/* harmony reexport (unknown) */ for(const __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__) if(__WEBPACK_IMPORT_KEY__ !== "default") __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = () => _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5__[__WEBPACK_IMPORT_KEY__]
|
|
449
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
var options = {};
|
|
462
|
+
|
|
463
|
+
;
|
|
464
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
465
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
466
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
467
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
468
|
+
|
|
469
|
+
var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()), options);
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default()) && (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) ? (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_1_use_1_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_1_use_2_styles_scss__WEBPACK_IMPORTED_MODULE_5___default().locals) : undefined);
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
/***/ }),
|
|
478
|
+
|
|
479
|
+
/***/ 85072:
|
|
480
|
+
/***/ ((module) => {
|
|
481
|
+
|
|
482
|
+
"use strict";
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
var stylesInDOM = [];
|
|
486
|
+
function getIndexByIdentifier(identifier) {
|
|
487
|
+
var result = -1;
|
|
488
|
+
for (var i = 0; i < stylesInDOM.length; i++) {
|
|
489
|
+
if (stylesInDOM[i].identifier === identifier) {
|
|
490
|
+
result = i;
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
return result;
|
|
495
|
+
}
|
|
496
|
+
function modulesToDom(list, options) {
|
|
497
|
+
var idCountMap = {};
|
|
498
|
+
var identifiers = [];
|
|
499
|
+
for (var i = 0; i < list.length; i++) {
|
|
500
|
+
var item = list[i];
|
|
501
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
502
|
+
var count = idCountMap[id] || 0;
|
|
503
|
+
var identifier = "".concat(id, " ").concat(count);
|
|
504
|
+
idCountMap[id] = count + 1;
|
|
505
|
+
var indexByIdentifier = getIndexByIdentifier(identifier);
|
|
506
|
+
var obj = {
|
|
507
|
+
css: item[1],
|
|
508
|
+
media: item[2],
|
|
509
|
+
sourceMap: item[3],
|
|
510
|
+
supports: item[4],
|
|
511
|
+
layer: item[5]
|
|
512
|
+
};
|
|
513
|
+
if (indexByIdentifier !== -1) {
|
|
514
|
+
stylesInDOM[indexByIdentifier].references++;
|
|
515
|
+
stylesInDOM[indexByIdentifier].updater(obj);
|
|
516
|
+
} else {
|
|
517
|
+
var updater = addElementStyle(obj, options);
|
|
518
|
+
options.byIndex = i;
|
|
519
|
+
stylesInDOM.splice(i, 0, {
|
|
520
|
+
identifier: identifier,
|
|
521
|
+
updater: updater,
|
|
522
|
+
references: 1
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
identifiers.push(identifier);
|
|
526
|
+
}
|
|
527
|
+
return identifiers;
|
|
528
|
+
}
|
|
529
|
+
function addElementStyle(obj, options) {
|
|
530
|
+
var api = options.domAPI(options);
|
|
531
|
+
api.update(obj);
|
|
532
|
+
var updater = function updater(newObj) {
|
|
533
|
+
if (newObj) {
|
|
534
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
api.update(obj = newObj);
|
|
538
|
+
} else {
|
|
539
|
+
api.remove();
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
return updater;
|
|
543
|
+
}
|
|
544
|
+
module.exports = function (list, options) {
|
|
545
|
+
options = options || {};
|
|
546
|
+
list = list || [];
|
|
547
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
548
|
+
return function update(newList) {
|
|
549
|
+
newList = newList || [];
|
|
550
|
+
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
551
|
+
var identifier = lastIdentifiers[i];
|
|
552
|
+
var index = getIndexByIdentifier(identifier);
|
|
553
|
+
stylesInDOM[index].references--;
|
|
554
|
+
}
|
|
555
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
556
|
+
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
557
|
+
var _identifier = lastIdentifiers[_i];
|
|
558
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
559
|
+
if (stylesInDOM[_index].references === 0) {
|
|
560
|
+
stylesInDOM[_index].updater();
|
|
561
|
+
stylesInDOM.splice(_index, 1);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
lastIdentifiers = newLastIdentifiers;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
54
567
|
|
|
55
568
|
/***/ })
|
|
56
569
|
|
|
@@ -68,7 +581,7 @@ module.exports = require("antd");
|
|
|
68
581
|
/******/ }
|
|
69
582
|
/******/ // Create a new module (and put it into the cache)
|
|
70
583
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
71
|
-
/******/
|
|
584
|
+
/******/ id: moduleId,
|
|
72
585
|
/******/ // no module.loaded needed
|
|
73
586
|
/******/ exports: {}
|
|
74
587
|
/******/ };
|
|
@@ -81,38 +594,158 @@ module.exports = require("antd");
|
|
|
81
594
|
/******/ }
|
|
82
595
|
/******/
|
|
83
596
|
/************************************************************************/
|
|
597
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
598
|
+
/******/ (() => {
|
|
599
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
600
|
+
/******/ __webpack_require__.n = (module) => {
|
|
601
|
+
/******/ var getter = module && module.__esModule ?
|
|
602
|
+
/******/ () => (module['default']) :
|
|
603
|
+
/******/ () => (module);
|
|
604
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
605
|
+
/******/ return getter;
|
|
606
|
+
/******/ };
|
|
607
|
+
/******/ })();
|
|
608
|
+
/******/
|
|
609
|
+
/******/ /* webpack/runtime/define property getters */
|
|
610
|
+
/******/ (() => {
|
|
611
|
+
/******/ // define getter functions for harmony exports
|
|
612
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
613
|
+
/******/ for(var key in definition) {
|
|
614
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
615
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
616
|
+
/******/ }
|
|
617
|
+
/******/ }
|
|
618
|
+
/******/ };
|
|
619
|
+
/******/ })();
|
|
620
|
+
/******/
|
|
621
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
622
|
+
/******/ (() => {
|
|
623
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
624
|
+
/******/ })();
|
|
625
|
+
/******/
|
|
626
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
627
|
+
/******/ (() => {
|
|
628
|
+
/******/ // define __esModule on exports
|
|
629
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
630
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
631
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
632
|
+
/******/ }
|
|
633
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
634
|
+
/******/ };
|
|
635
|
+
/******/ })();
|
|
636
|
+
/******/
|
|
637
|
+
/******/ /* webpack/runtime/nonce */
|
|
638
|
+
/******/ (() => {
|
|
639
|
+
/******/ __webpack_require__.nc = undefined;
|
|
640
|
+
/******/ })();
|
|
641
|
+
/******/
|
|
642
|
+
/************************************************************************/
|
|
84
643
|
var __webpack_exports__ = {};
|
|
85
|
-
// This entry needs to be wrapped in an IIFE because it
|
|
644
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
86
645
|
(() => {
|
|
646
|
+
"use strict";
|
|
87
647
|
var exports = __webpack_exports__;
|
|
88
648
|
|
|
89
649
|
|
|
90
650
|
exports.__esModule = true;
|
|
91
651
|
exports["default"] = void 0;
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var _react =
|
|
652
|
+
var _antdV = __webpack_require__(64273);
|
|
653
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
654
|
+
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
655
|
+
var _styles = _interopRequireDefault(__webpack_require__(81640));
|
|
95
656
|
var _jsxRuntime = __webpack_require__(74848);
|
|
96
|
-
|
|
97
|
-
|
|
657
|
+
const _excluded = ["className", "children", "items"],
|
|
658
|
+
_excluded2 = ["title", "subTitle", "description", "icon", "status", "disabled"];
|
|
659
|
+
/**
|
|
98
660
|
*
|
|
99
661
|
* CapSteps
|
|
100
662
|
*
|
|
101
663
|
*/
|
|
102
|
-
const {
|
|
103
|
-
|
|
104
|
-
} =
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
664
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
665
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
666
|
+
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); }
|
|
667
|
+
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; }
|
|
668
|
+
/**
|
|
669
|
+
* CapStep component for backward compatibility
|
|
670
|
+
* This component is used as a child of CapSteps and collects its props
|
|
671
|
+
* to be converted to items array internally
|
|
672
|
+
*/
|
|
673
|
+
const CapStepComponent = () => {
|
|
674
|
+
// This component doesn't render anything itself
|
|
675
|
+
// Its props are collected by the parent CapSteps component
|
|
676
|
+
return null;
|
|
677
|
+
};
|
|
678
|
+
CapStepComponent.displayName = 'CapStep';
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* CapSteps component with backward compatibility support
|
|
682
|
+
* Supports both:
|
|
683
|
+
* 1. items prop (antd v5 native API)
|
|
684
|
+
* 2. children API with CapSteps.CapStep (backward compatibility)
|
|
685
|
+
*/
|
|
686
|
+
const CapStepsComponent = _ref => {
|
|
687
|
+
let {
|
|
688
|
+
className,
|
|
689
|
+
children,
|
|
690
|
+
items
|
|
691
|
+
} = _ref,
|
|
692
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
693
|
+
const combinedClassName = (0, _classnames.default)(_styles.default['cap-steps'], className);
|
|
694
|
+
|
|
695
|
+
// Convert children to items if children are provided but items are not
|
|
696
|
+
const itemsFromChildren = (0, _react.useMemo)(() => {
|
|
697
|
+
if (items) return items;
|
|
698
|
+
if (!children) return undefined;
|
|
699
|
+
const childrenArray = _react.default.Children.toArray(children);
|
|
700
|
+
const isCapStep = child => {
|
|
701
|
+
if (! /*#__PURE__*/_react.default.isValidElement(child)) return false;
|
|
702
|
+
if (child.type === CapStepComponent) return true;
|
|
703
|
+
|
|
704
|
+
// Check if child.type has displayName property
|
|
705
|
+
const childType = child.type;
|
|
706
|
+
return (childType == null ? void 0 : childType.displayName) === 'CapStep';
|
|
707
|
+
};
|
|
708
|
+
const stepChildren = childrenArray.filter(isCapStep);
|
|
709
|
+
if (!stepChildren.length) return undefined;
|
|
710
|
+
return stepChildren.map((child, index) => {
|
|
711
|
+
var _child$key;
|
|
712
|
+
const _child$props = child.props,
|
|
713
|
+
{
|
|
714
|
+
title,
|
|
715
|
+
subTitle,
|
|
716
|
+
description,
|
|
717
|
+
icon,
|
|
718
|
+
status,
|
|
719
|
+
disabled
|
|
720
|
+
} = _child$props,
|
|
721
|
+
rest = _objectWithoutPropertiesLoose(_child$props, _excluded2);
|
|
722
|
+
return _extends({
|
|
723
|
+
key: (_child$key = child.key) != null ? _child$key : index,
|
|
724
|
+
title,
|
|
725
|
+
subTitle,
|
|
726
|
+
description,
|
|
727
|
+
icon,
|
|
728
|
+
status,
|
|
729
|
+
disabled
|
|
730
|
+
}, rest);
|
|
731
|
+
});
|
|
732
|
+
}, [children, items]);
|
|
733
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
734
|
+
className: _styles.default['cap-steps-wrapper'],
|
|
735
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Steps, _extends({}, props, {
|
|
736
|
+
items: itemsFromChildren,
|
|
737
|
+
className: combinedClassName
|
|
738
|
+
}))
|
|
109
739
|
});
|
|
110
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Steps, _extends({}, stepsProps));
|
|
111
|
-
}
|
|
112
|
-
CapSteps.CapStep = Step;
|
|
113
|
-
CapSteps.propTypes = {
|
|
114
|
-
className: _propTypes.default.string
|
|
115
740
|
};
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Attach CapStep as a static property for backward compatibility
|
|
744
|
+
* This allows usage like: <CapSteps><CapSteps.CapStep title="Step 1" /></CapSteps>
|
|
745
|
+
*/
|
|
746
|
+
const CapSteps = CapStepsComponent;
|
|
747
|
+
CapSteps.CapStep = CapStepComponent;
|
|
748
|
+
CapSteps.displayName = 'CapSteps';
|
|
116
749
|
var _default = exports["default"] = CapSteps;
|
|
117
750
|
})();
|
|
118
751
|
|