sprintify-ui 0.0.93 → 0.0.95

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 (82) hide show
  1. package/dist/sprintify-ui.es.js +15422 -6148
  2. package/dist/style.css +1 -1
  3. package/dist/types/src/components/BaseActionItem.vue.d.ts +25 -102
  4. package/dist/types/src/components/BaseApp.vue.d.ts +8 -47
  5. package/dist/types/src/components/BaseAutocomplete.vue.d.ts +91 -327
  6. package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +85 -290
  7. package/dist/types/src/components/BaseBadge.vue.d.ts +27 -110
  8. package/dist/types/src/components/BaseBelongsTo.vue.d.ts +89 -294
  9. package/dist/types/src/components/BaseButtonGroup.vue.d.ts +71 -254
  10. package/dist/types/src/components/BaseCard.vue.d.ts +15 -68
  11. package/dist/types/src/components/BaseClipboard.vue.d.ts +15 -68
  12. package/dist/types/src/components/BaseColor.vue.d.ts +63 -0
  13. package/dist/types/src/components/BaseDataIterator.vue.d.ts +82 -258
  14. package/dist/types/src/components/BaseDataTable.vue.d.ts +158 -509
  15. package/dist/types/src/components/BaseDescriptionList.vue.d.ts +8 -47
  16. package/dist/types/src/components/BaseDescriptionListItem.vue.d.ts +9 -48
  17. package/dist/types/src/components/BaseDialog.vue.d.ts +31 -131
  18. package/dist/types/src/components/BaseDropdown.vue.d.ts +30 -111
  19. package/dist/types/src/components/BaseField.vue.d.ts +31 -124
  20. package/dist/types/src/components/BaseFieldI18n.vue.d.ts +1 -1
  21. package/dist/types/src/components/BaseFileUploader.vue.d.ts +54 -192
  22. package/dist/types/src/components/BaseForm.vue.d.ts +62 -226
  23. package/dist/types/src/components/BaseHasMany.vue.d.ts +66 -219
  24. package/dist/types/src/components/BaseInput.vue.d.ts +10 -1
  25. package/dist/types/src/components/BaseInputError.vue.d.ts +8 -47
  26. package/dist/types/src/components/BaseInputPercent.vue.d.ts +1 -1
  27. package/dist/types/src/components/BaseLayoutSidebar.vue.d.ts +25 -98
  28. package/dist/types/src/components/BaseLayoutSidebarConfigurable.vue.d.ts +39 -155
  29. package/dist/types/src/components/BaseLayoutStacked.vue.d.ts +17 -70
  30. package/dist/types/src/components/BaseLayoutStackedConfigurable.vue.d.ts +39 -155
  31. package/dist/types/src/components/BaseLocaleForm.vue.d.ts +1 -1
  32. package/dist/types/src/components/BaseMediaLibrary.vue.d.ts +63 -234
  33. package/dist/types/src/components/BaseMenu.vue.d.ts +32 -105
  34. package/dist/types/src/components/BaseModalCenter.vue.d.ts +42 -132
  35. package/dist/types/src/components/BaseModalSide.vue.d.ts +29 -118
  36. package/dist/types/src/components/BaseNavbar.vue.d.ts +24 -87
  37. package/dist/types/src/components/BaseNavbarSideItem.vue.d.ts +3 -3
  38. package/dist/types/src/components/BaseRadioGroup.vue.d.ts +53 -194
  39. package/dist/types/src/components/BaseReadMore.vue.d.ts +15 -68
  40. package/dist/types/src/components/BaseRichText.vue.d.ts +92 -0
  41. package/dist/types/src/components/BaseSelect.vue.d.ts +35 -144
  42. package/dist/types/src/components/BaseSideNavigation.vue.d.ts +8 -47
  43. package/dist/types/src/components/BaseSideNavigationItem.vue.d.ts +23 -94
  44. package/dist/types/src/components/BaseSkeleton.vue.d.ts +19 -82
  45. package/dist/types/src/components/BaseSwitch.vue.d.ts +35 -144
  46. package/dist/types/src/components/BaseSystemAlert.vue.d.ts +27 -116
  47. package/dist/types/src/components/BaseTabItem.vue.d.ts +23 -94
  48. package/dist/types/src/components/BaseTable.vue.d.ts +101 -361
  49. package/dist/types/src/components/BaseTableColumn.vue.d.ts +1 -1
  50. package/dist/types/src/components/BaseTabs.vue.d.ts +8 -47
  51. package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +66 -236
  52. package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +62 -212
  53. package/dist/types/src/components/index.d.ts +3 -1
  54. package/dist/types/src/composables/clickOutside.d.ts +8 -0
  55. package/dist/types/src/composables/modal.d.ts +1 -1
  56. package/dist/types/src/utils/scrollPreventer.d.ts +1 -2
  57. package/package.json +5 -1
  58. package/src/components/BaseAppDialogs.vue +1 -1
  59. package/src/components/BaseAutocomplete.vue +6 -25
  60. package/src/components/BaseButtonGroup.vue +2 -2
  61. package/src/components/BaseColor.stories.js +50 -0
  62. package/src/components/BaseColor.vue +91 -0
  63. package/src/components/BaseDropdown.stories.js +47 -9
  64. package/src/components/BaseDropdown.vue +27 -35
  65. package/src/components/BaseForm.vue +3 -3
  66. package/src/components/BaseInput.stories.js +52 -0
  67. package/src/components/BaseInput.vue +38 -1
  68. package/src/components/BaseLayoutSidebar.vue +4 -1
  69. package/src/components/BaseModalCenter.stories.js +5 -0
  70. package/src/components/BaseModalCenter.vue +14 -10
  71. package/src/components/BaseModalSide.vue +1 -4
  72. package/src/components/BaseRichText.stories.js +102 -0
  73. package/src/components/BaseRichText.vue +121 -0
  74. package/src/components/BaseSideNavigation.vue +4 -1
  75. package/src/components/BaseTable.vue +1 -0
  76. package/src/components/BaseTabs.vue +4 -1
  77. package/src/components/BaseTagAutocomplete.vue +1 -0
  78. package/src/components/BaseTextarea.vue +1 -1
  79. package/src/components/index.ts +4 -0
  80. package/src/composables/clickOutside.ts +57 -0
  81. package/src/composables/modal.ts +2 -6
  82. package/src/utils/scrollPreventer.ts +3 -13
