@icos-desktop/react-components 2.0.0-beta.1.0.3 → 2.0.0-beta.1.0.5
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/build/index.esm.js +648 -442
- package/build/index.js +648 -442
- package/build/index.umd.js +648 -442
- package/build/types/components/SenseCreate/ccos.d.ts +1 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -12129,7 +12129,7 @@ const genFontMapToken = fontSize => {
|
|
12129
12129
|
};
|
12130
12130
|
};
|
12131
12131
|
|
12132
|
-
function genSizeMapToken(token) {
|
12132
|
+
function genSizeMapToken$1(token) {
|
12133
12133
|
const {
|
12134
12134
|
sizeUnit,
|
12135
12135
|
sizeStep
|
@@ -12155,13 +12155,13 @@ function genSizeMapToken(token) {
|
|
12155
12155
|
};
|
12156
12156
|
}
|
12157
12157
|
|
12158
|
-
const getAlphaColor$
|
12159
|
-
const getSolidColor = (baseColor, brightness) => {
|
12158
|
+
const getAlphaColor$2 = (baseColor, alpha) => new TinyColor(baseColor).setAlpha(alpha).toRgbString();
|
12159
|
+
const getSolidColor$1 = (baseColor, brightness) => {
|
12160
12160
|
const instance = new TinyColor(baseColor);
|
12161
12161
|
return instance.darken(brightness).toHexString();
|
12162
12162
|
};
|
12163
12163
|
|
12164
|
-
const generateColorPalettes = baseColor => {
|
12164
|
+
const generateColorPalettes$1 = baseColor => {
|
12165
12165
|
const colors = generate$2(baseColor);
|
12166
12166
|
return {
|
12167
12167
|
1: colors[0],
|
@@ -12179,34 +12179,34 @@ const generateColorPalettes = baseColor => {
|
|
12179
12179
|
// 10: colors[9],
|
12180
12180
|
};
|
12181
12181
|
};
|
12182
|
-
const generateNeutralColorPalettes = (bgBaseColor, textBaseColor) => {
|
12182
|
+
const generateNeutralColorPalettes$1 = (bgBaseColor, textBaseColor) => {
|
12183
12183
|
const colorBgBase = bgBaseColor || '#fff';
|
12184
12184
|
const colorTextBase = textBaseColor || '#000';
|
12185
12185
|
return {
|
12186
12186
|
colorBgBase,
|
12187
12187
|
colorTextBase,
|
12188
|
-
colorText: getAlphaColor$
|
12189
|
-
colorTextSecondary: getAlphaColor$
|
12190
|
-
colorTextTertiary: getAlphaColor$
|
12191
|
-
colorTextQuaternary: getAlphaColor$
|
12192
|
-
colorFill: getAlphaColor$
|
12193
|
-
colorFillSecondary: getAlphaColor$
|
12194
|
-
colorFillTertiary: getAlphaColor$
|
12195
|
-
colorFillQuaternary: getAlphaColor$
|
12196
|
-
colorBgSolid: getAlphaColor$
|
12197
|
-
colorBgSolidHover: getAlphaColor$
|
12198
|
-
colorBgSolidActive: getAlphaColor$
|
12199
|
-
colorBgLayout: getSolidColor(colorBgBase, 4),
|
12200
|
-
colorBgContainer: getSolidColor(colorBgBase, 0),
|
12201
|
-
colorBgElevated: getSolidColor(colorBgBase, 0),
|
12202
|
-
colorBgSpotlight: getAlphaColor$
|
12188
|
+
colorText: getAlphaColor$2(colorTextBase, 0.88),
|
12189
|
+
colorTextSecondary: getAlphaColor$2(colorTextBase, 0.65),
|
12190
|
+
colorTextTertiary: getAlphaColor$2(colorTextBase, 0.45),
|
12191
|
+
colorTextQuaternary: getAlphaColor$2(colorTextBase, 0.25),
|
12192
|
+
colorFill: getAlphaColor$2(colorTextBase, 0.15),
|
12193
|
+
colorFillSecondary: getAlphaColor$2(colorTextBase, 0.06),
|
12194
|
+
colorFillTertiary: getAlphaColor$2(colorTextBase, 0.04),
|
12195
|
+
colorFillQuaternary: getAlphaColor$2(colorTextBase, 0.02),
|
12196
|
+
colorBgSolid: getAlphaColor$2(colorTextBase, 1),
|
12197
|
+
colorBgSolidHover: getAlphaColor$2(colorTextBase, 0.75),
|
12198
|
+
colorBgSolidActive: getAlphaColor$2(colorTextBase, 0.95),
|
12199
|
+
colorBgLayout: getSolidColor$1(colorBgBase, 4),
|
12200
|
+
colorBgContainer: getSolidColor$1(colorBgBase, 0),
|
12201
|
+
colorBgElevated: getSolidColor$1(colorBgBase, 0),
|
12202
|
+
colorBgSpotlight: getAlphaColor$2(colorTextBase, 0.85),
|
12203
12203
|
colorBgBlur: 'transparent',
|
12204
|
-
colorBorder: getSolidColor(colorBgBase, 15),
|
12205
|
-
colorBorderSecondary: getSolidColor(colorBgBase, 6)
|
12204
|
+
colorBorder: getSolidColor$1(colorBgBase, 15),
|
12205
|
+
colorBorderSecondary: getSolidColor$1(colorBgBase, 6)
|
12206
12206
|
};
|
12207
12207
|
};
|
12208
12208
|
|
12209
|
-
function derivative(token) {
|
12209
|
+
function derivative$2(token) {
|
12210
12210
|
// pink is deprecated name of magenta, keep this for backwards compatibility
|
12211
12211
|
presetPrimaryColors$1.pink = presetPrimaryColors$1.magenta;
|
12212
12212
|
presetPalettes$1.pink = presetPalettes$1.magenta;
|
@@ -12223,12 +12223,12 @@ function derivative(token) {
|
|
12223
12223
|
return prev;
|
12224
12224
|
}, {});
|
12225
12225
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, token), colorPalettes), genColorMapToken(token, {
|
12226
|
-
generateColorPalettes,
|
12227
|
-
generateNeutralColorPalettes
|
12228
|
-
})), genFontMapToken(token.fontSize)), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));
|
12226
|
+
generateColorPalettes: generateColorPalettes$1,
|
12227
|
+
generateNeutralColorPalettes: generateNeutralColorPalettes$1
|
12228
|
+
})), genFontMapToken(token.fontSize)), genSizeMapToken$1(token)), genControlHeight(token)), genCommonMapToken(token));
|
12229
12229
|
}
|
12230
12230
|
|
12231
|
-
const defaultTheme = createTheme(derivative);
|
12231
|
+
const defaultTheme$1 = createTheme(derivative$2);
|
12232
12232
|
// ================================ Context =================================
|
12233
12233
|
// To ensure snapshot stable. We disable hashed in test env.
|
12234
12234
|
const defaultConfig = {
|
@@ -13110,7 +13110,7 @@ var version$1 = '5.22.3';
|
|
13110
13110
|
function isStableColor(color) {
|
13111
13111
|
return color >= 0 && color <= 255;
|
13112
13112
|
}
|
13113
|
-
function getAlphaColor(frontColor, backgroundColor) {
|
13113
|
+
function getAlphaColor$1(frontColor, backgroundColor) {
|
13114
13114
|
const {
|
13115
13115
|
r: fR,
|
13116
13116
|
g: fG,
|
@@ -13193,7 +13193,7 @@ function formatToken(derivativeToken) {
|
|
13193
13193
|
colorBgContainerDisabled: mergedToken.colorFillTertiary,
|
13194
13194
|
// ============== Split ============== //
|
13195
13195
|
colorBorderBg: mergedToken.colorBgContainer,
|
13196
|
-
colorSplit: getAlphaColor(mergedToken.colorBorderSecondary, mergedToken.colorBgContainer),
|
13196
|
+
colorSplit: getAlphaColor$1(mergedToken.colorBorderSecondary, mergedToken.colorBgContainer),
|
13197
13197
|
// ============== Text ============== //
|
13198
13198
|
colorTextPlaceholder: mergedToken.colorTextQuaternary,
|
13199
13199
|
colorTextDisabled: mergedToken.colorTextQuaternary,
|
@@ -13206,8 +13206,8 @@ function formatToken(derivativeToken) {
|
|
13206
13206
|
colorBgTextActive: mergedToken.colorFill,
|
13207
13207
|
colorIcon: mergedToken.colorTextTertiary,
|
13208
13208
|
colorIconHover: mergedToken.colorText,
|
13209
|
-
colorErrorOutline: getAlphaColor(mergedToken.colorErrorBg, mergedToken.colorBgContainer),
|
13210
|
-
colorWarningOutline: getAlphaColor(mergedToken.colorWarningBg, mergedToken.colorBgContainer),
|
13209
|
+
colorErrorOutline: getAlphaColor$1(mergedToken.colorErrorBg, mergedToken.colorBgContainer),
|
13210
|
+
colorWarningOutline: getAlphaColor$1(mergedToken.colorWarningBg, mergedToken.colorBgContainer),
|
13211
13211
|
// Font
|
13212
13212
|
fontSizeIcon: mergedToken.fontSizeSM,
|
13213
13213
|
// Line
|
@@ -13222,7 +13222,7 @@ function formatToken(derivativeToken) {
|
|
13222
13222
|
controlItemBgActiveHover: mergedToken.colorPrimaryBgHover,
|
13223
13223
|
controlItemBgActiveDisabled: mergedToken.colorFill,
|
13224
13224
|
controlTmpOutline: mergedToken.colorFillQuaternary,
|
13225
|
-
controlOutline: getAlphaColor(mergedToken.colorPrimaryBg, mergedToken.colorBgContainer),
|
13225
|
+
controlOutline: getAlphaColor$1(mergedToken.colorPrimaryBg, mergedToken.colorBgContainer),
|
13226
13226
|
lineType: mergedToken.lineType,
|
13227
13227
|
borderRadius: mergedToken.borderRadius,
|
13228
13228
|
borderRadiusXS: mergedToken.borderRadiusXS,
|
@@ -13410,7 +13410,7 @@ const getComputedToken = (originToken, overrideToken, theme) => {
|
|
13410
13410
|
return mergedDerivativeToken;
|
13411
13411
|
};
|
13412
13412
|
// ================================== Hook ==================================
|
13413
|
-
function useToken() {
|
13413
|
+
function useToken$1() {
|
13414
13414
|
const {
|
13415
13415
|
token: rootDesignToken,
|
13416
13416
|
hashed,
|
@@ -13419,7 +13419,7 @@ function useToken() {
|
|
13419
13419
|
cssVar
|
13420
13420
|
} = React.useContext(DesignTokenContext);
|
13421
13421
|
const salt = `${version$1}-${hashed || ''}`;
|
13422
|
-
const mergedTheme = theme || defaultTheme;
|
13422
|
+
const mergedTheme = theme || defaultTheme$1;
|
13423
13423
|
const [token, hashId, realToken] = useCacheToken(mergedTheme, [seedToken, rootDesignToken], {
|
13424
13424
|
salt,
|
13425
13425
|
override,
|
@@ -13575,7 +13575,7 @@ const operationUnit = token => Object.assign(Object.assign({
|
|
13575
13575
|
});
|
13576
13576
|
|
13577
13577
|
const useResetIconStyle = (iconPrefixCls, csp) => {
|
13578
|
-
const [theme, token] = useToken();
|
13578
|
+
const [theme, token] = useToken$1();
|
13579
13579
|
// Generate style for icons
|
13580
13580
|
return useStyleRegister({
|
13581
13581
|
theme,
|
@@ -13612,7 +13612,7 @@ const {
|
|
13612
13612
|
};
|
13613
13613
|
},
|
13614
13614
|
useToken: () => {
|
13615
|
-
const [theme, realToken, hashId, token, cssVar] = useToken();
|
13615
|
+
const [theme, realToken, hashId, token, cssVar] = useToken$1();
|
13616
13616
|
return {
|
13617
13617
|
theme,
|
13618
13618
|
realToken,
|
@@ -14530,7 +14530,7 @@ function MotionWrapper(props) {
|
|
14530
14530
|
const {
|
14531
14531
|
children
|
14532
14532
|
} = props;
|
14533
|
-
const [, token] = useToken();
|
14533
|
+
const [, token] = useToken$1();
|
14534
14534
|
const {
|
14535
14535
|
motion
|
14536
14536
|
} = token;
|
@@ -14881,7 +14881,7 @@ const ProviderChildren = props => {
|
|
14881
14881
|
cssVar
|
14882
14882
|
} = _a,
|
14883
14883
|
rest = __rest$10(_a, ["algorithm", "token", "components", "cssVar"]);
|
14884
|
-
const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
|
14884
|
+
const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme$1;
|
14885
14885
|
const parsedComponents = {};
|
14886
14886
|
Object.entries(components || {}).forEach(_ref => {
|
14887
14887
|
let [componentName, componentToken] = _ref;
|
@@ -15090,7 +15090,7 @@ function scrollTo(y) {
|
|
15090
15090
|
* @param prefixCls
|
15091
15091
|
*/
|
15092
15092
|
const useCSSVarCls = prefixCls => {
|
15093
|
-
const [,,,, cssVar] = useToken();
|
15093
|
+
const [,,,, cssVar] = useToken$1();
|
15094
15094
|
return cssVar ? `${prefixCls}-css-var` : '';
|
15095
15095
|
};
|
15096
15096
|
|
@@ -16266,7 +16266,7 @@ function isContainerType(type) {
|
|
16266
16266
|
return type in containerBaseZIndexOffset;
|
16267
16267
|
}
|
16268
16268
|
const useZIndex = (componentType, customZIndex) => {
|
16269
|
-
const [, token] = useToken();
|
16269
|
+
const [, token] = useToken$1();
|
16270
16270
|
const parentZIndex = React.useContext(zIndexContext);
|
16271
16271
|
const isContainer = isContainerType(componentType);
|
16272
16272
|
let result;
|
@@ -17417,7 +17417,7 @@ const useWave = (nodeRef, className, component) => {
|
|
17417
17417
|
const {
|
17418
17418
|
wave
|
17419
17419
|
} = React__namespace.useContext(ConfigContext);
|
17420
|
-
const [, token, hashId] = useToken();
|
17420
|
+
const [, token, hashId] = useToken$1();
|
17421
17421
|
const showWave = useEvent(event => {
|
17422
17422
|
const node = nodeRef.current;
|
17423
17423
|
if ((wave === null || wave === void 0 ? void 0 : wave.disabled) || !node) {
|
@@ -17725,7 +17725,7 @@ const ButtonGroup = props => {
|
|
17725
17725
|
} = props,
|
17726
17726
|
others = __rest$Y(props, ["prefixCls", "size", "className"]);
|
17727
17727
|
const prefixCls = getPrefixCls('btn-group', customizePrefixCls);
|
17728
|
-
const [,, hashId] = useToken();
|
17728
|
+
const [,, hashId] = useToken$1();
|
17729
17729
|
let sizeCls = '';
|
17730
17730
|
switch (size) {
|
17731
17731
|
case 'large':
|
@@ -27498,7 +27498,7 @@ const ConfirmDialog = props => {
|
|
27498
27498
|
[`${confirmPrefixCls}-rtl`]: direction === 'rtl'
|
27499
27499
|
}, props.className);
|
27500
27500
|
// ========================= zIndex =========================
|
27501
|
-
const [, token] = useToken();
|
27501
|
+
const [, token] = useToken$1();
|
27502
27502
|
const mergedZIndex = React__namespace.useMemo(() => {
|
27503
27503
|
if (zIndex !== undefined) {
|
27504
27504
|
return zIndex;
|
@@ -28471,7 +28471,7 @@ const Holder = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
28471
28471
|
notification,
|
28472
28472
|
direction
|
28473
28473
|
} = React.useContext(ConfigContext);
|
28474
|
-
const [, token] = useToken();
|
28474
|
+
const [, token] = useToken$1();
|
28475
28475
|
const prefixCls = staticPrefixCls || getPrefixCls('notification');
|
28476
28476
|
// =============================== Style ===============================
|
28477
28477
|
const getStyle = placement => getPlacementStyle(placement, top !== null && top !== void 0 ? top : DEFAULT_OFFSET, bottom !== null && bottom !== void 0 ? bottom : DEFAULT_OFFSET);
|
@@ -35007,7 +35007,7 @@ function getStatusClassNames(prefixCls, status, hasFeedback) {
|
|
35007
35007
|
const getMergedStatus = (contextStatus, customStatus) => customStatus || contextStatus;
|
35008
35008
|
|
35009
35009
|
const Empty$1 = () => {
|
35010
|
-
const [, token] = useToken();
|
35010
|
+
const [, token] = useToken$1();
|
35011
35011
|
const [locale] = useLocale$1('Empty');
|
35012
35012
|
const bgColor = new TinyColor(token.colorBgBase);
|
35013
35013
|
// Dark Theme need more dark of this
|
@@ -35065,7 +35065,7 @@ const Empty$1 = () => {
|
|
35065
35065
|
}
|
35066
35066
|
|
35067
35067
|
const Simple = () => {
|
35068
|
-
const [, token] = useToken();
|
35068
|
+
const [, token] = useToken$1();
|
35069
35069
|
const [locale] = useLocale$1('Empty');
|
35070
35070
|
const {
|
35071
35071
|
colorFill,
|
@@ -36512,7 +36512,7 @@ const InternalSelect = (props, ref) => {
|
|
36512
36512
|
popupOverflow,
|
36513
36513
|
select
|
36514
36514
|
} = React__namespace.useContext(ConfigContext);
|
36515
|
-
const [, token] = useToken();
|
36515
|
+
const [, token] = useToken$1();
|
36516
36516
|
const listItemHeight = customListItemHeight !== null && customListItemHeight !== void 0 ? customListItemHeight : token === null || token === void 0 ? void 0 : token.controlHeight;
|
36517
36517
|
const prefixCls = getPrefixCls('select', customizePrefixCls);
|
36518
36518
|
const rootPrefixCls = getPrefixCls();
|
@@ -36697,7 +36697,7 @@ const validateBreakpoints = token => {
|
|
36697
36697
|
return token;
|
36698
36698
|
};
|
36699
36699
|
function useResponsiveObserver() {
|
36700
|
-
const [, token] = useToken();
|
36700
|
+
const [, token] = useToken$1();
|
36701
36701
|
const responsiveMap = getResponsiveMap(validateBreakpoints(token));
|
36702
36702
|
// To avoid repeat create instance, we add `useMemo` here.
|
36703
36703
|
return React.useMemo(() => {
|
@@ -37578,7 +37578,7 @@ const InternalTooltip = /*#__PURE__*/React__namespace.forwardRef((props, ref) =>
|
|
37578
37578
|
autoAdjustOverflow = true
|
37579
37579
|
} = props;
|
37580
37580
|
const mergedShowArrow = !!arrow;
|
37581
|
-
const [, token] = useToken();
|
37581
|
+
const [, token] = useToken$1();
|
37582
37582
|
const {
|
37583
37583
|
getPopupContainer: getContextPopupContainer,
|
37584
37584
|
getPrefixCls,
|
@@ -42353,7 +42353,7 @@ const Dropdown$1 = props => {
|
|
42353
42353
|
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
42354
42354
|
const rootCls = useCSSVarCls(prefixCls);
|
42355
42355
|
const [wrapCSSVar, hashId, cssVarCls] = useStyle$k(prefixCls, rootCls);
|
42356
|
-
const [, token] = useToken();
|
42356
|
+
const [, token] = useToken$1();
|
42357
42357
|
const child = React__namespace.Children.only(children);
|
42358
42358
|
const dropdownTrigger = cloneElement(child, {
|
42359
42359
|
className: classNames(`${prefixCls}-trigger`, {
|
@@ -69819,7 +69819,7 @@ const Pagination = props => {
|
|
69819
69819
|
const {
|
69820
69820
|
xs
|
69821
69821
|
} = useBreakpoint(responsive);
|
69822
|
-
const [, token] = useToken();
|
69822
|
+
const [, token] = useToken$1();
|
69823
69823
|
const {
|
69824
69824
|
getPrefixCls,
|
69825
69825
|
direction,
|
@@ -79381,7 +79381,7 @@ const Tree$1 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
79381
79381
|
dropIndicatorRender
|
79382
79382
|
});
|
79383
79383
|
const [wrapCSSVar, hashId, cssVarCls] = useStyle$2(prefixCls);
|
79384
|
-
const [, token] = useToken();
|
79384
|
+
const [, token] = useToken$1();
|
79385
79385
|
const itemHeight = token.paddingXS / 2 + (((_a = token.Tree) === null || _a === void 0 ? void 0 : _a.titleHeight) || token.controlHeightSM);
|
79386
79386
|
const draggableConfig = React.useMemo(() => {
|
79387
79387
|
if (!draggable) {
|
@@ -82321,7 +82321,7 @@ const InternalTable = (props, ref) => {
|
|
82321
82321
|
const rawData = dataSource || EMPTY_LIST;
|
82322
82322
|
const prefixCls = getPrefixCls('table', customizePrefixCls);
|
82323
82323
|
const dropdownPrefixCls = getPrefixCls('dropdown', customizeDropdownPrefixCls);
|
82324
|
-
const [, token] = useToken();
|
82324
|
+
const [, token] = useToken$1();
|
82325
82325
|
const rootCls = useCSSVarCls(prefixCls);
|
82326
82326
|
const [wrapCSSVar, hashId, cssVarCls] = useStyle$1(prefixCls, rootCls);
|
82327
82327
|
const mergedExpandable = Object.assign(Object.assign({
|
@@ -82646,6 +82646,152 @@ ForwardTable.Summary = FooterComponents;
|
|
82646
82646
|
ForwardTable.displayName = 'Table';
|
82647
82647
|
}
|
82648
82648
|
|
82649
|
+
const getDesignToken = config => {
|
82650
|
+
const theme = (config === null || config === void 0 ? void 0 : config.algorithm) ? createTheme(config.algorithm) : createTheme(derivative$2);
|
82651
|
+
const mergedToken = Object.assign(Object.assign({}, seedToken), config === null || config === void 0 ? void 0 : config.token);
|
82652
|
+
return getComputedToken$1(mergedToken, {
|
82653
|
+
override: config === null || config === void 0 ? void 0 : config.token
|
82654
|
+
}, theme, formatToken);
|
82655
|
+
};
|
82656
|
+
|
82657
|
+
function genSizeMapToken(token) {
|
82658
|
+
const {
|
82659
|
+
sizeUnit,
|
82660
|
+
sizeStep
|
82661
|
+
} = token;
|
82662
|
+
const compactSizeStep = sizeStep - 2;
|
82663
|
+
return {
|
82664
|
+
sizeXXL: sizeUnit * (compactSizeStep + 10),
|
82665
|
+
sizeXL: sizeUnit * (compactSizeStep + 6),
|
82666
|
+
sizeLG: sizeUnit * (compactSizeStep + 2),
|
82667
|
+
sizeMD: sizeUnit * (compactSizeStep + 2),
|
82668
|
+
sizeMS: sizeUnit * (compactSizeStep + 1),
|
82669
|
+
size: sizeUnit * compactSizeStep,
|
82670
|
+
sizeSM: sizeUnit * compactSizeStep,
|
82671
|
+
sizeXS: sizeUnit * (compactSizeStep - 1),
|
82672
|
+
sizeXXS: sizeUnit * (compactSizeStep - 1)
|
82673
|
+
};
|
82674
|
+
}
|
82675
|
+
|
82676
|
+
const derivative$1 = (token, mapToken) => {
|
82677
|
+
const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : derivative$2(token);
|
82678
|
+
const fontSize = mergedMapToken.fontSizeSM; // Smaller size font-size as base
|
82679
|
+
const controlHeight = mergedMapToken.controlHeight - 4;
|
82680
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, mergedMapToken), genSizeMapToken(mapToken !== null && mapToken !== void 0 ? mapToken : token)), genFontMapToken(fontSize)), {
|
82681
|
+
// controlHeight
|
82682
|
+
controlHeight
|
82683
|
+
}), genControlHeight(Object.assign(Object.assign({}, mergedMapToken), {
|
82684
|
+
controlHeight
|
82685
|
+
})));
|
82686
|
+
};
|
82687
|
+
|
82688
|
+
const getAlphaColor = (baseColor, alpha) => new TinyColor(baseColor).setAlpha(alpha).toRgbString();
|
82689
|
+
const getSolidColor = (baseColor, brightness) => {
|
82690
|
+
const instance = new TinyColor(baseColor);
|
82691
|
+
return instance.lighten(brightness).toHexString();
|
82692
|
+
};
|
82693
|
+
|
82694
|
+
const generateColorPalettes = baseColor => {
|
82695
|
+
const colors = generate$2(baseColor, {
|
82696
|
+
theme: 'dark'
|
82697
|
+
});
|
82698
|
+
return {
|
82699
|
+
1: colors[0],
|
82700
|
+
2: colors[1],
|
82701
|
+
3: colors[2],
|
82702
|
+
4: colors[3],
|
82703
|
+
5: colors[6],
|
82704
|
+
6: colors[5],
|
82705
|
+
7: colors[4],
|
82706
|
+
8: colors[6],
|
82707
|
+
9: colors[5],
|
82708
|
+
10: colors[4]
|
82709
|
+
// 8: colors[9],
|
82710
|
+
// 9: colors[8],
|
82711
|
+
// 10: colors[7],
|
82712
|
+
};
|
82713
|
+
};
|
82714
|
+
const generateNeutralColorPalettes = (bgBaseColor, textBaseColor) => {
|
82715
|
+
const colorBgBase = bgBaseColor || '#000';
|
82716
|
+
const colorTextBase = textBaseColor || '#fff';
|
82717
|
+
return {
|
82718
|
+
colorBgBase,
|
82719
|
+
colorTextBase,
|
82720
|
+
colorText: getAlphaColor(colorTextBase, 0.85),
|
82721
|
+
colorTextSecondary: getAlphaColor(colorTextBase, 0.65),
|
82722
|
+
colorTextTertiary: getAlphaColor(colorTextBase, 0.45),
|
82723
|
+
colorTextQuaternary: getAlphaColor(colorTextBase, 0.25),
|
82724
|
+
colorFill: getAlphaColor(colorTextBase, 0.18),
|
82725
|
+
colorFillSecondary: getAlphaColor(colorTextBase, 0.12),
|
82726
|
+
colorFillTertiary: getAlphaColor(colorTextBase, 0.08),
|
82727
|
+
colorFillQuaternary: getAlphaColor(colorTextBase, 0.04),
|
82728
|
+
colorBgSolid: getAlphaColor(colorTextBase, 0.95),
|
82729
|
+
colorBgSolidHover: getAlphaColor(colorTextBase, 1),
|
82730
|
+
colorBgSolidActive: getAlphaColor(colorTextBase, 0.9),
|
82731
|
+
colorBgElevated: getSolidColor(colorBgBase, 12),
|
82732
|
+
colorBgContainer: getSolidColor(colorBgBase, 8),
|
82733
|
+
colorBgLayout: getSolidColor(colorBgBase, 0),
|
82734
|
+
colorBgSpotlight: getSolidColor(colorBgBase, 26),
|
82735
|
+
colorBgBlur: getAlphaColor(colorTextBase, 0.04),
|
82736
|
+
colorBorder: getSolidColor(colorBgBase, 26),
|
82737
|
+
colorBorderSecondary: getSolidColor(colorBgBase, 19)
|
82738
|
+
};
|
82739
|
+
};
|
82740
|
+
|
82741
|
+
const derivative = (token, mapToken) => {
|
82742
|
+
const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {
|
82743
|
+
const colors = generate$2(token[colorKey], {
|
82744
|
+
theme: 'dark'
|
82745
|
+
});
|
82746
|
+
return new Array(10).fill(1).reduce((prev, _, i) => {
|
82747
|
+
prev[`${colorKey}-${i + 1}`] = colors[i];
|
82748
|
+
prev[`${colorKey}${i + 1}`] = colors[i];
|
82749
|
+
return prev;
|
82750
|
+
}, {});
|
82751
|
+
}).reduce((prev, cur) => {
|
82752
|
+
// biome-ignore lint/style/noParameterAssign: it is a reduce
|
82753
|
+
prev = Object.assign(Object.assign({}, prev), cur);
|
82754
|
+
return prev;
|
82755
|
+
}, {});
|
82756
|
+
const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : derivative$2(token);
|
82757
|
+
return Object.assign(Object.assign(Object.assign({}, mergedMapToken), colorPalettes), genColorMapToken(token, {
|
82758
|
+
generateColorPalettes,
|
82759
|
+
generateNeutralColorPalettes
|
82760
|
+
}));
|
82761
|
+
};
|
82762
|
+
|
82763
|
+
// ZombieJ: We export as object to user but array in internal.
|
82764
|
+
// This is used to minimize the bundle size for antd package but safe to refactor as object also.
|
82765
|
+
// Please do not export internal `useToken` directly to avoid something export unexpected.
|
82766
|
+
/** Get current context Design Token. Will be different if you are using nest theme config. */
|
82767
|
+
function useToken() {
|
82768
|
+
const [theme, token, hashId] = useToken$1();
|
82769
|
+
return {
|
82770
|
+
theme,
|
82771
|
+
token,
|
82772
|
+
hashId
|
82773
|
+
};
|
82774
|
+
}
|
82775
|
+
var theme = {
|
82776
|
+
/** Default seedToken */
|
82777
|
+
defaultSeed: defaultConfig.token,
|
82778
|
+
useToken,
|
82779
|
+
defaultAlgorithm: derivative$2,
|
82780
|
+
darkAlgorithm: derivative,
|
82781
|
+
compactAlgorithm: derivative$1,
|
82782
|
+
getDesignToken,
|
82783
|
+
/**
|
82784
|
+
* @private Private variable
|
82785
|
+
* @warring 🔥 Do not use in production. 🔥
|
82786
|
+
*/
|
82787
|
+
defaultConfig,
|
82788
|
+
/**
|
82789
|
+
* @private Private variable
|
82790
|
+
* @warring 🔥 Do not use in production. 🔥
|
82791
|
+
*/
|
82792
|
+
_internalContext: DesignTokenContext
|
82793
|
+
};
|
82794
|
+
|
82649
82795
|
/**
|
82650
82796
|
* This function will try to call requestIdleCallback if available to save performance.
|
82651
82797
|
* No need `getLabel` here since already fetch on `rawLabeledValue`.
|
@@ -83958,7 +84104,7 @@ const InternalTreeSelect = (props, ref) => {
|
|
83958
84104
|
popupMatchSelectWidth: contextPopupMatchSelectWidth,
|
83959
84105
|
popupOverflow
|
83960
84106
|
} = React__namespace.useContext(ConfigContext);
|
83961
|
-
const [, token] = useToken();
|
84107
|
+
const [, token] = useToken$1();
|
83962
84108
|
const listItemHeight = customListItemHeight !== null && customListItemHeight !== void 0 ? customListItemHeight : (token === null || token === void 0 ? void 0 : token.controlHeightSM) + (token === null || token === void 0 ? void 0 : token.paddingXXS);
|
83963
84109
|
{
|
83964
84110
|
const warning = devUseWarning('TreeSelect');
|
@@ -224015,15 +224161,408 @@ var settings$e = {
|
|
224015
224161
|
};
|
224016
224162
|
var settings$f = applyRules(settings$e);
|
224017
224163
|
|
224164
|
+
var zh_CN$6 = {};
|
224165
|
+
|
224166
|
+
var interopRequireDefault = {exports: {}};
|
224167
|
+
|
224168
|
+
(function (module) {
|
224169
|
+
function _interopRequireDefault(e) {
|
224170
|
+
return e && e.__esModule ? e : {
|
224171
|
+
"default": e
|
224172
|
+
};
|
224173
|
+
}
|
224174
|
+
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
224175
|
+
} (interopRequireDefault));
|
224176
|
+
|
224177
|
+
var interopRequireDefaultExports = interopRequireDefault.exports;
|
224178
|
+
|
224179
|
+
var zh_CN$5 = {};
|
224180
|
+
|
224181
|
+
Object.defineProperty(zh_CN$5, "__esModule", {
|
224182
|
+
value: true
|
224183
|
+
});
|
224184
|
+
zh_CN$5.default = void 0;
|
224185
|
+
var locale$3 = {
|
224186
|
+
// Options
|
224187
|
+
items_per_page: '条/页',
|
224188
|
+
jump_to: '跳至',
|
224189
|
+
jump_to_confirm: '确定',
|
224190
|
+
page: '页',
|
224191
|
+
// Pagination
|
224192
|
+
prev_page: '上一页',
|
224193
|
+
next_page: '下一页',
|
224194
|
+
prev_5: '向前 5 页',
|
224195
|
+
next_5: '向后 5 页',
|
224196
|
+
prev_3: '向前 3 页',
|
224197
|
+
next_3: '向后 3 页',
|
224198
|
+
page_size: '页码'
|
224199
|
+
};
|
224200
|
+
zh_CN$5.default = locale$3;
|
224201
|
+
|
224202
|
+
var zh_CN$4 = {};
|
224203
|
+
|
224204
|
+
var zh_CN$3 = {};
|
224205
|
+
|
224206
|
+
var zh_CN$2 = {};
|
224207
|
+
|
224208
|
+
var objectSpread2 = {exports: {}};
|
224209
|
+
|
224210
|
+
var defineProperty = {exports: {}};
|
224211
|
+
|
224212
|
+
var toPropertyKey = {exports: {}};
|
224213
|
+
|
224214
|
+
var toPrimitive = {exports: {}};
|
224215
|
+
|
224216
|
+
(function (module) {
|
224217
|
+
var _typeof = _typeofExports["default"];
|
224218
|
+
function toPrimitive(t, r) {
|
224219
|
+
if ("object" != _typeof(t) || !t) return t;
|
224220
|
+
var e = t[Symbol.toPrimitive];
|
224221
|
+
if (void 0 !== e) {
|
224222
|
+
var i = e.call(t, r || "default");
|
224223
|
+
if ("object" != _typeof(i)) return i;
|
224224
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
224225
|
+
}
|
224226
|
+
return ("string" === r ? String : Number)(t);
|
224227
|
+
}
|
224228
|
+
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
224229
|
+
} (toPrimitive));
|
224230
|
+
|
224231
|
+
var toPrimitiveExports = toPrimitive.exports;
|
224232
|
+
|
224233
|
+
(function (module) {
|
224234
|
+
var _typeof = _typeofExports["default"];
|
224235
|
+
var toPrimitive = toPrimitiveExports;
|
224236
|
+
function toPropertyKey(t) {
|
224237
|
+
var i = toPrimitive(t, "string");
|
224238
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
224239
|
+
}
|
224240
|
+
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
224241
|
+
} (toPropertyKey));
|
224242
|
+
|
224243
|
+
var toPropertyKeyExports = toPropertyKey.exports;
|
224244
|
+
|
224245
|
+
(function (module) {
|
224246
|
+
var toPropertyKey = toPropertyKeyExports;
|
224247
|
+
function _defineProperty(e, r, t) {
|
224248
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
224249
|
+
value: t,
|
224250
|
+
enumerable: !0,
|
224251
|
+
configurable: !0,
|
224252
|
+
writable: !0
|
224253
|
+
}) : e[r] = t, e;
|
224254
|
+
}
|
224255
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
224256
|
+
} (defineProperty));
|
224257
|
+
|
224258
|
+
var definePropertyExports = defineProperty.exports;
|
224259
|
+
|
224260
|
+
(function (module) {
|
224261
|
+
var defineProperty = definePropertyExports;
|
224262
|
+
function ownKeys(e, r) {
|
224263
|
+
var t = Object.keys(e);
|
224264
|
+
if (Object.getOwnPropertySymbols) {
|
224265
|
+
var o = Object.getOwnPropertySymbols(e);
|
224266
|
+
r && (o = o.filter(function (r) {
|
224267
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
224268
|
+
})), t.push.apply(t, o);
|
224269
|
+
}
|
224270
|
+
return t;
|
224271
|
+
}
|
224272
|
+
function _objectSpread2(e) {
|
224273
|
+
for (var r = 1; r < arguments.length; r++) {
|
224274
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
224275
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
224276
|
+
defineProperty(e, r, t[r]);
|
224277
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
224278
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
224279
|
+
});
|
224280
|
+
}
|
224281
|
+
return e;
|
224282
|
+
}
|
224283
|
+
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
224284
|
+
} (objectSpread2));
|
224285
|
+
|
224286
|
+
var objectSpread2Exports = objectSpread2.exports;
|
224287
|
+
|
224288
|
+
var common = {};
|
224289
|
+
|
224290
|
+
Object.defineProperty(common, "__esModule", {
|
224291
|
+
value: true
|
224292
|
+
});
|
224293
|
+
common.commonLocale = void 0;
|
224294
|
+
common.commonLocale = {
|
224295
|
+
yearFormat: 'YYYY',
|
224296
|
+
dayFormat: 'D',
|
224297
|
+
cellMeridiemFormat: 'A',
|
224298
|
+
monthBeforeYear: true
|
224299
|
+
};
|
224300
|
+
|
224301
|
+
var _interopRequireDefault$3 = interopRequireDefaultExports.default;
|
224302
|
+
Object.defineProperty(zh_CN$2, "__esModule", {
|
224303
|
+
value: true
|
224304
|
+
});
|
224305
|
+
zh_CN$2.default = void 0;
|
224306
|
+
var _objectSpread2 = _interopRequireDefault$3(objectSpread2Exports);
|
224307
|
+
var _common = common;
|
224308
|
+
var locale$2 = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _common.commonLocale), {}, {
|
224309
|
+
locale: 'zh_CN',
|
224310
|
+
today: '今天',
|
224311
|
+
now: '此刻',
|
224312
|
+
backToToday: '返回今天',
|
224313
|
+
ok: '确定',
|
224314
|
+
timeSelect: '选择时间',
|
224315
|
+
dateSelect: '选择日期',
|
224316
|
+
weekSelect: '选择周',
|
224317
|
+
clear: '清除',
|
224318
|
+
month: '月',
|
224319
|
+
year: '年',
|
224320
|
+
previousMonth: '上个月 (翻页上键)',
|
224321
|
+
nextMonth: '下个月 (翻页下键)',
|
224322
|
+
monthSelect: '选择月份',
|
224323
|
+
yearSelect: '选择年份',
|
224324
|
+
decadeSelect: '选择年代',
|
224325
|
+
previousYear: '上一年 (Control键加左方向键)',
|
224326
|
+
nextYear: '下一年 (Control键加右方向键)',
|
224327
|
+
previousDecade: '上一年代',
|
224328
|
+
nextDecade: '下一年代',
|
224329
|
+
previousCentury: '上一世纪',
|
224330
|
+
nextCentury: '下一世纪',
|
224331
|
+
yearFormat: 'YYYY年',
|
224332
|
+
cellDateFormat: 'D',
|
224333
|
+
monthBeforeYear: false
|
224334
|
+
});
|
224335
|
+
zh_CN$2.default = locale$2;
|
224336
|
+
|
224337
|
+
var zh_CN$1 = {};
|
224338
|
+
|
224339
|
+
Object.defineProperty(zh_CN$1, "__esModule", {
|
224340
|
+
value: true
|
224341
|
+
});
|
224342
|
+
zh_CN$1.default = void 0;
|
224343
|
+
const locale$1 = {
|
224344
|
+
placeholder: '请选择时间',
|
224345
|
+
rangePlaceholder: ['开始时间', '结束时间']
|
224346
|
+
};
|
224347
|
+
zh_CN$1.default = locale$1;
|
224348
|
+
|
224349
|
+
var _interopRequireDefault$2 = interopRequireDefaultExports.default;
|
224350
|
+
Object.defineProperty(zh_CN$3, "__esModule", {
|
224351
|
+
value: true
|
224352
|
+
});
|
224353
|
+
zh_CN$3.default = void 0;
|
224354
|
+
var _zh_CN$2 = _interopRequireDefault$2(zh_CN$2);
|
224355
|
+
var _zh_CN2$1 = _interopRequireDefault$2(zh_CN$1);
|
224356
|
+
// 统一合并为完整的 Locale
|
224357
|
+
const locale = {
|
224358
|
+
lang: Object.assign({
|
224359
|
+
placeholder: '请选择日期',
|
224360
|
+
yearPlaceholder: '请选择年份',
|
224361
|
+
quarterPlaceholder: '请选择季度',
|
224362
|
+
monthPlaceholder: '请选择月份',
|
224363
|
+
weekPlaceholder: '请选择周',
|
224364
|
+
rangePlaceholder: ['开始日期', '结束日期'],
|
224365
|
+
rangeYearPlaceholder: ['开始年份', '结束年份'],
|
224366
|
+
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
224367
|
+
rangeQuarterPlaceholder: ['开始季度', '结束季度'],
|
224368
|
+
rangeWeekPlaceholder: ['开始周', '结束周']
|
224369
|
+
}, _zh_CN$2.default),
|
224370
|
+
timePickerLocale: Object.assign({}, _zh_CN2$1.default)
|
224371
|
+
};
|
224372
|
+
// should add whitespace between char in Button
|
224373
|
+
locale.lang.ok = '确定';
|
224374
|
+
// All settings at:
|
224375
|
+
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
224376
|
+
zh_CN$3.default = locale;
|
224377
|
+
|
224378
|
+
var _interopRequireDefault$1 = interopRequireDefaultExports.default;
|
224379
|
+
Object.defineProperty(zh_CN$4, "__esModule", {
|
224380
|
+
value: true
|
224381
|
+
});
|
224382
|
+
zh_CN$4.default = void 0;
|
224383
|
+
var _zh_CN$1 = _interopRequireDefault$1(zh_CN$3);
|
224384
|
+
zh_CN$4.default = _zh_CN$1.default;
|
224385
|
+
|
224386
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
224387
|
+
Object.defineProperty(zh_CN$6, "__esModule", {
|
224388
|
+
value: true
|
224389
|
+
});
|
224390
|
+
zh_CN$6.default = void 0;
|
224391
|
+
var _zh_CN = _interopRequireDefault(zh_CN$5);
|
224392
|
+
var _zh_CN2 = _interopRequireDefault(zh_CN$4);
|
224393
|
+
var _zh_CN3 = _interopRequireDefault(zh_CN$3);
|
224394
|
+
var _zh_CN4 = _interopRequireDefault(zh_CN$1);
|
224395
|
+
const typeTemplate = '${label}不是一个有效的${type}';
|
224396
|
+
const localeValues = {
|
224397
|
+
locale: 'zh-cn',
|
224398
|
+
Pagination: _zh_CN.default,
|
224399
|
+
DatePicker: _zh_CN3.default,
|
224400
|
+
TimePicker: _zh_CN4.default,
|
224401
|
+
Calendar: _zh_CN2.default,
|
224402
|
+
// locales for all components
|
224403
|
+
global: {
|
224404
|
+
placeholder: '请选择'
|
224405
|
+
},
|
224406
|
+
Table: {
|
224407
|
+
filterTitle: '筛选',
|
224408
|
+
filterConfirm: '确定',
|
224409
|
+
filterReset: '重置',
|
224410
|
+
filterEmptyText: '无筛选项',
|
224411
|
+
filterCheckall: '全选',
|
224412
|
+
filterSearchPlaceholder: '在筛选项中搜索',
|
224413
|
+
emptyText: '暂无数据',
|
224414
|
+
selectAll: '全选当页',
|
224415
|
+
selectInvert: '反选当页',
|
224416
|
+
selectNone: '清空所有',
|
224417
|
+
selectionAll: '全选所有',
|
224418
|
+
sortTitle: '排序',
|
224419
|
+
expand: '展开行',
|
224420
|
+
collapse: '关闭行',
|
224421
|
+
triggerDesc: '点击降序',
|
224422
|
+
triggerAsc: '点击升序',
|
224423
|
+
cancelSort: '取消排序'
|
224424
|
+
},
|
224425
|
+
Modal: {
|
224426
|
+
okText: '确定',
|
224427
|
+
cancelText: '取消',
|
224428
|
+
justOkText: '知道了'
|
224429
|
+
},
|
224430
|
+
Tour: {
|
224431
|
+
Next: '下一步',
|
224432
|
+
Previous: '上一步',
|
224433
|
+
Finish: '结束导览'
|
224434
|
+
},
|
224435
|
+
Popconfirm: {
|
224436
|
+
cancelText: '取消',
|
224437
|
+
okText: '确定'
|
224438
|
+
},
|
224439
|
+
Transfer: {
|
224440
|
+
titles: ['', ''],
|
224441
|
+
searchPlaceholder: '请输入搜索内容',
|
224442
|
+
itemUnit: '项',
|
224443
|
+
itemsUnit: '项',
|
224444
|
+
remove: '删除',
|
224445
|
+
selectCurrent: '全选当页',
|
224446
|
+
removeCurrent: '删除当页',
|
224447
|
+
selectAll: '全选所有',
|
224448
|
+
deselectAll: '取消全选',
|
224449
|
+
removeAll: '删除全部',
|
224450
|
+
selectInvert: '反选当页'
|
224451
|
+
},
|
224452
|
+
Upload: {
|
224453
|
+
uploading: '文件上传中',
|
224454
|
+
removeFile: '删除文件',
|
224455
|
+
uploadError: '上传错误',
|
224456
|
+
previewFile: '预览文件',
|
224457
|
+
downloadFile: '下载文件'
|
224458
|
+
},
|
224459
|
+
Empty: {
|
224460
|
+
description: '暂无数据'
|
224461
|
+
},
|
224462
|
+
Icon: {
|
224463
|
+
icon: '图标'
|
224464
|
+
},
|
224465
|
+
Text: {
|
224466
|
+
edit: '编辑',
|
224467
|
+
copy: '复制',
|
224468
|
+
copied: '复制成功',
|
224469
|
+
expand: '展开',
|
224470
|
+
collapse: '收起'
|
224471
|
+
},
|
224472
|
+
Form: {
|
224473
|
+
optional: '(可选)',
|
224474
|
+
defaultValidateMessages: {
|
224475
|
+
default: '字段验证错误${label}',
|
224476
|
+
required: '请输入${label}',
|
224477
|
+
enum: '${label}必须是其中一个[${enum}]',
|
224478
|
+
whitespace: '${label}不能为空字符',
|
224479
|
+
date: {
|
224480
|
+
format: '${label}日期格式无效',
|
224481
|
+
parse: '${label}不能转换为日期',
|
224482
|
+
invalid: '${label}是一个无效日期'
|
224483
|
+
},
|
224484
|
+
types: {
|
224485
|
+
string: typeTemplate,
|
224486
|
+
method: typeTemplate,
|
224487
|
+
array: typeTemplate,
|
224488
|
+
object: typeTemplate,
|
224489
|
+
number: typeTemplate,
|
224490
|
+
date: typeTemplate,
|
224491
|
+
boolean: typeTemplate,
|
224492
|
+
integer: typeTemplate,
|
224493
|
+
float: typeTemplate,
|
224494
|
+
regexp: typeTemplate,
|
224495
|
+
email: typeTemplate,
|
224496
|
+
url: typeTemplate,
|
224497
|
+
hex: typeTemplate
|
224498
|
+
},
|
224499
|
+
string: {
|
224500
|
+
len: '${label}须为${len}个字符',
|
224501
|
+
min: '${label}最少${min}个字符',
|
224502
|
+
max: '${label}最多${max}个字符',
|
224503
|
+
range: '${label}须在${min}-${max}字符之间'
|
224504
|
+
},
|
224505
|
+
number: {
|
224506
|
+
len: '${label}必须等于${len}',
|
224507
|
+
min: '${label}最小值为${min}',
|
224508
|
+
max: '${label}最大值为${max}',
|
224509
|
+
range: '${label}须在${min}-${max}之间'
|
224510
|
+
},
|
224511
|
+
array: {
|
224512
|
+
len: '须为${len}个${label}',
|
224513
|
+
min: '最少${min}个${label}',
|
224514
|
+
max: '最多${max}个${label}',
|
224515
|
+
range: '${label}数量须在${min}-${max}之间'
|
224516
|
+
},
|
224517
|
+
pattern: {
|
224518
|
+
mismatch: '${label}与模式不匹配${pattern}'
|
224519
|
+
}
|
224520
|
+
}
|
224521
|
+
},
|
224522
|
+
Image: {
|
224523
|
+
preview: '预览'
|
224524
|
+
},
|
224525
|
+
QRCode: {
|
224526
|
+
expired: '二维码过期',
|
224527
|
+
refresh: '点击刷新',
|
224528
|
+
scanned: '已扫描'
|
224529
|
+
},
|
224530
|
+
ColorPicker: {
|
224531
|
+
presetEmpty: '暂无',
|
224532
|
+
transparent: '无色',
|
224533
|
+
singleColor: '单色',
|
224534
|
+
gradientColor: '渐变色'
|
224535
|
+
}
|
224536
|
+
};
|
224537
|
+
zh_CN$6.default = localeValues;
|
224538
|
+
|
224539
|
+
var zh_CN = zh_CN$6;
|
224540
|
+
|
224541
|
+
var zhCN = /*@__PURE__*/getDefaultExportFromCjs(zh_CN);
|
224542
|
+
|
224543
|
+
var defaultTheme = {
|
224544
|
+
algorithm: theme.darkAlgorithm,
|
224545
|
+
locale: zhCN,
|
224546
|
+
cssVar: {
|
224547
|
+
key: 'dt-css',
|
224548
|
+
// prefix: 'dt-root-ant'
|
224549
|
+
},
|
224550
|
+
// hashed: false,
|
224551
|
+
token: {
|
224552
|
+
borderRadius: 0,
|
224553
|
+
borderRadiusLG: 0,
|
224554
|
+
borderRadiusSM: 0,
|
224555
|
+
},
|
224556
|
+
};
|
224557
|
+
|
224018
224558
|
var CcosSenseCreate = function (props) {
|
224559
|
+
var theme = props.theme, restProps = __rest$13(props, ["theme"]);
|
224019
224560
|
var getProps = function () {
|
224020
|
-
var _props = __assign$h({},
|
224021
|
-
// if (!props.showSenseContextMenu) {
|
224022
|
-
// delete _props.senseContextMenuConfig;
|
224023
|
-
// }
|
224561
|
+
var _props = __assign$h({}, restProps);
|
224024
224562
|
return _props;
|
224025
224563
|
};
|
224026
|
-
return (React.createElement(
|
224564
|
+
return (React.createElement(ConfigProvider, __assign$h({}, (theme || defaultTheme)),
|
224565
|
+
React.createElement(SenseCreate, __assign$h({}, getProps()))));
|
224027
224566
|
};
|
224028
224567
|
CcosSenseCreate.settings = settings$f;
|
224029
224568
|
|
@@ -242291,7 +242830,54 @@ var settings$c = {
|
|
242291
242830
|
title: '内容信息卡片背景颜色',
|
242292
242831
|
group: 'style',
|
242293
242832
|
setter: 'colorSetter',
|
242294
|
-
}
|
242833
|
+
},
|
242834
|
+
{
|
242835
|
+
name: 'senseInfoTextColor',
|
242836
|
+
title: '文本颜色',
|
242837
|
+
group: 'style',
|
242838
|
+
setter: 'colorSetter',
|
242839
|
+
},
|
242840
|
+
{
|
242841
|
+
name: 'senseInfoTextHighlightColor',
|
242842
|
+
title: '高亮文本颜色',
|
242843
|
+
group: 'style',
|
242844
|
+
setter: 'colorSetter',
|
242845
|
+
},
|
242846
|
+
{
|
242847
|
+
name: 'senseInfoBorderColor',
|
242848
|
+
title: '表格边框颜色',
|
242849
|
+
group: 'style',
|
242850
|
+
setter: 'colorSetter',
|
242851
|
+
},
|
242852
|
+
{
|
242853
|
+
name: 'senseInfoBorderWidth',
|
242854
|
+
title: '表格边框宽度',
|
242855
|
+
group: 'style',
|
242856
|
+
setter: 'numberSetter',
|
242857
|
+
},
|
242858
|
+
{
|
242859
|
+
name: 'senseInfoBorderStyle',
|
242860
|
+
title: '表格边框样式',
|
242861
|
+
group: 'style',
|
242862
|
+
setter: 'selectSetter',
|
242863
|
+
options: [
|
242864
|
+
{ label: 'None', value: 'none' },
|
242865
|
+
{ label: 'Dashed', value: 'dashed' },
|
242866
|
+
{ label: 'Dotted', value: 'dotted' },
|
242867
|
+
{ label: 'Solid', value: 'solid' },
|
242868
|
+
{ label: 'Double', value: 'double' },
|
242869
|
+
{ label: 'Groove', value: 'groove' },
|
242870
|
+
{ label: 'Ridge', value: 'ridge' },
|
242871
|
+
{ label: 'Inset', value: 'inset' },
|
242872
|
+
{ label: 'Outset', value: 'outset' },
|
242873
|
+
],
|
242874
|
+
},
|
242875
|
+
{
|
242876
|
+
name: 'senseInfoLabelBgColor',
|
242877
|
+
title: '左侧label背景颜色',
|
242878
|
+
group: 'style',
|
242879
|
+
setter: 'colorSetter',
|
242880
|
+
},
|
242295
242881
|
],
|
242296
242882
|
};
|
242297
242883
|
var settings$d = applyRules(settings$c);
|
@@ -243351,392 +243937,12 @@ var zhCn = {exports: {}};
|
|
243351
243937
|
var css_248z$8 = "";
|
243352
243938
|
styleInject(css_248z$8);
|
243353
243939
|
|
243354
|
-
var zh_CN$7 = {};
|
243355
|
-
|
243356
|
-
var interopRequireDefault = {exports: {}};
|
243357
|
-
|
243358
|
-
(function (module) {
|
243359
|
-
function _interopRequireDefault(e) {
|
243360
|
-
return e && e.__esModule ? e : {
|
243361
|
-
"default": e
|
243362
|
-
};
|
243363
|
-
}
|
243364
|
-
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
243365
|
-
} (interopRequireDefault));
|
243366
|
-
|
243367
|
-
var interopRequireDefaultExports = interopRequireDefault.exports;
|
243368
|
-
|
243369
|
-
var zh_CN$6 = {};
|
243370
|
-
|
243371
|
-
Object.defineProperty(zh_CN$6, "__esModule", {
|
243372
|
-
value: true
|
243373
|
-
});
|
243374
|
-
zh_CN$6.default = void 0;
|
243375
|
-
var locale$3 = {
|
243376
|
-
// Options
|
243377
|
-
items_per_page: '条/页',
|
243378
|
-
jump_to: '跳至',
|
243379
|
-
jump_to_confirm: '确定',
|
243380
|
-
page: '页',
|
243381
|
-
// Pagination
|
243382
|
-
prev_page: '上一页',
|
243383
|
-
next_page: '下一页',
|
243384
|
-
prev_5: '向前 5 页',
|
243385
|
-
next_5: '向后 5 页',
|
243386
|
-
prev_3: '向前 3 页',
|
243387
|
-
next_3: '向后 3 页',
|
243388
|
-
page_size: '页码'
|
243389
|
-
};
|
243390
|
-
zh_CN$6.default = locale$3;
|
243391
|
-
|
243392
|
-
var zh_CN$5 = {};
|
243393
|
-
|
243394
|
-
var zh_CN$4 = {};
|
243395
|
-
|
243396
|
-
var zh_CN$3 = {};
|
243397
|
-
|
243398
|
-
var objectSpread2 = {exports: {}};
|
243399
|
-
|
243400
|
-
var defineProperty = {exports: {}};
|
243401
|
-
|
243402
|
-
var toPropertyKey = {exports: {}};
|
243403
|
-
|
243404
|
-
var toPrimitive = {exports: {}};
|
243405
|
-
|
243406
|
-
(function (module) {
|
243407
|
-
var _typeof = _typeofExports["default"];
|
243408
|
-
function toPrimitive(t, r) {
|
243409
|
-
if ("object" != _typeof(t) || !t) return t;
|
243410
|
-
var e = t[Symbol.toPrimitive];
|
243411
|
-
if (void 0 !== e) {
|
243412
|
-
var i = e.call(t, r || "default");
|
243413
|
-
if ("object" != _typeof(i)) return i;
|
243414
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
243415
|
-
}
|
243416
|
-
return ("string" === r ? String : Number)(t);
|
243417
|
-
}
|
243418
|
-
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
243419
|
-
} (toPrimitive));
|
243420
|
-
|
243421
|
-
var toPrimitiveExports = toPrimitive.exports;
|
243422
|
-
|
243423
|
-
(function (module) {
|
243424
|
-
var _typeof = _typeofExports["default"];
|
243425
|
-
var toPrimitive = toPrimitiveExports;
|
243426
|
-
function toPropertyKey(t) {
|
243427
|
-
var i = toPrimitive(t, "string");
|
243428
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
243429
|
-
}
|
243430
|
-
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
243431
|
-
} (toPropertyKey));
|
243432
|
-
|
243433
|
-
var toPropertyKeyExports = toPropertyKey.exports;
|
243434
|
-
|
243435
|
-
(function (module) {
|
243436
|
-
var toPropertyKey = toPropertyKeyExports;
|
243437
|
-
function _defineProperty(e, r, t) {
|
243438
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
243439
|
-
value: t,
|
243440
|
-
enumerable: !0,
|
243441
|
-
configurable: !0,
|
243442
|
-
writable: !0
|
243443
|
-
}) : e[r] = t, e;
|
243444
|
-
}
|
243445
|
-
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
243446
|
-
} (defineProperty));
|
243447
|
-
|
243448
|
-
var definePropertyExports = defineProperty.exports;
|
243449
|
-
|
243450
|
-
(function (module) {
|
243451
|
-
var defineProperty = definePropertyExports;
|
243452
|
-
function ownKeys(e, r) {
|
243453
|
-
var t = Object.keys(e);
|
243454
|
-
if (Object.getOwnPropertySymbols) {
|
243455
|
-
var o = Object.getOwnPropertySymbols(e);
|
243456
|
-
r && (o = o.filter(function (r) {
|
243457
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
243458
|
-
})), t.push.apply(t, o);
|
243459
|
-
}
|
243460
|
-
return t;
|
243461
|
-
}
|
243462
|
-
function _objectSpread2(e) {
|
243463
|
-
for (var r = 1; r < arguments.length; r++) {
|
243464
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
243465
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
243466
|
-
defineProperty(e, r, t[r]);
|
243467
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
243468
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
243469
|
-
});
|
243470
|
-
}
|
243471
|
-
return e;
|
243472
|
-
}
|
243473
|
-
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
243474
|
-
} (objectSpread2));
|
243475
|
-
|
243476
|
-
var objectSpread2Exports = objectSpread2.exports;
|
243477
|
-
|
243478
|
-
var common = {};
|
243479
|
-
|
243480
|
-
Object.defineProperty(common, "__esModule", {
|
243481
|
-
value: true
|
243482
|
-
});
|
243483
|
-
common.commonLocale = void 0;
|
243484
|
-
common.commonLocale = {
|
243485
|
-
yearFormat: 'YYYY',
|
243486
|
-
dayFormat: 'D',
|
243487
|
-
cellMeridiemFormat: 'A',
|
243488
|
-
monthBeforeYear: true
|
243489
|
-
};
|
243490
|
-
|
243491
|
-
var _interopRequireDefault$3 = interopRequireDefaultExports.default;
|
243492
|
-
Object.defineProperty(zh_CN$3, "__esModule", {
|
243493
|
-
value: true
|
243494
|
-
});
|
243495
|
-
zh_CN$3.default = void 0;
|
243496
|
-
var _objectSpread2 = _interopRequireDefault$3(objectSpread2Exports);
|
243497
|
-
var _common = common;
|
243498
|
-
var locale$2 = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _common.commonLocale), {}, {
|
243499
|
-
locale: 'zh_CN',
|
243500
|
-
today: '今天',
|
243501
|
-
now: '此刻',
|
243502
|
-
backToToday: '返回今天',
|
243503
|
-
ok: '确定',
|
243504
|
-
timeSelect: '选择时间',
|
243505
|
-
dateSelect: '选择日期',
|
243506
|
-
weekSelect: '选择周',
|
243507
|
-
clear: '清除',
|
243508
|
-
month: '月',
|
243509
|
-
year: '年',
|
243510
|
-
previousMonth: '上个月 (翻页上键)',
|
243511
|
-
nextMonth: '下个月 (翻页下键)',
|
243512
|
-
monthSelect: '选择月份',
|
243513
|
-
yearSelect: '选择年份',
|
243514
|
-
decadeSelect: '选择年代',
|
243515
|
-
previousYear: '上一年 (Control键加左方向键)',
|
243516
|
-
nextYear: '下一年 (Control键加右方向键)',
|
243517
|
-
previousDecade: '上一年代',
|
243518
|
-
nextDecade: '下一年代',
|
243519
|
-
previousCentury: '上一世纪',
|
243520
|
-
nextCentury: '下一世纪',
|
243521
|
-
yearFormat: 'YYYY年',
|
243522
|
-
cellDateFormat: 'D',
|
243523
|
-
monthBeforeYear: false
|
243524
|
-
});
|
243525
|
-
zh_CN$3.default = locale$2;
|
243526
|
-
|
243527
|
-
var zh_CN$2 = {};
|
243528
|
-
|
243529
|
-
Object.defineProperty(zh_CN$2, "__esModule", {
|
243530
|
-
value: true
|
243531
|
-
});
|
243532
|
-
zh_CN$2.default = void 0;
|
243533
|
-
const locale$1 = {
|
243534
|
-
placeholder: '请选择时间',
|
243535
|
-
rangePlaceholder: ['开始时间', '结束时间']
|
243536
|
-
};
|
243537
|
-
zh_CN$2.default = locale$1;
|
243538
|
-
|
243539
|
-
var _interopRequireDefault$2 = interopRequireDefaultExports.default;
|
243540
|
-
Object.defineProperty(zh_CN$4, "__esModule", {
|
243541
|
-
value: true
|
243542
|
-
});
|
243543
|
-
zh_CN$4.default = void 0;
|
243544
|
-
var _zh_CN$2 = _interopRequireDefault$2(zh_CN$3);
|
243545
|
-
var _zh_CN2$1 = _interopRequireDefault$2(zh_CN$2);
|
243546
|
-
// 统一合并为完整的 Locale
|
243547
|
-
const locale = {
|
243548
|
-
lang: Object.assign({
|
243549
|
-
placeholder: '请选择日期',
|
243550
|
-
yearPlaceholder: '请选择年份',
|
243551
|
-
quarterPlaceholder: '请选择季度',
|
243552
|
-
monthPlaceholder: '请选择月份',
|
243553
|
-
weekPlaceholder: '请选择周',
|
243554
|
-
rangePlaceholder: ['开始日期', '结束日期'],
|
243555
|
-
rangeYearPlaceholder: ['开始年份', '结束年份'],
|
243556
|
-
rangeMonthPlaceholder: ['开始月份', '结束月份'],
|
243557
|
-
rangeQuarterPlaceholder: ['开始季度', '结束季度'],
|
243558
|
-
rangeWeekPlaceholder: ['开始周', '结束周']
|
243559
|
-
}, _zh_CN$2.default),
|
243560
|
-
timePickerLocale: Object.assign({}, _zh_CN2$1.default)
|
243561
|
-
};
|
243562
|
-
// should add whitespace between char in Button
|
243563
|
-
locale.lang.ok = '确定';
|
243564
|
-
// All settings at:
|
243565
|
-
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
243566
|
-
zh_CN$4.default = locale;
|
243567
|
-
|
243568
|
-
var _interopRequireDefault$1 = interopRequireDefaultExports.default;
|
243569
|
-
Object.defineProperty(zh_CN$5, "__esModule", {
|
243570
|
-
value: true
|
243571
|
-
});
|
243572
|
-
zh_CN$5.default = void 0;
|
243573
|
-
var _zh_CN$1 = _interopRequireDefault$1(zh_CN$4);
|
243574
|
-
zh_CN$5.default = _zh_CN$1.default;
|
243575
|
-
|
243576
|
-
var _interopRequireDefault = interopRequireDefaultExports.default;
|
243577
|
-
Object.defineProperty(zh_CN$7, "__esModule", {
|
243578
|
-
value: true
|
243579
|
-
});
|
243580
|
-
zh_CN$7.default = void 0;
|
243581
|
-
var _zh_CN = _interopRequireDefault(zh_CN$6);
|
243582
|
-
var _zh_CN2 = _interopRequireDefault(zh_CN$5);
|
243583
|
-
var _zh_CN3 = _interopRequireDefault(zh_CN$4);
|
243584
|
-
var _zh_CN4 = _interopRequireDefault(zh_CN$2);
|
243585
|
-
const typeTemplate = '${label}不是一个有效的${type}';
|
243586
|
-
const localeValues = {
|
243587
|
-
locale: 'zh-cn',
|
243588
|
-
Pagination: _zh_CN.default,
|
243589
|
-
DatePicker: _zh_CN3.default,
|
243590
|
-
TimePicker: _zh_CN4.default,
|
243591
|
-
Calendar: _zh_CN2.default,
|
243592
|
-
// locales for all components
|
243593
|
-
global: {
|
243594
|
-
placeholder: '请选择'
|
243595
|
-
},
|
243596
|
-
Table: {
|
243597
|
-
filterTitle: '筛选',
|
243598
|
-
filterConfirm: '确定',
|
243599
|
-
filterReset: '重置',
|
243600
|
-
filterEmptyText: '无筛选项',
|
243601
|
-
filterCheckall: '全选',
|
243602
|
-
filterSearchPlaceholder: '在筛选项中搜索',
|
243603
|
-
emptyText: '暂无数据',
|
243604
|
-
selectAll: '全选当页',
|
243605
|
-
selectInvert: '反选当页',
|
243606
|
-
selectNone: '清空所有',
|
243607
|
-
selectionAll: '全选所有',
|
243608
|
-
sortTitle: '排序',
|
243609
|
-
expand: '展开行',
|
243610
|
-
collapse: '关闭行',
|
243611
|
-
triggerDesc: '点击降序',
|
243612
|
-
triggerAsc: '点击升序',
|
243613
|
-
cancelSort: '取消排序'
|
243614
|
-
},
|
243615
|
-
Modal: {
|
243616
|
-
okText: '确定',
|
243617
|
-
cancelText: '取消',
|
243618
|
-
justOkText: '知道了'
|
243619
|
-
},
|
243620
|
-
Tour: {
|
243621
|
-
Next: '下一步',
|
243622
|
-
Previous: '上一步',
|
243623
|
-
Finish: '结束导览'
|
243624
|
-
},
|
243625
|
-
Popconfirm: {
|
243626
|
-
cancelText: '取消',
|
243627
|
-
okText: '确定'
|
243628
|
-
},
|
243629
|
-
Transfer: {
|
243630
|
-
titles: ['', ''],
|
243631
|
-
searchPlaceholder: '请输入搜索内容',
|
243632
|
-
itemUnit: '项',
|
243633
|
-
itemsUnit: '项',
|
243634
|
-
remove: '删除',
|
243635
|
-
selectCurrent: '全选当页',
|
243636
|
-
removeCurrent: '删除当页',
|
243637
|
-
selectAll: '全选所有',
|
243638
|
-
deselectAll: '取消全选',
|
243639
|
-
removeAll: '删除全部',
|
243640
|
-
selectInvert: '反选当页'
|
243641
|
-
},
|
243642
|
-
Upload: {
|
243643
|
-
uploading: '文件上传中',
|
243644
|
-
removeFile: '删除文件',
|
243645
|
-
uploadError: '上传错误',
|
243646
|
-
previewFile: '预览文件',
|
243647
|
-
downloadFile: '下载文件'
|
243648
|
-
},
|
243649
|
-
Empty: {
|
243650
|
-
description: '暂无数据'
|
243651
|
-
},
|
243652
|
-
Icon: {
|
243653
|
-
icon: '图标'
|
243654
|
-
},
|
243655
|
-
Text: {
|
243656
|
-
edit: '编辑',
|
243657
|
-
copy: '复制',
|
243658
|
-
copied: '复制成功',
|
243659
|
-
expand: '展开',
|
243660
|
-
collapse: '收起'
|
243661
|
-
},
|
243662
|
-
Form: {
|
243663
|
-
optional: '(可选)',
|
243664
|
-
defaultValidateMessages: {
|
243665
|
-
default: '字段验证错误${label}',
|
243666
|
-
required: '请输入${label}',
|
243667
|
-
enum: '${label}必须是其中一个[${enum}]',
|
243668
|
-
whitespace: '${label}不能为空字符',
|
243669
|
-
date: {
|
243670
|
-
format: '${label}日期格式无效',
|
243671
|
-
parse: '${label}不能转换为日期',
|
243672
|
-
invalid: '${label}是一个无效日期'
|
243673
|
-
},
|
243674
|
-
types: {
|
243675
|
-
string: typeTemplate,
|
243676
|
-
method: typeTemplate,
|
243677
|
-
array: typeTemplate,
|
243678
|
-
object: typeTemplate,
|
243679
|
-
number: typeTemplate,
|
243680
|
-
date: typeTemplate,
|
243681
|
-
boolean: typeTemplate,
|
243682
|
-
integer: typeTemplate,
|
243683
|
-
float: typeTemplate,
|
243684
|
-
regexp: typeTemplate,
|
243685
|
-
email: typeTemplate,
|
243686
|
-
url: typeTemplate,
|
243687
|
-
hex: typeTemplate
|
243688
|
-
},
|
243689
|
-
string: {
|
243690
|
-
len: '${label}须为${len}个字符',
|
243691
|
-
min: '${label}最少${min}个字符',
|
243692
|
-
max: '${label}最多${max}个字符',
|
243693
|
-
range: '${label}须在${min}-${max}字符之间'
|
243694
|
-
},
|
243695
|
-
number: {
|
243696
|
-
len: '${label}必须等于${len}',
|
243697
|
-
min: '${label}最小值为${min}',
|
243698
|
-
max: '${label}最大值为${max}',
|
243699
|
-
range: '${label}须在${min}-${max}之间'
|
243700
|
-
},
|
243701
|
-
array: {
|
243702
|
-
len: '须为${len}个${label}',
|
243703
|
-
min: '最少${min}个${label}',
|
243704
|
-
max: '最多${max}个${label}',
|
243705
|
-
range: '${label}数量须在${min}-${max}之间'
|
243706
|
-
},
|
243707
|
-
pattern: {
|
243708
|
-
mismatch: '${label}与模式不匹配${pattern}'
|
243709
|
-
}
|
243710
|
-
}
|
243711
|
-
},
|
243712
|
-
Image: {
|
243713
|
-
preview: '预览'
|
243714
|
-
},
|
243715
|
-
QRCode: {
|
243716
|
-
expired: '二维码过期',
|
243717
|
-
refresh: '点击刷新',
|
243718
|
-
scanned: '已扫描'
|
243719
|
-
},
|
243720
|
-
ColorPicker: {
|
243721
|
-
presetEmpty: '暂无',
|
243722
|
-
transparent: '无色',
|
243723
|
-
singleColor: '单色',
|
243724
|
-
gradientColor: '渐变色'
|
243725
|
-
}
|
243726
|
-
};
|
243727
|
-
zh_CN$7.default = localeValues;
|
243728
|
-
|
243729
|
-
var zh_CN = zh_CN$7;
|
243730
|
-
|
243731
|
-
var zh_CN$1 = /*@__PURE__*/getDefaultExportFromCjs(zh_CN);
|
243732
|
-
|
243733
243940
|
// import theme from './index';
|
243734
243941
|
dayjs.locale('zh-cn');
|
243735
243942
|
var Provider = function (_a) {
|
243736
243943
|
var children = _a.children, props = __rest$13(_a, ["children"]);
|
243737
|
-
return (React.createElement(
|
243738
|
-
React.createElement(
|
243739
|
-
React.createElement("div", __assign$h({}, props, { className: classNames(props.className, 'icos-desktop-components') }), children))));
|
243944
|
+
return (React.createElement(App, null,
|
243945
|
+
React.createElement("div", __assign$h({}, props, { className: classNames(props.className, 'icos-desktop-components') }), children)));
|
243740
243946
|
};
|
243741
243947
|
|
243742
243948
|
var commonBoxProps = {
|