@soybeanjs/headless 0.26.2 → 0.26.3

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.
Files changed (51) hide show
  1. package/dist/components/alert/alert-compact.vue.d.ts +2 -2
  2. package/dist/components/backtop/backtop.vue.d.ts +2 -2
  3. package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
  4. package/dist/components/calendar/calendar-compact.js +1 -1
  5. package/dist/components/calendar-range/calendar-range-root.vue.d.ts +5 -5
  6. package/dist/components/clipboard/clipboard.vue.d.ts +4 -4
  7. package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
  8. package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
  9. package/dist/components/color-picker/color-picker-compact.vue.d.ts +1 -1
  10. package/dist/components/color-picker/color-picker-root.vue.d.ts +5 -5
  11. package/dist/components/color-slider/color-slider-root.vue.d.ts +3 -3
  12. package/dist/components/color-swatch-picker/color-swatch-picker-compact.vue.d.ts +2 -2
  13. package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
  14. package/dist/components/command/command-compact.vue.d.ts +2 -2
  15. package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
  16. package/dist/components/date-picker/date-picker-compact.vue.d.ts +41 -41
  17. package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
  18. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +41 -41
  19. package/dist/components/dialog/dialog-compact.vue.d.ts +5 -5
  20. package/dist/components/dialog/state.js +1 -1
  21. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
  22. package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
  23. package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
  24. package/dist/components/input-otp/input-otp-root.vue.d.ts +3 -3
  25. package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
  26. package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
  27. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
  28. package/dist/components/page-tabs/page-tabs-root.vue.d.ts +1 -1
  29. package/dist/components/popconfirm/popconfirm-compact.vue.d.ts +2 -2
  30. package/dist/components/popper/popper-positioner.vue.d.ts +41 -41
  31. package/dist/components/progress/state.js +1 -1
  32. package/dist/components/slider/slider-root.vue.d.ts +3 -3
  33. package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
  34. package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
  35. package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
  36. package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
  37. package/dist/components/tags-input/tags-input-compact.vue.d.ts +2 -2
  38. package/dist/components/tags-input/tags-input-root.vue.d.ts +3 -3
  39. package/dist/components/time-field/time-field-root.vue.d.ts +2 -2
  40. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +3 -3
  41. package/dist/components/toast/state.js +1 -1
  42. package/dist/components/toast/toast.js +1 -1
  43. package/dist/components/toast/toaster.vue.d.ts +1 -1
  44. package/dist/components/toggle/toggle.vue.d.ts +1 -1
  45. package/dist/components/tree-menu/tree-menu-compact.vue.d.ts +2 -2
  46. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
  47. package/package.json +2 -2
  48. /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/defineProperty.js +0 -0
  49. /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPrimitive.js +0 -0
  50. /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPropertyKey.js +0 -0
  51. /package/dist/_virtual/{_@oxc-project_runtime@0.132.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/typeof.js +0 -0
@@ -3,11 +3,11 @@ import { AlertCompactProps, AlertCompactSlots } from "./types.js";
3
3
  //#region src/components/alert/alert-compact.vue.d.ts
4
4
  type __VLS_Slots = AlertCompactSlots;
5
5
  declare const __VLS_base: import("vue").DefineComponent<AlertCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- close: (event: PointerEvent) => any;
7
6
  "update:open": (open: boolean) => any;
7
+ close: (event: PointerEvent) => any;
8
8
  }, string, import("vue").PublicProps, Readonly<AlertCompactProps> & Readonly<{
9
- onClose?: ((event: PointerEvent) => any) | undefined;
10
9
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
10
+ onClose?: ((event: PointerEvent) => any) | undefined;
11
11
  }>, {
12
12
  open: boolean;
13
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -13,11 +13,11 @@ declare const __VLS_base: import("vue").DefineComponent<BacktopProps, {
13
13
  scrollToTop: typeof scrollToTop;
14
14
  updateVisibility: import("@vueuse/shared").Fn;
15
15
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- change: (visible: boolean) => any;
17
16
  click: (event: PointerEvent) => any;
17
+ change: (visible: boolean) => any;
18
18
  }, string, import("vue").PublicProps, Readonly<BacktopProps> & Readonly<{
19
- onChange?: ((visible: boolean) => any) | undefined;
20
19
  onClick?: ((event: PointerEvent) => any) | undefined;
20
+ onChange?: ((visible: boolean) => any) | undefined;
21
21
  }>, {
22
22
  visibilityHeight: number;
23
23
  duration: number;
@@ -33,9 +33,9 @@ declare const __VLS_base: import("vue").DefineComponent<(DialogRootProps & {
33
33
  handleOnly?: boolean;
34
34
  preventScrollRestoration?: boolean;
35
35
  } & WithoutFadeFromProps), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ "update:open": (value: boolean) => any;
36
37
  close: () => any;
37
38
  drag: (percentageDragged: number) => any;
38
- "update:open": (value: boolean) => any;
39
39
  release: (open: boolean) => any;
40
40
  "update:activeSnapPoint": (val: string | number | null) => any;
41
41
  }, string, import("vue").PublicProps, Readonly<(DialogRootProps & {
@@ -65,9 +65,9 @@ declare const __VLS_base: import("vue").DefineComponent<(DialogRootProps & {
65
65
  handleOnly?: boolean;
66
66
  preventScrollRestoration?: boolean;
67
67
  } & WithoutFadeFromProps)> & Readonly<{
68
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
68
69
  onClose?: (() => any) | undefined;
69
70
  onDrag?: ((percentageDragged: number) => any) | undefined;
70
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
71
71
  onRelease?: ((open: boolean) => any) | undefined;
72
72
  "onUpdate:activeSnapPoint"?: ((val: string | number | null) => any) | undefined;
73
73
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../_icon/icon.js";import r from"./calendar-cell-trigger.js";import i from"./calendar-cell.js";import a from"./calendar-grid-body.js";import o from"./calendar-grid-head.js";import s from"./calendar-grid-row.js";import c from"./calendar-grid.js";import l from"./calendar-head-cell.js";import u from"./calendar-header.js";import d from"./calendar-heading.js";import f from"./calendar-next.js";import p from"./calendar-prev.js";import m from"./calendar-root.js";import{Fragment as h,createBlock as g,createElementBlock as _,createTextVNode as v,createVNode as y,defineComponent as b,guardReactiveProps as x,mergeProps as S,normalizeProps as C,openBlock as w,renderList as T,renderSlot as E,toDisplayString as D,toHandlers as O,unref as k,withCtx as A}from"vue";const j=b({name:`CalendarCompact`,__name:`calendar-compact`,props:{headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},dir:{},locale:{},modelValue:{},defaultValue:{},multiple:{},placeholder:{},defaultPlaceholder:{},disabled:{type:Boolean},readonly:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},numberOfMonths:{},initialFocus:{type:Boolean},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},nextPage:{type:Function},prevPage:{type:Function},disableDaysOutsideCurrentView:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`],setup(b,{emit:j}){let M=b,N=j,P=t(M,[`headerProps`,`headingProps`,`prevProps`,`nextProps`,`gridProps`,`gridHeadProps`,`gridBodyProps`,`gridRowProps`,`headCellProps`,`cellProps`,`cellTriggerProps`]),F=e(N);return(e,t)=>(w(),g(m,S(k(P),O(k(F))),{default:A(t=>[y(u,C(x(b.headerProps)),{default:A(()=>[y(p,C(x(b.prevProps)),{default:A(t=>[E(e.$slots,`prev`,{disabled:t.disabled},()=>[y(n,{icon:`lucide:chevron-left`})])]),_:3},16),y(d,C(x(b.headingProps)),{default:A(()=>[E(e.$slots,`heading`,{headingValue:t.headingValue,selectedMonth:t.placeholder.month,selectedYear:t.placeholder.year,yearOptions:t.yearOptions,onYearChange:t.onYearChange,monthOptions:t.monthOptions,onMonthChange:t.onMonthChange},()=>[v(D(t.headingValue),1)])]),_:2},1040),y(f,C(x(b.nextProps)),{default:A(t=>[E(e.$slots,`next`,{disabled:t.disabled},()=>[y(n,{icon:`lucide:chevron-right`})])]),_:3},16)]),_:2},1040),(w(!0),_(h,null,T(t.grid,n=>(w(),g(c,S({key:n.value.toString()},{ref_for:!0},b.gridProps),{default:A(()=>[y(o,S({ref_for:!0},b.gridHeadProps),{default:A(()=>[y(s,S({ref_for:!0},b.gridRowProps),{default:A(()=>[(w(!0),_(h,null,T(t.weekDays,(t,r)=>(w(),g(l,S({key:`${n.value.toString()}-${t}-${r}`},{ref_for:!0},b.headCellProps),{default:A(()=>[E(e.$slots,`head-cell`,{date:n.value,index:r,label:t},()=>[v(D(t),1)])]),_:2},1040))),128))]),_:2},1040)]),_:2},1040),y(a,S({ref_for:!0},b.gridBodyProps),{default:A(()=>[(w(!0),_(h,null,T(n.rows,(t,a)=>(w(),g(s,S({key:`${n.value.toString()}-${a}`},{ref_for:!0},b.gridRowProps),{default:A(()=>[(w(!0),_(h,null,T(t,t=>(w(),g(i,S({key:t.toString(),date:t},{ref_for:!0},b.cellProps),{default:A(()=>[y(r,S({day:t,month:n.value},{ref_for:!0},b.cellTriggerProps),{default:A(r=>[E(e.$slots,`day`,S({ref_for:!0},r,{day:t,month:n.value}),()=>[v(D(r.dayValue),1)])]),_:2},1040,[`day`,`month`])]),_:2},1040,[`date`]))),128))]),_:2},1040))),128))]),_:2},1040)]),_:2},1040))),128)),E(e.$slots,`default`,{modelValue:t.modelValue})]),_:3},16))}});export{j as default};
1
+ import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../_icon/icon.js";import r from"./calendar-cell-trigger.js";import i from"./calendar-cell.js";import a from"./calendar-grid-body.js";import o from"./calendar-grid-head.js";import s from"./calendar-grid-row.js";import c from"./calendar-grid.js";import l from"./calendar-head-cell.js";import u from"./calendar-header.js";import d from"./calendar-heading.js";import f from"./calendar-next.js";import p from"./calendar-prev.js";import m from"./calendar-root.js";import{Fragment as h,createBlock as g,createElementBlock as _,createTextVNode as v,createVNode as y,defineComponent as b,guardReactiveProps as x,mergeProps as S,normalizeProps as C,openBlock as w,renderList as T,renderSlot as E,toDisplayString as D,toHandlers as O,unref as k,withCtx as A}from"vue";const j=b({name:`CalendarCompact`,__name:`calendar-compact`,props:{headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},dir:{},locale:{},modelValue:{},defaultValue:{},multiple:{type:Boolean},placeholder:{},defaultPlaceholder:{},disabled:{type:Boolean},readonly:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},numberOfMonths:{},initialFocus:{type:Boolean},isDateDisabled:{type:Function},isDateUnavailable:{type:Function},nextPage:{type:Function},prevPage:{type:Function},disableDaysOutsideCurrentView:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`update:placeholder`],setup(b,{emit:j}){let M=b,N=j,P=t(M,[`headerProps`,`headingProps`,`prevProps`,`nextProps`,`gridProps`,`gridHeadProps`,`gridBodyProps`,`gridRowProps`,`headCellProps`,`cellProps`,`cellTriggerProps`]),F=e(N);return(e,t)=>(w(),g(m,S(k(P),O(k(F))),{default:A(t=>[y(u,C(x(b.headerProps)),{default:A(()=>[y(p,C(x(b.prevProps)),{default:A(t=>[E(e.$slots,`prev`,{disabled:t.disabled},()=>[y(n,{icon:`lucide:chevron-left`})])]),_:3},16),y(d,C(x(b.headingProps)),{default:A(()=>[E(e.$slots,`heading`,{headingValue:t.headingValue,selectedMonth:t.placeholder.month,selectedYear:t.placeholder.year,yearOptions:t.yearOptions,onYearChange:t.onYearChange,monthOptions:t.monthOptions,onMonthChange:t.onMonthChange},()=>[v(D(t.headingValue),1)])]),_:2},1040),y(f,C(x(b.nextProps)),{default:A(t=>[E(e.$slots,`next`,{disabled:t.disabled},()=>[y(n,{icon:`lucide:chevron-right`})])]),_:3},16)]),_:2},1040),(w(!0),_(h,null,T(t.grid,n=>(w(),g(c,S({key:n.value.toString()},{ref_for:!0},b.gridProps),{default:A(()=>[y(o,S({ref_for:!0},b.gridHeadProps),{default:A(()=>[y(s,S({ref_for:!0},b.gridRowProps),{default:A(()=>[(w(!0),_(h,null,T(t.weekDays,(t,r)=>(w(),g(l,S({key:`${n.value.toString()}-${t}-${r}`},{ref_for:!0},b.headCellProps),{default:A(()=>[E(e.$slots,`head-cell`,{date:n.value,index:r,label:t},()=>[v(D(t),1)])]),_:2},1040))),128))]),_:2},1040)]),_:2},1040),y(a,S({ref_for:!0},b.gridBodyProps),{default:A(()=>[(w(!0),_(h,null,T(n.rows,(t,a)=>(w(),g(s,S({key:`${n.value.toString()}-${a}`},{ref_for:!0},b.gridRowProps),{default:A(()=>[(w(!0),_(h,null,T(t,t=>(w(),g(i,S({key:t.toString(),date:t},{ref_for:!0},b.cellProps),{default:A(()=>[y(r,S({day:t,month:n.value},{ref_for:!0},b.cellTriggerProps),{default:A(r=>[E(e.$slots,`day`,S({ref_for:!0},r,{day:t,month:n.value}),()=>[v(D(r.dayValue),1)])]),_:2},1040,[`day`,`month`])]),_:2},1040,[`date`]))),128))]),_:2},1040))),128))]),_:2},1040)]),_:2},1040))),128)),E(e.$slots,`default`,{modelValue:t.modelValue})]),_:3},16))}});export{j as default};
@@ -12,23 +12,23 @@ declare const __VLS_base: import("vue").DefineComponent<CalendarRangeRootProps,
12
12
  "onUpdate:placeholder"?: ((date: DateValue) => any) | undefined;
13
13
  "onUpdate:startValue"?: ((date: DateValue | undefined) => any) | undefined;
14
14
  }>, {
15
- disabled: boolean;
16
15
  placeholder: DateValue;
16
+ disabled: boolean;
17
17
  defaultValue: DateRange;
18
18
  defaultPlaceholder: DateValue;
19
- allowNonContiguousRanges: boolean;
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>;
@@ -44,12 +44,12 @@ declare const __VLS_base: import("vue").DefineComponent<ClipboardProps, {}, {},
44
44
  }>, {
45
45
  copiedDuration: number;
46
46
  legacy: boolean;
47
- copyIcon: string | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
+ copyIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
- }> | null;
50
- copiedIcon: string | import("vue").Component | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
49
+ }> | import("vue").Component | null;
50
+ copiedIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
51
51
  [key: string]: any;
52
- }> | null;
52
+ }> | import("vue").Component | null;
53
53
  copyText: string;
