@ark-ui/vue 5.21.0 → 5.23.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/components/combobox/combobox-empty.vue.cjs +35 -0
- package/dist/components/combobox/combobox-empty.vue.d.cts +19 -0
- package/dist/components/combobox/combobox-empty.vue.d.ts +19 -0
- package/dist/components/combobox/combobox-empty.vue.js +31 -0
- package/dist/components/combobox/combobox-empty.vue2.cjs +9 -0
- package/dist/components/combobox/combobox-empty.vue2.js +5 -0
- package/dist/components/combobox/combobox-root-provider.vue.d.cts +2 -0
- package/dist/components/combobox/combobox-root-provider.vue.d.ts +2 -0
- package/dist/components/combobox/combobox-root.vue.d.cts +2 -0
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -0
- package/dist/components/combobox/combobox.anatomy.cjs +9 -0
- package/dist/components/combobox/combobox.anatomy.d.cts +2 -1
- package/dist/components/combobox/combobox.anatomy.d.ts +2 -1
- package/dist/components/combobox/combobox.anatomy.js +5 -0
- package/dist/components/combobox/combobox.cjs +2 -0
- package/dist/components/combobox/combobox.d.cts +3 -2
- package/dist/components/combobox/combobox.d.ts +3 -2
- package/dist/components/combobox/combobox.js +1 -0
- package/dist/components/combobox/index.cjs +6 -7
- package/dist/components/combobox/index.d.cts +3 -2
- package/dist/components/combobox/index.d.ts +3 -2
- package/dist/components/combobox/index.js +2 -1
- package/dist/components/dialog/dialog-root.vue.cjs +1 -1
- package/dist/components/dialog/dialog-root.vue.d.cts +12 -0
- package/dist/components/dialog/dialog-root.vue.d.ts +12 -0
- package/dist/components/dialog/dialog-root.vue.js +1 -1
- package/dist/components/dialog/dialog.types.d.cts +11 -0
- package/dist/components/dialog/dialog.types.d.ts +11 -0
- package/dist/components/dialog/use-dialog.cjs +4 -0
- package/dist/components/dialog/use-dialog.js +4 -0
- package/dist/components/field/use-field.cjs +1 -0
- package/dist/components/field/use-field.d.cts +1 -0
- package/dist/components/field/use-field.d.ts +1 -0
- package/dist/components/field/use-field.js +1 -0
- package/dist/components/hover-card/hover-card-root.vue.cjs +2 -0
- package/dist/components/hover-card/hover-card-root.vue.d.cts +1 -0
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -0
- package/dist/components/hover-card/hover-card-root.vue.js +2 -0
- package/dist/components/hover-card/hover-card.types.d.cts +4 -0
- package/dist/components/hover-card/hover-card.types.d.ts +4 -0
- package/dist/components/index.cjs +12 -14
- package/dist/components/index.js +4 -2
- package/dist/components/listbox/index.cjs +6 -7
- package/dist/components/listbox/index.d.cts +3 -2
- package/dist/components/listbox/index.d.ts +3 -2
- package/dist/components/listbox/index.js +2 -1
- package/dist/components/listbox/listbox-empty.vue.cjs +35 -0
- package/dist/components/listbox/listbox-empty.vue.d.cts +19 -0
- package/dist/components/listbox/listbox-empty.vue.d.ts +19 -0
- package/dist/components/listbox/listbox-empty.vue.js +31 -0
- package/dist/components/listbox/listbox-empty.vue2.cjs +9 -0
- package/dist/components/listbox/listbox-empty.vue2.js +5 -0
- package/dist/components/listbox/listbox-root-provider.vue.d.cts +2 -0
- package/dist/components/listbox/listbox-root-provider.vue.d.ts +2 -0
- package/dist/components/listbox/listbox-root.vue.d.cts +2 -0
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -0
- package/dist/components/listbox/listbox.anatomy.cjs +9 -0
- package/dist/components/listbox/listbox.anatomy.d.cts +2 -1
- package/dist/components/listbox/listbox.anatomy.d.ts +2 -1
- package/dist/components/listbox/listbox.anatomy.js +5 -0
- package/dist/components/listbox/listbox.cjs +2 -0
- package/dist/components/listbox/listbox.d.cts +3 -2
- package/dist/components/listbox/listbox.d.ts +3 -2
- package/dist/components/listbox/listbox.js +1 -0
- package/dist/components/menu/menu-root.vue.cjs +1 -1
- package/dist/components/menu/menu-root.vue.d.cts +12 -0
- package/dist/components/menu/menu-root.vue.d.ts +12 -0
- package/dist/components/menu/menu-root.vue.js +1 -1
- package/dist/components/menu/menu-trigger-item.vue.cjs +2 -0
- package/dist/components/menu/menu-trigger-item.vue.js +3 -1
- package/dist/components/menu/menu.types.d.cts +11 -0
- package/dist/components/menu/menu.types.d.ts +11 -0
- package/dist/components/popover/popover-root.vue.cjs +1 -1
- package/dist/components/popover/popover-root.vue.d.cts +12 -0
- package/dist/components/popover/popover-root.vue.d.ts +12 -0
- package/dist/components/popover/popover-root.vue.js +1 -1
- package/dist/components/popover/popover.types.d.cts +11 -0
- package/dist/components/popover/popover.types.d.ts +11 -0
- package/dist/components/segment-group/segment-group.anatomy.d.cts +2 -2
- package/dist/components/segment-group/segment-group.anatomy.d.ts +2 -2
- package/dist/components/select/index.d.cts +2 -2
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/select-root-provider.vue.d.cts +2 -0
- package/dist/components/select/select-root-provider.vue.d.ts +2 -0
- package/dist/components/select/select-root.vue.d.cts +2 -0
- package/dist/components/select/select-root.vue.d.ts +2 -0
- package/dist/components/select/select.d.cts +2 -2
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/signature-pad/signature-pad-segment.vue.cjs +1 -2
- package/dist/components/signature-pad/signature-pad-segment.vue.js +1 -2
- package/dist/components/tree-view/index.d.cts +2 -2
- package/dist/components/tree-view/index.d.ts +2 -2
- package/dist/components/tree-view/tree-view-root-provider.vue.d.cts +2 -0
- package/dist/components/tree-view/tree-view-root-provider.vue.d.ts +2 -0
- package/dist/components/tree-view/tree-view-root.vue.d.cts +2 -0
- package/dist/components/tree-view/tree-view-root.vue.d.ts +2 -0
- package/dist/components/tree-view/tree-view.d.cts +2 -2
- package/dist/components/tree-view/tree-view.d.ts +2 -2
- package/dist/index.cjs +12 -14
- package/dist/index.js +4 -2
- package/package.json +68 -68
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const factory = require('../factory.cjs');
|
|
7
|
+
const combobox_anatomy = require('./combobox.anatomy.cjs');
|
|
8
|
+
const useComboboxContext = require('./use-combobox-context.cjs');
|
|
9
|
+
const useForwardExpose = require('../../utils/use-forward-expose.cjs');
|
|
10
|
+
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
__name: "combobox-empty",
|
|
13
|
+
props: {
|
|
14
|
+
asChild: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const parts = combobox_anatomy.comboboxAnatomy.build();
|
|
18
|
+
const combobox = useComboboxContext.useComboboxContext();
|
|
19
|
+
const isEmpty = vue.computed(() => combobox.value.collection.size === 0);
|
|
20
|
+
useForwardExpose.useForwardExpose();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ key: 0 }, vue.unref(parts).empty.attrs, {
|
|
23
|
+
role: "presentation",
|
|
24
|
+
"as-child": _ctx.asChild
|
|
25
|
+
}), {
|
|
26
|
+
default: vue.withCtx(() => [
|
|
27
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["as-child"])) : vue.createCommentVNode("", true);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface ComboboxEmptyBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ComboboxEmptyProps extends ComboboxEmptyBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<ComboboxEmptyProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ComboboxEmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface ComboboxEmptyBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface ComboboxEmptyProps extends ComboboxEmptyBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<ComboboxEmptyProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ComboboxEmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, createCommentVNode, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { ark } from '../factory.js';
|
|
3
|
+
import { comboboxAnatomy } from './combobox.anatomy.js';
|
|
4
|
+
import { useComboboxContext } from './use-combobox-context.js';
|
|
5
|
+
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
6
|
+
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "combobox-empty",
|
|
9
|
+
props: {
|
|
10
|
+
asChild: { type: Boolean }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const parts = comboboxAnatomy.build();
|
|
14
|
+
const combobox = useComboboxContext();
|
|
15
|
+
const isEmpty = computed(() => combobox.value.collection.size === 0);
|
|
16
|
+
useForwardExpose();
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return isEmpty.value ? (openBlock(), createBlock(unref(ark).div, mergeProps({ key: 0 }, unref(parts).empty.attrs, {
|
|
19
|
+
role: "presentation",
|
|
20
|
+
"as-child": _ctx.asChild
|
|
21
|
+
}), {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
renderSlot(_ctx.$slots, "default")
|
|
24
|
+
]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["as-child"])) : createCommentVNode("", true);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const comboboxEmpty_vue_vue_type_script_setup_true_lang = require('./combobox-empty.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = comboboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { RenderStrategyProps } from '../../utils';
|
|
3
4
|
import { CollectionItem } from '../collection';
|
|
4
5
|
import { PolymorphicProps } from '../factory';
|
|
@@ -14,6 +15,7 @@ export interface ComboboxRootProviderProps<T extends CollectionItem> extends Com
|
|
|
14
15
|
*/
|
|
15
16
|
HTMLAttributes {
|
|
16
17
|
}
|
|
18
|
+
export type ComboboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProviderProps<T>, P>) => any;
|
|
17
19
|
declare const _default: <T extends CollectionItem>(__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<{
|
|
18
20
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ComboboxRootProviderProps<T> & Partial<{}>> & PublicProps;
|
|
19
21
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, UnwrapRef, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { RenderStrategyProps } from '../../utils';
|
|
3
4
|
import { CollectionItem } from '../collection';
|
|
4
5
|
import { PolymorphicProps } from '../factory';
|
|
@@ -14,6 +15,7 @@ export interface ComboboxRootProviderProps<T extends CollectionItem> extends Com
|
|
|
14
15
|
*/
|
|
15
16
|
HTMLAttributes {
|
|
16
17
|
}
|
|
18
|
+
export type ComboboxRootProviderComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProviderProps<T>, P>) => any;
|
|
17
19
|
declare const _default: <T extends CollectionItem>(__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<{
|
|
18
20
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ComboboxRootProviderProps<T> & Partial<{}>> & PublicProps;
|
|
19
21
|
expose(exposed: ShallowUnwrapRef<{}>): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { RenderStrategyProps } from '../../utils';
|
|
3
4
|
import { CollectionItem } from '../collection';
|
|
4
5
|
import { PolymorphicProps } from '../factory';
|
|
@@ -13,6 +14,7 @@ export interface ComboboxRootProps<T extends CollectionItem> extends ComboboxRoo
|
|
|
13
14
|
*/
|
|
14
15
|
Omit<HTMLAttributes, 'onSelect'> {
|
|
15
16
|
}
|
|
17
|
+
export type ComboboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProps<T>, P>) => any;
|
|
16
18
|
export type { RootEmits as ComboboxRootEmits } from './combobox.types';
|
|
17
19
|
declare const _default: <T extends CollectionItem>(__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<{
|
|
18
20
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { Assign } from '../../types';
|
|
2
3
|
import { RenderStrategyProps } from '../../utils';
|
|
3
4
|
import { CollectionItem } from '../collection';
|
|
4
5
|
import { PolymorphicProps } from '../factory';
|
|
@@ -13,6 +14,7 @@ export interface ComboboxRootProps<T extends CollectionItem> extends ComboboxRoo
|
|
|
13
14
|
*/
|
|
14
15
|
Omit<HTMLAttributes, 'onSelect'> {
|
|
15
16
|
}
|
|
17
|
+
export type ComboboxRootComponent<P = {}> = <T extends CollectionItem>(props: Assign<ComboboxRootProps<T>, P>) => any;
|
|
16
18
|
export type { RootEmits as ComboboxRootEmits } from './combobox.types';
|
|
17
19
|
declare const _default: <T extends CollectionItem>(__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<{
|
|
18
20
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
+
export declare const comboboxAnatomy: AnatomyInstance<"input" | "label" | "list" | "content" | "root" | "item" | "trigger" | "control" | "itemGroup" | "positioner" | "clearTrigger" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { AnatomyInstance } from '@zag-js/anatomy';
|
|
2
|
+
export declare const comboboxAnatomy: AnatomyInstance<"input" | "label" | "list" | "content" | "root" | "item" | "trigger" | "control" | "itemGroup" | "positioner" | "clearTrigger" | "itemGroupLabel" | "itemIndicator" | "itemText" | "empty">;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const comboboxClearTrigger_vue_vue_type_script_setup_true_lang = require('./combobox-clear-trigger.vue.cjs');
|
|
6
6
|
const comboboxContent_vue_vue_type_script_setup_true_lang = require('./combobox-content.vue.cjs');
|
|
7
|
+
const comboboxEmpty_vue_vue_type_script_setup_true_lang = require('./combobox-empty.vue.cjs');
|
|
7
8
|
const comboboxContext_vue_vue_type_script_setup_true_lang = require('./combobox-context.vue.cjs');
|
|
8
9
|
const comboboxControl_vue_vue_type_script_setup_true_lang = require('./combobox-control.vue.cjs');
|
|
9
10
|
const comboboxInput_vue_vue_type_script_setup_true_lang = require('./combobox-input.vue.cjs');
|
|
@@ -24,6 +25,7 @@ const comboboxTrigger_vue_vue_type_script_setup_true_lang = require('./combobox-
|
|
|
24
25
|
|
|
25
26
|
exports.ClearTrigger = comboboxClearTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
26
27
|
exports.Content = comboboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
28
|
+
exports.Empty = comboboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
27
29
|
exports.Context = comboboxContext_vue_vue_type_script_setup_true_lang.default;
|
|
28
30
|
exports.Control = comboboxControl_vue_vue_type_script_setup_true_lang.default;
|
|
29
31
|
exports.Input = comboboxInput_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { HighlightChangeDetails, InputValueChangeDetails, OpenChangeDetails, ValueChangeDetails, SelectionDetails, } from '@zag-js/combobox';
|
|
2
2
|
export { default as ClearTrigger, type ComboboxClearTriggerProps as ClearTriggerProps, type ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, } from './combobox-clear-trigger.vue';
|
|
3
3
|
export { default as Content, type ComboboxContentProps as ContentProps, type ComboboxContentBaseProps as ContentBaseProps, } from './combobox-content.vue';
|
|
4
|
+
export { default as Empty, type ComboboxEmptyProps as EmptyProps, type ComboboxEmptyBaseProps as EmptyBaseProps, } from './combobox-empty.vue';
|
|
4
5
|
export { default as Context, type ComboboxContextProps as ContextProps } from './combobox-context.vue';
|
|
5
6
|
export { default as Control, type ComboboxControlProps as ControlProps, type ComboboxControlBaseProps as ControlBaseProps, } from './combobox-control.vue';
|
|
6
7
|
export { default as Input, type ComboboxInputProps as InputProps, type ComboboxInputBaseProps as InputBaseProps, } from './combobox-input.vue';
|
|
@@ -13,6 +14,6 @@ export { default as Item, type ComboboxItemProps as ItemProps, type ComboboxItem
|
|
|
13
14
|
export { default as Label, type ComboboxLabelProps as LabelProps, type ComboboxLabelBaseProps as LabelBaseProps, } from './combobox-label.vue';
|
|
14
15
|
export { default as List, type ComboboxListProps as ListProps, type ComboboxListBaseProps as ListBaseProps, } from './combobox-list.vue';
|
|
15
16
|
export { default as Positioner, type ComboboxPositionerProps as PositionerProps, type ComboboxPositionerBaseProps as PositionerBaseProps, } from './combobox-positioner.vue';
|
|
16
|
-
export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, } from './combobox-root-provider.vue';
|
|
17
|
-
export { default as Root, type
|
|
17
|
+
export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, type ComboboxRootProviderComponent as RootProviderComponent, } from './combobox-root-provider.vue';
|
|
18
|
+
export { default as Root, type ComboboxRootBaseProps as RootBaseProps, type ComboboxRootComponent as RootComponent, type ComboboxRootEmits as RootEmits, type ComboboxRootProps as RootProps, } from './combobox-root.vue';
|
|
18
19
|
export { default as Trigger, type ComboboxTriggerProps as TriggerProps, type ComboboxTriggerBaseProps as TriggerBaseProps, } from './combobox-trigger.vue';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { HighlightChangeDetails, InputValueChangeDetails, OpenChangeDetails, ValueChangeDetails, SelectionDetails, } from '@zag-js/combobox';
|
|
2
2
|
export { default as ClearTrigger, type ComboboxClearTriggerProps as ClearTriggerProps, type ComboboxClearTriggerBaseProps as ClearTriggerBaseProps, } from './combobox-clear-trigger.vue';
|
|
3
3
|
export { default as Content, type ComboboxContentProps as ContentProps, type ComboboxContentBaseProps as ContentBaseProps, } from './combobox-content.vue';
|
|
4
|
+
export { default as Empty, type ComboboxEmptyProps as EmptyProps, type ComboboxEmptyBaseProps as EmptyBaseProps, } from './combobox-empty.vue';
|
|
4
5
|
export { default as Context, type ComboboxContextProps as ContextProps } from './combobox-context.vue';
|
|
5
6
|
export { default as Control, type ComboboxControlProps as ControlProps, type ComboboxControlBaseProps as ControlBaseProps, } from './combobox-control.vue';
|
|
6
7
|
export { default as Input, type ComboboxInputProps as InputProps, type ComboboxInputBaseProps as InputBaseProps, } from './combobox-input.vue';
|
|
@@ -13,6 +14,6 @@ export { default as Item, type ComboboxItemProps as ItemProps, type ComboboxItem
|
|
|
13
14
|
export { default as Label, type ComboboxLabelProps as LabelProps, type ComboboxLabelBaseProps as LabelBaseProps, } from './combobox-label.vue';
|
|
14
15
|
export { default as List, type ComboboxListProps as ListProps, type ComboboxListBaseProps as ListBaseProps, } from './combobox-list.vue';
|
|
15
16
|
export { default as Positioner, type ComboboxPositionerProps as PositionerProps, type ComboboxPositionerBaseProps as PositionerBaseProps, } from './combobox-positioner.vue';
|
|
16
|
-
export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, } from './combobox-root-provider.vue';
|
|
17
|
-
export { default as Root, type
|
|
17
|
+
export { default as RootProvider, type ComboboxRootProviderProps as RootProviderProps, type ComboboxRootProviderBaseProps as RootProviderBaseProps, type ComboboxRootProviderComponent as RootProviderComponent, } from './combobox-root-provider.vue';
|
|
18
|
+
export { default as Root, type ComboboxRootBaseProps as RootBaseProps, type ComboboxRootComponent as RootComponent, type ComboboxRootEmits as RootEmits, type ComboboxRootProps as RootProps, } from './combobox-root.vue';
|
|
18
19
|
export { default as Trigger, type ComboboxTriggerProps as TriggerProps, type ComboboxTriggerBaseProps as TriggerBaseProps, } from './combobox-trigger.vue';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ClearTrigger } from './combobox-clear-trigger.vue.js';
|
|
2
2
|
export { default as Content } from './combobox-content.vue.js';
|
|
3
|
+
export { default as Empty } from './combobox-empty.vue.js';
|
|
3
4
|
export { default as Context } from './combobox-context.vue.js';
|
|
4
5
|
export { default as Control } from './combobox-control.vue.js';
|
|
5
6
|
export { default as Input } from './combobox-input.vue.js';
|
|
@@ -6,6 +6,7 @@ const listCollection = require('../collection/list-collection.cjs');
|
|
|
6
6
|
const useListCollection = require('../collection/use-list-collection.cjs');
|
|
7
7
|
const comboboxClearTrigger_vue_vue_type_script_setup_true_lang = require('./combobox-clear-trigger.vue.cjs');
|
|
8
8
|
const comboboxContent_vue_vue_type_script_setup_true_lang = require('./combobox-content.vue.cjs');
|
|
9
|
+
const comboboxEmpty_vue_vue_type_script_setup_true_lang = require('./combobox-empty.vue.cjs');
|
|
9
10
|
const comboboxContext_vue_vue_type_script_setup_true_lang = require('./combobox-context.vue.cjs');
|
|
10
11
|
const comboboxControl_vue_vue_type_script_setup_true_lang = require('./combobox-control.vue.cjs');
|
|
11
12
|
const comboboxInput_vue_vue_type_script_setup_true_lang = require('./combobox-input.vue.cjs');
|
|
@@ -21,11 +22,11 @@ const comboboxPositioner_vue_vue_type_script_setup_true_lang = require('./combob
|
|
|
21
22
|
const comboboxRootProvider_vue_vue_type_script_setup_true_lang = require('./combobox-root-provider.vue.cjs');
|
|
22
23
|
const comboboxRoot_vue_vue_type_script_setup_true_lang = require('./combobox-root.vue.cjs');
|
|
23
24
|
const comboboxTrigger_vue_vue_type_script_setup_true_lang = require('./combobox-trigger.vue.cjs');
|
|
25
|
+
const combobox_anatomy = require('./combobox.anatomy.cjs');
|
|
24
26
|
const useCombobox = require('./use-combobox.cjs');
|
|
25
27
|
const useComboboxContext = require('./use-combobox-context.cjs');
|
|
26
28
|
const useComboboxItemContext = require('./use-combobox-item-context.cjs');
|
|
27
|
-
const combobox
|
|
28
|
-
const combobox = require('@zag-js/combobox');
|
|
29
|
+
const combobox = require('./combobox.cjs');
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
@@ -33,6 +34,7 @@ exports.createListCollection = listCollection.createListCollection;
|
|
|
33
34
|
exports.useListCollection = useListCollection.useListCollection;
|
|
34
35
|
exports.ComboboxClearTrigger = comboboxClearTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
35
36
|
exports.ComboboxContent = comboboxContent_vue_vue_type_script_setup_true_lang.default;
|
|
37
|
+
exports.ComboboxEmpty = comboboxEmpty_vue_vue_type_script_setup_true_lang.default;
|
|
36
38
|
exports.ComboboxContext = comboboxContext_vue_vue_type_script_setup_true_lang.default;
|
|
37
39
|
exports.ComboboxControl = comboboxControl_vue_vue_type_script_setup_true_lang.default;
|
|
38
40
|
exports.ComboboxInput = comboboxInput_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -48,11 +50,8 @@ exports.ComboboxPositioner = comboboxPositioner_vue_vue_type_script_setup_true_l
|
|
|
48
50
|
exports.ComboboxRootProvider = comboboxRootProvider_vue_vue_type_script_setup_true_lang.default;
|
|
49
51
|
exports.ComboboxRoot = comboboxRoot_vue_vue_type_script_setup_true_lang.default;
|
|
50
52
|
exports.ComboboxTrigger = comboboxTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
53
|
+
exports.comboboxAnatomy = combobox_anatomy.comboboxAnatomy;
|
|
51
54
|
exports.useCombobox = useCombobox.useCombobox;
|
|
52
55
|
exports.useComboboxContext = useComboboxContext.useComboboxContext;
|
|
53
56
|
exports.useComboboxItemContext = useComboboxItemContext.useComboboxItemContext;
|
|
54
|
-
exports.Combobox = combobox
|
|
55
|
-
Object.defineProperty(exports, "comboboxAnatomy", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: () => combobox.anatomy
|
|
58
|
-
});
|
|
57
|
+
exports.Combobox = combobox;
|
|
@@ -2,6 +2,7 @@ export type { HighlightChangeDetails as ComboboxHighlightChangeDetails, InputVal
|
|
|
2
2
|
export { createListCollection, type CollectionItem, type ListCollection, useListCollection, type UseListCollectionProps, } from '../collection';
|
|
3
3
|
export { default as ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, } from './combobox-clear-trigger.vue';
|
|
4
4
|
export { default as ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps, } from './combobox-content.vue';
|
|
5
|
+
export { default as ComboboxEmpty, type ComboboxEmptyBaseProps, type ComboboxEmptyProps } from './combobox-empty.vue';
|
|
5
6
|
export { default as ComboboxContext, type ComboboxContextProps } from './combobox-context.vue';
|
|
6
7
|
export { default as ComboboxControl, type ComboboxControlBaseProps, type ComboboxControlProps, } from './combobox-control.vue';
|
|
7
8
|
export { default as ComboboxInput, type ComboboxInputBaseProps, type ComboboxInputProps } from './combobox-input.vue';
|
|
@@ -14,8 +15,8 @@ export { default as ComboboxItem, type ComboboxItemBaseProps, type ComboboxItemP
|
|
|
14
15
|
export { default as ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps } from './combobox-label.vue';
|
|
15
16
|
export { default as ComboboxList, type ComboboxListBaseProps, type ComboboxListProps } from './combobox-list.vue';
|
|
16
17
|
export { default as ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, } from './combobox-positioner.vue';
|
|
17
|
-
export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, } from './combobox-root-provider.vue';
|
|
18
|
-
export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
|
|
18
|
+
export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, type ComboboxRootProviderComponent, } from './combobox-root-provider.vue';
|
|
19
|
+
export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootComponent, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
|
|
19
20
|
export { default as ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, } from './combobox-trigger.vue';
|
|
20
21
|
export { comboboxAnatomy } from './combobox.anatomy';
|
|
21
22
|
export { useCombobox, type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
|
|
@@ -2,6 +2,7 @@ export type { HighlightChangeDetails as ComboboxHighlightChangeDetails, InputVal
|
|
|
2
2
|
export { createListCollection, type CollectionItem, type ListCollection, useListCollection, type UseListCollectionProps, } from '../collection';
|
|
3
3
|
export { default as ComboboxClearTrigger, type ComboboxClearTriggerBaseProps, type ComboboxClearTriggerProps, } from './combobox-clear-trigger.vue';
|
|
4
4
|
export { default as ComboboxContent, type ComboboxContentBaseProps, type ComboboxContentProps, } from './combobox-content.vue';
|
|
5
|
+
export { default as ComboboxEmpty, type ComboboxEmptyBaseProps, type ComboboxEmptyProps } from './combobox-empty.vue';
|
|
5
6
|
export { default as ComboboxContext, type ComboboxContextProps } from './combobox-context.vue';
|
|
6
7
|
export { default as ComboboxControl, type ComboboxControlBaseProps, type ComboboxControlProps, } from './combobox-control.vue';
|
|
7
8
|
export { default as ComboboxInput, type ComboboxInputBaseProps, type ComboboxInputProps } from './combobox-input.vue';
|
|
@@ -14,8 +15,8 @@ export { default as ComboboxItem, type ComboboxItemBaseProps, type ComboboxItemP
|
|
|
14
15
|
export { default as ComboboxLabel, type ComboboxLabelBaseProps, type ComboboxLabelProps } from './combobox-label.vue';
|
|
15
16
|
export { default as ComboboxList, type ComboboxListBaseProps, type ComboboxListProps } from './combobox-list.vue';
|
|
16
17
|
export { default as ComboboxPositioner, type ComboboxPositionerBaseProps, type ComboboxPositionerProps, } from './combobox-positioner.vue';
|
|
17
|
-
export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, } from './combobox-root-provider.vue';
|
|
18
|
-
export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
|
|
18
|
+
export { default as ComboboxRootProvider, type ComboboxRootProviderBaseProps, type ComboboxRootProviderProps, type ComboboxRootProviderComponent, } from './combobox-root-provider.vue';
|
|
19
|
+
export { default as ComboboxRoot, type ComboboxRootBaseProps, type ComboboxRootComponent, type ComboboxRootEmits, type ComboboxRootProps, } from './combobox-root.vue';
|
|
19
20
|
export { default as ComboboxTrigger, type ComboboxTriggerBaseProps, type ComboboxTriggerProps, } from './combobox-trigger.vue';
|
|
20
21
|
export { comboboxAnatomy } from './combobox.anatomy';
|
|
21
22
|
export { useCombobox, type UseComboboxProps, type UseComboboxReturn } from './use-combobox';
|
|
@@ -2,6 +2,7 @@ export { createListCollection } from '../collection/list-collection.js';
|
|
|
2
2
|
export { useListCollection } from '../collection/use-list-collection.js';
|
|
3
3
|
export { default as ComboboxClearTrigger } from './combobox-clear-trigger.vue.js';
|
|
4
4
|
export { default as ComboboxContent } from './combobox-content.vue.js';
|
|
5
|
+
export { default as ComboboxEmpty } from './combobox-empty.vue.js';
|
|
5
6
|
export { default as ComboboxContext } from './combobox-context.vue.js';
|
|
6
7
|
export { default as ComboboxControl } from './combobox-control.vue.js';
|
|
7
8
|
export { default as ComboboxInput } from './combobox-input.vue.js';
|
|
@@ -17,9 +18,9 @@ export { default as ComboboxPositioner } from './combobox-positioner.vue.js';
|
|
|
17
18
|
export { default as ComboboxRootProvider } from './combobox-root-provider.vue.js';
|
|
18
19
|
export { default as ComboboxRoot } from './combobox-root.vue.js';
|
|
19
20
|
export { default as ComboboxTrigger } from './combobox-trigger.vue.js';
|
|
21
|
+
export { comboboxAnatomy } from './combobox.anatomy.js';
|
|
20
22
|
export { useCombobox } from './use-combobox.js';
|
|
21
23
|
export { useComboboxContext } from './use-combobox-context.js';
|
|
22
24
|
export { useComboboxItemContext } from './use-combobox-item-context.js';
|
|
23
25
|
import * as combobox from './combobox.js';
|
|
24
26
|
export { combobox as Combobox };
|
|
25
|
-
export { anatomy as comboboxAnatomy } from '@zag-js/combobox';
|
|
@@ -38,7 +38,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
38
38
|
restoreFocus: void 0,
|
|
39
39
|
trapFocus: void 0
|
|
40
40
|
}),
|
|
41
|
-
emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "update:open"],
|
|
41
|
+
emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "requestDismiss", "update:open"],
|
|
42
42
|
setup(__props, { emit: __emit }) {
|
|
43
43
|
const props = __props;
|
|
44
44
|
const emits = __emit;
|
|
@@ -16,6 +16,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<DialogRootProps
|
|
|
16
16
|
interactOutside: (event: InteractOutsideEvent) => any;
|
|
17
17
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
18
18
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
19
|
+
requestDismiss: (event: CustomEvent<{
|
|
20
|
+
originalLayer: HTMLElement;
|
|
21
|
+
targetLayer: HTMLElement | undefined;
|
|
22
|
+
originalIndex: number;
|
|
23
|
+
targetIndex: number;
|
|
24
|
+
}>) => any;
|
|
19
25
|
}, string, PublicProps, Readonly<DialogRootProps> & Readonly<{
|
|
20
26
|
onOpenChange?: ((details: OpenChangeDetails) => any) | undefined;
|
|
21
27
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
@@ -23,6 +29,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<DialogRootProps
|
|
|
23
29
|
onInteractOutside?: ((event: InteractOutsideEvent) => any) | undefined;
|
|
24
30
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
25
31
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
32
|
+
onRequestDismiss?: ((event: CustomEvent<{
|
|
33
|
+
originalLayer: HTMLElement;
|
|
34
|
+
targetLayer: HTMLElement | undefined;
|
|
35
|
+
originalIndex: number;
|
|
36
|
+
targetIndex: number;
|
|
37
|
+
}>) => any) | undefined;
|
|
26
38
|
}>, {
|
|
27
39
|
open: boolean;
|
|
28
40
|
defaultOpen: boolean;
|
|
@@ -16,6 +16,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<DialogRootProps
|
|
|
16
16
|
interactOutside: (event: InteractOutsideEvent) => any;
|
|
17
17
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
18
18
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
19
|
+
requestDismiss: (event: CustomEvent<{
|
|
20
|
+
originalLayer: HTMLElement;
|
|
21
|
+
targetLayer: HTMLElement | undefined;
|
|
22
|
+
originalIndex: number;
|
|
23
|
+
targetIndex: number;
|
|
24
|
+
}>) => any;
|
|
19
25
|
}, string, PublicProps, Readonly<DialogRootProps> & Readonly<{
|
|
20
26
|
onOpenChange?: ((details: OpenChangeDetails) => any) | undefined;
|
|
21
27
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
@@ -23,6 +29,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<DialogRootProps
|
|
|
23
29
|
onInteractOutside?: ((event: InteractOutsideEvent) => any) | undefined;
|
|
24
30
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
25
31
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
32
|
+
onRequestDismiss?: ((event: CustomEvent<{
|
|
33
|
+
originalLayer: HTMLElement;
|
|
34
|
+
targetLayer: HTMLElement | undefined;
|
|
35
|
+
originalIndex: number;
|
|
36
|
+
targetIndex: number;
|
|
37
|
+
}>) => any) | undefined;
|
|
26
38
|
}>, {
|
|
27
39
|
open: boolean;
|
|
28
40
|
defaultOpen: boolean;
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
restoreFocus: void 0,
|
|
35
35
|
trapFocus: void 0
|
|
36
36
|
}),
|
|
37
|
-
emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "update:open"],
|
|
37
|
+
emits: ["escapeKeyDown", "focusOutside", "interactOutside", "openChange", "pointerDownOutside", "requestDismiss", "update:open"],
|
|
38
38
|
setup(__props, { emit: __emit }) {
|
|
39
39
|
const props = __props;
|
|
40
40
|
const emits = __emit;
|
|
@@ -100,6 +100,17 @@ export type RootEmits = {
|
|
|
100
100
|
* Function called when the pointer is pressed down outside the component
|
|
101
101
|
*/
|
|
102
102
|
pointerDownOutside: [event: dialog.PointerDownOutsideEvent];
|
|
103
|
+
/**
|
|
104
|
+
* Function called when this layer is closed due to a parent layer being closed
|
|
105
|
+
*/
|
|
106
|
+
requestDismiss: [
|
|
107
|
+
event: CustomEvent<{
|
|
108
|
+
originalLayer: HTMLElement;
|
|
109
|
+
targetLayer: HTMLElement | undefined;
|
|
110
|
+
originalIndex: number;
|
|
111
|
+
targetIndex: number;
|
|
112
|
+
}>
|
|
113
|
+
];
|
|
103
114
|
/**
|
|
104
115
|
* The callback fired when the open state changes.
|
|
105
116
|
*/
|
|
@@ -100,6 +100,17 @@ export type RootEmits = {
|
|
|
100
100
|
* Function called when the pointer is pressed down outside the component
|
|
101
101
|
*/
|
|
102
102
|
pointerDownOutside: [event: dialog.PointerDownOutsideEvent];
|
|
103
|
+
/**
|
|
104
|
+
* Function called when this layer is closed due to a parent layer being closed
|
|
105
|
+
*/
|
|
106
|
+
requestDismiss: [
|
|
107
|
+
event: CustomEvent<{
|
|
108
|
+
originalLayer: HTMLElement;
|
|
109
|
+
targetLayer: HTMLElement | undefined;
|
|
110
|
+
originalIndex: number;
|
|
111
|
+
targetIndex: number;
|
|
112
|
+
}>
|
|
113
|
+
];
|
|
103
114
|
/**
|
|
104
115
|
* The callback fired when the open state changes.
|
|
105
116
|
*/
|
|
@@ -59,6 +59,10 @@ const useDialog = (props = {}, emit) => {
|
|
|
59
59
|
onPointerDownOutside: (details) => {
|
|
60
60
|
emit?.("pointerDownOutside", details);
|
|
61
61
|
localeProps.onPointerDownOutside?.(details);
|
|
62
|
+
},
|
|
63
|
+
onRequestDismiss: (details) => {
|
|
64
|
+
emit?.("requestDismiss", details);
|
|
65
|
+
localeProps.onRequestDismiss?.(details);
|
|
62
66
|
}
|
|
63
67
|
};
|
|
64
68
|
});
|
|
@@ -36,6 +36,10 @@ const useDialog = (props = {}, emit) => {
|
|
|
36
36
|
onPointerDownOutside: (details) => {
|
|
37
37
|
emit?.("pointerDownOutside", details);
|
|
38
38
|
localeProps.onPointerDownOutside?.(details);
|
|
39
|
+
},
|
|
40
|
+
onRequestDismiss: (details) => {
|
|
41
|
+
emit?.("requestDismiss", details);
|
|
42
|
+
localeProps.onRequestDismiss?.(details);
|
|
39
43
|
}
|
|
40
44
|
};
|
|
41
45
|
});
|
|
@@ -56,6 +56,7 @@ const useField = (props = {}) => {
|
|
|
56
56
|
"data-disabled": domQuery.dataAttr(values.disabled),
|
|
57
57
|
"data-invalid": domQuery.dataAttr(values.invalid),
|
|
58
58
|
"data-readonly": domQuery.dataAttr(values.readOnly),
|
|
59
|
+
"data-required": domQuery.dataAttr(values.required),
|
|
59
60
|
htmlFor: id.value
|
|
60
61
|
};
|
|
61
62
|
};
|
|
@@ -47,6 +47,7 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
47
47
|
'data-disabled': boolean | "false" | "true";
|
|
48
48
|
'data-invalid': boolean | "false" | "true";
|
|
49
49
|
'data-readonly': boolean | "false" | "true";
|
|
50
|
+
'data-required': boolean | "false" | "true";
|
|
50
51
|
htmlFor: string;
|
|
51
52
|
"data-scope": string;
|
|
52
53
|
"data-part": string;
|
|
@@ -47,6 +47,7 @@ export declare const useField: (props?: MaybeRef<UseFieldProps>) => ComputedRef<
|
|
|
47
47
|
'data-disabled': boolean | "false" | "true";
|
|
48
48
|
'data-invalid': boolean | "false" | "true";
|
|
49
49
|
'data-readonly': boolean | "false" | "true";
|
|
50
|
+
'data-required': boolean | "false" | "true";
|
|
50
51
|
htmlFor: string;
|
|
51
52
|
"data-scope": string;
|
|
52
53
|
"data-part": string;
|
|
@@ -13,6 +13,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
13
13
|
props: /* @__PURE__ */ vue.mergeDefaults({
|
|
14
14
|
closeDelay: {},
|
|
15
15
|
defaultOpen: { type: Boolean },
|
|
16
|
+
disabled: { type: Boolean },
|
|
16
17
|
id: {},
|
|
17
18
|
ids: {},
|
|
18
19
|
open: { type: Boolean },
|
|
@@ -22,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
23
|
unmountOnExit: { type: Boolean }
|
|
23
24
|
}, {
|
|
24
25
|
defaultOpen: void 0,
|
|
26
|
+
disabled: void 0,
|
|
25
27
|
open: void 0
|
|
26
28
|
}),
|
|
27
29
|
emits: ["focusOutside", "interactOutside", "openChange", "pointerDownOutside", "update:open"],
|
|
@@ -22,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<HoverCardRootPr
|
|
|
22
22
|
onInteractOutside?: ((event: InteractOutsideEvent) => any) | undefined;
|
|
23
23
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
+
disabled: boolean;
|
|
25
26
|
open: boolean;
|
|
26
27
|
defaultOpen: boolean;
|
|
27
28
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
@@ -22,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<HoverCardRootPr
|
|
|
22
22
|
onInteractOutside?: ((event: InteractOutsideEvent) => any) | undefined;
|
|
23
23
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
+
disabled: boolean;
|
|
25
26
|
open: boolean;
|
|
26
27
|
defaultOpen: boolean;
|
|
27
28
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
@@ -9,6 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
props: /* @__PURE__ */ mergeDefaults({
|
|
10
10
|
closeDelay: {},
|
|
11
11
|
defaultOpen: { type: Boolean },
|
|
12
|
+
disabled: { type: Boolean },
|
|
12
13
|
id: {},
|
|
13
14
|
ids: {},
|
|
14
15
|
open: { type: Boolean },
|
|
@@ -18,6 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
19
|
unmountOnExit: { type: Boolean }
|
|
19
20
|
}, {
|
|
20
21
|
defaultOpen: void 0,
|
|
22
|
+
disabled: void 0,
|
|
21
23
|
open: void 0
|
|
22
24
|
}),
|
|
23
25
|
emits: ["focusOutside", "interactOutside", "openChange", "pointerDownOutside", "update:open"],
|
|
@@ -10,6 +10,10 @@ export interface RootProps {
|
|
|
10
10
|
* Use when you don't need to control the open state of the hover card.
|
|
11
11
|
*/
|
|
12
12
|
defaultOpen?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the hover card is disabled
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
13
17
|
/**
|
|
14
18
|
* The unique identifier of the machine.
|
|
15
19
|
*/
|