@robuust-digital/vue-components 2.2.0-rc.0 → 2.2.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 (53) hide show
  1. package/CHANGELOG.md +8 -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-DnzOq9GZ.js} +5 -2
  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 +670 -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 +1344 -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
@@ -1,98 +0,0 @@
1
- export interface ModalProps {
2
- as?: string;
3
- id: string;
4
- title: string;
5
- showClose?: boolean;
6
- spinning?: boolean;
7
- submitLabel?: string;
8
- cancelLabel?: string;
9
- panelClass?: string;
10
- resetHeader?: boolean;
11
- resetFooter?: boolean;
12
- }
13
- declare function __VLS_template(): {
14
- attrs: Partial<{}>;
15
- slots: {
16
- header?(_: {
17
- title: string;
18
- }): any;
19
- header?(_: {}): any;
20
- title?(_: {
21
- id: string;
22
- dialogTitle: import('../../node_modules/vue').DefineComponent<{
23
- as: {
24
- type: (ObjectConstructor | StringConstructor)[];
25
- default: string;
26
- };
27
- id: {
28
- type: StringConstructor;
29
- default: null;
30
- };
31
- }, () => import('../../node_modules/vue').VNode<import('../../node_modules/vue').RendererNode, import('../../node_modules/vue').RendererElement, {
32
- [key: string]: any;
33
- }> | import('../../node_modules/vue').VNode<import('../../node_modules/vue').RendererNode, import('../../node_modules/vue').RendererElement, {
34
- [key: string]: any;
35
- }>[] | null, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, Record<string, any>, string, import('../../node_modules/vue').VNodeProps & import('../../node_modules/vue').AllowedComponentProps & import('../../node_modules/vue').ComponentCustomProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
36
- as: {
37
- type: (ObjectConstructor | StringConstructor)[];
38
- default: string;
39
- };
40
- id: {
41
- type: StringConstructor;
42
- default: null;
43
- };
44
- }>>, {
45
- id: string;
46
- as: string | Record<string, any>;
47
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, true, {}, any>;
48
- title: string;
49
- }): any;
50
- close?(_: {
51
- icon: import('../../node_modules/vue').FunctionalComponent<import('../../node_modules/vue').HTMLAttributes & import('../../node_modules/vue').VNodeProps, {}, any, {}>;
52
- emitClose: () => void;
53
- }): any;
54
- default?(_: {
55
- ready: boolean;
56
- }): any;
57
- footer?(_: {
58
- loading: boolean;
59
- }): any;
60
- footer?(_: {}): any;
61
- };
62
- refs: {
63
- contentRef: HTMLDivElement;
64
- };
65
- rootEl: any;
66
- };
67
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
68
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
69
- "modal:open": () => any;
70
- "modal:opened": () => any;
71
- "modal:close": () => any;
72
- "modal:save": (event?: Event | undefined) => any;
73
- "modal:closed": () => any;
74
- }, string, import('../../node_modules/vue').PublicProps, Readonly<ModalProps> & Readonly<{
75
- "onModal:open"?: (() => any) | undefined;
76
- "onModal:opened"?: (() => any) | undefined;
77
- "onModal:close"?: (() => any) | undefined;
78
- "onModal:save"?: ((event?: Event | undefined) => any) | undefined;
79
- "onModal:closed"?: (() => any) | undefined;
80
- }>, {
81
- as: string;
82
- spinning: boolean;
83
- showClose: boolean;
84
- submitLabel: string;
85
- cancelLabel: string;
86
- panelClass: string;
87
- resetHeader: boolean;
88
- resetFooter: boolean;
89
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {
90
- contentRef: HTMLDivElement;
91
- }, any>;
92
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
93
- export default _default;
94
- type __VLS_WithTemplateSlots<T, S> = T & {
95
- new (): {
96
- $slots: S;
97
- };
98
- };
@@ -1,60 +0,0 @@
1
- export interface PaginationLink {
2
- url: string | null;
3
- label: string;
4
- active: boolean;
5
- }
6
- export interface PaginationData {
7
- total: number;
8
- from: number;
9
- to: number;
10
- links: PaginationLink[];
11
- [key: string]: unknown;
12
- }
13
- export interface PaginationProps {
14
- pagination: PaginationData;
15
- perPage?: number;
16
- perPageLabel?: string;
17
- perPageOptions?: number[];
18
- fromLabel?: string;
19
- }
20
- declare function __VLS_template(): {
21
- attrs: Partial<{}>;
22
- slots: {
23
- perPage?(_: {
24
- perPage: number;
25
- total: number;
26
- from: number;
27
- to: number;
28
- links: PaginationLink[];
29
- }): any;
30
- info?(_: {
31
- fromLabel: string;
32
- total: number;
33
- from: number;
34
- to: number;
35
- links: PaginationLink[];
36
- }): any;
37
- };
38
- refs: {};
39
- rootEl: any;
40
- };
41
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
42
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<PaginationProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
43
- "pagination:change": (url: string) => any;
44
- "pagination:perPage": (perPage: number) => any;
45
- }, string, import('../../node_modules/vue').PublicProps, Readonly<PaginationProps> & Readonly<{
46
- "onPagination:change"?: ((url: string) => any) | undefined;
47
- "onPagination:perPage"?: ((perPage: number) => any) | undefined;
48
- }>, {
49
- perPage: number;
50
- perPageLabel: string;
51
- perPageOptions: number[];
52
- fromLabel: string;
53
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, any>;
54
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
55
- export default _default;
56
- type __VLS_WithTemplateSlots<T, S> = T & {
57
- new (): {
58
- $slots: S;
59
- };
60
- };
@@ -1,34 +0,0 @@
1
- export type RadioModelValue = boolean | string | Array<unknown> | object | number | null;
2
- export interface RadioProps {
3
- modelValue?: RadioModelValue;
4
- label?: string;
5
- }
6
- declare function __VLS_template(): {
7
- attrs: Partial<{}>;
8
- slots: {
9
- input?(_: {}): any;
10
- default?(_: {}): any;
11
- };
12
- refs: {
13
- input: HTMLInputElement;
14
- };
15
- rootEl: any;
16
- };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<RadioProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
19
- "update:modelValue": (value: RadioModelValue) => any;
20
- }, string, import('../../node_modules/vue').PublicProps, Readonly<RadioProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: RadioModelValue) => any) | undefined;
22
- }>, {
23
- label: string;
24
- modelValue: RadioModelValue;
25
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {
26
- input: HTMLInputElement;
27
- }, any>;
28
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
- export default _default;
30
- type __VLS_WithTemplateSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
@@ -1,71 +0,0 @@
1
- import { Editor } from '../../node_modules/@tiptap/vue-3';
2
- import { Extension } from '@tiptap/core';
3
- export type RichTextConfig = 'default' | 'simple';
4
- export interface CustomCommand {
5
- name: string;
6
- icon?: any;
7
- title: string;
8
- isVisible?: boolean | ((editor: Editor) => boolean);
9
- disabled?: boolean | ((editor: Editor) => boolean);
10
- isActive?: (editor: Editor) => boolean;
11
- action: (editor: Editor) => void;
12
- }
13
- export interface RichTextEditorProps {
14
- id: string;
15
- modelValue?: string;
16
- rootClass?: string;
17
- config?: RichTextConfig;
18
- customExtensions?: Extension[];
19
- customCommands?: CustomCommand[];
20
- disabled?: boolean;
21
- }
22
- declare function __VLS_template(): {
23
- attrs: Partial<{}>;
24
- slots: {
25
- default?(_: {}): any;
26
- toolbar?(_: {
27
- commands: ({
28
- name: string;
29
- icon: import('../../node_modules/vue').FunctionalComponent<import('../../node_modules/vue').HTMLAttributes & import('../../node_modules/vue').VNodeProps, {}, any, {}>;
30
- title: string;
31
- isVisible: boolean;
32
- isActive: () => boolean;
33
- action: () => boolean | undefined;
34
- disabled?: undefined;
35
- } | {
36
- isVisible: boolean | ((editor: Editor) => boolean);
37
- disabled: boolean;
38
- isActive: () => boolean;
39
- action: () => void | undefined;
40
- name: string;
41
- icon?: any;
42
- title: string;
43
- })[];
44
- tiptap: Editor;
45
- }): any;
46
- };
47
- refs: {};
48
- rootEl: any;
49
- };
50
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
51
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<RichTextEditorProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
52
- "update:modelValue": (value: string) => any;
53
- "tiptap:onCreate": (editor: any) => any;
54
- }, string, import('../../node_modules/vue').PublicProps, Readonly<RichTextEditorProps> & Readonly<{
55
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
56
- "onTiptap:onCreate"?: ((editor: any) => any) | undefined;
57
- }>, {
58
- modelValue: string;
59
- rootClass: string;
60
- disabled: boolean;
61
- config: RichTextConfig;
62
- customExtensions: Extension[];
63
- customCommands: CustomCommand[];
64
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, any>;
65
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
- export default _default;
67
- type __VLS_WithTemplateSlots<T, S> = T & {
68
- new (): {
69
- $slots: S;
70
- };
71
- };
@@ -1,26 +0,0 @@
1
- export type TabStyle = 'buttons' | 'default';
2
- export interface TabItem {
3
- name: string;
4
- active?: boolean;
5
- as?: string;
6
- bindAs?: string;
7
- selectEvent?: () => void;
8
- [key: string]: unknown;
9
- }
10
- export interface TabsProps {
11
- modelValue?: number;
12
- tabs: TabItem[];
13
- tabStyle?: TabStyle;
14
- }
15
- declare const _default: import('../../node_modules/vue').DefineComponent<TabsProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
16
- "update:modelValue": (value: number) => any;
17
- "tabs:change": (tab: TabItem) => any;
18
- }, string, import('../../node_modules/vue').PublicProps, Readonly<TabsProps> & Readonly<{
19
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
20
- "onTabs:change"?: ((tab: TabItem) => any) | undefined;
21
- }>, {
22
- modelValue: number;
23
- tabs: TabItem[];
24
- tabStyle: TabStyle;
25
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, any>;
26
- export default _default;
@@ -1,46 +0,0 @@
1
- import { Icon } from '../types/shared';
2
- export type ToastPosition = 'top' | 'bottom';
3
- export type ToastType = 'success' | 'warning' | 'danger' | 'info';
4
- export interface ToastProps {
5
- show?: boolean;
6
- as?: string;
7
- title?: string;
8
- icon?: Icon;
9
- timeout?: number | boolean;
10
- position?: ToastPosition;
11
- type?: ToastType;
12
- showClose?: boolean;
13
- }
14
- declare function __VLS_template(): {
15
- attrs: Partial<{}>;
16
- slots: {
17
- icon?(_: {}): any;
18
- title?(_: {}): any;
19
- default?(_: {}): any;
20
- close?(_: {}): any;
21
- };
22
- refs: {};
23
- rootEl: any;
24
- };
25
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<ToastProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
27
- "toast:close": () => any;
28
- }, string, import('../../node_modules/vue').PublicProps, Readonly<ToastProps> & Readonly<{
29
- "onToast:close"?: (() => any) | undefined;
30
- }>, {
31
- title: string;
32
- as: string;
33
- icon: Icon;
34
- type: ToastType;
35
- showClose: boolean;
36
- show: boolean;
37
- position: ToastPosition;
38
- timeout: number | boolean;
39
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, any>;
40
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
- export default _default;
42
- type __VLS_WithTemplateSlots<T, S> = T & {
43
- new (): {
44
- $slots: S;
45
- };
46
- };
@@ -1,45 +0,0 @@
1
- import { AlignedPlacement, Side } from '../../node_modules/@floating-ui/vue';
2
- export type TooltipPlacement = AlignedPlacement | Side;
3
- export type TooltipSize = 'sm' | 'base';
4
- export interface TooltipProps {
5
- content: string;
6
- blur?: boolean;
7
- maxWidth?: number | null;
8
- tooltipClass?: string;
9
- placement?: TooltipPlacement;
10
- size?: TooltipSize;
11
- }
12
- declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: {
15
- default?(_: {}): any;
16
- content?(_: {
17
- content: string;
18
- }): any;
19
- };
20
- refs: {
21
- wrapperRef: HTMLDivElement;
22
- tooltipRef: HTMLDivElement;
23
- arrowRef: HTMLDivElement;
24
- };
25
- rootEl: HTMLDivElement;
26
- };
27
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
28
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<TooltipProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
29
- blur: boolean;
30
- size: TooltipSize;
31
- maxWidth: number | null;
32
- tooltipClass: string;
33
- placement: TooltipPlacement;
34
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {
35
- wrapperRef: HTMLDivElement;
36
- tooltipRef: HTMLDivElement;
37
- arrowRef: HTMLDivElement;
38
- }, HTMLDivElement>;
39
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
- export default _default;
41
- type __VLS_WithTemplateSlots<T, S> = T & {
42
- new (): {
43
- $slots: S;
44
- };
45
- };
@@ -1,18 +0,0 @@
1
- import { Ref, ComputedRef } from '../../node_modules/vue';
2
- interface DialogProps {
3
- as: string;
4
- id: string;
5
- }
6
- interface DialogContext {
7
- contentRef: Ref<HTMLElement | null>;
8
- ready: Ref<boolean>;
9
- isForm: ComputedRef<boolean>;
10
- titleId: ComputedRef<string>;
11
- descriptionId: ComputedRef<string>;
12
- initialFocusElement: ComputedRef<HTMLElement | null>;
13
- }
14
- /**
15
- * Dialog context composable
16
- */
17
- export default function useDialogContext(props: DialogProps): DialogContext;
18
- export {};
@@ -1,6 +0,0 @@
1
- import { ComputedRef } from '../../node_modules/vue';
2
- interface UseFormReturn {
3
- hasModelBinding: ComputedRef<boolean>;
4
- }
5
- declare const _default: () => UseFormReturn;
6
- export default _default;
@@ -1,3 +0,0 @@
1
- import { FunctionalComponent, SVGAttributes, HTMLAttributes, VNodeProps } from '../../node_modules/vue';
2
- export type RenderableComponent = FunctionalComponent<SVGAttributes & HTMLAttributes & VNodeProps>;
3
- export type Icon = RenderableComponent | null;