@wisemen/vue-core-components 1.16.0 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/{AlertCircleIcon-DelrXF7c.js → AlertCircleIcon-D7CicIEs.js} +1 -1
  2. package/dist/{AlertTriangleIcon-CFrELJcW.js → AlertTriangleIcon-DzlLdT1q.js} +1 -1
  3. package/dist/{ArrowDownIcon-YUzB99vf.js → ArrowDownIcon-DZr01Sf6.js} +1 -1
  4. package/dist/{ArrowLeftIcon-DQOLkI3G.js → ArrowLeftIcon-CVU7B5Rv.js} +1 -1
  5. package/dist/{ArrowRightIcon-DPGsCuTm.js → ArrowRightIcon-A8_LzUxJ.js} +1 -1
  6. package/dist/{ArrowUpIcon-BYiLoeeM.js → ArrowUpIcon-c-BbbYHh.js} +1 -1
  7. package/dist/{CalendarIcon-CaXOeBIG.js → CalendarIcon-D2NvYthk.js} +1 -1
  8. package/dist/{CheckCircleIcon-4nD6B6qw.js → CheckCircleIcon-DKnYfS0a.js} +1 -1
  9. package/dist/{CheckIcon-GzostKdM.js → CheckIcon-BdFM_PWS.js} +1 -1
  10. package/dist/{ChevronLeftDoubleIcon-BJ0D12Dc.js → ChevronLeftDoubleIcon-BjIKgpkh.js} +1 -1
  11. package/dist/{ChevronLeftIcon-3rZM_Sqp.js → ChevronLeftIcon-DhUy0U_9.js} +1 -1
  12. package/dist/{ChevronRightDoubleIcon-DCEN8uqA.js → ChevronRightDoubleIcon-BF0prMpM.js} +1 -1
  13. package/dist/{ChevronRightIcon-neBbVEWj.js → ChevronRightIcon-5hSTA6TF.js} +1 -1
  14. package/dist/{CloseIcon-B_VHoSvl.js → CloseIcon-C0sSLkrm.js} +1 -1
  15. package/dist/{EyeIcon-YhMct6aT.js → EyeIcon-LaL5PkGR.js} +1 -1
  16. package/dist/{EyeOffIcon-z84NVCfW.js → EyeOffIcon-CG1ArkOt.js} +1 -1
  17. package/dist/{InfoCircleIcon-Do8jlre3.js → InfoCircleIcon-itEN2uGV.js} +1 -1
  18. package/dist/{MinusIcon-Cg7Y1Zzn.js → MinusIcon-Dm3It5EC.js} +1 -1
  19. package/dist/{PlusIcon-CGSS6aDj.js → PlusIcon-C71GCIJ1.js} +1 -1
  20. package/dist/{SearchIcon-DAeP3qTk.js → SearchIcon-DMDvaCjI.js} +1 -1
  21. package/dist/{SelectIconRight-DtGBKWnU.js → SelectIconRight-CpQjNlqt.js} +1 -1
  22. package/dist/{StarsIcon-CWbJpnyG.js → StarsIcon-CtRxOZ6l.js} +1 -1
  23. package/dist/{SwitchVerticalIcon-DuMoRd-N.js → SwitchVerticalIcon-BbFWYPhT.js} +1 -1
  24. package/dist/{TranslateIcon-CLNdq2P3.js → TranslateIcon-BWa8fOJh.js} +1 -1
  25. package/dist/class-variant/classVariant.type.d.ts +0 -7
  26. package/dist/components/button/default-button/Button.d.ts +0 -4
  27. package/dist/components/button/default-button/parts/ButtonRoot.d.ts +0 -4
  28. package/dist/components/button/icon-button/IconButton.d.ts +0 -4
  29. package/dist/components/button/icon-button/parts/IconButtonRoot.d.ts +0 -4
  30. package/dist/components/button/shared/sharedButton.props.d.ts +0 -2
  31. package/dist/components/config-provider/ConfigProvider.d.ts +7 -0
  32. package/dist/components/config-provider/config.context.d.ts +2 -0
  33. package/dist/components/config-provider/index.d.ts +1 -0
  34. package/dist/components/date-field/DateField.d.ts +29 -19
  35. package/dist/components/date-field/dateField.context.d.ts +3 -2
  36. package/dist/components/date-field/index.d.ts +1 -1
  37. package/dist/components/date-field/parts/DateFieldRoot.d.ts +51 -19
  38. package/dist/components/date-picker/range/DateRangePicker.d.ts +7 -6
  39. package/dist/components/date-picker/range/dateRangePicker.context.d.ts +3 -2
  40. package/dist/components/date-picker/range/parts/DateRangePickerRoot.d.ts +7 -6
  41. package/dist/components/date-picker/shared/datePicker.util.d.ts +3 -0
  42. package/dist/components/date-picker/single/DatePicker.d.ts +7 -6
  43. package/dist/components/date-picker/single/datePicker.context.d.ts +3 -2
  44. package/dist/components/date-picker/single/parts/DatePickerRoot.d.ts +7 -6
  45. package/dist/components/date-range-field/DateRangeField.d.ts +29 -19
  46. package/dist/components/date-range-field/dateRangeField.context.d.ts +3 -2
  47. package/dist/components/date-range-field/parts/DateRangeFieldRoot.d.ts +51 -19
  48. package/dist/components/dialog/Dialog.d.ts +2 -0
  49. package/dist/components/dialog/DialogContainer.d.ts +1 -5
  50. package/dist/components/dialog/dialog.composable.d.ts +12 -4
  51. package/dist/components/dialog/dialog.type.d.ts +5 -47
  52. package/dist/components/dialog/index.d.ts +1 -1
  53. package/dist/components/dropdown-menu/DropdownMenu.d.ts +4 -0
  54. package/dist/components/dropdown-menu/dropdownMenu.context.d.ts +2 -0
  55. package/dist/components/dropdown-menu/parts/DropdownMenuRoot.d.ts +4 -0
  56. package/dist/components/index.d.ts +0 -1
  57. package/dist/components/table/index.d.ts +3 -7
  58. package/dist/components/table/parts/TableBody.d.ts +16 -1
  59. package/dist/components/table/parts/TableCell.d.ts +2 -4
  60. package/dist/components/table/parts/TableHeader.d.ts +16 -1
  61. package/dist/components/table/parts/TableHeaderCell.d.ts +15 -4
  62. package/dist/components/table/parts/TableHiddenResultsHint.d.ts +7 -1
  63. package/dist/components/table/parts/TableRoot.d.ts +22 -15
  64. package/dist/components/table/parts/TableRow.d.ts +20 -2
  65. package/dist/components/table/table.composable.d.ts +6 -15
  66. package/dist/components/table/table.context.d.ts +1 -5
  67. package/dist/components/table/table.props.d.ts +3 -36
  68. package/dist/components/table/table.style.d.ts +3 -0
  69. package/dist/components/table/table.type.d.ts +11 -43
  70. package/dist/components/theme-provider/ThemeProvider.d.ts +8 -2
  71. package/dist/components/time-field/TimeField.d.ts +26 -17
  72. package/dist/components/time-field/parts/TimeFieldRoot.d.ts +48 -17
  73. package/dist/components/time-field/timeField.context.d.ts +2 -1
  74. package/dist/components/toast/index.d.ts +1 -1
  75. package/dist/{index-DOv-oW06.js → index-B8ijWIxM.js} +4600 -5515
  76. package/dist/index.d.ts +1 -0
  77. package/dist/index.js +147 -159
  78. package/dist/index.umd +14 -14
  79. package/dist/style.css +1 -1
  80. package/dist/types/dateRange.type.d.ts +2 -1
  81. package/dist/types/hourCycle.type.d.ts +1 -0
  82. package/package.json +8 -6
  83. package/dist/components/internal/ProgressiveBlur.d.ts +0 -5
  84. package/dist/components/table/Table.d.ts +0 -24
  85. package/dist/components/table/parts/TableCellLayout.d.ts +0 -21
  86. package/dist/components/table/parts/TableEmptyOrLoadingState.d.ts +0 -19
  87. package/dist/components/table/parts/TableHeaderCellProvider.d.ts +0 -21
  88. package/dist/components/table/parts/TableInteractiveElement.d.ts +0 -17
  89. package/dist/components/table/parts/TableRowAction.d.ts +0 -6
  90. package/dist/components/table/table.emits.d.ts +0 -3
  91. package/dist/components/table/tableHeaderCell.context.d.ts +0 -7
  92. package/dist/components/table-next/index.d.ts +0 -11
  93. package/dist/components/table-next/parts/TableBody.d.ts +0 -17
  94. package/dist/components/table-next/parts/TableCell.d.ts +0 -24
  95. package/dist/components/table-next/parts/TableContent.d.ts +0 -17
  96. package/dist/components/table-next/parts/TableHeader.d.ts +0 -17
  97. package/dist/components/table-next/parts/TableHeaderCell.d.ts +0 -29
  98. package/dist/components/table-next/parts/TableHiddenResultsHint.d.ts +0 -8
  99. package/dist/components/table-next/parts/TableRoot.d.ts +0 -27
  100. package/dist/components/table-next/parts/TableRow.d.ts +0 -23
  101. package/dist/components/table-next/parts/TableScrollContainer.d.ts +0 -21
  102. package/dist/components/table-next/table.composable.d.ts +0 -7
  103. package/dist/components/table-next/table.context.d.ts +0 -15
  104. package/dist/components/table-next/table.props.d.ts +0 -21
  105. package/dist/components/table-next/table.style.d.ts +0 -37
  106. package/dist/components/table-next/table.type.d.ts +0 -12
  107. /package/dist/components/date-field/parts/{DatefieldPopover.d.ts → DateFieldPopover.d.ts} +0 -0
  108. /package/dist/components/{table-next → table}/parts/TableCellSkeleton.d.ts +0 -0