54
54
  copiedText: string;
55
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -17,10 +17,10 @@ declare const __VLS_base: import("vue").DefineComponent<ColorAreaRootProps, {},
17
17
  "onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
18
18
  onChangeEnd?: ((value: string) => any) | undefined;
19
19
  }>, {
20
- format: ColorFormat;
21
20
  disabled: boolean;
22
- defaultValue: string | ColorValue;
21
+ format: ColorFormat;
23
22
  modelValue: string | ColorValue;
23
+ defaultValue: string | ColorValue;
24
24
  colorSpace: ColorSpace;
25
25
  xChannel: ColorAreaAxisChannel;
26
26
  yChannel: ColorAreaAxisChannel;
@@ -13,11 +13,11 @@ 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
- defaultValue: string | ColorValue;
20
19
  modelValue: string | ColorValue;
20
+ defaultValue: string | ColorValue;
21
21
  readonly: boolean;
22
22
  colorSpace: ColorSpace;
23
23
  disableWheelChange: boolean;
@@ -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: "chroma" | "saturation";
15
- readonly y: "brightness" | "lightness";
14
+ readonly x: "saturation" | "chroma";
15
+ readonly y: "lightness" | "brightness";
16
16
  };
17
17
  setColor: typeof setColor;
18
18
  setFormat: typeof setFormat;
