@capillarytech/blaze-ui 5.0.6 → 5.0.8
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 +132 -184
- 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/index.js
CHANGED
|
@@ -14048,6 +14048,515 @@ exports.useInfiniteScroll = useInfiniteScroll;
|
|
|
14048
14048
|
|
|
14049
14049
|
/***/ }),
|
|
14050
14050
|
|
|
14051
|
+
/***/ 9174:
|
|
14052
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14053
|
+
|
|
14054
|
+
"use strict";
|
|
14055
|
+
|
|
14056
|
+
|
|
14057
|
+
exports.__esModule = true;
|
|
14058
|
+
exports["default"] = void 0;
|
|
14059
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
14060
|
+
var _isEmpty = _interopRequireDefault(__webpack_require__(62193));
|
|
14061
|
+
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
14062
|
+
var _reactIntl = __webpack_require__(46407);
|
|
14063
|
+
var _CapColumn = _interopRequireDefault(__webpack_require__(4757));
|
|
14064
|
+
var _messages = _interopRequireDefault(__webpack_require__(81112));
|
|
14065
|
+
var _CapIcon = _interopRequireDefault(__webpack_require__(65124));
|
|
14066
|
+
var _CapLabel = _interopRequireDefault(__webpack_require__(92675));
|
|
14067
|
+
var _CapRow = _interopRequireDefault(__webpack_require__(69813));
|
|
14068
|
+
var _CapTruncateList = _interopRequireDefault(__webpack_require__(14545));
|
|
14069
|
+
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
14070
|
+
var _variables = __webpack_require__(56587);
|
|
14071
|
+
var _constants = __webpack_require__(41859);
|
|
14072
|
+
var _styles = _interopRequireDefault(__webpack_require__(29236));
|
|
14073
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
14074
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14075
|
+
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); }
|
|
14076
|
+
/**
|
|
14077
|
+
* Timezone-safe date formatting helper that detects YYYY-MM-DD format
|
|
14078
|
+
* and constructs a local Date to avoid timezone shifts
|
|
14079
|
+
*/
|
|
14080
|
+
function formatDateForPreview(input) {
|
|
14081
|
+
if (!input) return '';
|
|
14082
|
+
try {
|
|
14083
|
+
const str = String(input);
|
|
14084
|
+
const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(str);
|
|
14085
|
+
const d = m ? new Date(Number(m[1]), Number(m[2]) - 1, Number(m[3])) : new Date(str);
|
|
14086
|
+
return Number.isNaN(d.getTime()) ? '' : d.toLocaleDateString('en-US');
|
|
14087
|
+
} catch (_unused) {
|
|
14088
|
+
return '';
|
|
14089
|
+
}
|
|
14090
|
+
}
|
|
14091
|
+
const {
|
|
14092
|
+
CapLabelInline
|
|
14093
|
+
} = _CapLabel.default;
|
|
14094
|
+
const CapConditionPreview = _ref => {
|
|
14095
|
+
let {
|
|
14096
|
+
className,
|
|
14097
|
+
type,
|
|
14098
|
+
operand,
|
|
14099
|
+
operator,
|
|
14100
|
+
dstData,
|
|
14101
|
+
listData = null,
|
|
14102
|
+
additionalFields,
|
|
14103
|
+
isExcluded,
|
|
14104
|
+
conditionName,
|
|
14105
|
+
excludeMsg,
|
|
14106
|
+
includeMsg,
|
|
14107
|
+
whoseMsg,
|
|
14108
|
+
isMsg,
|
|
14109
|
+
andMsg,
|
|
14110
|
+
equalMsg,
|
|
14111
|
+
greaterThanMsg,
|
|
14112
|
+
lessThanMsg,
|
|
14113
|
+
greaterThanOrEqualMsg,
|
|
14114
|
+
lessThanorEqualMsg,
|
|
14115
|
+
inRangeMsg,
|
|
14116
|
+
notEqualMsg,
|
|
14117
|
+
lineItemMsg,
|
|
14118
|
+
addedSKUsMsg,
|
|
14119
|
+
skuFileName,
|
|
14120
|
+
uploadedMsg,
|
|
14121
|
+
inMsg,
|
|
14122
|
+
notInMsg,
|
|
14123
|
+
hideNumberAndProductFields = false,
|
|
14124
|
+
viewMoreMsg,
|
|
14125
|
+
storesMsg,
|
|
14126
|
+
uploadInProgressMsg,
|
|
14127
|
+
ViewMoreLink,
|
|
14128
|
+
onClickConfigure,
|
|
14129
|
+
blockId,
|
|
14130
|
+
setPopoverVisible,
|
|
14131
|
+
uploadFailedErrorMsg,
|
|
14132
|
+
uploadInvalidErrorMsg,
|
|
14133
|
+
entryTriggerEventAttribute,
|
|
14134
|
+
dateTypeData
|
|
14135
|
+
} = _ref;
|
|
14136
|
+
const isStoreFilter = !(0, _isEmpty.default)(additionalFields == null ? void 0 : additionalFields.STORE_FILTER);
|
|
14137
|
+
const operandsMapping = {
|
|
14138
|
+
EQ: {
|
|
14139
|
+
text: equalMsg,
|
|
14140
|
+
isList: false
|
|
14141
|
+
},
|
|
14142
|
+
GT: {
|
|
14143
|
+
text: greaterThanMsg,
|
|
14144
|
+
isList: false
|
|
14145
|
+
},
|
|
14146
|
+
LT: {
|
|
14147
|
+
text: lessThanMsg,
|
|
14148
|
+
isList: false
|
|
14149
|
+
},
|
|
14150
|
+
GTE: {
|
|
14151
|
+
text: greaterThanOrEqualMsg,
|
|
14152
|
+
isList: false
|
|
14153
|
+
},
|
|
14154
|
+
LTE: {
|
|
14155
|
+
text: lessThanorEqualMsg,
|
|
14156
|
+
isList: false
|
|
14157
|
+
},
|
|
14158
|
+
IN_RANGE: {
|
|
14159
|
+
text: inRangeMsg,
|
|
14160
|
+
isList: true
|
|
14161
|
+
},
|
|
14162
|
+
NEQ: {
|
|
14163
|
+
text: notEqualMsg,
|
|
14164
|
+
isList: false
|
|
14165
|
+
},
|
|
14166
|
+
IN: {
|
|
14167
|
+
text: inMsg,
|
|
14168
|
+
isList: false
|
|
14169
|
+
},
|
|
14170
|
+
NOT_IN: {
|
|
14171
|
+
text: notInMsg,
|
|
14172
|
+
isList: false
|
|
14173
|
+
},
|
|
14174
|
+
IS_EXACT_DATE: {
|
|
14175
|
+
text: _constants.TEXT_ON_MSG,
|
|
14176
|
+
isList: false
|
|
14177
|
+
},
|
|
14178
|
+
IS_BEFORE_DATE: {
|
|
14179
|
+
text: _constants.TEXT_BEFORE_MSG,
|
|
14180
|
+
isList: false
|
|
14181
|
+
},
|
|
14182
|
+
IS_AFTER_DATE: {
|
|
14183
|
+
text: _constants.TEXT_AFTER_MSG,
|
|
14184
|
+
isList: false
|
|
14185
|
+
},
|
|
14186
|
+
IS_INBETWEEN_DATES: {
|
|
14187
|
+
text: _constants.TEXT_BETWEEN_MSG,
|
|
14188
|
+
isList: true
|
|
14189
|
+
},
|
|
14190
|
+
IS_BEFORE_DAYS: {
|
|
14191
|
+
text: _constants.TEXT_DAYS_BEFORE_MSG,
|
|
14192
|
+
isList: false
|
|
14193
|
+
},
|
|
14194
|
+
IS_AFTER_DAYS: {
|
|
14195
|
+
text: _constants.TEXT_DAYS_AFTER_MSG,
|
|
14196
|
+
isList: false
|
|
14197
|
+
}
|
|
14198
|
+
};
|
|
14199
|
+
const ValuesPrefix = () => {
|
|
14200
|
+
var _operandsMapping$oper;
|
|
14201
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
14202
|
+
children: !hideNumberAndProductFields && operator ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14203
|
+
type: "label18",
|
|
14204
|
+
children: (_operandsMapping$oper = operandsMapping[operator]) == null ? void 0 : _operandsMapping$oper.text
|
|
14205
|
+
}) : null
|
|
14206
|
+
});
|
|
14207
|
+
};
|
|
14208
|
+
const downloadHandler = (event, data, downloadedFileName) => {
|
|
14209
|
+
const target = event.currentTarget;
|
|
14210
|
+
target.setAttribute('href', "data:text/csv;charset=utf-8," + encodeURIComponent(data));
|
|
14211
|
+
target.setAttribute('download', downloadedFileName);
|
|
14212
|
+
};
|
|
14213
|
+
const downloadSKUs = function (event, list) {
|
|
14214
|
+
if (list === void 0) {
|
|
14215
|
+
list = [];
|
|
14216
|
+
}
|
|
14217
|
+
const csvArray = [[addedSKUsMsg != null ? addedSKUsMsg : '']];
|
|
14218
|
+
list.forEach(sku => csvArray.push([sku]));
|
|
14219
|
+
const csvContent = csvArray.map(e => e.join(',')).join('\n');
|
|
14220
|
+
downloadHandler(event, csvContent, skuFileName != null ? skuFileName : '');
|
|
14221
|
+
};
|
|
14222
|
+
const OperandValues = _ref2 => {
|
|
14223
|
+
var _operandsMapping$text, _operandsMapping;
|
|
14224
|
+
let {
|
|
14225
|
+
linkedFact,
|
|
14226
|
+
linkedDataType,
|
|
14227
|
+
linkedConditionExpression
|
|
14228
|
+
} = _ref2;
|
|
14229
|
+
let dataTypeLocal = type;
|
|
14230
|
+
let listDataLocal = listData;
|
|
14231
|
+
if (linkedFact) {
|
|
14232
|
+
var _linkedConditionExpre;
|
|
14233
|
+
dataTypeLocal = linkedDataType;
|
|
14234
|
+
listDataLocal = (_linkedConditionExpre = linkedConditionExpression == null ? void 0 : linkedConditionExpression.operand) != null ? _linkedConditionExpre : [];
|
|
14235
|
+
}
|
|
14236
|
+
let hasUploadedStores = false;
|
|
14237
|
+
let StoreUploadMsg = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14238
|
+
type: "flex",
|
|
14239
|
+
align: "middle",
|
|
14240
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14241
|
+
type: "in-progress",
|
|
14242
|
+
size: "s",
|
|
14243
|
+
svgProps: {
|
|
14244
|
+
fill: _variables.FONT_COLOR_05
|
|
14245
|
+
},
|
|
14246
|
+
className: "progress-icon"
|
|
14247
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14248
|
+
type: "label11",
|
|
14249
|
+
className: "margin-l-4 margin-r-4",
|
|
14250
|
+
children: uploadInProgressMsg
|
|
14251
|
+
})]
|
|
14252
|
+
});
|
|
14253
|
+
if (isStoreFilter && (linkedConditionExpression == null ? void 0 : linkedConditionExpression.storeSource) === _constants.UPLOAD) {
|
|
14254
|
+
const {
|
|
14255
|
+
isStoreUploadFailed = false,
|
|
14256
|
+
isStoreUploadInvalid = false,
|
|
14257
|
+
operand: storeOperand = [],
|
|
14258
|
+
storeUploadIsInProgress = false
|
|
14259
|
+
} = linkedConditionExpression != null ? linkedConditionExpression : {};
|
|
14260
|
+
hasUploadedStores = true;
|
|
14261
|
+
if (isStoreUploadFailed || isStoreUploadInvalid) {
|
|
14262
|
+
StoreUploadMsg = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14263
|
+
type: "flex",
|
|
14264
|
+
align: "middle",
|
|
14265
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14266
|
+
type: "error",
|
|
14267
|
+
size: "s",
|
|
14268
|
+
style: {
|
|
14269
|
+
color: _variables.CAP_RED
|
|
14270
|
+
},
|
|
14271
|
+
className: "margin-r-4"
|
|
14272
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14273
|
+
style: {
|
|
14274
|
+
color: _variables.CAP_RED
|
|
14275
|
+
},
|
|
14276
|
+
type: "label4",
|
|
14277
|
+
children: isStoreUploadFailed ? uploadFailedErrorMsg : uploadInvalidErrorMsg
|
|
14278
|
+
})]
|
|
14279
|
+
});
|
|
14280
|
+
} else {
|
|
14281
|
+
var _storeOperand$length;
|
|
14282
|
+
StoreUploadMsg = !storeUploadIsInProgress ? ((_storeOperand$length = storeOperand == null ? void 0 : storeOperand.length) != null ? _storeOperand$length : 0) + " " + storesMsg : StoreUploadMsg;
|
|
14283
|
+
}
|
|
14284
|
+
}
|
|
14285
|
+
switch (dataTypeLocal) {
|
|
14286
|
+
case _constants.MULTI_SELECT:
|
|
14287
|
+
{
|
|
14288
|
+
var _operandsMapping$list, _listArr$, _ref3;
|
|
14289
|
+
const listArr = Array.isArray(listDataLocal) ? listDataLocal : [];
|
|
14290
|
+
const operandForPreview = operandsMapping != null && operandsMapping[listArr == null ? void 0 : listArr[1]] ? (_operandsMapping$list = operandsMapping[listArr[1]]) == null ? void 0 : _operandsMapping$list.text : listArr == null || (_listArr$ = listArr[1]) == null || (_listArr$ = _listArr$.toLowerCase()) == null ? void 0 : _listArr$.replace('_', ' ');
|
|
14291
|
+
return [_constants.CUSTOM_FIELD, _constants.EXTENDED_FIELD].includes(linkedFact != null ? linkedFact : '') ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14292
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14293
|
+
className: _styles.default.capConditionPreview__label,
|
|
14294
|
+
type: "label2",
|
|
14295
|
+
children: listArr[0]
|
|
14296
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14297
|
+
type: "label18",
|
|
14298
|
+
children: operandForPreview
|
|
14299
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14300
|
+
type: "label16",
|
|
14301
|
+
children: listArr[2]
|
|
14302
|
+
})]
|
|
14303
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14304
|
+
children: [!linkedFact && /*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_CapRow.default, {
|
|
14305
|
+
type: "flex",
|
|
14306
|
+
align: "middle",
|
|
14307
|
+
children: [!listDataLocal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14308
|
+
className: "offer-icon",
|
|
14309
|
+
size: "s",
|
|
14310
|
+
type: "attachment"
|
|
14311
|
+
}), linkedFact === _constants.SKU ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14312
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTruncateList.default, {
|
|
14313
|
+
list: listArr,
|
|
14314
|
+
showNumber: 1,
|
|
14315
|
+
capLabelType: "label4",
|
|
14316
|
+
showTooltip: false
|
|
14317
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
14318
|
+
className: _styles.default.capConditionPreview__skuDownloadLink,
|
|
14319
|
+
href: "#",
|
|
14320
|
+
onClick: e => {
|
|
14321
|
+
e.preventDefault();
|
|
14322
|
+
downloadSKUs(e, listArr);
|
|
14323
|
+
},
|
|
14324
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14325
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapIcon.default, {
|
|
14326
|
+
type: "download",
|
|
14327
|
+
size: "s"
|
|
14328
|
+
}), uploadedMsg]
|
|
14329
|
+
})
|
|
14330
|
+
})]
|
|
14331
|
+
}) : hasUploadedStores ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14332
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14333
|
+
type: "label4",
|
|
14334
|
+
className: "margin-r-20",
|
|
14335
|
+
children: StoreUploadMsg
|
|
14336
|
+
}), ViewMoreLink && /*#__PURE__*/(0, _jsxRuntime.jsx)(ViewMoreLink, {
|
|
14337
|
+
onClick: () => {
|
|
14338
|
+
setPopoverVisible == null || setPopoverVisible(false);
|
|
14339
|
+
blockId && (onClickConfigure == null ? void 0 : onClickConfigure(blockId));
|
|
14340
|
+
},
|
|
14341
|
+
children: viewMoreMsg
|
|
14342
|
+
})]
|
|
14343
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapTruncateList.default, {
|
|
14344
|
+
list: (_ref3 = listDataLocal != null ? listDataLocal : dstData == null ? void 0 : dstData.couponSeriesNames) != null ? _ref3 : [],
|
|
14345
|
+
showNumber: 1,
|
|
14346
|
+
capLabelType: "label4"
|
|
14347
|
+
})]
|
|
14348
|
+
})]
|
|
14349
|
+
});
|
|
14350
|
+
}
|
|
14351
|
+
case _constants.NUMBER:
|
|
14352
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14353
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14354
|
+
type: "label16",
|
|
14355
|
+
children: operand
|
|
14356
|
+
})]
|
|
14357
|
+
});
|
|
14358
|
+
case _constants.STRING:
|
|
14359
|
+
if (!hideNumberAndProductFields) {
|
|
14360
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14361
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14362
|
+
type: "label18",
|
|
14363
|
+
children: (operator != null ? operator : '').toLowerCase().replace('_', ' ')
|
|
14364
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14365
|
+
type: "label16",
|
|
14366
|
+
className: _styles.default.capConditionPreview__string,
|
|
14367
|
+
children: operand
|
|
14368
|
+
})]
|
|
14369
|
+
});
|
|
14370
|
+
}
|
|
14371
|
+
return null;
|
|
14372
|
+
case _constants.LIST:
|
|
14373
|
+
{
|
|
14374
|
+
const opArr = Array.isArray(operand) ? operand : [];
|
|
14375
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14376
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14377
|
+
type: "label16",
|
|
14378
|
+
children: opArr[0]
|
|
14379
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14380
|
+
type: "label18",
|
|
14381
|
+
children: andMsg
|
|
14382
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14383
|
+
type: "label16",
|
|
14384
|
+
children: opArr[1]
|
|
14385
|
+
})]
|
|
14386
|
+
});
|
|
14387
|
+
}
|
|
14388
|
+
case _constants.ENTRY_TRIGGER_EVENT_ATTRIBUTE:
|
|
14389
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14390
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14391
|
+
type: "label18",
|
|
14392
|
+
children: (_operandsMapping$text = (_operandsMapping = operandsMapping[operator != null ? operator : '']) == null ? void 0 : _operandsMapping.text) != null ? _operandsMapping$text : (operator != null ? operator : '').toLowerCase().replace('_', ' ')
|
|
14393
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14394
|
+
type: "label16",
|
|
14395
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.entryTriggerEventAttribute))
|
|
14396
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14397
|
+
className: _styles.default.capConditionPreview__label,
|
|
14398
|
+
type: "label2",
|
|
14399
|
+
children: entryTriggerEventAttribute
|
|
14400
|
+
})]
|
|
14401
|
+
});
|
|
14402
|
+
case _constants.STRING_LIST:
|
|
14403
|
+
{
|
|
14404
|
+
const opList = Array.isArray(operand) ? operand : [];
|
|
14405
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14406
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(ValuesPrefix, {}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(CapLabelInline, {
|
|
14407
|
+
type: "label16",
|
|
14408
|
+
children: [opList == null ? void 0 : opList[0], (opList == null ? void 0 : opList.length) > 1 && " +" + (opList.length - 1), ' ', /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.more))]
|
|
14409
|
+
})]
|
|
14410
|
+
});
|
|
14411
|
+
}
|
|
14412
|
+
case _constants.DATE_TYPE:
|
|
14413
|
+
return renderDateConditionPreview(operator, dateTypeData);
|
|
14414
|
+
default:
|
|
14415
|
+
return null;
|
|
14416
|
+
}
|
|
14417
|
+
};
|
|
14418
|
+
const renderDateConditionPreview = (op, dtData) => {
|
|
14419
|
+
const renderContent = () => {
|
|
14420
|
+
var _operandsMapping2, _operandsMapping3, _dtData$contextData, _operandsMapping4, _dtData$contextData2;
|
|
14421
|
+
switch (dtData == null ? void 0 : dtData.dateType) {
|
|
14422
|
+
case _constants.DATE_TYPE_RANGE:
|
|
14423
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14424
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14425
|
+
className: _styles.default.capConditionPreview__label,
|
|
14426
|
+
type: "label2",
|
|
14427
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default[operandsMapping == null || (_operandsMapping2 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping2.text]))
|
|
14428
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14429
|
+
type: "label18",
|
|
14430
|
+
children: formatDateForPreview(dtData == null ? void 0 : dtData.startDate)
|
|
14431
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14432
|
+
type: "label18",
|
|
14433
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.andMsg))
|
|
14434
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14435
|
+
type: "label18",
|
|
14436
|
+
children: formatDateForPreview(dtData == null ? void 0 : dtData.endDate)
|
|
14437
|
+
})]
|
|
14438
|
+
});
|
|
14439
|
+
case _constants.DATE_TYPE_SINGLE:
|
|
14440
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14441
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14442
|
+
className: _styles.default.capConditionPreview__label,
|
|
14443
|
+
type: "label2",
|
|
14444
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default[operandsMapping == null || (_operandsMapping3 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping3.text]))
|
|
14445
|
+
}), dtData != null && dtData.contextData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14446
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14447
|
+
type: "label4",
|
|
14448
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.endDate))
|
|
14449
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14450
|
+
type: "label18",
|
|
14451
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.of))
|
|
14452
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14453
|
+
type: "label4",
|
|
14454
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.profileNameMessage, {
|
|
14455
|
+
values: {
|
|
14456
|
+
profileName: dtData == null || (_dtData$contextData = dtData.contextData) == null ? void 0 : _dtData$contextData.profileName
|
|
14457
|
+
}
|
|
14458
|
+
}))
|
|
14459
|
+
})]
|
|
14460
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14461
|
+
type: "label18",
|
|
14462
|
+
children: formatDateForPreview(dtData == null ? void 0 : dtData.date)
|
|
14463
|
+
})]
|
|
14464
|
+
});
|
|
14465
|
+
case _constants.DATE_TYPE_DAYS_AFTER:
|
|
14466
|
+
case _constants.DATE_TYPE_DAYS_BEFORE:
|
|
14467
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
14468
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14469
|
+
className: _styles.default.capConditionPreview__label,
|
|
14470
|
+
type: "label2",
|
|
14471
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default[operandsMapping == null || (_operandsMapping4 = operandsMapping[op != null ? op : '']) == null ? void 0 : _operandsMapping4.text], {
|
|
14472
|
+
values: {
|
|
14473
|
+
days: dtData == null ? void 0 : dtData.days
|
|
14474
|
+
}
|
|
14475
|
+
}))
|
|
14476
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14477
|
+
type: "label4",
|
|
14478
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.endDate))
|
|
14479
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14480
|
+
type: "label18",
|
|
14481
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.of))
|
|
14482
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14483
|
+
type: "label4",
|
|
14484
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIntl.FormattedMessage, _extends({}, _messages.default.profileNameMessage, {
|
|
14485
|
+
values: {
|
|
14486
|
+
profileName: dtData == null || (_dtData$contextData2 = dtData.contextData) == null ? void 0 : _dtData$contextData2.profileName
|
|
14487
|
+
}
|
|
14488
|
+
}))
|
|
14489
|
+
})]
|
|
14490
|
+
});
|
|
14491
|
+
default:
|
|
14492
|
+
return null;
|
|
14493
|
+
}
|
|
14494
|
+
};
|
|
14495
|
+
return renderContent();
|
|
14496
|
+
};
|
|
14497
|
+
const LabelType = _ref4 => {
|
|
14498
|
+
let {
|
|
14499
|
+
children
|
|
14500
|
+
} = _ref4;
|
|
14501
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14502
|
+
type: "label18",
|
|
14503
|
+
children: children
|
|
14504
|
+
});
|
|
14505
|
+
};
|
|
14506
|
+
const getAdditionalConditions = () => Object.values(additionalFields != null ? additionalFields : {}).length > 0 ? Object.values(additionalFields != null ? additionalFields : {}).map((_ref5, index) => {
|
|
14507
|
+
var _operandsMapping5, _linkedConditionExpre2;
|
|
14508
|
+
let {
|
|
14509
|
+
description: linkedDescription,
|
|
14510
|
+
factId: linkedFact,
|
|
14511
|
+
expression: linkedConditionExpression
|
|
14512
|
+
} = _ref5;
|
|
14513
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
14514
|
+
children: [!hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(LabelType, {
|
|
14515
|
+
children: !index ? lineItemMsg : andMsg
|
|
14516
|
+
}), !hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14517
|
+
className: _styles.default.capConditionPreview__label,
|
|
14518
|
+
type: "label2",
|
|
14519
|
+
children: linkedDescription
|
|
14520
|
+
}), !hideNumberAndProductFields && linkedConditionExpression && /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14521
|
+
type: "label18",
|
|
14522
|
+
children: (_operandsMapping5 = operandsMapping[(_linkedConditionExpre2 = linkedConditionExpression.operator) != null ? _linkedConditionExpre2 : '']) == null ? void 0 : _operandsMapping5.text
|
|
14523
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(OperandValues, {
|
|
14524
|
+
linkedFact: linkedFact,
|
|
14525
|
+
linkedDataType: _constants.MULTI_SELECT,
|
|
14526
|
+
linkedConditionExpression: linkedConditionExpression
|
|
14527
|
+
})]
|
|
14528
|
+
}, index);
|
|
14529
|
+
}) : null;
|
|
14530
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapRow.default, {
|
|
14531
|
+
className: (0, _classnames.default)(className, 'cap-condition-wrapper'),
|
|
14532
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapColumn.default, {
|
|
14533
|
+
xs: 25,
|
|
14534
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
14535
|
+
className: _styles.default.capConditionPreview__flexWrapDiv,
|
|
14536
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14537
|
+
type: "label18",
|
|
14538
|
+
children: isExcluded ? excludeMsg : includeMsg
|
|
14539
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14540
|
+
type: "label18",
|
|
14541
|
+
children: whoseMsg
|
|
14542
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_CapLabel.default, {
|
|
14543
|
+
className: _styles.default.capConditionPreview__label,
|
|
14544
|
+
type: "label2",
|
|
14545
|
+
children: conditionName
|
|
14546
|
+
}), (type !== _constants.STRING || hideNumberAndProductFields) && /*#__PURE__*/(0, _jsxRuntime.jsx)(CapLabelInline, {
|
|
14547
|
+
type: "label18",
|
|
14548
|
+
children: isMsg
|
|
14549
|
+
}), !hideNumberAndProductFields && /*#__PURE__*/(0, _jsxRuntime.jsx)(OperandValues, {}), getAdditionalConditions()]
|
|
14550
|
+
})
|
|
14551
|
+
})
|
|
14552
|
+
});
|
|
14553
|
+
};
|
|
14554
|
+
var _default = exports["default"] = (0, _LocaleHoc.default)(CapConditionPreview, {
|
|
14555
|
+
key: 'CapConditionPreview'
|
|
14556
|
+
});
|
|
14557
|
+
|
|
14558
|
+
/***/ }),
|
|
14559
|
+
|
|
14051
14560
|
/***/ 9180:
|
|
14052
14561
|
/***/ ((__unused_webpack_module, exports) => {
|
|
14053
14562
|
|
|
@@ -17779,12 +18288,9 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
17779
18288
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
17780
18289
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
17781
18290
|
// Module
|
|
17782
|
-
___CSS_LOADER_EXPORT___.push([module.id,
|
|
18291
|
+
___CSS_LOADER_EXPORT___.push([module.id, ``, ""]);
|
|
17783
18292
|
// Exports
|
|
17784
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
17785
|
-
"cap-tab-wrapper": `cap-tab-wrapper`,
|
|
17786
|
-
"slideInFromRight": `slideInFromRight`
|
|
17787
|
-
};
|
|
18293
|
+
___CSS_LOADER_EXPORT___.locals = {};
|
|
17788
18294
|
module.exports = ___CSS_LOADER_EXPORT___;
|
|
17789
18295
|
|
|
17790
18296
|
|
|
@@ -18075,6 +18581,24 @@ const useSyncState = initialValue => {
|
|
|
18075
18581
|
};
|
|
18076
18582
|
exports.useSyncState = useSyncState;
|
|
18077
18583
|
|
|
18584
|
+
/***/ }),
|
|
18585
|
+
|
|
18586
|
+
/***/ 19454:
|
|
18587
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
18588
|
+
|
|
18589
|
+
// Imports
|
|
18590
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
18591
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
18592
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
18593
|
+
// Module
|
|
18594
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-tab-v3-wrapper .ant-tabs-nav-wrap{--ant-tabs-item-selected-color: #091e42;--ant-tabs-ink-bar-color:#091e42}`, ""]);
|
|
18595
|
+
// Exports
|
|
18596
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
18597
|
+
"cap-tab-v3-wrapper": `cap-tab-v3-wrapper`
|
|
18598
|
+
};
|
|
18599
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
18600
|
+
|
|
18601
|
+
|
|
18078
18602
|
/***/ }),
|
|
18079
18603
|
|
|
18080
18604
|
/***/ 19561:
|
|
@@ -23513,6 +24037,58 @@ const SvgLightningSvg = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _exten
|
|
|
23513
24037
|
}));
|
|
23514
24038
|
var _default = exports["default"] = SvgLightningSvg;
|
|
23515
24039
|
|
|
24040
|
+
/***/ }),
|
|
24041
|
+
|
|
24042
|
+
/***/ 29236:
|
|
24043
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24044
|
+
|
|
24045
|
+
"use strict";
|
|
24046
|
+
__webpack_require__.r(__webpack_exports__);
|
|
24047
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24048
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24049
|
+
/* harmony export */ });
|
|
24050
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
24051
|
+
/* 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__);
|
|
24052
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
24053
|
+
/* 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__);
|
|
24054
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
24055
|
+
/* 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__);
|
|
24056
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
24057
|
+
/* 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__);
|
|
24058
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
24059
|
+
/* 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__);
|
|
24060
|
+
/* 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__(98289);
|
|
24061
|
+
/* 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__);
|
|
24062
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
24063
|
+
/* 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__]
|
|
24064
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
24065
|
+
|
|
24066
|
+
|
|
24067
|
+
|
|
24068
|
+
|
|
24069
|
+
|
|
24070
|
+
|
|
24071
|
+
|
|
24072
|
+
|
|
24073
|
+
|
|
24074
|
+
|
|
24075
|
+
|
|
24076
|
+
var options = {};
|
|
24077
|
+
|
|
24078
|
+
;
|
|
24079
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
24080
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
24081
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
24082
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
24083
|
+
|
|
24084
|
+
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);
|
|
24085
|
+
|
|
24086
|
+
|
|
24087
|
+
|
|
24088
|
+
|
|
24089
|
+
/* 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);
|
|
24090
|
+
|
|
24091
|
+
|
|
23516
24092
|
/***/ }),
|
|
23517
24093
|
|
|
23518
24094
|
/***/ 29303:
|
|
@@ -23712,6 +24288,24 @@ const SplitAudienceInfo = props => {
|
|
|
23712
24288
|
};
|
|
23713
24289
|
var _default = exports["default"] = SplitAudienceInfo;
|
|
23714
24290
|
|
|
24291
|
+
/***/ }),
|
|
24292
|
+
|
|
24293
|
+
/***/ 29475:
|
|
24294
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
24295
|
+
|
|
24296
|
+
// Imports
|
|
24297
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
24298
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
24299
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
24300
|
+
// Module
|
|
24301
|
+
___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}`, ""]);
|
|
24302
|
+
// Exports
|
|
24303
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
24304
|
+
"cap-steps-wrapper": `cap-steps-wrapper`
|
|
24305
|
+
};
|
|
24306
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
24307
|
+
|
|
24308
|
+
|
|
23715
24309
|
/***/ }),
|
|
23716
24310
|
|
|
23717
24311
|
/***/ 29817:
|
|
@@ -24654,7 +25248,11 @@ function getCapThemeConfig(options) {
|
|
|
24654
25248
|
colorBorderSecondary: styledVars.CAP_G08 || '#ebecf0',
|
|
24655
25249
|
headerBg: styledVars.CAP_G10 || '#fafbfc',
|
|
24656
25250
|
headerColor: styledVars.FONT_COLOR_01 || '#091e42',
|
|
24657
|
-
rowHoverBg: styledVars.CAP_G09 || '#f4f5f7'
|
|
25251
|
+
rowHoverBg: styledVars.CAP_G09 || '#f4f5f7',
|
|
25252
|
+
borderColor: styledVars.CAP_G07 || '#dfe2e7',
|
|
25253
|
+
cellPaddingBlock: remToPx(styledVars.SPACING_16, '1.142rem'),
|
|
25254
|
+
// 16px
|
|
25255
|
+
cellPaddingInline: remToPx(styledVars.SPACING_24, '1.714rem') // 24px
|
|
24658
25256
|
},
|
|
24659
25257
|
// Checkbox component tokens
|
|
24660
25258
|
Checkbox: {
|
|
@@ -24742,6 +25340,10 @@ function getCapThemeConfig(options) {
|
|
|
24742
25340
|
trackBgDisabled: styledVars.CAP_G06 || '#b3bac5',
|
|
24743
25341
|
railSize: 2 // Height in pixels
|
|
24744
25342
|
},
|
|
25343
|
+
// Steps component tokens
|
|
25344
|
+
Steps: {
|
|
25345
|
+
customIconSize: remToPx(styledVars.SPACING_32, '2.285rem')
|
|
25346
|
+
},
|
|
24745
25347
|
Notification: {
|
|
24746
25348
|
width: 384,
|
|
24747
25349
|
zIndexPopup: 2050
|
|
@@ -29324,6 +29926,44 @@ var _default = exports["default"] = SvgInApp;
|
|
|
29324
29926
|
|
|
29325
29927
|
/***/ }),
|
|
29326
29928
|
|
|
29929
|
+
/***/ 41859:
|
|
29930
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
29931
|
+
|
|
29932
|
+
"use strict";
|
|
29933
|
+
|
|
29934
|
+
|
|
29935
|
+
exports.__esModule = true;
|
|
29936
|
+
exports.UPLOAD = exports.TEXT_ON_MSG = exports.TEXT_DAYS_BEFORE_MSG = exports.TEXT_DAYS_AFTER_MSG = exports.TEXT_BETWEEN_MSG = exports.TEXT_BEFORE_MSG = exports.TEXT_AFTER_MSG = exports.STRING_LIST = exports.STRING = exports.SKU = exports.PRODUCT_ATTRIBUTE = exports.NUMBER = exports.MULTI_SELECT = exports.LIST = exports.EXTENDED_FIELD = exports.ENTRY_TRIGGER_EVENT_ATTRIBUTE = exports.DATE_TYPE_SINGLE = exports.DATE_TYPE_RANGE = exports.DATE_TYPE_DAYS_BEFORE = exports.DATE_TYPE_DAYS_AFTER = exports.DATE_TYPE = exports.CUSTOM_FIELD = exports.CATEGORY = void 0;
|
|
29937
|
+
const LIST = exports.LIST = 'LIST';
|
|
29938
|
+
const MULTI_SELECT = exports.MULTI_SELECT = 'MULTI_SELECT';
|
|
29939
|
+
const NUMBER = exports.NUMBER = 'NUMBER';
|
|
29940
|
+
const STRING = exports.STRING = 'STRING';
|
|
29941
|
+
const DATE_TYPE = exports.DATE_TYPE = 'DATE';
|
|
29942
|
+
const PRODUCT_ATTRIBUTE = exports.PRODUCT_ATTRIBUTE = 'PRODUCT_ATTRIBUTE';
|
|
29943
|
+
const CUSTOM_FIELD = exports.CUSTOM_FIELD = 'CUSTOM_FIELD';
|
|
29944
|
+
const EXTENDED_FIELD = exports.EXTENDED_FIELD = 'EXTENDED_FIELD';
|
|
29945
|
+
const SKU = exports.SKU = 'SKU';
|
|
29946
|
+
const CATEGORY = exports.CATEGORY = 'CATEGORY';
|
|
29947
|
+
const UPLOAD = exports.UPLOAD = 'UPLOAD';
|
|
29948
|
+
const ENTRY_TRIGGER_EVENT_ATTRIBUTE = exports.ENTRY_TRIGGER_EVENT_ATTRIBUTE = 'entryTriggerEventAttribute';
|
|
29949
|
+
const STRING_LIST = exports.STRING_LIST = 'STRING_LIST';
|
|
29950
|
+
|
|
29951
|
+
// Text constants for operand mapping
|
|
29952
|
+
const TEXT_ON_MSG = exports.TEXT_ON_MSG = 'onMsg';
|
|
29953
|
+
const TEXT_BEFORE_MSG = exports.TEXT_BEFORE_MSG = 'beforeMsg';
|
|
29954
|
+
const TEXT_AFTER_MSG = exports.TEXT_AFTER_MSG = 'afterMsg';
|
|
29955
|
+
const TEXT_BETWEEN_MSG = exports.TEXT_BETWEEN_MSG = 'betweenMsg';
|
|
29956
|
+
const TEXT_DAYS_BEFORE_MSG = exports.TEXT_DAYS_BEFORE_MSG = 'daysBeforeMsg';
|
|
29957
|
+
const TEXT_DAYS_AFTER_MSG = exports.TEXT_DAYS_AFTER_MSG = 'daysAfterMsg';
|
|
29958
|
+
|
|
29959
|
+
// Date type constants
|
|
29960
|
+
const DATE_TYPE_RANGE = exports.DATE_TYPE_RANGE = 'RANGE';
|
|
29961
|
+
const DATE_TYPE_SINGLE = exports.DATE_TYPE_SINGLE = 'SINGLE';
|
|
29962
|
+
const DATE_TYPE_DAYS_AFTER = exports.DATE_TYPE_DAYS_AFTER = 'DAYS_AFTER';
|
|
29963
|
+
const DATE_TYPE_DAYS_BEFORE = exports.DATE_TYPE_DAYS_BEFORE = 'DAYS_BEFORE';
|
|
29964
|
+
|
|
29965
|
+
/***/ }),
|
|
29966
|
+
|
|
29327
29967
|
/***/ 41946:
|
|
29328
29968
|
/***/ ((__unused_webpack_module, exports) => {
|
|
29329
29969
|
|
|
@@ -30012,6 +30652,58 @@ function SvgLock(props) {
|
|
|
30012
30652
|
}
|
|
30013
30653
|
var _default = exports["default"] = SvgLock;
|
|
30014
30654
|
|
|
30655
|
+
/***/ }),
|
|
30656
|
+
|
|
30657
|
+
/***/ 43257:
|
|
30658
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
30659
|
+
|
|
30660
|
+
"use strict";
|
|
30661
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30662
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30663
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
30664
|
+
/* harmony export */ });
|
|
30665
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
30666
|
+
/* 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__);
|
|
30667
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
30668
|
+
/* 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__);
|
|
30669
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
30670
|
+
/* 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__);
|
|
30671
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
30672
|
+
/* 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__);
|
|
30673
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
30674
|
+
/* 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__);
|
|
30675
|
+
/* 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__(19454);
|
|
30676
|
+
/* 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__);
|
|
30677
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
30678
|
+
/* 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__]
|
|
30679
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
30680
|
+
|
|
30681
|
+
|
|
30682
|
+
|
|
30683
|
+
|
|
30684
|
+
|
|
30685
|
+
|
|
30686
|
+
|
|
30687
|
+
|
|
30688
|
+
|
|
30689
|
+
|
|
30690
|
+
|
|
30691
|
+
var options = {};
|
|
30692
|
+
|
|
30693
|
+
;
|
|
30694
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
30695
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
30696
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
30697
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
30698
|
+
|
|
30699
|
+
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);
|
|
30700
|
+
|
|
30701
|
+
|
|
30702
|
+
|
|
30703
|
+
|
|
30704
|
+
/* 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);
|
|
30705
|
+
|
|
30706
|
+
|
|
30015
30707
|
/***/ }),
|
|
30016
30708
|
|
|
30017
30709
|
/***/ 43306:
|
|
@@ -30826,12 +31518,14 @@ var _lodash = __webpack_require__(42551);
|
|
|
30826
31518
|
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
30827
31519
|
var _LocaleHoc = _interopRequireDefault(__webpack_require__(39879));
|
|
30828
31520
|
var _styles = _interopRequireDefault(__webpack_require__(40845));
|
|
31521
|
+
var _utils = __webpack_require__(99394);
|
|
30829
31522
|
var _jsxRuntime = __webpack_require__(74848);
|
|
30830
|
-
const _excluded = ["id", "className", "children", "infiniteScroll", "pagination", "dataSource", "offset_limit", "setPagination", "scroll", "showLoader"];
|
|
31523
|
+
const _excluded = ["id", "className", "children", "infiniteScroll", "virtual", "pagination", "dataSource", "offset_limit", "setPagination", "scroll", "showLoader", "columns", "rowSelection", "locale"];
|
|
30831
31524
|
/**
|
|
30832
31525
|
* CapTable - Migrated to Ant Design v5
|
|
30833
31526
|
* A table component that supports:
|
|
30834
|
-
* - Infinite scrolling with
|
|
31527
|
+
* - Infinite scrolling with manual scroll event handling
|
|
31528
|
+
* - Optional virtual scrolling for large datasets (requires explicit column widths)
|
|
30835
31529
|
* - Sequential data loading
|
|
30836
31530
|
* - Optimized scroll performance
|
|
30837
31531
|
*/
|
|
@@ -30840,7 +31534,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
30840
31534
|
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); }
|
|
30841
31535
|
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; }
|
|
30842
31536
|
const SCROLL_THRESHOLD = 80; // Percentage of scroll to trigger load
|
|
30843
|
-
const
|
|
31537
|
+
const THROTTLE_DELAY = 50; // ms to wait between scroll events (matching original cap-ui-library)
|
|
30844
31538
|
const DEFAULT_SCROLL_HEIGHT = 400;
|
|
30845
31539
|
const CapTable = _ref => {
|
|
30846
31540
|
let {
|
|
@@ -30848,27 +31542,43 @@ const CapTable = _ref => {
|
|
|
30848
31542
|
className,
|
|
30849
31543
|
children,
|
|
30850
31544
|
infiniteScroll,
|
|
31545
|
+
virtual,
|
|
31546
|
+
pagination: _pagination,
|
|
30851
31547
|
dataSource,
|
|
30852
31548
|
offset_limit,
|
|
30853
31549
|
setPagination,
|
|
30854
31550
|
scroll,
|
|
30855
|
-
showLoader
|
|
31551
|
+
showLoader,
|
|
31552
|
+
columns,
|
|
31553
|
+
rowSelection,
|
|
31554
|
+
locale
|
|
30856
31555
|
} = _ref,
|
|
30857
31556
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
30858
31557
|
const scrollRef = (0, _react.useRef)(null);
|
|
30859
31558
|
const [hasMore, setHasMore] = (0, _react.useState)(true);
|
|
30860
|
-
|
|
31559
|
+
|
|
31560
|
+
// Transform deprecated props
|
|
31561
|
+
const transformedColumns = (0, _react.useMemo)(() => (0, _utils.transformColumns)(columns), [columns]);
|
|
31562
|
+
const transformedRowSelection = (0, _react.useMemo)(() => (0, _utils.transformRowSelection)(rowSelection), [rowSelection]);
|
|
31563
|
+
const transformedPagination = (0, _react.useMemo)(() => (0, _utils.transformPagination)(_pagination), [_pagination]);
|
|
31564
|
+
const filterCheckAllLocale = (0, _react.useMemo)(() => (0, _utils.getFilterCheckAllLocale)(columns), [columns]);
|
|
31565
|
+
|
|
31566
|
+
// Merge locale with filterCheckAll if needed
|
|
31567
|
+
const mergedLocale = (0, _react.useMemo)(() => {
|
|
31568
|
+
if (!filterCheckAllLocale) return locale;
|
|
31569
|
+
return _extends({}, locale, filterCheckAllLocale);
|
|
31570
|
+
}, [locale, filterCheckAllLocale]);
|
|
30861
31571
|
const loadMore = (0, _react.useCallback)(() => {
|
|
30862
31572
|
if (!showLoader && hasMore && setPagination && offset_limit) {
|
|
30863
|
-
|
|
31573
|
+
// Increment offset by limit (matching original cap-ui-library behavior)
|
|
31574
|
+
const nextOffset = offset_limit.offset + (offset_limit.limit || 10);
|
|
30864
31575
|
const newOffsetLimit = _extends({}, offset_limit, {
|
|
30865
31576
|
offset: nextOffset
|
|
30866
31577
|
});
|
|
30867
|
-
currentOffsetRef.current = nextOffset;
|
|
30868
31578
|
setPagination(newOffsetLimit);
|
|
30869
31579
|
}
|
|
30870
31580
|
}, [showLoader, hasMore, setPagination, offset_limit]);
|
|
30871
|
-
const handleScroll = (0, _react.useCallback)((0, _lodash.
|
|
31581
|
+
const handleScroll = (0, _react.useCallback)((0, _lodash.throttle)(event => {
|
|
30872
31582
|
const target = event.target;
|
|
30873
31583
|
if (!target || !infiniteScroll || !hasMore || showLoader) return;
|
|
30874
31584
|
const scrollTop = Math.ceil(target.scrollTop);
|
|
@@ -30878,7 +31588,7 @@ const CapTable = _ref => {
|
|
|
30878
31588
|
if (scrolledPercentage >= SCROLL_THRESHOLD) {
|
|
30879
31589
|
loadMore();
|
|
30880
31590
|
}
|
|
30881
|
-
},
|
|
31591
|
+
}, THROTTLE_DELAY), [infiniteScroll, showLoader, hasMore, loadMore]);
|
|
30882
31592
|
|
|
30883
31593
|
// Setup scroll listener and handle initial load
|
|
30884
31594
|
(0, _react.useEffect)(() => {
|
|
@@ -30891,10 +31601,13 @@ const CapTable = _ref => {
|
|
|
30891
31601
|
passive: true
|
|
30892
31602
|
});
|
|
30893
31603
|
|
|
30894
|
-
// Check if initial load needed
|
|
30895
|
-
|
|
30896
|
-
|
|
30897
|
-
|
|
31604
|
+
// Check if initial load needed (matching original cap-ui-library behavior)
|
|
31605
|
+
// Only trigger if: dataSource >= limit AND content doesn't overflow scroll area
|
|
31606
|
+
const limit = (offset_limit == null ? void 0 : offset_limit.limit) || 10;
|
|
31607
|
+
const hasEnoughData = dataSource && dataSource.length >= limit;
|
|
31608
|
+
const scrollY = scroll != null && scroll.y ? Number(scroll.y) : 0;
|
|
31609
|
+
const isNotOverflowing = scrollY && tableBody.scrollHeight <= scrollY;
|
|
31610
|
+
if (hasEnoughData && isNotOverflowing && !showLoader && hasMore) {
|
|
30898
31611
|
loadMore();
|
|
30899
31612
|
}
|
|
30900
31613
|
|
|
@@ -30904,31 +31617,61 @@ const CapTable = _ref => {
|
|
|
30904
31617
|
(_scrollRef$current = scrollRef.current) == null || _scrollRef$current.removeEventListener('scroll', handleScroll);
|
|
30905
31618
|
handleScroll.cancel();
|
|
30906
31619
|
};
|
|
30907
|
-
}, [id, handleScroll, showLoader, hasMore, loadMore]);
|
|
31620
|
+
}, [id, handleScroll, showLoader, hasMore, loadMore, dataSource, offset_limit, scroll]);
|
|
30908
31621
|
|
|
30909
|
-
// Handle data changes
|
|
31622
|
+
// Handle data changes - reset hasMore when data changes
|
|
30910
31623
|
(0, _react.useEffect)(() => {
|
|
30911
|
-
|
|
30912
|
-
currentOffsetRef.current = 0;
|
|
30913
|
-
setHasMore(true);
|
|
30914
|
-
} else {
|
|
30915
|
-
setHasMore(true);
|
|
30916
|
-
}
|
|
31624
|
+
setHasMore(true);
|
|
30917
31625
|
}, [dataSource]);
|
|
30918
31626
|
const tableClassName = (0, _classnames.default)(_styles.default['cap-table-v2'], className, {
|
|
30919
31627
|
[_styles.default['show-loader']]: showLoader
|
|
30920
31628
|
});
|
|
31629
|
+
|
|
31630
|
+
// Calculate scroll.x for virtual tables if not explicitly provided
|
|
31631
|
+
// Virtual tables require a numeric scroll.x to calculate row widths correctly
|
|
31632
|
+
const scrollX = (0, _react.useMemo)(() => {
|
|
31633
|
+
// If explicitly provided, use that value
|
|
31634
|
+
if ((scroll == null ? void 0 : scroll.x) !== undefined) {
|
|
31635
|
+
return scroll.x;
|
|
31636
|
+
}
|
|
31637
|
+
|
|
31638
|
+
// For virtual tables, calculate total width from column widths
|
|
31639
|
+
if (virtual && transformedColumns) {
|
|
31640
|
+
const totalWidth = transformedColumns.reduce((sum, col) => {
|
|
31641
|
+
if (typeof col.width === 'number') {
|
|
31642
|
+
return sum + col.width;
|
|
31643
|
+
}
|
|
31644
|
+
if (typeof col.width === 'string') {
|
|
31645
|
+
const parsed = parseInt(col.width, 10);
|
|
31646
|
+
return sum + (isNaN(parsed) ? 0 : parsed);
|
|
31647
|
+
}
|
|
31648
|
+
return sum;
|
|
31649
|
+
}, 0);
|
|
31650
|
+
|
|
31651
|
+
// Warn in development if columns don't have widths
|
|
31652
|
+
if (totalWidth === 0 && "production" === 'development') // removed by dead control flow
|
|
31653
|
+
{}
|
|
31654
|
+
return totalWidth > 0 ? totalWidth : undefined;
|
|
31655
|
+
}
|
|
31656
|
+
return undefined;
|
|
31657
|
+
}, [scroll == null ? void 0 : scroll.x, virtual, transformedColumns]);
|
|
31658
|
+
|
|
31659
|
+
// Use transformed pagination or false for infinite scroll
|
|
31660
|
+
const finalPagination = infiniteScroll ? false : transformedPagination;
|
|
30921
31661
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Table, _extends({
|
|
30922
31662
|
id: id,
|
|
30923
31663
|
className: tableClassName,
|
|
30924
31664
|
dataSource: dataSource,
|
|
30925
|
-
|
|
31665
|
+
columns: transformedColumns,
|
|
31666
|
+
rowSelection: transformedRowSelection,
|
|
31667
|
+
pagination: finalPagination,
|
|
31668
|
+
locale: mergedLocale,
|
|
30926
31669
|
scroll: {
|
|
30927
|
-
x:
|
|
31670
|
+
x: scrollX,
|
|
30928
31671
|
y: (scroll == null ? void 0 : scroll.y) || DEFAULT_SCROLL_HEIGHT,
|
|
30929
31672
|
scrollToFirstRowOnChange: false
|
|
30930
31673
|
},
|
|
30931
|
-
virtual:
|
|
31674
|
+
virtual: virtual
|
|
30932
31675
|
}, rest, {
|
|
30933
31676
|
children: children
|
|
30934
31677
|
}));
|
|
@@ -33029,132 +33772,6 @@ module.exports = __webpack_require__.p + "assets/images/featureUiNotEnabledIllus
|
|
|
33029
33772
|
|
|
33030
33773
|
/***/ }),
|
|
33031
33774
|
|
|
33032
|
-
/***/ 48334:
|
|
33033
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
33034
|
-
|
|
33035
|
-
"use strict";
|
|
33036
|
-
|
|
33037
|
-
|
|
33038
|
-
exports.__esModule = true;
|
|
33039
|
-
exports["default"] = void 0;
|
|
33040
|
-
var _antdV = __webpack_require__(64273);
|
|
33041
|
-
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
33042
|
-
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
33043
|
-
var _dayjs = __webpack_require__(25549);
|
|
33044
|
-
var _logDeprecationWarning = _interopRequireDefault(__webpack_require__(19224));
|
|
33045
|
-
var _styles = _interopRequireDefault(__webpack_require__(83624));
|
|
33046
|
-
var _jsxRuntime = __webpack_require__(74848);
|
|
33047
|
-
const _excluded = ["className", "popupClassName", "dropdownClassName", "popupStyle", "classNames", "styles", "allowEmpty", "allowClear", "addon", "renderExtraFooter", "bordered", "variant", "onSelect", "onCalendarChange", "value", "defaultValue", "defaultOpenValue", "onChange"];
|
|
33048
|
-
/**
|
|
33049
|
-
*
|
|
33050
|
-
* CapTimePicker
|
|
33051
|
-
*
|
|
33052
|
-
*/
|
|
33053
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
33054
|
-
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); }
|
|
33055
|
-
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; }
|
|
33056
|
-
const clsPrefix = 'cap-timepicker-v2';
|
|
33057
|
-
const CapTimePicker = _ref => {
|
|
33058
|
-
var _classNamesProp$popup, _stylesProp$popup;
|
|
33059
|
-
let {
|
|
33060
|
-
className,
|
|
33061
|
-
popupClassName,
|
|
33062
|
-
dropdownClassName,
|
|
33063
|
-
popupStyle,
|
|
33064
|
-
classNames: classNamesProp,
|
|
33065
|
-
styles: stylesProp,
|
|
33066
|
-
allowEmpty,
|
|
33067
|
-
allowClear,
|
|
33068
|
-
addon,
|
|
33069
|
-
renderExtraFooter: renderExtraFooterProp,
|
|
33070
|
-
bordered,
|
|
33071
|
-
variant,
|
|
33072
|
-
onSelect,
|
|
33073
|
-
onCalendarChange,
|
|
33074
|
-
value,
|
|
33075
|
-
defaultValue,
|
|
33076
|
-
defaultOpenValue,
|
|
33077
|
-
onChange
|
|
33078
|
-
} = _ref,
|
|
33079
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
33080
|
-
// Deprecation warnings
|
|
33081
|
-
(0, _logDeprecationWarning.default)('CapTimePicker', 'allowEmpty', allowEmpty, 'allowClear');
|
|
33082
|
-
(0, _logDeprecationWarning.default)('CapTimePicker', 'dropdownClassName', dropdownClassName, 'popupClassName');
|
|
33083
|
-
(0, _logDeprecationWarning.default)('CapTimePicker', 'popupClassName', popupClassName, 'classNames.popup.root');
|
|
33084
|
-
(0, _logDeprecationWarning.default)('CapTimePicker', 'popupStyle', popupStyle, 'styles.popup.root');
|
|
33085
|
-
(0, _logDeprecationWarning.default)('CapTimePicker', 'addon', addon, 'renderExtraFooter');
|
|
33086
|
-
(0, _logDeprecationWarning.default)('CapTimePicker', 'bordered', bordered, 'variant');
|
|
33087
|
-
(0, _logDeprecationWarning.default)('CapTimePicker', 'onSelect', onSelect, 'onCalendarChange');
|
|
33088
|
-
|
|
33089
|
-
// Detect if consumer is using moment
|
|
33090
|
-
const isConsumerUsingMoment = (0, _dayjs.isMomentObject)(value) || (0, _dayjs.isMomentObject)(defaultValue) || (0, _dayjs.isMomentObject)(defaultOpenValue);
|
|
33091
|
-
|
|
33092
|
-
// Convert moment to dayjs
|
|
33093
|
-
const dayjsValue = (0, _dayjs.momentToDayjs)(value);
|
|
33094
|
-
const dayjsDefaultValue = (0, _dayjs.momentToDayjs)(defaultValue);
|
|
33095
|
-
const dayjsDefaultOpenValue = (0, _dayjs.momentToDayjs)(defaultOpenValue);
|
|
33096
|
-
const handleChange = (dayjsTime, timeString) => {
|
|
33097
|
-
const result = (0, _dayjs.normalizeDateValue)(isConsumerUsingMoment, dayjsTime);
|
|
33098
|
-
// Convert undefined to null and ensure type is Dayjs | null (not Moment)
|
|
33099
|
-
const normalizedResult = result != null ? result : null;
|
|
33100
|
-
const normalizedTimeString = timeString != null ? timeString : '';
|
|
33101
|
-
|
|
33102
|
-
// Call onChange if provided
|
|
33103
|
-
if (onChange) {
|
|
33104
|
-
onChange(normalizedResult, normalizedTimeString);
|
|
33105
|
-
}
|
|
33106
|
-
|
|
33107
|
-
// Backward compatibility: call onSelect or onCalendarChange if provided
|
|
33108
|
-
// Note: These are deprecated and only for backward compatibility
|
|
33109
|
-
// TimePicker doesn't support onCalendarChange (only RangePicker does)
|
|
33110
|
-
if (onSelect) {
|
|
33111
|
-
// Type assertion needed because onSelect can be for single or range picker
|
|
33112
|
-
const onSelectHandler = onSelect;
|
|
33113
|
-
onSelectHandler(normalizedResult, normalizedTimeString);
|
|
33114
|
-
}
|
|
33115
|
-
if (onCalendarChange) {
|
|
33116
|
-
// Type assertion needed because onCalendarChange can be for single or range picker
|
|
33117
|
-
const onCalendarChangeHandler = onCalendarChange;
|
|
33118
|
-
onCalendarChangeHandler(normalizedResult, normalizedTimeString);
|
|
33119
|
-
}
|
|
33120
|
-
};
|
|
33121
|
-
|
|
33122
|
-
// Backward compatibility: map deprecated props to new props
|
|
33123
|
-
const finalAllowClear = allowClear != null ? allowClear : allowEmpty !== undefined ? allowEmpty : undefined;
|
|
33124
|
-
const finalRenderExtraFooter = renderExtraFooterProp != null ? renderExtraFooterProp : addon;
|
|
33125
|
-
const finalVariant = variant != null ? variant : bordered === false ? 'borderless' : bordered === true ? 'outlined' : undefined;
|
|
33126
|
-
|
|
33127
|
-
// Handle popup classNames - prefer classNames.popup.root, fallback to popupClassName, then dropdownClassName
|
|
33128
|
-
const popupRootClassName = (0, _classnames.default)(_styles.default['cap-timepicker-v2-popup'], classNamesProp == null || (_classNamesProp$popup = classNamesProp.popup) == null ? void 0 : _classNamesProp$popup.root, popupClassName, dropdownClassName);
|
|
33129
|
-
const finalClassNames = _extends({}, classNamesProp || {}, {
|
|
33130
|
-
popup: _extends({}, (classNamesProp == null ? void 0 : classNamesProp.popup) || {}, {
|
|
33131
|
-
root: popupRootClassName
|
|
33132
|
-
})
|
|
33133
|
-
});
|
|
33134
|
-
|
|
33135
|
-
// Handle popup styles - prefer styles.popup.root, fallback to popupStyle
|
|
33136
|
-
const finalStyles = _extends({}, stylesProp || {}, {
|
|
33137
|
-
popup: _extends({}, (stylesProp == null ? void 0 : stylesProp.popup) || {}, {
|
|
33138
|
-
root: _extends({}, (stylesProp == null || (_stylesProp$popup = stylesProp.popup) == null ? void 0 : _stylesProp$popup.root) || {}, popupStyle || {})
|
|
33139
|
-
})
|
|
33140
|
-
});
|
|
33141
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.TimePicker, _extends({
|
|
33142
|
-
className: (0, _classnames.default)(clsPrefix, className),
|
|
33143
|
-
classNames: finalClassNames,
|
|
33144
|
-
styles: finalStyles,
|
|
33145
|
-
allowClear: finalAllowClear,
|
|
33146
|
-
renderExtraFooter: finalRenderExtraFooter,
|
|
33147
|
-
variant: finalVariant,
|
|
33148
|
-
value: dayjsValue,
|
|
33149
|
-
defaultValue: dayjsDefaultValue,
|
|
33150
|
-
defaultOpenValue: dayjsDefaultOpenValue != null ? dayjsDefaultOpenValue : undefined,
|
|
33151
|
-
onChange: handleChange
|
|
33152
|
-
}, rest));
|
|
33153
|
-
};
|
|
33154
|
-
var _default = exports["default"] = CapTimePicker;
|
|
33155
|
-
|
|
33156
|
-
/***/ }),
|
|
33157
|
-
|
|
33158
33775
|
/***/ 48366:
|
|
33159
33776
|
/***/ ((__unused_webpack_module, exports) => {
|
|
33160
33777
|
|
|
@@ -52139,6 +52756,7 @@ exports["default"] = void 0;
|
|
|
52139
52756
|
var _antdV = __webpack_require__(64273);
|
|
52140
52757
|
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
52141
52758
|
var _react = _interopRequireDefault(__webpack_require__(9206));
|
|
52759
|
+
var _logDeprecationWarning = _interopRequireDefault(__webpack_require__(19224));
|
|
52142
52760
|
var _styles = _interopRequireDefault(__webpack_require__(5020));
|
|
52143
52761
|
var _jsxRuntime = __webpack_require__(74848);
|
|
52144
52762
|
const _excluded = ["panes", "className", "animated", "type", "size", "tabPlacement", "tabPosition"];
|
|
@@ -52147,8 +52765,6 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
52147
52765
|
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; }
|
|
52148
52766
|
const clsPrefix = 'cap-tab-v2';
|
|
52149
52767
|
|
|
52150
|
-
// Deprecated values from old API
|
|
52151
|
-
|
|
52152
52768
|
// v6 TabPlacement type: 'top' | 'end' | 'bottom' | 'start'
|
|
52153
52769
|
// Map deprecated values to valid v6 values
|
|
52154
52770
|
const mapTabPlacement = value => {
|
|
@@ -52212,6 +52828,9 @@ const CapTab = _ref => {
|
|
|
52212
52828
|
tabPosition
|
|
52213
52829
|
} = _ref,
|
|
52214
52830
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
52831
|
+
// Development warning for deprecated prop usage
|
|
52832
|
+
(0, _logDeprecationWarning.default)('CapTab', 'tabPosition', tabPosition, 'tabPlacement');
|
|
52833
|
+
|
|
52215
52834
|
// Support both new `tabPlacement` and deprecated `tabPosition` props
|
|
52216
52835
|
// Map old values: left → start, right → end
|
|
52217
52836
|
const finalTabPlacement = mapTabPlacement(tabPlacement || tabPosition);
|
|
@@ -52333,6 +52952,93 @@ var _default = exports["default"] = SvgAddPhoto;
|
|
|
52333
52952
|
|
|
52334
52953
|
/***/ }),
|
|
52335
52954
|
|
|
52955
|
+
/***/ 60697:
|
|
52956
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
52957
|
+
|
|
52958
|
+
"use strict";
|
|
52959
|
+
|
|
52960
|
+
|
|
52961
|
+
exports.__esModule = true;
|
|
52962
|
+
exports["default"] = void 0;
|
|
52963
|
+
var _antdV = __webpack_require__(64273);
|
|
52964
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
52965
|
+
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
52966
|
+
var _logDeprecationWarning = _interopRequireDefault(__webpack_require__(19224));
|
|
52967
|
+
var _styles = _interopRequireDefault(__webpack_require__(43257));
|
|
52968
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
52969
|
+
const _excluded = ["className", "panes", "activeKey", "onTabChange", "tabPlacement", "tabPosition"];
|
|
52970
|
+
/**
|
|
52971
|
+
*
|
|
52972
|
+
* CapTab V3
|
|
52973
|
+
*
|
|
52974
|
+
*/
|
|
52975
|
+
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); }
|
|
52976
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
52977
|
+
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); }
|
|
52978
|
+
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; }
|
|
52979
|
+
// v6 TabPlacement type: 'top' | 'end' | 'bottom' | 'start'
|
|
52980
|
+
// Map deprecated values to valid v6 values
|
|
52981
|
+
const mapTabPlacement = value => {
|
|
52982
|
+
if (value === 'left') return 'start';
|
|
52983
|
+
if (value === 'right') return 'end';
|
|
52984
|
+
return value;
|
|
52985
|
+
};
|
|
52986
|
+
function CapTabV3(_ref) {
|
|
52987
|
+
var _panes$;
|
|
52988
|
+
let {
|
|
52989
|
+
className,
|
|
52990
|
+
panes = [],
|
|
52991
|
+
activeKey: controlledActiveKey,
|
|
52992
|
+
onTabChange,
|
|
52993
|
+
tabPlacement,
|
|
52994
|
+
tabPosition
|
|
52995
|
+
} = _ref,
|
|
52996
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
52997
|
+
const [internalActiveKey, setInternalActiveKey] = (0, _react.useState)(controlledActiveKey != null ? controlledActiveKey : (panes == null ? void 0 : panes.length) > 0 ? (_panes$ = panes[0]) == null ? void 0 : _panes$.key : undefined);
|
|
52998
|
+
const activeKey = controlledActiveKey != null ? controlledActiveKey : internalActiveKey;
|
|
52999
|
+
const handleTabChange = key => {
|
|
53000
|
+
if (!controlledActiveKey) {
|
|
53001
|
+
setInternalActiveKey(key);
|
|
53002
|
+
}
|
|
53003
|
+
onTabChange == null || onTabChange(key);
|
|
53004
|
+
};
|
|
53005
|
+
|
|
53006
|
+
// Support both new `tabPlacement` and deprecated `tabPosition` props
|
|
53007
|
+
// Map old values: left → start, right → end
|
|
53008
|
+
const finalTabPlacement = mapTabPlacement(tabPlacement || tabPosition);
|
|
53009
|
+
|
|
53010
|
+
// Show deprecation warning in development mode
|
|
53011
|
+
if (tabPosition && !tabPlacement) {
|
|
53012
|
+
(0, _logDeprecationWarning.default)('CapTabV3', 'tabPosition', tabPosition, 'tabPlacement');
|
|
53013
|
+
}
|
|
53014
|
+
|
|
53015
|
+
// Convert panes to items format (v6 API)
|
|
53016
|
+
// Only render content for active tab to preserve original behavior
|
|
53017
|
+
const items = panes == null ? void 0 : panes.map((pane, index) => {
|
|
53018
|
+
const key = pane.key || "tab-" + index;
|
|
53019
|
+
return {
|
|
53020
|
+
key,
|
|
53021
|
+
label: pane.tab,
|
|
53022
|
+
children: activeKey === key ? pane.content : null,
|
|
53023
|
+
disabled: pane.disabled
|
|
53024
|
+
};
|
|
53025
|
+
});
|
|
53026
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Row, {
|
|
53027
|
+
className: (0, _classnames.default)(_styles.default['cap-tab-v3-wrapper'], className),
|
|
53028
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Tabs, _extends({
|
|
53029
|
+
className: (0, _classnames.default)(_styles.default['cap-tab-v3'], className),
|
|
53030
|
+
animated: true,
|
|
53031
|
+
activeKey: activeKey,
|
|
53032
|
+
onChange: handleTabChange,
|
|
53033
|
+
tabPlacement: finalTabPlacement,
|
|
53034
|
+
items: items
|
|
53035
|
+
}, rest))
|
|
53036
|
+
});
|
|
53037
|
+
}
|
|
53038
|
+
var _default = exports["default"] = CapTabV3;
|
|
53039
|
+
|
|
53040
|
+
/***/ }),
|
|
53041
|
+
|
|
52336
53042
|
/***/ 60790:
|
|
52337
53043
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
52338
53044
|
|
|
@@ -52803,6 +53509,7 @@ var _exportNames = {
|
|
|
52803
53509
|
CapDatePicker: true,
|
|
52804
53510
|
CapColoredTag: true,
|
|
52805
53511
|
CapColumn: true,
|
|
53512
|
+
CapConditionPreview: true,
|
|
52806
53513
|
CapCustomCheckboxList: true,
|
|
52807
53514
|
CapCustomList: true,
|
|
52808
53515
|
CapCustomSelect: true,
|
|
@@ -52850,11 +53557,12 @@ var _exportNames = {
|
|
|
52850
53557
|
CapSupportVideosWrapper: true,
|
|
52851
53558
|
CapSpin: true,
|
|
52852
53559
|
CapStatisticCard: true,
|
|
53560
|
+
CapSteps: true,
|
|
52853
53561
|
CapSwitch: true,
|
|
52854
53562
|
CapTag: true,
|
|
52855
53563
|
CapTab: true,
|
|
52856
53564
|
CapTable: true,
|
|
52857
|
-
|
|
53565
|
+
CapTabV3: true,
|
|
52858
53566
|
CapTree: true,
|
|
52859
53567
|
CapTooltip: true,
|
|
52860
53568
|
CapTooltipWithInfo: true,
|
|
@@ -52874,7 +53582,7 @@ var _exportNames = {
|
|
|
52874
53582
|
CapIcons: true,
|
|
52875
53583
|
styledVars: true
|
|
52876
53584
|
};
|
|
52877
|
-
exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapVirtualList = exports.CapUploader = exports.CapUnifiedSelect = exports.CapTruncateList = exports.CapTree = exports.CapTooltipWithInfo = exports.CapTooltip = exports.
|
|
53585
|
+
exports.styledVars = exports.loadCapUIFonts = exports.loadCapUI = exports.getCapUIFontLinks = exports.getCapThemeConfig = exports.LocaleHoc = exports.CapVirtualList = exports.CapUploader = exports.CapUnifiedSelect = exports.CapTruncateList = exports.CapTree = exports.CapTooltipWithInfo = exports.CapTooltip = exports.CapTag = exports.CapTable = exports.CapTabV3 = exports.CapTab = exports.CapSwitch = exports.CapSupportVideosWrapper = exports.CapSteps = exports.CapStatus = exports.CapStatisticCard = exports.CapSplit = exports.CapSpin = exports.CapSomethingWentWrong = exports.CapSnackBar = exports.CapSlider = exports.CapSlideBox = exports.CapSkeleton = exports.CapShape = exports.CapSelectFilter = exports.CapSelect = exports.CapSecondaryTopBar = exports.CapRow = exports.CapRoadMap = exports.CapRadioGroup = exports.CapRadioButton = exports.CapRadio = exports.CapProgress = exports.CapPopover = exports.CapNotificationDropdown = exports.CapNotification = exports.CapModal = exports.CapMenu = exports.CapLogin = exports.CapList = exports.CapLink = exports.CapLanguageProvider = exports.CapLabel = exports.CapInputTextArea = exports.CapInputSearch = exports.CapInputNumber = exports.CapInput = exports.CapInfoNote = exports.CapImportMFEComponent = exports.CapImage = exports.CapIllustration = exports.CapIcons = exports.CapIcon = exports.CapHeading = exports.CapHeader = exports.CapFormItem = exports.CapForm = exports.CapError = exports.CapDropdown = exports.CapDrawer = exports.CapDivider = exports.CapDatePicker = exports.CapCustomSelect = exports.CapCustomList = exports.CapCustomCheckboxList = exports.CapConditionPreview = exports.CapColumn = exports.CapColoredTag = exports.CapColorPicker = exports.CapCheckbox = exports.CapCarousel = exports.CapCardBox = exports.CapCard = exports.CapButton = exports.CapBorderedBox = exports.CapBlock = exports.CapBanner = exports.CapAppNotEnabled = exports.CapAlert = exports.CapActionBar = void 0;
|
|
52878
53586
|
var _CapAlert = _interopRequireDefault(__webpack_require__(20855));
|
|
52879
53587
|
exports.CapAlert = _CapAlert.default;
|
|
52880
53588
|
var _CapActionBar = _interopRequireDefault(__webpack_require__(9464));
|
|
@@ -52903,6 +53611,8 @@ var _CapColoredTag = _interopRequireDefault(__webpack_require__(22029));
|
|
|
52903
53611
|
exports.CapColoredTag = _CapColoredTag.default;
|
|
52904
53612
|
var _CapColumn = _interopRequireDefault(__webpack_require__(4757));
|
|
52905
53613
|
exports.CapColumn = _CapColumn.default;
|
|
53614
|
+
var _CapConditionPreview = _interopRequireDefault(__webpack_require__(9174));
|
|
53615
|
+
exports.CapConditionPreview = _CapConditionPreview.default;
|
|
52906
53616
|
var _CapCustomCheckboxList = _interopRequireDefault(__webpack_require__(1537));
|
|
52907
53617
|
exports.CapCustomCheckboxList = _CapCustomCheckboxList.default;
|
|
52908
53618
|
var _CapCustomList = _interopRequireDefault(__webpack_require__(66334));
|
|
@@ -53000,6 +53710,8 @@ var _CapSpin = _interopRequireDefault(__webpack_require__(56543));
|
|
|
53000
53710
|
exports.CapSpin = _CapSpin.default;
|
|
53001
53711
|
var _CapStatisticCard = _interopRequireDefault(__webpack_require__(7393));
|
|
53002
53712
|
exports.CapStatisticCard = _CapStatisticCard.default;
|
|
53713
|
+
var _CapSteps = _interopRequireDefault(__webpack_require__(82816));
|
|
53714
|
+
exports.CapSteps = _CapSteps.default;
|
|
53003
53715
|
var _CapSwitch = _interopRequireDefault(__webpack_require__(92475));
|
|
53004
53716
|
exports.CapSwitch = _CapSwitch.default;
|
|
53005
53717
|
var _CapTag = _interopRequireDefault(__webpack_require__(28605));
|
|
@@ -53008,8 +53720,8 @@ var _CapTab = _interopRequireDefault(__webpack_require__(60556));
|
|
|
53008
53720
|
exports.CapTab = _CapTab.default;
|
|
53009
53721
|
var _CapTable = _interopRequireDefault(__webpack_require__(43337));
|
|
53010
53722
|
exports.CapTable = _CapTable.default;
|
|
53011
|
-
var
|
|
53012
|
-
exports.
|
|
53723
|
+
var _CapTabV = _interopRequireDefault(__webpack_require__(60697));
|
|
53724
|
+
exports.CapTabV3 = _CapTabV.default;
|
|
53013
53725
|
var _CapTree = _interopRequireDefault(__webpack_require__(70399));
|
|
53014
53726
|
exports.CapTree = _CapTree.default;
|
|
53015
53727
|
var _CapTooltip = _interopRequireDefault(__webpack_require__(85684));
|
|
@@ -62819,6 +63531,103 @@ var nativeCreate = getNative(Object, 'create');
|
|
|
62819
63531
|
module.exports = nativeCreate;
|
|
62820
63532
|
|
|
62821
63533
|
|
|
63534
|
+
/***/ }),
|
|
63535
|
+
|
|
63536
|
+
/***/ 81112:
|
|
63537
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
63538
|
+
|
|
63539
|
+
"use strict";
|
|
63540
|
+
|
|
63541
|
+
|
|
63542
|
+
exports.__esModule = true;
|
|
63543
|
+
exports.scope = exports["default"] = void 0;
|
|
63544
|
+
var _reactIntl = __webpack_require__(46407);
|
|
63545
|
+
// CapCondition Messages
|
|
63546
|
+
|
|
63547
|
+
const scope = exports.scope = 'app.commonUtils.capUiLibrary.CapCondition';
|
|
63548
|
+
var _default = exports["default"] = (0, _reactIntl.defineMessages)({
|
|
63549
|
+
selectPossibleValue: {
|
|
63550
|
+
id: scope + ".selectPossibleValue",
|
|
63551
|
+
defaultMessage: 'Select possible values'
|
|
63552
|
+
},
|
|
63553
|
+
searchPossibleValue: {
|
|
63554
|
+
id: scope + ".searchPossibleValue",
|
|
63555
|
+
defaultMessage: 'Search possible values'
|
|
63556
|
+
},
|
|
63557
|
+
maxPossibleValues: {
|
|
63558
|
+
id: scope + ".maxPossibleValues",
|
|
63559
|
+
defaultMessage: 'Only 15 values can be selected'
|
|
63560
|
+
},
|
|
63561
|
+
title: {
|
|
63562
|
+
id: scope + ".title",
|
|
63563
|
+
defaultMessage: 'title'
|
|
63564
|
+
},
|
|
63565
|
+
selectTriggerEventAttribute: {
|
|
63566
|
+
id: scope + ".selectTriggerEventAttribute",
|
|
63567
|
+
defaultMessage: 'Select trigger event attribute'
|
|
63568
|
+
},
|
|
63569
|
+
entryTriggerEventAttribute: {
|
|
63570
|
+
id: scope + ".entryTriggerEventAttribute",
|
|
63571
|
+
defaultMessage: 'Entry trigger event attribute'
|
|
63572
|
+
},
|
|
63573
|
+
selectDateAttribute: {
|
|
63574
|
+
id: scope + ".selectDateAttribute",
|
|
63575
|
+
defaultMessage: 'Select date attribute'
|
|
63576
|
+
},
|
|
63577
|
+
search: {
|
|
63578
|
+
id: scope + ".search",
|
|
63579
|
+
defaultMessage: 'Search'
|
|
63580
|
+
},
|
|
63581
|
+
noResultsFound: {
|
|
63582
|
+
id: scope + ".noResultsFound",
|
|
63583
|
+
defaultMessage: 'No results found'
|
|
63584
|
+
},
|
|
63585
|
+
more: {
|
|
63586
|
+
id: scope + ".more",
|
|
63587
|
+
defaultMessage: 'more'
|
|
63588
|
+
},
|
|
63589
|
+
onMsg: {
|
|
63590
|
+
id: scope + ".onMsg",
|
|
63591
|
+
defaultMessage: 'on'
|
|
63592
|
+
},
|
|
63593
|
+
beforeMsg: {
|
|
63594
|
+
id: scope + ".beforeMsg",
|
|
63595
|
+
defaultMessage: 'before'
|
|
63596
|
+
},
|
|
63597
|
+
afterMsg: {
|
|
63598
|
+
id: scope + ".afterMsg",
|
|
63599
|
+
defaultMessage: 'after'
|
|
63600
|
+
},
|
|
63601
|
+
betweenMsg: {
|
|
63602
|
+
id: scope + ".betweenMsg",
|
|
63603
|
+
defaultMessage: 'between'
|
|
63604
|
+
},
|
|
63605
|
+
daysAfterMsg: {
|
|
63606
|
+
id: scope + ".daysAfterMsg",
|
|
63607
|
+
defaultMessage: '{days} days after'
|
|
63608
|
+
},
|
|
63609
|
+
daysBeforeMsg: {
|
|
63610
|
+
id: scope + ".daysBeforeMsg",
|
|
63611
|
+
defaultMessage: '{days} days before'
|
|
63612
|
+
},
|
|
63613
|
+
andMsg: {
|
|
63614
|
+
id: scope + ".andMsg",
|
|
63615
|
+
defaultMessage: 'and'
|
|
63616
|
+
},
|
|
63617
|
+
endDate: {
|
|
63618
|
+
id: scope + ".endDate",
|
|
63619
|
+
defaultMessage: 'End date'
|
|
63620
|
+
},
|
|
63621
|
+
of: {
|
|
63622
|
+
id: scope + ".of",
|
|
63623
|
+
defaultMessage: ' of '
|
|
63624
|
+
},
|
|
63625
|
+
profileNameMessage: {
|
|
63626
|
+
id: scope + ".profileNameMessage",
|
|
63627
|
+
defaultMessage: '{profileName} event date attribute'
|
|
63628
|
+
}
|
|
63629
|
+
});
|
|
63630
|
+
|
|
62822
63631
|
/***/ }),
|
|
62823
63632
|
|
|
62824
63633
|
/***/ 81164:
|
|
@@ -62970,6 +63779,58 @@ const SvgDocBot = props => /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", _extends({
|
|
|
62970
63779
|
}));
|
|
62971
63780
|
var _default = exports["default"] = SvgDocBot;
|
|
62972
63781
|
|
|
63782
|
+
/***/ }),
|
|
63783
|
+
|
|
63784
|
+
/***/ 81640:
|
|
63785
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
63786
|
+
|
|
63787
|
+
"use strict";
|
|
63788
|
+
__webpack_require__.r(__webpack_exports__);
|
|
63789
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
63790
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
63791
|
+
/* harmony export */ });
|
|
63792
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
63793
|
+
/* 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__);
|
|
63794
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
63795
|
+
/* 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__);
|
|
63796
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
63797
|
+
/* 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__);
|
|
63798
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
63799
|
+
/* 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__);
|
|
63800
|
+
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
63801
|
+
/* 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__);
|
|
63802
|
+
/* 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);
|
|
63803
|
+
/* 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__);
|
|
63804
|
+
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
63805
|
+
/* 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__]
|
|
63806
|
+
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
63807
|
+
|
|
63808
|
+
|
|
63809
|
+
|
|
63810
|
+
|
|
63811
|
+
|
|
63812
|
+
|
|
63813
|
+
|
|
63814
|
+
|
|
63815
|
+
|
|
63816
|
+
|
|
63817
|
+
|
|
63818
|
+
var options = {};
|
|
63819
|
+
|
|
63820
|
+
;
|
|
63821
|
+
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
63822
|
+
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
63823
|
+
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
63824
|
+
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
63825
|
+
|
|
63826
|
+
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);
|
|
63827
|
+
|
|
63828
|
+
|
|
63829
|
+
|
|
63830
|
+
|
|
63831
|
+
/* 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);
|
|
63832
|
+
|
|
63833
|
+
|
|
62973
63834
|
/***/ }),
|
|
62974
63835
|
|
|
62975
63836
|
/***/ 81703:
|
|
@@ -63664,6 +64525,115 @@ var _default = exports["default"] = mergeProps;
|
|
|
63664
64525
|
|
|
63665
64526
|
/***/ }),
|
|
63666
64527
|
|
|
64528
|
+
/***/ 82816:
|
|
64529
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
64530
|
+
|
|
64531
|
+
"use strict";
|
|
64532
|
+
|
|
64533
|
+
|
|
64534
|
+
exports.__esModule = true;
|
|
64535
|
+
exports["default"] = void 0;
|
|
64536
|
+
var _antdV = __webpack_require__(64273);
|
|
64537
|
+
var _classnames = _interopRequireDefault(__webpack_require__(46942));
|
|
64538
|
+
var _react = _interopRequireWildcard(__webpack_require__(9206));
|
|
64539
|
+
var _styles = _interopRequireDefault(__webpack_require__(81640));
|
|
64540
|
+
var _jsxRuntime = __webpack_require__(74848);
|
|
64541
|
+
const _excluded = ["className", "children", "items"],
|
|
64542
|
+
_excluded2 = ["title", "subTitle", "description", "icon", "status", "disabled"];
|
|
64543
|
+
/**
|
|
64544
|
+
*
|
|
64545
|
+
* CapSteps
|
|
64546
|
+
*
|
|
64547
|
+
*/
|
|
64548
|
+
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); }
|
|
64549
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
64550
|
+
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); }
|
|
64551
|
+
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; }
|
|
64552
|
+
/**
|
|
64553
|
+
* CapStep component for backward compatibility
|
|
64554
|
+
* This component is used as a child of CapSteps and collects its props
|
|
64555
|
+
* to be converted to items array internally
|
|
64556
|
+
*/
|
|
64557
|
+
const CapStepComponent = () => {
|
|
64558
|
+
// This component doesn't render anything itself
|
|
64559
|
+
// Its props are collected by the parent CapSteps component
|
|
64560
|
+
return null;
|
|
64561
|
+
};
|
|
64562
|
+
CapStepComponent.displayName = 'CapStep';
|
|
64563
|
+
|
|
64564
|
+
/**
|
|
64565
|
+
* CapSteps component with backward compatibility support
|
|
64566
|
+
* Supports both:
|
|
64567
|
+
* 1. items prop (antd v5 native API)
|
|
64568
|
+
* 2. children API with CapSteps.CapStep (backward compatibility)
|
|
64569
|
+
*/
|
|
64570
|
+
const CapStepsComponent = _ref => {
|
|
64571
|
+
let {
|
|
64572
|
+
className,
|
|
64573
|
+
children,
|
|
64574
|
+
items
|
|
64575
|
+
} = _ref,
|
|
64576
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
64577
|
+
const combinedClassName = (0, _classnames.default)(_styles.default['cap-steps'], className);
|
|
64578
|
+
|
|
64579
|
+
// Convert children to items if children are provided but items are not
|
|
64580
|
+
const itemsFromChildren = (0, _react.useMemo)(() => {
|
|
64581
|
+
if (items) return items;
|
|
64582
|
+
if (!children) return undefined;
|
|
64583
|
+
const childrenArray = _react.default.Children.toArray(children);
|
|
64584
|
+
const isCapStep = child => {
|
|
64585
|
+
if (! /*#__PURE__*/_react.default.isValidElement(child)) return false;
|
|
64586
|
+
if (child.type === CapStepComponent) return true;
|
|
64587
|
+
|
|
64588
|
+
// Check if child.type has displayName property
|
|
64589
|
+
const childType = child.type;
|
|
64590
|
+
return (childType == null ? void 0 : childType.displayName) === 'CapStep';
|
|
64591
|
+
};
|
|
64592
|
+
const stepChildren = childrenArray.filter(isCapStep);
|
|
64593
|
+
if (!stepChildren.length) return undefined;
|
|
64594
|
+
return stepChildren.map((child, index) => {
|
|
64595
|
+
var _child$key;
|
|
64596
|
+
const _child$props = child.props,
|
|
64597
|
+
{
|
|
64598
|
+
title,
|
|
64599
|
+
subTitle,
|
|
64600
|
+
description,
|
|
64601
|
+
icon,
|
|
64602
|
+
status,
|
|
64603
|
+
disabled
|
|
64604
|
+
} = _child$props,
|
|
64605
|
+
rest = _objectWithoutPropertiesLoose(_child$props, _excluded2);
|
|
64606
|
+
return _extends({
|
|
64607
|
+
key: (_child$key = child.key) != null ? _child$key : index,
|
|
64608
|
+
title,
|
|
64609
|
+
subTitle,
|
|
64610
|
+
description,
|
|
64611
|
+
icon,
|
|
64612
|
+
status,
|
|
64613
|
+
disabled
|
|
64614
|
+
}, rest);
|
|
64615
|
+
});
|
|
64616
|
+
}, [children, items]);
|
|
64617
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
64618
|
+
className: _styles.default['cap-steps-wrapper'],
|
|
64619
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_antdV.Steps, _extends({}, props, {
|
|
64620
|
+
items: itemsFromChildren,
|
|
64621
|
+
className: combinedClassName
|
|
64622
|
+
}))
|
|
64623
|
+
});
|
|
64624
|
+
};
|
|
64625
|
+
|
|
64626
|
+
/**
|
|
64627
|
+
* Attach CapStep as a static property for backward compatibility
|
|
64628
|
+
* This allows usage like: <CapSteps><CapSteps.CapStep title="Step 1" /></CapSteps>
|
|
64629
|
+
*/
|
|
64630
|
+
const CapSteps = CapStepsComponent;
|
|
64631
|
+
CapSteps.CapStep = CapStepComponent;
|
|
64632
|
+
CapSteps.displayName = 'CapSteps';
|
|
64633
|
+
var _default = exports["default"] = CapSteps;
|
|
64634
|
+
|
|
64635
|
+
/***/ }),
|
|
64636
|
+
|
|
63667
64637
|
/***/ 82957:
|
|
63668
64638
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
63669
64639
|
|
|
@@ -63817,7 +64787,7 @@ var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
|
63817
64787
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
63818
64788
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
63819
64789
|
// Module
|
|
63820
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-table-v2 .ant-table{border:.071rem solid #dfe2e7}.cap-table-v2 .ant-table .ant-table-thead>tr>th{font-size:.857rem;line-height:1.142rem;text-align:left;padding:1.142rem 1.714rem}.cap-table-v2 .ant-table .ant-table-thead>tr>th .ant-table-column-sorter{vertical-align:unset}.cap-table-v2 .ant-table .ant-table-tbody>tr>td{padding:1.142rem 1.714rem;border-bottom:.071rem solid #dfe2e7}.cap-table-v2 .ant-table .ant-table-tbody>tr:last-child>td{border-bottom:none}.cap-table-v2
|
|
64790
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.cap-table-v2{width:100%}.cap-table-v2 .ant-table-tbody .ant-table-row.ant-table-row-selected>.ant-table-cell{background:#fafafa}.cap-table-v2 .ant-table-tbody .ant-table-row.ant-table-row-selected:hover>.ant-table-cell{background:#faf9f4}.cap-table-v2 .ant-table{border:.071rem solid #dfe2e7}.cap-table-v2 .ant-table .ant-table-thead>tr>th{font-size:.857rem;line-height:1.142rem;text-align:left;padding:1.142rem 1.714rem}.cap-table-v2 .ant-table .ant-table-thead>tr>th .ant-table-column-sorter{vertical-align:unset}.cap-table-v2 .ant-table .ant-table-tbody>tr>td{padding:1.142rem 1.714rem;border-bottom:.071rem solid #dfe2e7}.cap-table-v2 .ant-table .ant-table-tbody>tr:last-child>td{border-bottom:none}.cap-table-v2.show-loader .ant-table-body>table>tbody::after{content:"Loading...";display:flex;justify-content:center;position:absolute;width:100%;align-items:center;height:4.286rem;text-align:center;font-size:1.143rem;color:cap-g04;border-top:.071rem solid #dfe2e7}`, ""]);
|
|
63821
64791
|
// Exports
|
|
63822
64792
|
___CSS_LOADER_EXPORT___.locals = {
|
|
63823
64793
|
"cap-table-v2": `cap-table-v2`,
|
|
@@ -63884,58 +64854,6 @@ function identity(value) {
|
|
|
63884
64854
|
module.exports = identity;
|
|
63885
64855
|
|
|
63886
64856
|
|
|
63887
|
-
/***/ }),
|
|
63888
|
-
|
|
63889
|
-
/***/ 83624:
|
|
63890
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
63891
|
-
|
|
63892
|
-
"use strict";
|
|
63893
|
-
__webpack_require__.r(__webpack_exports__);
|
|
63894
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
63895
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
63896
|
-
/* harmony export */ });
|
|
63897
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85072);
|
|
63898
|
-
/* 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__);
|
|
63899
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64284);
|
|
63900
|
-
/* 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__);
|
|
63901
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(77659);
|
|
63902
|
-
/* 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__);
|
|
63903
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55056);
|
|
63904
|
-
/* 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__);
|
|
63905
|
-
/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10540);
|
|
63906
|
-
/* 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__);
|
|
63907
|
-
/* 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__(92137);
|
|
63908
|
-
/* 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__);
|
|
63909
|
-
/* harmony reexport (unknown) */ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
63910
|
-
/* 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__]
|
|
63911
|
-
/* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
63912
|
-
|
|
63913
|
-
|
|
63914
|
-
|
|
63915
|
-
|
|
63916
|
-
|
|
63917
|
-
|
|
63918
|
-
|
|
63919
|
-
|
|
63920
|
-
|
|
63921
|
-
|
|
63922
|
-
|
|
63923
|
-
var options = {};
|
|
63924
|
-
|
|
63925
|
-
;
|
|
63926
|
-
options.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());
|
|
63927
|
-
options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, "head");
|
|
63928
|
-
options.domAPI = (_node_modules_style_loader_dist_runtime_singletonStyleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());
|
|
63929
|
-
options.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());
|
|
63930
|
-
|
|
63931
|
-
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);
|
|
63932
|
-
|
|
63933
|
-
|
|
63934
|
-
|
|
63935
|
-
|
|
63936
|
-
/* 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);
|
|
63937
|
-
|
|
63938
|
-
|
|
63939
64857
|
/***/ }),
|
|
63940
64858
|
|
|
63941
64859
|
/***/ 83652:
|
|
@@ -67887,24 +68805,6 @@ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js
|
|
|
67887
68805
|
/* 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);
|
|
67888
68806
|
|
|
67889
68807
|
|
|
67890
|
-
/***/ }),
|
|
67891
|
-
|
|
67892
|
-
/***/ 92137:
|
|
67893
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
67894
|
-
|
|
67895
|
-
// Imports
|
|
67896
|
-
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
67897
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
67898
|
-
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
67899
|
-
// Module
|
|
67900
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.cap-timepicker-v2 .ant-time-picker-input{height:2.857rem;padding:.429rem .786rem}.cap-timepicker-v2 .ant-time-picker-clock-icon{color:#091e42}`, ""]);
|
|
67901
|
-
// Exports
|
|
67902
|
-
___CSS_LOADER_EXPORT___.locals = {
|
|
67903
|
-
"cap-timepicker-v2": `cap-timepicker-v2`
|
|
67904
|
-
};
|
|
67905
|
-
module.exports = ___CSS_LOADER_EXPORT___;
|
|
67906
|
-
|
|
67907
|
-
|
|
67908
68808
|
/***/ }),
|
|
67909
68809
|
|
|
67910
68810
|
/***/ 92160:
|
|
@@ -70705,6 +71605,27 @@ const CapNotification = {
|
|
|
70705
71605
|
};
|
|
70706
71606
|
var _default = exports["default"] = CapNotification;
|
|
70707
71607
|
|
|
71608
|
+
/***/ }),
|
|
71609
|
+
|
|
71610
|
+
/***/ 98289:
|
|
71611
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
71612
|
+
|
|
71613
|
+
// Imports
|
|
71614
|
+
var ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ = __webpack_require__(31601);
|
|
71615
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(76314);
|
|
71616
|
+
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);
|
|
71617
|
+
// Module
|
|
71618
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.capConditionPreview__string{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.capConditionPreview__flexWrapDiv{display:flex;align-items:center;flex-wrap:wrap}.capConditionPreview__flexWrapDiv>*{margin:.428rem .285rem}.capConditionPreview__skuDownloadLink{display:flex;align-items:center;margin-left:.571rem}.capConditionPreview__skuDownloadLink>.cap-icon-v2-download{margin-right:.285rem}.capConditionPreview__label{background-color:#ecece7;border-radius:1.143rem;height:2.285rem;padding:.642rem .928rem}`, ""]);
|
|
71619
|
+
// Exports
|
|
71620
|
+
___CSS_LOADER_EXPORT___.locals = {
|
|
71621
|
+
"capConditionPreview__string": `capConditionPreview__string`,
|
|
71622
|
+
"capConditionPreview__flexWrapDiv": `capConditionPreview__flexWrapDiv`,
|
|
71623
|
+
"capConditionPreview__skuDownloadLink": `capConditionPreview__skuDownloadLink`,
|
|
71624
|
+
"capConditionPreview__label": `capConditionPreview__label`
|
|
71625
|
+
};
|
|
71626
|
+
module.exports = ___CSS_LOADER_EXPORT___;
|
|
71627
|
+
|
|
71628
|
+
|
|
70708
71629
|
/***/ }),
|
|
70709
71630
|
|
|
70710
71631
|
/***/ 98421:
|
|
@@ -70879,6 +71800,123 @@ function toNumber(value) {
|
|
|
70879
71800
|
module.exports = toNumber;
|
|
70880
71801
|
|
|
70881
71802
|
|
|
71803
|
+
/***/ }),
|
|
71804
|
+
|
|
71805
|
+
/***/ 99394:
|
|
71806
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
71807
|
+
|
|
71808
|
+
"use strict";
|
|
71809
|
+
|
|
71810
|
+
|
|
71811
|
+
exports.__esModule = true;
|
|
71812
|
+
exports.getFilterCheckAllLocale = getFilterCheckAllLocale;
|
|
71813
|
+
exports.transformColumns = transformColumns;
|
|
71814
|
+
exports.transformPagination = transformPagination;
|
|
71815
|
+
exports.transformRowSelection = transformRowSelection;
|
|
71816
|
+
const _excluded = ["position"],
|
|
71817
|
+
_excluded2 = ["filterDropdownOpen", "onFilterDropdownOpenChange"],
|
|
71818
|
+
_excluded3 = ["onSelectInvert", "onChange"];
|
|
71819
|
+
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); }
|
|
71820
|
+
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; }
|
|
71821
|
+
/**
|
|
71822
|
+
* Transform deprecated pagination.position to pagination.placement
|
|
71823
|
+
*/
|
|
71824
|
+
function transformPagination(pagination) {
|
|
71825
|
+
if (!pagination || pagination === false) return pagination;
|
|
71826
|
+
const _ref = pagination,
|
|
71827
|
+
{
|
|
71828
|
+
position
|
|
71829
|
+
} = _ref,
|
|
71830
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
71831
|
+
if (position && Array.isArray(position)) {
|
|
71832
|
+
// Map position array to placement (use first position as placement)
|
|
71833
|
+
const positionToPlacement = {
|
|
71834
|
+
topLeft: 'topLeft',
|
|
71835
|
+
topCenter: 'topLeft',
|
|
71836
|
+
topRight: 'topRight',
|
|
71837
|
+
bottomLeft: 'bottomLeft',
|
|
71838
|
+
bottomCenter: 'bottomLeft',
|
|
71839
|
+
bottomRight: 'bottomRight'
|
|
71840
|
+
};
|
|
71841
|
+
const placement = positionToPlacement[position[0]] || 'bottomRight';
|
|
71842
|
+
return _extends({}, rest, {
|
|
71843
|
+
position: [placement]
|
|
71844
|
+
});
|
|
71845
|
+
}
|
|
71846
|
+
return pagination;
|
|
71847
|
+
}
|
|
71848
|
+
|
|
71849
|
+
/**
|
|
71850
|
+
* Transform deprecated column props:
|
|
71851
|
+
* - filterDropdownOpen → filterDropdownProps.open
|
|
71852
|
+
* - onFilterDropdownOpenChange → filterDropdownProps.onOpenChange
|
|
71853
|
+
* - filterCheckall → locale.filterCheckAll (handled at table level)
|
|
71854
|
+
*/
|
|
71855
|
+
function transformColumns(columns) {
|
|
71856
|
+
if (!columns) return columns;
|
|
71857
|
+
return columns.map(column => {
|
|
71858
|
+
const _ref2 = column,
|
|
71859
|
+
{
|
|
71860
|
+
filterDropdownOpen,
|
|
71861
|
+
onFilterDropdownOpenChange
|
|
71862
|
+
} = _ref2,
|
|
71863
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
71864
|
+
const transformed = _extends({}, rest);
|
|
71865
|
+
|
|
71866
|
+
// Transform filterDropdownOpen and onFilterDropdownOpenChange to filterDropdownProps
|
|
71867
|
+
if (filterDropdownOpen !== undefined || onFilterDropdownOpenChange !== undefined) {
|
|
71868
|
+
transformed.filterDropdownProps = _extends({}, transformed.filterDropdownProps, filterDropdownOpen !== undefined && {
|
|
71869
|
+
open: filterDropdownOpen
|
|
71870
|
+
}, onFilterDropdownOpenChange !== undefined && {
|
|
71871
|
+
onOpenChange: onFilterDropdownOpenChange
|
|
71872
|
+
});
|
|
71873
|
+
}
|
|
71874
|
+
return transformed;
|
|
71875
|
+
});
|
|
71876
|
+
}
|
|
71877
|
+
|
|
71878
|
+
/**
|
|
71879
|
+
* Transform deprecated rowSelection.onSelectInvert to onChange
|
|
71880
|
+
*/
|
|
71881
|
+
function transformRowSelection(rowSelection) {
|
|
71882
|
+
if (!rowSelection) return rowSelection;
|
|
71883
|
+
const _ref3 = rowSelection,
|
|
71884
|
+
{
|
|
71885
|
+
onSelectInvert,
|
|
71886
|
+
onChange
|
|
71887
|
+
} = _ref3,
|
|
71888
|
+
rest = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
71889
|
+
if (onSelectInvert && !onChange) {
|
|
71890
|
+
// Wrap onSelectInvert in onChange
|
|
71891
|
+
return _extends({}, rest, {
|
|
71892
|
+
onChange: selectedRowKeys => {
|
|
71893
|
+
onSelectInvert(selectedRowKeys);
|
|
71894
|
+
}
|
|
71895
|
+
});
|
|
71896
|
+
}
|
|
71897
|
+
return _extends({}, rest, {
|
|
71898
|
+
onChange
|
|
71899
|
+
});
|
|
71900
|
+
}
|
|
71901
|
+
|
|
71902
|
+
/**
|
|
71903
|
+
* Check if any column has deprecated filterCheckall and return locale override
|
|
71904
|
+
*/
|
|
71905
|
+
function getFilterCheckAllLocale(columns) {
|
|
71906
|
+
if (!columns) return undefined;
|
|
71907
|
+
for (const column of columns) {
|
|
71908
|
+
const {
|
|
71909
|
+
filterCheckall
|
|
71910
|
+
} = column;
|
|
71911
|
+
if (filterCheckall !== undefined) {
|
|
71912
|
+
return {
|
|
71913
|
+
filterCheckAll: filterCheckall
|
|
71914
|
+
};
|
|
71915
|
+
}
|
|
71916
|
+
}
|
|
71917
|
+
return undefined;
|
|
71918
|
+
}
|
|
71919
|
+
|
|
70882
71920
|
/***/ }),
|
|
70883
71921
|
|
|
70884
71922
|
/***/ 99780:
|