sprintify-ui 0.0.93 → 0.0.94
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.
- package/dist/sprintify-ui.es.js +15388 -6135
- package/dist/style.css +1 -1
- package/dist/types/src/components/BaseActionItem.vue.d.ts +25 -102
- package/dist/types/src/components/BaseApp.vue.d.ts +8 -47
- package/dist/types/src/components/BaseAutocomplete.vue.d.ts +90 -326
- package/dist/types/src/components/BaseAutocompleteFetch.vue.d.ts +85 -290
- package/dist/types/src/components/BaseBadge.vue.d.ts +27 -110
- package/dist/types/src/components/BaseBelongsTo.vue.d.ts +89 -294
- package/dist/types/src/components/BaseButtonGroup.vue.d.ts +71 -254
- package/dist/types/src/components/BaseCard.vue.d.ts +15 -68
- package/dist/types/src/components/BaseClipboard.vue.d.ts +15 -68
- package/dist/types/src/components/BaseColor.vue.d.ts +79 -0
- package/dist/types/src/components/BaseDataIterator.vue.d.ts +82 -258
- package/dist/types/src/components/BaseDataTable.vue.d.ts +158 -509
- package/dist/types/src/components/BaseDescriptionList.vue.d.ts +8 -47
- package/dist/types/src/components/BaseDescriptionListItem.vue.d.ts +9 -48
- package/dist/types/src/components/BaseDialog.vue.d.ts +31 -131
- package/dist/types/src/components/BaseDropdown.vue.d.ts +28 -110
- package/dist/types/src/components/BaseField.vue.d.ts +31 -124
- package/dist/types/src/components/BaseFileUploader.vue.d.ts +54 -192
- package/dist/types/src/components/BaseForm.vue.d.ts +62 -226
- package/dist/types/src/components/BaseHasMany.vue.d.ts +66 -219
- package/dist/types/src/components/BaseInput.vue.d.ts +9 -0
- package/dist/types/src/components/BaseInputError.vue.d.ts +8 -47
- package/dist/types/src/components/BaseLayoutSidebar.vue.d.ts +25 -98
- package/dist/types/src/components/BaseLayoutSidebarConfigurable.vue.d.ts +39 -155
- package/dist/types/src/components/BaseLayoutStacked.vue.d.ts +17 -70
- package/dist/types/src/components/BaseLayoutStackedConfigurable.vue.d.ts +39 -155
- package/dist/types/src/components/BaseMediaLibrary.vue.d.ts +63 -234
- package/dist/types/src/components/BaseMenu.vue.d.ts +32 -105
- package/dist/types/src/components/BaseModalCenter.vue.d.ts +42 -132
- package/dist/types/src/components/BaseModalSide.vue.d.ts +29 -118
- package/dist/types/src/components/BaseNavbar.vue.d.ts +24 -87
- package/dist/types/src/components/BaseRadioGroup.vue.d.ts +53 -194
- package/dist/types/src/components/BaseReadMore.vue.d.ts +15 -68
- package/dist/types/src/components/BaseRichText.vue.d.ts +92 -0
- package/dist/types/src/components/BaseSelect.vue.d.ts +35 -144
- package/dist/types/src/components/BaseSideNavigation.vue.d.ts +8 -47
- package/dist/types/src/components/BaseSideNavigationItem.vue.d.ts +23 -94
- package/dist/types/src/components/BaseSkeleton.vue.d.ts +19 -82
- package/dist/types/src/components/BaseSwitch.vue.d.ts +35 -144
- package/dist/types/src/components/BaseSystemAlert.vue.d.ts +27 -116
- package/dist/types/src/components/BaseTabItem.vue.d.ts +23 -94
- package/dist/types/src/components/BaseTable.vue.d.ts +101 -361
- package/dist/types/src/components/BaseTableColumn.vue.d.ts +1 -1
- package/dist/types/src/components/BaseTabs.vue.d.ts +8 -47
- package/dist/types/src/components/BaseTagAutocomplete.vue.d.ts +66 -236
- package/dist/types/src/components/BaseTagAutocompleteFetch.vue.d.ts +62 -212
- package/dist/types/src/components/index.d.ts +3 -1
- package/package.json +5 -1
- package/src/components/BaseButtonGroup.vue +2 -2
- package/src/components/BaseColor.stories.js +52 -0
- package/src/components/BaseColor.vue +98 -0
- package/src/components/BaseForm.vue +3 -3
- package/src/components/BaseInput.stories.js +52 -0
- package/src/components/BaseInput.vue +38 -1
- package/src/components/BaseModalCenter.stories.js +5 -0
- package/src/components/BaseModalCenter.vue +13 -5
- package/src/components/BaseRichText.stories.js +102 -0
- package/src/components/BaseRichText.vue +121 -0
- package/src/components/BaseTextarea.vue +1 -1
- package/src/components/index.ts +4 -0
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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
|
+
};
|