@@ -31,12 +31,12 @@ declare const __VLS_base: import("vue").DefineComponent<ColorPickerRootProps, {}
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;
36
- defaultValue: string | ColorValue;
35
+ format: ColorFormat;
37
36
  modelValue: string | ColorValue;
38
- defaultFormat: ColorFormat;
37
+ defaultValue: string | ColorValue;
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;
@@ -17,14 +17,14 @@ declare const __VLS_base: import("vue").DefineComponent<ColorSliderRootProps, {}
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
- defaultValue: string | ColorValue;
25
24
  modelValue: string | ColorValue;
26
- inverted: boolean;
25
+ defaultValue: string | ColorValue;
27
26
  colorSpace: ColorSpace;
27
+ inverted: boolean;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
30
  declare const _default: typeof __VLS_export;
@@ -7,8 +7,8 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
7
7
  props: import("vue").PublicProps & __VLS_PrettifyLocal<ColorSwatchPickerCompactProps<M> & {
8
8
  onSelect?: ((event: SelectEvent<string>) => any) | undefined;
9
9
  "onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
10
- onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
11
10
  onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
11
+ onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
12
12
  onLeave?: ((event: Event) => any) | undefined;
13
13
  }> & (typeof globalThis extends {
14
14
  __VLS_PROPS_FALLBACK: infer P;
@@ -16,7 +16,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
16
16
  expose: (exposed: {}) => void;
17
17
  attrs: any;
18
18
  slots: ColorSwatchPickerCompactSlots<M>;
19
- emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
19
+ emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void);
20
20
  }>) => import("vue").VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
