@soybeanjs/headless 0.26.2 → 0.26.4
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/autocomplete/autocomplete-compact.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/calendar-range/calendar-range-root.vue.d.ts +4 -4
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/color-area/color-area-compact.vue.d.ts +2 -2
- package/dist/components/color-area/color-area-root.vue.d.ts +3 -3
- package/dist/components/color-field/color-field-root.vue.d.ts +1 -1
- package/dist/components/color-picker/color-picker-compact.vue.d.ts +3 -3
- package/dist/components/color-picker/color-picker-root.vue.d.ts +6 -6
- package/dist/components/color-slider/color-slider-compact.vue.d.ts +2 -2
- package/dist/components/color-slider/color-slider-root.vue.d.ts +3 -3
- package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker-compact.vue.d.ts +42 -42
- package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +42 -42
- package/dist/components/dialog/dialog-compact.vue.d.ts +1 -1
- package/dist/components/dialog/state.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp-root.vue.d.ts +2 -2
- package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
- package/dist/components/popper/popper-positioner.vue.d.ts +40 -40
- package/dist/components/progress/state.js +1 -1
- package/dist/components/select/select-compact.vue.d.ts +2 -2
- package/dist/components/select/select-root.vue.d.ts +2 -2
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-group.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/components/splitter/splitter-resize-handle.vue.d.ts +1 -1
- package/dist/components/tags-input/tags-input-compact.vue.d.ts +2 -2
- package/dist/components/tags-input/tags-input-root.vue.d.ts +2 -2
- package/dist/components/toast/state.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/package.json +2 -2
- /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/defineProperty.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPrimitive.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPropertyKey.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/typeof.js +0 -0
|
@@ -4,8 +4,8 @@ import { AutocompleteCompactProps, AutocompleteCompactSlots, AutocompleteHighlig
|
|
|
4
4
|
declare const __VLS_export: <T extends AutocompleteSingleOptionData = AutocompleteSingleOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<AutocompleteCompactProps<T> & {
|
|
6
6
|
onSelect?: ((item: T) => any) | undefined;
|
|
7
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
9
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends AutocompleteSingleOptionData = Autocomple
|
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
14
14
|
attrs: any;
|
|
15
15
|
slots: AutocompleteCompactSlots<T>;
|
|
16
|
-
emit: ((evt: "select", item: T) => void) & ((evt: "update:
|
|
16
|
+
emit: ((evt: "select", item: T) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload?: AutocompleteHighlightPayload | undefined) => void);
|
|
17
17
|
}>) => import("vue").VNode & {
|
|
18
18
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
19
|
};
|
|
@@ -18,16 +18,16 @@ declare const __VLS_base: import("vue").DefineComponent<AutocompleteRootProps, {
|
|
|
18
18
|
highlightFirstItem: () => void;
|
|
19
19
|
highlightSelected: (event?: Event) => Promise<void> | undefined;
|
|
20
20
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:open": (value: boolean) => any;
|
|
22
21
|
"update:modelValue": (value: string) => any;
|
|
22
|
+
"update:open": (value: boolean) => any;
|
|
23
23
|
highlight: (payload?: AutocompleteHighlightPayload | undefined) => any;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<AutocompleteRootProps> & Readonly<{
|
|
25
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
26
25
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
27
|
onHighlight?: ((payload?: AutocompleteHighlightPayload | undefined) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
|
-
open: boolean;
|
|
30
29
|
modelValue: string;
|
|
30
|
+
open: boolean;
|
|
31
31
|
defaultOpen: boolean;
|
|
32
32
|
highlightOnHover: boolean;
|
|
33
33
|
openOnFocus: boolean;
|
|
@@ -16,19 +16,19 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarRangeRootProps,
|
|
|
16
16
|
placeholder: DateValue;
|
|
17
17
|
defaultValue: DateRange;
|
|
18
18
|
defaultPlaceholder: DateValue;
|
|
19
|
-
|
|
19
|
+
readonly: boolean;
|
|
20
20
|
pagedNavigation: boolean;
|
|
21
21
|
preventDeselect: boolean;
|
|
22
|
-
maximumDays: number;
|
|
23
22
|
weekdayFormat: WeekDayFormat;
|
|
24
23
|
fixedWeeks: boolean;
|
|
25
24
|
numberOfMonths: number;
|
|
26
|
-
readonly: boolean;
|
|
27
25
|
initialFocus: boolean;
|
|
28
26
|
isDateDisabled: DateMatcher;
|
|
29
27
|
isDateUnavailable: DateMatcher;
|
|
30
|
-
isDateHighlightable: DateMatcher;
|
|
31
28
|
disableDaysOutsideCurrentView: boolean;
|
|
29
|
+
allowNonContiguousRanges: boolean;
|
|
30
|
+
maximumDays: number;
|
|
31
|
+
isDateHighlightable: DateMatcher;
|
|
32
32
|
fixedDate: "start" | "end";
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<CollapsibleRootProps, {
|
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<CollapsibleRootProps> & Readonly<{
|
|
15
15
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
open: boolean;
|
|
18
17
|
unmountOnHide: boolean;
|
|
18
|
+
open: boolean;
|
|
19
19
|
defaultOpen: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,13 +3,13 @@ import { ColorAreaCompactProps } from "./types.js";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/color-area/color-area-compact.vue.d.ts
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<ColorAreaCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
change: (value: string) => any;
|
|
7
6
|
"update:modelValue": (value: string) => any;
|
|
7
|
+
change: (value: string) => any;
|
|
8
8
|
"update:color": (value: NormalizedColor) => any;
|
|
9
9
|
changeEnd: (value: string) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<ColorAreaCompactProps> & Readonly<{
|
|
11
|
-
onChange?: ((value: string) => any) | undefined;
|
|
12
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
|
13
13
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
14
14
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,18 +7,18 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<ColorAreaRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (value: string) => any;
|
|
11
10
|
"update:modelValue": (value: string) => any;
|
|
11
|
+
change: (value: string) => any;
|
|
12
12
|
"update:color": (value: NormalizedColor) => any;
|
|
13
13
|
changeEnd: (value: string) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<ColorAreaRootProps> & Readonly<{
|
|
15
|
-
onChange?: ((value: string) => any) | undefined;
|
|
16
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
|
+
onChange?: ((value: string) => any) | undefined;
|
|
17
17
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
18
18
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
-
format: ColorFormat;
|
|
21
20
|
disabled: boolean;
|
|
21
|
+
format: ColorFormat;
|
|
22
22
|
defaultValue: string | ColorValue;
|
|
23
23
|
modelValue: string | ColorValue;
|
|
24
24
|
colorSpace: ColorSpace;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<ColorFieldRootProps, {},
|
|
|
13
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
14
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
format: ColorFormat;
|
|
17
16
|
disabled: boolean;
|
|
17
|
+
format: ColorFormat;
|
|
18
18
|
step: number;
|
|
19
19
|
defaultValue: string | ColorValue;
|
|
20
20
|
modelValue: string | ColorValue;
|
|
@@ -13,9 +13,9 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
trigger?: (props: typeof __VLS_21) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: string) => any;
|
|
16
17
|
change: (value: string) => any;
|
|
17
18
|
"update:open": (value: boolean) => any;
|
|
18
|
-
"update:modelValue": (value: string) => any;
|
|
19
19
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
20
20
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
21
21
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -25,9 +25,9 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps,
|
|
|
25
25
|
"update:color": (value: NormalizedColor) => any;
|
|
26
26
|
"update:format": (value: ColorFormat) => any;
|
|
27
27
|
}, string, import("vue").PublicProps, Readonly<ColorPickerCompactProps> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
28
29
|
onChange?: ((value: string) => any) | undefined;
|
|
29
30
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
30
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
31
31
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
32
32
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
33
33
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -40,11 +40,11 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerCompactProps,
|
|
|
40
40
|
open: boolean;
|
|
41
41
|
placement: Placement;
|
|
42
42
|
showArrow: boolean;
|
|
43
|
+
colorSpace: ColorSpace;
|
|
43
44
|
showAlpha: boolean;
|
|
44
45
|
showFields: boolean;
|
|
45
46
|
showSwatches: boolean;
|
|
46
47
|
swatches: string[];
|
|
47
|
-
colorSpace: ColorSpace;
|
|
48
48
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
49
49
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
50
50
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,8 +11,8 @@ declare var __VLS_1: {
|
|
|
11
11
|
displayFormat: ColorFormat;
|
|
12
12
|
displayFormatLabel: string;
|
|
13
13
|
areaChannel: {
|
|
14
|
-
readonly x: "
|
|
15
|
-
readonly y: "
|
|
14
|
+
readonly x: "saturation" | "chroma";
|
|
15
|
+
readonly y: "lightness" | "brightness";
|
|
16
16
|
};
|
|
17
17
|
setColor: typeof setColor;
|
|
18
18
|
setFormat: typeof setFormat;
|
|
@@ -21,22 +21,22 @@ type __VLS_Slots = {} & {
|
|
|
21
21
|
default?: (props: typeof __VLS_1) => any;
|
|
22
22
|
};
|
|
23
23
|
declare const __VLS_base: import("vue").DefineComponent<ColorPickerRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
change: (value: string) => any;
|
|
25
24
|
"update:modelValue": (value: string) => any;
|
|
25
|
+
change: (value: string) => any;
|
|
26
26
|
"update:color": (value: NormalizedColor) => any;
|
|
27
27
|
"update:format": (value: ColorFormat) => any;
|
|
28
28
|
}, string, import("vue").PublicProps, Readonly<ColorPickerRootProps> & Readonly<{
|
|
29
|
-
onChange?: ((value: string) => any) | undefined;
|
|
30
29
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
|
+
onChange?: ((value: string) => any) | undefined;
|
|
31
31
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
32
32
|
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
format: ColorFormat;
|
|
35
34
|
disabled: boolean;
|
|
35
|
+
format: ColorFormat;
|
|
36
36
|
defaultValue: string | ColorValue;
|
|
37
37
|
modelValue: string | ColorValue;
|
|
38
|
-
defaultFormat: ColorFormat;
|
|
39
38
|
colorSpace: ColorSpace;
|
|
39
|
+
defaultFormat: ColorFormat;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
42
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,13 +3,13 @@ import { ColorSliderCompactProps } from "./types.js";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/color-slider/color-slider-compact.vue.d.ts
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<ColorSliderCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
change: (value: string) => any;
|
|
7
6
|
"update:modelValue": (value: string) => any;
|
|
7
|
+
change: (value: string) => any;
|
|
8
8
|
"update:color": (value: NormalizedColor) => any;
|
|
9
9
|
changeEnd: (value: string) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<ColorSliderCompactProps> & Readonly<{
|
|
11
|
-
onChange?: ((value: string) => any) | undefined;
|
|
12
11
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
onChange?: ((value: string) => any) | undefined;
|
|
13
13
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
14
14
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,19 +7,19 @@ type __VLS_Slots = {} & {
|
|
|
7
7
|
default?: (props: typeof __VLS_10) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<ColorSliderRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (value: string) => any;
|
|
11
10
|
"update:modelValue": (value: string) => any;
|
|
11
|
+
change: (value: string) => any;
|
|
12
12
|
"update:color": (value: NormalizedColor) => any;
|
|
13
13
|
changeEnd: (value: string) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<ColorSliderRootProps> & Readonly<{
|
|
15
|
-
onChange?: ((value: string) => any) | undefined;
|
|
16
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
|
+
onChange?: ((value: string) => any) | undefined;
|
|
17
17
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
18
18
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
|
+
disabled: boolean;
|
|
20
21
|
format: ColorFormat;
|
|
21
22
|
orientation: DataOrientation;
|
|
22
|
-
disabled: boolean;
|
|
23
23
|
step: number;
|
|
24
24
|
defaultValue: string | ColorValue;
|
|
25
25
|
modelValue: string | ColorValue;
|
|
@@ -6,8 +6,8 @@ import { ComboboxCompactProps, ComboboxCompactSlots } from "./types.js";
|
|
|
6
6
|
declare const __VLS_export: <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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxCompactProps<M> & {
|
|
8
8
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -22,7 +22,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: ComboboxCompactSlots<M>;
|
|
25
|
-
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:
|
|
25
|
+
emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "placed") => void);
|
|
26
26
|
}>) => import("vue").VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
@@ -4,8 +4,8 @@ import { ComboboxRootProps } from "./types.js";
|
|
|
4
4
|
//#region src/components/combobox/combobox-root.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ComboboxRootProps<M> & {
|
|
7
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
7
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
8
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
9
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -28,7 +28,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
|
|
|
28
28
|
modelValue: (M extends true ? string[] : string) | undefined;
|
|
29
29
|
}) => any;
|
|
30
30
|
};
|
|
31
|
-
emit: ((evt: "update:
|
|
31
|
+
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void);
|
|
32
32
|
}>) => import("vue").VNode & {
|
|
33
33
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
34
|
};
|
|
@@ -6,8 +6,8 @@ import { ContextMenuCheckboxCompactProps, ContextMenuCheckboxCompactSlots } from
|
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ContextMenuCheckboxCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: ContextMenuCheckboxCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -6,8 +6,8 @@ import { ContextMenuRadioCompactProps, ContextMenuRadioCompactSlots } from "./ty
|
|
|
6
6
|
declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<ContextMenuRadioCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: ContextMenuRadioCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", payload: Exclude<T, undefined>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -157,11 +157,46 @@ declare var __VLS_25: {
|
|
|
157
157
|
innerHTML: string | undefined;
|
|
158
158
|
class: import("vue").ClassValue | undefined;
|
|
159
159
|
style: import("vue").StyleValue | undefined;
|
|
160
|
-
|
|
160
|
+
accesskey: string | undefined;
|
|
161
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
162
|
+
contextmenu: string | undefined;
|
|
163
|
+
draggable: (boolean | "true" | "false") | undefined;
|
|
164
|
+
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
165
|
+
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
166
|
+
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
161
167
|
id: string | undefined;
|
|
168
|
+
inert: (boolean | "true" | "false") | undefined;
|
|
162
169
|
lang: string | undefined;
|
|
163
|
-
|
|
170
|
+
spellcheck: (boolean | "true" | "false") | undefined;
|
|
164
171
|
tabindex: (string | number) | undefined;
|
|
172
|
+
title: string | undefined;
|
|
173
|
+
translate: "yes" | "no" | undefined;
|
|
174
|
+
radiogroup: string | undefined;
|
|
175
|
+
role: string | undefined;
|
|
176
|
+
about: string | undefined;
|
|
177
|
+
datatype: string | undefined;
|
|
178
|
+
inlist: any;
|
|
179
|
+
prefix: string | undefined;
|
|
180
|
+
property: string | undefined;
|
|
181
|
+
resource: string | undefined;
|
|
182
|
+
typeof: string | undefined;
|
|
183
|
+
vocab: string | undefined;
|
|
184
|
+
autocapitalize: string | undefined;
|
|
185
|
+
autocorrect: string | undefined;
|
|
186
|
+
autosave: string | undefined;
|
|
187
|
+
color: string | undefined;
|
|
188
|
+
itemprop: string | undefined;
|
|
189
|
+
itemscope: (boolean | "true" | "false") | undefined;
|
|
190
|
+
itemtype: string | undefined;
|
|
191
|
+
itemid: string | undefined;
|
|
192
|
+
itemref: string | undefined;
|
|
193
|
+
results: (string | number) | undefined;
|
|
194
|
+
security: string | undefined;
|
|
195
|
+
unselectable: "on" | "off" | undefined;
|
|
196
|
+
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
197
|
+
is: string | undefined;
|
|
198
|
+
exportparts: string;
|
|
199
|
+
part: string;
|
|
165
200
|
'aria-activedescendant': string | undefined;
|
|
166
201
|
'aria-atomic': (boolean | "true" | "false") | undefined;
|
|
167
202
|
'aria-autocomplete': "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -210,41 +245,6 @@ declare var __VLS_25: {
|
|
|
210
245
|
'aria-valuemin': (string | number) | undefined;
|
|
211
246
|
'aria-valuenow': (string | number) | undefined;
|
|
212
247
|
'aria-valuetext': string | undefined;
|
|
213
|
-
accesskey: string | undefined;
|
|
214
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
215
|
-
contextmenu: string | undefined;
|
|
216
|
-
draggable: (boolean | "true" | "false") | undefined;
|
|
217
|
-
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
218
|
-
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
219
|
-
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
220
|
-
inert: (boolean | "true" | "false") | undefined;
|
|
221
|
-
spellcheck: (boolean | "true" | "false") | undefined;
|
|
222
|
-
title: string | undefined;
|
|
223
|
-
translate: "yes" | "no" | undefined;
|
|
224
|
-
radiogroup: string | undefined;
|
|
225
|
-
about: string | undefined;
|
|
226
|
-
datatype: string | undefined;
|
|
227
|
-
inlist: any;
|
|
228
|
-
prefix: string | undefined;
|
|
229
|
-
property: string | undefined;
|
|
230
|
-
resource: string | undefined;
|
|
231
|
-
typeof: string | undefined;
|
|
232
|
-
vocab: string | undefined;
|
|
233
|
-
autocapitalize: string | undefined;
|
|
234
|
-
autocorrect: string | undefined;
|
|
235
|
-
autosave: string | undefined;
|
|
236
|
-
itemprop: string | undefined;
|
|
237
|
-
itemscope: (boolean | "true" | "false") | undefined;
|
|
238
|
-
itemtype: string | undefined;
|
|
239
|
-
itemid: string | undefined;
|
|
240
|
-
itemref: string | undefined;
|
|
241
|
-
results: (string | number) | undefined;
|
|
242
|
-
security: string | undefined;
|
|
243
|
-
unselectable: "on" | "off" | undefined;
|
|
244
|
-
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
245
|
-
is: string | undefined;
|
|
246
|
-
exportparts: string;
|
|
247
|
-
part: string;
|
|
248
248
|
asChild: boolean;
|
|
249
249
|
as: AsTag | import("vue").Component;
|
|
250
250
|
}> & {
|
|
@@ -257,14 +257,14 @@ declare var __VLS_25: {
|
|
|
257
257
|
readonly showArrow: boolean;
|
|
258
258
|
readonly defaultOpen: boolean;
|
|
259
259
|
readonly modal: boolean;
|
|
260
|
+
readonly multiple: boolean;
|
|
261
|
+
readonly readonly: boolean;
|
|
260
262
|
readonly pagedNavigation: boolean;
|
|
261
263
|
readonly preventDeselect: boolean;
|
|
262
264
|
readonly fixedWeeks: boolean;
|
|
263
|
-
readonly readonly: boolean;
|
|
264
265
|
readonly initialFocus: boolean;
|
|
265
266
|
readonly disableDaysOutsideCurrentView: boolean;
|
|
266
|
-
|
|
267
|
-
}, "open" | "positionerProps" | "triggerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
|
|
267
|
+
}, "positionerProps" | "triggerProps" | "open" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
|
|
268
268
|
onUpdateModelValue: (value: DateValue | undefined) => void;
|
|
269
269
|
onUpdatePlaceholder: (placeholder: DateValue) => void;
|
|
270
270
|
};
|
|
@@ -272,8 +272,8 @@ type __VLS_Slots = {} & {
|
|
|
272
272
|
default?: (props: typeof __VLS_25) => any;
|
|
273
273
|
};
|
|
274
274
|
declare const __VLS_base: import("vue").DefineComponent<DatePickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
275
|
-
"update:open": (value: boolean) => any;
|
|
276
275
|
"update:modelValue": (date: DateValue | undefined) => any;
|
|
276
|
+
"update:open": (value: boolean) => any;
|
|
277
277
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
278
278
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
279
279
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -282,8 +282,8 @@ declare const __VLS_base: import("vue").DefineComponent<DatePickerCompactProps,
|
|
|
282
282
|
closeAutoFocus: (event: Event) => any;
|
|
283
283
|
"update:placeholder": (date: DateValue) => any;
|
|
284
284
|
}, string, import("vue").PublicProps, Readonly<DatePickerCompactProps> & Readonly<{
|
|
285
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
286
285
|
"onUpdate:modelValue"?: ((date: DateValue | undefined) => any) | undefined;
|
|
286
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
287
287
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
288
288
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
289
289
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -160,11 +160,46 @@ declare var __VLS_25: {
|
|
|
160
160
|
innerHTML: string | undefined;
|
|
161
161
|
class: import("vue").ClassValue | undefined;
|
|
162
162
|
style: import("vue").StyleValue | undefined;
|
|
163
|
-
|
|
163
|
+
accesskey: string | undefined;
|
|
164
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
165
|
+
contextmenu: string | undefined;
|
|
166
|
+
draggable: (boolean | "true" | "false") | undefined;
|
|
167
|
+
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
168
|
+
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
169
|
+
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
164
170
|
id: string | undefined;
|
|
171
|
+
inert: (boolean | "true" | "false") | undefined;
|
|
165
172
|
lang: string | undefined;
|
|
166
|
-
|
|
173
|
+
spellcheck: (boolean | "true" | "false") | undefined;
|
|
167
174
|
tabindex: (string | number) | undefined;
|
|
175
|
+
title: string | undefined;
|
|
176
|
+
translate: "yes" | "no" | undefined;
|
|
177
|
+
radiogroup: string | undefined;
|
|
178
|
+
role: string | undefined;
|
|
179
|
+
about: string | undefined;
|
|
180
|
+
datatype: string | undefined;
|
|
181
|
+
inlist: any;
|
|
182
|
+
prefix: string | undefined;
|
|
183
|
+
property: string | undefined;
|
|
184
|
+
resource: string | undefined;
|
|
185
|
+
typeof: string | undefined;
|
|
186
|
+
vocab: string | undefined;
|
|
187
|
+
autocapitalize: string | undefined;
|
|
188
|
+
autocorrect: string | undefined;
|
|
189
|
+
autosave: string | undefined;
|
|
190
|
+
color: string | undefined;
|
|
191
|
+
itemprop: string | undefined;
|
|
192
|
+
itemscope: (boolean | "true" | "false") | undefined;
|
|
193
|
+
itemtype: string | undefined;
|
|
194
|
+
itemid: string | undefined;
|
|
195
|
+
itemref: string | undefined;
|
|
196
|
+
results: (string | number) | undefined;
|
|
197
|
+
security: string | undefined;
|
|
198
|
+
unselectable: "on" | "off" | undefined;
|
|
199
|
+
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
200
|
+
is: string | undefined;
|
|
201
|
+
exportparts: string;
|
|
202
|
+
part: string;
|
|
168
203
|
'aria-activedescendant': string | undefined;
|
|
169
204
|
'aria-atomic': (boolean | "true" | "false") | undefined;
|
|
170
205
|
'aria-autocomplete': "none" | "inline" | "list" | "both" | undefined;
|
|
@@ -213,41 +248,6 @@ declare var __VLS_25: {
|
|
|
213
248
|
'aria-valuemin': (string | number) | undefined;
|
|
214
249
|
'aria-valuenow': (string | number) | undefined;
|
|
215
250
|
'aria-valuetext': string | undefined;
|
|
216
|
-
accesskey: string | undefined;
|
|
217
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
218
|
-
contextmenu: string | undefined;
|
|
219
|
-
draggable: (boolean | "true" | "false") | undefined;
|
|
220
|
-
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
221
|
-
enterKeyHint: import("vue").HTMLAttributes["enterkeyhint"];
|
|
222
|
-
hidden: (boolean | "true" | "false") | "" | "hidden" | "until-found" | undefined;
|
|
223
|
-
inert: (boolean | "true" | "false") | undefined;
|
|
224
|
-
spellcheck: (boolean | "true" | "false") | undefined;
|
|
225
|
-
title: string | undefined;
|
|
226
|
-
translate: "yes" | "no" | undefined;
|
|
227
|
-
radiogroup: string | undefined;
|
|
228
|
-
about: string | undefined;
|
|
229
|
-
datatype: string | undefined;
|
|
230
|
-
inlist: any;
|
|
231
|
-
prefix: string | undefined;
|
|
232
|
-
property: string | undefined;
|
|
233
|
-
resource: string | undefined;
|
|
234
|
-
typeof: string | undefined;
|
|
235
|
-
vocab: string | undefined;
|
|
236
|
-
autocapitalize: string | undefined;
|
|
237
|
-
autocorrect: string | undefined;
|
|
238
|
-
autosave: string | undefined;
|
|
239
|
-
itemprop: string | undefined;
|
|
240
|
-
itemscope: (boolean | "true" | "false") | undefined;
|
|
241
|
-
itemtype: string | undefined;
|
|
242
|
-
itemid: string | undefined;
|
|
243
|
-
itemref: string | undefined;
|
|
244
|
-
results: (string | number) | undefined;
|
|
245
|
-
security: string | undefined;
|
|
246
|
-
unselectable: "on" | "off" | undefined;
|
|
247
|
-
inputmode: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
248
|
-
is: string | undefined;
|
|
249
|
-
exportparts: string;
|
|
250
|
-
part: string;
|
|
251
251
|
asChild: boolean;
|
|
252
252
|
as: AsTag | import("vue").Component;
|
|
253
253
|
}> & {
|
|
@@ -260,14 +260,14 @@ declare var __VLS_25: {
|
|
|
260
260
|
readonly showArrow: boolean;
|
|
261
261
|
readonly defaultOpen: boolean;
|
|
262
262
|
readonly modal: boolean;
|
|
263
|
-
readonly
|
|
263
|
+
readonly readonly: boolean;
|
|
264
264
|
readonly pagedNavigation: boolean;
|
|
265
265
|
readonly preventDeselect: boolean;
|
|
266
266
|
readonly fixedWeeks: boolean;
|
|
267
|
-
readonly readonly: boolean;
|
|
268
267
|
readonly initialFocus: boolean;
|
|
269
268
|
readonly disableDaysOutsideCurrentView: boolean;
|
|
270
|
-
|
|
269
|
+
readonly allowNonContiguousRanges: boolean;
|
|
270
|
+
}, "positionerProps" | "triggerProps" | "open" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
|
|
271
271
|
onUpdateModelValue: (value: DateRange) => void;
|
|
272
272
|
onUpdatePlaceholder: (placeholder: DateValue) => void;
|
|
273
273
|
};
|
|
@@ -275,8 +275,8 @@ type __VLS_Slots = {} & {
|
|
|
275
275
|
default?: (props: typeof __VLS_25) => any;
|
|
276
276
|
};
|
|
277
277
|
declare const __VLS_base: import("vue").DefineComponent<DateRangePickerCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
278
|
-
"update:open": (value: boolean) => any;
|
|
279
278
|
"update:modelValue": (range: DateRange) => any;
|
|
279
|
+
"update:open": (value: boolean) => any;
|
|
280
280
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
281
281
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
282
282
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
@@ -286,8 +286,8 @@ declare const __VLS_base: import("vue").DefineComponent<DateRangePickerCompactPr
|
|
|
286
286
|
"update:placeholder": (date: DateValue) => any;
|
|
287
287
|
"update:startValue": (date: DateValue | undefined) => any;
|
|
288
288
|
}, string, import("vue").PublicProps, Readonly<DateRangePickerCompactProps> & Readonly<{
|
|
289
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
290
289
|
"onUpdate:modelValue"?: ((range: DateRange) => any) | undefined;
|
|
290
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
291
291
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
292
292
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
293
293
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -30,9 +30,9 @@ declare const __VLS_base: import("vue").DefineComponent<DialogCompactProps, {},
|
|
|
30
30
|
open: boolean;
|
|
31
31
|
modal: boolean;
|
|
32
32
|
showClose: boolean;
|
|
33
|
+
alertType: DialogAlertType;
|
|
33
34
|
showCancel: "onlyWarning" | boolean;
|
|
34
35
|
showConfirm: boolean;
|
|
35
|
-
alertType: DialogAlertType;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_defineProperty as e}from"../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import{_defineProperty as e}from"../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/defineProperty.js";let t=1;const n=new class{constructor(){e(this,`subscribers`,void 0),e(this,`dialogs`,void 0),e(this,`dismissed`,void 0),e(this,`subscribe`,e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);t>=0&&this.subscribers.splice(t,1)})),e(this,`publish`,e=>{this.subscribers.forEach(t=>t(e))}),e(this,`resetDismissed`,e=>{this.dismissed.has(e)&&this.dismissed.delete(e)}),e(this,`upsert`,e=>{let t=this.dialogs.findIndex(t=>t.id===e.id);if(t<0){this.publish(e),this.dialogs=[...this.dialogs,e];return}let n={...this.dialogs[t],...e};this.publish(n),this.dialogs=this.dialogs.map((e,r)=>r===t?n:e)}),e(this,`create`,e=>{let{open:t=!0,...n}=e,r=a(e.id),i={...n,id:r,open:t};return this.upsert(i),r}),e(this,`dismiss`,e=>{if(e!==void 0)return this.dismissed.add(e),requestAnimationFrame(()=>this.publish({id:e,open:!1})),e;this.dialogs.forEach(e=>{this.dismissed.add(e.id),this.publish({id:e.id,open:!1})})}),e(this,`message`,(e,t)=>this.create({...t,title:e,type:`default`})),e(this,`error`,(e,t)=>this.create({...t,title:e,type:`error`})),e(this,`success`,(e,t)=>this.create({...t,title:e,type:`success`})),e(this,`info`,(e,t)=>this.create({...t,title:e,type:`info`})),e(this,`warning`,(e,t)=>this.create({...t,title:e,type:`warning`})),e(this,`getDialogs`,()=>this.dialogs.filter(e=>!this.dismissed.has(e.id))),e(this,`activeDialogs`,()=>(this.dialogs=this.getDialogs(),this.dismissed.clear(),this.dialogs)),this.subscribers=[],this.dialogs=[],this.dismissed=new Set}},r=n.message,i=Object.assign(r,{success:n.success,error:n.error,info:n.info,warning:n.warning,getHistory:()=>n.dialogs,getDialogs:()=>n.getDialogs()});function a(e){return typeof e==`number`||typeof e==`string`&&e.length>0?e:t++}export{n as DialogState,i as dialog};
|
|
@@ -6,8 +6,8 @@ import { DropdownMenuCheckboxCompactProps, DropdownMenuCheckboxCompactSlots } fr
|
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<DropdownMenuCheckboxCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: DropdownMenuCheckboxCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -6,8 +6,8 @@ import { DropdownMenuRadioCompactProps, DropdownMenuRadioCompactSlots } from "./
|
|
|
6
6
|
declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<DropdownMenuRadioCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: DropdownMenuRadioCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", payload: Exclude<T, undefined>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -12,9 +12,9 @@ declare const __VLS_base: import("vue").DefineComponent<DropdownMenuRootProps, {
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<DropdownMenuRootProps> & Readonly<{
|
|
13
13
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
open: boolean;
|
|
16
15
|
delayDuration: number;
|
|
17
16
|
skipDelayDuration: number;
|
|
17
|
+
open: boolean;
|
|
18
18
|
modal: boolean;
|
|
19
19
|
trigger: DropdownMenuTriggerType;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,24 +5,24 @@ type __VLS_Slots = InputOtpCompactSlots;
|
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<InputOtpCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
6
|
input: (value: string) => any;
|
|
7
7
|
select: (event: Event) => any;
|
|
8
|
+
"update:modelValue": (value: string) => any;
|
|
8
9
|
change: (event: Event) => any;
|
|
9
10
|
blur: (event: FocusEvent) => any;
|
|
10
11
|
focus: (event: FocusEvent) => any;
|
|
11
12
|
mouseleave: (event: MouseEvent) => any;
|
|
12
13
|
mouseover: (event: MouseEvent) => any;
|
|
13
14
|
paste: (event: ClipboardEvent) => any;
|
|
14
|
-
"update:modelValue": (value: string) => any;
|
|
15
15
|
complete: (value: string) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<InputOtpCompactProps> & Readonly<{
|
|
17
17
|
onInput?: ((value: string) => any) | undefined;
|
|
18
18
|
onSelect?: ((event: Event) => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
20
|
onChange?: ((event: Event) => any) | undefined;
|
|
20
21
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
21
22
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
22
23
|
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
23
24
|
onMouseover?: ((event: MouseEvent) => any) | undefined;
|
|
24
25
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
25
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
26
26
|
onComplete?: ((value: string) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -17,24 +17,24 @@ declare const __VLS_base: import("vue").DefineComponent<InputOtpRootProps, {
|
|
|
17
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
input: (value: string) => any;
|
|
19
19
|
select: (event: Event) => any;
|
|
20
|
+
"update:modelValue": (value: string) => any;
|
|
20
21
|
change: (event: Event) => any;
|
|
21
22
|
blur: (event: FocusEvent) => any;
|
|
22
23
|
focus: (event: FocusEvent) => any;
|
|
23
24
|
mouseleave: (event: MouseEvent) => any;
|
|
24
25
|
mouseover: (event: MouseEvent) => any;
|
|
25
26
|
paste: (event: ClipboardEvent) => any;
|
|
26
|
-
"update:modelValue": (value: string) => any;
|
|
27
27
|
complete: (value: string) => any;
|
|
28
28
|
}, string, import("vue").PublicProps, Readonly<InputOtpRootProps> & Readonly<{
|
|
29
29
|
onInput?: ((value: string) => any) | undefined;
|
|
30
30
|
onSelect?: ((event: Event) => any) | undefined;
|
|
31
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
31
32
|
onChange?: ((event: Event) => any) | undefined;
|
|
32
33
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
33
34
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
34
35
|
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
35
36
|
onMouseover?: ((event: MouseEvent) => any) | undefined;
|
|
36
37
|
onPaste?: ((event: ClipboardEvent) => any) | undefined;
|
|
37
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
38
38
|
onComplete?: ((value: string) => any) | undefined;
|
|
39
39
|
}>, {
|
|
40
40
|
autocomplete: string;
|
|
@@ -6,8 +6,8 @@ import { MenubarCompactProps, MenubarCompactSlots } from "./types.js";
|
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<MenubarCompactProps<T> & {
|
|
8
8
|
onSelect?: ((item: MenuOptionData<T>, event: Event) => any) | undefined;
|
|
9
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
12
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
13
13
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
@@ -21,7 +21,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: MenubarCompactSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
24
|
+
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
25
25
|
}>) => import("vue").VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -4,9 +4,9 @@ import { PageTabsCompactEmits, PageTabsCompactProps, PageTabsCompactSlots, PageT
|
|
|
4
4
|
declare const __VLS_export: <T extends PageTabsOptionData = PageTabsOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<PageTabsCompactProps<T> & {
|
|
6
6
|
onContextmenu?: ((tab: T) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
7
8
|
onClick?: ((tab: T) => any) | undefined;
|
|
8
9
|
onClose?: ((tab: T) => any) | undefined;
|
|
9
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
10
|
onPin?: ((tab: T) => any) | undefined;
|
|
11
11
|
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
12
12
|
onSelectContextMenu?: ((menu: PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
@@ -110,11 +110,48 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
|
|
|
110
110
|
innerHTML: string;
|
|
111
111
|
class: string | false | Record<string, any> | import("vue").ClassValue[] | null;
|
|
112
112
|
style: string | false | CSSProperties | import("vue").StyleValue[] | null;
|
|
113
|
-
|
|
113
|
+
accesskey: string;
|
|
114
|
+
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
115
|
+
contextmenu: string;
|
|
116
|
+
dir: string;
|
|
117
|
+
draggable: boolean | "true" | "false";
|
|
118
|
+
enterkeyhint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
119
|
+
enterKeyHint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
120
|
+
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
114
121
|
id: string;
|
|
122
|
+
inert: boolean | "true" | "false";
|
|
115
123
|
lang: string;
|
|
116
|
-
|
|
124
|
+
placeholder: string;
|
|
125
|
+
spellcheck: boolean | "true" | "false";
|
|
117
126
|
tabindex: string | number;
|
|
127
|
+
title: string;
|
|
128
|
+
translate: "yes" | "no";
|
|
129
|
+
radiogroup: string;
|
|
130
|
+
role: string;
|
|
131
|
+
about: string;
|
|
132
|
+
datatype: string;
|
|
133
|
+
inlist: any;
|
|
134
|
+
prefix: string;
|
|
135
|
+
property: string;
|
|
136
|
+
resource: string;
|
|
137
|
+
typeof: string;
|
|
138
|
+
vocab: string;
|
|
139
|
+
autocapitalize: string;
|
|
140
|
+
autocorrect: string;
|
|
141
|
+
autosave: string;
|
|
142
|
+
color: string;
|
|
143
|
+
itemprop: string;
|
|
144
|
+
itemscope: boolean | "true" | "false";
|
|
145
|
+
itemtype: string;
|
|
146
|
+
itemid: string;
|
|
147
|
+
itemref: string;
|
|
148
|
+
results: string | number;
|
|
149
|
+
security: string;
|
|
150
|
+
unselectable: "on" | "off";
|
|
151
|
+
inputmode: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
152
|
+
is: string;
|
|
153
|
+
exportparts: string;
|
|
154
|
+
part: string;
|
|
118
155
|
'aria-activedescendant': string;
|
|
119
156
|
'aria-atomic': boolean | "true" | "false";
|
|
120
157
|
'aria-autocomplete': "list" | "none" | "inline" | "both";
|
|
@@ -150,7 +187,7 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
|
|
|
150
187
|
'aria-posinset': string | number;
|
|
151
188
|
'aria-pressed': (boolean | "true" | "false") | "mixed";
|
|
152
189
|
'aria-readonly': boolean | "true" | "false";
|
|
153
|
-
'aria-relevant': "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text
|
|
190
|
+
'aria-relevant': "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
|
154
191
|
'aria-required': boolean | "true" | "false";
|
|
155
192
|
'aria-roledescription': string;
|
|
156
193
|
'aria-rowcount': string | number;
|
|
@@ -163,43 +200,6 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
|
|
|
163
200
|
'aria-valuemin': string | number;
|
|
164
201
|
'aria-valuenow': string | number;
|
|
165
202
|
'aria-valuetext': string;
|
|
166
|
-
accesskey: string;
|
|
167
|
-
contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
|
168
|
-
contextmenu: string;
|
|
169
|
-
dir: string;
|
|
170
|
-
draggable: boolean | "true" | "false";
|
|
171
|
-
enterkeyhint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
172
|
-
enterKeyHint: "done" | "enter" | "go" | "next" | "previous" | "search" | "send";
|
|
173
|
-
hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
|
|
174
|
-
inert: boolean | "true" | "false";
|
|
175
|
-
placeholder: string;
|
|
176
|
-
spellcheck: boolean | "true" | "false";
|
|
177
|
-
title: string;
|
|
178
|
-
translate: "yes" | "no";
|
|
179
|
-
radiogroup: string;
|
|
180
|
-
about: string;
|
|
181
|
-
datatype: string;
|
|
182
|
-
inlist: any;
|
|
183
|
-
prefix: string;
|
|
184
|
-
property: string;
|
|
185
|
-
resource: string;
|
|
186
|
-
typeof: string;
|
|
187
|
-
vocab: string;
|
|
188
|
-
autocapitalize: string;
|
|
189
|
-
autocorrect: string;
|
|
190
|
-
autosave: string;
|
|
191
|
-
itemprop: string;
|
|
192
|
-
itemscope: boolean | "true" | "false";
|
|
193
|
-
itemtype: string;
|
|
194
|
-
itemid: string;
|
|
195
|
-
itemref: string;
|
|
196
|
-
results: string | number;
|
|
197
|
-
security: string;
|
|
198
|
-
unselectable: "off" | "on";
|
|
199
|
-
inputmode: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
200
|
-
is: string;
|
|
201
|
-
exportparts: string;
|
|
202
|
-
part: string;
|
|
203
203
|
placement: Placement;
|
|
204
204
|
side: import("@floating-ui/utils").Side;
|
|
205
205
|
sideOffset: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{clamp as e}from"../../shared/value.js";import{isClient as t}from"../../shared/env.js";import"../../shared/index.js";import{_defineProperty as n}from"../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import{clamp as e}from"../../shared/value.js";import{isClient as t}from"../../shared/env.js";import"../../shared/index.js";import{_defineProperty as n}from"../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/defineProperty.js";import{defu as r}from"defu";const i={direction:`ltr`,minimum:.08,maximum:1,easing:`linear`,speed:200,trickle:!0,trickleSpeed:200};var a=class{static reset(){return this.status=null,this.isPaused=!1,this.pending=[],this.options=i,this.clearTrickleTimer(),this}static configure(e){return this.options=r({...e},this.options),this}static isStarted(){return typeof this.status==`number`}static isRendered(){return t?document.querySelector(`[data-soybean-progress-provider]`)!==null:!1}static set(n){if(!t||this.isPaused)return this;let r=this.isStarted();n=e(n,this.options.minimum,this.options.maximum),this.status=n===this.options.maximum?null:n,this.status===null&&this.clearTrickleTimer();let i=this.render(!r),a=this.options.speed,o=this.options.easing;return i.forEach(e=>e.offsetWidth),this.queue(e=>{i.forEach(e=>{c(e.querySelector(`[data-soybean-progress-bar]`),this.barPositionCSS({n,speed:a,ease:o}))}),n===this.options.maximum?(i.forEach(e=>{c(e,{transition:`none`,opacity:`1`}),e.offsetWidth}),setTimeout(()=>{i.forEach(e=>{c(e,{transition:`all ${a}ms ${o}`,opacity:`0`})}),setTimeout(()=>{i.forEach(e=>{this.remove(e),c(e,{transition:`none`,opacity:`1`})}),e()},a)},a)):setTimeout(e,a)}),this}static start(){return t?(this.status||this.set(0),this.options.trickle&&this.startTrickling(),this):this}static done(e){return!t||!e&&!this.status?this:this.inc(.3+.5*Math.random()).set(1)}static inc(t){if(this.isPaused)return this;let n=this.status;return n?n>1?this:(typeof t!=`number`&&(t=n>=0&&n<.2?.1:n>=.2&&n<.5?.04:n>=.5&&n<.8?.02:n>=.8&&n<.99?.005:0),n=e(n+t,0,.994),this.set(n)):this.start()}static dec(t){if(this.isPaused)return this;let n=this.status;return typeof n==`number`?(typeof t!=`number`&&(t=n>.8?.1:n>.5?.05:n>.2?.02:.01),n=e(n-t,0,.994),this.set(n)):this}static trickle(){return this.isPaused?this:this.inc()}static promise(e){let t=typeof e==`function`?e():e;if(!t)return this;if(typeof t.then==`function`)return this.start(),Promise.resolve(t).then(()=>{this.done()},()=>{this.done(!0)}),this;if(typeof t.state!=`function`||typeof t.always!=`function`||t.state()===`resolved`)return this;let n=0,r=0;return this.start(),n++,r++,t.always(()=>{r--,r===0?(n=0,this.done()):this.set((n-r)/n)}),this}static render(e=!1){if(!t)return[];let n=Array.from(document.querySelectorAll(`[data-soybean-progress-provider]`));return n.forEach(t=>{t.style.display=``;let n=t.querySelector(`[data-soybean-progress-bar]`),r=s(e?0:this.status||0,this.options.direction);c(n,this.barPositionCSS({n:this.status||0,speed:this.options.speed,ease:this.options.easing,percent:r})),typeof this.status==`number`?t.setAttribute(`aria-valuenow`,`${this.status}`):t.removeAttribute(`aria-valuenow`)}),n}static remove(e){t&&(this.clearTrickleTimer(),e?e.style.display=`none`:document.querySelectorAll(`[data-soybean-progress-provider]`).forEach(e=>{let t=e;t.style.display=`none`}))}static pause(){return this.isStarted()?(this.isPaused=!0,this.clearTrickleTimer(),this):this}static resume(){return this.isStarted()?(this.isPaused=!1,this.options.trickle&&this.startTrickling(),this):this}static queue(e){this.pending.push(e),this.pending.length===1&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static clearTrickleTimer(){this.trickleTimer&&(clearTimeout(this.trickleTimer),this.trickleTimer=void 0)}static startTrickling(){if(this.trickleTimer||this.isPaused||!this.isStarted())return;let e=()=>{this.trickleTimer=void 0,!(this.isPaused||!this.isStarted())&&(this.trickle(),!this.isPaused&&this.isStarted()&&(this.trickleTimer=setTimeout(e,this.options.trickleSpeed)))};this.trickleTimer=setTimeout(e,this.options.trickleSpeed)}static barPositionCSS({n:e,speed:t,ease:n,percent:r}){return{transform:`translate3d(${r??s(e,this.options.direction)}%,0,0)`,transition:`all ${t}ms ${n}`}}};n(a,`options`,i),n(a,`status`,null),n(a,`pending`,[]),n(a,`isPaused`,!1),n(a,`trickleTimer`,void 0);const o=a;function s(e,t){return t===`rtl`?(1-e)*100:(-1+e)*100}function c(e,t,n){if(typeof t==`string`)n!==void 0&&(e.style[t]=n);else for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];r!==void 0&&(e.style[n]=r)}}export{o as progress};
|
|
@@ -5,8 +5,8 @@ import { SelectCompactProps, SelectCompactSlots, SelectItemEvent } from "./types
|
|
|
5
5
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue, 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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectCompactProps<T, M> & {
|
|
7
7
|
onSelect?: ((event: SelectItemEvent<T>) => any) | undefined;
|
|
8
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
8
|
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
9
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
10
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
11
11
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
12
12
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
@@ -16,7 +16,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, M extends bo
|
|
|
16
16
|
expose: (exposed: {}) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: SelectCompactSlots<T, M>;
|
|
19
|
-
emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:
|
|
19
|
+
emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
20
20
|
}>) => import("vue").VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
22
|
};
|
|
@@ -4,8 +4,8 @@ import { SelectRootProps } from "./types.js";
|
|
|
4
4
|
//#region src/components/select/select-root.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends DefinedValue, 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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
|
|
7
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
8
7
|
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
8
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
9
9
|
}> & (typeof globalThis extends {
|
|
10
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
11
11
|
} ? P : {});
|
|
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
|
|
|
17
17
|
open: boolean;
|
|
18
18
|
}) => any;
|
|
19
19
|
};
|
|
20
|
-
emit: ((evt: "update:
|
|
20
|
+
emit: ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void);
|
|
21
21
|
}>) => import("vue").VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
@@ -14,11 +14,11 @@ declare const __VLS_base: import("vue").DefineComponent<SliderRootProps, {}, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
|
|
15
15
|
onValueCommit?: ((value: number[]) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
dir: Direction;
|
|
17
19
|
max: number;
|
|
18
20
|
min: number;
|
|
19
21
|
orientation: DataOrientation;
|
|
20
|
-
disabled: boolean;
|
|
21
|
-
dir: Direction;
|
|
22
22
|
step: number;
|
|
23
23
|
defaultValue: number[];
|
|
24
24
|
modelValue: number[];
|
|
@@ -12,10 +12,10 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterGroupProps, {},
|
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<SplitterGroupProps> & Readonly<{
|
|
13
13
|
onLayout?: ((value: number[]) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
direction: DataOrientation;
|
|
16
15
|
dir: Direction;
|
|
17
|
-
|
|
16
|
+
direction: DataOrientation;
|
|
18
17
|
defaultLayout: number[];
|
|
18
|
+
keyboardResizeBy: number;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -33,9 +33,9 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterPanelProps, {
|
|
|
33
33
|
collapsible: boolean;
|
|
34
34
|
order: number;
|
|
35
35
|
defaultSize: number;
|
|
36
|
-
collapsedSize: number;
|
|
37
|
-
maxSize: number;
|
|
38
36
|
minSize: number;
|
|
37
|
+
maxSize: number;
|
|
38
|
+
collapsedSize: number;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
40
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterResizeHandleProp
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<SplitterResizeHandleProps> & Readonly<{
|
|
14
14
|
onDragging?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
tabindex: number;
|
|
17
16
|
disabled: boolean;
|
|
17
|
+
tabindex: number;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -3,13 +3,13 @@ import { TagsInputCompactProps, TagsInputCompactSlots } from "./types.js";
|
|
|
3
3
|
//#region src/components/tags-input/tags-input-compact.vue.d.ts
|
|
4
4
|
type __VLS_Slots = TagsInputCompactSlots;
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<TagsInputCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
invalid: (value: string) => any;
|
|
7
6
|
"update:modelValue": (value: string[]) => any;
|
|
7
|
+
invalid: (value: string) => any;
|
|
8
8
|
addTag: (value: string) => any;
|
|
9
9
|
removeTag: (value: string) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<TagsInputCompactProps> & Readonly<{
|
|
11
|
-
onInvalid?: ((value: string) => any) | undefined;
|
|
12
11
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
12
|
+
onInvalid?: ((value: string) => any) | undefined;
|
|
13
13
|
onAddTag?: ((value: string) => any) | undefined;
|
|
14
14
|
onRemoveTag?: ((value: string) => any) | undefined;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -9,13 +9,13 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<TagsInputRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
invalid: (value: string) => any;
|
|
13
12
|
"update:modelValue": (value: string[]) => any;
|
|
13
|
+
invalid: (value: string) => any;
|
|
14
14
|
addTag: (value: string) => any;
|
|
15
15
|
removeTag: (value: string) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<TagsInputRootProps> & Readonly<{
|
|
17
|
-
onInvalid?: ((value: string) => any) | undefined;
|
|
18
17
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
18
|
+
onInvalid?: ((value: string) => any) | undefined;
|
|
19
19
|
onAddTag?: ((value: string) => any) | undefined;
|
|
20
20
|
onRemoveTag?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_defineProperty as e}from"../../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import{_defineProperty as e}from"../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/defineProperty.js";import{isVNode as t}from"vue";let n=1;const r=new class{constructor(){e(this,`subscribers`,void 0),e(this,`toasts`,void 0),e(this,`dismissed`,void 0),e(this,`subscribe`,e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);t>=0&&this.subscribers.splice(t,1)})),e(this,`publish`,e=>{this.subscribers.forEach(t=>t(e))}),e(this,`resetDismissed`,e=>{this.dismissed.has(e)&&this.dismissed.delete(e)}),e(this,`upsert`,e=>{let t=this.toasts.findIndex(t=>t.id===e.id);if(t<0){this.publish(e),this.toasts=[...this.toasts,e];return}let n={...this.toasts[t],...e};this.publish(n),this.toasts=this.toasts.map((e,r)=>r===t?n:e)}),e(this,`create`,e=>{let{message:t,dismissible:n=!0,...r}=e,i=s(e.id);this.resetDismissed(i);let a={...r,id:i,dismissible:n,title:t};return this.upsert(a),i}),e(this,`dismiss`,e=>{if(e!==void 0)return this.dismissed.add(e),requestAnimationFrame(()=>this.publish({id:e,dismiss:!0})),e;this.toasts.forEach(e=>{this.dismissed.add(e.id),this.publish({id:e.id,dismiss:!0})})}),e(this,`message`,(e,t)=>this.create({...t,message:e,type:`default`})),e(this,`error`,(e,t)=>this.create({...t,message:e,type:`error`})),e(this,`success`,(e,t)=>this.create({...t,message:e,type:`success`})),e(this,`info`,(e,t)=>this.create({...t,message:e,type:`info`})),e(this,`warning`,(e,t)=>this.create({...t,message:e,type:`warning`})),e(this,`loading`,(e,t)=>this.create({...t,message:e,type:`loading`})),e(this,`custom`,(e,t)=>{let n=s(t?.id),r=t?.dismissible??!0;return this.resetDismissed(n),this.upsert({custom:e,dismissible:r,id:n,...t}),n}),e(this,`promise`,(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:`loading`,message:n.loading,description:typeof n.description==`function`?void 0:n.description}));let i=Promise.resolve(typeof e==`function`?e():e),a=r!==void 0,s,l=async(e,t,n,i)=>{a=!1;let{description:o,settings:s}=await c(t,n,i,r);this.create({id:r,type:e,description:o,...s})},u=i.then(async e=>{if(s=[`resolve`,e],t(e)){a=!1,this.create({id:r,type:`default`,message:e});return}if(o(e)&&!e.ok){await l(`error`,n.error,n.description,`HTTP error! status: ${e.status}`);return}if(e instanceof Error){await l(`error`,n.error,n.description,e);return}n.success!==void 0&&await l(`success`,n.success,n.description,e)}).catch(async e=>{s=[`reject`,e],n.error!==void 0&&await l(`error`,n.error,n.description,e)}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally?.()}),d=()=>new Promise((e,t)=>u.then(()=>s[0]===`reject`?t(s[1]):e(s[1])).catch(t));return typeof r!=`string`&&typeof r!=`number`?{unwrap:d}:Object.assign(r,{unwrap:d})}),e(this,`getActives`,()=>this.toasts.filter(e=>!this.dismissed.has(e.id))),this.subscribers=[],this.toasts=[],this.dismissed=new Set}},i=r.message,a=Object.assign(i,{success:r.success,info:r.info,warning:r.warning,error:r.error,custom:r.custom,message:r.message,promise:r.promise,dismiss:r.dismiss,loading:r.loading},{getHistory:()=>r.toasts,getToasts:()=>r.getActives()});function o(e){return typeof e==`object`&&!!e&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`}function s(e){return typeof e==`number`||typeof e==`string`&&e.length>0?e:n++}async function c(e,t,n,r){let[i,a]=await Promise.all([l(e,n),l(t,n)]);return{description:a,settings:d(i,r)}}async function l(e,t){return typeof e==`function`?await e(t):e}function u(e){return typeof e==`object`&&!!e&&`message`in e}function d(e,t){return u(e)?e:{id:t??``,message:e??``}}export{r as ToastState,a as toast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../_icon/icon.js";import t from"../button/button.js";import n from"../_common/dynamic-render.js";import{getDefaultSwipeDirections as r,getSwipeAmount as i,resetSwipeAmount as a,setSwipeAmount as o,toastCssVars as s}from"./shared.js";import{useToastUi as ee,useToasterContext as te}from"./context.js";import{Fragment as ne,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createVNode as p,defineComponent as m,mergeProps as h,onWatcherCleanup as re,openBlock as g,resolveDynamicComponent as _,shallowRef as v,unref as y,useTemplateRef as b,watch as x,watchEffect as ie,withCtx as S}from"vue";import{useDocumentVisibility as ae,useElementSize as oe,useMounted as se}from"@vueuse/core";const ce=[`dir`,`data-rich-color`,`data-inverted`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],C=m({name:`Toast`,__name:`toast`,props:{index:{},toast:{},position:{}},emits:[`update:height`,`remove`],setup(m,{emit:C}){let w=m,T=C,{dir:le,allToasts:ue,allHeights:E,gap:de,duration:D,visibleCounts:fe,defaultExpanded:O,swipeDirections:pe,interactingPosition:me,expandedPosition:k,showIcon:he,showClose:ge,icons:A,toastProps:_e,wrapperProps:ve,contentProps:ye,titleProps:be,descriptionProps:xe,iconProps:Se,footerProps:Ce,actionProps:we,cancelProps:Te,closeProps:Ee}=te(`Toast`),j=ee(),M=b(`toast`),De=b(`wrapper`),N=se(),{height:Oe}=oe(De),ke=ae(),P=v(null),F=v(null),I=v(!1),L=v(!1),R=v(!1),z=v(!1),B=v(0),V=v(0),H=v(w.toast.duration??D.value),U=v(null),W=v(0),G=v(0),K=v(null),q=c(()=>w.toast.type),J=c(()=>{if(he.value){if(w.toast.icon)return w.toast.icon;if(q.value&&q.value
|
|
1
|
+
import e from"../_icon/icon.js";import t from"../button/button.js";import n from"../_common/dynamic-render.js";import{getDefaultSwipeDirections as r,getSwipeAmount as i,resetSwipeAmount as a,setSwipeAmount as o,toastCssVars as s}from"./shared.js";import{useToastUi as ee,useToasterContext as te}from"./context.js";import{Fragment as ne,computed as c,createBlock as l,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createVNode as p,defineComponent as m,mergeProps as h,onWatcherCleanup as re,openBlock as g,resolveDynamicComponent as _,shallowRef as v,unref as y,useTemplateRef as b,watch as x,watchEffect as ie,withCtx as S}from"vue";import{useDocumentVisibility as ae,useElementSize as oe,useMounted as se}from"@vueuse/core";const ce=[`dir`,`data-rich-color`,`data-inverted`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],C=m({name:`Toast`,__name:`toast`,props:{index:{},toast:{},position:{}},emits:[`update:height`,`remove`],setup(m,{emit:C}){let w=m,T=C,{dir:le,allToasts:ue,allHeights:E,gap:de,duration:D,visibleCounts:fe,defaultExpanded:O,swipeDirections:pe,interactingPosition:me,expandedPosition:k,showIcon:he,showClose:ge,icons:A,toastProps:_e,wrapperProps:ve,contentProps:ye,titleProps:be,descriptionProps:xe,iconProps:Se,footerProps:Ce,actionProps:we,cancelProps:Te,closeProps:Ee}=te(`Toast`),j=ee(),M=b(`toast`),De=b(`wrapper`),N=se(),{height:Oe}=oe(De),ke=ae(),P=v(null),F=v(null),I=v(!1),L=v(!1),R=v(!1),z=v(!1),B=v(0),V=v(0),H=v(w.toast.duration??D.value),U=v(null),W=v(0),G=v(0),K=v(null),q=c(()=>w.toast.type),J=c(()=>{if(he.value){if(w.toast.icon)return w.toast.icon;if(q.value&&q.value!=="default")return A.value[q.value];if(w.toast.promise)return A.value.loading}}),Ae=c(()=>w.index===0),je=c(()=>w.index+1<=fe.value),Y=c(()=>q.value===`loading`),X=c(()=>w.toast.dismissible!==!1),Z=c(()=>Math.max(E.value[w.position].findIndex(e=>e.toastId===w.toast.id),0)),Me=c(()=>(w.toast.showClose||ge.value)&&X.value&&q.value!==`loading`),Ne=c(()=>w.toast.duration??D.value),Pe=c(()=>{let[e,t]=w.position.split(`-`);return{x:t,y:e}}),Fe=c(()=>E.value[w.position].reduce((e,t,n)=>n>=Z.value?e:e+t.height,0)),Q=c(()=>Z.value*de.value+Fe.value),Ie=c(()=>k.value===w.position||O.value&&N.value),Le=c(()=>({[s.index]:w.index,[s.beforeIndex]:w.index,[s.zIndex]:ue.value[w.position].length-w.index,[s.offset]:`${I.value?B.value:Q.value}px`,[s.initialHeight]:O.value?`auto`:`${V.value}px`})),$=()=>{I.value=!0,B.value=Q.value,window.setTimeout(()=>{T(`remove`,w.toast)},200)},Re=()=>{Y.value||!X.value||($(),w.toast.onDismiss?.(w.toast))},ze=e=>{e.button!==2&&(Y.value||!X.value||(U.value=new Date,B.value=Q.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(L.value=!0,K.value={x:e.clientX,y:e.clientY})))},Be=()=>{if(R.value||!X.value)return;K.value=null;let{x:e,y:t}=i(M.value),n=Date.now()-(U.value?.getTime()??Date.now()),r=P.value===`x`?e:t,o=Math.abs(r)/Math.max(n,1);if(Math.abs(r)>=45||o>.11){B.value=Q.value,w.toast.onDismiss?.(w.toast),P.value===`x`?F.value=e>0?`right`:`left`:F.value=t>0?`down`:`up`,$(),R.value=!0;return}a(M.value),z.value=!1,L.value=!1,P.value=null},Ve=e=>{if(!K.value||!X.value||(typeof window<`u`?window.getSelection()?.toString().length??0:0)>0)return;let t=e.clientY-K.value.y,n=e.clientX-K.value.x,i=pe.value??r(w.position);!P.value&&(Math.abs(n)>1||Math.abs(t)>1)&&(P.value=Math.abs(n)>Math.abs(t)?`x`:`y`);let a={x:0,y:0},s=e=>1/(1.5+Math.abs(e)/20);if(P.value===`y`){if(i.includes(`up`)||i.includes(`down`))if(i.includes(`up`)&&t<0||i.includes(`down`)&&t>0)a.y=t;else{let e=t*s(t);a.y=Math.abs(e)<Math.abs(t)?e:t}}else if(P.value===`x`&&(i.includes(`left`)||i.includes(`right`)))if(i.includes(`left`)&&n<0||i.includes(`right`)&&n>0)a.x=n;else{let e=n*s(n);a.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&(z.value=!0),o(M.value,a)},He=()=>{L.value=!1,P.value=null,K.value=null},Ue=e=>{w.toast.onAction?.(e),!e.defaultPrevented&&$()},We=e=>{w.toast.onCancel?.(e),X.value&&$()};function Ge(e){V.value=e,T(`update:height`,{toastId:w.toast.id,height:e,position:w.toast.position??w.position})}function Ke(){let e=M.value;if(!e)return;let t=e.style.height;e.style.height=`auto`;let n=e.getBoundingClientRect().height;e.style.height=t,Ge(n)}return x(Ne,e=>{H.value=e},{immediate:!0}),x(Oe,e=>{N.value&&e&&Ke()},{flush:`post`}),x(()=>w.toast.delete,e=>{e&&($(),w.toast.onDismiss?.(w.toast))}),ie(()=>{let e=w.toast;if(e.type===`loading`||e.promise||e.duration===1/0)return;let t;k.value===w.position||me.value===w.position||ke.value===`hidden`?(()=>{if(G.value<W.value){let e=Date.now()-W.value;H.value-=e}G.value=Date.now()})():H.value!==1/0&&(W.value=Date.now(),t=setTimeout(()=>{w.toast.onAutoClose?.(w.toast),$()},H.value)),re(()=>{t!==void 0&&clearTimeout(t)})}),(r,i)=>(g(),d(`li`,h(y(_e),{ref:`toast`,"data-soybean-toast":``,class:[y(j).toast,m.toast.ui?.toast],dir:y(le),tabindex:`0`,"data-rich-color":m.toast.richColor,"data-inverted":m.toast.inverted,"data-mounted":y(N),"data-promise":!!m.toast.promise,"data-swiped":z.value,"data-removed":I.value,"data-visible":je.value,"data-y-position":Pe.value.y,"data-x-position":Pe.value.x,"data-index":m.index,"data-front":Ae.value,"data-swiping":L.value,"data-dismissible":X.value,"data-type":q.value,"data-swipe-out":R.value,"data-swipe-direction":F.value,"data-expanded":Ie.value,"data-testid":m.toast.testId,style:Le.value,onDragend:He,onPointerdown:ze,onPointerup:Be,onPointermove:Ve}),[f(`div`,h({ref:`wrapper`},y(ve),{class:[y(j).wrapper,m.toast.ui?.wrapper],"data-soybean-toast-wrapper":``}),[m.toast.custom?(g(),l(_(m.toast.custom),{key:0})):(g(),d(ne,{key:1},[f(`h3`,h(y(be),{class:[y(j).title,m.toast.ui?.title],"data-soybean-toast-title":``}),[J.value?(g(),l(e,h({key:0},y(Se),{icon:J.value,class:[y(j).icon,m.toast.ui?.icon]}),null,16,[`icon`,`class`])):u(`v-if`,!0),p(n,{is:m.toast.title},null,8,[`is`])],16),m.toast.description?(g(),d(`p`,h({key:0},y(xe),{class:[y(j).description,m.toast.ui?.description],"data-soybean-toast-description":``}),[p(n,{is:m.toast.description},null,8,[`is`])],16)):u(`v-if`,!0),m.toast.content?(g(),l(_(m.toast.content),h({key:1},y(ye),{class:[y(j).content,m.toast.ui?.content],"data-soybean-toast-content":``}),null,16,[`class`])):u(`v-if`,!0),m.toast.action||m.toast.cancel?(g(),d(`div`,h({key:2},y(Ce),{class:[y(j).footer,m.toast.ui?.footer],"data-soybean-toast-footer":``}),[m.toast.cancel?(g(),l(t,h({key:0},y(Te),{class:[y(j).cancel,m.toast.ui?.cancel],"data-soybean-toast-cancel":``,onClick:We}),{default:S(()=>[p(n,{is:m.toast.cancel},null,8,[`is`])]),_:1},16,[`class`])):u(`v-if`,!0),m.toast.action?(g(),l(t,h({key:1},y(we),{class:[y(j).action,m.toast.ui?.action],"data-soybean-toast-action":``,onClick:Ue}),{default:S(()=>[p(n,{is:m.toast.action},null,8,[`is`])]),_:1},16,[`class`])):u(`v-if`,!0)],16)):u(`v-if`,!0)],64))],16),Me.value&&y(A)?.close?(g(),l(t,h({key:0},y(Ee),{class:[y(j).close,m.toast.ui?.close],"data-soybean-toast-close":``,onClick:Re}),{default:S(()=>[p(e,{icon:y(A)?.close},null,8,[`icon`])]),_:1},16,[`class`])):u(`v-if`,!0)],16,ce))}});export{C as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/headless",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.4",
|
|
4
4
|
"description": "SoybeanHeadless is a collection unstyled components for Vue 3. It is designed to be lightweight and easy to use.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"typescript": "6.0.3",
|
|
116
116
|
"unplugin-vue": "7.2.0",
|
|
117
117
|
"unplugin-vue-components": "^32.1.0",
|
|
118
|
-
"vue": "3.5.
|
|
118
|
+
"vue": "3.5.35",
|
|
119
119
|
"vue-router": "5.0.7"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|