@robuust-digital/vue-components 2.2.0-rc.0 → 2.2.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 (53) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/_shared/{ButtonBase.vue_vue_type_script_setup_true_lang-B0YsKehI.js → ButtonBase.vue_vue_type_script_setup_true_lang-DeflHqux.js} +1 -1
  3. package/dist/_shared/{Combobox.vue_vue_type_script_setup_true_lang-D1vKMJok.js → Combobox.vue_vue_type_script_setup_true_lang-CP3x2DUA.js} +3 -3
  4. package/dist/_shared/{Drawer.vue_vue_type_script_setup_true_lang-DT6tBBZ7.js → Drawer.vue_vue_type_script_setup_true_lang-CD5914Fk.js} +5 -6
  5. package/dist/_shared/{Dropdown.vue_vue_type_script_setup_true_lang-D5vTFLkq.js → Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js} +1 -1
  6. package/dist/_shared/{Lightswitch.vue_vue_type_script_setup_true_lang-CvN-2WJt.js → Lightswitch.vue_vue_type_script_setup_true_lang-DX23lEFd.js} +8 -9
  7. package/dist/_shared/{Modal.vue_vue_type_script_setup_true_lang-DBEOIZnO.js → Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js} +4 -5
  8. package/dist/_shared/{RichTextEditor.vue_vue_type_script_setup_true_lang-Bs4WdJhA.js → RichTextEditor.vue_vue_type_script_setup_true_lang-CIVhqJtE.js} +1 -1
  9. package/dist/_shared/{Tabs.vue_vue_type_script_setup_true_lang-CsGx6wBK.js → Tabs.vue_vue_type_script_setup_true_lang-BgOTdYXd.js} +1 -1
  10. package/dist/_shared/{Toast.vue_vue_type_script_setup_true_lang-FEeRXoIx.js → Toast.vue_vue_type_script_setup_true_lang-Be3i_0zE.js} +26 -23
  11. package/dist/_shared/{icon-spinner-CmxIOqaK.js → icon-spinner-CP0VP_YM.js} +2 -2
  12. package/dist/combobox/index.js +1 -1
  13. package/dist/combobox.d.ts +132 -4
  14. package/dist/core/index.js +2 -2
  15. package/dist/core.d.ts +669 -27
  16. package/dist/dialogs/index.js +2 -2
  17. package/dist/dialogs.d.ts +226 -5
  18. package/dist/dropdown/index.js +1 -1
  19. package/dist/dropdown.d.ts +145 -4
  20. package/dist/index/index.js +9 -9
  21. package/dist/index.d.ts +1343 -8
  22. package/dist/lightswitch/index.js +1 -1
  23. package/dist/lightswitch.d.ts +39 -4
  24. package/dist/rich-text-editor/index.js +1 -1
  25. package/dist/rich-text-editor.d.ts +89 -4
  26. package/dist/toast/index.js +1 -1
  27. package/dist/toast.d.ts +66 -4
  28. package/dist/tooltip.d.ts +61 -4
  29. package/package.json +25 -28
  30. package/dist/components/Accordion.vue.d.ts +0 -37
  31. package/dist/components/Alert.vue.d.ts +0 -39
  32. package/dist/components/Badge.vue.d.ts +0 -32
  33. package/dist/components/ButtonBase.vue.d.ts +0 -50
  34. package/dist/components/Checkbox.vue.d.ts +0 -39
  35. package/dist/components/Combobox.vue.d.ts +0 -112
  36. package/dist/components/DataTable.vue.d.ts +0 -122
  37. package/dist/components/Drawer.vue.d.ts +0 -103
  38. package/dist/components/Dropdown.vue.d.ts +0 -120
  39. package/dist/components/EmptyState.vue.d.ts +0 -23
  40. package/dist/components/FormInput.vue.d.ts +0 -49
  41. package/dist/components/FormSelect.vue.d.ts +0 -58
  42. package/dist/components/FormTextarea.vue.d.ts +0 -16
  43. package/dist/components/Lightswitch.vue.d.ts +0 -26
  44. package/dist/components/Modal.vue.d.ts +0 -98
  45. package/dist/components/Pagination.vue.d.ts +0 -60
  46. package/dist/components/Radio.vue.d.ts +0 -34
  47. package/dist/components/RichTextEditor.vue.d.ts +0 -71
  48. package/dist/components/Tabs.vue.d.ts +0 -26
  49. package/dist/components/Toast.vue.d.ts +0 -46
  50. package/dist/components/Tooltip.vue.d.ts +0 -45
  51. package/dist/composables/useDialogContext.d.ts +0 -18
  52. package/dist/composables/useForm.d.ts +0 -6
  53. package/dist/types/shared.d.ts +0 -3