@@ -6,8 +6,8 @@ import { ColorSwatchPickerRootProps } from "./types.js";
6
6
  declare const __VLS_export: <M extends boolean>(__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<ColorSwatchPickerRootProps<M> & {
8
8
  "onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
9
- onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
10
9
  onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
10
+ onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
11
11
  onLeave?: ((event: Event) => any) | undefined;
12
12
  }> & (typeof globalThis extends {
13
13
  __VLS_PROPS_FALLBACK: infer P;
@@ -19,7 +19,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
19
19
  modelValue: ((M extends true ? string[] : string) | undefined) & Exclude<M extends true ? string[] : string, undefined>;
20
20
  }) => any;
21
21
  };
22
- emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
22
+ emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void);
23
23
  }>) => import("vue").VNode & {
24
24
  __ctx?: Awaited<typeof __VLS_setup>;
25
25
  };
@@ -7,8 +7,8 @@ declare const __VLS_export: <T extends CommandSingleOptionData = CommandSingleOp
7
7
  props: import("vue").PublicProps & __VLS_PrettifyLocal<CommandCompactProps<T> & {
8
8
  onSelect?: ((event: SelectEvent<string>) => any) | undefined;
9
9
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
- onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
11
10
  onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
11
+ onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
12
12
  onLeave?: ((event: Event) => any) | undefined;
13
13
  "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
14
14
  }> & (typeof globalThis extends {
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends CommandSingleOptionData = CommandSingleOp
17
17
  expose: (exposed: {}) => void;
18
18
  attrs: any;
19
19
  slots: CommandCompactSlots<T>;
20
- emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void) & ((evt: "update:searchTerm", value: string) => void);
20
+ emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void) & ((evt: "update:searchTerm", value: string) => void);
21
21
  }>) => import("vue").VNode & {
22
22
  __ctx?: Awaited<typeof __VLS_setup>;
23
23
  };