@@ -1,10 +1,11 @@
1
1
  import { DateValue } from 'reka-ui';
2
+ import { Temporal } from 'temporal-polyfill';
2
3
  import { Grid } from '../../shared/datePicker.type';
3
4
  import { DatePickerProps } from '../datePicker.props';
4
5
  type __VLS_Props = DatePickerProps;
5
6
  type __VLS_PublicProps = {
6
- modelValue: Date | null;
7
- 'placeholderValue'?: Date;
7
+ modelValue: Temporal.PlainDate | null;
8
+ 'placeholderValue'?: Temporal.PlainDate;
8
9
  } & __VLS_Props;
9
10
  declare function __VLS_template(): {
10
11
  attrs: Partial<{}>;
@@ -19,11 +20,11 @@ declare function __VLS_template(): {
19
20
  };
20
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
22
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
- "update:modelValue": (value: Date | null) => any;
23
- "update:placeholderValue": (value: Date) => any;
23
+ "update:modelValue": (value: Temporal.PlainDate | null) => any;
24
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
24
25
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
26
- "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: Temporal.PlainDate | null) => any) | undefined;
27
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
27
28
  }>, {
28
29
  variant: null;
29
30
  testId: string | null;
@@ -1,25 +1,35 @@
1
- import { DateRangeFieldEmits } from './dateRangeField.emits';
1
+ import { Temporal } from 'temporal-polyfill';
2
2
  import { DateRangeFieldProps } from './dateRangeField.props';
3
3
  import { DateRangeFieldSlots } from './dateRangeField.slots';
4
4
  import { DateRange } from '../../types/dateRange.type';
5
- declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
- readonly onFocus?: ((e: FocusEvent) => any) | undefined;
8
- readonly onBlur?: ((e: FocusEvent) => any) | undefined;
9
- readonly "onUpdate:modelValue"?: ((value: DateRange<TValue>) => any) | undefined;
10
- readonly "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
11
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:placeholderValue"> & ({
12
- modelValue: DateRange<TValue>;
13
- placeholderValue?: Date;
14
- } & DateRangeFieldProps) & Partial<{}>> & import('vue').PublicProps;
15
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
16
- attrs: any;
5
+ type __VLS_Props = DateRangeFieldProps;
6
+ type __VLS_PublicProps = {
7
+ modelValue: DateRange<Temporal.PlainDate>;
8
+ 'placeholderValue'?: Temporal.PlainDate;
9
+ } & __VLS_Props;
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
17
12
  slots: Readonly<DateRangeFieldSlots> & DateRangeFieldSlots;