package/dist/dialogs.d.ts CHANGED
@@ -1,5 +1,226 @@
1
- import { default as Drawer } from './components/Drawer.vue';
2
- import { default as Modal } from './components/Modal.vue';
3
- export type { DrawerProps } from './components/Drawer.vue';
4
- export type { ModalProps } from './components/Modal.vue';
5
- export { Drawer, Modal };
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { ComponentCustomProps } from 'vue';
3
+ import { ComponentOptionsMixin } from 'vue';
4
+ import { ComponentProvideOptions } from 'vue';
5
+ import { DefineComponent } from 'vue';
6
+ import { ExtractPropTypes } from 'vue';
7
+ import { FunctionalComponent } from 'vue';
8
+ import { HTMLAttributes } from 'vue';
9
+ import { PublicProps } from 'vue';
10
+ import { RendererElement } from 'vue';
11
+ import { RendererNode } from 'vue';
12
+ import { VNode } from 'vue';
13
+ import { VNodeProps } from 'vue';
14
+
15
+ declare const __VLS_component: DefineComponent<DrawerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
16
+ "drawer:open": () => any;
17
+ "drawer:opened": () => any;
18
+ "drawer:close": () => any;
19
+ "drawer:save": (event: Event) => any;
20
+ "drawer:closed": () => any;
21
+ }, string, PublicProps, Readonly<DrawerProps> & Readonly<{
22
+ "onDrawer:open"?: (() => any) | undefined;
23
+ "onDrawer:opened"?: (() => any) | undefined;
24
+ "onDrawer:close"?: (() => any) | undefined;
25
+ "onDrawer:save"?: ((event: Event) => any) | undefined;
26
+ "onDrawer:closed"?: (() => any) | undefined;
27
+ }>, {
28
+ as: string;
29
+ spinning: boolean;
30
+ showClose: boolean;
31
+ scrolledDown: boolean;
32
+ headerSticky: boolean;
33
+ submitLabel: string;
34
+ cancelLabel: string;
35
+ panelClass: string;
36
+ resetHeader: boolean;
37
+ resetFooter: boolean;
38
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
39
+ contentRef: HTMLDivElement;
40
+ }, any>;
41
+
42
+ declare const __VLS_component_2: DefineComponent<ModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
43
+ "modal:open": () => any;
44
+ "modal:opened": () => any;
45
+ "modal:close": () => any;
46
+ "modal:save": (event?: Event | undefined) => any;
47
+ "modal:closed": () => any;
48
+ }, string, PublicProps, Readonly<ModalProps> & Readonly<{
49
+ "onModal:open"?: (() => any) | undefined;
50
+ "onModal:opened"?: (() => any) | undefined;
51
+ "onModal:close"?: (() => any) | undefined;
52
+ "onModal:save"?: ((event?: Event | undefined) => any) | undefined;
53
+ "onModal:closed"?: (() => any) | undefined;
54
+ }>, {
55
+ as: string;
56
+ spinning: boolean;
57
+ showClose: boolean;
58
+ submitLabel: string;
59
+ cancelLabel: string;
60
+ panelClass: string;
61
+ resetHeader: boolean;
62
+ resetFooter: boolean;
63
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
64
+ contentRef: HTMLDivElement;
65
+ }, any>;
66
+
67
+ declare function __VLS_template(): {
68
+ attrs: Partial<{}>;
69
+ slots: {
70
+ header?(_: {
71
+ title: string;
72
+ showClose: boolean;
73
+ }): any;
74
+ header?(_: {}): any;
75
+ title?(_: {
76
+ id: string;
77
+ dialogTitle: DefineComponent< {
78
+ as: {
79
+ type: (ObjectConstructor | StringConstructor)[];
80
+ default: string;
81
+ };
82
+ id: {
83
+ type: StringConstructor;
84
+ default: null;
85
+ };
86
+ }, () => VNode<RendererNode, RendererElement, {
87
+ [key: string]: any;
88
+ }> | VNode<RendererNode, RendererElement, {
89
+ [key: string]: any;
90
+ }>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
91
+ as: {
92
+ type: (ObjectConstructor | StringConstructor)[];
93
+ default: string;
94
+ };
95
+ id: {
96
+ type: StringConstructor;
97
+ default: null;
98
+ };
99
+ }>>, {
100
+ id: string;
101
+ as: string | Record<string, any>;
102
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
103
+ title: string;
104
+ }): any;
105
+ close?(_: {
106
+ icon: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
107
+ emitClose: () => void;
108
+ }): any;
109
+ default?(_: {
110
+ ready: boolean;
111
+ }): any;
112
+ footer?(_: {
113
+ loading: boolean;
114
+ }): any;
115
+ footer?(_: {}): any;
116
+ };
117
+ refs: {
118
+ contentRef: HTMLDivElement;
119
+ };
120
+ rootEl: any;
121
+ };
122
+
123
+ declare function __VLS_template_2(): {
124
+ attrs: Partial<{}>;
125
+ slots: {
126
+ header?(_: {
127
+ title: string;
128
+ }): any;
129
+ header?(_: {}): any;
130
+ title?(_: {
131
+ id: string;
132
+ dialogTitle: DefineComponent< {
133
+ as: {
134
+ type: (ObjectConstructor | StringConstructor)[];
135
+ default: string;
136
+ };
137
+ id: {
138
+ type: StringConstructor;
139
+ default: null;
140
+ };
141
+ }, () => VNode<RendererNode, RendererElement, {
142
+ [key: string]: any;
143
+ }> | VNode<RendererNode, RendererElement, {
144
+ [key: string]: any;
145
+ }>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
146
+ as: {
147
+ type: (ObjectConstructor | StringConstructor)[];
148
+ default: string;
149
+ };
150
+ id: {
151
+ type: StringConstructor;
152
+ default: null;
153
+ };
154
+ }>>, {
155
+ id: string;
156
+ as: string | Record<string, any>;
157
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
158
+ title: string;
159
+ }): any;
160
+ close?(_: {
161
+ icon: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
162
+ emitClose: () => void;
163
+ }): any;
164
+ default?(_: {
165
+ ready: boolean;
166
+ }): any;
167
+ footer?(_: {
168
+ loading: boolean;
169
+ }): any;
170
+ footer?(_: {}): any;
171
+ };
172
+ refs: {
173
+ contentRef: HTMLDivElement;
174
+ };
175
+ rootEl: any;
176
+ };
177
+
178
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
179
+
180
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
181
+
182
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
183
+ new (): {
184
+ $slots: S;
185
+ };
186
+ };
187
+
188
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
189
+ new (): {
190
+ $slots: S;
191
+ };
192
+ };
193
+
194
+ export declare const Drawer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
195
+
196
+ declare interface DrawerProps {
197
+ as?: string;
198
+ id: string;
199
+ title: string;
200
+ showClose?: boolean;
201
+ scrolledDown?: boolean;
202
+ headerSticky?: boolean;
203
+ spinning?: boolean;
204
+ submitLabel?: string;
205
+ cancelLabel?: string;
206
+ panelClass?: string;
207
+ resetHeader?: boolean;
208
+ resetFooter?: boolean;
209
+ }
210
+
211
+ export declare const Modal: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
212
+
213
+ declare interface ModalProps {
214
+ as?: string;
215
+ id: string;
216
+ title: string;
217
+ showClose?: boolean;
218
+ spinning?: boolean;
219
+ submitLabel?: string;
220
+ cancelLabel?: string;
221
+ panelClass?: string;
222
+ resetHeader?: boolean;
223
+ resetFooter?: boolean;
224
+ }
225
+
226
+ export { }
@@ -1,4 +1,4 @@
1
- import { _ as o } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-D5vTFLkq.js";
1
+ import { _ as o } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js";
2
2
  export {
3
3
  o as Dropdown,
4
4
  o as default
@@ -1,4 +1,145 @@
1
- import { default as Dropdown } from './components/Dropdown.vue';
2
- export type { DropdownProps, DropdownItem } from './components/Dropdown.vue';
3
- export { Dropdown };
4
- export default Dropdown;
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { ComponentCustomProps } from 'vue';
3
+ import { ComponentOptionsMixin } from 'vue';
4
+ import { ComponentProvideOptions } from 'vue';
5
+ import { DefineComponent } from 'vue';
6
+ import { ExtractPropTypes } from 'vue';
7
+ import { FunctionalComponent } from 'vue';
8
+ import { HTMLAttributes } from 'vue';
9
+ import { PublicProps } from 'vue';
10
+ import { RendererElement } from 'vue';
11
+ import { RendererNode } from 'vue';
12
+ import { SVGAttributes } from 'vue';
13
+ import { VNode } from 'vue';
14
+ import { VNodeProps } from 'vue';
15
+
16
+ declare const __VLS_component: DefineComponent<DropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
17
+ "dropdown:click": (item: DropdownItem) => any;
18
+ }, string, PublicProps, Readonly<DropdownProps> & Readonly<{
19
+ "onDropdown:click"?: ((item: DropdownItem) => any) | undefined;
20
+ }>, {
21
+ label: string;
22
+ rootClass: string;
23
+ alignLeft: boolean;
24
+ fullWidth: boolean;
25
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
26
+
27
+ declare function __VLS_template(): {
28
+ attrs: Partial<{}>;
29
+ slots: {
30
+ button?(_: {
31
+ label: string;
32
+ button: DefineComponent< {
33
+ disabled: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ as: {
38
+ type: (ObjectConstructor | StringConstructor)[];
39
+ default: string;
40
+ };
41
+ id: {
42
+ type: StringConstructor;
43
+ default: null;
44
+ };
45
+ }, () => VNode<RendererNode, RendererElement, {
46
+ [key: string]: any;
47
+ }> | VNode<RendererNode, RendererElement, {
48
+ [key: string]: any;
49
+ }>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
50
+ disabled: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ as: {
55
+ type: (ObjectConstructor | StringConstructor)[];
56
+ default: string;
57
+ };
58
+ id: {
59
+ type: StringConstructor;
60
+ default: null;
61
+ };
62
+ }>>, {
63
+ id: string;
64
+ as: string | Record<string, any>;
65
+ disabled: boolean;
66
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
67
+ }): any;
68
+ items?(_: {
69
+ items: DropdownItem[];
70
+ menuItem: DefineComponent< {
71
+ as: {
72
+ type: (ObjectConstructor | StringConstructor)[];
73
+ default: string;
74
+ };
75
+ disabled: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ id: {
80
+ type: StringConstructor;
81
+ default: null;
82
+ };
83
+ }, () => VNode<RendererNode, RendererElement, {
84
+ [key: string]: any;
85
+ }> | VNode<RendererNode, RendererElement, {
86
+ [key: string]: any;
87
+ }>[] | null, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
88
+ as: {
89
+ type: (ObjectConstructor | StringConstructor)[];
90
+ default: string;
91
+ };
92
+ disabled: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ id: {
97
+ type: StringConstructor;
98
+ default: null;
99
+ };
100
+ }>>, {
101
+ id: string;
102
+ as: string | Record<string, any>;
103
+ disabled: boolean;
104
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
105
+ }): any;
106
+ item?(_: {
107
+ item: DropdownItem;
108
+ }): any;
109
+ };
110
+ refs: {};
111
+ rootEl: any;
112
+ };
113
+
114
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
115
+
116
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
117
+ new (): {
118
+ $slots: S;
119
+ };
120
+ };
121
+
122
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
123
+ export { _default as Dropdown }
124
+ export default _default;
125
+
126
+ declare interface DropdownItem {
127
+ name: string;
128
+ as?: string;
129
+ bindAs?: string;
130
+ event?: () => void;
131
+ icon?: Icon | null;
132
+ [key: string]: unknown;
133
+ }
134
+
135
+ declare interface DropdownProps {
136
+ items: DropdownItem[];
137
+ alignLeft?: boolean;
138
+ fullWidth?: boolean;
139
+ label?: string;
140
+ rootClass?: string;
141
+ }
142
+
143
+ declare type Icon = FunctionalComponent<SVGAttributes & HTMLAttributes & VNodeProps>;
144
+
145
+ export { }
@@ -1,14 +1,14 @@
1
- import { _ as r, a as t, b as e, c as s, d as m, e as p, f as x, g as f, h as _, i } from "../_shared/Tabs.vue_vue_type_script_setup_true_lang-CsGx6wBK.js";
1
+ import { _ as r, a as t, b as e, c as s, d as m, e as p, f as x, g as f, h as _, i } from "../_shared/Tabs.vue_vue_type_script_setup_true_lang-BgOTdYXd.js";
2
2
  import { _ as d } from "../_shared/ChevronDownIcon-DaaXfD3C.js";