@@ -10,15 +10,15 @@ declare const __VLS_base: import("vue").DefineComponent<DateFieldRootProps, {},
10
10
  "onUpdate:modelValue"?: ((value: import("@internationalized/date").DateValue | undefined) => any) | undefined;
11
11
  "onUpdate:placeholder"?: ((value: import("@internationalized/date").DateValue) => any) | undefined;
12
12
  }>, {
13
- disabled: boolean;
14
13
  placeholder: import("@internationalized/date").DateValue;
14
+ disabled: boolean;
15
15
  step: DateStep;
16
16
  defaultValue: import("@internationalized/date").DateValue;
17
17
  defaultPlaceholder: import("@internationalized/date").DateValue;
18
18
  readonly: boolean;
19
19
  isDateUnavailable: DateMatcher;
20
- granularity: Granularity;
21
20
  hourCycle: 12 | 24;
21
+ granularity: Granularity;
22
22
  hideTimeZone: boolean;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -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
- color: string | undefined;
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
- role: string | undefined;
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,61 +245,26 @@ 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
  }> & {
251
251
  readonly open: boolean | undefined;
252
252
  } & {
253
- readonly disabled: boolean;
254
253
  readonly inlist: boolean;
254
+ readonly disabled: boolean;
255
255
  readonly asChild: boolean;
256
256
  readonly open: boolean | undefined;
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
- readonly multiple: boolean;
267
- }, "open" | "positionerProps" | "triggerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
267
+ }, "open" | "triggerProps" | "positionerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
268
268
  onUpdateModelValue: (value: DateValue | undefined) => void;
269
269
  onUpdatePlaceholder: (placeholder: DateValue) => void;
270
270
  };
@@ -14,15 +14,15 @@ declare const __VLS_base: import("vue").DefineComponent<DateRangeFieldRootProps,
14
14
  "onUpdate:startValue"?: ((date: import("@internationalized/date").DateValue | undefined) => any) | undefined;
15
15
  "onUpdate:endValue"?: ((date: import("@internationalized/date").DateValue | undefined) => any) | undefined;
