@open-xamu-co/ui-components-vue 3.1.0 → 4.0.0-next.1

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 (98) hide show
  1. package/CHANGELOG.md +11 -60
  2. package/dist/components/action/Button.stories.d.ts +6 -12
  3. package/dist/components/action/Button.vue.d.ts +7 -11
  4. package/dist/components/action/ButtonLink.stories.d.ts +4 -10
  5. package/dist/components/action/ButtonLink.vue.d.ts +17 -19
  6. package/dist/components/action/ButtonToggle.stories.d.ts +4 -10
  7. package/dist/components/action/ButtonToggle.vue.d.ts +7 -11
  8. package/dist/components/action/Link.stories.d.ts +4 -10
  9. package/dist/components/action/Link.vue.d.ts +7 -11
  10. package/dist/components/base/Action.vue.d.ts +7 -11
  11. package/dist/components/base/Box.vue.d.ts +7 -11
  12. package/dist/components/base/BrowserOnly.vue.d.ts +9 -12
  13. package/dist/components/base/ErrorBoundary.vue.d.ts +11 -14
  14. package/dist/components/base/Img.vue.d.ts +2 -1
  15. package/dist/components/base/Input.vue.d.ts +11 -15
  16. package/dist/components/base/Select.vue.d.ts +2 -1
  17. package/dist/components/base/Wrapper.vue.d.ts +9 -13
  18. package/dist/components/box/Action.stories.d.ts +4 -11
  19. package/dist/components/box/Action.vue.d.ts +2 -1
  20. package/dist/components/box/Message.stories.d.ts +4 -10
  21. package/dist/components/box/Message.vue.d.ts +7 -11
  22. package/dist/components/collapse/Simple.stories.d.ts +4 -11
  23. package/dist/components/collapse/Simple.vue.d.ts +7 -11
  24. package/dist/components/dropdown/Simple.stories.d.ts +3 -9
  25. package/dist/components/dropdown/Simple.vue.d.ts +37 -41
  26. package/dist/components/form/Input.stories.d.ts +3 -2
  27. package/dist/components/form/Input.vue.d.ts +2 -1
  28. package/dist/components/form/InputCountriesAPI.vue.d.ts +10 -14
  29. package/dist/components/form/InputLoop.vue.d.ts +12 -7
  30. package/dist/components/form/InputNValues.vue.d.ts +11 -6
  31. package/dist/components/form/InputOptions.vue.d.ts +19 -23
  32. package/dist/components/form/Simple.stories.d.ts +4 -2
  33. package/dist/components/form/Simple.vue.d.ts +14 -9
  34. package/dist/components/form/Stages.stories.d.ts +4 -62
  35. package/dist/components/form/Stages.vue.d.ts +29 -28
  36. package/dist/components/icon/Fa.stories.d.ts +4 -10
  37. package/dist/components/icon/Fa.vue.d.ts +2 -1
  38. package/dist/components/icon/Simple.stories.d.ts +4 -8
  39. package/dist/components/icon/Simple.vue.d.ts +7 -11
  40. package/dist/components/input/Color.stories.d.ts +3 -7
  41. package/dist/components/input/Color.vue.d.ts +2 -1
  42. package/dist/components/input/File.stories.d.ts +4 -10
  43. package/dist/components/input/File.vue.d.ts +2 -1
  44. package/dist/components/input/Text.stories.d.ts +4 -11
  45. package/dist/components/input/Text.vue.d.ts +2 -1
  46. package/dist/components/input/Toggle.stories.d.ts +4 -10
  47. package/dist/components/input/Toggle.vue.d.ts +7 -11
  48. package/dist/components/loader/Content.stories.d.ts +4 -8
  49. package/dist/components/loader/Content.vue.d.ts +7 -11
  50. package/dist/components/loader/ContentFetch.stories.d.ts +5 -8
  51. package/dist/components/loader/ContentFetch.vue.d.ts +16 -11
  52. package/dist/components/loader/Simple.stories.d.ts +4 -8
  53. package/dist/components/loader/Simple.vue.d.ts +7 -11
  54. package/dist/components/modal/Simple.stories.d.ts +3 -15
  55. package/dist/components/modal/Simple.vue.d.ts +53 -53
  56. package/dist/components/pagination/Content.stories.d.ts +4 -7
  57. package/dist/components/pagination/Content.vue.d.ts +15 -10
  58. package/dist/components/pagination/ContentTable.stories.d.ts +4 -7
  59. package/dist/components/pagination/ContentTable.vue.d.ts +23 -15
  60. package/dist/components/pagination/Simple.stories.d.ts +5 -21
  61. package/dist/components/pagination/Simple.vue.d.ts +12 -7
  62. package/dist/components/select/Choice.stories.d.ts +3 -9
  63. package/dist/components/select/Choice.vue.d.ts +2 -1
  64. package/dist/components/select/Filter.stories.d.ts +3 -9
  65. package/dist/components/select/Filter.vue.d.ts +2 -1
  66. package/dist/components/select/Simple.stories.d.ts +4 -11
  67. package/dist/components/select/Simple.vue.d.ts +2 -1
  68. package/dist/components/slider/Simple.stories.d.ts +4 -8
  69. package/dist/components/slider/Simple.vue.d.ts +50 -0
  70. package/dist/components/table/Body.vue.d.ts +18 -11
  71. package/dist/components/table/HeadActions.vue.d.ts +12 -7
  72. package/dist/components/table/HeadContent.vue.d.ts +10 -5
  73. package/dist/components/table/Simple.stories.d.ts +4 -52
  74. package/dist/components/table/Simple.vue.d.ts +23 -15
  75. package/dist/components/value/Complex.stories.d.ts +4 -8
  76. package/dist/components/value/Complex.vue.d.ts +2 -1
  77. package/dist/components/value/List.stories.d.ts +4 -27
  78. package/dist/components/value/List.vue.d.ts +2 -12
  79. package/dist/components/value/Simple.stories.d.ts +5 -10
  80. package/dist/components/value/Simple.vue.d.ts +10 -5
  81. package/dist/index-Bbn-n1yC.js +7098 -0
  82. package/dist/index-CyI1yZlR.cjs +4 -0
  83. package/dist/index.cjs +1 -0
  84. package/dist/index.js +45 -1
  85. package/dist/plugin.cjs +1 -0
  86. package/dist/plugin.js +902 -1
  87. package/dist/theme.cjs +1 -0
  88. package/dist/theme.js +7 -1
  89. package/dist/types/props.d.ts +1 -1
  90. package/dist/types/storybook.d.ts +10 -0
  91. package/package.json +39 -31
  92. package/dist/index-BeKPWN3w.js +0 -4
  93. package/dist/index-DPLrKbNp.mjs +0 -8400
  94. package/dist/index.mjs +0 -45
  95. package/dist/plugin.mjs +0 -884
  96. package/dist/theme.mjs +0 -7
  97. /package/dist/{theme-CChhGSbE.js → theme-CChhGSbE.cjs} +0 -0
  98. /package/dist/{theme-DWMJmaKP.mjs → theme-DWMJmaKP.js} +0 -0
