sprintify-ui 0.0.33 → 0.0.35
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/README.md +2 -2
- package/dist/sprintify-ui.es.js +886 -814
- package/dist/types/src/components/BaseButtonGroup.vue.d.ts +16 -16
- package/dist/types/src/components/BaseDataIterator.vue.d.ts +1 -32
- package/dist/types/src/components/BaseDataTable.vue.d.ts +1 -32
- package/dist/types/src/components/BaseRadioGroup.vue.d.ts +226 -0
- package/dist/types/src/components/index.d.ts +2 -1
- package/dist/types/src/index.d.ts +0 -2
- package/package.json +1 -1
- package/src/components/BaseButtonGroup.stories.js +5 -8
- package/src/components/BaseButtonGroup.vue +17 -17
- package/src/components/BaseDataIterator.vue +0 -8
- package/src/components/BaseDataTable.vue +0 -9
- package/src/components/BaseRadioGroup.stories.js +88 -0
- package/src/components/BaseRadioGroup.vue +84 -0
- package/src/components/index.ts +2 -0
- package/src/index.ts +0 -3
|
@@ -10,8 +10,8 @@ declare const _default: {
|
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
buttonType: "button" | "submit";
|
|
12
12
|
buttonClass: string;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
buttonSelectedClass: string;
|
|
14
|
+
buttonUnselectedClass: string;
|
|
15
15
|
spacing: string;
|
|
16
16
|
multiple: boolean;
|
|
17
17
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -35,11 +35,11 @@ declare const _default: {
|
|
|
35
35
|
default: string;
|
|
36
36
|
type: StringConstructor;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
buttonSelectedClass: {
|
|
39
39
|
default: string;
|
|
40
40
|
type: StringConstructor;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
buttonUnselectedClass: {
|
|
43
43
|
default: string;
|
|
44
44
|
type: StringConstructor;
|
|
45
45
|
};
|
|
@@ -65,7 +65,7 @@ declare const _default: {
|
|
|
65
65
|
};
|
|
66
66
|
}>> & {
|
|
67
67
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
68
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "disabled" | "buttonType" | "buttonClass" | "
|
|
68
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "disabled" | "buttonType" | "buttonClass" | "buttonSelectedClass" | "buttonUnselectedClass" | "spacing" | "multiple">;
|
|
69
69
|
$attrs: {
|
|
70
70
|
[x: string]: unknown;
|
|
71
71
|
};
|
|
@@ -100,11 +100,11 @@ declare const _default: {
|
|
|
100
100
|
default: string;
|
|
101
101
|
type: StringConstructor;
|
|
102
102
|
};
|
|
103
|
-
|
|
103
|
+
buttonSelectedClass: {
|
|
104
104
|
default: string;
|
|
105
105
|
type: StringConstructor;
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
buttonUnselectedClass: {
|
|
108
108
|
default: string;
|
|
109
109
|
type: StringConstructor;
|
|
110
110
|
};
|
|
@@ -136,8 +136,8 @@ declare const _default: {
|
|
|
136
136
|
disabled: boolean;
|
|
137
137
|
buttonType: "button" | "submit";
|
|
138
138
|
buttonClass: string;
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
buttonSelectedClass: string;
|
|
140
|
+
buttonUnselectedClass: string;
|
|
141
141
|
spacing: string;
|
|
142
142
|
multiple: boolean;
|
|
143
143
|
}, {}, string> & {
|
|
@@ -181,11 +181,11 @@ declare const _default: {
|
|
|
181
181
|
default: string;
|
|
182
182
|
type: StringConstructor;
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
buttonSelectedClass: {
|
|
185
185
|
default: string;
|
|
186
186
|
type: StringConstructor;
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
buttonUnselectedClass: {
|
|
189
189
|
default: string;
|
|
190
190
|
type: StringConstructor;
|
|
191
191
|
};
|
|
@@ -236,11 +236,11 @@ declare const _default: {
|
|
|
236
236
|
default: string;
|
|
237
237
|
type: StringConstructor;
|
|
238
238
|
};
|
|
239
|
-
|
|
239
|
+
buttonSelectedClass: {
|
|
240
240
|
default: string;
|
|
241
241
|
type: StringConstructor;
|
|
242
242
|
};
|
|
243
|
-
|
|
243
|
+
buttonUnselectedClass: {
|
|
244
244
|
default: string;
|
|
245
245
|
type: StringConstructor;
|
|
246
246
|
};
|
|
@@ -272,16 +272,16 @@ declare const _default: {
|
|
|
272
272
|
disabled: boolean;
|
|
273
273
|
buttonType: "button" | "submit";
|
|
274
274
|
buttonClass: string;
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
buttonSelectedClass: string;
|
|
276
|
+
buttonUnselectedClass: string;
|
|
277
277
|
spacing: string;
|
|
278
278
|
multiple: boolean;
|
|
279
279
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
280
280
|
$slots: {
|
|
281
281
|
option: (_: {
|
|
282
282
|
selected: boolean;
|
|
283
|
-
onSelect: (option: NormalizedOption) => void;
|
|
284
283
|
option: NormalizedOption;
|
|
284
|
+
disabled: boolean;
|
|
285
285
|
}) => any;
|
|
286
286
|
};
|
|
287
287
|
});
|
|
@@ -7,7 +7,6 @@ declare const _default: {
|
|
|
7
7
|
$data: {};
|
|
8
8
|
$props: Partial<{
|
|
9
9
|
actions: MenuItemInterface[];
|
|
10
|
-
routeKeyName: string;
|
|
11
10
|
urlQuery: Record<string, any>;
|
|
12
11
|
defaultQuery: DataTableQuery;
|
|
13
12
|
searchable: boolean;
|
|
@@ -20,13 +19,6 @@ declare const _default: {
|
|
|
20
19
|
required: true;
|
|
21
20
|
type: StringConstructor;
|
|
22
21
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Route key name for Laravel route model binding
|
|
25
|
-
*/
|
|
26
|
-
routeKeyName: {
|
|
27
|
-
default: string;
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
};
|
|
30
22
|
/**
|
|
31
23
|
* Query params that always get applied.
|
|
32
24
|
* To add overwrite-able query params, use defaultQuery.
|
|
@@ -72,7 +64,7 @@ declare const _default: {
|
|
|
72
64
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
73
65
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
74
66
|
"onUpdate:query"?: ((...args: any[]) => any) | undefined;
|
|
75
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "actions" | "
|
|
67
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "actions" | "urlQuery" | "defaultQuery" | "searchable" | "historyMode">;
|
|
76
68
|
$attrs: {
|
|
77
69
|
[x: string]: unknown;
|
|
78
70
|
};
|
|
@@ -94,13 +86,6 @@ declare const _default: {
|
|
|
94
86
|
required: true;
|
|
95
87
|
type: StringConstructor;
|
|
96
88
|
};
|
|
97
|
-
/**
|
|
98
|
-
* Route key name for Laravel route model binding
|
|
99
|
-
*/
|
|
100
|
-
routeKeyName: {
|
|
101
|
-
default: string;
|
|
102
|
-
type: StringConstructor;
|
|
103
|
-
};
|
|
104
89
|
/**
|
|
105
90
|
* Query params that always get applied.
|
|
106
91
|
* To add overwrite-able query params, use defaultQuery.
|
|
@@ -152,7 +137,6 @@ declare const _default: {
|
|
|
152
137
|
query: Ref<DataTableQuery>;
|
|
153
138
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check" | "update:query")[], string, {
|
|
154
139
|
actions: MenuItemInterface[];
|
|
155
|
-
routeKeyName: string;
|
|
156
140
|
urlQuery: Record<string, any>;
|
|
157
141
|
defaultQuery: DataTableQuery;
|
|
158
142
|
searchable: boolean;
|
|
@@ -185,13 +169,6 @@ declare const _default: {
|
|
|
185
169
|
required: true;
|
|
186
170
|
type: StringConstructor;
|
|
187
171
|
};
|
|
188
|
-
/**
|
|
189
|
-
* Route key name for Laravel route model binding
|
|
190
|
-
*/
|
|
191
|
-
routeKeyName: {
|
|
192
|
-
default: string;
|
|
193
|
-
type: StringConstructor;
|
|
194
|
-
};
|
|
195
172
|
/**
|
|
196
173
|
* Query params that always get applied.
|
|
197
174
|
* To add overwrite-able query params, use defaultQuery.
|
|
@@ -253,13 +230,6 @@ declare const _default: {
|
|
|
253
230
|
required: true;
|
|
254
231
|
type: StringConstructor;
|
|
255
232
|
};
|
|
256
|
-
/**
|
|
257
|
-
* Route key name for Laravel route model binding
|
|
258
|
-
*/
|
|
259
|
-
routeKeyName: {
|
|
260
|
-
default: string;
|
|
261
|
-
type: StringConstructor;
|
|
262
|
-
};
|
|
263
233
|
/**
|
|
264
234
|
* Query params that always get applied.
|
|
265
235
|
* To add overwrite-able query params, use defaultQuery.
|
|
@@ -311,7 +281,6 @@ declare const _default: {
|
|
|
311
281
|
query: Ref<DataTableQuery>;
|
|
312
282
|
}, 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", {
|
|
313
283
|
actions: MenuItemInterface[];
|
|
314
|
-
routeKeyName: string;
|
|
315
284
|
urlQuery: Record<string, any>;
|
|
316
285
|
defaultQuery: DataTableQuery;
|
|
317
286
|
searchable: boolean;
|
|
@@ -6,7 +6,6 @@ declare const _default: {
|
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: Partial<{
|
|
8
8
|
actions: MenuItemInterface[];
|
|
9
|
-
routeKeyName: string;
|
|
10
9
|
urlQuery: Record<string, any>;
|
|
11
10
|
defaultQuery: DataTableQuery;
|
|
12
11
|
searchable: boolean;
|
|
@@ -31,13 +30,6 @@ declare const _default: {
|
|
|
31
30
|
required: true;
|
|
32
31
|
type: StringConstructor;
|
|
33
32
|
};
|
|
34
|
-
/**
|
|
35
|
-
* Route key name for Laravel route model binding
|
|
36
|
-
*/
|
|
37
|
-
routeKeyName: {
|
|
38
|
-
default: string;
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
};
|
|
41
33
|
/**
|
|
42
34
|
* Query params that always get applied
|
|
43
35
|
*/
|
|
@@ -161,7 +153,7 @@ declare const _default: {
|
|
|
161
153
|
onCheckAll?: ((...args: any[]) => any) | undefined;
|
|
162
154
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
163
155
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
164
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "actions" | "
|
|
156
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "actions" | "urlQuery" | "defaultQuery" | "searchable" | "historyMode" | "detailed" | "checkable" | "checkableActions" | "isRowCheckable" | "checkedRows" | "hasDetailedVisible" | "maxHeight" | "editButton" | "editUrl" | "deleteButton" | "deleteUrl" | "toggleable">;
|
|
165
157
|
$attrs: {
|
|
166
158
|
[x: string]: unknown;
|
|
167
159
|
};
|
|
@@ -183,13 +175,6 @@ declare const _default: {
|
|
|
183
175
|
required: true;
|
|
184
176
|
type: StringConstructor;
|
|
185
177
|
};
|
|
186
|
-
/**
|
|
187
|
-
* Route key name for Laravel route model binding
|
|
188
|
-
*/
|
|
189
|
-
routeKeyName: {
|
|
190
|
-
default: string;
|
|
191
|
-
type: StringConstructor;
|
|
192
|
-
};
|
|
193
178
|
/**
|
|
194
179
|
* Query params that always get applied
|
|
195
180
|
*/
|
|
@@ -318,7 +303,6 @@ declare const _default: {
|
|
|
318
303
|
query: import("vue").ComputedRef<DataTableQuery | null>;
|
|
319
304
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check")[], string, {
|
|
320
305
|
actions: MenuItemInterface[];
|
|
321
|
-
routeKeyName: string;
|
|
322
306
|
urlQuery: Record<string, any>;
|
|
323
307
|
defaultQuery: DataTableQuery;
|
|
324
308
|
searchable: boolean;
|
|
@@ -363,13 +347,6 @@ declare const _default: {
|
|
|
363
347
|
required: true;
|
|
364
348
|
type: StringConstructor;
|
|
365
349
|
};
|
|
366
|
-
/**
|
|
367
|
-
* Route key name for Laravel route model binding
|
|
368
|
-
*/
|
|
369
|
-
routeKeyName: {
|
|
370
|
-
default: string;
|
|
371
|
-
type: StringConstructor;
|
|
372
|
-
};
|
|
373
350
|
/**
|
|
374
351
|
* Query params that always get applied
|
|
375
352
|
*/
|
|
@@ -508,13 +485,6 @@ declare const _default: {
|
|
|
508
485
|
required: true;
|
|
509
486
|
type: StringConstructor;
|
|
510
487
|
};
|
|
511
|
-
/**
|
|
512
|
-
* Route key name for Laravel route model binding
|
|
513
|
-
*/
|
|
514
|
-
routeKeyName: {
|
|
515
|
-
default: string;
|
|
516
|
-
type: StringConstructor;
|
|
517
|
-
};
|
|
518
488
|
/**
|
|
519
489
|
* Query params that always get applied
|
|
520
490
|
*/
|
|
@@ -643,7 +613,6 @@ declare const _default: {
|
|
|
643
613
|
query: import("vue").ComputedRef<DataTableQuery | null>;
|
|
644
614
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "delete" | "checkAll" | "update:checked-rows" | "check")[], "click" | "delete" | "checkAll" | "update:checked-rows" | "check", {
|
|
645
615
|
actions: MenuItemInterface[];
|
|
646
|
-
routeKeyName: string;
|
|
647
616
|
urlQuery: Record<string, any>;
|
|
648
617
|
defaultQuery: DataTableQuery;
|
|
649
618
|
searchable: boolean;
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Option } from '@/types/types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
new (...args: any[]): {
|
|
5
|
+
$: import("vue").ComponentInternalInstance;
|
|
6
|
+
$data: {};
|
|
7
|
+
$props: Partial<{
|
|
8
|
+
required: boolean;
|
|
9
|
+
modelValue: Option | undefined;
|
|
10
|
+
inputClass: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
labelClass: string;
|
|
13
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
default: undefined;
|
|
16
|
+
type: PropType<Option | undefined>;
|
|
17
|
+
};
|
|
18
|
+
name: {
|
|
19
|
+
required: true;
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
required: {
|
|
23
|
+
default: boolean;
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
default: boolean;
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
options: {
|
|
31
|
+
required: true;
|
|
32
|
+
type: PropType<Option[]>;
|
|
33
|
+
};
|
|
34
|
+
labelKey: {
|
|
35
|
+
required: true;
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
valueKey: {
|
|
39
|
+
required: true;
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
};
|
|
42
|
+
labelClass: {
|
|
43
|
+
default: string;
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
inputClass: {
|
|
47
|
+
default: string;
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
};
|
|
50
|
+
}>> & {
|
|
51
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "inputClass" | "disabled" | "labelClass">;
|
|
53
|
+
$attrs: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
$refs: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
$slots: Readonly<{
|
|
60
|
+
[name: string]: import("vue").Slot | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
63
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
64
|
+
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
65
|
+
$el: any;
|
|
66
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
+
modelValue: {
|
|
68
|
+
default: undefined;
|
|
69
|
+
type: PropType<Option | undefined>;
|
|
70
|
+
};
|
|
71
|
+
name: {
|
|
72
|
+
required: true;
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
};
|
|
75
|
+
required: {
|
|
76
|
+
default: boolean;
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
};
|
|
79
|
+
disabled: {
|
|
80
|
+
default: boolean;
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
};
|
|
83
|
+
options: {
|
|
84
|
+
required: true;
|
|
85
|
+
type: PropType<Option[]>;
|
|
86
|
+
};
|
|
87
|
+
labelKey: {
|
|
88
|
+
required: true;
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
};
|
|
91
|
+
valueKey: {
|
|
92
|
+
required: true;
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
};
|
|
95
|
+
labelClass: {
|
|
96
|
+
default: string;
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
};
|
|
99
|
+
inputClass: {
|
|
100
|
+
default: string;
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
};
|
|
103
|
+
}>> & {
|
|
104
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], string, {
|
|
106
|
+
required: boolean;
|
|
107
|
+
modelValue: Option | undefined;
|
|
108
|
+
inputClass: string;
|
|
109
|
+
disabled: boolean;
|
|
110
|
+
labelClass: string;
|
|
111
|
+
}, {}, string> & {
|
|
112
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
113
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
114
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
115
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
116
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
117
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
118
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
119
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
120
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
121
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
122
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
123
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
124
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
125
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
126
|
+
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;
|
|
127
|
+
};
|
|
128
|
+
$forceUpdate: () => void;
|
|
129
|
+
$nextTick: typeof import("vue").nextTick;
|
|
130
|
+
$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;
|
|
131
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
132
|
+
modelValue: {
|
|
133
|
+
default: undefined;
|
|
134
|
+
type: PropType<Option | undefined>;
|
|
135
|
+
};
|
|
136
|
+
name: {
|
|
137
|
+
required: true;
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
};
|
|
140
|
+
required: {
|
|
141
|
+
default: boolean;
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
};
|
|
144
|
+
disabled: {
|
|
145
|
+
default: boolean;
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
};
|
|
148
|
+
options: {
|
|
149
|
+
required: true;
|
|
150
|
+
type: PropType<Option[]>;
|
|
151
|
+
};
|
|
152
|
+
labelKey: {
|
|
153
|
+
required: true;
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
};
|
|
156
|
+
valueKey: {
|
|
157
|
+
required: true;
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
};
|
|
160
|
+
labelClass: {
|
|
161
|
+
default: string;
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
};
|
|
164
|
+
inputClass: {
|
|
165
|
+
default: string;
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
};
|
|
168
|
+
}>> & {
|
|
169
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
170
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
171
|
+
__isFragment?: undefined;
|
|
172
|
+
__isTeleport?: undefined;
|
|
173
|
+
__isSuspense?: undefined;
|
|
174
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
175
|
+
modelValue: {
|
|
176
|
+
default: undefined;
|
|
177
|
+
type: PropType<Option | undefined>;
|
|
178
|
+
};
|
|
179
|
+
name: {
|
|
180
|
+
required: true;
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
};
|
|
183
|
+
required: {
|
|
184
|
+
default: boolean;
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
};
|
|
187
|
+
disabled: {
|
|
188
|
+
default: boolean;
|
|
189
|
+
type: BooleanConstructor;
|
|
190
|
+
};
|
|
191
|
+
options: {
|
|
192
|
+
required: true;
|
|
193
|
+
type: PropType<Option[]>;
|
|
194
|
+
};
|
|
195
|
+
labelKey: {
|
|
196
|
+
required: true;
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
};
|
|
199
|
+
valueKey: {
|
|
200
|
+
required: true;
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
};
|
|
203
|
+
labelClass: {
|
|
204
|
+
default: string;
|
|
205
|
+
type: StringConstructor;
|
|
206
|
+
};
|
|
207
|
+
inputClass: {
|
|
208
|
+
default: string;
|
|
209
|
+
type: StringConstructor;
|
|
210
|
+
};
|
|
211
|
+
}>> & {
|
|
212
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
213
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", {
|
|
214
|
+
required: boolean;
|
|
215
|
+
modelValue: Option | undefined;
|
|
216
|
+
inputClass: string;
|
|
217
|
+
disabled: boolean;
|
|
218
|
+
labelClass: string;
|
|
219
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
220
|
+
$slots: {
|
|
221
|
+
option: (_: {
|
|
222
|
+
option: import("@/types/types").NormalizedOption;
|
|
223
|
+
}) => any;
|
|
224
|
+
};
|
|
225
|
+
});
|
|
226
|
+
export default _default;
|
|
@@ -46,6 +46,7 @@ import BasePagination from './BasePagination.vue';
|
|
|
46
46
|
import BasePanel from './BasePanel.vue';
|
|
47
47
|
import BasePassword from './BasePassword.vue';
|
|
48
48
|
import BaseProgressCircle from './BaseProgressCircle.vue';
|
|
49
|
+
import BaseRadioGroup from './BaseRadioGroup.vue';
|
|
49
50
|
import BaseReadMore from './BaseReadMore.vue';
|
|
50
51
|
import BaseSelect from './BaseSelect.vue';
|
|
51
52
|
import BaseSideNavigation from './BaseSideNavigation.vue';
|
|
@@ -65,4 +66,4 @@ import BaseLayoutStacked from './BaseLayoutStacked.vue';
|
|
|
65
66
|
import BaseLayoutStackedConfigurable from './BaseLayoutStackedConfigurable.vue';
|
|
66
67
|
import BaseLayoutSidebar from './BaseLayoutSidebar.vue';
|
|
67
68
|
import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
|
|
68
|
-
export { BaseActionItem, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseContainer, BaseCounter, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseFilePicker, BaseFileUploader, BaseHasMany, BaseIcon, BaseInput, BaseInputLabel, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseReadMore, BaseSelect, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
|
|
69
|
+
export { BaseActionItem, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, BaseButtonGroup, BaseCard, BaseCardRow, BaseCharacterCounter, BaseClipboard, BaseContainer, BaseCounter, BaseDataIterator, BaseDataTable, BaseDatePicker, BaseDateSelect, BaseDescriptionList, BaseDescriptionListItem, BaseDialog, BaseFilePicker, BaseFileUploader, BaseHasMany, BaseIcon, BaseInput, BaseInputLabel, BaseLoadingCover, BaseMediaItem, BaseMediaLibrary, BaseMediaPreview, BaseMenu, BaseMenuItem, BaseModalCenter, BaseModalSide, BaseNavbar, BaseNavbarItem, BaseNavbarItemContent, BasePagination, BasePanel, BasePassword, BaseProgressCircle, BaseRadioGroup, BaseReadMore, BaseSelect, BaseSideNavigation, BaseSideNavigationItem, BaseSkeleton, BaseSwitch, BaseSystemAlert, BaseTabs, BaseTabItem, BaseTagAutocomplete, BaseTagAutocompleteFetch, BaseTable, BaseTableColumn, BaseTextarea, BaseTextareaAutoresize, BaseLayoutStacked, BaseLayoutStackedConfigurable, BaseLayoutSidebar, BaseLayoutSidebarConfigurable, };
|
|
@@ -4,7 +4,6 @@ import { I18n } from 'vue-i18n';
|
|
|
4
4
|
import { useDialogsStore } from './stores/dialogs';
|
|
5
5
|
import { useNotificationsStore } from './stores/notifications';
|
|
6
6
|
import { useSystemAlertStore } from './stores/systemAlerts';
|
|
7
|
-
import { ActionItem } from './types/types';
|
|
8
7
|
declare const messages: {
|
|
9
8
|
en: {
|
|
10
9
|
sui: {
|
|
@@ -292,4 +291,3 @@ export { config };
|
|
|
292
291
|
export { useDialogsStore };
|
|
293
292
|
export { useNotificationsStore };
|
|
294
293
|
export { useSystemAlertStore };
|
|
295
|
-
export { type ActionItem };
|
package/package.json
CHANGED
|
@@ -70,17 +70,14 @@ export const SlotOption = (args) => ({
|
|
|
70
70
|
v-bind="args"
|
|
71
71
|
v-model="value"
|
|
72
72
|
:options="options"
|
|
73
|
+
button-class="btn btn-xs"
|
|
74
|
+
button-selected-class="btn-black"
|
|
73
75
|
>
|
|
74
|
-
<template #option="{ option
|
|
75
|
-
<
|
|
76
|
-
class="btn btn-xs flex items-center space-x-1 font-semibold"
|
|
77
|
-
:class="[selected ? 'btn-black' : '']"
|
|
78
|
-
type="button"
|
|
79
|
-
@click="onSelect(option)"
|
|
80
|
-
>
|
|
76
|
+
<template #option="{ option }">
|
|
77
|
+
<div class="flex items-center space-x-1 font-semibold">
|
|
81
78
|
<div class="w-3 h-3 rounded" :style="{ backgroundColor: option.value }"></div>
|
|
82
79
|
<div>{{ option.label }}</div>
|
|
83
|
-
</
|
|
80
|
+
</div>
|
|
84
81
|
</template>
|
|
85
82
|
</BaseButtonGroup>
|
|
86
83
|
`,
|
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
:key="option.value"
|
|
6
6
|
:style="{ padding: spacing }"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
:
|
|
11
|
-
:
|
|
12
|
-
|
|
8
|
+
<button
|
|
9
|
+
:type="buttonType"
|
|
10
|
+
:disabled="disabled"
|
|
11
|
+
:class="[
|
|
12
|
+
buttonClass,
|
|
13
|
+
isSelected(option) ? buttonSelectedClass : buttonUnselectedClass,
|
|
14
|
+
]"
|
|
15
|
+
@click="onSelect(option)"
|
|
13
16
|
>
|
|
14
|
-
<
|
|
15
|
-
|
|
17
|
+
<slot
|
|
18
|
+
name="option"
|
|
19
|
+
:selected="isSelected(option)"
|
|
20
|
+
:option="option"
|
|
16
21
|
:disabled="disabled"
|
|
17
|
-
:class="[
|
|
18
|
-
buttonClass,
|
|
19
|
-
isSelected(option) ? buttonActiveClass : buttonInactiveClass,
|
|
20
|
-
]"
|
|
21
|
-
@click="onSelect(option)"
|
|
22
22
|
>
|
|
23
23
|
{{ option.label }}
|
|
24
|
-
</
|
|
25
|
-
</
|
|
24
|
+
</slot>
|
|
25
|
+
</button>
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
</template>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<script lang="ts" setup>
|
|
31
31
|
import { PropType } from 'vue';
|
|
32
32
|
import { NormalizedOption, Option } from '@/types/types';
|
|
33
|
-
import { cloneDeep, isArray
|
|
33
|
+
import { cloneDeep, isArray } from 'lodash';
|
|
34
34
|
import { useHasOptions } from '@/composables/hasOptions';
|
|
35
35
|
|
|
36
36
|
const props = defineProps({
|
|
@@ -56,11 +56,11 @@ const props = defineProps({
|
|
|
56
56
|
default: 'btn btn-sm',
|
|
57
57
|
type: String,
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
buttonSelectedClass: {
|
|
60
60
|
default: 'btn-primary',
|
|
61
61
|
type: String,
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
buttonUnselectedClass: {
|
|
64
64
|
default: '',
|
|
65
65
|
type: String,
|
|
66
66
|
},
|
|
@@ -224,14 +224,6 @@ const props = defineProps({
|
|
|
224
224
|
type: String,
|
|
225
225
|
},
|
|
226
226
|
|
|
227
|
-
/**
|
|
228
|
-
* Route key name for Laravel route model binding
|
|
229
|
-
*/
|
|
230
|
-
routeKeyName: {
|
|
231
|
-
default: 'id',
|
|
232
|
-
type: String,
|
|
233
|
-
},
|
|
234
|
-
|
|
235
227
|
/**
|
|
236
228
|
* Query params that always get applied.
|
|
237
229
|
* To add overwrite-able query params, use defaultQuery.
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<BaseDataIterator
|
|
3
3
|
ref="dataIterator"
|
|
4
4
|
:url="url"
|
|
5
|
-
:route-key-name="routeKeyName"
|
|
6
5
|
:url-query="urlQuery"
|
|
7
6
|
:default-query="defaultQuery"
|
|
8
7
|
:searchable="searchable"
|
|
@@ -194,14 +193,6 @@ const props = defineProps({
|
|
|
194
193
|
type: String,
|
|
195
194
|
},
|
|
196
195
|
|
|
197
|
-
/**
|
|
198
|
-
* Route key name for Laravel route model binding
|
|
199
|
-
*/
|
|
200
|
-
routeKeyName: {
|
|
201
|
-
default: 'id',
|
|
202
|
-
type: String,
|
|
203
|
-
},
|
|
204
|
-
|
|
205
196
|
/**
|
|
206
197
|
* Query params that always get applied
|
|
207
198
|
*/
|