16
16
  }>, {
17
- disabled: boolean;
18
17
  placeholder: import("@internationalized/date").DateValue;
18
+ disabled: boolean;
19
19
  step: DateStep;
20
20
  defaultValue: DateRange;
21
21
  defaultPlaceholder: import("@internationalized/date").DateValue;
22
22
  readonly: boolean;
23
23
  isDateUnavailable: DateMatcher;
24
- granularity: Granularity;
25
24
  hourCycle: 12 | 24;
25
+ granularity: Granularity;
26
26
  hideTimeZone: boolean;
27
27
  startName: string;
28
28
  endName: string;
@@ -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
- color: string | undefined;
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
- role: string | undefined;
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,61 +248,26 @@ 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
  }> & {
254
254
  readonly open: boolean | undefined;
255
255
  } & {
256
- readonly disabled: boolean;
257
256
  readonly inlist: boolean;
257
+ readonly disabled: boolean;
258
258
  readonly asChild: boolean;
259
259
  readonly open: boolean | undefined;
260
260
  readonly showArrow: boolean;
261
261
  readonly defaultOpen: boolean;
262
262
  readonly modal: boolean;
263
- readonly allowNonContiguousRanges: boolean;
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
- }, "open" | "positionerProps" | "triggerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
269
+ readonly allowNonContiguousRanges: boolean;
270
+ }, "open" | "triggerProps" | "positionerProps" | "placement" | "showArrow" | "portalProps" | "popupProps" | "arrowProps" | "closeProps" | "defaultOpen" | "modal">;
271
271
  onUpdateModelValue: (value: DateRange) => void;
272
272
  onUpdatePlaceholder: (placeholder: DateValue) => void;
273
273
  };
@@ -4,9 +4,9 @@ import { DialogAlertType, DialogCompactProps, DialogCompactSlots } from "./types
4
4
  type __VLS_Slots = DialogCompactSlots;
5
5
  declare const __VLS_base: import("vue").DefineComponent<DialogCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  click: (event: PointerEvent) => any;
7
- cancel: (event: MouseEvent) => any;
8
- close: (event: MouseEvent) => any;
9
7
  "update:open": (value: boolean) => any;
8
+ close: (event: MouseEvent) => any;
9
+ cancel: (event: MouseEvent) => any;
10
10
  escapeKeyDown: (event: KeyboardEvent) => any;
11
11
  pointerDownOutside: (event: PointerDownOutsideEvent) => any;
12
12
  focusOutside: (event: FocusOutsideEvent) => any;