@@ -5,9 +5,10 @@ interface iInputColorProps extends iInputProps, iUseModifiersProps, iUseStatePro
5
5
  */
6
6
  modelValue?: number | string;
7
7
  }
8
- declare const _default: import("vue").DefineComponent<iInputColorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const __VLS_export: import("vue").DefineComponent<iInputColorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:model-value": (...args: any[]) => void;
10
10
  }, string, import("vue").PublicProps, Readonly<iInputColorProps> & Readonly<{
11
11
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
12
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
13
14
  export default _default;
@@ -1,12 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import File from "./File.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof File, unknown>;
6
- args: {
7
- modelValue: never[];
8
- };
9
- };
10
- type Story = StoryObj<typeof File>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import InputFile from "./File.vue";
3
+ declare const meta: Meta<typeof InputFile>;
4
+ type Story = StoryObj<typeof meta>;
11
5
  export declare const Sample: Story;
12
6
  export default meta;
@@ -19,9 +19,10 @@ interface iInputFileProps extends iInputProps, iUseModifiersProps, iUseStateProp
19
19
  capture?: "environment" | "user";
20
20
  modelValue: File[];
21
21
  }
22
- declare const _default: import("vue").DefineComponent<iInputFileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ declare const __VLS_export: import("vue").DefineComponent<iInputFileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:model-value": (...args: any[]) => void;
24
24
  }, string, import("vue").PublicProps, Readonly<iInputFileProps> & Readonly<{
25
25
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
26
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: typeof __VLS_export;
27
28
  export default _default;
@@ -1,13 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Text from "./Text.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Text, unknown>;
6
- args: {
7
- icon: "cubes";
8
- placeholder: string;
9
- };
10
- };
11
- type Story = StoryObj<typeof Text>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import InputText from "./Text.vue";
3
+ declare const meta: Meta<typeof InputText>;
4
+ type Story = StoryObj<typeof meta>;
12
5
  export declare const Sample: Story;