18
- emit: DateRangeFieldEmits & (((evt: "update:modelValue", value: DateRange<TValue>) => void) & ((evt: "update:placeholderValue", value: Date) => void));
19
- }>) => import('vue').VNode & {
20
- __ctx?: Awaited<typeof __VLS_setup>;
13
+ refs: {};
14
+ rootEl: HTMLDivElement;
21
15
  };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
19
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
20
+ } & {
21
+ focus: (e: FocusEvent) => any;
22
+ blur: (e: FocusEvent) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ onFocus?: ((e: FocusEvent) => any) | undefined;
25
+ onBlur?: ((e: FocusEvent) => any) | undefined;
26
+ "onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
27
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
30
  export default _default;
23
- type __VLS_PrettifyLocal<T> = {
24
- [K in keyof T]: T[K];
25
- } & {};
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -1,3 +1,4 @@
1
+ import { Temporal } from 'temporal-polyfill';
1
2
  import { ComputedRef, Ref } from 'vue';
2
3
  import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
3
4
  import { DateRangeFieldProps } from './dateRangeField.props';
@@ -6,8 +7,8 @@ import { DateRange } from '../../types/dateRange.type';
6
7
  import { PropsToComputed } from '../../utils/props.util';
7
8
  interface DateRangeFieldContext extends PropsToComputed<DateRangeFieldProps> {
8
9
  customClassConfig: ComputedRef<ResolvedClassConfig<'dateRangeField'>>;
9
- modelValue: Ref<DateRange>;
10
- placeholderValue: Ref<Date>;
10
+ modelValue: Ref<DateRange<Temporal.PlainDate>>;
11
+ placeholderValue: Ref<Temporal.PlainDate>;
11
12
  style: ComputedRef<CreateDateRangeFieldStyle>;
12
13
  onBlur: (event: FocusEvent) => void;
13
14
  onFocus: (event: FocusEvent) => void;
@@ -1,18 +1,14 @@
1
- import { DateRangeFieldEmits } from '../dateRangeField.emits';
1
+ import { Temporal } from 'temporal-polyfill';
2
+ import { ResolvedClassConfig } from '../../../class-variant/classVariant.type';
2
3
  import { DateRangeFieldProps } from '../dateRangeField.props';
3
4
  import { DateRange } from '../../../types/dateRange.type';
4
- declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
- readonly onFocus?: ((e: FocusEvent) => any) | undefined;
7
- readonly onBlur?: ((e: FocusEvent) => any) | undefined;
8
- readonly "onUpdate:modelValue"?: ((value: DateRange<TValue>) => any) | undefined;
9
- readonly "onUpdate:placeholderValue"?: ((value: Date) => any) | undefined;
10
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:placeholderValue"> & ({
11
- modelValue: DateRange<TValue>;
12
- placeholderValue?: Date;
13
- } & DateRangeFieldProps) & Partial<{}>> & import('vue').PublicProps;
14
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
15
- attrs: any;
5
+ type __VLS_Props = DateRangeFieldProps;
6
+ type __VLS_PublicProps = {
7
+ modelValue: DateRange<Temporal.PlainDate>;
8
+ 'placeholderValue'?: Temporal.PlainDate;
9
+ } & __VLS_Props;
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
16
12
  slots: {
17
13
  default?(_: {
18
14
  segments: {
@@ -27,11 +23,47 @@ declare const _default: <TValue extends Date>(__VLS_props: NonNullable<Awaited<t
27
23
  };
28
24
  }): any;
29
25
  };
30
- emit: DateRangeFieldEmits & (((evt: "update:modelValue", value: DateRange<TValue>) => void) & ((evt: "update:placeholderValue", value: Date) => void));
31
- }>) => import('vue').VNode & {
32
- __ctx?: Awaited<typeof __VLS_setup>;
26
+ refs: {};
27
+ rootEl: any;
33
28
  };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