@@ -16,9 +16,9 @@ declare const __VLS_base: import("vue").DefineComponent<DialogCompactProps, {},
16
16
  confirm: (event: MouseEvent) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<DialogCompactProps> & Readonly<{
18
18
  onClick?: ((event: PointerEvent) => any) | undefined;
19
- onCancel?: ((event: MouseEvent) => any) | undefined;
20
- onClose?: ((event: MouseEvent) => any) | undefined;
21
19
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
20
+ onClose?: ((event: MouseEvent) => any) | undefined;
21
+ onCancel?: ((event: MouseEvent) => any) | undefined;
22
22
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
23
23
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
24
24
  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.132.0/helpers/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};
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};
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<DropdownMenuRootProps, {
15
15
  open: boolean;
16
16
  delayDuration: number;
17
17
  skipDelayDuration: number;
18
- modal: boolean;
19
18
  trigger: DropdownMenuTriggerType;
19
+ modal: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<InputNumberRootProps, {}
15
15
  }>, {
16
16
  step: number;
17
17
  modelValue: number | null;
18
- focusOnChange: boolean;
19
18
  stepSnapping: boolean;
19
+ focusOnChange: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -6,23 +6,23 @@ declare const __VLS_base: import("vue").DefineComponent<InputOtpCompactProps, {}
6
6
  input: (value: string) => any;
7
7
  select: (event: Event) => any;
8
8
  change: (event: Event) => any;
9
+ "update:modelValue": (value: string) => 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
19
  onChange?: ((event: Event) => any) | undefined;
20
+ "onUpdate:modelValue"?: ((value: string) => 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>;
@@ -18,29 +18,29 @@ declare const __VLS_base: import("vue").DefineComponent<InputOtpRootProps, {
18
18
  input: (value: string) => any;
19
19
  select: (event: Event) => any;
20
20
  change: (event: Event) => any;
21
+ "update:modelValue": (value: string) => 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
31
  onChange?: ((event: Event) => any) | undefined;
32
+ "onUpdate:modelValue"?: ((value: string) => 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;
41
41
  inputmode: InputOtpInputMode;
42
- defaultValue: string;
43
42
  modelValue: string;
43
+ defaultValue: string;
44
44
  pushPasswordManagerStrategy: InputOtpPushPasswordManagerStrategy;
45
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
46
46
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -5,8 +5,8 @@ import { ListboxCollectionItemData, ListboxRootProps } from "./types.js";
5
5
  declare const __VLS_export: <M extends boolean>(__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<ListboxRootProps<M> & {
7
7
  "onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
8
- onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
9
8
  onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
9
+ onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
10
10
  onLeave?: ((event: Event) => any) | undefined;
11
11
  }> & (typeof globalThis extends {
12
12
  __VLS_PROPS_FALLBACK: infer P;
@@ -24,7 +24,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
24
24
  modelValue: (M extends true ? string[] : string) | undefined;
25
25
  }) => any;
26
26
  };
27
- emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
27
+ emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void);
28
28
  }>) => import("vue").VNode & {
29
29
  __ctx?: Awaited<typeof __VLS_setup>;
30
30
  };
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: DefinedValue) => any) | undefined;
15
15
  }>, {
16
- modelValue: DefinedValue;
17
16
  loop: boolean;
17
+ modelValue: DefinedValue;
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;
@@ -13,9 +13,9 @@ declare const __VLS_base: import("vue").DefineComponent<NavigationMenuRootProps,
13
13
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
14
14
  }>, {
15
15
  orientation: DataOrientation;
16
+ unmountOnHide: boolean;
16
17
  delayDuration: number;
17
18
  skipDelayDuration: number;
18
- unmountOnHide: boolean;
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;
@@ -10,8 +10,8 @@ declare const __VLS_base: import("vue").DefineComponent<PageTabsRootProps, {}, {
10
10
  }, string, import("vue").PublicProps, Readonly<PageTabsRootProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
12
  }>, {
13
- modelValue: string;
14
13
  loop: boolean;
14
+ modelValue: string;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
17
  declare const _default: typeof __VLS_export;
@@ -3,8 +3,8 @@ import { PopconfirmCompactProps, PopconfirmCompactSlots } from "./types.js";
3
3
  //#region src/components/popconfirm/popconfirm-compact.vue.d.ts
4
4
  type __VLS_Slots = PopconfirmCompactSlots;
5
5
  declare const __VLS_base: import("vue").DefineComponent<PopconfirmCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- cancel: (event: PointerEvent) => any;
7
6
  "update:open": (value: boolean) => any;
7
+ cancel: (event: PointerEvent) => any;
8
8
  escapeKeyDown: (event: KeyboardEvent) => any;
9
9
  pointerDownOutside: (event: PointerDownOutsideEvent) => any;
10
10
  focusOutside: (event: FocusOutsideEvent) => any;
@@ -13,8 +13,8 @@ declare const __VLS_base: import("vue").DefineComponent<PopconfirmCompactProps,
13
13
  closeAutoFocus: (event: Event) => any;
14
14
  confirm: (event: PointerEvent) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<PopconfirmCompactProps> & Readonly<{
16
- onCancel?: ((event: PointerEvent) => any) | undefined;
17
16
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
17
+ onCancel?: ((event: PointerEvent) => any) | undefined;
18
18
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
19
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
20
20
  onFocusOutside?: ((event: FocusOutsideEvent) => 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
- color: string;
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
- role: string;
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" | "text additions" | "text removals";
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,44 +200,8 @@ 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
+ reference: import("@floating-ui/dom").ReferenceElement;
204
205
  side: import("@floating-ui/utils").Side;
205
206
  sideOffset: number;
206
207
  sideFlip: boolean;
@@ -218,7 +219,6 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
218
219
  updatePositionStrategy: "optimized" | "always";
219
220
  disableUpdateOnLayoutShift: boolean;
220
221
  prioritizePosition: boolean;
221
- reference: import("@floating-ui/dom").ReferenceElement;
222
222
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
223
223
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
224
224
  declare const _default: typeof __VLS_export;
@@ -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.132.0/helpers/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};
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};
@@ -14,14 +14,14 @@ 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
+ dir: Direction;
18
+ disabled: boolean;
17
19
  max: number;
18
20
  min: number;
19
21
  orientation: DataOrientation;
20
- disabled: boolean;
21
- dir: Direction;
22
22
  step: number;
23
- defaultValue: number[];
24
23
  modelValue: number[];
24
+ defaultValue: number[];
25
25
  inverted: boolean;
26
26
  minStepsBetweenThumbs: number;
27
27
  thumbAlignment: SliderThumbAlignment;
@@ -12,8 +12,8 @@ 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;
16
+ direction: DataOrientation;
17
17
  keyboardResizeBy: number;
18
18
  defaultLayout: number[];
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -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;
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<StepperRootProps, {
37
37
  "onUpdate:modelValue"?: ((payload: number) => any) | undefined;
38
38
  }>, {
39
39
  orientation: DataOrientation;
40
- defaultValue: number;
41
40
  modelValue: number;
41
+ defaultValue: number;
42
42
  linear: boolean;
43
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
44
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
14
14
  "onUpdate:modelValue"?: ((payload: DefinedValue | null) => any) | undefined;
15
15
  }>, {
16
16
  orientation: DataOrientation;
17
- modelValue: DefinedValue | null;
18
17
  loop: boolean;
18
+ modelValue: DefinedValue | null;
19
19
  activationMode: TabsActivationMode;
20
20
  unmountOnHide: boolean;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -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,19 +9,19 @@ 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
  }>, {
22
22
  max: number;
23
- defaultValue: string[];
24
23
  modelValue: string[];
24
+ defaultValue: string[];
25
25
  delimiter: string | RegExp;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -10,14 +10,14 @@ declare const __VLS_base: import("vue").DefineComponent<TimeFieldRootProps, {},
10
10
  "onUpdate:modelValue"?: ((time: TimeValue | undefined) => any) | undefined;
11
11
  "onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
12
12
  }>, {
13
- disabled: boolean;
14
13
  placeholder: TimeValue;
14
+ disabled: boolean;
15
15
  step: DateStep;
16
16
  defaultValue: TimeValue;
17
17
  defaultPlaceholder: TimeValue;
18
18
  readonly: boolean;
19
- granularity: TimeGranularity;
20
19
  hourCycle: 12 | 24;
20
+ granularity: TimeGranularity;
21
21
  hideTimeZone: boolean;
22
22
  isTimeUnavailable: TimeMatcher;
23
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -14,18 +14,18 @@ declare const __VLS_base: import("vue").DefineComponent<TimeRangeFieldRootProps,
14
14
  "onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
15
15
  "onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
16
16
  }>, {
17
- disabled: boolean;
18
17
  placeholder: TimeValue;
18
+ disabled: boolean;
19
19
  step: DateStep;
20
20
  defaultValue: TimeRange;
21
21
  defaultPlaceholder: TimeValue;
22
22
  readonly: boolean;
23
- granularity: TimeGranularity;
24
23
  hourCycle: 12 | 24;
24
+ granularity: TimeGranularity;
25
25
  hideTimeZone: boolean;
26
- isTimeUnavailable: TimeMatcher;
27
26
  startName: string;
28
27
  endName: string;
28
+ isTimeUnavailable: TimeMatcher;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
31
31
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import{_defineProperty as e}from"../../_virtual/_@oxc-project_runtime@0.132.0/helpers/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
+ 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!==`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};
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};
@@ -9,9 +9,9 @@ declare const __VLS_base: import("vue").DefineComponent<ToasterProps, {}, {}, {}
9
9
  offset: ToastOffset;
10
10
  duration: number;
11
11
  gap: number;
12
+ position: ToastPosition;
12
13
  hotkey: string[];
13
14
  containerAriaLabel: string;
14
- position: ToastPosition;
15
15
  visibleCounts: number;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<ToggleProps, {}, {}, {},
15
15
  }, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
16
16
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
17
  }>, {
18
- defaultValue: boolean;
19
18
  modelValue: boolean;
19
+ defaultValue: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -5,15 +5,15 @@ declare const __VLS_export: <T extends TreeMenuBaseOptionData = TreeMenuBaseOpti
5
5
  props: import("vue").PublicProps & __VLS_PrettifyLocal<TreeMenuCompactProps<T> & {
6
6
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
7
7
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
8
- onSelectDropdown?: ((value: string) => any) | undefined;
9
8
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
9
+ onSelectDropdown?: ((value: string) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
11
11
  __VLS_PROPS_FALLBACK: infer P;
12
12
  } ? P : {});
13
13
  expose: (exposed: {}) => void;
14
14
  attrs: any;
15
15
  slots: TreeMenuCompactSlots<T>;
16
- emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "selectDropdown", value: string) => void) & ((evt: "update:collapsed", value: boolean) => void);
16
+ emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "update:collapsed", value: boolean) => void) & ((evt: "selectDropdown", value: string) => void);
17
17
  }>) => import("vue").VNode & {
18
18
  __ctx?: Awaited<typeof __VLS_setup>;
19
19
  };
@@ -2,8 +2,8 @@ import { VisuallyHiddenFeature, VisuallyHiddenInputProps } from "./types.js";
2
2
 
3
3
  //#region src/components/visually-hidden/visually-hidden-input.vue.d.ts
4
4
  declare const __VLS_export: import("vue").DefineComponent<VisuallyHiddenInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VisuallyHiddenInputProps> & Readonly<{}>, {
5
- checked: boolean;
6
5
  feature: VisuallyHiddenFeature;
6
+ checked: boolean;
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
8
  declare const _default: typeof __VLS_export;
9
9
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/headless",
3
- "version": "0.26.2",
3
+ "version": "0.26.3",
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.34",
118
+ "vue": "3.5.35",
119
119
  "vue-router": "5.0.7"
120
120
  },
121
121
  "peerDependencies": {