antdv-next 1.5.6 → 1.6.0
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/dist/_util/PurePanel.js +17 -14
- package/dist/_util/fallbackProp.d.ts +13 -0
- package/dist/_util/fallbackProp.js +15 -0
- package/dist/_util/hooks/useAllowClear.d.ts +19 -0
- package/dist/_util/hooks/useAllowClear.js +16 -0
- package/dist/_util/hooks/useMergeSemantic.js +3 -2
- package/dist/_util/omitUndefined.d.ts +13 -0
- package/dist/_util/omitUndefined.js +20 -0
- package/dist/_util/statusUtils.d.ts +1 -1
- package/dist/_util/vueNode.d.ts +2 -6
- package/dist/_util/wave/index.js +4 -2
- package/dist/_util/wave/style.d.ts +5 -1
- package/dist/_util/wave/useWave.d.ts +2 -1
- package/dist/_util/wave/useWave.js +4 -3
- package/dist/affix/style/index.d.ts +5 -1
- package/dist/alert/Alert.d.ts +6 -2
- package/dist/alert/Alert.js +131 -128
- package/dist/alert/style/index.d.ts +4 -1
- package/dist/alert/style/index.js +9 -6
- package/dist/anchor/style/index.d.ts +5 -1
- package/dist/antd-with-locales.esm.js +18709 -16277
- package/dist/antd-with-locales.js +80 -80
- package/dist/antd.css +1 -1
- package/dist/antd.esm.js +17119 -14687
- package/dist/antd.js +80 -80
- package/dist/app/style/index.d.ts +5 -1
- package/dist/avatar/style/index.d.ts +5 -1
- package/dist/badge/index.js +1 -1
- package/dist/badge/style/index.d.ts +5 -1
- package/dist/badge/style/index.js +2 -9
- package/dist/badge/style/ribbon.d.ts +5 -1
- package/dist/border-beam/style/index.d.ts +5 -1
- package/dist/breadcrumb/BreadcrumbItem.js +1 -1
- package/dist/breadcrumb/style/index.d.ts +5 -1
- package/dist/button/style/index.d.ts +5 -1
- package/dist/calendar/style/index.d.ts +4 -1
- package/dist/card/Card.js +1 -1
- package/dist/card/style/index.d.ts +5 -1
- package/dist/carousel/index.js +1 -1
- package/dist/carousel/style/index.d.ts +5 -1
- package/dist/carousel/style/index.js +1 -1
- package/dist/cascader/index.js +3 -2
- package/dist/cascader/style/index.d.ts +5 -1
- package/dist/cascader/style/panel.d.ts +5 -1
- package/dist/checkbox/style/index.d.ts +4 -1
- package/dist/collapse/style/index.d.ts +4 -1
- package/dist/color-picker/ColorPicker.js +7 -11
- package/dist/color-picker/style/index.d.ts +5 -1
- package/dist/config-provider/context.d.ts +16 -21
- package/dist/config-provider/context.js +32 -38
- package/dist/config-provider/define.d.ts +3 -1
- package/dist/config-provider/hooks/useCSSVarCls.d.ts +3 -0
- package/dist/config-provider/hooks/useCSSVarCls.js +4 -3
- package/dist/config-provider/index.d.ts +2 -2
- package/dist/config-provider/index.js +24 -1
- package/dist/date-picker/generatePicker/generateRangePicker.js +10 -3
- package/dist/date-picker/generatePicker/generateSinglePicker.js +13 -5
- package/dist/date-picker/generatePicker/useComponents.d.ts +3 -3
- package/dist/date-picker/style/index.d.ts +5 -1
- package/dist/date-picker/util.d.ts +8 -12
- package/dist/date-picker/util.js +14 -7
- package/dist/descriptions/Cell.js +80 -75
- package/dist/descriptions/Row.js +14 -11
- package/dist/descriptions/hooks/useItems.d.ts +6 -6
- package/dist/descriptions/style/index.d.ts +5 -1
- package/dist/divider/style/index.d.ts +5 -1
- package/dist/drawer/DrawerPanel.js +6 -6
- package/dist/drawer/index.d.ts +0 -2
- package/dist/drawer/index.js +0 -1
- package/dist/drawer/style/index.d.ts +5 -1
- package/dist/dropdown/dropdown.js +2 -1
- package/dist/dropdown/style/index.d.ts +5 -1
- package/dist/empty/style/index.d.ts +5 -1
- package/dist/flex/index.js +1 -1
- package/dist/flex/style/index.d.ts +5 -1
- package/dist/float-button/FloatButtonGroup.js +1 -1
- package/dist/float-button/style/index.d.ts +5 -1
- package/dist/form/FormItem/index.js +36 -16
- package/dist/form/context.d.ts +1 -1
- package/dist/form/hooks/useVariant.d.ts +1 -1
- package/dist/form/style/index.d.ts +5 -1
- package/dist/grid/style/index.d.ts +5 -2
- package/dist/image/hooks/usePreviewConfig.d.ts +9 -9
- package/dist/image/style/index.d.ts +4 -1
- package/dist/input/style/index.d.ts +5 -2
- package/dist/input/style/otp.d.ts +5 -1
- package/dist/input/style/search.d.ts +5 -1
- package/dist/input/style/textarea.d.ts +5 -1
- package/dist/input-number/style/index.d.ts +5 -1
- package/dist/layout/style/index.d.ts +5 -1
- package/dist/layout/style/sider.d.ts +5 -1
- package/dist/listy/style/index.d.ts +5 -1
- package/dist/locale/useLocale.d.ts +1 -1
- package/dist/masonry/style/index.d.ts +4 -1
- package/dist/mentions/index.js +1 -1
- package/dist/mentions/style/index.d.ts +5 -1
- package/dist/menu/MenuItem.js +2 -1
- package/dist/message/style/index.d.ts +5 -1
- package/dist/modal/style/index.d.ts +3 -1
- package/dist/notification/style/index.d.ts +4 -1
- package/dist/package.js +1 -1
- package/dist/pagination/style/index.d.ts +5 -1
- package/dist/popconfirm/style/index.d.ts +5 -1
- package/dist/popover/index.js +4 -3
- package/dist/popover/style/index.d.ts +5 -1
- package/dist/progress/style/index.d.ts +5 -1
- package/dist/qrcode/index.js +0 -21
- package/dist/qrcode/interface.d.ts +1 -1
- package/dist/qrcode/style/index.d.ts +5 -1
- package/dist/radio/style/index.d.ts +5 -1
- package/dist/rate/style/index.d.ts +5 -1
- package/dist/result/style/index.d.ts +5 -1
- package/dist/segmented/style/index.d.ts +5 -1
- package/dist/select/index.js +2 -2
- package/dist/select/style/index.d.ts +5 -1
- package/dist/skeleton/style/index.d.ts +5 -1
- package/dist/slider/style/index.d.ts +5 -1
- package/dist/space/Compact.d.ts +1 -1
- package/dist/space/style/addon.d.ts +5 -1
- package/dist/space/style/compact.d.ts +5 -1
- package/dist/space/style/index.d.ts +5 -1
- package/dist/spin/style/index.d.ts +5 -1
- package/dist/splitter/style/index.d.ts +5 -1
- package/dist/statistic/style/index.d.ts +5 -1
- package/dist/steps/style/index.d.ts +5 -1
- package/dist/switch/style/index.d.ts +5 -1
- package/dist/table/InternalTable.js +52 -48
- package/dist/table/hooks/useSelection.js +19 -6
- package/dist/table/style/index.d.ts +5 -1
- package/dist/table/style/selection.js +1 -1
- package/dist/table/util.d.ts +1 -1
- package/dist/tabs/style/index.d.ts +5 -1
- package/dist/tag/CheckableTagGroup.d.ts +2 -2
- package/dist/tag/hooks/useColor.d.ts +1 -1
- package/dist/tag/style/index.d.ts +5 -1
- package/dist/theme/context.js +2 -1
- package/dist/theme/useToken.d.ts +6 -2
- package/dist/theme/useToken.js +46 -14
- package/dist/theme/util/genStyleUtils.d.ts +13 -3
- package/dist/theme/util/genStyleUtils.js +42 -28
- package/dist/timeline/style/index.d.ts +5 -1
- package/dist/timeline/useItems.d.ts +2 -2
- package/dist/timeline/useItems.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style/index.d.ts +2 -2
- package/dist/tour/style/index.d.ts +5 -1
- package/dist/transfer/Transfer.js +2 -0
- package/dist/transfer/style/index.d.ts +5 -1
- package/dist/tree/DirectoryTree.js +1 -1
- package/dist/tree/style/index.d.ts +4 -1
- package/dist/tree-select/index.js +1 -1
- package/dist/tree-select/style/index.d.ts +2 -2
- package/dist/typography/style/index.d.ts +5 -1
- package/dist/upload/style/index.d.ts +5 -1
- package/dist/version/token.json +1 -1
- package/global.d.ts +5 -0
- package/package.json +11 -11
- package/web-tags.json +5007 -3018
- package/web-types.json +12961 -7217
|
@@ -86,7 +86,8 @@ const Dropdown = /* @__PURE__ */ defineComponent((props, { slots, emit, attrs })
|
|
|
86
86
|
});
|
|
87
87
|
return () => {
|
|
88
88
|
const children = filterEmpty(slots?.default?.());
|
|
89
|
-
const
|
|
89
|
+
const firstChild = children[0];
|
|
90
|
+
const child = children.length === 1 && isVNode(firstChild) && typeof firstChild.type !== "symbol" ? firstChild : createVNode("span", null, [children]);
|
|
90
91
|
const { menu, popupRender, mouseEnterDelay, mouseLeaveDelay, arrow, getPopupContainer, rootClass, destroyOnHidden } = props;
|
|
91
92
|
const mergedPopupRender = slots?.popupRender ?? popupRender;
|
|
92
93
|
const popupTrigger = createVNode(child, {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { ArrowToken } from "../../style/roundedArrow.js";
|
|
2
4
|
import { ArrowOffsetToken } from "../../style/placementArrow.js";
|
|
5
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
3
6
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
7
|
+
import "../../theme/interface/index.js";
|
|
4
8
|
import "../../theme/internal.js";
|
|
5
9
|
import { CSSProperties } from "vue";
|
|
6
10
|
//#region src/dropdown/style/index.d.ts
|
|
@@ -38,6 +42,6 @@ interface DropdownToken extends FullToken<'Dropdown'> {
|
|
|
38
42
|
menuCls: string;
|
|
39
43
|
}
|
|
40
44
|
declare const prepareComponentToken: GetDefaultToken<'Dropdown'>;
|
|
41
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
45
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
42
46
|
//#endregion
|
|
43
47
|
export { ComponentToken, DropdownToken, _default as default, prepareComponentToken };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
|
+
import "../../theme/interface/index.js";
|
|
1
5
|
//#region src/empty/style/index.d.ts
|
|
2
6
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
3
7
|
interface ComponentToken {}
|
|
4
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
8
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
5
9
|
//#endregion
|
|
6
10
|
export { ComponentToken, _default as default };
|
package/dist/flex/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const Flex = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
23
23
|
[`${prefixCls.value}-gap-${gap}`]: isPresetSize(gap),
|
|
24
24
|
[`${prefixCls.value}-vertical`]: mergedVertical
|
|
25
25
|
});
|
|
26
|
-
const mergedStyle = {};
|
|
26
|
+
const mergedStyle = { ...ctxFlex?.style };
|
|
27
27
|
if (flex) mergedStyle.flex = flex;
|
|
28
28
|
if (gap && !isPresetSize(gap)) mergedStyle.gap = /\d/.test(`${gap}`) ? `${gap}px` : gap;
|
|
29
29
|
return createVNode(component, {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
//#region src/flex/style/index.d.ts
|
|
4
8
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -27,6 +31,6 @@ interface FlexToken extends FullToken<'Flex'> {
|
|
|
27
31
|
flexGapLG: number;
|
|
28
32
|
}
|
|
29
33
|
declare const prepareComponentToken: GetDefaultToken<'Flex'>;
|
|
30
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
34
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
31
35
|
//#endregion
|
|
32
36
|
export { ComponentToken, FlexToken, _default as default, prepareComponentToken };
|
|
@@ -62,9 +62,9 @@ const FloatButtonGroup = /* @__PURE__ */ defineComponent((props, { slots, attrs,
|
|
|
62
62
|
const mergedDisabled = computed(() => props.disabled ?? disabledContext.value);
|
|
63
63
|
const triggerOpen = (nextOpen) => {
|
|
64
64
|
if (mergedDisabled.value) return;
|
|
65
|
+
if (open.value === nextOpen) return;
|
|
65
66
|
emit("update:open", nextOpen);
|
|
66
67
|
if (props.open !== void 0) return;
|
|
67
|
-
if (open.value === nextOpen) return;
|
|
68
68
|
open.value = nextOpen;
|
|
69
69
|
emit("openChange", nextOpen);
|
|
70
70
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
//#region src/float-button/style/index.d.ts
|
|
4
8
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -30,6 +34,6 @@ type FloatButtonToken = FullToken<'FloatButton'> & {
|
|
|
30
34
|
floatButtonInsetInlineEnd: number;
|
|
31
35
|
};
|
|
32
36
|
declare const prepareComponentToken: GetDefaultToken<'FloatButton'>;
|
|
33
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
37
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
34
38
|
//#endregion
|
|
35
39
|
export { ComponentToken, FloatButtonToken, _default as default, prepareComponentToken };
|
|
@@ -63,6 +63,8 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
63
63
|
const errors = shallowRef([]);
|
|
64
64
|
const warnings = shallowRef([]);
|
|
65
65
|
const validateDisabled = shallowRef(false);
|
|
66
|
+
let validateId = 0;
|
|
67
|
+
let cancelDebounce;
|
|
66
68
|
const subFieldErrors = shallowRef({});
|
|
67
69
|
const initialValue = shallowRef(initialValueFormat(formContext.value?.getFieldValue?.(namePath.value)));
|
|
68
70
|
const getMergedRules = () => {
|
|
@@ -118,6 +120,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
118
120
|
});
|
|
119
121
|
if (!filteredRules.length) {
|
|
120
122
|
if (validateOnly) return Promise.resolve();
|
|
123
|
+
validateId++;
|
|
121
124
|
errors.value = [];
|
|
122
125
|
warnings.value = [];
|
|
123
126
|
updateMeta({
|
|
@@ -134,10 +137,20 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
134
137
|
validating: true,
|
|
135
138
|
validated: true
|
|
136
139
|
});
|
|
137
|
-
const
|
|
140
|
+
const currentValidateId = validateOnly ? validateId : ++validateId;
|
|
141
|
+
const runRules = () => validateRules(namePath.value, fieldValue.value, filteredRules, {
|
|
138
142
|
validateMessages: formContext.value?.validateMessages,
|
|
139
143
|
...options
|
|
140
144
|
}, props.validateFirst ?? false, messageVariables.value);
|
|
145
|
+
const validateDebounce = triggerName && !validateOnly ? props.validateDebounce : void 0;
|
|
146
|
+
const promise = validateDebounce ? new Promise((resolve) => {
|
|
147
|
+
cancelDebounce?.();
|
|
148
|
+
const timer = setTimeout(resolve, validateDebounce);
|
|
149
|
+
cancelDebounce = () => {
|
|
150
|
+
clearTimeout(timer);
|
|
151
|
+
resolve();
|
|
152
|
+
};
|
|
153
|
+
}).then(() => currentValidateId === validateId ? runRules() : []) : runRules();
|
|
141
154
|
if (validateOnly) return promise.catch((e) => e).then((results = []) => {
|
|
142
155
|
if (results.some(({ rule: { warningOnly }, errors: ruleErrors }) => !warningOnly && ruleErrors.length)) return Promise.reject(results);
|
|
143
156
|
return results;
|
|
@@ -149,17 +162,19 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
149
162
|
if (warningOnly) mergedWarnings.push(...ruleErrors);
|
|
150
163
|
else mergedErrors.push(...ruleErrors);
|
|
151
164
|
});
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
if (currentValidateId === validateId) {
|
|
166
|
+
errors.value = mergedErrors;
|
|
167
|
+
warnings.value = mergedWarnings;
|
|
168
|
+
updateMeta({
|
|
169
|
+
errors: mergedErrors,
|
|
170
|
+
warnings: mergedWarnings,
|
|
171
|
+
validating: false,
|
|
172
|
+
validated: true,
|
|
173
|
+
touched: meta.value.touched
|
|
174
|
+
});
|
|
175
|
+
formContext.value?.onValidate?.(namePath.value, mergedErrors.length === 0, mergedErrors.length ? mergedErrors : null);
|
|
176
|
+
formContext.value?.triggerFieldsChange?.([namePath.value]);
|
|
177
|
+
}
|
|
163
178
|
if (mergedErrors.length) return Promise.reject(results);
|
|
164
179
|
return results;
|
|
165
180
|
});
|
|
@@ -170,6 +185,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
170
185
|
validateRulesInner({ triggerName }).catch((e) => e);
|
|
171
186
|
};
|
|
172
187
|
const clearValidate = () => {
|
|
188
|
+
validateId++;
|
|
173
189
|
errors.value = [];
|
|
174
190
|
warnings.value = [];
|
|
175
191
|
updateMeta({
|
|
@@ -179,7 +195,7 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
179
195
|
});
|
|
180
196
|
};
|
|
181
197
|
const resetField = () => {
|
|
182
|
-
|
|
198
|
+
validateId++;
|
|
183
199
|
errors.value = [];
|
|
184
200
|
warnings.value = [];
|
|
185
201
|
updateMeta({
|
|
@@ -190,7 +206,9 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
190
206
|
validated: false
|
|
191
207
|
});
|
|
192
208
|
if (hasName.value && formContext.value?.model) {
|
|
193
|
-
const
|
|
209
|
+
const nextValue = initialValueFormat(initialValue.value);
|
|
210
|
+
if (!Object.is(fieldValue.value, nextValue)) validateDisabled.value = true;
|
|
211
|
+
const newStore = setValue(formContext.value.model, namePath.value, nextValue);
|
|
194
212
|
Object.assign(formContext.value.model, newStore);
|
|
195
213
|
}
|
|
196
214
|
};
|
|
@@ -284,6 +302,8 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
284
302
|
} else formContext.value?.removeField?.(eventKey.value);
|
|
285
303
|
}, { immediate: true });
|
|
286
304
|
onBeforeUnmount(() => {
|
|
305
|
+
validateId++;
|
|
306
|
+
cancelDebounce?.();
|
|
287
307
|
if (props.noStyle && notifyParentMetaChange) notifyParentMetaChange({
|
|
288
308
|
...meta.value,
|
|
289
309
|
destroy: true
|
|
@@ -310,8 +330,8 @@ const InternalFormItem = /* @__PURE__ */ defineComponent((props, { slots, attrs
|
|
|
310
330
|
const childProps = child.props || {};
|
|
311
331
|
const _onBlur = childProps.onBlur;
|
|
312
332
|
const _onFocus = childProps.onFocus;
|
|
313
|
-
if (_onBlur) delete
|
|
314
|
-
if (_onFocus) delete
|
|
333
|
+
if (_onBlur) delete childProps.onBlur;
|
|
334
|
+
if (_onFocus) delete childProps.onFocus;
|
|
315
335
|
const newChildProps = {
|
|
316
336
|
id: childProps.id || currentFieldId,
|
|
317
337
|
onBlur: (...args) => {
|
package/dist/form/context.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ declare function useFormItemPrefixContext(): Ref<{
|
|
|
71
71
|
prefixCls: string;
|
|
72
72
|
}>;
|
|
73
73
|
declare function useVariantContextProvider(variant: Ref<Variant | undefined>): void;
|
|
74
|
-
declare function useVariantContext(): Ref<"
|
|
74
|
+
declare function useVariantContext(): Ref<"outlined" | "filled" | "borderless" | "underlined" | undefined, "outlined" | "filled" | "borderless" | "underlined" | undefined>;
|
|
75
75
|
interface FormItemStatusContextProps {
|
|
76
76
|
isFormItemInput?: boolean;
|
|
77
77
|
status?: ValidateStatus;
|
|
@@ -3,7 +3,7 @@ import { Variant } from "../../config-provider/context.js";
|
|
|
3
3
|
import { Ref } from "vue";
|
|
4
4
|
//#region src/form/hooks/useVariant.d.ts
|
|
5
5
|
type VariantComponents = keyof Pick<ConfigProviderProps, 'input' | 'inputPassword' | 'inputSearch' | 'otp' | 'inputNumber' | 'textArea' | 'mentions' | 'select' | 'cascader' | 'treeSelect' | 'datePicker' | 'timePicker' | 'rangePicker' | 'card'>;
|
|
6
|
-
declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"
|
|
6
|
+
declare function useVariant(component: VariantComponents, variant?: Ref<Variant | undefined>, legacyBordered?: Ref<boolean | undefined> | boolean, fallbackComponent?: VariantComponents): readonly [import("vue").ComputedRef<"outlined" | "filled" | "borderless" | "underlined">, import("vue").ComputedRef<boolean>, import("vue").ComputedRef<boolean>];
|
|
7
7
|
declare const useVariants: typeof useVariant;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { useVariant as default, useVariants };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GenStyleFn, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
import { CSSProperties } from "vue";
|
|
4
8
|
//#region src/form/style/index.d.ts
|
|
@@ -74,6 +78,6 @@ interface FormToken extends FullToken<'Form'> {
|
|
|
74
78
|
}
|
|
75
79
|
declare const prepareComponentToken: GetDefaultToken<'Form'>;
|
|
76
80
|
declare function prepareToken(token: Parameters<GenStyleFn<'Form'>>[0], rootPrefixCls: string): FormToken;
|
|
77
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
81
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
78
82
|
//#endregion
|
|
79
83
|
export { ComponentToken, FormToken, _default as default, prepareComponentToken, prepareToken };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
1
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
2
4
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
3
6
|
import "../../theme/internal.js";
|
|
4
7
|
//#region src/grid/style/index.d.ts
|
|
5
8
|
interface ComponentToken {}
|
|
6
9
|
declare const prepareRowComponentToken: GetDefaultToken<'Grid'>;
|
|
7
10
|
declare const prepareColComponentToken: GetDefaultToken<'Grid'>;
|
|
8
|
-
declare const useRowStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
11
|
+
declare const useRowStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
9
12
|
declare function getMediaSize(token: AliasToken): {
|
|
10
13
|
readonly xs: number;
|
|
11
14
|
readonly sm: number;
|
|
@@ -15,6 +18,6 @@ declare function getMediaSize(token: AliasToken): {
|
|
|
15
18
|
readonly xxl: number;
|
|
16
19
|
readonly xxxl: number;
|
|
17
20
|
};
|
|
18
|
-
declare const useColStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
21
|
+
declare const useColStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
19
22
|
//#endregion
|
|
20
23
|
export { ComponentToken, getMediaSize, prepareColComponentToken, prepareRowComponentToken, useColStyle, useRowStyle };
|
|
@@ -7,14 +7,14 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
|
|
|
7
7
|
readonly onOpenChange: ((value: boolean, info: {
|
|
8
8
|
current: number;
|
|
9
9
|
}) => void) | undefined;
|
|
10
|
-
readonly cover: string | number | boolean | import("vue").
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}> | import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
10
|
+
readonly cover: string | number | boolean | import("vue").ComponentOptions<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> | import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
13
11
|
new (...args: any[]): any;
|
|
14
12
|
__isFragment?: never;
|
|
15
13
|
__isTeleport?: never;
|
|
16
14
|
__isSuspense?: never;
|
|
17
|
-
} |
|
|
15
|
+
} | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}> | (string | number | boolean | void | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}> | null | undefined)[] | import("@v-c/image").CoverConfig | {
|
|
20
20
|
enabled?: boolean;
|
|
@@ -36,21 +36,21 @@ declare function usePreviewConfig<T extends PreviewConfig | GroupPreviewConfig>(
|
|
|
36
36
|
image: import("@v-c/image").ImgInfo;
|
|
37
37
|
}) => import("@v-c/util").VueNode;
|
|
38
38
|
readonly onChange?: (current: number, prevCurrent: number) => void;
|
|
39
|
-
readonly
|
|
40
|
-
readonly src?: string;
|
|
41
|
-
readonly alt?: string;
|
|
39
|
+
readonly wheel?: boolean;
|
|
42
40
|
readonly focusTrap?: boolean;
|
|
43
41
|
readonly afterOpenChange?: (open: boolean) => void;
|
|
44
42
|
readonly maskClosable?: boolean;
|
|
45
43
|
readonly zIndex?: number;
|
|
46
44
|
readonly getContainer?: import("@v-c/portal/dist/Portal.js").PortalProps["getContainer"];
|
|
47
45
|
readonly closeIcon?: import("@v-c/util").VueNode | boolean | null;
|
|
46
|
+
readonly motionName?: string;
|
|
47
|
+
readonly src?: string;
|
|
48
|
+
readonly alt?: string;
|
|
49
|
+
readonly icons?: import("@v-c/image/dist/Preview/index.js").OperationIcons;
|
|
48
50
|
readonly countRender?: (current: number, total: number) => import("@v-c/util").VueNode;
|
|
49
51
|
readonly scaleStep?: number;
|
|
50
52
|
readonly minScale?: number;
|
|
51
53
|
readonly maxScale?: number;
|
|
52
|
-
readonly wheel?: boolean;
|
|
53
|
-
readonly motionName?: string;
|
|
54
54
|
readonly movable?: boolean;
|
|
55
55
|
readonly onTransform?: (info: {
|
|
56
56
|
transform: import("@v-c/image/dist/hooks/useImageTransform.js").TransformType;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
3
6
|
import "../../theme/internal.js";
|
|
@@ -51,6 +54,6 @@ declare function genBoxStyle(position?: PositionType): CSSObject;
|
|
|
51
54
|
declare const genImageCoverStyle: GenerateStyle<ImageToken, CSSObject>;
|
|
52
55
|
declare const genImagePreviewStyle: GenerateStyle<ImageToken, CSSObject>;
|
|
53
56
|
declare const prepareComponentToken: GetDefaultToken<'Image'>;
|
|
54
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
57
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
55
58
|
//#endregion
|
|
56
59
|
export { ComponentToken, ImageToken, PositionType, _default as default, genBoxStyle, genImageCoverStyle, genImagePreviewStyle, prepareComponentToken };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { ComponentToken, InputToken, initComponentToken, initInputToken } from "./token.js";
|
|
4
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
2
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
3
6
|
import "../../theme/internal.js";
|
|
4
7
|
import { CSSObject } from "@antdv-next/cssinjs";
|
|
@@ -15,7 +18,7 @@ declare const genInputGroupStyle: GenerateStyle<InputToken, CSSObject>;
|
|
|
15
18
|
declare const genInputStyle: GenerateStyle<InputToken, CSSObject>;
|
|
16
19
|
declare const genAllowClearStyle: GenerateStyle<InputToken, CSSObject>;
|
|
17
20
|
declare const genAffixStyle: GenerateStyle<InputToken, CSSObject>;
|
|
18
|
-
declare const useSharedStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
19
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
21
|
+
declare const useSharedStyle: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
22
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
20
23
|
//#endregion
|
|
21
24
|
export { type ComponentToken, _default as default, genActiveStyle, genAffixStyle, genAllowClearStyle, genBasicInputStyle, genInputGroupStyle, genInputLargeStyle, genInputSmallStyle, genInputStyle, genPlaceholderStyle, initComponentToken, initInputToken, useSharedStyle };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
|
+
import "../../theme/interface/index.js";
|
|
1
5
|
//#region src/input/style/otp.d.ts
|
|
2
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
6
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
3
7
|
//#endregion
|
|
4
8
|
export { _default as default };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
|
+
import "../../theme/interface/index.js";
|
|
1
5
|
//#region src/input/style/search.d.ts
|
|
2
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
6
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
3
7
|
//#endregion
|
|
4
8
|
export { _default as default };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { ComponentToken, initComponentToken, initInputToken } from "./token.js";
|
|
4
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
//#region src/input/style/textarea.d.ts
|
|
3
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
7
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
4
8
|
//#endregion
|
|
5
9
|
export { type ComponentToken, _default as default, initComponentToken, initInputToken };
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { ComponentToken } from "./token.js";
|
|
4
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
//#region src/input-number/style/index.d.ts
|
|
3
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
7
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
4
8
|
//#endregion
|
|
5
9
|
export { type ComponentToken, _default as default };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
import { CSSProperties } from "vue";
|
|
4
8
|
//#region src/layout/style/index.d.ts
|
|
@@ -93,6 +97,6 @@ interface ComponentToken {
|
|
|
93
97
|
interface LayoutToken extends FullToken<'Layout'> {}
|
|
94
98
|
declare const prepareComponentToken: GetDefaultToken<'Layout'>;
|
|
95
99
|
declare const DEPRECATED_TOKENS: [keyof ComponentToken, keyof ComponentToken][];
|
|
96
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
100
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
97
101
|
//#endregion
|
|
98
102
|
export { ComponentToken, DEPRECATED_TOKENS, LayoutToken, _default as default, prepareComponentToken };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
|
+
import "../../theme/interface/index.js";
|
|
1
5
|
//#region src/layout/style/sider.d.ts
|
|
2
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
6
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
3
7
|
//#endregion
|
|
4
8
|
export { _default as default };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
5
|
+
import "../../theme/interface/index.js";
|
|
2
6
|
import "../../theme/internal.js";
|
|
3
7
|
//#region src/listy/style/index.d.ts
|
|
4
8
|
interface ComponentToken {
|
|
@@ -18,6 +22,6 @@ interface ComponentToken {
|
|
|
18
22
|
itemPaddingInline: number;
|
|
19
23
|
}
|
|
20
24
|
declare const prepareComponentToken: GetDefaultToken<'Listy'>;
|
|
21
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
25
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
22
26
|
//#endregion
|
|
23
27
|
export { ComponentToken, _default as default, prepareComponentToken };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Locale } from "./index.js";
|
|
2
2
|
//#region src/locale/useLocale.d.ts
|
|
3
3
|
type LocaleComponentName = Exclude<keyof Locale, 'locale'>;
|
|
4
|
-
declare function useLocale<C extends LocaleComponentName = LocaleComponentName>(componentName: C, defaultLocale?: Locale[C] | (() => Locale[C])): import("vue").ComputedRef<any>
|
|
4
|
+
declare function useLocale<C extends LocaleComponentName = LocaleComponentName>(componentName: C, defaultLocale?: Locale[C] | (() => Locale[C])): readonly [import("vue").ComputedRef<any>, import("vue").ComputedRef<string>];
|
|
5
5
|
//#endregion
|
|
6
6
|
export { LocaleComponentName, useLocale as default };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken } from "../../theme/interface/cssinjs-utils.js";
|
|
2
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
3
6
|
import "../../theme/internal.js";
|
|
@@ -6,6 +9,6 @@ import { CSSObject } from "@antdv-next/cssinjs";
|
|
|
6
9
|
interface ComponentToken {}
|
|
7
10
|
interface MasonryToken extends FullToken<'Masonry'> {}
|
|
8
11
|
declare const genMasonryStyle: GenerateStyle<MasonryToken, CSSObject>;
|
|
9
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
12
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
10
13
|
//#endregion
|
|
11
14
|
export { ComponentToken, MasonryToken, _default as default, genMasonryStyle };
|
package/dist/mentions/index.js
CHANGED
|
@@ -102,7 +102,7 @@ const Mentions = /* @__PURE__ */ defineComponent((props, { slots, emit, expose,
|
|
|
102
102
|
const [mentionsZIndex] = useZIndex("SelectLike", computed(() => props.styles?.popup?.zIndex));
|
|
103
103
|
const notFoundContent = computed(() => {
|
|
104
104
|
if (props.notFoundContent !== void 0) return props.notFoundContent;
|
|
105
|
-
return renderEmpty?.value?.("
|
|
105
|
+
return renderEmpty?.value?.("Mentions") || createVNode(DefaultRenderEmpty, { "componentName": "Mentions" }, null);
|
|
106
106
|
});
|
|
107
107
|
const mergedFilterOption = computed(() => props.loading ? loadingFilterOption : props.filterOption);
|
|
108
108
|
const resolveRenderNode = (key, ctx) => {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
1
3
|
import { SharedComponentToken } from "../../input/style/token.js";
|
|
4
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
2
5
|
import { GetDefaultToken } from "../../theme/interface/cssinjs-utils.js";
|
|
6
|
+
import "../../theme/interface/index.js";
|
|
3
7
|
import "../../theme/internal.js";
|
|
4
8
|
//#region src/mentions/style/index.d.ts
|
|
5
9
|
interface ComponentToken extends SharedComponentToken {
|
|
@@ -20,6 +24,6 @@ interface ComponentToken extends SharedComponentToken {
|
|
|
20
24
|
controlItemWidth: number | string;
|
|
21
25
|
}
|
|
22
26
|
declare const prepareComponentToken: GetDefaultToken<'Mentions'>;
|
|
23
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
27
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
24
28
|
//#endregion
|
|
25
29
|
export { ComponentToken, _default as default, prepareComponentToken };
|
package/dist/menu/MenuItem.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getAttrStyleAndClass, pureAttrs } from "../_util/hooks/useMergeSemantic.js";
|
|
2
2
|
import { getSlotPropsFnRun } from "../_util/tools.js";
|
|
3
3
|
import InternalTooltip from "../tooltip/index.js";
|
|
4
|
+
import { omitUndefined } from "../_util/omitUndefined.js";
|
|
4
5
|
import { useSiderCtx } from "../layout/Sider.js";
|
|
5
6
|
import { useMenuContext } from "./MenuContext.js";
|
|
6
7
|
import { computed, createVNode, defineComponent, isVNode, mergeProps, shallowRef, watch } from "vue";
|
|
@@ -54,7 +55,7 @@ const MenuItem = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
|
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
const childrenLength = children.length;
|
|
57
|
-
let returnNode = createVNode(Item, mergeProps(omit(pureAttrs(attrs), ["itemData"]),
|
|
58
|
+
let returnNode = createVNode(Item, mergeProps(omit(pureAttrs(attrs), ["itemData"]), omitUndefined(props, [
|
|
58
59
|
"title",
|
|
59
60
|
"icon",
|
|
60
61
|
"danger",
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
4
|
+
import "../../theme/interface/index.js";
|
|
1
5
|
import { CSSProperties } from "vue";
|
|
2
6
|
//#region src/message/style/index.d.ts
|
|
3
7
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
@@ -27,6 +31,6 @@ declare const PurePanelStyle: import("vue").DefineComponent<import("vue").Extrac
|
|
|
27
31
|
rootCls: StringConstructor;
|
|
28
32
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
33
|
/** Register the main style hook for Message. */
|
|
30
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
34
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
31
35
|
//#endregion
|
|
32
36
|
export { ComponentToken, PurePanelStyle, _default as default };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
1
2
|
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
2
4
|
import { FullToken, GenStyleFn, GlobalToken } from "../../theme/interface/cssinjs-utils.js";
|
|
3
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
4
6
|
import { TokenWithCommonCls } from "../../theme/internal.js";
|
|
@@ -134,6 +136,6 @@ declare function prepareComponentToken(token: GlobalToken): {
|
|
|
134
136
|
confirmBtnsMarginTop: number;
|
|
135
137
|
mask: boolean;
|
|
136
138
|
};
|
|
137
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
139
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
138
140
|
//#endregion
|
|
139
141
|
export { ComponentToken, ModalToken, _default as default, genModalMaskStyle, prepareComponentToken, prepareToken };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { SeedToken } from "../../theme/interface/seeds.js";
|
|
2
|
+
import { AliasToken } from "../../theme/interface/alias.js";
|
|
3
|
+
import { ComponentTokenMap } from "../../theme/interface/components.js";
|
|
1
4
|
import { FullToken, GenStyleFn } from "../../theme/interface/cssinjs-utils.js";
|
|
2
5
|
import { GenerateStyle } from "../../theme/interface/index.js";
|
|
3
6
|
import "../../theme/internal.js";
|
|
@@ -115,6 +118,6 @@ declare const PurePanelStyle: import("vue").DefineComponent<import("vue").Extrac
|
|
|
115
118
|
/** Compose the shared list, item, and placement styles. */
|
|
116
119
|
declare function sharedGenerateStyle<Token extends NotificationToken>(token: Token, config: SharedStyleConfig<Token>): ReturnType<GenerateStyle<Token>>;
|
|
117
120
|
/** Register the main style hook for Notification. */
|
|
118
|
-
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
121
|
+
declare const _default: (prefixCls: import("vue").Ref<string>, rootCls?: import("vue").Ref<string | undefined>, tokenResult?: import("@antdv-next/cssinjs").UseTokenReturn<ComponentTokenMap, AliasToken, SeedToken> | undefined) => readonly [import("vue").Ref<string, string>, import("vue").ComputedRef<string | undefined>];
|
|
119
122
|
//#endregion
|
|
120
123
|
export { ComponentToken, NotificationToken, PurePanelStyle, _default as default, prepareNotificationToken, sharedGenerateStyle };
|
package/dist/package.js
CHANGED