+ "update:modelValue": (value: DateRange<Temporal.PlainDate>) => any;
32
+ "update:placeholderValue": (value: Temporal.PlainDate) => any;
33
+ } & {
34
+ focus: (e: FocusEvent) => any;
35
+ blur: (e: FocusEvent) => any;
36
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
37
+ onFocus?: ((e: FocusEvent) => any) | undefined;
38
+ onBlur?: ((e: FocusEvent) => any) | undefined;
39
+ "onUpdate:modelValue"?: ((value: DateRange<Temporal.PlainDate>) => any) | undefined;
40
+ "onUpdate:placeholderValue"?: ((value: Temporal.PlainDate) => any) | undefined;
41
+ }>, {
42
+ variant: null;
43
+ iconLeft: import('../../..').Icon | null;
44
+ label: string | null;
45
+ hint: string | null;
46
+ isLoading: boolean;
47
+ testId: string | null;
48
+ isDisabled: boolean;
49
+ id: string | null;
50
+ isRequired: boolean;
51
+ isTouched: boolean;
52
+ errorMessage: string | null;
53
+ classConfig: ResolvedClassConfig<"dateRangeField"> | null;
54
+ autocomplete: "off" | "on";
55
+ hideDatePicker: boolean;
56
+ maxDate: Date | null;
57
+ minDate: Date | null;
58
+ isDateDisabled: (date: Date) => boolean;
59
+ isDateUnavailable: (date: Date) => boolean;
60
+ allowDeselect: boolean;
61
+ showTwoMonths: boolean;
62
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
64
  export default _default;
35
- type __VLS_PrettifyLocal<T> = {
36
- [K in keyof T]: T[K];
37
- } & {};
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
@@ -23,9 +23,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
23
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
24
  close: () => any;
25
25
  "update:isOpen": (value: boolean) => any;
26
+ close_: () => any;
26
27
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
28
  onClose?: (() => any) | undefined;
28
29
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
30
+ onClose_?: (() => any) | undefined;
29
31
  }>, {
30
32
  testId: string | null;
31
33
  classConfig: import('../../class-variant/classVariant.type').ResolvedClassConfig<"dialog"> | null;
@@ -1,6 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
- "update:activeDialogCount": (count: number) => any;
3
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
4
- "onUpdate:activeDialogCount"?: ((count: number) => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
2
  export default _default;
@@ -1,5 +1,13 @@
1
- import { Component, Ref } from 'vue';
2
- import { Dialog, UseDialogContainerReturnType, UseDialogOptions, UseDialogReturnType } from './dialog.type';
1
+ import { Ref } from 'vue';
2
+ import { Dialog, DialogTriggerProps, GetComponentProps, OpenDialog } from './dialog.type';
3
3
  export declare const dialogs: Ref<Dialog[]>;
4
- export declare function useDialogContainer(): UseDialogContainerReturnType;
5
- export declare function useDialog<TComponent extends Component>(options: UseDialogOptions<TComponent>): UseDialogReturnType<TComponent>;
4
+ export declare function useDialogContainer(): {
5
+ dialogs: Ref<Dialog[], Dialog[]>;
6
+ };
7
+ export declare function removeDialogFromContainer(id: string): void;
8
+ export declare function useDialog<TComponent extends abstract new (...args: any) => any>(component: TComponent): {
9
+ isOpen: import('vue').ComputedRef<boolean>;
10
+ close: () => void;
11
+ open: OpenDialog<GetComponentProps<TComponent>>;
12
+ triggerProps: import('vue').ComputedRef<DialogTriggerProps>;
13
+ };
@@ -1,64 +1,22 @@
1
- import { Component, Ref } from 'vue';
1
+ import { Component } from 'vue';
2
2
  export interface DialogTriggerProps {
3
3
  'id': string;
4
+ 'aria-controls'?: string;
4
5
  'aria-expanded': boolean;
5
6
  'aria-haspopup': 'dialog';
6
7
  'data-state': boolean;
7
8
  }
8
- export type IgnoredKeys = '__v_isVNode' | 'class' | 'key' | 'onVnodeBeforeMount' | 'onVnodeBeforeUnmount' | 'onVnodeBeforeUpdate' | 'onVnodeMounted' | 'onVnodeUnmounted' | 'onVnodeUpdated' | 'ref' | 'ref_for' | 'ref_key' | 'style';
9
+ export type IgnoredProps = '__v_isVNode' | 'class' | 'key' | 'onVnodeBeforeMount' | 'onVnodeBeforeUnmount' | 'onVnodeBeforeUpdate' | 'onVnodeMounted' | 'onVnodeUnmounted' | 'onVnodeUpdated' | 'ref' | 'ref_for' | 'ref_key' | 'style';
9
10
  type PickKeys<T extends object, TValue extends null | undefined> = NonNullable<{
10
11
  [K in keyof T]: TValue extends T[K] ? K : never;
11
12
  }[keyof T]>;
12
13
  type OptionalKeys<T extends object> = PickKeys<T, undefined>;
13
14
  type RequiredKeys<T extends object> = Exclude<keyof T, OptionalKeys<T>>;
14
- export interface Constructor<P = never> {
15
- __isFragment?: never;
16
- __isSuspense?: never;
17
- __isTeleport?: never;
18
- new (...args: never[]): {
19
- $props: P;
20
- };
21
- }
22
- export type Attrs<TComponent> = Omit<{
23
- [K in keyof TComponent]: Ref<TComponent[K]> | TComponent[K];
24
- }, 'isOpen'>;
25
- export interface UseDialogOptions<TComponent extends Component> {
26
- /**
27
- * The component to render. Must be a component of which the root is `AppDialog`
28
- */
29
- component: () => Promise<{
30
- default: Constructor<TComponent>;
31
- }>;
32
- }
33
- export interface UseDialogReturnType<TComponent extends Component> {
34
- isOpen: (id?: string) => boolean;
35
- /**
36
- * Close the dialog
37
- */
38
- close: (id?: string) => void;
39
- /**
40
- * The props to pass to the trigger
41
- * @param id The id of the dialog
42
- */
43
- getTriggerProps: (id?: string) => DialogTriggerProps;
44
- /**
45
- * Open the dialog
46
- * @param attrs The props to pass to the dialog - optional
47
- */
48
- open: Omit<Attrs<TComponent>, 'Symbol'> extends Record<string, never> ? (attrs?: {
49
- id?: string;
50
- }) => Promise<void> : RequiredKeys<Omit<Attrs<TComponent>, 'Symbol'>> extends Record<string, never> ? (attrs?: Omit<Attrs<TComponent>, IgnoredKeys> & {
51
- id?: string;
52
- }) => Promise<void> : (attrs: Omit<Attrs<TComponent>, IgnoredKeys> & {
53
- id?: string;
54
- }) => Promise<void>;
55
- }
15
+ export type GetComponentProps<TComponent extends abstract new (...args: any) => any> = Omit<InstanceType<TComponent>['$props'], IgnoredProps>;
16
+ export type OpenDialog<TProps extends Record<string, any>> = TProps extends Record<string, never> ? () => Promise<void> : RequiredKeys<Omit<TProps, IgnoredProps>> extends Record<string, never> ? (attrs?: Omit<TProps, IgnoredProps>) => Promise<void> : (attrs: Omit<TProps, IgnoredProps>) => Promise<void>;
56
17
  export interface Dialog {
57
18
  id: string;
58
19
  isOpen: boolean;
59
20
  component: Component;
60
21
  }
61
- export interface UseDialogContainerReturnType {
62
- dialogs: Ref<Dialog[]>;
63
- }
64
22
  export {};
@@ -1,4 +1,4 @@
1
- export { useDialog as useVcDialog } from './dialog.composable';
1
+ export { useDialog } from './dialog.composable';
2
2
  export type { DialogProps as VcDialogProps } from './dialog.props';
3
3
  export { createDialogStyle } from './dialog.style';
4
4
  export type { DialogTriggerProps as VcDialogTriggerProps } from './dialog.type';
@@ -29,8 +29,12 @@ declare function __VLS_template(): {
29
29
  };
30
30
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
31
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
32
+ escapeKeyDown: (event: KeyboardEvent) => any;
33
+ closeAutoFocus: (event: Event) => any;
32
34
  "update:isOpen": (value: boolean) => any;
33
35
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
37
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
34
38
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
35
39
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
40
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -7,6 +7,8 @@ interface DropdownMenuContext extends PropsToComputed<DropdownMenuProps> {
7
7
  isOpen: ComputedRef<boolean>;
8
8
  customClassConfig: ComputedRef<ResolvedClassConfig<'dropdownMenu'>>;
9
9
  style: ComputedRef<CreateDropdownMenuStyle>;
10
+ onCloseAutoFocus: (event: Event) => void;
11
+ onEscapeKeyDown: (event: KeyboardEvent) => void;
10
12
  }
11
13
  export declare const useProvideDropdownMenuContext: (context: DropdownMenuContext) => DropdownMenuContext, useInjectDropdownMenuContext: <TFallback extends DropdownMenuContext | null = DropdownMenuContext>(fallback?: TFallback | undefined) => TFallback extends null ? DropdownMenuContext | null : DropdownMenuContext;
12
14
  export {};
@@ -13,8 +13,12 @@ declare function __VLS_template(): {
13
13
  };
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
15
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ escapeKeyDown: (event: KeyboardEvent) => any;
17
+ closeAutoFocus: (event: Event) => any;
16
18
  "update:isOpen": (value: boolean) => any;
17
19
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
21
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
18
22
  "onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
19
23
  }>, {
20
24
  variant: null;
@@ -28,7 +28,6 @@ export * from './select';
28
28
  export * from './spinner';
29
29
  export * from './switch';
30
30
  export * from './table';
31
- export * from './table-next';
32
31
  export * from './tabs';
33
32
  export * from './text-field';
34
33
  export * from './textarea';
@@ -1,15 +1,11 @@
1
1
  export { default as VcTableBody } from './parts/TableBody';
2
2
  export { default as VcTableCell } from './parts/TableCell';
3
+ export { default as VcTableCellSkeleton } from './parts/TableCellSkeleton';
3
4
  export { default as VcTableContent } from './parts/TableContent';
4
- export { default as VcTableEmptyOrLoadingState } from './parts/TableEmptyOrLoadingState';
5
5
  export { default as VcTableHeader } from './parts/TableHeader';
6
- export { default as VcTableHeadercell } from './parts/TableHeaderCell';
6
+ export { default as VcTableHeaderCell } from './parts/TableHeaderCell';
7
7
  export { default as VcTableHiddenResultsHint } from './parts/TableHiddenResultsHint';
8
- export { default as VcTableInteractiveElement } from './parts/TableInteractiveElement';
9
8
  export { default as VcTableRoot } from './parts/TableRoot';
10
9
  export { default as VcTableRow } from './parts/TableRow';
11
10
  export { default as VcTableScrollContainer } from './parts/TableScrollContainer';
12
- export type { TableProps as VcTableProps } from './table.props';
13
- export { createTableStyle } from './table.style';
14
- export type { TableColumn } from './table.type';
15
- export { default as VcTable } from './Table';
11
+ export { type TableRowAction } from './table.type';
@@ -1,2 +1,17 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
12
  export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,8 +1,5 @@
1
1
  type __VLS_Props = {
2
- /**
3
- * When set to true, the cell will have the primary text color to make it stand out
4
- * @default false
5
- */
2
+ hasInteractiveContent?: boolean;
6
3
  isPrimaryCell?: boolean;
7
4
  };
8
5
  declare function __VLS_template(): {
@@ -15,6 +12,7 @@ declare function __VLS_template(): {
15
12
  };
16
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
14
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ hasInteractiveContent: boolean;
18
16
  isPrimaryCell: boolean;
19
17
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,2 +1,17 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
12
  export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -1,14 +1,25 @@
1
+ type __VLS_Props = {
2
+ isSortable?: boolean;
3
+ sortDirection?: 'asc' | 'desc' | null;
4
+ };
1
5
  declare function __VLS_template(): {
2
6
  attrs: Partial<{}>;
3
7
  slots: {
4
- left?(_: {}): any;
5
- right?(_: {}): any;
8
+ default?(_: {}): any;
9
+ default?(_: {}): any;
6
10
  };
7
11
  refs: {};
8
- rootEl: any;
12
+ rootEl: HTMLDivElement;
9
13
  };
10
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ sort: () => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onSort?: (() => any) | undefined;
19
+ }>, {
20
+ isSortable: boolean;
21
+ sortDirection: "asc" | "desc" | null;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
24
  export default _default;
14
25
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,2 +1,8 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ isEmpty: boolean;
3
+ isLoading: boolean;
4
+ activeFilterCount: number;
5
+ onClear: () => void;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
8
  export default _default;
@@ -1,20 +1,27 @@
1
- import { TableEmits } from '../table.emits';
2
1
  import { TableProps } from '../table.props';
3
- import { BasePagination } from '../../../composables/pagination/pagination.type';
4
- declare const _default: <TSchema, TPagination extends BasePagination>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
- readonly onNextPage?: (() => any) | undefined;
7
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onNextPage"> & TableProps<TSchema, TPagination> & Partial<{}>> & import('vue').PublicProps;
8
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
- attrs: any;
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
10
4
  slots: {
11
- default?(_: {}): any;
5
+ default?(_: {
6
+ hasReachedHorizontalEnd: boolean;
7
+ hasVerticalOverflow: boolean;
8
+ isScrolledHorizontally: boolean;
9
+ }): any;
12
10
  };
13
- emit: TableEmits;
14
- }>) => import('vue').VNode & {
15
- __ctx?: Awaited<typeof __VLS_setup>;
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
16
13
  };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TableProps> & Readonly<{}>, {
16
+ variant: null;
17
+ classConfig: import('../../../class-variant/classVariant.type').ResolvedClassConfig<"table"> | null;
18
+ isFirstColumnSticky: boolean;
19
+ isLastColumnSticky: boolean;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
22
  export default _default;
18
- type __VLS_PrettifyLocal<T> = {
19
- [K in keyof T]: T[K];
20
- } & {};
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -1,5 +1,23 @@
1
+ import { TableRowAction } from '../table.type';
1
2
  type __VLS_Props = {
2
- data: any;
3
+ action?: TableRowAction | null;
3
4
  };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
15
+ action: TableRowAction | null;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
5
18
  export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -1,16 +1,7 @@
1
- import { ComputedRef } from 'vue';
2
- import { TableColumn } from './table.type';
3
- interface UseTableOptions {
4
- columns: ComputedRef<TableColumn<any>[]>;
5
- rowCount: ComputedRef<number>;
6
- onNextPage: () => void;
7
- }
8
- interface UseTable {
9
- hasReachedHorizontalEnd: ComputedRef<boolean>;
10
- hasVerticalOverflow: ComputedRef<boolean>;
11
- isScrolledHorizontally: ComputedRef<boolean>;
12
- gridTemplateColumns: ComputedRef<string>;
1
+ export declare function useTable(): {
2
+ hasReachedHorizontalEnd: import('vue').ComputedRef<boolean>;
3
+ hasVerticalOverflow: import('vue').ComputedRef<boolean>;
4
+ isScrolledHorizontally: import('vue').ComputedRef<boolean>;
13
5
  setTableScrollContainerRef: (el: HTMLElement) => void;
14
- }
15
- export declare function useTable({ columns, rowCount, onNextPage, }: UseTableOptions): UseTable;
16
- export {};
6
+ tableScrollContainerRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
7
+ };
@@ -3,17 +3,13 @@ import { ResolvedClassConfig } from '../../class-variant/classVariant.type';
3
3
  import { TableProps } from './table.props';
4
4
  import { CreateTableStyle } from './table.style';
5
5
  import { PropsToComputed } from '../../utils/props.util';
6
- interface TableContext extends PropsToComputed<TableProps<any, any>> {
6
+ interface TableContext extends PropsToComputed<TableProps> {
7
7
  hasReachedHorizontalEnd: ComputedRef<boolean>;
8
8
  hasVerticalOverflow: ComputedRef<boolean>;
9
- isEmpty: ComputedRef<boolean>;
10
9
  isScrolledHorizontally: ComputedRef<boolean>;
11
- activeFilterCount: ComputedRef<number>;
12
10
  customClassConfig: ComputedRef<ResolvedClassConfig<'table'>>;
13
- gridTemplateColumns: ComputedRef<string>;
14
11
  setTableScrollContainerRef: (el: HTMLElement) => void;
15
12
  style: ComputedRef<CreateTableStyle>;
16
- onClearFiltersAndSearch: () => void;
17
13
  }
18
14
  export declare const useProvideTableContext: (context: TableContext) => TableContext, useInjectTableContext: <TFallback extends TableContext | null = TableContext>(fallback?: TFallback | undefined) => TFallback extends null ? TableContext | null : TableContext;
19
15
  export {};