@pequity/squirrel 6.0.13 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/cjs/chunks/p-action-bar.js +4 -4
  2. package/dist/cjs/chunks/p-btn.js +204 -0
  3. package/dist/cjs/chunks/p-select-btn.js +5 -4
  4. package/dist/cjs/index.js +28 -23
  5. package/dist/cjs/inputClasses.js +6 -4
  6. package/dist/cjs/p-btn.js +2 -169
  7. package/dist/es/chunks/p-action-bar.js +8 -8
  8. package/dist/es/chunks/p-btn.js +205 -0
  9. package/dist/es/chunks/p-select-btn.js +5 -4
  10. package/dist/es/index.js +65 -60
  11. package/dist/es/inputClasses.js +6 -4
  12. package/dist/es/p-btn.js +2 -169
  13. package/dist/squirrel/components/p-btn/p-btn.vue.d.ts +106 -46
  14. package/dist/squirrel/components/p-card/p-card.vue.d.ts +27 -14
  15. package/dist/squirrel/components/p-checkbox/p-checkbox.vue.d.ts +43 -12
  16. package/dist/squirrel/components/p-close-btn/p-close-btn.vue.d.ts +1 -1
  17. package/dist/squirrel/components/p-drawer/p-drawer.vue.d.ts +1 -1
  18. package/dist/squirrel/components/p-dropdown-select/p-dropdown-select.vue.d.ts +15 -422
  19. package/dist/squirrel/components/p-file-upload/p-file-upload.vue.d.ts +1 -3
  20. package/dist/squirrel/components/p-info-icon/p-info-icon.vue.d.ts +13 -11
  21. package/dist/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue.d.ts +39 -14
  22. package/dist/squirrel/components/p-input/p-input.vue.d.ts +2 -2
  23. package/dist/squirrel/components/p-input-number/p-input-number.vue.d.ts +2 -2
  24. package/dist/squirrel/components/p-input-search/p-input-search.vue.d.ts +2 -2
  25. package/dist/squirrel/components/p-link/p-link.vue.d.ts +17 -13
  26. package/dist/squirrel/components/p-loading/p-loading.vue.d.ts +1 -3
  27. package/dist/squirrel/components/p-modal/p-modal.vue.d.ts +240 -22
  28. package/dist/squirrel/components/p-pagination-info/p-pagination-info.vue.d.ts +77 -10
  29. package/dist/squirrel/components/p-select/p-select.vue.d.ts +116 -14
  30. package/dist/squirrel/components/p-select-btn/p-select-btn.vue.d.ts +37 -13
  31. package/dist/squirrel/components/p-select-list/p-select-list.vue.d.ts +14 -418
  32. package/dist/squirrel/components/p-table/p-table.vue.d.ts +61 -19
  33. package/dist/squirrel/components/p-table-header-cell/p-table-header-cell.vue.d.ts +1 -1
  34. package/dist/squirrel/components/p-table-loader/p-table-loader.vue.d.ts +1 -1
  35. package/dist/squirrel/components/p-table-td/p-table-td.vue.d.ts +23 -11
  36. package/dist/squirrel/components/p-tabs/p-tabs.vue.d.ts +1 -1
  37. package/dist/squirrel/components/p-textarea/p-textarea.vue.d.ts +1 -1
  38. package/dist/squirrel/components/p-toggle/p-toggle.vue.d.ts +1 -1
  39. package/dist/squirrel/utils/inputClasses.d.ts +75 -25
  40. package/dist/squirrel/utils/inputClassesMixin.d.ts +1 -1
  41. package/dist/squirrel.css +2 -9
  42. package/package.json +25 -24
  43. package/squirrel/assets/squirrel.css +1 -1
  44. package/squirrel/components/p-action-bar/p-action-bar.stories.js +1 -2
  45. package/squirrel/components/p-btn/p-btn.spec.js +227 -161
  46. package/squirrel/components/p-btn/p-btn.stories.js +32 -8
  47. package/squirrel/components/p-btn/p-btn.vue +106 -73
  48. package/squirrel/components/p-dropdown/p-dropdown.vue +0 -1
  49. package/squirrel/components/p-file-upload/p-file-upload.vue +6 -16
  50. package/squirrel/components/p-inline-date-picker/p-inline-date-picker.vue +1 -1
  51. package/squirrel/components/p-select/p-select.spec.js +1 -1
  52. package/squirrel/components/p-select-btn/p-select-btn.stories.js +45 -4
  53. package/squirrel/components/p-select-btn/p-select-btn.vue +2 -2
  54. package/squirrel/components/p-tabs/p-tabs.stories.js +2 -2
  55. package/squirrel/composables/useInputClasses.spec.js +3 -3
  56. package/squirrel/utils/inputClasses.ts +6 -4
  57. package/squirrel/utils/inputClassesMixin.spec.js +3 -3
  58. package/squirrel/assets/file-upload-drag-over-icon.svg +0 -5
  59. package/squirrel/assets/file-upload-upload-icon.svg +0 -5
  60. package/squirrel/assets/file-upload-x-icon-hover.svg +0 -8
  61. package/squirrel/assets/file-upload-x-icon.svg +0 -8
