sprintify-ui 0.0.31 → 0.0.33

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.
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { NormalizedOption, Option, Selection } from '@/types/types';
2
+ import { NormalizedOption, Option } from '@/types/types';
3
3
  declare const _default: {
4
4
  new (...args: any[]): {
5
5
  $: import("vue").ComponentInternalInstance;
@@ -7,7 +7,7 @@ declare const _default: {
7
7
  $props: Partial<{
8
8
  filter: (option: NormalizedOption) => boolean;
9
9
  required: boolean;
10
- modelValue: Selection;
10
+ modelValue: Option | null | undefined;
11
11
  inputClass: string;
12
12
  placeholder: string;
13
13
  loading: boolean;
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
16
16
  modelValue: {
17
17
  default: undefined;
18
- type: PropType<Selection>;
18
+ type: PropType<Option | null | undefined>;
19
19
  };
20
20
  options: {
21
21
  required: true;
@@ -76,7 +76,7 @@ declare const _default: {
76
76
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
77
77
  modelValue: {
78
78
  default: undefined;
79
- type: PropType<Selection>;
79
+ type: PropType<Option | null | undefined>;
80
80
  };
81
81
  options: {
82
82
  required: true;
@@ -123,7 +123,7 @@ declare const _default: {
123
123
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:modelValue" | "typing" | "focus" | "scrollBottom")[], string, {
124
124
  filter: (option: NormalizedOption) => boolean;
125
125
  required: boolean;
126
- modelValue: Selection;
126
+ modelValue: Option | null | undefined;
127
127
  inputClass: string;
128
128
  placeholder: string;
129
129
  loading: boolean;
@@ -151,7 +151,7 @@ declare const _default: {
151
151
  } & Readonly<import("vue").ExtractPropTypes<{
152
152
  modelValue: {
153
153
  default: undefined;
154
- type: PropType<Selection>;
154
+ type: PropType<Option | null | undefined>;
155
155
  };
156
156
  options: {
157
157
  required: true;
@@ -202,7 +202,7 @@ declare const _default: {
202
202
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
203
203
  modelValue: {
204
204
  default: undefined;
205
- type: PropType<Selection>;
205
+ type: PropType<Option | null | undefined>;
206
206
  };
207
207
  options: {
208
208
  required: true;
@@ -249,7 +249,7 @@ declare const _default: {
249
249
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:modelValue" | "typing" | "focus" | "scrollBottom")[], "clear" | "update:modelValue" | "typing" | "focus" | "scrollBottom", {
250
250
  filter: (option: NormalizedOption) => boolean;
251
251
  required: boolean;
252
- modelValue: Selection;
252
+ modelValue: Option | null | undefined;
253
253
  inputClass: string;
254
254
  placeholder: string;
255
255
  loading: boolean;
@@ -259,7 +259,7 @@ declare const _default: {
259
259
  empty: (_: {}) => any;
260
260
  option: (_: {
261
261
  option: Option;
262
- selected: boolean | null;
262
+ selected: boolean;
263
263
  active: boolean;
264
264
  }) => any;
265
265
  footer: (_: {
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { Option, Selection } from '@/types/types';
2
+ import { Option } from '@/types/types';
3
3
  import { RouteLocationRaw } from 'vue-router';
4
4
  declare const _default: {
5
5
  new (...args: any[]): {
@@ -7,7 +7,7 @@ declare const _default: {
7
7
  $data: {};
8
8
  $props: Partial<{
9
9
  required: boolean;
10
- modelValue: Selection;
10
+ modelValue: Option | null | undefined;
11
11
  inputClass: string;
12
12
  placeholder: string;
13
13
  disabled: boolean;
@@ -16,7 +16,7 @@ declare const _default: {
16
16
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
17
17
  modelValue: {
18
18
  default: undefined;
19
- type: PropType<Selection>;
19
+ type: PropType<Option | null | undefined>;
20
20
  };
21
21
  url: {
22
22
  required: true;
@@ -77,7 +77,7 @@ declare const _default: {
77
77
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
78
78
  modelValue: {
79
79
  default: undefined;
80
- type: PropType<Selection>;
80
+ type: PropType<Option | null | undefined>;
81
81
  };
82
82
  url: {
83
83
  required: true;
@@ -123,7 +123,7 @@ declare const _default: {
123
123
  onScrollBottom?: ((...args: any[]) => any) | undefined;
124
124
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:modelValue" | "typing" | "focus" | "scrollBottom")[], string, {
125
125
  required: boolean;
126
- modelValue: Selection;
126
+ modelValue: Option | null | undefined;
127
127
  inputClass: string;
128
128
  placeholder: string;
129
129
  disabled: boolean;
@@ -152,7 +152,7 @@ declare const _default: {
152
152
  } & Readonly<import("vue").ExtractPropTypes<{
153
153
  modelValue: {
154
154
  default: undefined;
155
- type: PropType<Selection>;
155
+ type: PropType<Option | null | undefined>;
156
156
  };
157
157
  url: {
158
158
  required: true;
@@ -203,7 +203,7 @@ declare const _default: {
203
203
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
204
204
  modelValue: {
205
205
  default: undefined;
206
- type: PropType<Selection>;
206
+ type: PropType<Option | null | undefined>;
207
207
  };
208
208
  url: {
209
209
  required: true;
@@ -249,7 +249,7 @@ declare const _default: {
249
249
  onScrollBottom?: ((...args: any[]) => any) | undefined;
250
250
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:modelValue" | "typing" | "focus" | "scrollBottom")[], "clear" | "update:modelValue" | "typing" | "focus" | "scrollBottom", {
251
251
  required: boolean;
252
- modelValue: Selection;
252
+ modelValue: Option | null | undefined;
253
253
  inputClass: string;
254
254
  placeholder: string;
255
255
  disabled: boolean;
@@ -259,7 +259,7 @@ declare const _default: {
259
259
  $slots: {
260
260
  option: (_: {
261
261
  option: Option;
262
- selected: boolean | null;
262
+ selected: boolean;
263
263
  active: boolean;
264
264
  }) => any;
265
265
  footer: (_: {
@@ -1,6 +1,6 @@
1
- import { Selection } from '@/types/types';
2
1
  import { PropType } from 'vue';
3
2
  import { RouteLocationRaw } from 'vue-router';
3
+ import { Option } from '@/types/types';
4
4
  declare const _default: {
5
5
  new (...args: any[]): {
6
6
  $: import("vue").ComponentInternalInstance;
@@ -14,7 +14,7 @@ declare const _default: {
14
14
  createNewUrl: RouteLocationRaw;
15
15
  showRouteUrl: ((id: string | number) => string) | undefined;
16
16
  foreignKey: string;
17
- currentModel: Selection;
17
+ currentModel: Option | null;
18
18
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
19
19
  modelValue: {
20
20
  default: undefined;
@@ -54,7 +54,7 @@ declare const _default: {
54
54
  };
55
55
  currentModel: {
56
56
  default: null;
57
- type: PropType<Selection>;
57
+ type: PropType<Option | null>;
58
58
  };
59
59
  createNewUrl: {
60
60
  default: string;
@@ -115,7 +115,7 @@ declare const _default: {
115
115
  };
116
116
  currentModel: {
117
117
  default: null;
118
- type: PropType<Selection>;
118
+ type: PropType<Option | null>;
119
119
  };
120
120
  createNewUrl: {
121
121
  default: string;
@@ -132,7 +132,7 @@ declare const _default: {
132
132
  createNewUrl: RouteLocationRaw;
133
133
  showRouteUrl: ((id: string | number) => string) | undefined;
134
134
  foreignKey: string;
135
- currentModel: Selection;
135
+ currentModel: Option | null;
136
136
  }, {}, string> & {
137
137
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
138
138
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -192,7 +192,7 @@ declare const _default: {
192
192
  };
193
193
  currentModel: {
194
194
  default: null;
195
- type: PropType<Selection>;
195
+ type: PropType<Option | null>;
196
196
  };
197
197
  createNewUrl: {
198
198
  default: string;
@@ -243,7 +243,7 @@ declare const _default: {
243
243
  };
244
244
  currentModel: {
245
245
  default: null;
246
- type: PropType<Selection>;
246
+ type: PropType<Option | null>;
247
247
  };
248
248
  createNewUrl: {
249
249
  default: string;
@@ -260,12 +260,12 @@ declare const _default: {
260
260
  createNewUrl: RouteLocationRaw;
261
261
  showRouteUrl: ((id: string | number) => string) | undefined;
262
262
  foreignKey: string;
263
- currentModel: Selection;
263
+ currentModel: Option | null;
264
264
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
265
265
  $slots: {
266
266
  option: (_: {
267
- option: import("@/types/types").Option;
268
- selected: boolean | null;
267
+ option: Option;
268
+ selected: boolean;
269
269
  active: boolean;
270
270
  }) => any;
271
271
  empty: (_: {
@@ -0,0 +1,288 @@
1
+ import { PropType } from 'vue';
2
+ import { NormalizedOption, 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 | Option[] | undefined;
10
+ disabled: boolean;
11
+ buttonType: "button" | "submit";
12
+ buttonClass: string;
13
+ buttonActiveClass: string;
14
+ buttonInactiveClass: string;
15
+ spacing: string;
16
+ multiple: boolean;
17
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<{
18
+ modelValue: {
19
+ default: undefined;
20
+ type: PropType<Option | Option[] | undefined>;
21
+ };
22
+ required: {
23
+ default: boolean;
24
+ type: BooleanConstructor;
25
+ };
26
+ disabled: {
27
+ default: boolean;
28
+ type: BooleanConstructor;
29
+ };
30
+ buttonType: {
31
+ default: string;
32
+ type: PropType<"button" | "submit">;
33
+ };
34
+ buttonClass: {
35
+ default: string;
36
+ type: StringConstructor;
37
+ };
38
+ buttonActiveClass: {
39
+ default: string;
40
+ type: StringConstructor;
41
+ };
42
+ buttonInactiveClass: {
43
+ default: string;
44
+ type: StringConstructor;
45
+ };
46
+ spacing: {
47
+ default: string;
48
+ type: StringConstructor;
49
+ };
50
+ options: {
51
+ required: true;
52
+ type: PropType<Option[]>;
53
+ };
54
+ labelKey: {
55
+ required: true;
56
+ type: StringConstructor;
57
+ };
58
+ valueKey: {
59
+ required: true;
60
+ type: StringConstructor;
61
+ };
62
+ multiple: {
63
+ default: boolean;
64
+ type: BooleanConstructor;
65
+ };
66
+ }>> & {
67
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
68
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "required" | "modelValue" | "disabled" | "buttonType" | "buttonClass" | "buttonActiveClass" | "buttonInactiveClass" | "spacing" | "multiple">;
69
+ $attrs: {
70
+ [x: string]: unknown;
71
+ };
72
+ $refs: {
73
+ [x: string]: unknown;
74
+ };
75
+ $slots: Readonly<{
76
+ [name: string]: import("vue").Slot | undefined;
77
+ }>;
78
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
79
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
80
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
81
+ $el: any;
82
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
83
+ modelValue: {
84
+ default: undefined;
85
+ type: PropType<Option | Option[] | undefined>;
86
+ };
87
+ required: {
88
+ default: boolean;
89
+ type: BooleanConstructor;
90
+ };
91
+ disabled: {
92
+ default: boolean;
93
+ type: BooleanConstructor;
94
+ };
95
+ buttonType: {
96
+ default: string;
97
+ type: PropType<"button" | "submit">;
98
+ };
99
+ buttonClass: {
100
+ default: string;
101
+ type: StringConstructor;
102
+ };
103
+ buttonActiveClass: {
104
+ default: string;
105
+ type: StringConstructor;
106
+ };
107
+ buttonInactiveClass: {
108
+ default: string;
109
+ type: StringConstructor;
110
+ };
111
+ spacing: {
112
+ default: string;
113
+ type: StringConstructor;
114
+ };
115
+ options: {
116
+ required: true;
117
+ type: PropType<Option[]>;
118
+ };
119
+ labelKey: {
120
+ required: true;
121
+ type: StringConstructor;
122
+ };
123
+ valueKey: {
124
+ required: true;
125
+ type: StringConstructor;
126
+ };
127
+ multiple: {
128
+ default: boolean;
129
+ type: BooleanConstructor;
130
+ };
131
+ }>> & {
132
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
133
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], string, {
134
+ required: boolean;
135
+ modelValue: Option | Option[] | undefined;
136
+ disabled: boolean;
137
+ buttonType: "button" | "submit";
138
+ buttonClass: string;
139
+ buttonActiveClass: string;
140
+ buttonInactiveClass: string;
141
+ spacing: string;
142
+ multiple: boolean;
143
+ }, {}, string> & {
144
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
145
+ created?: ((() => void) | (() => void)[]) | undefined;
146
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
147
+ mounted?: ((() => void) | (() => void)[]) | undefined;
148
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
149
+ updated?: ((() => void) | (() => void)[]) | undefined;
150
+ activated?: ((() => void) | (() => void)[]) | undefined;
151
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
152
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
153
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
154
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
155
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
156
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
157
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
158
+ 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;
159
+ };
160
+ $forceUpdate: () => void;
161
+ $nextTick: typeof import("vue").nextTick;
162
+ $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;
163
+ } & Readonly<import("vue").ExtractPropTypes<{
164
+ modelValue: {
165
+ default: undefined;
166
+ type: PropType<Option | Option[] | undefined>;
167
+ };
168
+ required: {
169
+ default: boolean;
170
+ type: BooleanConstructor;
171
+ };
172
+ disabled: {
173
+ default: boolean;
174
+ type: BooleanConstructor;
175
+ };
176
+ buttonType: {
177
+ default: string;
178
+ type: PropType<"button" | "submit">;
179
+ };
180
+ buttonClass: {
181
+ default: string;
182
+ type: StringConstructor;
183
+ };
184
+ buttonActiveClass: {
185
+ default: string;
186
+ type: StringConstructor;
187
+ };
188
+ buttonInactiveClass: {
189
+ default: string;
190
+ type: StringConstructor;
191
+ };
192
+ spacing: {
193
+ default: string;
194
+ type: StringConstructor;
195
+ };
196
+ options: {
197
+ required: true;
198
+ type: PropType<Option[]>;
199
+ };
200
+ labelKey: {
201
+ required: true;
202
+ type: StringConstructor;
203
+ };
204
+ valueKey: {
205
+ required: true;
206
+ type: StringConstructor;
207
+ };
208
+ multiple: {
209
+ default: boolean;
210
+ type: BooleanConstructor;
211
+ };
212
+ }>> & {
213
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
214
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
215
+ __isFragment?: undefined;
216
+ __isTeleport?: undefined;
217
+ __isSuspense?: undefined;
218
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
219
+ modelValue: {
220
+ default: undefined;
221
+ type: PropType<Option | Option[] | undefined>;
222
+ };
223
+ required: {
224
+ default: boolean;
225
+ type: BooleanConstructor;
226
+ };
227
+ disabled: {
228
+ default: boolean;
229
+ type: BooleanConstructor;
230
+ };
231
+ buttonType: {
232
+ default: string;
233
+ type: PropType<"button" | "submit">;
234
+ };
235
+ buttonClass: {
236
+ default: string;
237
+ type: StringConstructor;
238
+ };
239
+ buttonActiveClass: {
240
+ default: string;
241
+ type: StringConstructor;
242
+ };
243
+ buttonInactiveClass: {
244
+ default: string;
245
+ type: StringConstructor;
246
+ };
247
+ spacing: {
248
+ default: string;
249
+ type: StringConstructor;
250
+ };
251
+ options: {
252
+ required: true;
253
+ type: PropType<Option[]>;
254
+ };
255
+ labelKey: {
256
+ required: true;
257
+ type: StringConstructor;
258
+ };
259
+ valueKey: {
260
+ required: true;
261
+ type: StringConstructor;
262
+ };
263
+ multiple: {
264
+ default: boolean;
265
+ type: BooleanConstructor;
266
+ };
267
+ }>> & {
268
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
269
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", {
270
+ required: boolean;
271
+ modelValue: Option | Option[] | undefined;
272
+ disabled: boolean;
273
+ buttonType: "button" | "submit";
274
+ buttonClass: string;
275
+ buttonActiveClass: string;
276
+ buttonInactiveClass: string;
277
+ spacing: string;
278
+ multiple: boolean;
279
+ }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
280
+ $slots: {
281
+ option: (_: {
282
+ selected: boolean;
283
+ onSelect: (option: NormalizedOption) => void;
284
+ option: NormalizedOption;
285
+ }) => any;
286
+ };
287
+ });
288
+ export default _default;
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
38
38
  onSelect?: ((...args: any[]) => any) | undefined;
39
39
  }, {
40
40
  disabled: boolean;
41
- accept: string;
42
41
  buttonClass: string;
42
+ accept: string;
43
43
  }>;
44
44
  export default _default;
@@ -7,8 +7,8 @@ declare const _default: {
7
7
  loading: boolean;
8
8
  disabled: boolean;
9
9
  url: string;
10
- accept: string;
11
10
  buttonClass: string;
11
+ accept: string;
12
12
  beforeUpload: () => boolean;
13
13
  maxSize: number;
14
14
  acceptedExtensions: string[];
@@ -50,7 +50,7 @@ declare const _default: {
50
50
  "onUpload:success"?: ((...args: any[]) => any) | undefined;
51
51
  "onUpload:fail"?: ((...args: any[]) => any) | undefined;
52
52
  "onUpload:end"?: ((...args: any[]) => any) | undefined;
53
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "url" | "accept" | "buttonClass" | "beforeUpload" | "maxSize" | "acceptedExtensions">;
53
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "loading" | "disabled" | "url" | "buttonClass" | "accept" | "beforeUpload" | "maxSize" | "acceptedExtensions">;
54
54
  $attrs: {
55
55
  [x: string]: unknown;
56
56
  };
@@ -106,8 +106,8 @@ declare const _default: {
106
106
  loading: boolean;
107
107
  disabled: boolean;
108
108
  url: string;
109
- accept: string;
110
109
  buttonClass: string;
110
+ accept: string;
111
111
  beforeUpload: () => boolean;
112
112
  maxSize: number;
113
113
  acceptedExtensions: string[];
@@ -215,8 +215,8 @@ declare const _default: {
215
215
  loading: boolean;
216
216
  disabled: boolean;
217
217
  url: string;
218
- accept: string;
219
218
  buttonClass: string;
219
+ accept: string;
220
220
  beforeUpload: () => boolean;
221
221
  maxSize: number;
222
222
  acceptedExtensions: string[];
@@ -261,7 +261,6 @@ declare const _default: {
261
261
  $slots: {
262
262
  option: (_: {
263
263
  option: Option;
264
- selected: boolean;
265
264
  active: boolean;
266
265
  }) => any;
267
266
  empty: (_: {
@@ -271,7 +271,6 @@ declare const _default: {
271
271
  empty: (_: {}) => any;
272
272
  option: (_: {
273
273
  option: Option;
274
- selected: boolean;
275
274
  active: boolean;
276
275
  }) => any;
277
276
  footer: (_: {
@@ -251,7 +251,6 @@ declare const _default: {
251
251
  $slots: {
252
252
  option: (_: {
253
253
  option: Option;
254
- selected: boolean;
255
254
  active: boolean;
256
255
  }) => any;
257
256
  footer: (_: {
@@ -11,6 +11,7 @@ import BaseBelongsTo from './BaseBelongsTo.vue';
11
11
  import BaseBoolean from './BaseBoolean.vue';
12
12
  import BaseBreadcrumbs from './BaseBreadcrumbs.vue';
13
13
  import BaseButton from './BaseButton.vue';
14
+ import BaseButtonGroup from './BaseButtonGroup.vue';
14
15
  import BaseCard from './BaseCard.vue';
15
16
  import BaseCardRow from './BaseCardRow.vue';
16
17
  import BaseCharacterCounter from './BaseCharacterCounter.vue';
@@ -64,4 +65,4 @@ import BaseLayoutStacked from './BaseLayoutStacked.vue';
64
65
  import BaseLayoutStackedConfigurable from './BaseLayoutStackedConfigurable.vue';
65
66
  import BaseLayoutSidebar from './BaseLayoutSidebar.vue';
66
67
  import BaseLayoutSidebarConfigurable from './BaseLayoutSidebarConfigurable.vue';
67
- export { BaseActionItem, BaseAlert, BaseApp, BaseAppDialogs, BaseAppNotifications, BaseAutocomplete, BaseAutocompleteFetch, BaseAvatar, BaseBadge, BaseBelongsTo, BaseBoolean, BaseBreadcrumbs, BaseButton, 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, };
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, };
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ import { NormalizedOption, Option } from '@/types/types';
3
+ export declare function useHasOptions(modelValue: Ref<Option[] | Option | null | undefined>, options: Ref<Option[]>, labelKey: Ref<string>, valueKey: Ref<string>, multiple?: Ref<boolean>): {
4
+ normalizedOptions: import("vue").ComputedRef<NormalizedOption[]>;
5
+ normalizedModelValue: import("vue").ComputedRef<NormalizedOption | NormalizedOption[] | null>;
6
+ isSelected: (option: NormalizedOption) => boolean;
7
+ };
@@ -14,13 +14,11 @@ export interface DataTableQuery extends Record<string, any> {
14
14
  }
15
15
  export type OptionValue = string | number;
16
16
  export type Option = Record<string, any>;
17
- export type Selection = Record<string, any> | null | undefined;
18
17
  export type NormalizedOption = {
19
18
  option: Option;
20
19
  value: OptionValue;
21
20
  label: string;
22
21
  };
23
- export type NormalizedSelection = NormalizedOption | null | undefined;
24
22
  export type MediaLibraryPayload = {
25
23
  to_remove: string[];
26
24
  to_add: UploadedFile[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",