13
6
  export default meta;
@@ -20,9 +20,10 @@ interface iInputTextProps extends iInputProps, iUseModifiersProps, iUseStateProp
20
20
  */
21
21
  modelValue?: number | string;
22
22
  }
23
- declare const _default: import("vue").DefineComponent<iInputTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ declare const __VLS_export: import("vue").DefineComponent<iInputTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:model-value": (...args: any[]) => void;
25
25
  }, string, import("vue").PublicProps, Readonly<iInputTextProps> & Readonly<{
26
26
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: typeof __VLS_export;
28
29
  export default _default;
@@ -1,12 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Toggle from "./Toggle.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Toggle, unknown>;
6
- args: {
7
- label: string;
8
- };
9
- };
10
- type Story = StoryObj<typeof Toggle>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import InputToggle from "./Toggle.vue";
3
+ declare const meta: Meta<typeof InputToggle>;
4
+ type Story = StoryObj<typeof meta>;
11
5
  export declare const Sample: Story;
12
6
  export default meta;
@@ -5,19 +5,15 @@ interface iInputToggleProps extends iInputProps, iUseModifiersProps, iUseStatePr
5
5
  showPlaceholder?: boolean;
6
6
  fullWidth?: boolean;
7
7
  }
8
- declare function __VLS_template(): {
9
- attrs: Partial<{}>;
10
- slots: {
11
- default?(_: {}): any;
12
- };
13
- refs: {};
14
- rootEl: any;
8
+ declare var __VLS_7: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_7) => any;
15
11
  };
16
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
- declare const __VLS_component: import("vue").DefineComponent<iInputToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iInputToggleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ declare const __VLS_base: import("vue").DefineComponent<iInputToggleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iInputToggleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
19
15
  export default _default;