@@ -1,4 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
2
- dimsReference: HTMLDivElement;
3
- }, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
2
  export default _default;
@@ -1,20 +1,241 @@
1
+ import PAlert from '../p-alert/p-alert.vue';
2
+ import PCloseBtn from '../p-close-btn/p-close-btn.vue';
1
3
  import { type PropType, type StyleValue } from 'vue';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- 'title-wrapper'?(_: {}): any;
6
- 'content-wrapper'?(_: {}): any;
7
- default?(_: {}): any;
8
- 'footer-wrapper'?(_: {}): any;
9
- footer?(_: {}): any;
10
- };
11
- refs: {
12
- pmWrapper: HTMLDivElement;
13
- pm: HTMLDivElement;
14
- };
15
- rootEl: any;
16
- };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
+ declare const zIndex: import("vue").Ref<number, number>;
5
+ declare const id: import("vue").Ref<string, string>;
6
+ declare const show: import("vue").Ref<boolean, boolean>;
7
+ declare const mount: import("vue").Ref<boolean, boolean>;
8
+ declare const pmWrapper: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
9
+ declare const close: () => void;
10
+ declare const clickOutside: (e: MouseEvent) => void;
11
+ declare const keydown: (e: KeyboardEvent) => void;
12
+ declare const beforeOpen: () => void;
13
+ declare const opening: () => void;
14
+ declare const afterOpen: () => void;
15
+ declare const beforeClose: () => void;
16
+ declare const closing: () => void;
17
+ declare const afterClose: () => void;
18
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
19
+ declare var __VLS_22: {}, __VLS_34: {}, __VLS_36: {}, __VLS_38: {}, __VLS_40: {};
20
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
21
+ 'title-wrapper'?: (props: typeof __VLS_22) => any;
22
+ } & {
23
+ 'content-wrapper'?: (props: typeof __VLS_34) => any;
24
+ } & {
25
+ default?: (props: typeof __VLS_36) => any;
26
+ } & {
27
+ 'footer-wrapper'?: (props: typeof __VLS_38) => any;
28
+ } & {
29
+ footer?: (props: typeof __VLS_40) => any;
30
+ }>;
31
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
32
+ name: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ title: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ baseZindex: {
41
+ type: NumberConstructor;
42
+ default: number;
43
+ };
44
+ bgClass: {
45
+ type: PropType<StyleValue>;
46
+ default: string;
47
+ };
48
+ wrapperClass: {
49
+ type: PropType<StyleValue>;
50
+ default: string;
51
+ };
52
+ modalClass: {
53
+ type: PropType<StyleValue>;
54
+ default: string;
55
+ };
56
+ modalStyle: {
57
+ type: PropType<StyleValue>;
58
+ default: string;
59
+ };
60
+ inClass: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ outClass: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ bgInClass: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ bgOutClass: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ appendTo: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ live: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ enableClose: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ modelValue: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ closeLabel: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ disabled: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ errorMsg: {
101
+ type: StringConstructor;
102
+ default: string;
103
+ };
104
+ maxWidth: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ }>, {
109
+ PAlert: typeof PAlert;
110
+ PCloseBtn: typeof PCloseBtn;
111
+ zIndex: typeof zIndex;
112
+ id: typeof id;
113
+ show: typeof show;
114
+ mount: typeof mount;
115
+ pmWrapper: typeof pmWrapper;
116
+ close: typeof close;
117
+ clickOutside: typeof clickOutside;
118
+ keydown: typeof keydown;
119
+ beforeOpen: typeof beforeOpen;
120
+ opening: typeof opening;
121
+ afterOpen: typeof afterOpen;
122
+ beforeClose: typeof beforeClose;
123
+ closing: typeof closing;
124
+ afterClose: typeof afterClose;
125
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
126
+ "update:modelValue": (...args: any[]) => void;
127
+ closed: (...args: any[]) => void;
128
+ "before-open": (...args: any[]) => void;
129
+ opening: (...args: any[]) => void;
130
+ opened: (...args: any[]) => void;
131
+ "before-close": (...args: any[]) => void;
132
+ closing: (...args: any[]) => void;
133
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
134
+ name: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ title: {
139
+ type: StringConstructor;
140
+ default: string;
141
+ };
142
+ baseZindex: {
143
+ type: NumberConstructor;
144
+ default: number;
145
+ };
146
+ bgClass: {
147
+ type: PropType<StyleValue>;
148
+ default: string;
149
+ };
150
+ wrapperClass: {
151
+ type: PropType<StyleValue>;
152
+ default: string;
153
+ };
154
+ modalClass: {
155
+ type: PropType<StyleValue>;
156
+ default: string;
157
+ };
158
+ modalStyle: {
159
+ type: PropType<StyleValue>;
160
+ default: string;
161
+ };
162
+ inClass: {
163
+ type: StringConstructor;
164
+ default: string;
165
+ };
166
+ outClass: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ };
170
+ bgInClass: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ bgOutClass: {
175
+ type: StringConstructor;
176
+ default: string;
177
+ };
178
+ appendTo: {
179
+ type: StringConstructor;
180
+ default: string;
181
+ };
182
+ live: {
183
+ type: BooleanConstructor;
184
+ default: boolean;
185
+ };
186
+ enableClose: {
187
+ type: BooleanConstructor;
188
+ default: boolean;
189
+ };
190
+ modelValue: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ closeLabel: {
195
+ type: StringConstructor;
196
+ default: string;
197
+ };
198
+ disabled: {
199
+ type: BooleanConstructor;
200
+ default: boolean;
201
+ };
202
+ errorMsg: {
203
+ type: StringConstructor;
204
+ default: string;
205
+ };
206
+ maxWidth: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
210
+ }>> & Readonly<{
211
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
212
+ onClosed?: ((...args: any[]) => any) | undefined;
213
+ "onBefore-open"?: ((...args: any[]) => any) | undefined;
214
+ onOpening?: ((...args: any[]) => any) | undefined;
215
+ onOpened?: ((...args: any[]) => any) | undefined;
216
+ "onBefore-close"?: ((...args: any[]) => any) | undefined;
217
+ onClosing?: ((...args: any[]) => any) | undefined;
218
+ }>, {
219
+ name: string;
220
+ title: string;
221
+ disabled: boolean;
222
+ maxWidth: string;
223
+ modelValue: boolean;
224
+ errorMsg: string;
225
+ appendTo: string;
226
+ inClass: string;
227
+ outClass: string;
228
+ live: boolean;
229
+ closeLabel: string;
230
+ enableClose: boolean;
231
+ baseZindex: number;
232
+ bgClass: StyleValue;
233
+ wrapperClass: StyleValue;
234
+ modalClass: StyleValue;
235
+ modalStyle: StyleValue;
236
+ bgInClass: string;
237
+ bgOutClass: string;
238
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
239
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
19
240
  name: {
20
241
  type: StringConstructor;
@@ -205,13 +426,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
205
426
  modalStyle: StyleValue;
206
427
  bgInClass: string;
207
428
  bgOutClass: string;
208
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {
209
- pmWrapper: HTMLDivElement;
210
- pm: HTMLDivElement;
211
- }, any>;
212
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
429
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
430
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
213
431
  export default _default;
214
- type __VLS_WithTemplateSlots<T, S> = T & {
432
+ type __VLS_WithSlots<T, S> = T & {
215
433
  new (): {
216
434
  $slots: S;
217
435
  };
@@ -1,12 +1,79 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- 'no-results'?(_: {}): any;
1
+ import PSkeletonLoader from '../p-skeleton-loader/p-skeleton-loader.vue';
2
+ declare const from: import("vue").ComputedRef<number>;
3
+ declare const to: import("vue").ComputedRef<number>;
4
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
5
+ declare var __VLS_5: {};
6
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
7
+ 'no-results'?: (props: typeof __VLS_5) => any;
8
+ }>;
9
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ /**
11
+ * The current page.
12
+ */
13
+ currentPage: {
14
+ type: NumberConstructor;
15
+ default: number;
5
16
  };
6
- refs: {};
7
- rootEl: any;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ /**
18
+ * The amount of data pagination iterates through.
19
+ */
20
+ count: {
21
+ type: NumberConstructor;
22
+ default: number;
23
+ };
24
+ /**
25
+ * The amount of data to be displayed at 1 page. Used to calculate the `from` and `to` limits.
26
+ */
27
+ pageSize: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ /**
32
+ * Whether the pagination is loading.
33
+ */
34
+ loading: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }>, {
39
+ PSkeletonLoader: typeof PSkeletonLoader;
40
+ from: typeof from;
41
+ to: typeof to;
42
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
+ /**
44
+ * The current page.
45
+ */
46
+ currentPage: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ };
50
+ /**
51
+ * The amount of data pagination iterates through.
52
+ */
53
+ count: {
54
+ type: NumberConstructor;
55
+ default: number;
56
+ };
57
+ /**
58
+ * The amount of data to be displayed at 1 page. Used to calculate the `from` and `to` limits.
59
+ */
60
+ pageSize: {
61
+ type: NumberConstructor;
62
+ default: number;
63
+ };
64
+ /**
65
+ * Whether the pagination is loading.
66
+ */
67
+ loading: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ }>> & Readonly<{}>, {
72
+ loading: boolean;
73
+ count: number;
74
+ pageSize: number;
75
+ currentPage: number;
76
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
77
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
78
  /**
12
79
  * The current page.
@@ -71,9 +138,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
71
138
  pageSize: number;
72
139
  currentPage: number;
73
140
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
74
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
141
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
75
142
  export default _default;
76
- type __VLS_WithTemplateSlots<T, S> = T & {
143
+ type __VLS_WithSlots<T, S> = T & {
77
144
  new (): {
78
145
  $slots: S;
79
146
  };
@@ -1,17 +1,119 @@
1
1
  import { type Size } from '../p-btn/p-btn.types';
2
- import { type PropType } from 'vue';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- label?(_: {
7
- label: string;
8
- labelClasses: string;
9
- }): any;
10
- };
11
- refs: {};
12
- rootEl: any;
2
+ import { type PropType, type StyleValue } from 'vue';
3
+ declare const $attrs: {
4
+ [x: string]: unknown;
13
5
  };
14
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
6
+ declare const labelClasses: import("vue").ComputedRef<string>, selectClasses: import("vue").ComputedRef<string>, errorMsgClasses: import("vue").ComputedRef<string>;
7
+ declare const innerValue: import("vue").WritableComputedRef<string | number | boolean, string | number | boolean>;
8
+ declare const attrs: import("vue").ComputedRef<{
9
+ [x: string]: unknown;
10
+ }>;
11
+ declare const style: import("vue").ComputedRef<StyleValue>;
12
+ declare const innerOptions: import("vue").ComputedRef<{
13
+ value: unknown;
14
+ text: unknown;
15
+ }[]>;
16
+ declare const onChange: (e: Event) => void;
17
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
18
+ declare var __VLS_1: {
19
+ label: string;
20
+ labelClasses: string;
21
+ };
22
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
23
+ label?: (props: typeof __VLS_1) => any;
24
+ }>;
25
+ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
26
+ modelValue: {
27
+ type: PropType<string | number | boolean | null>;
28
+ default: string;
29
+ };
30
+ items: {
31
+ type: PropType<Record<string, unknown>[]>;
32
+ default: () => never[];
33
+ };
34
+ label: {
35
+ type: StringConstructor;
36
+ default: string;
37
+ };
38
+ errorMsg: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ required: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ size: {
47
+ type: PropType<Size>;
48
+ default: string;
49
+ validator(value: Size): boolean;
50
+ };
51
+ itemText: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ itemValue: {
56
+ type: PropType<string | number | boolean | null>;
57
+ default: string;
58
+ };
59
+ }>, {
60
+ $attrs: typeof $attrs;
61
+ labelClasses: typeof labelClasses;
62
+ selectClasses: typeof selectClasses;
63
+ errorMsgClasses: typeof errorMsgClasses;
64
+ innerValue: typeof innerValue;
65
+ attrs: typeof attrs;
66
+ style: typeof style;
67
+ innerOptions: typeof innerOptions;
68
+ onChange: typeof onChange;
69
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
+ "update:modelValue": (...args: any[]) => void;
71
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
72
+ modelValue: {
73
+ type: PropType<string | number | boolean | null>;
74
+ default: string;
75
+ };
76
+ items: {
77
+ type: PropType<Record<string, unknown>[]>;
78
+ default: () => never[];
79
+ };
80
+ label: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ errorMsg: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ required: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ size: {
93
+ type: PropType<Size>;
94
+ default: string;
95
+ validator(value: Size): boolean;
96
+ };
97
+ itemText: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ itemValue: {
102
+ type: PropType<string | number | boolean | null>;
103
+ default: string;
104
+ };
105
+ }>> & Readonly<{
106
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
107
+ }>, {
108
+ size: "sm" | "md" | "lg";
109
+ label: string;
110
+ required: boolean;
111
+ modelValue: string | number | boolean | null;
112
+ items: Record<string, unknown>[];
113
+ itemText: string;
114
+ errorMsg: string;
115
+ itemValue: string | number | boolean | null;
116
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
117
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
16
118
  modelValue: {
17
119
  type: PropType<string | number | boolean | null>;
@@ -94,9 +196,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
94
196
  errorMsg: string;
95
197
  itemValue: string | number | boolean | null;
96
198
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
97
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
199
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
98
200
  export default _default;
99
- type __VLS_WithTemplateSlots<T, S> = T & {
201
+ type __VLS_WithSlots<T, S> = T & {
100
202
  new (): {
101
203
  $slots: S;
102
204
  };
@@ -1,4 +1,5 @@
1
1
  import { type Size } from '../p-btn/p-btn.types';
2
+ import PBtn from '../p-btn/p-btn.vue';
2
3
  type BtnGroupItem = Record<string, string | number | boolean>;
3
4
  type Props = {
4
5
  modelValue?: string | number | null | BtnGroupItem[];
@@ -13,17 +14,23 @@ type Props = {
13
14
  multiple?: boolean;
14
15
  noPadding?: boolean;
15
16
  };
16
- declare function __VLS_template(): {
17
- attrs: Partial<{}>;
18
- slots: Partial<Record<`btn-${number}`, (_: {
19
- item: BtnGroupItem;
20
- isSelected: boolean | undefined;
21
- }) => any>>;
22
- refs: {};
23
- rootEl: HTMLDivElement;
17
+ declare const tooltipText: (item: BtnGroupItem) => string | number | boolean;
18
+ declare const select: (item: BtnGroupItem) => void;
19
+ declare const isSelected: (item: BtnGroupItem) => boolean | undefined;
20
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
21
+ declare var __VLS_9: `btn-${number}`, __VLS_10: {
22
+ item: BtnGroupItem;
23
+ isSelected: boolean | undefined;
24
24
  };
25
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
26
+ [K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
27
+ }>;
28
+ declare const __VLS_self: import("vue").DefineComponent<Props, {
29
+ PBtn: typeof PBtn;
30
+ tooltipText: typeof tooltipText;
31
+ select: typeof select;
32
+ isSelected: typeof isSelected;
33
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
34
  "update:modelValue": (...args: any[]) => void;
28
35
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
29
36
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -32,17 +39,34 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
32
39
  modelValue: string | number | null | BtnGroupItem[];
33
40
  items: BtnGroupItem[] | readonly BtnGroupItem[];
34
41
  itemText: string;
42
+ itemValue: string | number;
43
+ multiple: boolean;
44
+ itemTooltipText: string;
45
+ showTooltip: boolean;
46
+ highlightSelected: boolean;
35
47
  grow: boolean;
48
+ noPadding: boolean;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
50
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
+ "update:modelValue": (...args: any[]) => void;
52
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
53
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
54
+ }>, {
55
+ size: Size;
56
+ modelValue: string | number | null | BtnGroupItem[];
57
+ items: BtnGroupItem[] | readonly BtnGroupItem[];
58
+ itemText: string;
36
59
  itemValue: string | number;
37
60
  multiple: boolean;
38
61
  itemTooltipText: string;
39
62
  showTooltip: boolean;
40
63
  highlightSelected: boolean;
64
+ grow: boolean;
41
65
  noPadding: boolean;
42
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
43
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
66
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
67
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
44
68
  export default _default;
45
- type __VLS_WithTemplateSlots<T, S> = T & {
69
+ type __VLS_WithSlots<T, S> = T & {
46
70
  new (): {
47
71
  $slots: S;
48
72
  };