@jiovan-labs/ant-buddy-pro 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/README.zh-CN.md +55 -0
- package/README.zh-TW.md +55 -0
- package/dist/cjs/field/CountField/index.d.ts +2 -2
- package/dist/cjs/field/LabelField/index.d.ts +2 -2
- package/dist/cjs/field/ThumbToggle/index.d.ts +2 -2
- package/dist/cjs/form/AvatarUpload/index.d.ts +3 -3
- package/dist/cjs/form/AvatarUpload/index.js +6 -3
- package/dist/cjs/form/CronInput/index.js +6 -3
- package/dist/cjs/form/DivideSelect/index.js +17 -15
- package/dist/cjs/form/IconSelect/index.js +31 -23
- package/dist/cjs/form/TagInput/index.d.ts +1 -1
- package/dist/cjs/form/TagInput/index.js +2 -1
- package/dist/cjs/layout/CardTabs/index.js +12 -2
- package/dist/cjs/layout/CardTabs/styles.js +12 -60
- package/dist/cjs/layout/CodePreview/styles.js +0 -48
- package/dist/cjs/layout/MenuTabs/styles.js +0 -48
- package/dist/cjs/layout/SpaceBox/styles.js +5 -2
- package/dist/cjs/type/declaration.d.ts +2 -2
- package/dist/cjs/util/FieldUtils.d.ts +2 -2
- package/dist/cjs/util/PaginationUtils.js +4 -2
- package/dist/esm/field/CountField/index.d.ts +2 -2
- package/dist/esm/field/LabelField/index.d.ts +2 -2
- package/dist/esm/field/ThumbToggle/index.d.ts +2 -2
- package/dist/esm/form/AvatarUpload/index.d.ts +3 -3
- package/dist/esm/form/AvatarUpload/index.js +3 -3
- package/dist/esm/form/CronInput/index.js +3 -3
- package/dist/esm/form/DivideSelect/index.js +22 -16
- package/dist/esm/form/IconSelect/index.js +74 -68
- package/dist/esm/form/TagInput/index.d.ts +1 -1
- package/dist/esm/form/TagInput/index.js +1 -1
- package/dist/esm/layout/CardTabs/index.js +13 -3
- package/dist/esm/layout/CardTabs/styles.js +12 -48
- package/dist/esm/layout/CodePreview/styles.js +3 -40
- package/dist/esm/layout/MenuTabs/styles.js +1 -37
- package/dist/esm/layout/SpaceBox/styles.js +4 -2
- package/dist/esm/type/declaration.d.ts +2 -2
- package/dist/esm/util/FieldUtils.d.ts +2 -2
- package/dist/esm/util/PaginationUtils.js +2 -2
- package/package.json +8 -7
|
@@ -37,7 +37,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
37
37
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
38
38
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
39
39
|
export var IconSelect = function IconSelect(props) {
|
|
40
|
-
var _props$clazzPrefix, _props$tabsProps$claz, _props$tabsProps, _ref2, _props$fieldProps, _props$fieldProps2, _props$
|
|
40
|
+
var _props$clazzPrefix, _props$tabsProps$claz, _props$tabsProps, _ref2, _props$fieldProps, _props$fieldProps2, _props$fieldProps3, _props$fieldProps4, _resolvedClassNames$p, _props$fieldProps39, _props$proFieldProps, _props$proFieldProps2;
|
|
41
41
|
var configContext = React.useContext(ConfigProvider.ConfigContext);
|
|
42
42
|
var editContext = React.useContext(EditOrReadOnlyContext);
|
|
43
43
|
var clazzPrefix = (_props$clazzPrefix = props === null || props === void 0 ? void 0 : props.clazzPrefix) !== null && _props$clazzPrefix !== void 0 ? _props$clazzPrefix : 'abp-icon-select';
|
|
@@ -89,6 +89,12 @@ export var IconSelect = function IconSelect(props) {
|
|
|
89
89
|
setSearchDisabled = _React$useState8[1];
|
|
90
90
|
var searchRef = React.useRef(null);
|
|
91
91
|
var fieldStyle = useFieldStyle(clazzPrefix, subClazzPrefix);
|
|
92
|
+
var userClassNames = props === null || props === void 0 || (_props$fieldProps3 = props.fieldProps) === null || _props$fieldProps3 === void 0 ? void 0 : _props$fieldProps3.classNames;
|
|
93
|
+
var resolvedClassNames = typeof userClassNames === 'function' ? userClassNames({
|
|
94
|
+
props: (_props$fieldProps4 = props === null || props === void 0 ? void 0 : props.fieldProps) !== null && _props$fieldProps4 !== void 0 ? _props$fieldProps4 : {}
|
|
95
|
+
}) : userClassNames;
|
|
96
|
+
var userRootClassName = resolvedClassNames === null || resolvedClassNames === void 0 ? void 0 : resolvedClassNames.root;
|
|
97
|
+
var userPopupRootClassName = resolvedClassNames === null || resolvedClassNames === void 0 || (_resolvedClassNames$p = resolvedClassNames.popup) === null || _resolvedClassNames$p === void 0 ? void 0 : _resolvedClassNames$p.root;
|
|
92
98
|
var handleWindowResize = function handleWindowResize() {
|
|
93
99
|
var inspect = document.querySelector(".".concat(clazzPrefix, "-entry-").concat(fieldId));
|
|
94
100
|
var sponsor = document.querySelector(".".concat(clazzPrefix, "-popup-").concat(fieldId));
|
|
@@ -113,7 +119,7 @@ export var IconSelect = function IconSelect(props) {
|
|
|
113
119
|
var children = [];
|
|
114
120
|
collection.forEach(function (value, key) {
|
|
115
121
|
if (StringUtils.isBlank(searchWord) || StringUtils.includesIgnoreCase(key, searchWord)) {
|
|
116
|
-
var _props$fieldProps$fie, _props$
|
|
122
|
+
var _props$fieldProps$fie, _props$fieldProps5, _props$fieldProps$fie2, _props$fieldProps6;
|
|
117
123
|
var optItem = {};
|
|
118
124
|
var content = /*#__PURE__*/_jsxs(Space, {
|
|
119
125
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
@@ -122,8 +128,8 @@ export var IconSelect = function IconSelect(props) {
|
|
|
122
128
|
children: key
|
|
123
129
|
})]
|
|
124
130
|
});
|
|
125
|
-
ObjectUtils.setProp(optItem, (_props$fieldProps$fie = props === null || props === void 0 || (_props$
|
|
126
|
-
ObjectUtils.setProp(optItem, (_props$fieldProps$fie2 = props === null || props === void 0 || (_props$
|
|
131
|
+
ObjectUtils.setProp(optItem, (_props$fieldProps$fie = props === null || props === void 0 || (_props$fieldProps5 = props.fieldProps) === null || _props$fieldProps5 === void 0 || (_props$fieldProps5 = _props$fieldProps5.fieldNames) === null || _props$fieldProps5 === void 0 ? void 0 : _props$fieldProps5.label) !== null && _props$fieldProps$fie !== void 0 ? _props$fieldProps$fie : 'label', content);
|
|
132
|
+
ObjectUtils.setProp(optItem, (_props$fieldProps$fie2 = props === null || props === void 0 || (_props$fieldProps6 = props.fieldProps) === null || _props$fieldProps6 === void 0 || (_props$fieldProps6 = _props$fieldProps6.fieldNames) === null || _props$fieldProps6 === void 0 ? void 0 : _props$fieldProps6.value) !== null && _props$fieldProps$fie2 !== void 0 ? _props$fieldProps$fie2 : 'value', key);
|
|
127
133
|
children.push(optItem);
|
|
128
134
|
}
|
|
129
135
|
});
|
|
@@ -131,15 +137,15 @@ export var IconSelect = function IconSelect(props) {
|
|
|
131
137
|
return;
|
|
132
138
|
}
|
|
133
139
|
if (optionGroup) {
|
|
134
|
-
var _props$fieldProps$fie3, _props$
|
|
140
|
+
var _props$fieldProps$fie3, _props$fieldProps7, _props$fieldProps$fie4, _props$fieldProps8;
|
|
135
141
|
var themeTitle = ObjectUtils.firstNotNil(ObjectUtils.getProp(props === null || props === void 0 ? void 0 : props.localeProps, "".concat(themeType, "Theme")), intlLocales.get([locale, "".concat(themeType, "Theme")]), intlLocales.get(['en_US', "".concat(themeType, "Theme")]));
|
|
136
142
|
var sceneTitle = ObjectUtils.firstNotNil(ObjectUtils.getProp(props === null || props === void 0 ? void 0 : props.localeProps, "".concat(sceneType, "Scene")), intlLocales.get([locale, "".concat(sceneType, "Scene")]), intlLocales.get(['en_US', "".concat(sceneType, "Scene")]));
|
|
137
143
|
var optGroup = {
|
|
138
144
|
optionType: 'optGroup',
|
|
139
145
|
children: children
|
|
140
146
|
};
|
|
141
|
-
ObjectUtils.setProp(optGroup, (_props$fieldProps$fie3 = props === null || props === void 0 || (_props$
|
|
142
|
-
ObjectUtils.setProp(optGroup, (_props$fieldProps$fie4 = props === null || props === void 0 || (_props$
|
|
147
|
+
ObjectUtils.setProp(optGroup, (_props$fieldProps$fie3 = props === null || props === void 0 || (_props$fieldProps7 = props.fieldProps) === null || _props$fieldProps7 === void 0 || (_props$fieldProps7 = _props$fieldProps7.fieldNames) === null || _props$fieldProps7 === void 0 ? void 0 : _props$fieldProps7.label) !== null && _props$fieldProps$fie3 !== void 0 ? _props$fieldProps$fie3 : 'label', "".concat(themeTitle, "-").concat(sceneTitle));
|
|
148
|
+
ObjectUtils.setProp(optGroup, (_props$fieldProps$fie4 = props === null || props === void 0 || (_props$fieldProps8 = props.fieldProps) === null || _props$fieldProps8 === void 0 || (_props$fieldProps8 = _props$fieldProps8.fieldNames) === null || _props$fieldProps8 === void 0 ? void 0 : _props$fieldProps8.value) !== null && _props$fieldProps$fie4 !== void 0 ? _props$fieldProps$fie4 : 'value', "optGroup-".concat(themeType, "-").concat(sceneType));
|
|
143
149
|
result.push(optGroup);
|
|
144
150
|
} else {
|
|
145
151
|
result.push.apply(result, children);
|
|
@@ -152,18 +158,18 @@ export var IconSelect = function IconSelect(props) {
|
|
|
152
158
|
return buildTextOptions();
|
|
153
159
|
}, [themeTypes, sceneTypes, searchWord]);
|
|
154
160
|
var isIconSelected = function isIconSelected(iconName) {
|
|
155
|
-
var _props$
|
|
161
|
+
var _props$fieldProps10;
|
|
156
162
|
var fieldValue = form === null || form === void 0 ? void 0 : form.getFieldValue(props === null || props === void 0 ? void 0 : props.name);
|
|
157
163
|
if (!fieldValue || StringUtils.isBlank(iconName)) {
|
|
158
164
|
return false;
|
|
159
165
|
}
|
|
160
166
|
if (Array.isArray(fieldValue)) {
|
|
161
167
|
return fieldValue.some(function (item) {
|
|
162
|
-
var _props$
|
|
163
|
-
return props !== null && props !== void 0 && (_props$
|
|
168
|
+
var _props$fieldProps9;
|
|
169
|
+
return props !== null && props !== void 0 && (_props$fieldProps9 = props.fieldProps) !== null && _props$fieldProps9 !== void 0 && _props$fieldProps9.labelInValue ? StringUtils.equalsIgnoreCase(item === null || item === void 0 ? void 0 : item.value, iconName) : StringUtils.equalsIgnoreCase(item, iconName);
|
|
164
170
|
});
|
|
165
171
|
}
|
|
166
|
-
return props !== null && props !== void 0 && (_props$
|
|
172
|
+
return props !== null && props !== void 0 && (_props$fieldProps10 = props.fieldProps) !== null && _props$fieldProps10 !== void 0 && _props$fieldProps10.labelInValue ? StringUtils.equalsIgnoreCase(fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.value, iconName) : StringUtils.equalsIgnoreCase(fieldValue, iconName);
|
|
167
173
|
};
|
|
168
174
|
var clearIconsBadge = function clearIconsBadge() {
|
|
169
175
|
var inspects = document.querySelectorAll("[data-icon-select-popup-wrapper='".concat(fieldId, "'] [data-icon-select-option]"));
|
|
@@ -189,58 +195,58 @@ export var IconSelect = function IconSelect(props) {
|
|
|
189
195
|
return;
|
|
190
196
|
}
|
|
191
197
|
if (isIconSelected(iconName)) {
|
|
192
|
-
var _props$
|
|
198
|
+
var _props$fieldProps11, _props$fieldProps12;
|
|
193
199
|
changeIconBadge(iconName, false);
|
|
194
|
-
if ((props === null || props === void 0 || (_props$
|
|
195
|
-
var _props$
|
|
196
|
-
props === null || props === void 0 || (_props$
|
|
200
|
+
if ((props === null || props === void 0 || (_props$fieldProps11 = props.fieldProps) === null || _props$fieldProps11 === void 0 ? void 0 : _props$fieldProps11.mode) === 'multiple' || (props === null || props === void 0 || (_props$fieldProps12 = props.fieldProps) === null || _props$fieldProps12 === void 0 ? void 0 : _props$fieldProps12.mode) === 'tags') {
|
|
201
|
+
var _props$fieldProps13, _props$fieldProps13$o;
|
|
202
|
+
props === null || props === void 0 || (_props$fieldProps13 = props.fieldProps) === null || _props$fieldProps13 === void 0 || (_props$fieldProps13$o = _props$fieldProps13.onDeselect) === null || _props$fieldProps13$o === void 0 || _props$fieldProps13$o.call(_props$fieldProps13, iconName, {
|
|
197
203
|
label: iconName,
|
|
198
204
|
value: iconName
|
|
199
205
|
});
|
|
200
206
|
var fieldValue = form === null || form === void 0 ? void 0 : form.getFieldValue(props === null || props === void 0 ? void 0 : props.name);
|
|
201
207
|
if (fieldValue) {
|
|
202
|
-
var _props$
|
|
203
|
-
var result = !(props !== null && props !== void 0 && (_props$
|
|
208
|
+
var _props$fieldProps14, _props$fieldProps15, _props$fieldProps15$o;
|
|
209
|
+
var result = !(props !== null && props !== void 0 && (_props$fieldProps14 = props.fieldProps) !== null && _props$fieldProps14 !== void 0 && _props$fieldProps14.labelInValue) ? fieldValue.filter(function (item) {
|
|
204
210
|
return !StringUtils.equalsIgnoreCase(item, iconName);
|
|
205
211
|
}) : fieldValue.filter(function (item) {
|
|
206
212
|
return !StringUtils.equalsIgnoreCase(item === null || item === void 0 ? void 0 : item.value, iconName);
|
|
207
213
|
});
|
|
208
214
|
if (form && props !== null && props !== void 0 && props.name) {
|
|
209
215
|
form.setFieldValue(props.name, result);
|
|
210
|
-
form.validateFields([props.name]);
|
|
216
|
+
form.validateFields([props.name]).then(function () {});
|
|
211
217
|
}
|
|
212
|
-
props === null || props === void 0 || (_props$
|
|
218
|
+
props === null || props === void 0 || (_props$fieldProps15 = props.fieldProps) === null || _props$fieldProps15 === void 0 || (_props$fieldProps15$o = _props$fieldProps15.onChange) === null || _props$fieldProps15$o === void 0 || _props$fieldProps15$o.call(_props$fieldProps15, result, {
|
|
213
219
|
label: iconName,
|
|
214
220
|
value: iconName
|
|
215
221
|
});
|
|
216
222
|
} else {
|
|
217
|
-
var _props$
|
|
223
|
+
var _props$fieldProps16, _props$fieldProps16$o;
|
|
218
224
|
if (form && props !== null && props !== void 0 && props.name) {
|
|
219
225
|
form.setFieldValue(props.name, undefined);
|
|
220
|
-
form.validateFields([props.name]);
|
|
226
|
+
form.validateFields([props.name]).then(function () {});
|
|
221
227
|
}
|
|
222
|
-
props === null || props === void 0 || (_props$
|
|
228
|
+
props === null || props === void 0 || (_props$fieldProps16 = props.fieldProps) === null || _props$fieldProps16 === void 0 || (_props$fieldProps16$o = _props$fieldProps16.onChange) === null || _props$fieldProps16$o === void 0 || _props$fieldProps16$o.call(_props$fieldProps16, undefined, {
|
|
223
229
|
label: iconName,
|
|
224
230
|
value: iconName
|
|
225
231
|
});
|
|
226
232
|
}
|
|
227
233
|
} else {
|
|
228
|
-
var _props$
|
|
234
|
+
var _props$fieldProps17, _props$fieldProps17$o;
|
|
229
235
|
if (form && props !== null && props !== void 0 && props.name) {
|
|
230
236
|
form.setFieldValue(props.name, undefined);
|
|
231
|
-
form.validateFields([props.name]);
|
|
237
|
+
form.validateFields([props.name]).then(function () {});
|
|
232
238
|
}
|
|
233
|
-
props === null || props === void 0 || (_props$
|
|
239
|
+
props === null || props === void 0 || (_props$fieldProps17 = props.fieldProps) === null || _props$fieldProps17 === void 0 || (_props$fieldProps17$o = _props$fieldProps17.onChange) === null || _props$fieldProps17$o === void 0 || _props$fieldProps17$o.call(_props$fieldProps17, undefined, {
|
|
234
240
|
label: iconName,
|
|
235
241
|
value: iconName
|
|
236
242
|
});
|
|
237
243
|
setDropdownOpen(false);
|
|
238
244
|
}
|
|
239
245
|
} else {
|
|
240
|
-
var _props$
|
|
241
|
-
if ((props === null || props === void 0 || (_props$
|
|
242
|
-
var _props$
|
|
243
|
-
props === null || props === void 0 || (_props$
|
|
246
|
+
var _props$fieldProps18, _props$fieldProps19, _props$fieldProps21, _props$fieldProps22, _props$fieldProps32, _props$fieldProps33;
|
|
247
|
+
if ((props === null || props === void 0 || (_props$fieldProps18 = props.fieldProps) === null || _props$fieldProps18 === void 0 ? void 0 : _props$fieldProps18.mode) === 'multiple' || (props === null || props === void 0 || (_props$fieldProps19 = props.fieldProps) === null || _props$fieldProps19 === void 0 ? void 0 : _props$fieldProps19.mode) === 'tags') {
|
|
248
|
+
var _props$fieldProps20, _props$fieldProps20$o;
|
|
249
|
+
props === null || props === void 0 || (_props$fieldProps20 = props.fieldProps) === null || _props$fieldProps20 === void 0 || (_props$fieldProps20$o = _props$fieldProps20.onSelect) === null || _props$fieldProps20$o === void 0 || _props$fieldProps20$o.call(_props$fieldProps20, iconName, {
|
|
244
250
|
label: iconName,
|
|
245
251
|
value: iconName
|
|
246
252
|
});
|
|
@@ -249,10 +255,10 @@ export var IconSelect = function IconSelect(props) {
|
|
|
249
255
|
}
|
|
250
256
|
changeIconBadge(iconName, true);
|
|
251
257
|
var _fieldValue = form === null || form === void 0 ? void 0 : form.getFieldValue(props === null || props === void 0 ? void 0 : props.name);
|
|
252
|
-
if (_fieldValue && ((props === null || props === void 0 || (_props$
|
|
253
|
-
var _props$
|
|
254
|
-
if (props !== null && props !== void 0 && (_props$
|
|
255
|
-
var _props$
|
|
258
|
+
if (_fieldValue && ((props === null || props === void 0 || (_props$fieldProps21 = props.fieldProps) === null || _props$fieldProps21 === void 0 ? void 0 : _props$fieldProps21.mode) === 'multiple' || (props === null || props === void 0 || (_props$fieldProps22 = props.fieldProps) === null || _props$fieldProps22 === void 0 ? void 0 : _props$fieldProps22.mode) === 'tags')) {
|
|
259
|
+
var _props$fieldProps23;
|
|
260
|
+
if (props !== null && props !== void 0 && (_props$fieldProps23 = props.fieldProps) !== null && _props$fieldProps23 !== void 0 && _props$fieldProps23.labelInValue) {
|
|
261
|
+
var _props$fieldProps24, _props$fieldProps24$o;
|
|
256
262
|
var value = {
|
|
257
263
|
label: iconName,
|
|
258
264
|
value: iconName
|
|
@@ -260,48 +266,48 @@ export var IconSelect = function IconSelect(props) {
|
|
|
260
266
|
var newValue = [].concat(_toConsumableArray(_fieldValue), [value]);
|
|
261
267
|
if (form && props !== null && props !== void 0 && props.name) {
|
|
262
268
|
form.setFieldValue(props.name, newValue);
|
|
263
|
-
form.validateFields([props.name]);
|
|
269
|
+
form.validateFields([props.name]).then(function () {});
|
|
264
270
|
}
|
|
265
|
-
props === null || props === void 0 || (_props$
|
|
271
|
+
props === null || props === void 0 || (_props$fieldProps24 = props.fieldProps) === null || _props$fieldProps24 === void 0 || (_props$fieldProps24$o = _props$fieldProps24.onChange) === null || _props$fieldProps24$o === void 0 || _props$fieldProps24$o.call(_props$fieldProps24, newValue, {
|
|
266
272
|
label: iconName,
|
|
267
273
|
value: iconName
|
|
268
274
|
});
|
|
269
275
|
} else {
|
|
270
|
-
var _props$
|
|
276
|
+
var _props$fieldProps25, _props$fieldProps25$o;
|
|
271
277
|
var _newValue = [].concat(_toConsumableArray(_fieldValue), [iconName]);
|
|
272
278
|
if (form && props !== null && props !== void 0 && props.name) {
|
|
273
279
|
form.setFieldValue(props.name, _newValue);
|
|
274
|
-
form.validateFields([props.name]);
|
|
280
|
+
form.validateFields([props.name]).then(function () {});
|
|
275
281
|
}
|
|
276
|
-
props === null || props === void 0 || (_props$
|
|
282
|
+
props === null || props === void 0 || (_props$fieldProps25 = props.fieldProps) === null || _props$fieldProps25 === void 0 || (_props$fieldProps25$o = _props$fieldProps25.onChange) === null || _props$fieldProps25$o === void 0 || _props$fieldProps25$o.call(_props$fieldProps25, _newValue, {
|
|
277
283
|
label: iconName,
|
|
278
284
|
value: iconName
|
|
279
285
|
});
|
|
280
286
|
}
|
|
281
287
|
} else {
|
|
282
|
-
var _props$
|
|
288
|
+
var _props$fieldProps26, _props$fieldProps31, _props$fieldProps31$o;
|
|
283
289
|
var _newValue2;
|
|
284
|
-
if (props !== null && props !== void 0 && (_props$
|
|
285
|
-
var _props$
|
|
290
|
+
if (props !== null && props !== void 0 && (_props$fieldProps26 = props.fieldProps) !== null && _props$fieldProps26 !== void 0 && _props$fieldProps26.labelInValue) {
|
|
291
|
+
var _props$fieldProps27, _props$fieldProps28;
|
|
286
292
|
var _value = {
|
|
287
293
|
label: iconName,
|
|
288
294
|
value: iconName
|
|
289
295
|
};
|
|
290
|
-
_newValue2 = (props === null || props === void 0 || (_props$
|
|
296
|
+
_newValue2 = (props === null || props === void 0 || (_props$fieldProps27 = props.fieldProps) === null || _props$fieldProps27 === void 0 ? void 0 : _props$fieldProps27.mode) === 'multiple' || (props === null || props === void 0 || (_props$fieldProps28 = props.fieldProps) === null || _props$fieldProps28 === void 0 ? void 0 : _props$fieldProps28.mode) === 'tags' ? [_value] : _value;
|
|
291
297
|
} else {
|
|
292
|
-
var _props$
|
|
293
|
-
_newValue2 = (props === null || props === void 0 || (_props$
|
|
298
|
+
var _props$fieldProps29, _props$fieldProps30;
|
|
299
|
+
_newValue2 = (props === null || props === void 0 || (_props$fieldProps29 = props.fieldProps) === null || _props$fieldProps29 === void 0 ? void 0 : _props$fieldProps29.mode) === 'multiple' || (props === null || props === void 0 || (_props$fieldProps30 = props.fieldProps) === null || _props$fieldProps30 === void 0 ? void 0 : _props$fieldProps30.mode) === 'tags' ? [iconName] : iconName;
|
|
294
300
|
}
|
|
295
301
|
if (form && props !== null && props !== void 0 && props.name) {
|
|
296
302
|
form.setFieldValue(props.name, _newValue2);
|
|
297
|
-
form.validateFields([props.name]);
|
|
303
|
+
form.validateFields([props.name]).then(function () {});
|
|
298
304
|
}
|
|
299
|
-
props === null || props === void 0 || (_props$
|
|
305
|
+
props === null || props === void 0 || (_props$fieldProps31 = props.fieldProps) === null || _props$fieldProps31 === void 0 || (_props$fieldProps31$o = _props$fieldProps31.onChange) === null || _props$fieldProps31$o === void 0 || _props$fieldProps31$o.call(_props$fieldProps31, _newValue2, {
|
|
300
306
|
label: iconName,
|
|
301
307
|
value: iconName
|
|
302
308
|
});
|
|
303
309
|
}
|
|
304
|
-
if ((props === null || props === void 0 || (_props$
|
|
310
|
+
if ((props === null || props === void 0 || (_props$fieldProps32 = props.fieldProps) === null || _props$fieldProps32 === void 0 ? void 0 : _props$fieldProps32.mode) !== 'multiple' && (props === null || props === void 0 || (_props$fieldProps33 = props.fieldProps) === null || _props$fieldProps33 === void 0 ? void 0 : _props$fieldProps33.mode) !== 'tags') {
|
|
305
311
|
setDropdownOpen(false);
|
|
306
312
|
}
|
|
307
313
|
}
|
|
@@ -348,10 +354,10 @@ export var IconSelect = function IconSelect(props) {
|
|
|
348
354
|
};
|
|
349
355
|
var wrapIconOptions = function wrapIconOptions(content) {
|
|
350
356
|
if (!content) {
|
|
351
|
-
var _props$fieldProps$not, _props$
|
|
357
|
+
var _props$fieldProps$not, _props$fieldProps34;
|
|
352
358
|
return /*#__PURE__*/_jsx("div", {
|
|
353
359
|
className: "".concat(clazzPrefix, "-search-mismatch"),
|
|
354
|
-
children: (_props$fieldProps$not = props === null || props === void 0 || (_props$
|
|
360
|
+
children: (_props$fieldProps$not = props === null || props === void 0 || (_props$fieldProps34 = props.fieldProps) === null || _props$fieldProps34 === void 0 ? void 0 : _props$fieldProps34.notFoundContent) !== null && _props$fieldProps$not !== void 0 ? _props$fieldProps$not : /*#__PURE__*/_jsx(Empty, {
|
|
355
361
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
356
362
|
})
|
|
357
363
|
});
|
|
@@ -384,8 +390,8 @@ export var IconSelect = function IconSelect(props) {
|
|
|
384
390
|
});
|
|
385
391
|
},
|
|
386
392
|
onScroll: function onScroll(event) {
|
|
387
|
-
var _props$
|
|
388
|
-
props === null || props === void 0 || (_props$
|
|
393
|
+
var _props$fieldProps35, _props$fieldProps35$o;
|
|
394
|
+
props === null || props === void 0 || (_props$fieldProps35 = props.fieldProps) === null || _props$fieldProps35 === void 0 || (_props$fieldProps35$o = _props$fieldProps35.onPopupScroll) === null || _props$fieldProps35$o === void 0 || _props$fieldProps35$o.call(_props$fieldProps35, event);
|
|
389
395
|
},
|
|
390
396
|
children: content
|
|
391
397
|
});
|
|
@@ -410,12 +416,12 @@ export var IconSelect = function IconSelect(props) {
|
|
|
410
416
|
if (!classified || !classified.length || classified.every(function (item) {
|
|
411
417
|
return ObjectUtils.isNil(item);
|
|
412
418
|
})) {
|
|
413
|
-
var _props$fieldProps$not2, _props$
|
|
419
|
+
var _props$fieldProps$not2, _props$fieldProps36;
|
|
414
420
|
return [{
|
|
415
421
|
key: "".concat(themeType, "-all"),
|
|
416
422
|
children: /*#__PURE__*/_jsx("div", {
|
|
417
423
|
className: "".concat(clazzPrefix, "-search-mismatch"),
|
|
418
|
-
children: (_props$fieldProps$not2 = props === null || props === void 0 || (_props$
|
|
424
|
+
children: (_props$fieldProps$not2 = props === null || props === void 0 || (_props$fieldProps36 = props.fieldProps) === null || _props$fieldProps36 === void 0 ? void 0 : _props$fieldProps36.notFoundContent) !== null && _props$fieldProps$not2 !== void 0 ? _props$fieldProps$not2 : /*#__PURE__*/_jsx(Empty, {
|
|
419
425
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
420
426
|
})
|
|
421
427
|
})
|
|
@@ -522,7 +528,7 @@ export var IconSelect = function IconSelect(props) {
|
|
|
522
528
|
}
|
|
523
529
|
};
|
|
524
530
|
var handleOptionDeselect = function handleOptionDeselect(value, option) {
|
|
525
|
-
var _props$
|
|
531
|
+
var _props$fieldProps37, _props$fieldProps37$o;
|
|
526
532
|
if (optionMode === 'icon') {
|
|
527
533
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
528
534
|
changeIconBadge(value, false);
|
|
@@ -530,24 +536,24 @@ export var IconSelect = function IconSelect(props) {
|
|
|
530
536
|
changeIconBadge(value === null || value === void 0 ? void 0 : value.value, false);
|
|
531
537
|
}
|
|
532
538
|
}
|
|
533
|
-
props === null || props === void 0 || (_props$
|
|
539
|
+
props === null || props === void 0 || (_props$fieldProps37 = props.fieldProps) === null || _props$fieldProps37 === void 0 || (_props$fieldProps37$o = _props$fieldProps37.onDeselect) === null || _props$fieldProps37$o === void 0 || _props$fieldProps37$o.call(_props$fieldProps37, value, option);
|
|
534
540
|
};
|
|
535
541
|
var handleDropdownOpenChange = function handleDropdownOpenChange(open) {
|
|
536
|
-
var _props$
|
|
542
|
+
var _props$fieldProps38, _props$fieldProps38$o;
|
|
537
543
|
setDropdownOpen(open);
|
|
538
|
-
props === null || props === void 0 || (_props$
|
|
544
|
+
props === null || props === void 0 || (_props$fieldProps38 = props.fieldProps) === null || _props$fieldProps38 === void 0 || (_props$fieldProps38$o = _props$fieldProps38.onOpenChange) === null || _props$fieldProps38$o === void 0 || _props$fieldProps38$o.call(_props$fieldProps38, open);
|
|
539
545
|
};
|
|
540
|
-
var entryImmutable = editContext.mode === 'read' || (props === null || props === void 0 || (_props$
|
|
546
|
+
var entryImmutable = editContext.mode === 'read' || (props === null || props === void 0 || (_props$fieldProps39 = props.fieldProps) === null || _props$fieldProps39 === void 0 ? void 0 : _props$fieldProps39.disabled) || (props === null || props === void 0 || (_props$proFieldProps = props.proFieldProps) === null || _props$proFieldProps === void 0 ? void 0 : _props$proFieldProps.mode) === 'read' || (props === null || props === void 0 || (_props$proFieldProps2 = props.proFieldProps) === null || _props$proFieldProps2 === void 0 ? void 0 : _props$proFieldProps2.readonly);
|
|
541
547
|
var omitFieldProps = !(props !== null && props !== void 0 && props.fieldProps) ? {} : omit(props === null || props === void 0 ? void 0 : props.fieldProps, ['classNames', 'disabled', 'open', 'virtual', 'onClear', 'onDeselect', 'onOpenChange']);
|
|
542
548
|
if (proField) {
|
|
543
|
-
var _props$
|
|
549
|
+
var _props$fieldProps$vir, _props$fieldProps40;
|
|
544
550
|
var restProps = !props ? {} : omit(props, ['fieldProps', 'clazzPrefix', 'optionMode', 'optionGroup', 'proField', 'tabsProps', 'themeTypes', 'defaultThemeType', 'themeInkBar', 'sceneTypes', 'defaultSceneType', 'sceneInkBar', 'sceneEntryWidth', 'optionWrapperClazz', 'optionWrapperStyle', 'optionIconClazz', 'optionIconStyle', 'searchBox', 'tooltipCtrl', 'tooltipProps', 'locale', 'localeProps']);
|
|
545
551
|
return /*#__PURE__*/_jsx(ProFormSelect, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
546
552
|
fieldProps: _objectSpread(_objectSpread({
|
|
547
553
|
classNames: {
|
|
548
|
-
root: classnames(clazzPrefix, "".concat(clazzPrefix, "-entry-").concat(fieldId),
|
|
554
|
+
root: classnames(clazzPrefix, "".concat(clazzPrefix, "-entry-").concat(fieldId), userRootClassName),
|
|
549
555
|
popup: {
|
|
550
|
-
root: classnames("".concat(clazzPrefix, "-popup"), fieldStyle.hashId, "".concat(clazzPrefix, "-popup-").concat(fieldId),
|
|
556
|
+
root: classnames("".concat(clazzPrefix, "-popup"), fieldStyle.hashId, "".concat(clazzPrefix, "-popup-").concat(fieldId), userPopupRootClassName)
|
|
551
557
|
}
|
|
552
558
|
},
|
|
553
559
|
disabled: entryImmutable,
|
|
@@ -566,33 +572,33 @@ export var IconSelect = function IconSelect(props) {
|
|
|
566
572
|
})
|
|
567
573
|
}));
|
|
568
574
|
} else {
|
|
569
|
-
var
|
|
575
|
+
var _StringUtils$join, _props$fieldProps41, _props$fieldProps$vir2, _props$fieldProps42;
|
|
570
576
|
var _restProps = omit(omitFieldProps, ['id', 'placeholder', 'onChange']);
|
|
571
577
|
return /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({
|
|
572
578
|
classNames: {
|
|
573
|
-
root: classnames(clazzPrefix, "".concat(clazzPrefix, "-entry-").concat(fieldId),
|
|
579
|
+
root: classnames(clazzPrefix, "".concat(clazzPrefix, "-entry-").concat(fieldId), userRootClassName),
|
|
574
580
|
popup: {
|
|
575
|
-
root: classnames("".concat(clazzPrefix, "-popup"), fieldStyle.hashId, "".concat(clazzPrefix, "-popup-").concat(fieldId),
|
|
581
|
+
root: classnames("".concat(clazzPrefix, "-popup"), fieldStyle.hashId, "".concat(clazzPrefix, "-popup-").concat(fieldId), userPopupRootClassName)
|
|
576
582
|
}
|
|
577
583
|
},
|
|
578
|
-
placeholder: (_StringUtils$join = StringUtils.join(props === null || props === void 0 ? void 0 : props.placeholder)) !== null && _StringUtils$join !== void 0 ? _StringUtils$join : props === null || props === void 0 || (_props$
|
|
584
|
+
placeholder: (_StringUtils$join = StringUtils.join(props === null || props === void 0 ? void 0 : props.placeholder)) !== null && _StringUtils$join !== void 0 ? _StringUtils$join : props === null || props === void 0 || (_props$fieldProps41 = props.fieldProps) === null || _props$fieldProps41 === void 0 ? void 0 : _props$fieldProps41.placeholder,
|
|
579
585
|
disabled: entryImmutable,
|
|
580
586
|
popupRender: optionMode === 'text' || !themeTypes || !sceneTypes || entryImmutable ? undefined : function () {
|
|
581
587
|
return renderDropdown();
|
|
582
588
|
},
|
|
583
589
|
options: textOptions,
|
|
584
|
-
virtual: (_props$fieldProps$vir2 = props === null || props === void 0 || (_props$
|
|
590
|
+
virtual: (_props$fieldProps$vir2 = props === null || props === void 0 || (_props$fieldProps42 = props.fieldProps) === null || _props$fieldProps42 === void 0 ? void 0 : _props$fieldProps42.virtual) !== null && _props$fieldProps$vir2 !== void 0 ? _props$fieldProps$vir2 : false,
|
|
585
591
|
open: dropdownOpen,
|
|
586
592
|
showSearch: false,
|
|
587
593
|
onClear: handleOptionClear,
|
|
588
594
|
onDeselect: handleOptionDeselect,
|
|
589
595
|
onOpenChange: handleDropdownOpenChange,
|
|
590
596
|
onChange: function onChange(event) {
|
|
591
|
-
var _props$
|
|
597
|
+
var _props$fieldProps43, _props$fieldProps43$o;
|
|
592
598
|
if (props !== null && props !== void 0 && props.name) {
|
|
593
599
|
form === null || form === void 0 || form.setFieldValue(props.name, event.target.value);
|
|
594
600
|
}
|
|
595
|
-
props === null || props === void 0 || (_props$
|
|
601
|
+
props === null || props === void 0 || (_props$fieldProps43 = props.fieldProps) === null || _props$fieldProps43 === void 0 || (_props$fieldProps43$o = _props$fieldProps43.onChange) === null || _props$fieldProps43$o === void 0 || _props$fieldProps43$o.call(_props$fieldProps43, event);
|
|
596
602
|
}
|
|
597
603
|
}, _restProps), {}, {
|
|
598
604
|
"data-icon-select-id": fieldId
|
|
@@ -36,7 +36,7 @@ export type TagInputProps = Omit<ProFormFieldItemProps, 'children' | 'fieldRef'
|
|
|
36
36
|
locale?: string;
|
|
37
37
|
localeProps?: IntlLocaleProps;
|
|
38
38
|
};
|
|
39
|
-
export declare const TagInput: React.ForwardRefExoticComponent<Omit<ProFormFieldItemProps, "children" | "disabled" | "
|
|
39
|
+
export declare const TagInput: React.ForwardRefExoticComponent<Omit<ProFormFieldItemProps, "children" | "disabled" | "fieldProps" | "placeholder" | "readonly" | "fieldRef"> & Omit<ProFormFieldRemoteProps, "request" | "valueEnum"> & {
|
|
40
40
|
clazzPrefix?: string | undefined;
|
|
41
41
|
containerClazz?: string | undefined;
|
|
42
42
|
containerStyle?: React.CSSProperties | undefined;
|
|
@@ -242,7 +242,7 @@ var TagInputField = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
242
242
|
_setTagContents(_contents);
|
|
243
243
|
} else {
|
|
244
244
|
if (warnExists && !proField) {
|
|
245
|
-
messageInvoker.warning(ObjectUtils.firstNotNil(props === null || props === void 0 || (_props$localeProps = props.localeProps) === null || _props$localeProps === void 0 ? void 0 : _props$localeProps.tagExists, intlLocales.get([locale, 'tagExists']), intlLocales.get(['en_US', 'tagExists'])));
|
|
245
|
+
messageInvoker.warning(ObjectUtils.firstNotNil(props === null || props === void 0 || (_props$localeProps = props.localeProps) === null || _props$localeProps === void 0 ? void 0 : _props$localeProps.tagExists, intlLocales.get([locale, 'tagExists']), intlLocales.get(['en_US', 'tagExists']))).then(function () {});
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -27,6 +27,14 @@ export var CardTabs = function CardTabs(props) {
|
|
|
27
27
|
_ref$presetStyle = _ref.presetStyle,
|
|
28
28
|
presetStyle = _ref$presetStyle === void 0 ? 'padding-md' : _ref$presetStyle;
|
|
29
29
|
var fieldStyle = useFieldStyle(clazzPrefix);
|
|
30
|
+
var paneClassName = presetStyle ? "".concat(clazzPrefix, "-pane-").concat(presetStyle) : undefined;
|
|
31
|
+
var userClassNames = props === null || props === void 0 ? void 0 : props.classNames;
|
|
32
|
+
var tabsClassNames = function tabsClassNames(info) {
|
|
33
|
+
var resolved = typeof userClassNames === 'function' ? userClassNames(info) : userClassNames;
|
|
34
|
+
return _objectSpread(_objectSpread({}, resolved), {}, {
|
|
35
|
+
content: classnames(resolved === null || resolved === void 0 ? void 0 : resolved.content, paneClassName, paneClassName && fieldStyle.hashId)
|
|
36
|
+
});
|
|
37
|
+
};
|
|
30
38
|
var detectTabSize = function detectTabSize() {
|
|
31
39
|
return size === 'extra-small' ? 'small' : size;
|
|
32
40
|
};
|
|
@@ -40,15 +48,17 @@ export var CardTabs = function CardTabs(props) {
|
|
|
40
48
|
return tabPlacement;
|
|
41
49
|
}
|
|
42
50
|
};
|
|
43
|
-
var restTabsProps = !props ? {} : omit(props, ['className', 'clazzPrefix', 'containerClazz', 'containerStyle', 'tabBorder', 'tabPlacement', 'contentBorder', 'inkBar', 'presetStyle', 'type', 'size']);
|
|
51
|
+
var restTabsProps = !props ? {} : omit(props, ['className', 'classNames', 'clazzPrefix', 'containerClazz', 'containerStyle', 'tabBorder', 'tabPlacement', 'contentBorder', 'inkBar', 'presetStyle', 'type', 'size']);
|
|
44
52
|
return /*#__PURE__*/_jsx("div", {
|
|
45
53
|
className: classnames(clazzPrefix, fieldStyle.hashId, "".concat(clazzPrefix, "-").concat(size), "".concat(clazzPrefix, "-").concat(tabPlacement), !presetStyle ? undefined : "".concat(clazzPrefix, "-").concat(presetStyle), props === null || props === void 0 ? void 0 : props.containerClazz),
|
|
46
54
|
style: props === null || props === void 0 ? void 0 : props.containerStyle,
|
|
47
|
-
children: /*#__PURE__*/_jsx(Tabs, _objectSpread({
|
|
55
|
+
children: /*#__PURE__*/_jsx(Tabs, _objectSpread(_objectSpread({
|
|
48
56
|
className: classnames(props === null || props === void 0 ? void 0 : props.className, "".concat(clazzPrefix, "-tab-border").concat(tabBorder ? '' : '-off'), !contentBorder ? undefined : "".concat(clazzPrefix, "-content-border"), !inkBar ? undefined : "".concat(clazzPrefix, "-ink-bar")),
|
|
49
57
|
type: (_props$type = props === null || props === void 0 ? void 0 : props.type) !== null && _props$type !== void 0 ? _props$type : 'card',
|
|
50
58
|
size: detectTabSize(),
|
|
51
59
|
tabPlacement: detectTabPlacement()
|
|
52
|
-
}, restTabsProps)
|
|
60
|
+
}, restTabsProps), {}, {
|
|
61
|
+
classNames: tabsClassNames
|
|
62
|
+
}))
|
|
53
63
|
});
|
|
54
64
|
};
|
|
@@ -25,7 +25,7 @@ var buildFieldStyle = function buildFieldStyle(token) {
|
|
|
25
25
|
borderLeft: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
26
26
|
borderRight: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
27
27
|
borderTop: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit)
|
|
28
|
-
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-
|
|
28
|
+
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-body-holder > ").concat(token.antCls, "-tabs-body"), {
|
|
29
29
|
border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
30
30
|
borderRadius: "0 ".concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px"),
|
|
31
31
|
marginTop: -1
|
|
@@ -35,7 +35,7 @@ var buildFieldStyle = function buildFieldStyle(token) {
|
|
|
35
35
|
borderLeft: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
36
36
|
borderRight: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
37
37
|
borderBottom: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit)
|
|
38
|
-
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-
|
|
38
|
+
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-body-holder > ").concat(token.antCls, "-tabs-body"), {
|
|
39
39
|
border: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
40
40
|
borderRadius: "".concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px 0"),
|
|
41
41
|
marginBottom: -1
|
|
@@ -43,7 +43,7 @@ var buildFieldStyle = function buildFieldStyle(token) {
|
|
|
43
43
|
borderLeft: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
44
44
|
borderTop: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
45
45
|
borderBottom: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit)
|
|
46
|
-
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-
|
|
46
|
+
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-body-holder > ").concat(token.antCls, "-tabs-body"), {
|
|
47
47
|
borderRight: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
48
48
|
borderTop: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
49
49
|
borderBottom: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
@@ -52,69 +52,33 @@ var buildFieldStyle = function buildFieldStyle(token) {
|
|
|
52
52
|
borderRight: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
53
53
|
borderTop: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
54
54
|
borderBottom: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit)
|
|
55
|
-
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-
|
|
55
|
+
}), "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-body-holder > ").concat(token.antCls, "-tabs-body"), {
|
|
56
56
|
borderLeft: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
57
57
|
borderTop: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
58
58
|
borderBottom: "".concat(unit(token.lineWidth), " ").concat(token.lineType, " ").concat(token.colorSplit),
|
|
59
59
|
borderRadius: "".concat(token.borderRadiusLG, "px 0 ").concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px")
|
|
60
|
-
}))), "&".concat(token.componentCls, "-top-end"), _defineProperty({}, "> ".concat(token.antCls, "-tabs"), _defineProperty({}, "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-
|
|
60
|
+
}))), "&".concat(token.componentCls, "-top-end"), _defineProperty({}, "> ".concat(token.antCls, "-tabs"), _defineProperty({}, "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-body-holder > ").concat(token.antCls, "-tabs-body"), {
|
|
61
61
|
borderRadius: "".concat(token.borderRadiusLG, "px 0 ").concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px"),
|
|
62
62
|
marginTop: -1
|
|
63
|
-
}))), "&".concat(token.componentCls, "-bottom-end"), _defineProperty({}, "> ".concat(token.antCls, "-tabs"), _defineProperty({}, "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-
|
|
63
|
+
}))), "&".concat(token.componentCls, "-bottom-end"), _defineProperty({}, "> ".concat(token.antCls, "-tabs"), _defineProperty({}, "&".concat(token.componentCls, "-content-border > ").concat(token.antCls, "-tabs-body-holder > ").concat(token.antCls, "-tabs-body"), {
|
|
64
64
|
borderRadius: "".concat(token.borderRadiusLG, "px ").concat(token.borderRadiusLG, "px 0 ").concat(token.borderRadiusLG, "px"),
|
|
65
65
|
marginBottom: -1
|
|
66
66
|
}))), "&".concat(token.componentCls, "-top-end, &").concat(token.componentCls, "-bottom-end"), _defineProperty({}, "> ".concat(token.antCls, "-tabs:not(").concat(token.antCls, "-tabs-centered) > ").concat(token.antCls, "-tabs-nav > ").concat(token.antCls, "-tabs-nav-wrap"), {
|
|
67
67
|
justifyContent: 'flex-end'
|
|
68
68
|
})), "&".concat(token.componentCls, "-top, &").concat(token.componentCls, "-top-end, &").concat(token.componentCls, "-bottom, &").concat(token.componentCls, "-bottom-end"), _defineProperty({}, "> ".concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-nav::before"), {
|
|
69
69
|
borderBottom: 'none'
|
|
70
|
-
})), "
|
|
70
|
+
})), "".concat(token.componentCls, "-pane-padding-0"), {
|
|
71
71
|
padding: 0
|
|
72
|
-
}), "
|
|
72
|
+
}), "".concat(token.componentCls, "-pane-padding-xxs"), {
|
|
73
73
|
padding: "".concat(token.paddingXXS, "px ").concat(token.paddingXXS, "px")
|
|
74
|
-
}), "
|
|
74
|
+
}), "".concat(token.componentCls, "-pane-padding-xs"), {
|
|
75
75
|
padding: "".concat(token.paddingXS, "px ").concat(token.paddingXS, "px")
|
|
76
|
-
}), _defineProperty(_defineProperty(_defineProperty(
|
|
76
|
+
}), _defineProperty(_defineProperty(_defineProperty(_$concat10, "".concat(token.componentCls, "-pane-padding-sm"), {
|
|
77
77
|
padding: "".concat(token.paddingSM, "px ").concat(token.paddingSM, "px")
|
|
78
|
-
}), "
|
|
78
|
+
}), "".concat(token.componentCls, "-pane-padding-md"), {
|
|
79
79
|
padding: "".concat(token.paddingMD, "px ").concat(token.paddingMD, "px")
|
|
80
|
-
}), "
|
|
80
|
+
}), "".concat(token.componentCls, "-pane-padding-lg"), {
|
|
81
81
|
padding: "".concat(token.paddingLG, "px ").concat(token.paddingLG, "px")
|
|
82
|
-
}), "&".concat(token.componentCls, "-padding-x-0 > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
83
|
-
paddingLeft: 0,
|
|
84
|
-
paddingRight: 0
|
|
85
|
-
}), "&".concat(token.componentCls, "-padding-x-xxs > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
86
|
-
paddingLeft: token.paddingXXS,
|
|
87
|
-
paddingRight: token.paddingXXS
|
|
88
|
-
}), "&".concat(token.componentCls, "-padding-x-xs > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
89
|
-
paddingLeft: token.paddingXS,
|
|
90
|
-
paddingRight: token.paddingXS
|
|
91
|
-
}), "&".concat(token.componentCls, "-padding-x-sm > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
92
|
-
paddingLeft: token.paddingSM,
|
|
93
|
-
paddingRight: token.paddingSM
|
|
94
|
-
}), "&".concat(token.componentCls, "-padding-x-md > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
95
|
-
paddingLeft: token.paddingMD,
|
|
96
|
-
paddingRight: token.paddingMD
|
|
97
|
-
}), "&".concat(token.componentCls, "-padding-x-lg > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
98
|
-
paddingLeft: token.paddingLG,
|
|
99
|
-
paddingRight: token.paddingLG
|
|
100
|
-
}), "&".concat(token.componentCls, "-padding-y-0 > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
101
|
-
paddingTop: 0,
|
|
102
|
-
paddingBottom: 0
|
|
103
|
-
}), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat10, "&".concat(token.componentCls, "-padding-y-xxs > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
104
|
-
paddingTop: token.paddingXXS,
|
|
105
|
-
paddingBottom: token.paddingXXS
|
|
106
|
-
}), "&".concat(token.componentCls, "-padding-y-xs > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
107
|
-
paddingTop: token.paddingXS,
|
|
108
|
-
paddingBottom: token.paddingXS
|
|
109
|
-
}), "&".concat(token.componentCls, "-padding-y-sm > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
110
|
-
paddingTop: token.paddingSM,
|
|
111
|
-
paddingBottom: token.paddingSM
|
|
112
|
-
}), "&".concat(token.componentCls, "-padding-y-md > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
113
|
-
paddingTop: token.paddingMD,
|
|
114
|
-
paddingBottom: token.paddingMD
|
|
115
|
-
}), "&".concat(token.componentCls, "-padding-y-lg > ").concat(token.antCls, "-tabs > ").concat(token.antCls, "-tabs-content-holder > ").concat(token.antCls, "-tabs-content > ").concat(token.antCls, "-tabs-tabpane"), {
|
|
116
|
-
paddingTop: token.paddingLG,
|
|
117
|
-
paddingBottom: token.paddingLG
|
|
118
82
|
})));
|
|
119
83
|
};
|
|
120
84
|
export function useFieldStyle(prefixCls) {
|