@@ -1,232 +1,59 @@
1
1
  import { PropType, Ref } from 'vue';
2
2
  import { Collection, DataTableQuery, MenuItemInterface, PaginationMetadata } from '@/types';
3
3
  type Direction = 'asc' | 'desc';
4
- declare const _default: {
5
- new (...args: any[]): {
6
- $: import("vue").ComponentInternalInstance;
7
- $data: {};
8
- $props: Partial<{
9
- actions: MenuItemInterface[];
10
- urlQuery: Record<string, any>;
11
- defaultQuery: DataTableQuery;
12
- searchable: boolean;
13
- historyMode: boolean;
14
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
15
- /**
16
- * Base URL from which to make requests
17
- */
18
- url: {
19
- required: true;
20
- type: StringConstructor;
21
- };
22
- /**
23
- * Query params that always get applied.
24
- * To add overwrite-able query params, use defaultQuery.
25
- */
26
- urlQuery: {
27
- default: undefined;
28
- type: PropType<Record<string, any>>;
29
- };
30
- /**
31
- * Query params that gets applied by default.
32
- * These may be overwritten by URL params generated by the data-table or filters
33
- * To add query params that are always active, use urlQuery.
34
- */
35
- defaultQuery: {
36
- default: () => DataTableQuery;
37
- type: PropType<DataTableQuery>;
38
- };
39
- /**
40
- * Add a search bar.
41
- */
42
- searchable: {
43
- default: boolean;
44
- type: BooleanConstructor;
45
- };
46
- /**
47
- * Configure contextual actions.
48
- */
49
- actions: {
50
- default: undefined;
51
- type: PropType<MenuItemInterface[]>;
52
- };
53
- /**
54
- * Save data table state in URL.
55
- */
56
- historyMode: {
57
- default: boolean;
58
- type: BooleanConstructor;
59
- };
60
- }>> & {
61
- onClick?: ((...args: any[]) => any) | undefined;
62
- onDelete?: ((...args: any[]) => any) | undefined;
63
- onCheckAll?: ((...args: any[]) => any) | undefined;
64
- "onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
65
- onCheck?: ((...args: any[]) => any) | undefined;
66
- "onUpdate:query"?: ((...args: any[]) => any) | undefined;
67
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "actions" | "urlQuery" | "defaultQuery" | "searchable" | "historyMode">;
68
- $attrs: {
69
- [x: string]: unknown;
70
- };
71
- $refs: {
72
- [x: string]: unknown;
73
- };
74
- $slots: Readonly<{
75
- [name: string]: import("vue").Slot | undefined;
76
- }>;
77
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
78
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
79
- $emit: (event: "click" | "delete" | "checkAll" | "update:checked-rows" | "check" | "update:query", ...args: any[]) => void;
80
- $el: any;
81
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
82
- /**
83
- * Base URL from which to make requests
84
- */
85
- url: {
86
- required: true;
87
- type: StringConstructor;
88
- };
89
- /**
90
- * Query params that always get applied.
91
- * To add overwrite-able query params, use defaultQuery.
92
- */
93
- urlQuery: {
94
- default: undefined;
95
- type: PropType<Record<string, any>>;
96
- };
97
- /**
98
- * Query params that gets applied by default.
99
- * These may be overwritten by URL params generated by the data-table or filters
100
- * To add query params that are always active, use urlQuery.
101
- */
102
- defaultQuery: {
103
- default: () => DataTableQuery;
104
- type: PropType<DataTableQuery>;
105
- };
106
- /**
107
- * Add a search bar.
108
- */
109
- searchable: {
110
- default: boolean;
111
- type: BooleanConstructor;
112
- };
113
- /**
114
- * Configure contextual actions.
115
- */
116
- actions: {
117
- default: undefined;
118
- type: PropType<MenuItemInterface[]>;
119
- };
120
- /**
121
- * Save data table state in URL.
122
- */
123
- historyMode: {
124
- default: boolean;
125
- type: BooleanConstructor;
126
- };
127
- }>> & {
128
- onClick?: ((...args: any[]) => any) | undefined;
129
- onDelete?: ((...args: any[]) => any) | undefined;
130
- onCheckAll?: ((...args: any[]) => any) | undefined;
131
- "onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
132
- onCheck?: ((...args: any[]) => any) | undefined;
133
- "onUpdate:query"?: ((...args: any[]) => any) | undefined;
134
- }, {
135
- fetch: (force?: boolean, showLoading?: boolean) => void;
136
- fetchWithLoading: (force?: boolean) => void;
137
- fetchWithoutLoading: (force?: boolean) => void;
138
- scrollIntoView: () => void;
139
- query: Ref<DataTableQuery>;
140
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check" | "update:query")[], string, {
141
- actions: MenuItemInterface[];
142
- urlQuery: Record<string, any>;
143
- defaultQuery: DataTableQuery;
144
- searchable: boolean;
145
- historyMode: boolean;
146
- }, {}, string> & {
147
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
148
- created?: ((() => void) | (() => void)[]) | undefined;
149
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
150
- mounted?: ((() => void) | (() => void)[]) | undefined;
151
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
152
- updated?: ((() => void) | (() => void)[]) | undefined;
153
- activated?: ((() => void) | (() => void)[]) | undefined;
154
- deactivated?: ((() => void) | (() => void)[]) | undefined;
155
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
156
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
157
- destroyed?: ((() => void) | (() => void)[]) | undefined;
158
- unmounted?: ((() => void) | (() => void)[]) | undefined;
159
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
160
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
161
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
162
- };
163
- $forceUpdate: () => void;
164
- $nextTick: typeof import("vue").nextTick;
165
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
166
- } & Readonly<import("vue").ExtractPropTypes<{
167
- /**
168
- * Base URL from which to make requests
169
- */
170
- url: {
171
- required: true;
172
- type: StringConstructor;
173
- };
174
- /**
175
- * Query params that always get applied.
176
- * To add overwrite-able query params, use defaultQuery.
177
- */
178
- urlQuery: {
179
- default: undefined;
180
- type: PropType<Record<string, any>>;
181
- };
182
- /**
183
- * Query params that gets applied by default.
184
- * These may be overwritten by URL params generated by the data-table or filters
185
- * To add query params that are always active, use urlQuery.
186
- */
187
- defaultQuery: {
188
- default: () => DataTableQuery;
189
- type: PropType<DataTableQuery>;
190
- };
191
- /**
192
- * Add a search bar.
193
- */
194
- searchable: {
195
- default: boolean;
196
- type: BooleanConstructor;
197
- };
198
- /**
199
- * Configure contextual actions.
200
- */
201
- actions: {
202
- default: undefined;
203
- type: PropType<MenuItemInterface[]>;
204
- };
205
- /**
206
- * Save data table state in URL.
207
- */
208
- historyMode: {
209
- default: boolean;
210
- type: BooleanConstructor;
211
- };
212
- }>> & {
213
- onClick?: ((...args: any[]) => any) | undefined;
214
- onDelete?: ((...args: any[]) => any) | undefined;
215
- onCheckAll?: ((...args: any[]) => any) | undefined;
216
- "onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
217
- onCheck?: ((...args: any[]) => any) | undefined;
218
- "onUpdate:query"?: ((...args: any[]) => any) | undefined;
219
- } & import("vue").ShallowUnwrapRef<{
220
- fetch: (force?: boolean, showLoading?: boolean) => void;
221
- fetchWithLoading: (force?: boolean) => void;
222
- fetchWithoutLoading: (force?: boolean) => void;
223
- scrollIntoView: () => void;
224
- query: Ref<DataTableQuery>;
225
- }> & {} & import("vue").ComponentCustomProperties & {};
226
- __isFragment?: undefined;
227
- __isTeleport?: undefined;
228
- __isSuspense?: undefined;
229
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
+ /**
6
+ * Base URL from which to make requests
7
+ */
8
+ url: {
9
+ required: true;
10
+ type: StringConstructor;
11
+ };
12
+ /**
13
+ * Query params that always get applied.
14
+ * To add overwrite-able query params, use defaultQuery.
15
+ */
16
+ urlQuery: {
17
+ default: undefined;
18
+ type: PropType<Record<string, any>>;
19
+ };
20
+ /**
21
+ * Query params that gets applied by default.
22
+ * These may be overwritten by URL params generated by the data-table or filters
23
+ * To add query params that are always active, use urlQuery.
24
+ */
25
+ defaultQuery: {
26
+ default: () => DataTableQuery;
27
+ type: PropType<DataTableQuery>;
28
+ };
29
+ /**
30
+ * Add a search bar.
31
+ */
32
+ searchable: {
33
+ default: boolean;
34
+ type: BooleanConstructor;
35
+ };
36
+ /**
37
+ * Configure contextual actions.
38
+ */
39
+ actions: {
40
+ default: undefined;
41
+ type: PropType<MenuItemInterface[]>;
42
+ };
43
+ /**
44
+ * Save data table state in URL.
45
+ */
46
+ historyMode: {
47
+ default: boolean;
48
+ type: BooleanConstructor;
49
+ };
50
+ }, {
51
+ fetch: (force?: boolean, showLoading?: boolean) => void;
52
+ fetchWithLoading: (force?: boolean) => void;
53
+ fetchWithoutLoading: (force?: boolean) => void;
54
+ scrollIntoView: () => void;
55
+ query: Ref<DataTableQuery>;
56
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check" | "update:query")[], "click" | "delete" | "checkAll" | "update:checked-rows" | "check" | "update:query", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
230
57
  /**
231
58
  * Base URL from which to make requests
232
59
  */
@@ -280,41 +107,38 @@ declare const _default: {
280
107
  onCheck?: ((...args: any[]) => any) | undefined;
281
108
  "onUpdate:query"?: ((...args: any[]) => any) | undefined;
282
109
  }, {
283
- fetch: (force?: boolean, showLoading?: boolean) => void;
284
- fetchWithLoading: (force?: boolean) => void;
285
- fetchWithoutLoading: (force?: boolean) => void;
286
- scrollIntoView: () => void;
287
- query: Ref<DataTableQuery>;
288
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check" | "update:query")[], "click" | "delete" | "checkAll" | "update:checked-rows" | "check" | "update:query", {
289
110
  actions: MenuItemInterface[];
290
111
  urlQuery: Record<string, any>;
291
112
  defaultQuery: DataTableQuery;
292
113
  searchable: boolean;
293
114
  historyMode: boolean;
294
- }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
295
- $slots: {
296
- default: (_: {
297
- items: Collection;
298
- loading: boolean;
299
- error: boolean;
300
- firstLoad: boolean;
301
- page: number;
302
- sortField: string;
303
- sortDirection: Direction;
304
- onSortChange: (field: string, direction: Direction) => void;
305
- onPageChange: (p: number) => void;
306
- }) => any;
307
- sidebarTop: (_: {
308
- paginationMetadata: PaginationMetadata | null;
309
- }) => any;
310
- filters: (_: {
311
- query: DataTableQuery;
312
- updateQuery: (newQuery: DataTableQuery) => void;
313
- updateQueryValue: (key: string, value: any) => void;
314
- }) => any;
315
- sidebarBottom: (_: {
316
- paginationMetadata: PaginationMetadata | null;
317
- }) => any;
318
- };
319
- });
115
+ }>, {
116
+ default: (_: {
117
+ items: Collection;
118
+ loading: boolean;
119
+ error: boolean;
120
+ firstLoad: boolean;
121
+ page: number;
122
+ sortField: string;
123
+ sortDirection: Direction;
124
+ onSortChange: (field: string, direction: Direction) => void;
125
+ onPageChange: (p: number) => void;
126
+ }) => any;
127
+ sidebarTop: (_: {
128
+ paginationMetadata: PaginationMetadata | null;
129
+ }) => any;
130
+ filters: (_: {
131
+ query: DataTableQuery;
132
+ updateQuery: (newQuery: DataTableQuery) => void;
133
+ updateQueryValue: (key: string, value: any) => void;
134
+ }) => any;
135
+ sidebarBottom: (_: {
136
+ paginationMetadata: PaginationMetadata | null;
137
+ }) => any;
138
+ }>;
320
139
  export default _default;
140
+ type __VLS_WithTemplateSlots<T, S> = T & {
141
+ new (): {
142
+ $slots: S;
143
+ };
144
+ };