3
- import { _ as n } from "../_shared/ButtonBase.vue_vue_type_script_setup_true_lang-B0YsKehI.js";
3
+ import { _ as n } from "../_shared/ButtonBase.vue_vue_type_script_setup_true_lang-DeflHqux.js";
4
4
  import { _ as h } from "../_shared/FormInput.vue_vue_type_script_setup_true_lang-BhJpG-Fw.js";
5
- import { _ as g } from "../_shared/Combobox.vue_vue_type_script_setup_true_lang-D1vKMJok.js";
6
- import { _ as B } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-DT6tBBZ7.js";
7
- import { _ as F } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-DBEOIZnO.js";
8
- import { _ as A } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-D5vTFLkq.js";
9
- import { _ as E } from "../_shared/Lightswitch.vue_vue_type_script_setup_true_lang-CvN-2WJt.js";
10
- import { _ as S } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-Bs4WdJhA.js";
11
- import { _ as y } from "../_shared/Toast.vue_vue_type_script_setup_true_lang-FEeRXoIx.js";
5
+ import { _ as g } from "../_shared/Combobox.vue_vue_type_script_setup_true_lang-CP3x2DUA.js";
6
+ import { _ as B } from "../_shared/Drawer.vue_vue_type_script_setup_true_lang-CD5914Fk.js";
7
+ import { _ as F } from "../_shared/Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js";
8
+ import { _ as A } from "../_shared/Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js";
9
+ import { _ as E } from "../_shared/Lightswitch.vue_vue_type_script_setup_true_lang-DX23lEFd.js";
10
+ import { _ as S } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-CIVhqJtE.js";
11
+ import { _ as y } from "../_shared/Toast.vue_vue_type_script_setup_true_lang-Be3i_0zE.js";
12
12
  import { _ as L } from "../_shared/Tooltip.vue_vue_type_script_setup_true_lang-CoydN9sS.js";
13
13
  export {
14
14
  r as Accordion,