20
- type __VLS_WithTemplateSlots<T, S> = T & {
16
+ type __VLS_WithSlots<T, S> = T & {
21
17
  new (): {
22
18
  $slots: S;
23
19
  };
@@ -1,10 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Content from "./Content.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Content, unknown>;
6
- args: {};
7
- };
8
- type Story = StoryObj<typeof Content>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import LoaderContent from "./Content.vue";
3
+ declare const meta: Meta<typeof LoaderContent>;
4
+ type Story = StoryObj<typeof meta>;
9
5
  export declare const Sample: Story;
10
6
  export default meta;
@@ -41,19 +41,15 @@ interface iLoaderContentProps extends iUseThemeProps {
41
41
  el?: vComponent | string;
42
42
  loaderClasses?: tProps<string>;
43
43
  }
44
- declare function __VLS_template(): {
45
- attrs: Partial<{}>;
46
- slots: {
47
- default?(_: {}): any;
48
- };
49
- refs: {};
50
- rootEl: any;
44
+ declare var __VLS_66: {};
45
+ type __VLS_Slots = {} & {
46
+ default?: (props: typeof __VLS_66) => any;
51
47
  };
52
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
53
- declare const __VLS_component: import("vue").DefineComponent<iLoaderContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iLoaderContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
54
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
+ declare const __VLS_base: import("vue").DefineComponent<iLoaderContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iLoaderContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
49
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
50
+ declare const _default: typeof __VLS_export;
55
51
  export default _default;
56
- type __VLS_WithTemplateSlots<T, S> = T & {
52
+ type __VLS_WithSlots<T, S> = T & {
57
53
  new (): {
58
54
  $slots: S;
59
55
  };
@@ -1,10 +1,7 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import ContentFetch from "./ContentFetch.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof ContentFetch, unknown>;
6
- args: {};
7
- };
8
- type Story = StoryObj<typeof ContentFetch>;
1
+ import type { StoryObj } from "@storybook/vue3-vite";
2
+ import type { GenericMeta } from "../../types/storybook";
3
+ import LoaderContentFetch from "./ContentFetch.vue";
4
+ declare const meta: GenericMeta<typeof LoaderContentFetch>;
5
+ type Story = StoryObj<typeof meta>;
9
6
  export declare const Sample: Story;
10
7
  export default meta;
@@ -42,28 +42,33 @@ export interface iLoaderContentFetchProps<Ti, Pi extends any[]> extends iUseThem
42
42
  */
43
43
  client?: boolean;
44
44
  }
45
- declare const _default: <T, P extends any[] = any[]>(__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<{
46
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
47
- readonly onRefresh?: ((...args: any[]) => any) | undefined;
48
- readonly "onHas-content"?: ((...args: any[]) => any) | undefined;
49
- readonly onHydrate?: ((...args: any[]) => any) | undefined;
50
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onRefresh" | "onHas-content" | "onHydrate"> & Partial<{}> & iLoaderContentFetchProps<T, P>> & import("vue").PublicProps;
51
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
45
+ declare const __VLS_export: <T, P extends any[] = any[]>(__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<{
46
+ props: __VLS_PrettifyLocal<iLoaderContentFetchProps<T, P> & {
47
+ onRefresh?: ((...args: any[]) => any) | undefined;
48
+ "onHas-content"?: ((...args: any[]) => any) | undefined;
49
+ onHydrate?: ((...args: any[]) => any) | undefined;
50
+ }> & import("vue").PublicProps & (typeof globalThis extends {
51
+ __VLS_PROPS_FALLBACK: infer P_1;
52
+ } ? P_1 : {});
53
+ expose: (exposed: {}) => void;
52
54
  attrs: any;
53
55
  slots: {
54
- default?(_: {
56
+ default?: (props: {
55
57
  content: NonNullable<T>;
56
58
  refresh: (opts?: any) => Promise<void>;
57
59
  loading: boolean;
58
60
  errors: unknown;
59
61
  hydrate: (newContent: T | null, newErrors?: unknown) => void;
60
- }): any;
62
+ }) => any;
61
63
  };
62
64
  emit: (event: "refresh" | "has-content" | "hydrate", ...args: any[]) => void;
63
65
  }>) => import("vue").VNode & {
64
66
  __ctx?: Awaited<typeof __VLS_setup>;
65
67
  };
68
+ declare const _default: typeof __VLS_export;
66
69
  export default _default;
67
- type __VLS_PrettifyLocal<T> = {
70
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
68
71
  [K in keyof T]: T[K];
69
- } & {};
72
+ } : {
73
+ [K in keyof T as K]: T[K];
74
+ }) & {};
@@ -1,10 +1,6 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Simple from "./Simple.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Simple, unknown>;
6
- args: {};
7
- };
8
- type Story = StoryObj<typeof Simple>;
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
+ import LoaderSimple from "./Simple.vue";
3
+ declare const meta: Meta<typeof LoaderSimple>;
4
+ type Story = StoryObj<typeof meta>;
9
5
  export declare const Sample: Story;
10
6
  export default meta;
@@ -12,19 +12,15 @@ interface iLoaderSimpleProps extends iUseThemeProps {
12
12
  */
13
13
  speed?: number;
14
14
  }
15
- declare function __VLS_template(): {
16
- attrs: Partial<{}>;
17
- slots: {
18
- default?(_: {}): any;
19
- };
20
- refs: {};
21
- rootEl: HTMLSpanElement;
15
+ declare var __VLS_1: {};
16
+ type __VLS_Slots = {} & {
17
+ default?: (props: typeof __VLS_1) => any;
22
18
  };
23
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
- declare const __VLS_component: import("vue").DefineComponent<iLoaderSimpleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iLoaderSimpleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLSpanElement>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ declare const __VLS_base: import("vue").DefineComponent<iLoaderSimpleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<iLoaderSimpleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
26
22
  export default _default;
27
- type __VLS_WithTemplateSlots<T, S> = T & {
23
+ type __VLS_WithSlots<T, S> = T & {
28
24
  new (): {
29
25
  $slots: S;
30
26
  };
@@ -1,19 +1,7 @@
1
- import type { StoryObj } from "@storybook/vue3";
1
+ import type { Meta, StoryObj } from "@storybook/vue3-vite";
2
2
  import ModalSimple from "./Simple.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof ModalSimple, unknown>;
6
- args: {
7
- title: string;
8
- subtitle: string;
9
- class: string;
10
- invertTheme: true;
11
- saveButton: {
12
- title: string;
13
- };
14
- };
15
- };
16
- type Story = StoryObj<typeof ModalSimple>;
3
+ declare const meta: Meta<typeof ModalSimple>;
4
+ type Story = StoryObj<typeof meta>;
17
5
  export declare const Sample: Story;
18
6
  export declare const WithFormStages: Story;
19
7
  export default meta;
@@ -4,58 +4,57 @@ import type { iModalProps } from "../../types/props";
4
4
  * @param success whether the modal action was successfull or not
5
5
  */
6
6
  declare function toggleModal(success?: boolean): Promise<boolean | undefined>;
7
- declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
- slots: {
10
- toggle?(_: {
11
- toggleModal: typeof toggleModal;
12
- model: boolean;
13
- }): any;
14
- header?(_: {
15
- toggleModal: typeof toggleModal;
16
- model: boolean;
17
- modalRef: HTMLDialogElement | undefined;
18
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
19
- }): any;
20
- content?(_: {
21
- toggleModal: typeof toggleModal;
22
- model: boolean;
23
- modalRef: HTMLDialogElement | undefined;
24
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
25
- }): any;
26
- default?(_: {
27
- toggleModal: typeof toggleModal;
28
- model: boolean;
29
- modalRef: HTMLDialogElement | undefined;
30
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
31
- }): any;
32
- default?(_: {
33
- toggleModal: typeof toggleModal;
34
- model: boolean;
35
- modalRef: HTMLDialogElement | undefined;
36
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
37
- }): any;
38
- footer?(_: {
39
- toggleModal: typeof toggleModal;
40
- model: boolean;
41
- modalRef: HTMLDialogElement | undefined;
42
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
43
- }): any;
44
- "footer-actions"?(_: {
45
- toggleModal: typeof toggleModal;
46
- model: boolean;
47
- modalRef: HTMLDialogElement | undefined;
48
- invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
49
- save: (e: Event) => void;
50
- }): any;
51
- };
52
- refs: {
53
- modalRef: HTMLDialogElement;
54
- };
55
- rootEl: any;
7
+ declare var __VLS_8: {
8
+ toggleModal: typeof toggleModal;
9
+ model: boolean;
10
+ }, __VLS_16: {
11
+ toggleModal: typeof toggleModal;
12
+ model: boolean;
13
+ modalRef: HTMLDialogElement | undefined;
14
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
15
+ }, __VLS_31: {
16
+ toggleModal: typeof toggleModal;
17
+ model: boolean;
18
+ modalRef: HTMLDialogElement | undefined;
19
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
20
+ }, __VLS_33: {
21
+ toggleModal: typeof toggleModal;
22
+ model: boolean;
23
+ modalRef: HTMLDialogElement | undefined;
24
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
25
+ }, __VLS_35: {
26
+ toggleModal: typeof toggleModal;
27
+ model: boolean;
28
+ modalRef: HTMLDialogElement | undefined;
29
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
30
+ }, __VLS_37: {
31
+ toggleModal: typeof toggleModal;
32
+ model: boolean;
33
+ modalRef: HTMLDialogElement | undefined;
34
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
35
+ save: (e: Event) => void;
36
+ }, __VLS_85: {
37
+ toggleModal: typeof toggleModal;
38
+ model: boolean;
39
+ modalRef: HTMLDialogElement | undefined;
40
+ invertedTheme: [import("@open-xamu-co/ui-common-types").tThemeModifier, import("@open-xamu-co/ui-common-types").tThemeModifier];
41
+ };
42
+ type __VLS_Slots = {} & {
43
+ toggle?: (props: typeof __VLS_8) => any;
44
+ } & {
45
+ header?: (props: typeof __VLS_16) => any;
46
+ } & {
47
+ content?: (props: typeof __VLS_31) => any;
48
+ } & {
49
+ default?: (props: typeof __VLS_33) => any;
50
+ } & {
51
+ footer?: (props: typeof __VLS_35) => any;
52
+ } & {
53
+ 'footer-actions'?: (props: typeof __VLS_37) => any;
54
+ } & {
55
+ default?: (props: typeof __VLS_85) => any;
56
56
  };
57
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
58
- declare const __VLS_component: import("vue").DefineComponent<iModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
+ declare const __VLS_base: import("vue").DefineComponent<iModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
58
  close: (...args: any[]) => void;
60
59
  save: (...args: any[]) => void;
61
60
  "update:model-value": (...args: any[]) => void;
@@ -66,9 +65,10 @@ declare const __VLS_component: import("vue").DefineComponent<iModalProps, {}, {}
66
65
  }>, {
67
66
  theme: import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>;
68
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
69
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
68
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
69
+ declare const _default: typeof __VLS_export;
70
70
  export default _default;
71
- type __VLS_WithTemplateSlots<T, S> = T & {
71
+ type __VLS_WithSlots<T, S> = T & {
72
72
  new (): {
73
73
  $slots: S;
74
74
  };
@@ -1,10 +1,7 @@
1
- import type { StoryObj } from "@storybook/vue3";
1
+ import type { StoryObj } from "@storybook/vue3-vite";
2
+ import type { GenericMeta } from "../../types/storybook";
2
3
  import Content from "./Content.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Content, unknown>;
6
- args: {};
7
- };
8
- type Story = StoryObj<typeof Content>;
4
+ declare const meta: GenericMeta<typeof Content>;
5
+ type Story = StoryObj<typeof meta>;
9
6
  export declare const Sample: Story;
10
7
  export default meta;
@@ -62,27 +62,32 @@ export interface iPCProps<Ti, Ci extends string | number = string, Ri = never> e
62
62
  */
63
63
  paginationClass?: string | string[] | Record<string, boolean>;
64
64
  }
65
- declare const _default: <T, C extends string | number = string, R = never>(__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<{
66
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
67
- readonly onRefresh?: ((...args: any[]) => any) | undefined;
68
- readonly "onHas-content"?: ((...args: any[]) => any) | undefined;
69
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onRefresh" | "onHas-content"> & Partial<{}> & iPCProps<T, C, R>> & import("vue").PublicProps;
70
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
65
+ declare const __VLS_export: <T, C extends string | number = string, R = never>(__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<{
66
+ props: __VLS_PrettifyLocal<iPCProps<T, C, R> & {
67
+ onRefresh?: ((...args: any[]) => any) | undefined;
68
+ "onHas-content"?: ((...args: any[]) => any) | undefined;
69
+ }> & import("vue").PublicProps & (typeof globalThis extends {
70
+ __VLS_PROPS_FALLBACK: infer P;
71
+ } ? P : {});
72
+ expose: (exposed: {}) => void;
71
73
  attrs: any;
72
74
  slots: {
73
- default?(_: {
75
+ default?: (props: {
74
76
  hydrateNodes: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
75
77
  content: NoInfer<T>[];
76
78
  pagination: iPagination;
77
79
  currentPage: iPage<T, C>;
78
80
  refresh: (opts?: any) => Promise<void>;
79
- }): any;
81
+ }) => any;
80
82
  };
81
83
  emit: (event: "refresh" | "has-content", ...args: any[]) => void;
82
84
  }>) => import("vue").VNode & {
83
85
  __ctx?: Awaited<typeof __VLS_setup>;
84
86
  };
87
+ declare const _default: typeof __VLS_export;
85
88
  export default _default;
86
- type __VLS_PrettifyLocal<T> = {
89
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
87
90
  [K in keyof T]: T[K];
88
- } & {};
91
+ } : {
92
+ [K in keyof T as K]: T[K];
93
+ }) & {};
@@ -1,11 +1,8 @@
1
- import type { StoryObj } from "@storybook/vue3";
1
+ import type { StoryObj } from "@storybook/vue3-vite";
2
+ import type { GenericMeta } from "../../types/storybook";
2
3
  import PaginationContentTable from "./ContentTable.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof PaginationContentTable, unknown>;
6
- args: {};
7
- };
8
- type Story = StoryObj<typeof PaginationContentTable>;
4
+ declare const meta: GenericMeta<typeof PaginationContentTable>;
5
+ type Story = StoryObj<typeof meta>;
9
6
  export declare const Sample: Story;
10
7
  export declare const Data: Story;
11
8
  export default meta;
@@ -40,26 +40,30 @@ export interface iPaginationContentTableProps<Ti extends Record<string, any>, TM
40
40
  */
41
41
  omitRefresh?: boolean;
42
42
  }
43
- declare const _default: <T extends Record<string, any>, TM extends Record<string, any> = T>(__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<{
44
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
45
- readonly "onCreate-node-and-refresh"?: ((...args: any[]) => any) | undefined;
46
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onCreate-node-and-refresh"> & Partial<{}> & iPaginationContentTableProps<T, TM>> & import("vue").PublicProps;
47
- expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
43
+ declare const __VLS_export: <T extends Record<string, any>, TM extends Record<string, any> = T>(__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<{
44
+ props: __VLS_PrettifyLocal<iPaginationContentTableProps<T, TM> & {
45
+ "onCreate-node-and-refresh"?: ((...args: any[]) => any) | undefined;
46
+ }> & import("vue").PublicProps & (typeof globalThis extends {
47
+ __VLS_PROPS_FALLBACK: infer P;
48
+ } ? P : {});
49
+ expose: (exposed: {}) => void;
48
50
  attrs: any;
49
51
  slots: {
50
- default?(_: {
52
+ default?: (props: {
51
53
  refreshData: () => void;
52
54
  hasContent: boolean | undefined;
53
55
  hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
54
56
  createNodeAndRefresh: () => Promise<import("@open-xamu-co/ui-common-types").iNodeFnResponse<NoInfer<T>>>;
55
- }): any;
56
- headActions?(_: {
57
+ }) => any;
58
+ } & {
59
+ headActions?: (props: {
57
60
  refreshData: () => void;
58
61
  hasContent: false | undefined;
59
62
  hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
60
63
  createNodeAndRefresh: () => Promise<import("@open-xamu-co/ui-common-types").iNodeFnResponse<NoInfer<T>>>;
61
- }): any;
62
- headActions?(_: {
64
+ }) => any;
65
+ } & {
66
+ headActions?: (props: {
63
67
  refreshData: () => void;
64
68
  hasContent: true;
65
69
  hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
@@ -70,8 +74,9 @@ declare const _default: <T extends Record<string, any>, TM extends Record<string
70
74
  cloneNodeAndRefresh: iNodeFn<NoInfer<T>, [NoInfer<T>, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
71
75
  deleteNodeAndRefresh: iNodeFn<NoInfer<T>, [NoInfer<T>, ((m?: boolean) => any) | undefined, (HTMLElement | undefined)?]>;
72
76
  deleteNodesAndRefresh: (nodes?: NoInfer<T>[] | undefined) => Promise<void>;
73
- }): any;
74
- tableChildren?(_: {
77
+ }) => any;
78
+ } & {
79
+ tableChildren?: (props: {
75
80
  refreshData: () => void;
76
81
  hasContent: boolean | undefined;
77
82
  hydrateData: ((newContent: T[] | null, newErrors?: unknown) => void) | undefined;
@@ -85,13 +90,16 @@ declare const _default: <T extends Record<string, any>, TM extends Record<string
85
90
  createNodeChildrenAndRefresh: iNodeFn<NoInfer<T>>;
86
91
  show: boolean;
87
92
  hydrateParentNode: (newNode: NoInfer<T> | null, _newErrors?: unknown) => void;
88
- }): any;
93
+ }) => any;
89
94
  };
90
95
  emit: (event: "create-node-and-refresh", ...args: any[]) => void;
91
96
  }>) => import("vue").VNode & {
92
97
  __ctx?: Awaited<typeof __VLS_setup>;
93
98
  };
99
+ declare const _default: typeof __VLS_export;
94
100
  export default _default;
95
- type __VLS_PrettifyLocal<T> = {
101
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
96
102
  [K in keyof T]: T[K];
97
- } & {};
103
+ } : {
104
+ [K in keyof T as K]: T[K];
105
+ }) & {};
@@ -1,23 +1,7 @@
1
- import type { StoryObj } from "@storybook/vue3";
2
- import Simple from "./Simple.vue";
3
- declare const meta: {
4
- title: string;
5
- component: Record<keyof typeof Simple, unknown>;
6
- args: {
7
- modelValue: {
8
- at: number;
9
- first: number;
10
- };
11
- currentPage: {
12
- edges: never[];
13
- pageInfo: {
14
- hasNextPage: false;
15
- hasPreviousPage: false;
16
- };
17
- totalCount: number;
18
- };
19
- };
20
- };
21
- type Story = StoryObj<typeof Simple>;
1
+ import type { StoryObj } from "@storybook/vue3-vite";
2
+ import type { GenericMeta } from "../../types/storybook";
3
+ import PaginationSimple from "./Simple.vue";
4
+ declare const meta: GenericMeta<typeof PaginationSimple>;
5
+ type Story = StoryObj<typeof meta>;
22
6
  export declare const Sample: Story;
23
7
  export default meta;