@bitrix24/b24ui-nuxt 0.6.5 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/meta.d.mts +3187 -765
- package/dist/meta.mjs +3187 -765
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Advice.vue.d.ts +3 -26
- package/dist/runtime/components/Alert.vue.d.ts +7 -22
- package/dist/runtime/components/App.vue.d.ts +2 -2
- package/dist/runtime/components/Avatar.vue.d.ts +4 -25
- package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -11
- package/dist/runtime/components/Badge.vue.d.ts +3 -24
- package/dist/runtime/components/Button.vue.d.ts +3 -30
- package/dist/runtime/components/ButtonGroup.vue.d.ts +3 -26
- package/dist/runtime/components/Calendar.vue.d.ts +6 -2
- package/dist/runtime/components/Checkbox.vue.d.ts +10 -13
- package/dist/runtime/components/Chip.vue.d.ts +10 -24
- package/dist/runtime/components/Collapsible.vue.d.ts +7 -22
- package/dist/runtime/components/Container.vue.d.ts +2 -11
- package/dist/runtime/components/Countdown.vue.d.ts +14 -30
- package/dist/runtime/components/DescriptionList.vue +12 -0
- package/dist/runtime/components/DescriptionList.vue.d.ts +12 -36
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -24
- package/dist/runtime/components/DropdownMenuContent.vue +4 -0
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +19 -6
- package/dist/runtime/components/Form.vue.d.ts +5 -2
- package/dist/runtime/components/FormField.vue.d.ts +2 -11
- package/dist/runtime/components/Input.vue.d.ts +16 -31
- package/dist/runtime/components/InputMenu.vue +6 -2
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -3
- package/dist/runtime/components/InputNumber.vue.d.ts +12 -25
- package/dist/runtime/components/Kbd.vue.d.ts +3 -24
- package/dist/runtime/components/Link.vue.d.ts +3 -36
- package/dist/runtime/components/LinkBase.vue.d.ts +4 -27
- package/dist/runtime/components/Modal.vue +11 -9
- package/dist/runtime/components/Modal.vue.d.ts +12 -29
- package/dist/runtime/components/ModalDialogClose.vue.d.ts +2 -2
- package/dist/runtime/components/Navbar.vue.d.ts +3 -24
- package/dist/runtime/components/NavbarDivider.vue.d.ts +3 -24
- package/dist/runtime/components/NavbarSection.vue.d.ts +3 -24
- package/dist/runtime/components/NavbarSpacer.vue.d.ts +3 -24
- package/dist/runtime/components/NavigationMenu.vue +4 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -20
- package/dist/runtime/components/Popover.vue +9 -6
- package/dist/runtime/components/Popover.vue.d.ts +10 -26
- package/dist/runtime/components/Progress.vue.d.ts +9 -40
- package/dist/runtime/components/RadioGroup.vue.d.ts +5 -2
- package/dist/runtime/components/Range.vue.d.ts +12 -31
- package/dist/runtime/components/Select.vue +5 -0
- package/dist/runtime/components/Select.vue.d.ts +10 -2
- package/dist/runtime/components/SelectMenu.vue +5 -1
- package/dist/runtime/components/SelectMenu.vue.d.ts +17 -3
- package/dist/runtime/components/Separator.vue.d.ts +3 -24
- package/dist/runtime/components/Sidebar.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarBody.vue.d.ts +3 -26
- package/dist/runtime/components/SidebarFooter.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarHeader.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarHeading.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarLayout.vue +4 -0
- package/dist/runtime/components/SidebarLayout.vue.d.ts +8 -29
- package/dist/runtime/components/SidebarSection.vue.d.ts +3 -24
- package/dist/runtime/components/SidebarSpacer.vue.d.ts +3 -24
- package/dist/runtime/components/Skeleton.vue +8 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +3 -12
- package/dist/runtime/components/Slideover.vue +11 -9
- package/dist/runtime/components/Slideover.vue.d.ts +12 -30
- package/dist/runtime/components/StackedLayout.vue +4 -0
- package/dist/runtime/components/StackedLayout.vue.d.ts +8 -29
- package/dist/runtime/components/Switch.vue.d.ts +10 -13
- package/dist/runtime/components/Tabs.vue.d.ts +4 -20
- package/dist/runtime/components/Textarea.vue.d.ts +16 -33
- package/dist/runtime/components/Toast.vue.d.ts +86 -24
- package/dist/runtime/components/Toaster.vue.d.ts +3 -30
- package/dist/runtime/components/Tooltip.vue.d.ts +7 -22
- package/dist/runtime/components/content/TableWrapper.vue.d.ts +4 -27
- package/dist/runtime/composables/usePortal.js +2 -9
- package/dist/runtime/inertia/components/Link.vue.d.ts +3 -34
- package/dist/runtime/prose/A.vue.d.ts +2 -11
- package/dist/runtime/prose/Blockquote.vue.d.ts +2 -11
- package/dist/runtime/prose/Code.vue.d.ts +2 -11
- package/dist/runtime/prose/Em.vue.d.ts +2 -11
- package/dist/runtime/prose/H1.vue.d.ts +2 -11
- package/dist/runtime/prose/H2.vue.d.ts +2 -11
- package/dist/runtime/prose/H3.vue.d.ts +2 -11
- package/dist/runtime/prose/H4.vue.d.ts +2 -11
- package/dist/runtime/prose/H5.vue.d.ts +2 -11
- package/dist/runtime/prose/H6.vue.d.ts +2 -11
- package/dist/runtime/prose/Hr.vue.d.ts +1 -10
- package/dist/runtime/prose/Img.vue.d.ts +1 -10
- package/dist/runtime/prose/Li.vue.d.ts +2 -11
- package/dist/runtime/prose/Ol.vue.d.ts +2 -11
- package/dist/runtime/prose/P.vue.d.ts +2 -11
- package/dist/runtime/prose/Pre.vue.d.ts +3 -24
- package/dist/runtime/prose/Strong.vue.d.ts +2 -11
- package/dist/runtime/prose/Table.vue.d.ts +3 -32
- package/dist/runtime/prose/Tbody.vue.d.ts +2 -11
- package/dist/runtime/prose/Td.vue.d.ts +2 -11
- package/dist/runtime/prose/Th.vue.d.ts +2 -11
- package/dist/runtime/prose/Thead.vue.d.ts +2 -11
- package/dist/runtime/prose/Tr.vue.d.ts +2 -11
- package/dist/runtime/prose/Ul.vue.d.ts +2 -11
- package/dist/runtime/vue/components/Link.vue.d.ts +3 -36
- package/package.json +10 -11
|
@@ -92,37 +92,19 @@ export type DropdownMenuSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayO
|
|
|
92
92
|
'item-leading': SlotProps<T>;
|
|
93
93
|
'item-label': SlotProps<T>;
|
|
94
94
|
'item-trailing': SlotProps<T>;
|
|
95
|
+
'content-top': (props?: {}) => any;
|
|
96
|
+
'content-bottom': (props?: {}) => any;
|
|
95
97
|
} & DynamicSlots<MergeTypes<T>, 'leading' | 'label' | 'trailing', {
|
|
96
98
|
active?: boolean;
|
|
97
99
|
index: number;
|
|
98
100
|
}>;
|
|
99
101
|
declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
100
|
-
props: __VLS_PrettifyLocal<
|
|
102
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
103
|
+
readonly "onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
104
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:open"> & DropdownMenuProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
101
105
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
102
106
|
attrs: any;
|
|
103
|
-
slots:
|
|
104
|
-
default(props: {
|
|
105
|
-
open: boolean;
|
|
106
|
-
}): any;
|
|
107
|
-
item: SlotProps<NestedItem<T>>;
|
|
108
|
-
'item-leading': SlotProps<NestedItem<T>>;
|
|
109
|
-
'item-label': SlotProps<NestedItem<T>>;
|
|
110
|
-
'item-trailing': SlotProps<NestedItem<T>>;
|
|
111
|
-
} & DynamicSlots<MergeTypes<NestedItem<T>>, "leading" | "trailing" | "label", {
|
|
112
|
-
active?: boolean;
|
|
113
|
-
index: number;
|
|
114
|
-
}>> & {
|
|
115
|
-
default(props: {
|
|
116
|
-
open: boolean;
|
|
117
|
-
}): any;
|
|
118
|
-
item: SlotProps<NestedItem<T>>;
|
|
119
|
-
'item-leading': SlotProps<NestedItem<T>>;
|
|
120
|
-
'item-label': SlotProps<NestedItem<T>>;
|
|
121
|
-
'item-trailing': SlotProps<NestedItem<T>>;
|
|
122
|
-
} & DynamicSlots<MergeTypes<NestedItem<T>>, "leading" | "trailing" | "label", {
|
|
123
|
-
active?: boolean;
|
|
124
|
-
index: number;
|
|
125
|
-
}>;
|
|
107
|
+
slots: DropdownMenuSlots<T, NestedItem<T>>;
|
|
126
108
|
emit: (evt: "update:open", payload: boolean) => void;
|
|
127
109
|
}>) => import("vue").VNode & {
|
|
128
110
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -117,6 +117,8 @@ const groups = computed(
|
|
|
117
117
|
|
|
118
118
|
<DropdownMenu.Portal v-bind="portalProps">
|
|
119
119
|
<component :is="sub ? DropdownMenu.SubContent : DropdownMenu.Content" :class="props.class" v-bind="contentProps">
|
|
120
|
+
<slot name="content-top" />
|
|
121
|
+
|
|
120
122
|
<DropdownMenu.Group v-for="(group, groupIndex) in groups" :key="`group-${groupIndex}`" :class="b24ui.group({ class: b24uiOverride?.group })">
|
|
121
123
|
<template v-for="(item, index) in group" :key="`group-${groupIndex}-${index}`">
|
|
122
124
|
<DropdownMenu.Label v-if="item.type === 'label'" :class="b24ui.label({ class: b24uiOverride?.label })">
|
|
@@ -185,6 +187,8 @@ const groups = computed(
|
|
|
185
187
|
</DropdownMenu.Group>
|
|
186
188
|
|
|
187
189
|
<slot />
|
|
190
|
+
|
|
191
|
+
<slot name="content-bottom" />
|
|
188
192
|
</component>
|
|
189
193
|
</DropdownMenu.Portal>
|
|
190
194
|
</template>
|
|
@@ -24,15 +24,28 @@ interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> ex
|
|
|
24
24
|
};
|
|
25
25
|
b24uiOverride?: DropdownMenu['slots'];
|
|
26
26
|
}
|
|
27
|
+
type DropdownMenuContentSlots<T extends ArrayOrNested<DropdownMenuItem>> = Omit<DropdownMenuSlots<T>, 'default'> & {
|
|
28
|
+
default(props?: {}): any;
|
|
29
|
+
};
|
|
27
30
|
declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
28
|
-
props: __VLS_PrettifyLocal<
|
|
31
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
32
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
33
|
+
readonly onPointerDownOutside?: ((event: CustomEvent<{
|
|
34
|
+
originalEvent: PointerEvent;
|
|
35
|
+
}>) => any) | undefined;
|
|
36
|
+
readonly onFocusOutside?: ((event: CustomEvent<{
|
|
37
|
+
originalEvent: FocusEvent;
|
|
38
|
+
}>) => any) | undefined;
|
|
39
|
+
readonly onInteractOutside?: ((event: CustomEvent<{
|
|
40
|
+
originalEvent: PointerEvent;
|
|
41
|
+
}> | CustomEvent<{
|
|
42
|
+
originalEvent: FocusEvent;
|
|
43
|
+
}>) => any) | undefined;
|
|
44
|
+
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
45
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
29
46
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
30
47
|
attrs: any;
|
|
31
|
-
slots:
|
|
32
|
-
default(props?: {}): any;
|
|
33
|
-
}> & Omit<DropdownMenuSlots<T>, "default"> & {
|
|
34
|
-
default(props?: {}): any;
|
|
35
|
-
};
|
|
48
|
+
slots: DropdownMenuContentSlots<T>;
|
|
36
49
|
emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: CustomEvent<{
|
|
37
50
|
originalEvent: PointerEvent;
|
|
38
51
|
}>) => void) & ((evt: "focusOutside", event: CustomEvent<{
|
|
@@ -52,10 +52,13 @@ export interface FormSlots {
|
|
|
52
52
|
}): any;
|
|
53
53
|
}
|
|
54
54
|
declare const _default: <S extends FormSchema>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
55
|
-
props: __VLS_PrettifyLocal<
|
|
55
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
56
|
+
readonly onError?: ((payload: FormErrorEvent) => any) | undefined;
|
|
57
|
+
readonly onSubmit?: ((payload: FormSubmitEvent<InferOutput<S>>) => any) | undefined;
|
|
58
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onError" | "onSubmit"> & FormProps<S> & Partial<{}>> & import("vue").PublicProps;
|
|
56
59
|
expose(exposed: import("vue").ShallowUnwrapRef<Form<InferInput<S>>>): void;
|
|
57
60
|
attrs: any;
|
|
58
|
-
slots:
|
|
61
|
+
slots: FormSlots;
|
|
59
62
|
emit: FormEmits<S>;
|
|
60
63
|
}>) => import("vue").VNode & {
|
|
61
64
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -55,18 +55,9 @@ export interface FormFieldSlots {
|
|
|
55
55
|
error?: string | boolean;
|
|
56
56
|
}): any;
|
|
57
57
|
}
|
|
58
|
-
declare const _default:
|
|
58
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<FormFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, FormFieldSlots>;
|
|
59
59
|
export default _default;
|
|
60
|
-
type
|
|
61
|
-
type __VLS_TypePropsToOption<T> = {
|
|
62
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
-
} : {
|
|
65
|
-
type: import('vue').PropType<T[K]>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
70
61
|
new (): {
|
|
71
62
|
$slots: S;
|
|
72
63
|
};
|
|
@@ -91,45 +91,30 @@ export interface InputSlots {
|
|
|
91
91
|
default(props?: {}): any;
|
|
92
92
|
trailing(props?: {}): any;
|
|
93
93
|
}
|
|
94
|
-
declare const _default:
|
|
94
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputProps & {
|
|
95
95
|
modelValue?: string | number | null;
|
|
96
|
-
}
|
|
97
|
-
type: string;
|
|
98
|
-
autocomplete: string;
|
|
99
|
-
autofocusDelay: number;
|
|
100
|
-
}>>, {
|
|
96
|
+
}, {
|
|
101
97
|
inputRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
102
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
98
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
99
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
100
|
+
} & {
|
|
101
|
+
blur: (event: FocusEvent) => any;
|
|
102
|
+
change: (event: Event) => any;
|
|
103
|
+
"update:modelValue": (payload: string | number) => any;
|
|
104
|
+
}, string, import("vue").PublicProps, Readonly<InputProps & {
|
|
103
105
|
modelValue?: string | number | null;
|
|
104
|
-
} &
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
106
|
+
}> & Readonly<{
|
|
107
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
108
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
109
|
+
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
110
|
+
}>, {
|
|
109
111
|
type: import("vue").InputTypeHTMLAttribute;
|
|
110
112
|
autocomplete: string;
|
|
111
113
|
autofocusDelay: number;
|
|
112
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
114
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputSlots>;
|
|
113
115
|
export default _default;
|
|
114
|
-
type
|
|
115
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
116
|
-
default: D[K];
|
|
117
|
-
}> : P[K];
|
|
118
|
-
};
|
|
119
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
120
|
-
type __VLS_TypePropsToOption<T> = {
|
|
121
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
122
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
123
|
-
} : {
|
|
124
|
-
type: import('vue').PropType<T[K]>;
|
|
125
|
-
required: true;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
116
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
129
117
|
new (): {
|
|
130
118
|
$slots: S;
|
|
131
119
|
};
|
|
132
120
|
};
|
|
133
|
-
type __VLS_PrettifyLocal<T> = {
|
|
134
|
-
[K in keyof T]: T[K];
|
|
135
|
-
} & {};
|
|
@@ -134,7 +134,7 @@ const createItem = computed(() => {
|
|
|
134
134
|
}
|
|
135
135
|
const newItem = props.valueKey ? { [props.valueKey]: searchTerm.value } : searchTerm.value;
|
|
136
136
|
if (typeof props.createItem === "object" && props.createItem.when === "always" || props.createItem === "always") {
|
|
137
|
-
return !filteredItems.value.find((item) => compare(item, newItem,
|
|
137
|
+
return !filteredItems.value.find((item) => compare(item, newItem, props.valueKey));
|
|
138
138
|
}
|
|
139
139
|
return !filteredItems.value.length;
|
|
140
140
|
});
|
|
@@ -330,6 +330,8 @@ defineExpose({
|
|
|
330
330
|
|
|
331
331
|
<ComboboxPortal v-bind="portalProps">
|
|
332
332
|
<ComboboxContent :class="b24ui.content({ class: props.b24ui?.content })" v-bind="contentProps">
|
|
333
|
+
<slot name="content-top" />
|
|
334
|
+
|
|
333
335
|
<ComboboxEmpty :class="b24ui.empty({ class: props.b24ui?.empty })">
|
|
334
336
|
<slot name="empty" :search-term="searchTerm">
|
|
335
337
|
{{ searchTerm ? t('inputMenu.noMatch', { searchTerm }) : t('inputMenu.noData') }}
|
|
@@ -351,7 +353,7 @@ defineExpose({
|
|
|
351
353
|
v-else
|
|
352
354
|
:class="b24ui.item({ class: props.b24ui?.item, colorItem: isInputItem(item) ? item?.color : void 0 })"
|
|
353
355
|
:disabled="isInputItem(item) && item.disabled"
|
|
354
|
-
:value="props.valueKey && isInputItem(item) ? get(item,
|
|
356
|
+
:value="props.valueKey && isInputItem(item) ? get(item, props.valueKey) : item"
|
|
355
357
|
@select="onSelect($event, item)"
|
|
356
358
|
>
|
|
357
359
|
<slot name="item" :item="item" :index="index">
|
|
@@ -396,6 +398,8 @@ defineExpose({
|
|
|
396
398
|
<ReuseCreateItemTemplate v-if="createItem && createItemPosition === 'bottom'" />
|
|
397
399
|
</ComboboxViewport>
|
|
398
400
|
|
|
401
|
+
<slot name="content-bottom" />
|
|
402
|
+
|
|
399
403
|
<ComboboxArrow v-if="!!arrow" v-bind="arrowProps" :class="b24ui.arrow({ class: props.b24ui?.arrow })" />
|
|
400
404
|
</ComboboxContent>
|
|
401
405
|
</ComboboxPortal>
|
|
@@ -211,14 +211,28 @@ export interface InputMenuSlots<A extends ArrayOrNested<InputMenuItem> = ArrayOr
|
|
|
211
211
|
'item-trailing': SlotProps<T>;
|
|
212
212
|
'tags-item-text': SlotProps<T>;
|
|
213
213
|
'tags-item-delete': SlotProps<T>;
|
|
214
|
+
'content-top': (props?: {}) => any;
|
|
215
|
+
'content-bottom': (props?: {}) => any;
|
|
214
216
|
'create-item-label'(props: {
|
|
215
217
|
item: string;
|
|
216
218
|
}): any;
|
|
217
219
|
}
|
|
218
220
|
declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetItemKeys<T> | undefined = undefined, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
219
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
221
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
222
|
+
readonly onBlur?: ((payload: FocusEvent) => any) | undefined;
|
|
223
|
+
readonly onChange?: ((payload: Event) => any) | undefined;
|
|
224
|
+
readonly onFocus?: ((payload: FocusEvent) => any) | undefined;
|
|
225
|
+
readonly onCreate?: ((item: string) => any) | undefined;
|
|
226
|
+
readonly onHighlight?: ((payload: {
|
|
227
|
+
ref: HTMLElement;
|
|
228
|
+
value: GetModelValue<T, VK, M>;
|
|
229
|
+
} | undefined) => any) | undefined;
|
|
230
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
231
|
+
readonly "onUpdate:modelValue"?: ((payload: GetModelValue<T, VK, M>) => any) | undefined;
|
|
232
|
+
readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
233
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:open" | "onUpdate:modelValue" | "onCreate" | "onHighlight" | "onUpdate:searchTerm"> & (InputMenuProps<T, VK, M> & {
|
|
220
234
|
searchTerm?: string;
|
|
221
|
-
}
|
|
235
|
+
}) & Partial<{}>> & import("vue").PublicProps;
|
|
222
236
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
223
237
|
inputRef: import("vue").Ref<({
|
|
224
238
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -343,7 +357,7 @@ declare const _default: <T extends ArrayOrNested<InputMenuItem>, VK extends GetI
|
|
|
343
357
|
}) | null>;
|
|
344
358
|
}>): void;
|
|
345
359
|
attrs: any;
|
|
346
|
-
slots:
|
|
360
|
+
slots: InputMenuSlots<T, VK, M, NestedItem<T>>;
|
|
347
361
|
emit: (((evt: "blur", payload: FocusEvent) => void) & ((evt: "change", payload: Event) => void) & ((evt: "focus", payload: FocusEvent) => void) & ((evt: "create", item: string) => void) & ((evt: "highlight", payload: {
|
|
348
362
|
ref: HTMLElement;
|
|
349
363
|
value: GetModelValue<T, VK, M>;
|
|
@@ -104,11 +104,7 @@ export interface InputNumberSlots {
|
|
|
104
104
|
increment(props?: {}): any;
|
|
105
105
|
decrement(props?: {}): any;
|
|
106
106
|
}
|
|
107
|
-
declare const _default:
|
|
108
|
-
orientation: string;
|
|
109
|
-
color: string;
|
|
110
|
-
size: string;
|
|
111
|
-
}>>, {
|
|
107
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<InputNumberProps, {
|
|
112
108
|
inputRef: import("vue").Ref<({
|
|
113
109
|
$: import("vue").ComponentInternalInstance;
|
|
114
110
|
$data: {};
|
|
@@ -208,31 +204,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
208
204
|
default?(_: {}): any;
|
|
209
205
|
};
|
|
210
206
|
}) | null>;
|
|
211
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
207
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
208
|
+
blur: (event: FocusEvent) => any;
|
|
209
|
+
change: (payload: Event) => any;
|
|
210
|
+
"update:modelValue": (payload: number) => any;
|
|
211
|
+
}, string, import("vue").PublicProps, Readonly<InputNumberProps> & Readonly<{
|
|
212
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
213
|
+
onChange?: ((payload: Event) => any) | undefined;
|
|
214
|
+
"onUpdate:modelValue"?: ((payload: number) => any) | undefined;
|
|
215
|
+
}>, {
|
|
212
216
|
size: InputNumber["variants"]["size"];
|
|
213
217
|
orientation: "vertical" | "horizontal";
|
|
214
218
|
color: InputNumber["variants"]["color"];
|
|
215
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
219
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, InputNumberSlots>;
|
|
216
220
|
export default _default;
|
|
217
|
-
type
|
|
218
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
219
|
-
default: D[K];
|
|
220
|
-
}> : P[K];
|
|
221
|
-
};
|
|
222
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
223
|
-
type __VLS_TypePropsToOption<T> = {
|
|
224
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
225
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
226
|
-
} : {
|
|
227
|
-
type: import('vue').PropType<T[K]>;
|
|
228
|
-
required: true;
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
221
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
232
222
|
new (): {
|
|
233
223
|
$slots: S;
|
|
234
224
|
};
|
|
235
225
|
};
|
|
236
|
-
type __VLS_PrettifyLocal<T> = {
|
|
237
|
-
[K in keyof T]: T[K];
|
|
238
|
-
} & {};
|
|
@@ -23,33 +23,12 @@ export interface KbdProps {
|
|
|
23
23
|
export interface KbdSlots {
|
|
24
24
|
default(props?: {}): any;
|
|
25
25
|
}
|
|
26
|
-
declare const _default:
|
|
27
|
-
as: string;
|
|
28
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<KbdProps>, {
|
|
29
|
-
as: string;
|
|
30
|
-
}>>> & Readonly<{}>, {
|
|
26
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<KbdProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<KbdProps> & Readonly<{}>, {
|
|
31
27
|
as: any;
|
|
32
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, KbdSlots>;
|
|
33
29
|
export default _default;
|
|
34
|
-
type
|
|
35
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
36
|
-
default: D[K];
|
|
37
|
-
}> : P[K];
|
|
38
|
-
};
|
|
39
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
-
type __VLS_TypePropsToOption<T> = {
|
|
41
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
-
} : {
|
|
44
|
-
type: import('vue').PropType<T[K]>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
31
|
new (): {
|
|
50
32
|
$slots: S;
|
|
51
33
|
};
|
|
52
34
|
};
|
|
53
|
-
type __VLS_PrettifyLocal<T> = {
|
|
54
|
-
[K in keyof T]: T[K];
|
|
55
|
-
} & {};
|
|
@@ -79,23 +79,7 @@ export interface LinkSlots {
|
|
|
79
79
|
active: boolean;
|
|
80
80
|
}): any;
|
|
81
81
|
}
|
|
82
|
-
declare const _default:
|
|
83
|
-
as: string;
|
|
84
|
-
type: string;
|
|
85
|
-
ariaCurrentValue: string;
|
|
86
|
-
active: undefined;
|
|
87
|
-
isAction: boolean;
|
|
88
|
-
activeClass: string;
|
|
89
|
-
inactiveClass: string;
|
|
90
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
|
|
91
|
-
as: string;
|
|
92
|
-
type: string;
|
|
93
|
-
ariaCurrentValue: string;
|
|
94
|
-
active: undefined;
|
|
95
|
-
isAction: boolean;
|
|
96
|
-
activeClass: string;
|
|
97
|
-
inactiveClass: string;
|
|
98
|
-
}>>> & Readonly<{}>, {
|
|
82
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
99
83
|
as: any;
|
|
100
84
|
type: "reset" | "submit" | "button";
|
|
101
85
|
activeClass: string;
|
|
@@ -103,27 +87,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
103
87
|
active: boolean;
|
|
104
88
|
inactiveClass: string;
|
|
105
89
|
isAction: boolean;
|
|
106
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
90
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
107
91
|
export default _default;
|
|
108
|
-
type
|
|
109
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
110
|
-
default: D[K];
|
|
111
|
-
}> : P[K];
|
|
112
|
-
};
|
|
113
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
114
|
-
type __VLS_TypePropsToOption<T> = {
|
|
115
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
116
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
117
|
-
} : {
|
|
118
|
-
type: import('vue').PropType<T[K]>;
|
|
119
|
-
required: true;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
92
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
123
93
|
new (): {
|
|
124
94
|
$slots: S;
|
|
125
95
|
};
|
|
126
96
|
};
|
|
127
|
-
type __VLS_PrettifyLocal<T> = {
|
|
128
|
-
[K in keyof T]: T[K];
|
|
129
|
-
} & {};
|
|
@@ -11,38 +11,15 @@ export interface LinkBaseProps {
|
|
|
11
11
|
active?: boolean;
|
|
12
12
|
isExternal?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const _default:
|
|
14
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
15
15
|
as: string;
|
|
16
16
|
type: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type: string;
|
|
20
|
-
}>>> & Readonly<{}>, {
|
|
21
|
-
as: string;
|
|
22
|
-
type: string;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
24
|
-
default?(_: {}): any;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
18
|
+
default?: (props: {}) => any;
|
|
25
19
|
}>;
|
|
26
20
|
export default _default;
|
|
27
|
-
type
|
|
28
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
29
|
-
default: D[K];
|
|
30
|
-
}> : P[K];
|
|
31
|
-
};
|
|
32
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
-
type __VLS_TypePropsToOption<T> = {
|
|
34
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
-
} : {
|
|
37
|
-
type: import('vue').PropType<T[K]>;
|
|
38
|
-
required: true;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
42
22
|
new (): {
|
|
43
23
|
$slots: S;
|
|
44
24
|
};
|
|
45
25
|
};
|
|
46
|
-
type __VLS_PrettifyLocal<T> = {
|
|
47
|
-
[K in keyof T]: T[K];
|
|
48
|
-
} & {};
|
|
@@ -31,7 +31,7 @@ const props = defineProps({
|
|
|
31
31
|
defaultOpen: { type: Boolean, required: false },
|
|
32
32
|
modal: { type: Boolean, required: false, default: true }
|
|
33
33
|
});
|
|
34
|
-
const emits = defineEmits(["after:leave", "update:open"]);
|
|
34
|
+
const emits = defineEmits(["after:leave", "close:prevent", "update:open"]);
|
|
35
35
|
const slots = defineSlots();
|
|
36
36
|
const { t } = useLocale();
|
|
37
37
|
const appConfig = useAppConfig();
|
|
@@ -39,18 +39,20 @@ const rootProps = useForwardPropsEmits(reactivePick(props, "open", "defaultOpen"
|
|
|
39
39
|
const portalProps = usePortal(toRef(() => props.portal));
|
|
40
40
|
const contentProps = toRef(() => props.content);
|
|
41
41
|
const contentEvents = computed(() => {
|
|
42
|
-
const
|
|
42
|
+
const defaultEvents = {
|
|
43
43
|
closeAutoFocus: (e) => e.preventDefault()
|
|
44
44
|
};
|
|
45
45
|
if (!props.dismissible) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
const events = ["pointerDownOutside", "interactOutside", "escapeKeyDown", "closeAutoFocus"];
|
|
47
|
+
return events.reduce((acc, curr) => {
|
|
48
|
+
acc[curr] = (e) => {
|
|
49
|
+
e.preventDefault();
|
|
50
|
+
emits("close:prevent");
|
|
51
|
+
};
|
|
52
|
+
return acc;
|
|
53
|
+
}, {});
|
|
52
54
|
}
|
|
53
|
-
return
|
|
55
|
+
return defaultEvents;
|
|
54
56
|
});
|
|
55
57
|
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.modal || {} })({
|
|
56
58
|
transition: props.transition,
|
|
@@ -63,6 +63,7 @@ export interface ModalProps extends DialogRootProps {
|
|
|
63
63
|
}
|
|
64
64
|
export interface ModalEmits extends DialogRootEmits {
|
|
65
65
|
'after:leave': [];
|
|
66
|
+
'close:prevent': [];
|
|
66
67
|
}
|
|
67
68
|
export interface ModalSlots {
|
|
68
69
|
default(props: {
|
|
@@ -80,16 +81,15 @@ export interface ModalSlots {
|
|
|
80
81
|
body(props?: {}): any;
|
|
81
82
|
footer(props?: {}): any;
|
|
82
83
|
}
|
|
83
|
-
declare const _default:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
84
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
85
|
+
"update:open": (value: boolean) => any;
|
|
86
|
+
"after:leave": () => any;
|
|
87
|
+
"close:prevent": () => any;
|
|
88
|
+
}, string, import("vue").PublicProps, Readonly<ModalProps> & Readonly<{
|
|
89
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
90
|
+
"onAfter:leave"?: (() => any) | undefined;
|
|
91
|
+
"onClose:prevent"?: (() => any) | undefined;
|
|
92
|
+
}>, {
|
|
93
93
|
close: boolean | Partial<ButtonProps>;
|
|
94
94
|
modal: boolean;
|
|
95
95
|
transition: boolean;
|
|
@@ -98,27 +98,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
98
98
|
overlayBlur: Modal["variants"]["overlayBlur"];
|
|
99
99
|
dismissible: boolean;
|
|
100
100
|
scrollbarThin: boolean;
|
|
101
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
101
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ModalSlots>;
|
|
102
102
|
export default _default;
|
|
103
|
-
type
|
|
104
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
105
|
-
default: D[K];
|
|
106
|
-
}> : P[K];
|
|
107
|
-
};
|
|
108
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
109
|
-
type __VLS_TypePropsToOption<T> = {
|
|
110
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
111
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
112
|
-
} : {
|
|
113
|
-
type: import('vue').PropType<T[K]>;
|
|
114
|
-
required: true;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
103
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
118
104
|
new (): {
|
|
119
105
|
$slots: S;
|
|
120
106
|
};
|
|
121
107
|
};
|
|
122
|
-
type __VLS_PrettifyLocal<T> = {
|
|
123
|
-
[K in keyof T]: T[K];
|
|
124
|
-
} & {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface ModalDialogCloseSlots {
|
|
2
2
|
default(props: {}): any;
|
|
3
3
|
}
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, ModalDialogCloseSlots>;
|
|
5
5
|
export default _default;
|
|
6
|
-
type
|
|
6
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
7
7
|
new (): {
|
|
8
8
|
$slots: S;
|
|
9
9
|
};
|
|
@@ -14,33 +14,12 @@ export interface NavbarProps {
|
|
|
14
14
|
export interface NavbarSlots {
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default:
|
|
18
|
-
as: string;
|
|
19
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NavbarProps>, {
|
|
20
|
-
as: string;
|
|
21
|
-
}>>> & Readonly<{}>, {
|
|
17
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<NavbarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavbarProps> & Readonly<{}>, {
|
|
22
18
|
as: any;
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, NavbarSlots>;
|
|
24
20
|
export default _default;
|
|
25
|
-
type
|
|
26
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
27
|
-
default: D[K];
|
|
28
|
-
}> : P[K];
|
|
29
|
-
};
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToOption<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
22
|
new (): {
|
|
41
23
|
$slots: S;
|
|
42
24
|
};
|
|
43
25
|
};
|
|
44
|
-
type __VLS_PrettifyLocal<T> = {
|
|
45
|
-
[K in keyof T]: T[K];
|
|
46
|
-
} & {};
|