sprintify-ui 0.0.178 → 0.0.180
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 +8880 -8644
- package/dist/style.css +1 -1
- package/dist/types/src/components/BaseDataIterator.vue.d.ts +52 -13
- package/dist/types/src/components/BaseDataIteratorSectionBox.vue.d.ts +23 -0
- package/dist/types/src/components/BaseDataIteratorSectionButton.vue.d.ts +20 -0
- package/dist/types/src/components/{BaseDataTableToggleColumns.vue.d.ts → BaseDataIteratorSectionColumns.vue.d.ts} +6 -40
- package/dist/types/src/components/BaseDataIteratorSectionModal.vue.d.ts +29 -0
- package/dist/types/src/components/BaseDataTable.vue.d.ts +71 -17
- package/dist/types/src/components/BaseDataTableRowAction.vue.d.ts +18 -0
- package/dist/types/src/components/BaseMenu.vue.d.ts +9 -0
- package/dist/types/src/components/BaseMenuItem.vue.d.ts +9 -0
- package/dist/types/src/components/BaseTable.vue.d.ts +2 -17
- package/dist/types/src/components/BaseTableColumn.vue.d.ts +10 -0
- package/dist/types/src/index.d.ts +12 -0
- package/dist/types/src/types/index.d.ts +15 -0
- package/package.json +9 -9
- package/src/assets/main.css +23 -0
- package/src/components/BaseActionItem.vue +3 -1
- package/src/components/BaseDataIterator.vue +126 -87
- package/src/components/BaseDataIteratorSectionBox.vue +33 -0
- package/src/components/BaseDataIteratorSectionButton.vue +34 -0
- package/src/components/{BaseDataTableToggleColumns.vue → BaseDataIteratorSectionColumns.vue} +3 -3
- package/src/components/BaseDataIteratorSectionModal.vue +41 -0
- package/src/components/BaseDataTable.stories.js +73 -17
- package/src/components/BaseDataTable.vue +239 -79
- package/src/components/BaseDataTableRowAction.vue +28 -0
- package/src/components/BaseFieldI18n.stories.js +1 -1
- package/src/components/BaseMediaLibrary.stories.js +1 -1
- package/src/components/BaseMenu.vue +7 -0
- package/src/components/BaseMenuItem.vue +17 -1
- package/src/components/BaseTable.vue +165 -112
- package/src/components/BaseTableColumn.vue +5 -0
- package/src/lang/en.json +3 -0
- package/src/lang/fr.json +3 -0
- package/src/types/index.ts +17 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DataIteratorSection } from '@/types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
section: DataIteratorSection;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: boolean) => void;
|
|
7
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
modelValue: boolean;
|
|
9
|
+
section: DataIteratorSection;
|
|
10
|
+
}>>> & {
|
|
11
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
}, {}>, {
|
|
13
|
+
default: (_: {}) => any;
|
|
14
|
+
}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { CollectionItem, DataTableQuery, MenuItemInterface } from '@/types';
|
|
2
|
+
import { CollectionItem, DataIteratorSection, DataTableQuery, MenuItemInterface, RowAction } from '@/types';
|
|
3
3
|
import { RouteLocationRaw } from 'vue-router';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
/**
|
|
@@ -24,6 +24,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
default: undefined;
|
|
25
25
|
type: PropType<DataTableQuery>;
|
|
26
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Show url for router link
|
|
29
|
+
*/
|
|
30
|
+
showUrl: {
|
|
31
|
+
default: undefined;
|
|
32
|
+
type: PropType<((row: CollectionItem) => RouteLocationRaw) | undefined>;
|
|
33
|
+
};
|
|
27
34
|
/**
|
|
28
35
|
* Show/Hide edit button
|
|
29
36
|
*/
|
|
@@ -36,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
43
|
*/
|
|
37
44
|
editUrl: {
|
|
38
45
|
default: undefined;
|
|
39
|
-
type: PropType<(row: CollectionItem) => RouteLocationRaw>;
|
|
46
|
+
type: PropType<((row: CollectionItem) => RouteLocationRaw) | undefined>;
|
|
40
47
|
};
|
|
41
48
|
/**
|
|
42
49
|
* Show/Hide delete button
|
|
@@ -50,7 +57,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
50
57
|
*/
|
|
51
58
|
deleteUrl: {
|
|
52
59
|
default: undefined;
|
|
53
|
-
type: PropType<(row: CollectionItem) => string>;
|
|
60
|
+
type: PropType<((row: CollectionItem) => string) | undefined>;
|
|
54
61
|
};
|
|
55
62
|
/**
|
|
56
63
|
* Show toggle-able details on each row
|
|
@@ -126,11 +133,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
126
133
|
default: undefined;
|
|
127
134
|
type: NumberConstructor;
|
|
128
135
|
};
|
|
136
|
+
/**
|
|
137
|
+
* Layout type
|
|
138
|
+
*/
|
|
139
|
+
layout: {
|
|
140
|
+
default: string;
|
|
141
|
+
type: PropType<"default" | "compact">;
|
|
142
|
+
};
|
|
143
|
+
sections: {
|
|
144
|
+
default: undefined;
|
|
145
|
+
type: PropType<DataIteratorSection[]>;
|
|
146
|
+
};
|
|
147
|
+
rowActions: {
|
|
148
|
+
default: undefined;
|
|
149
|
+
type: PropType<RowAction[]>;
|
|
150
|
+
};
|
|
151
|
+
numberOfVisibleRowActions: {
|
|
152
|
+
default: number;
|
|
153
|
+
type: NumberConstructor;
|
|
154
|
+
};
|
|
129
155
|
}, {
|
|
130
156
|
fetch: () => void;
|
|
131
157
|
fetchWithoutLoading: () => void;
|
|
132
158
|
query: import("vue").ComputedRef<DataTableQuery | null>;
|
|
133
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "
|
|
159
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "update:checked-rows" | "cell-click")[], "delete" | "update:checked-rows" | "cell-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
134
160
|
/**
|
|
135
161
|
* Base URL from which to make requests
|
|
136
162
|
*/
|
|
@@ -153,6 +179,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
153
179
|
default: undefined;
|
|
154
180
|
type: PropType<DataTableQuery>;
|
|
155
181
|
};
|
|
182
|
+
/**
|
|
183
|
+
* Show url for router link
|
|
184
|
+
*/
|
|
185
|
+
showUrl: {
|
|
186
|
+
default: undefined;
|
|
187
|
+
type: PropType<((row: CollectionItem) => RouteLocationRaw) | undefined>;
|
|
188
|
+
};
|
|
156
189
|
/**
|
|
157
190
|
* Show/Hide edit button
|
|
158
191
|
*/
|
|
@@ -165,7 +198,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
165
198
|
*/
|
|
166
199
|
editUrl: {
|
|
167
200
|
default: undefined;
|
|
168
|
-
type: PropType<(row: CollectionItem) => RouteLocationRaw>;
|
|
201
|
+
type: PropType<((row: CollectionItem) => RouteLocationRaw) | undefined>;
|
|
169
202
|
};
|
|
170
203
|
/**
|
|
171
204
|
* Show/Hide delete button
|
|
@@ -179,7 +212,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
179
212
|
*/
|
|
180
213
|
deleteUrl: {
|
|
181
214
|
default: undefined;
|
|
182
|
-
type: PropType<(row: CollectionItem) => string>;
|
|
215
|
+
type: PropType<((row: CollectionItem) => string) | undefined>;
|
|
183
216
|
};
|
|
184
217
|
/**
|
|
185
218
|
* Show toggle-able details on each row
|
|
@@ -255,11 +288,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
255
288
|
default: undefined;
|
|
256
289
|
type: NumberConstructor;
|
|
257
290
|
};
|
|
291
|
+
/**
|
|
292
|
+
* Layout type
|
|
293
|
+
*/
|
|
294
|
+
layout: {
|
|
295
|
+
default: string;
|
|
296
|
+
type: PropType<"default" | "compact">;
|
|
297
|
+
};
|
|
298
|
+
sections: {
|
|
299
|
+
default: undefined;
|
|
300
|
+
type: PropType<DataIteratorSection[]>;
|
|
301
|
+
};
|
|
302
|
+
rowActions: {
|
|
303
|
+
default: undefined;
|
|
304
|
+
type: PropType<RowAction[]>;
|
|
305
|
+
};
|
|
306
|
+
numberOfVisibleRowActions: {
|
|
307
|
+
default: number;
|
|
308
|
+
type: NumberConstructor;
|
|
309
|
+
};
|
|
258
310
|
}>> & {
|
|
259
311
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
260
|
-
onCheckAll?: ((...args: any[]) => any) | undefined;
|
|
261
312
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
262
|
-
onCheck?: ((...args: any[]) => any) | undefined;
|
|
263
313
|
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
264
314
|
}, {
|
|
265
315
|
actions: MenuItemInterface[];
|
|
@@ -267,19 +317,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
267
317
|
defaultQuery: DataTableQuery;
|
|
268
318
|
searchable: boolean;
|
|
269
319
|
historyMode: boolean;
|
|
320
|
+
layout: "default" | "compact";
|
|
321
|
+
sections: DataIteratorSection[];
|
|
270
322
|
detailed: boolean;
|
|
271
323
|
checkable: boolean;
|
|
272
|
-
checkableActions: MenuItemInterface[];
|
|
273
324
|
isRowCheckable: Function;
|
|
274
325
|
checkedRows: Record<string, any>[];
|
|
275
326
|
hasDetailedVisible: (row: any) => boolean;
|
|
276
327
|
maxHeight: number;
|
|
328
|
+
showUrl: ((row: CollectionItem) => RouteLocationRaw) | undefined;
|
|
277
329
|
editButton: boolean;
|
|
278
|
-
editUrl: (row: CollectionItem) => RouteLocationRaw;
|
|
330
|
+
editUrl: ((row: CollectionItem) => RouteLocationRaw) | undefined;
|
|
279
331
|
deleteButton: boolean;
|
|
280
|
-
deleteUrl: (row: CollectionItem) => string;
|
|
332
|
+
deleteUrl: ((row: CollectionItem) => string) | undefined;
|
|
333
|
+
checkableActions: MenuItemInterface[];
|
|
281
334
|
toggleable: boolean;
|
|
282
|
-
|
|
335
|
+
rowActions: RowAction[];
|
|
336
|
+
numberOfVisibleRowActions: number;
|
|
337
|
+
}>, Record<string, (_: {}) => any> & {
|
|
283
338
|
default: (_: {}) => any;
|
|
284
339
|
rowActions: (_: {
|
|
285
340
|
row: any;
|
|
@@ -288,11 +343,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
288
343
|
row: import("@/types").Row;
|
|
289
344
|
index: number;
|
|
290
345
|
}) => any;
|
|
291
|
-
checkedHeader: (_:
|
|
292
|
-
uncheckAll: () => void;
|
|
293
|
-
count: number;
|
|
294
|
-
checkRows: import("@/types").Row[];
|
|
295
|
-
}) => any;
|
|
346
|
+
checkedHeader: (_: any) => any;
|
|
296
347
|
filters: (_: {
|
|
297
348
|
query: {
|
|
298
349
|
[x: string]: any;
|
|
@@ -307,6 +358,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
307
358
|
sidebarTop: (_: {
|
|
308
359
|
paginationMetadata: import("@/types").PaginationMetadata | null;
|
|
309
360
|
}) => any;
|
|
361
|
+
sidebarBottom: (_: {
|
|
362
|
+
paginationMetadata: import("@/types").PaginationMetadata | null;
|
|
363
|
+
}) => any;
|
|
310
364
|
}>;
|
|
311
365
|
export default _default;
|
|
312
366
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CollectionItem, RowAction } from '@/types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
row: CollectionItem;
|
|
4
|
+
rowAction: RowAction;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
row: CollectionItem;
|
|
7
|
+
rowAction: RowAction;
|
|
8
|
+
}>>>, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -13,6 +13,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
13
|
default: string;
|
|
14
14
|
type: PropType<"custom" | "bottom-left" | "bottom-right">;
|
|
15
15
|
};
|
|
16
|
+
size: {
|
|
17
|
+
default: string;
|
|
18
|
+
type: PropType<"xs" | "sm" | "md">;
|
|
19
|
+
};
|
|
16
20
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
21
|
items: {
|
|
18
22
|
default: undefined;
|
|
@@ -26,7 +30,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
26
30
|
default: string;
|
|
27
31
|
type: PropType<"custom" | "bottom-left" | "bottom-right">;
|
|
28
32
|
};
|
|
33
|
+
size: {
|
|
34
|
+
default: string;
|
|
35
|
+
type: PropType<"xs" | "sm" | "md">;
|
|
36
|
+
};
|
|
29
37
|
}>>, {
|
|
38
|
+
size: "xs" | "sm" | "md";
|
|
30
39
|
items: MenuItemInterface[];
|
|
31
40
|
menuClass: string | Record<string, any> | unknown[];
|
|
32
41
|
position: "custom" | "bottom-left" | "bottom-right";
|
|
@@ -20,6 +20,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
default: string;
|
|
21
21
|
type: PropType<"dark" | "light" | "danger" | "success" | "warning">;
|
|
22
22
|
};
|
|
23
|
+
size: {
|
|
24
|
+
default: string;
|
|
25
|
+
type: PropType<"xs" | "sm" | "md">;
|
|
26
|
+
};
|
|
23
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
28
|
label: {
|
|
25
29
|
default: undefined;
|
|
@@ -41,11 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
45
|
default: string;
|
|
42
46
|
type: PropType<"dark" | "light" | "danger" | "success" | "warning">;
|
|
43
47
|
};
|
|
48
|
+
size: {
|
|
49
|
+
default: string;
|
|
50
|
+
type: PropType<"xs" | "sm" | "md">;
|
|
51
|
+
};
|
|
44
52
|
}>>, {
|
|
45
53
|
label: string;
|
|
46
54
|
active: boolean;
|
|
47
55
|
color: "dark" | "light" | "danger" | "success" | "warning";
|
|
48
56
|
icon: string;
|
|
49
57
|
count: number;
|
|
58
|
+
size: "xs" | "sm" | "md";
|
|
50
59
|
}>;
|
|
51
60
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { BaseTableColumn,
|
|
2
|
+
import { BaseTableColumn, Row } from '@/types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
/** Table data */
|
|
5
5
|
data: {
|
|
@@ -25,11 +25,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
default: boolean;
|
|
26
26
|
type: BooleanConstructor;
|
|
27
27
|
};
|
|
28
|
-
/** Define checkable actions */
|
|
29
|
-
checkableActions: {
|
|
30
|
-
default: undefined;
|
|
31
|
-
type: PropType<MenuItemInterface[]>;
|
|
32
|
-
};
|
|
33
28
|
/**
|
|
34
29
|
* Position of the checkbox (if checkable is true)
|
|
35
30
|
* @values left, right
|
|
@@ -101,6 +96,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
101
96
|
thAttrs: (column: BaseTableColumn) => Record<string, any>;
|
|
102
97
|
tdAttrs: (row: Row, column: BaseTableColumn) => Record<string, any>;
|
|
103
98
|
}[]>;
|
|
99
|
+
uncheckAll: () => void;
|
|
104
100
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("sort" | "check" | "check-all" | "update:checkedRows" | "details-open" | "details-close" | "update:openedDetailed" | "cell-click")[], "sort" | "check" | "check-all" | "update:checkedRows" | "details-open" | "details-close" | "update:openedDetailed" | "cell-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
105
101
|
/** Table data */
|
|
106
102
|
data: {
|
|
@@ -126,11 +122,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
126
122
|
default: boolean;
|
|
127
123
|
type: BooleanConstructor;
|
|
128
124
|
};
|
|
129
|
-
/** Define checkable actions */
|
|
130
|
-
checkableActions: {
|
|
131
|
-
default: undefined;
|
|
132
|
-
type: PropType<MenuItemInterface[]>;
|
|
133
|
-
};
|
|
134
125
|
/**
|
|
135
126
|
* Position of the checkbox (if checkable is true)
|
|
136
127
|
* @values left, right
|
|
@@ -197,7 +188,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
197
188
|
visibleColumns: number[];
|
|
198
189
|
detailed: boolean;
|
|
199
190
|
checkable: boolean;
|
|
200
|
-
checkableActions: MenuItemInterface[];
|
|
201
191
|
checkboxPosition: "left" | "right";
|
|
202
192
|
isRowCheckable: Function;
|
|
203
193
|
checkedRows: Row[];
|
|
@@ -207,11 +197,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
207
197
|
maxHeight: number;
|
|
208
198
|
}>, {
|
|
209
199
|
default: (_: {}) => any;
|
|
210
|
-
checkedHeader: (_: {
|
|
211
|
-
uncheckAll: () => void;
|
|
212
|
-
count: number;
|
|
213
|
-
checkRows: Row[];
|
|
214
|
-
}) => any;
|
|
215
200
|
detail: (_: {
|
|
216
201
|
row: Row;
|
|
217
202
|
index: number;
|
|
@@ -20,6 +20,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
default: undefined;
|
|
21
21
|
type: NumberConstructor;
|
|
22
22
|
};
|
|
23
|
+
padding: {
|
|
24
|
+
default: undefined;
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
23
27
|
numeric: {
|
|
24
28
|
default: boolean;
|
|
25
29
|
type: BooleanConstructor;
|
|
@@ -79,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
83
|
}, {
|
|
80
84
|
style(): {
|
|
81
85
|
width: string | undefined;
|
|
86
|
+
padding: string;
|
|
82
87
|
};
|
|
83
88
|
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
89
|
label: {
|
|
@@ -101,6 +106,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
106
|
default: undefined;
|
|
102
107
|
type: NumberConstructor;
|
|
103
108
|
};
|
|
109
|
+
padding: {
|
|
110
|
+
default: undefined;
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
};
|
|
104
113
|
numeric: {
|
|
105
114
|
default: boolean;
|
|
106
115
|
type: BooleanConstructor;
|
|
@@ -157,6 +166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
166
|
toggle: boolean;
|
|
158
167
|
width: number;
|
|
159
168
|
field: string;
|
|
169
|
+
padding: string;
|
|
160
170
|
position: "left" | "right" | "center";
|
|
161
171
|
searchable: boolean;
|
|
162
172
|
numeric: boolean;
|
|
@@ -13,6 +13,7 @@ declare const messages: {
|
|
|
13
13
|
address_1_placeholder: string;
|
|
14
14
|
address_2_description: string;
|
|
15
15
|
and: string;
|
|
16
|
+
apply: string;
|
|
16
17
|
apply_filters: string;
|
|
17
18
|
autocomplete_placeholder: string;
|
|
18
19
|
cancel: string;
|
|
@@ -26,10 +27,12 @@ declare const messages: {
|
|
|
26
27
|
country: string;
|
|
27
28
|
create_new: string;
|
|
28
29
|
day: string;
|
|
30
|
+
delete: string;
|
|
29
31
|
delete_record: string;
|
|
30
32
|
delete_record_description: string;
|
|
31
33
|
deselect_all: string;
|
|
32
34
|
drop_or_click_to_upload: string;
|
|
35
|
+
edit: string;
|
|
33
36
|
error: string;
|
|
34
37
|
file_must_be_of_type: string;
|
|
35
38
|
filters: string;
|
|
@@ -88,6 +91,7 @@ declare const messages: {
|
|
|
88
91
|
address_1_placeholder: string;
|
|
89
92
|
address_2_description: string;
|
|
90
93
|
and: string;
|
|
94
|
+
apply: string;
|
|
91
95
|
apply_filters: string;
|
|
92
96
|
autocomplete_placeholder: string;
|
|
93
97
|
cancel: string;
|
|
@@ -101,10 +105,12 @@ declare const messages: {
|
|
|
101
105
|
country: string;
|
|
102
106
|
create_new: string;
|
|
103
107
|
day: string;
|
|
108
|
+
delete: string;
|
|
104
109
|
delete_record: string;
|
|
105
110
|
delete_record_description: string;
|
|
106
111
|
deselect_all: string;
|
|
107
112
|
drop_or_click_to_upload: string;
|
|
113
|
+
edit: string;
|
|
108
114
|
error: string;
|
|
109
115
|
file_must_be_of_type: string;
|
|
110
116
|
filters: string;
|
|
@@ -180,6 +186,7 @@ declare const config: {
|
|
|
180
186
|
address_1_placeholder: string;
|
|
181
187
|
address_2_description: string;
|
|
182
188
|
and: string;
|
|
189
|
+
apply: string;
|
|
183
190
|
apply_filters: string;
|
|
184
191
|
autocomplete_placeholder: string;
|
|
185
192
|
cancel: string;
|
|
@@ -193,10 +200,12 @@ declare const config: {
|
|
|
193
200
|
country: string;
|
|
194
201
|
create_new: string;
|
|
195
202
|
day: string;
|
|
203
|
+
delete: string;
|
|
196
204
|
delete_record: string;
|
|
197
205
|
delete_record_description: string;
|
|
198
206
|
deselect_all: string;
|
|
199
207
|
drop_or_click_to_upload: string;
|
|
208
|
+
edit: string;
|
|
200
209
|
error: string;
|
|
201
210
|
file_must_be_of_type: string;
|
|
202
211
|
filters: string;
|
|
@@ -255,6 +264,7 @@ declare const config: {
|
|
|
255
264
|
address_1_placeholder: string;
|
|
256
265
|
address_2_description: string;
|
|
257
266
|
and: string;
|
|
267
|
+
apply: string;
|
|
258
268
|
apply_filters: string;
|
|
259
269
|
autocomplete_placeholder: string;
|
|
260
270
|
cancel: string;
|
|
@@ -268,10 +278,12 @@ declare const config: {
|
|
|
268
278
|
country: string;
|
|
269
279
|
create_new: string;
|
|
270
280
|
day: string;
|
|
281
|
+
delete: string;
|
|
271
282
|
delete_record: string;
|
|
272
283
|
delete_record_description: string;
|
|
273
284
|
deselect_all: string;
|
|
274
285
|
drop_or_click_to_upload: string;
|
|
286
|
+
edit: string;
|
|
275
287
|
error: string;
|
|
276
288
|
file_must_be_of_type: string;
|
|
277
289
|
filters: string;
|
|
@@ -68,6 +68,7 @@ export interface ActionItem {
|
|
|
68
68
|
action?: () => Promise<void> | void;
|
|
69
69
|
icon?: string;
|
|
70
70
|
count?: number;
|
|
71
|
+
disabled?: boolean;
|
|
71
72
|
meta?: Record<string, any>;
|
|
72
73
|
actions?: ActionItem[];
|
|
73
74
|
}
|
|
@@ -173,3 +174,17 @@ export interface SelectConfiguration {
|
|
|
173
174
|
options: SelectConfigurationOption[];
|
|
174
175
|
onChange?: (option: SelectConfigurationOption | null) => void;
|
|
175
176
|
}
|
|
177
|
+
export interface DataIteratorSection {
|
|
178
|
+
name: string;
|
|
179
|
+
title: string;
|
|
180
|
+
closeText: string;
|
|
181
|
+
icon: string;
|
|
182
|
+
opened?: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface RowAction {
|
|
185
|
+
label: string;
|
|
186
|
+
icon: string;
|
|
187
|
+
action?: (row: CollectionItem) => Promise<void> | void;
|
|
188
|
+
to?: (row: CollectionItem) => RouteLocationRaw;
|
|
189
|
+
disabled?: (row: CollectionItem) => boolean;
|
|
190
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sprintify-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.180",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build-fast": "rimraf dist && vite build",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@headlessui/vue": "^1.7.4",
|
|
38
|
-
"color2k": "^2.0.1"
|
|
39
|
-
"storybook": "^6.5.15"
|
|
38
|
+
"color2k": "^2.0.1"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@babel/core": "^7.20.2",
|
|
43
42
|
"@iconify/vue": "^4.0.0",
|
|
44
|
-
"
|
|
45
|
-
"@storybook/addon-
|
|
46
|
-
"@storybook/addon-
|
|
47
|
-
"@storybook/addon-
|
|
48
|
-
"@storybook/
|
|
43
|
+
"storybook": "^6.5.16",
|
|
44
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
45
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
46
|
+
"@storybook/addon-interactions": "^6.5.16",
|
|
47
|
+
"@storybook/addon-links": "^6.5.16",
|
|
48
|
+
"@storybook/builder-vite": "^0.4.0",
|
|
49
49
|
"@storybook/testing-library": "^0.0.13",
|
|
50
|
-
"@storybook/vue3": "^6.5.
|
|
50
|
+
"@storybook/vue3": "^6.5.16",
|
|
51
51
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
52
52
|
"@tailwindcss/forms": "^0.5.3",
|
|
53
53
|
"@tailwindcss/line-clamp": "^0.4.2",
|
package/src/assets/main.css
CHANGED
|
@@ -4,3 +4,26 @@
|
|
|
4
4
|
[aria-label][role~='tooltip']::after {
|
|
5
5
|
white-space: pre-line;
|
|
6
6
|
}
|
|
7
|
+
|
|
8
|
+
.btn-group {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
margin: 0 -0.5rem;
|
|
13
|
+
|
|
14
|
+
& .btn:first-child {
|
|
15
|
+
border-bottom-right-radius: 0;
|
|
16
|
+
border-top-right-radius: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
& .btn:last-child {
|
|
20
|
+
border-bottom-left-radius: 0;
|
|
21
|
+
border-top-left-radius: 0;
|
|
22
|
+
border-left: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& .btn:not(:first-child):not(:last-child) {
|
|
26
|
+
border-radius: 0;
|
|
27
|
+
border-left: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|