bitboss-ui 1.0.4 → 1.0.6

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 (153) hide show
  1. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +48 -0
  2. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +48 -0
  3. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +48 -0
  4. package/dist/index102.js +2 -2
  5. package/dist/index104.js +2 -2
  6. package/dist/index110.js +1 -1
  7. package/dist/index112.js +4 -4
  8. package/dist/index114.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index12.js +2 -2
  12. package/dist/index120.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index127.js +1 -1
  15. package/dist/index128.js +1 -1
  16. package/dist/index132.js +2 -2
  17. package/dist/index14.js.map +1 -1
  18. package/dist/index16.js +47 -37
  19. package/dist/index16.js.map +1 -1
  20. package/dist/index18.js +11 -11
  21. package/dist/index198.js +235 -5
  22. package/dist/index198.js.map +1 -1
  23. package/dist/index199.js +2 -16
  24. package/dist/index199.js.map +1 -1
  25. package/dist/index20.js +3 -3
  26. package/dist/index200.js +2 -16
  27. package/dist/index200.js.map +1 -1
  28. package/dist/index201.js +2 -19
  29. package/dist/index201.js.map +1 -1
  30. package/dist/index202.js +10 -20
  31. package/dist/index202.js.map +1 -1
  32. package/dist/index203.js +3 -29
  33. package/dist/index203.js.map +1 -1
  34. package/dist/index204.js +35 -8
  35. package/dist/index204.js.map +1 -1
  36. package/dist/index205.js +6 -2
  37. package/dist/index205.js.map +1 -1
  38. package/dist/index206.js +112 -226
  39. package/dist/index206.js.map +1 -1
  40. package/dist/index207.js +134 -2
  41. package/dist/index207.js.map +1 -1
  42. package/dist/index208.js +5 -2
  43. package/dist/index208.js.map +1 -1
  44. package/dist/index209.js +19 -2
  45. package/dist/index209.js.map +1 -1
  46. package/dist/index210.js +2 -121
  47. package/dist/index210.js.map +1 -1
  48. package/dist/index211.js +170 -130
  49. package/dist/index211.js.map +1 -1
  50. package/dist/index212.js +366 -33
  51. package/dist/index212.js.map +1 -1
  52. package/dist/index213.js +363 -164
  53. package/dist/index213.js.map +1 -1
  54. package/dist/index214.js +3 -6
  55. package/dist/index214.js.map +1 -1
  56. package/dist/index215.js +3 -368
  57. package/dist/index215.js.map +1 -1
  58. package/dist/index216.js +14 -371
  59. package/dist/index216.js.map +1 -1
  60. package/dist/index217.js +16 -2
  61. package/dist/index217.js.map +1 -1
  62. package/dist/index218.js +20 -4
  63. package/dist/index218.js.map +1 -1
  64. package/dist/index219.js +29 -3
  65. package/dist/index219.js.map +1 -1
  66. package/dist/index22.js +2 -2
  67. package/dist/index220.js +8 -3
  68. package/dist/index220.js.map +1 -1
  69. package/dist/index221.js +4 -3
  70. package/dist/index221.js.map +1 -1
  71. package/dist/index222.js +2 -10
  72. package/dist/index222.js.map +1 -1
  73. package/dist/index223.js +9 -6
  74. package/dist/index223.js.map +1 -1
  75. package/dist/index224.js +23 -17
  76. package/dist/index224.js.map +1 -1
  77. package/dist/index225.js +6 -9
  78. package/dist/index225.js.map +1 -1
  79. package/dist/index226.js +17 -23
  80. package/dist/index226.js.map +1 -1
  81. package/dist/index227.js +1 -1
  82. package/dist/index228.js +156 -61
  83. package/dist/index228.js.map +1 -1
  84. package/dist/index229.js +1 -4
  85. package/dist/index229.js.map +1 -1
  86. package/dist/index230.js +2 -164
  87. package/dist/index230.js.map +1 -1
  88. package/dist/index231.js +7 -1
  89. package/dist/index231.js.map +1 -1
  90. package/dist/index232.js +69 -5
  91. package/dist/index232.js.map +1 -1
  92. package/dist/index233.js +2 -295
  93. package/dist/index233.js.map +1 -1
  94. package/dist/index234.js +434 -5
  95. package/dist/index234.js.map +1 -1
  96. package/dist/index235.js +89 -2
  97. package/dist/index235.js.map +1 -1
  98. package/dist/index236.js +6 -2
  99. package/dist/index236.js.map +1 -1
  100. package/dist/index237.js +2 -2
  101. package/dist/index238.js +295 -2
  102. package/dist/index238.js.map +1 -1
  103. package/dist/index239.js +2 -2
  104. package/dist/index241.js +106 -2
  105. package/dist/index241.js.map +1 -1
  106. package/dist/index242.js +218 -100
  107. package/dist/index242.js.map +1 -1
  108. package/dist/index243.js +252 -429
  109. package/dist/index243.js.map +1 -1
  110. package/dist/index244.js +2 -4
  111. package/dist/index244.js.map +1 -1
  112. package/dist/index245.js +2 -200
  113. package/dist/index245.js.map +1 -1
  114. package/dist/index246.js +2 -117
  115. package/dist/index246.js.map +1 -1
  116. package/dist/index247.js +2 -2
  117. package/dist/index248.js +4 -224
  118. package/dist/index248.js.map +1 -1
  119. package/dist/index249.js +200 -258
  120. package/dist/index249.js.map +1 -1
  121. package/dist/index250.js +115 -87
  122. package/dist/index250.js.map +1 -1
  123. package/dist/index251.js +15 -4
  124. package/dist/index251.js.map +1 -1
  125. package/dist/index252.js +4 -4
  126. package/dist/index252.js.map +1 -1
  127. package/dist/index253.js +4 -61
  128. package/dist/index253.js.map +1 -1
  129. package/dist/index254.js +60 -14
  130. package/dist/index254.js.map +1 -1
  131. package/dist/index255.js +3 -2
  132. package/dist/index255.js.map +1 -1
  133. package/dist/index256.js +2 -3
  134. package/dist/index256.js.map +1 -1
  135. package/dist/index26.js +2 -2
  136. package/dist/index30.js +3 -3
  137. package/dist/index32.js +7 -7
  138. package/dist/index34.js +46 -44
  139. package/dist/index34.js.map +1 -1
  140. package/dist/index36.js +2 -2
  141. package/dist/index38.js +52 -44
  142. package/dist/index38.js.map +1 -1
  143. package/dist/index48.js +1 -1
  144. package/dist/index50.js +1 -1
  145. package/dist/index58.js.map +1 -1
  146. package/dist/index66.js +5 -5
  147. package/dist/index70.js +2 -2
  148. package/dist/index73.js +1 -1
  149. package/dist/index76.js +1 -1
  150. package/dist/index80.js +4 -4
  151. package/dist/index98.js.map +1 -1
  152. package/dist/style.css +1 -1
  153. package/package.json +1 -1
@@ -41,7 +41,11 @@ declare const _default: <T = any>(__VLS_props: {
41
41
  loading?: ((props: object) => any) | undefined;
42
42
  'no-data'?: ((props: object) => any) | undefined;
43
43
  'option:prepend'?: ((props: {
44
+ checked: boolean;
45
+ disabled: boolean;
46
+ id?: string | undefined;
44
47
  item: T;
48
+ text: string;
45
49
  }) => any) | undefined;
46
50
  icon?: ((props: SlotAttributes & {
47
51
  item: T;
@@ -53,7 +57,11 @@ declare const _default: <T = any>(__VLS_props: {
53
57
  checked: boolean;
54
58
  }) => any) | undefined;
55
59
  'option:append'?: ((props: {
60
+ checked: boolean;
61
+ disabled: boolean;
62
+ id?: string | undefined;
56
63
  item: T;
64
+ text: string;
57
65
  }) => any) | undefined;
58
66
  append?: ((props: object) => any) | undefined;
59
67
  }> & {
@@ -61,7 +69,11 @@ declare const _default: <T = any>(__VLS_props: {
61
69
  loading?: ((props: object) => any) | undefined;
62
70
  'no-data'?: ((props: object) => any) | undefined;
63
71
  'option:prepend'?: ((props: {
72
+ checked: boolean;
73
+ disabled: boolean;
74
+ id?: string | undefined;
64
75
  item: T;
76
+ text: string;
65
77
  }) => any) | undefined;
66
78
  icon?: ((props: SlotAttributes & {
67
79
  item: T;
@@ -73,7 +85,11 @@ declare const _default: <T = any>(__VLS_props: {
73
85
  checked: boolean;
74
86
  }) => any) | undefined;
75
87
  'option:append'?: ((props: {
88
+ checked: boolean;
89
+ disabled: boolean;
90
+ id?: string | undefined;
76
91
  item: T;
92
+ text: string;
77
93
  }) => any) | undefined;
78
94
  append?: ((props: object) => any) | undefined;
79
95
  };
@@ -119,7 +135,11 @@ declare const _default: <T = any>(__VLS_props: {
119
135
  loading?: ((props: object) => any) | undefined;
120
136
  'no-data'?: ((props: object) => any) | undefined;
121
137
  'option:prepend'?: ((props: {
138
+ checked: boolean;
139
+ disabled: boolean;
140
+ id?: string | undefined;
122
141
  item: T;
142
+ text: string;
123
143
  }) => any) | undefined;
124
144
  icon?: ((props: SlotAttributes & {
125
145
  item: T;
@@ -131,7 +151,11 @@ declare const _default: <T = any>(__VLS_props: {
131
151
  checked: boolean;
132
152
  }) => any) | undefined;
133
153
  'option:append'?: ((props: {
154
+ checked: boolean;
155
+ disabled: boolean;
156
+ id?: string | undefined;
134
157
  item: T;
158
+ text: string;
135
159
  }) => any) | undefined;
136
160
  append?: ((props: object) => any) | undefined;
137
161
  }> & {
@@ -139,7 +163,11 @@ declare const _default: <T = any>(__VLS_props: {
139
163
  loading?: ((props: object) => any) | undefined;
140
164
  'no-data'?: ((props: object) => any) | undefined;
141
165
  'option:prepend'?: ((props: {
166
+ checked: boolean;
167
+ disabled: boolean;
168
+ id?: string | undefined;
142
169
  item: T;
170
+ text: string;
143
171
  }) => any) | undefined;
144
172
  icon?: ((props: SlotAttributes & {
145
173
  item: T;
@@ -151,7 +179,11 @@ declare const _default: <T = any>(__VLS_props: {
151
179
  checked: boolean;
152
180
  }) => any) | undefined;
153
181
  'option:append'?: ((props: {
182
+ checked: boolean;
183
+ disabled: boolean;
184
+ id?: string | undefined;
154
185
  item: T;
186
+ text: string;
155
187
  }) => any) | undefined;
156
188
  append?: ((props: object) => any) | undefined;
157
189
  };
@@ -200,7 +232,11 @@ declare const _default: <T = any>(__VLS_props: {
200
232
  loading?: ((props: object) => any) | undefined;
201
233
  'no-data'?: ((props: object) => any) | undefined;
202
234
  'option:prepend'?: ((props: {
235
+ checked: boolean;
236
+ disabled: boolean;
237
+ id?: string | undefined;
203
238
  item: T;
239
+ text: string;
204
240
  }) => any) | undefined;
205
241
  icon?: ((props: SlotAttributes & {
206
242
  item: T;
@@ -212,7 +248,11 @@ declare const _default: <T = any>(__VLS_props: {
212
248
  checked: boolean;
213
249
  }) => any) | undefined;
214
250
  'option:append'?: ((props: {
251
+ checked: boolean;
252
+ disabled: boolean;
253
+ id?: string | undefined;
215
254
  item: T;
255
+ text: string;
216
256
  }) => any) | undefined;
217
257
  append?: ((props: object) => any) | undefined;
218
258
  }> & {
@@ -220,7 +260,11 @@ declare const _default: <T = any>(__VLS_props: {
220
260
  loading?: ((props: object) => any) | undefined;
221
261
  'no-data'?: ((props: object) => any) | undefined;
222
262
  'option:prepend'?: ((props: {
263
+ checked: boolean;
264
+ disabled: boolean;
265
+ id?: string | undefined;
223
266
  item: T;
267
+ text: string;
224
268
  }) => any) | undefined;
225
269
  icon?: ((props: SlotAttributes & {
226
270
  item: T;
@@ -232,7 +276,11 @@ declare const _default: <T = any>(__VLS_props: {
232
276
  checked: boolean;
233
277
  }) => any) | undefined;
234
278
  'option:append'?: ((props: {
279
+ checked: boolean;
280
+ disabled: boolean;
281
+ id?: string | undefined;
235
282
  item: T;
283
+ text: string;
236
284
  }) => any) | undefined;
237
285
  append?: ((props: object) => any) | undefined;
238
286
  };
@@ -162,7 +162,11 @@ declare const _default: <T = any>(__VLS_props: {
162
162
  loading?: ((props: object) => any) | undefined;
163
163
  'no-data'?: ((props: object) => any) | undefined;
164
164
  'option:prepend'?: ((props: {
165
+ checked: boolean;
166
+ disabled: boolean;
167
+ id?: string | undefined;
165
168
  item: T;
169
+ text: string;
166
170
  }) => any) | undefined;
167
171
  icon?: ((props: SlotAttributes & {
168
172
  item: T;
@@ -174,7 +178,11 @@ declare const _default: <T = any>(__VLS_props: {
174
178
  checked: boolean;
175
179
  }) => any) | undefined;
176
180
  'option:append'?: ((props: {
181
+ checked: boolean;
182
+ disabled: boolean;
183
+ id?: string | undefined;
177
184
  item: T;
185
+ text: string;
178
186
  }) => any) | undefined;
179
187
  append?: ((props: object) => any) | undefined;
180
188
  legend?: ((props: {
@@ -186,7 +194,11 @@ declare const _default: <T = any>(__VLS_props: {
186
194
  loading?: ((props: object) => any) | undefined;
187
195
  'no-data'?: ((props: object) => any) | undefined;
188
196
  'option:prepend'?: ((props: {
197
+ checked: boolean;
198
+ disabled: boolean;
199
+ id?: string | undefined;
189
200
  item: T;
201
+ text: string;
190
202
  }) => any) | undefined;
191
203
  icon?: ((props: SlotAttributes & {
192
204
  item: T;
@@ -198,7 +210,11 @@ declare const _default: <T = any>(__VLS_props: {
198
210
  checked: boolean;
199
211
  }) => any) | undefined;
200
212
  'option:append'?: ((props: {
213
+ checked: boolean;
214
+ disabled: boolean;
215
+ id?: string | undefined;
201
216
  item: T;
217
+ text: string;
202
218
  }) => any) | undefined;
203
219
  append?: ((props: object) => any) | undefined;
204
220
  legend?: ((props: {
@@ -253,7 +269,11 @@ declare const _default: <T = any>(__VLS_props: {
253
269
  loading?: ((props: object) => any) | undefined;
254
270
  'no-data'?: ((props: object) => any) | undefined;
255
271
  'option:prepend'?: ((props: {
272
+ checked: boolean;
273
+ disabled: boolean;
274
+ id?: string | undefined;
256
275
  item: T;
276
+ text: string;
257
277
  }) => any) | undefined;
258
278
  icon?: ((props: SlotAttributes & {
259
279
  item: T;
@@ -265,7 +285,11 @@ declare const _default: <T = any>(__VLS_props: {
265
285
  checked: boolean;
266
286
  }) => any) | undefined;
267
287
  'option:append'?: ((props: {
288
+ checked: boolean;
289
+ disabled: boolean;
290
+ id?: string | undefined;
268
291
  item: T;
292
+ text: string;
269
293
  }) => any) | undefined;
270
294
  append?: ((props: object) => any) | undefined;
271
295
  legend?: ((props: {
@@ -277,7 +301,11 @@ declare const _default: <T = any>(__VLS_props: {
277
301
  loading?: ((props: object) => any) | undefined;
278
302
  'no-data'?: ((props: object) => any) | undefined;
279
303
  'option:prepend'?: ((props: {
304
+ checked: boolean;
305
+ disabled: boolean;
306
+ id?: string | undefined;
280
307
  item: T;
308
+ text: string;
281
309
  }) => any) | undefined;
282
310
  icon?: ((props: SlotAttributes & {
283
311
  item: T;
@@ -289,7 +317,11 @@ declare const _default: <T = any>(__VLS_props: {
289
317
  checked: boolean;
290
318
  }) => any) | undefined;
291
319
  'option:append'?: ((props: {
320
+ checked: boolean;
321
+ disabled: boolean;
322
+ id?: string | undefined;
292
323
  item: T;
324
+ text: string;
293
325
  }) => any) | undefined;
294
326
  append?: ((props: object) => any) | undefined;
295
327
  legend?: ((props: {
@@ -347,7 +379,11 @@ declare const _default: <T = any>(__VLS_props: {
347
379
  loading?: ((props: object) => any) | undefined;
348
380
  'no-data'?: ((props: object) => any) | undefined;
349
381
  'option:prepend'?: ((props: {
382
+ checked: boolean;
383
+ disabled: boolean;
384
+ id?: string | undefined;
350
385
  item: T;
386
+ text: string;
351
387
  }) => any) | undefined;
352
388
  icon?: ((props: SlotAttributes & {
353
389
  item: T;
@@ -359,7 +395,11 @@ declare const _default: <T = any>(__VLS_props: {
359
395
  checked: boolean;
360
396
  }) => any) | undefined;
361
397
  'option:append'?: ((props: {
398
+ checked: boolean;
399
+ disabled: boolean;
400
+ id?: string | undefined;
362
401
  item: T;
402
+ text: string;
363
403
  }) => any) | undefined;
364
404
  append?: ((props: object) => any) | undefined;
365
405
  legend?: ((props: {
@@ -371,7 +411,11 @@ declare const _default: <T = any>(__VLS_props: {
371
411
  loading?: ((props: object) => any) | undefined;
372
412
  'no-data'?: ((props: object) => any) | undefined;
373
413
  'option:prepend'?: ((props: {
414
+ checked: boolean;
415
+ disabled: boolean;
416
+ id?: string | undefined;
374
417
  item: T;
418
+ text: string;
375
419
  }) => any) | undefined;
376
420
  icon?: ((props: SlotAttributes & {
377
421
  item: T;
@@ -383,7 +427,11 @@ declare const _default: <T = any>(__VLS_props: {
383
427
  checked: boolean;
384
428
  }) => any) | undefined;
385
429
  'option:append'?: ((props: {
430
+ checked: boolean;
431
+ disabled: boolean;
432
+ id?: string | undefined;
386
433
  item: T;
434
+ text: string;
387
435
  }) => any) | undefined;
388
436
  append?: ((props: object) => any) | undefined;
389
437
  legend?: ((props: {
@@ -46,7 +46,11 @@ declare const _default: <T = any>(__VLS_props: {
46
46
  loading?: ((props: object) => any) | undefined;
47
47
  'no-data'?: ((props: object) => any) | undefined;
48
48
  'option:prepend'?: ((props: {
49
+ checked: boolean;
50
+ disabled: boolean;
51
+ id?: string | undefined;
49
52
  item: T;
53
+ text: string;
50
54
  }) => any) | undefined;
51
55
  icon?: ((props: SlotAttributes & {
52
56
  item: T;
@@ -58,7 +62,11 @@ declare const _default: <T = any>(__VLS_props: {
58
62
  checked: boolean;
59
63
  }) => any) | undefined;
60
64
  'option:append'?: ((props: {
65
+ checked: boolean;
66
+ disabled: boolean;
67
+ id?: string | undefined;
61
68
  item: T;
69
+ text: string;
62
70
  }) => any) | undefined;
63
71
  append?: ((props: object) => any) | undefined;
64
72
  legend?: ((props: {
@@ -70,7 +78,11 @@ declare const _default: <T = any>(__VLS_props: {
70
78
  loading?: ((props: object) => any) | undefined;
71
79
  'no-data'?: ((props: object) => any) | undefined;
72
80
  'option:prepend'?: ((props: {
81
+ checked: boolean;
82
+ disabled: boolean;
83
+ id?: string | undefined;
73
84
  item: T;
85
+ text: string;
74
86
  }) => any) | undefined;
75
87
  icon?: ((props: SlotAttributes & {
76
88
  item: T;
@@ -82,7 +94,11 @@ declare const _default: <T = any>(__VLS_props: {
82
94
  checked: boolean;
83
95
  }) => any) | undefined;
84
96
  'option:append'?: ((props: {
97
+ checked: boolean;
98
+ disabled: boolean;
99
+ id?: string | undefined;
85
100
  item: T;
101
+ text: string;
86
102
  }) => any) | undefined;
87
103
  append?: ((props: object) => any) | undefined;
88
104
  legend?: ((props: {
@@ -137,7 +153,11 @@ declare const _default: <T = any>(__VLS_props: {
137
153
  loading?: ((props: object) => any) | undefined;
138
154
  'no-data'?: ((props: object) => any) | undefined;
139
155
  'option:prepend'?: ((props: {
156
+ checked: boolean;
157
+ disabled: boolean;
158
+ id?: string | undefined;
140
159
  item: T;
160
+ text: string;
141
161
  }) => any) | undefined;
142
162
  icon?: ((props: SlotAttributes & {
143
163
  item: T;
@@ -149,7 +169,11 @@ declare const _default: <T = any>(__VLS_props: {
149
169
  checked: boolean;
150
170
  }) => any) | undefined;
151
171
  'option:append'?: ((props: {
172
+ checked: boolean;
173
+ disabled: boolean;
174
+ id?: string | undefined;
152
175
  item: T;
176
+ text: string;
153
177
  }) => any) | undefined;
154
178
  append?: ((props: object) => any) | undefined;
155
179
  legend?: ((props: {
@@ -161,7 +185,11 @@ declare const _default: <T = any>(__VLS_props: {
161
185
  loading?: ((props: object) => any) | undefined;
162
186
  'no-data'?: ((props: object) => any) | undefined;
163
187
  'option:prepend'?: ((props: {
188
+ checked: boolean;
189
+ disabled: boolean;
190
+ id?: string | undefined;
164
191
  item: T;
192
+ text: string;
165
193
  }) => any) | undefined;
166
194
  icon?: ((props: SlotAttributes & {
167
195
  item: T;
@@ -173,7 +201,11 @@ declare const _default: <T = any>(__VLS_props: {
173
201
  checked: boolean;
174
202
  }) => any) | undefined;
175
203
  'option:append'?: ((props: {
204
+ checked: boolean;
205
+ disabled: boolean;
206
+ id?: string | undefined;
176
207
  item: T;
208
+ text: string;
177
209
  }) => any) | undefined;
178
210
  append?: ((props: object) => any) | undefined;
179
211
  legend?: ((props: {
@@ -231,7 +263,11 @@ declare const _default: <T = any>(__VLS_props: {
231
263
  loading?: ((props: object) => any) | undefined;
232
264
  'no-data'?: ((props: object) => any) | undefined;
233
265
  'option:prepend'?: ((props: {
266
+ checked: boolean;
267
+ disabled: boolean;
268
+ id?: string | undefined;
234
269
  item: T;
270
+ text: string;
235
271
  }) => any) | undefined;
236
272
  icon?: ((props: SlotAttributes & {
237
273
  item: T;
@@ -243,7 +279,11 @@ declare const _default: <T = any>(__VLS_props: {
243
279
  checked: boolean;
244
280
  }) => any) | undefined;
245
281
  'option:append'?: ((props: {
282
+ checked: boolean;
283
+ disabled: boolean;
284
+ id?: string | undefined;
246
285
  item: T;
286
+ text: string;
247
287
  }) => any) | undefined;
248
288
  append?: ((props: object) => any) | undefined;
249
289
  legend?: ((props: {
@@ -255,7 +295,11 @@ declare const _default: <T = any>(__VLS_props: {
255
295
  loading?: ((props: object) => any) | undefined;
256
296
  'no-data'?: ((props: object) => any) | undefined;
257
297
  'option:prepend'?: ((props: {
298
+ checked: boolean;
299
+ disabled: boolean;
300
+ id?: string | undefined;
258
301
  item: T;
302
+ text: string;
259
303
  }) => any) | undefined;
260
304
  icon?: ((props: SlotAttributes & {
261
305
  item: T;
@@ -267,7 +311,11 @@ declare const _default: <T = any>(__VLS_props: {
267
311
  checked: boolean;
268
312
  }) => any) | undefined;
269
313
  'option:append'?: ((props: {
314
+ checked: boolean;
315
+ disabled: boolean;
316
+ id?: string | undefined;
270
317
  item: T;
318
+ text: string;
271
319
  }) => any) | undefined;
272
320
  append?: ((props: object) => any) | undefined;
273
321
  legend?: ((props: {
package/dist/index102.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as de, ref as O, computed as p, onMounted as be, watch as q, openBlock as n, createBlock as re, resolveDynamicComponent as ue, normalizeClass as f, withCtx as pe, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, createVNode as J, unref as C, Fragment as N, renderList as T, createTextVNode as fe, mergeProps as me } from "vue";
2
- import { add as ye } from "./index229.js";
2
+ import { add as ye } from "./index230.js";
3
3
  import { clamp as he } from "./index197.js";
4
4
  import { deepEqual as G } from "./index124.js";
5
5
  import { isNil as j } from "./index121.js";
6
6
  import { isNotNil as _e } from "./index125.js";
7
7
  import { useId as ke } from "./index8.js";
8
8
  import { useItemValue as ge } from "./index127.js";
9
- import { when as ve } from "./index218.js";
9
+ import { when as ve } from "./index221.js";
10
10
  import K from "./index12.js";
11
11
  import "./index13.js";
12
12
  import Ce from "./index26.js";
package/dist/index104.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as y, ref as f, computed as B, openBlock as k, createBlock as g, withCtx as l, renderSlot as r, normalizeProps as i, guardReactiveProps as n, createVNode as w, mergeProps as V } from "vue";
2
2
  import $ from "./index22.js";
3
3
  import "./index23.js";
4
- import P from "./index230.js";
5
- import "./index231.js";
4
+ import P from "./index228.js";
5
+ import "./index229.js";
6
6
  const z = /* @__PURE__ */ y({
7
7
  __name: "BbTag",
8
8
  props: {
package/dist/index110.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index6.js";
3
- import B from "./index228.js";
3
+ import B from "./index232.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index112.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as A, ref as o, computed as E, openBlock as b, createElementBlock as $, mergeProps as D, createElementVNode as i, renderSlot as L, normalizeProps as H, guardReactiveProps as I, unref as s, createBlock as M, Teleport as R, normalizeClass as U, normalizeStyle as j, withCtx as q, createCommentVNode as O } from "vue";
2
- import { useFloating as G, arrow as J } from "./index210.js";
2
+ import { useFloating as G, arrow as J } from "./index206.js";
3
3
  import { useId as K } from "./index8.js";
4
4
  import { wait as P } from "./index123.js";
5
5
  import Q from "./index10.js";
6
6
  import "./index11.js";
7
- import { throttle as v } from "./index221.js";
8
- import { waitFor as W } from "./index214.js";
9
- import { autoUpdate as X, flip as Y, shift as Z } from "./index215.js";
7
+ import { throttle as v } from "./index203.js";
8
+ import { waitFor as W } from "./index205.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z } from "./index212.js";
10
10
  const ee = { class: "bb-tooltip__bubble" }, te = /* @__PURE__ */ i("svg", {
11
11
  fill: "none",
12
12
  viewBox: "0 0 24 24",
package/dist/index114.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
2
- import { flattenTree as P } from "./index232.js";
2
+ import { flattenTree as P } from "./index231.js";
3
3
  const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index118.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
2
- import { isCssColor as z } from "./index209.js";
2
+ import { isCssColor as z } from "./index201.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index119.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index221.js";
2
+ import { throttle as g } from "./index203.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index12.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as p, computed as n, watch as E, openBlock as u, createElementBlock as c, normalizeClass as I, normalizeProps as h, mergeProps as i, createCommentVNode as F, createElementVNode as d, renderSlot as N, guardReactiveProps as A } from "vue";
2
- import { isCssColor as f } from "./index209.js";
3
- import { when as L } from "./index218.js";
2
+ import { isCssColor as f } from "./index201.js";
3
+ import { when as L } from "./index221.js";
4
4
  const M = {
5
5
  "aria-hidden": "true",
6
6
  class: "bb-base-checkbox-container"
package/dist/index120.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as r, openBlock as a, createElementBlock as d, normalizeProps as u, guardReactiveProps as z, createElementVNode as c } from "vue";
2
- import { isCssColor as f } from "./index209.js";
2
+ import { isCssColor as f } from "./index201.js";
3
3
  const _ = /* @__PURE__ */ c("svg", {
4
4
  viewBox: "0 0 512 512",
5
5
  xmlns: "http://www.w3.org/2000/svg"
package/dist/index126.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index206.js";
1
+ import t from "./index198.js";
2
2
  const o = () => ({
3
3
  getItemText(r, n) {
4
4
  if (typeof r == "string" && !n)
package/dist/index127.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index206.js";
1
+ import o from "./index198.js";
2
2
  const e = () => ({
3
3
  getItemValue(n, f) {
4
4
  if (typeof f > "u")
package/dist/index128.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isArray as b, isPlainObject as m } from "./index254.js";
1
+ import { isArray as b, isPlainObject as m } from "./index251.js";
2
2
  function i(e, n, l, o, r) {
3
3
  const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
4
4
  u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index132.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as B } from "./index222.js";
2
- import { tryOnScopeDispose as E } from "./index222.js";
1
+ import { toValue as B } from "./index202.js";
2
+ import { tryOnScopeDispose as E } from "./index202.js";
3
3
  import { ref as c, computed as t } from "vue";
4
4
  function h(a) {
5
5
  var l;
@@ -1 +1 @@
1
- {"version":3,"file":"index14.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue"],"sourcesContent":["<template>\n\t<span\n\t\tref=\"container\"\n\t\tclass=\"bb-base-checkbox-group\"\n\t\t:class=\"{\n\t\t\t'bb-base-checkbox-group--errors': hasErrors,\n\t\t\t'bb-base-checkbox-group--horizontal': direction === 'horizontal',\n\t\t\t'bb-base-checkbox-group--vertical': direction === 'vertical',\n\t\t}\"\n\t>\n\t\t<span class=\"bb-base-checkbox-group__container\">\n\t\t\t<slot name=\"prepend\"></slot>\n\t\t\t<span\n\t\t\t\tv-if=\"!options.length && loading\"\n\t\t\t\tclass=\"bb-base-checkbox-group__loading-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'loading'\">{{ loadingText }}</slot>\n\t\t\t</span>\n\t\t\t<span\n\t\t\t\tv-else-if=\"!options.length\"\n\t\t\t\tclass=\"bb-base-checkbox-group__no-data-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'no-data'\">{{ noDataText }}</slot>\n\t\t\t</span>\n\n\t\t\t<template\n\t\t\t\tv-for=\"(option, index) in options\"\n\t\t\t\t:key=\"option?.id || option.jsonValue\"\n\t\t\t>\n\t\t\t\t<slot\n\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t:disabled=\"!!option.disabled\"\n\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\tname=\"option:prepend\"\n\t\t\t\t></slot>\n\t\t\t\t<label\n\t\t\t\t\tclass=\"bb-base-checkbox-group-option\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t'bb-base-checkbox-group-option__selected': option.selected,\n\t\t\t\t\t}\"\n\t\t\t\t>\n\t\t\t\t\t<BaseCheckbox\n\t\t\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\t\t\t:autofocus=\"autofocus && !index\"\n\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t:color=\"color\"\n\t\t\t\t\t\t:disabled=\"option.disabled\"\n\t\t\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t\t:name=\"name\"\n\t\t\t\t\t\t:onChange=\"(event: Event) => onChange(event, option)\"\n\t\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t\t:true-value=\"option.value\"\n\t\t\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t\t\t><template #icon=\"data\"\n\t\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\t\tname=\"icon\"\n\t\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t\tv-bind=\"data\" /></template\n\t\t\t\t\t></BaseCheckbox>\n\t\t\t\t\t<span\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text': true,\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text--hidden': hideLabel,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\tname=\"label\"\n\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t>{{ option.text }}</slot\n\t\t\t\t\t\t></span\n\t\t\t\t\t>\n\t\t\t\t</label>\n\t\t\t\t<slot\n\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t:disabled=\"!!option.disabled\"\n\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\tname=\"option:append\"\n\t\t\t\t></slot>\n\t\t\t</template>\n\t\t\t<slot name=\"append\"></slot>\n\t\t</span>\n\t</span>\n</template>\n\n<script setup lang=\"ts\" generic=\"T = any\">\nimport { ref, toRef } from 'vue';\nimport { useOptions } from '@/composables/useOptions';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { Option } from '@/composables/useOptions';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tariaDescribedby?: InputHTMLAttributes['aria-describedby'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Defines an array of dependencies that will trigger actions in the component upon change.\n\t */\n\tdependencies?: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to dependencies.\n\t */\n\tdepsDebounceTime?: number;\n\n\t/**\n\t * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n\t *\n\t * e.g. You cannot set v-model to a user that is not present in the items passed.\n\t *\n\t * modelValue will be reset upon incoherence.\n\t */\n\tenforceCoherence?: boolean;\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Used to retrieve items can be an array or a function.\n\t */\n\titems:\n\t\t| T[]\n\t\t| ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n\t\t| ((prefill: boolean, modelValue?: any[]) => T[]);\n\n\t/**\n\t * Defines a path that returns a property of the object to use as text or a function that returns a string\n\t */\n\titemText?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => string) | undefined;\n\n\t/**\n\t * Defines a path that returns a property of the object to use as value or a function that returns any value\n\t */\n\titemValue?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => any) | undefined;\n\n\t/**\n\t * String displayed while items are being loaded.\n\t */\n\tloadingText?: string;\n\n\t/**\n\t * Defines the strategy used to understand whether an option has been selected.\n\t * `string` is 40% faster but relies on property order.\n\t * `equality` is more reliable but is slower.\n\t */\n\tmatchStrategy?: 'string' | 'equality';\n\n\t/**\n\t * Used by v-model. Can be an array of any serializable type.\n\t */\n\tmodelValue: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to modelValue.\n\t */\n\tmodelValueDebounceTime?: number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there are no items to display.\n\t */\n\tnoDataText?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n};\n\nexport type BaseCheckboxGroupEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\n\t(e: 'change', event: Event): void;\n\n\t(e: 'click', event: MouseEvent): void;\n\n\t(e: 'focus', event: FocusEvent): void;\n\n\t(e: 'inactive'): void;\n\n\t(e: 'input', event: Event): void;\n\n\t(e: 'keydown', event: KeyboardEvent): void;\n\n\t(e: 'mousedown', event: MouseEvent): void;\n\n\t(e: 'mouseup', event: MouseEvent): void;\n\n\t(e: 'update:modelValue', value: any): void;\n};\n\nconst props = withDefaults(defineProps<BaseCheckboxGroupProps<T>>(), {\n\tdepsDebounceTime: 0,\n\tdirection: 'horizontal',\n\titems: () => [],\n\tloadingText: 'Caricamento...',\n\tmatchStrategy: 'string',\n\tmodelValueDebounceTime: 0,\n\tnoDataText: 'Nessun elemento da visualizzare',\n});\n\nconst emit = defineEmits<BaseCheckboxGroupEvents>();\n\ndefineSlots<{\n\tprepend?: (props: object) => any;\n\tloading?: (props: object) => any;\n\t'no-data'?: (props: object) => any;\n\t'option:prepend'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\ticon?: (\n\t\tprops: SlotAttributes & {\n\t\t\titem: T;\n\t\t\ttext: string;\n\t\t}\n\t) => any;\n\tlabel?: (props: { item: T; text: string; checked: boolean }) => any;\n\t'option:append'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\tappend?: (props: object) => any;\n}>();\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst { loading, options } = useOptions({\n\tdependencies: toRef(() => props.dependencies),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(() => props.disabled),\n\temitter: (value) => emit('update:modelValue', value),\n\tenforceCoherence: toRef(() => props.enforceCoherence),\n\tid: props.id,\n\timmediate: true,\n\tinitialItems: toRef(() => props.items),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmatchStrategy: props.matchStrategy,\n\tmodelValue: toRef(() => props.modelValue),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n});\n\n/**\n * When selecting an option split behavior based on single or multiple selection\n */\nconst onOptionSelected = (option: Option) => {\n\tlet valueToEmit;\n\tif (option.selected) {\n\t\tvalueToEmit = props.modelValue\n\t\t\t.slice(0, option.selectedIndex)\n\t\t\t.concat(props.modelValue.slice(option.selectedIndex + 1));\n\t} else {\n\t\tvalueToEmit = props.modelValue.concat(option.value);\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tonOptionSelected(option);\n};\n\nconst onFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tif (!active.value) {\n\t\tdocument.addEventListener('focusin', onDocumentFocus, { passive: true });\n\t\tdocument.addEventListener('click', onDocumentClick, { passive: true });\n\t\tactive.value = true;\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus,\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseCheckboxGroup';\n</style>\n"],"names":["props","__props","emit","__emit","container","ref","active","loading","options","useOptions","toRef","value","onOptionSelected","option","valueToEmit","onChange","event","eventListeners","onDocumentFocus","onDocumentClick","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqPA,UAAMA,IAAQC,GAURC,IAAOC,GA8BPC,IAAYC,KACZC,IAASD,EAAI,EAAK,GAElB,EAAE,SAAAE,GAAS,SAAAC,EAAQ,IAAIC,EAAW;AAAA,MACvC,cAAcC,EAAM,MAAMV,EAAM,YAAY;AAAA,MAC5C,kBAAkBA,EAAM;AAAA,MACxB,UAAUU,EAAM,MAAMV,EAAM,QAAQ;AAAA,MACpC,SAAS,CAACW,MAAUT,EAAK,qBAAqBS,CAAK;AAAA,MACnD,kBAAkBD,EAAM,MAAMV,EAAM,gBAAgB;AAAA,MACpD,IAAIA,EAAM;AAAA,MACV,WAAW;AAAA,MACX,cAAcU,EAAM,MAAMV,EAAM,KAAK;AAAA,MACrC,UAAUA,EAAM;AAAA,MAChB,WAAWA,EAAM;AAAA,MACjB,eAAeA,EAAM;AAAA,MACrB,YAAYU,EAAM,MAAMV,EAAM,UAAU;AAAA,MACxC,wBAAwBA,EAAM;AAAA,MAC9B,UAAU;AAAA,IAAA,CACV,GAKKY,IAAmB,CAACC,MAAmB;AACxC,UAAAC;AACJ,MAAID,EAAO,WACVC,IAAcd,EAAM,WAClB,MAAM,GAAGa,EAAO,aAAa,EAC7B,OAAOb,EAAM,WAAW,MAAMa,EAAO,gBAAgB,CAAC,CAAC,IAEzDC,IAAcd,EAAM,WAAW,OAAOa,EAAO,KAAK,GAEnDX,EAAK,qBAAqBY,CAAW;AAAA,IAAA,GAGhCC,IAAW,CAACC,GAAcH,MAAmB;AAClD,MAAAX,EAAK,UAAUc,CAAK,GACpBJ,EAAiBC,CAAM;AAAA,IAAA,GAYlBI,IAAiB;AAAA,MACtB,QAAQ,CAACD,MAAsBd,EAAK,QAAQc,CAAK;AAAA,MACjD,SAAS,CAACA,MAAsBd,EAAK,SAASc,CAAK;AAAA,MACnD,SAZe,CAACA,MAAsB;AACtC,QAAAd,EAAK,SAASc,CAAK,GACdV,EAAO,UACX,SAAS,iBAAiB,WAAWY,GAAiB,EAAE,SAAS,IAAM,GACvE,SAAS,iBAAiB,SAASC,GAAiB,EAAE,SAAS,IAAM,GACrEb,EAAO,QAAQ;AAAA,MAChB;AAAA,MAOA,SAAS,CAACU,MAAiBd,EAAK,SAASc,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBd,EAAK,WAAWc,CAAK;AAAA,MAC1D,aAAa,CAACA,MAAsBd,EAAK,aAAac,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBd,EAAK,WAAWc,CAAK;AAAA,IAAA,GAGlDE,IAAkB,CAACF,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBI,IAAAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD,GAGKA,IAAkB,CAACH,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBI,IAAAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index14.js","sources":["../src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue"],"sourcesContent":["<template>\n\t<span\n\t\tref=\"container\"\n\t\tclass=\"bb-base-checkbox-group\"\n\t\t:class=\"{\n\t\t\t'bb-base-checkbox-group--errors': hasErrors,\n\t\t\t'bb-base-checkbox-group--horizontal': direction === 'horizontal',\n\t\t\t'bb-base-checkbox-group--vertical': direction === 'vertical',\n\t\t}\"\n\t>\n\t\t<span class=\"bb-base-checkbox-group__container\">\n\t\t\t<slot name=\"prepend\"></slot>\n\t\t\t<span\n\t\t\t\tv-if=\"!options.length && loading\"\n\t\t\t\tclass=\"bb-base-checkbox-group__loading-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'loading'\">{{ loadingText }}</slot>\n\t\t\t</span>\n\t\t\t<span\n\t\t\t\tv-else-if=\"!options.length\"\n\t\t\t\tclass=\"bb-base-checkbox-group__no-data-container\"\n\t\t\t>\n\t\t\t\t<slot :name=\"'no-data'\">{{ noDataText }}</slot>\n\t\t\t</span>\n\n\t\t\t<template\n\t\t\t\tv-for=\"(option, index) in options\"\n\t\t\t\t:key=\"option?.id || option.jsonValue\"\n\t\t\t>\n\t\t\t\t<slot\n\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t:disabled=\"!!option.disabled\"\n\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\tname=\"option:prepend\"\n\t\t\t\t></slot>\n\t\t\t\t<label\n\t\t\t\t\tclass=\"bb-base-checkbox-group-option\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t'bb-base-checkbox-group-option__selected': option.selected,\n\t\t\t\t\t}\"\n\t\t\t\t>\n\t\t\t\t\t<BaseCheckbox\n\t\t\t\t\t\t:aria-describedby=\"ariaDescribedby\"\n\t\t\t\t\t\t:autofocus=\"autofocus && !index\"\n\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t:color=\"color\"\n\t\t\t\t\t\t:disabled=\"option.disabled\"\n\t\t\t\t\t\t:has-errors=\"hasErrors\"\n\t\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t\t:name=\"name\"\n\t\t\t\t\t\t:onChange=\"(event: Event) => onChange(event, option)\"\n\t\t\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t\t\t:true-value=\"option.value\"\n\t\t\t\t\t\tv-bind=\"eventListeners\"\n\t\t\t\t\t\t><template #icon=\"data\"\n\t\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\t\tname=\"icon\"\n\t\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t\tv-bind=\"data\" /></template\n\t\t\t\t\t></BaseCheckbox>\n\t\t\t\t\t<span\n\t\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text': true,\n\t\t\t\t\t\t\t'bb-base-checkbox-group-option__text--hidden': hideLabel,\n\t\t\t\t\t\t}\"\n\t\t\t\t\t\t><slot\n\t\t\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t\t\tname=\"label\"\n\t\t\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\t\t\t>{{ option.text }}</slot\n\t\t\t\t\t\t></span\n\t\t\t\t\t>\n\t\t\t\t</label>\n\t\t\t\t<slot\n\t\t\t\t\t:checked=\"option.selected\"\n\t\t\t\t\t:disabled=\"!!option.disabled\"\n\t\t\t\t\t:id=\"option.id\"\n\t\t\t\t\t:item=\"option.original\"\n\t\t\t\t\t:text=\"option.text\"\n\t\t\t\t\tname=\"option:append\"\n\t\t\t\t></slot>\n\t\t\t</template>\n\t\t\t<slot name=\"append\"></slot>\n\t\t</span>\n\t</span>\n</template>\n\n<script setup lang=\"ts\" generic=\"T = any\">\nimport { ref, toRef } from 'vue';\nimport { useOptions } from '@/composables/useOptions';\nimport BaseCheckbox from '../BaseCheckbox/BaseCheckbox.vue';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\nimport type { NestedKeyOf } from '@/types/NestedKeyOf';\nimport type { Option } from '@/composables/useOptions';\nimport type { SlotAttributes } from '../BaseCheckbox/BaseCheckbox.vue';\n\nexport type BaseCheckboxGroupProps<T> = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tariaDescribedby?: InputHTMLAttributes['aria-describedby'];\n\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Defines an array of dependencies that will trigger actions in the component upon change.\n\t */\n\tdependencies?: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to dependencies.\n\t */\n\tdepsDebounceTime?: number;\n\n\t/**\n\t * Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`\n\t */\n\tdirection?: 'horizontal' | 'vertical';\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * If coherence is enforce the input cannot have a modelValue the is incoherent with its current items.\n\t *\n\t * e.g. You cannot set v-model to a user that is not present in the items passed.\n\t *\n\t * modelValue will be reset upon incoherence.\n\t */\n\tenforceCoherence?: boolean;\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * Visually hides the label of the input while maintaining accessibility.\n\t */\n\thideLabel?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Used to retrieve items can be an array or a function.\n\t */\n\titems:\n\t\t| T[]\n\t\t| ((prefill: boolean, modelValue?: any[]) => Promise<T[]>)\n\t\t| ((prefill: boolean, modelValue?: any[]) => T[]);\n\n\t/**\n\t * Defines a path that returns a property of the object to use as text or a function that returns a string\n\t */\n\titemText?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => string) | undefined;\n\n\t/**\n\t * Defines a path that returns a property of the object to use as value or a function that returns any value\n\t */\n\titemValue?: T extends object\n\t\t? NestedKeyOf<T> | ((item: T) => string)\n\t\t: ((item: T) => any) | undefined;\n\n\t/**\n\t * String displayed while items are being loaded.\n\t */\n\tloadingText?: string;\n\n\t/**\n\t * Defines the strategy used to understand whether an option has been selected.\n\t * `string` is 40% faster but relies on property order.\n\t * `equality` is more reliable but is slower.\n\t */\n\tmatchStrategy?: 'string' | 'equality';\n\n\t/**\n\t * Used by v-model. Can be an array of any serializable type.\n\t */\n\tmodelValue: any[];\n\n\t/**\n\t * Timeout used to debounce response to changes to modelValue.\n\t */\n\tmodelValueDebounceTime?: number;\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * String displayed when there are no items to display.\n\t */\n\tnoDataText?: string;\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n};\n\nexport type BaseCheckboxGroupEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\t(e: 'change', event: Event): void;\n\t(e: 'click', event: MouseEvent): void;\n\t(e: 'focus', event: FocusEvent): void;\n\t(e: 'inactive'): void;\n\t(e: 'input', event: Event): void;\n\t(e: 'keydown', event: KeyboardEvent): void;\n\t(e: 'mousedown', event: MouseEvent): void;\n\t(e: 'mouseup', event: MouseEvent): void;\n\t(e: 'update:modelValue', value: any): void;\n};\n\nconst props = withDefaults(defineProps<BaseCheckboxGroupProps<T>>(), {\n\tdepsDebounceTime: 0,\n\tdirection: 'horizontal',\n\titems: () => [],\n\tloadingText: 'Caricamento...',\n\tmatchStrategy: 'string',\n\tmodelValueDebounceTime: 0,\n\tnoDataText: 'Nessun elemento da visualizzare',\n});\n\nconst emit = defineEmits<BaseCheckboxGroupEvents>();\n\ndefineSlots<{\n\tprepend?: (props: object) => any;\n\tloading?: (props: object) => any;\n\t'no-data'?: (props: object) => any;\n\t'option:prepend'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\ticon?: (\n\t\tprops: SlotAttributes & {\n\t\t\titem: T;\n\t\t\ttext: string;\n\t\t}\n\t) => any;\n\tlabel?: (props: { item: T; text: string; checked: boolean }) => any;\n\t'option:append'?: (props: {\n\t\tchecked: boolean;\n\t\tdisabled: boolean;\n\t\tid?: string;\n\t\titem: T;\n\t\ttext: string;\n\t}) => any;\n\tappend?: (props: object) => any;\n}>();\n\nconst container = ref<HTMLElement>();\nconst active = ref(false);\n\nconst { loading, options } = useOptions({\n\tdependencies: toRef(() => props.dependencies),\n\tdepsDebounceTime: props.depsDebounceTime,\n\tdisabled: toRef(() => props.disabled),\n\temitter: (value) => emit('update:modelValue', value),\n\tenforceCoherence: toRef(() => props.enforceCoherence),\n\tid: props.id,\n\timmediate: true,\n\tinitialItems: toRef(() => props.items),\n\titemText: props.itemText,\n\titemValue: props.itemValue,\n\tmatchStrategy: props.matchStrategy,\n\tmodelValue: toRef(() => props.modelValue),\n\tmodelValueDebounceTime: props.modelValueDebounceTime,\n\tmultiple: true,\n});\n\n/**\n * When selecting an option split behavior based on single or multiple selection\n */\nconst onOptionSelected = (option: Option) => {\n\tlet valueToEmit;\n\tif (option.selected) {\n\t\tvalueToEmit = props.modelValue\n\t\t\t.slice(0, option.selectedIndex)\n\t\t\t.concat(props.modelValue.slice(option.selectedIndex + 1));\n\t} else {\n\t\tvalueToEmit = props.modelValue.concat(option.value);\n\t}\n\temit('update:modelValue', valueToEmit);\n};\n\nconst onChange = (event: Event, option: Option) => {\n\temit('change', event);\n\tonOptionSelected(option);\n};\n\nconst onFocus = (event: FocusEvent) => {\n\temit('focus', event);\n\tif (!active.value) {\n\t\tdocument.addEventListener('focusin', onDocumentFocus, { passive: true });\n\t\tdocument.addEventListener('click', onDocumentClick, { passive: true });\n\t\tactive.value = true;\n\t}\n};\n\nconst eventListeners = {\n\tonBlur: (event: FocusEvent) => emit('blur', event),\n\tonClick: (event: MouseEvent) => emit('click', event),\n\tonFocus,\n\tonInput: (event: Event) => emit('input', event),\n\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n};\n\nconst onDocumentFocus = (event: FocusEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n\nconst onDocumentClick = (event: MouseEvent) => {\n\tif (event.target instanceof HTMLElement) {\n\t\tif (!container.value?.contains(event.target)) {\n\t\t\temit('inactive');\n\t\t\tactive.value = false;\n\t\t\tdocument.removeEventListener('focusin', onDocumentFocus);\n\t\t\tdocument.removeEventListener('click', onDocumentClick);\n\t\t}\n\t}\n};\n</script>\n\n<style lang=\"postcss\">\n@import '@/assets/css/BaseCheckboxGroup';\n</style>\n"],"names":["props","__props","emit","__emit","container","ref","active","loading","options","useOptions","toRef","value","onOptionSelected","option","valueToEmit","onChange","event","eventListeners","onDocumentFocus","onDocumentClick","_a"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4OA,UAAMA,IAAQC,GAURC,IAAOC,GA8BPC,IAAYC,KACZC,IAASD,EAAI,EAAK,GAElB,EAAE,SAAAE,GAAS,SAAAC,EAAQ,IAAIC,EAAW;AAAA,MACvC,cAAcC,EAAM,MAAMV,EAAM,YAAY;AAAA,MAC5C,kBAAkBA,EAAM;AAAA,MACxB,UAAUU,EAAM,MAAMV,EAAM,QAAQ;AAAA,MACpC,SAAS,CAACW,MAAUT,EAAK,qBAAqBS,CAAK;AAAA,MACnD,kBAAkBD,EAAM,MAAMV,EAAM,gBAAgB;AAAA,MACpD,IAAIA,EAAM;AAAA,MACV,WAAW;AAAA,MACX,cAAcU,EAAM,MAAMV,EAAM,KAAK;AAAA,MACrC,UAAUA,EAAM;AAAA,MAChB,WAAWA,EAAM;AAAA,MACjB,eAAeA,EAAM;AAAA,MACrB,YAAYU,EAAM,MAAMV,EAAM,UAAU;AAAA,MACxC,wBAAwBA,EAAM;AAAA,MAC9B,UAAU;AAAA,IAAA,CACV,GAKKY,IAAmB,CAACC,MAAmB;AACxC,UAAAC;AACJ,MAAID,EAAO,WACVC,IAAcd,EAAM,WAClB,MAAM,GAAGa,EAAO,aAAa,EAC7B,OAAOb,EAAM,WAAW,MAAMa,EAAO,gBAAgB,CAAC,CAAC,IAEzDC,IAAcd,EAAM,WAAW,OAAOa,EAAO,KAAK,GAEnDX,EAAK,qBAAqBY,CAAW;AAAA,IAAA,GAGhCC,IAAW,CAACC,GAAcH,MAAmB;AAClD,MAAAX,EAAK,UAAUc,CAAK,GACpBJ,EAAiBC,CAAM;AAAA,IAAA,GAYlBI,IAAiB;AAAA,MACtB,QAAQ,CAACD,MAAsBd,EAAK,QAAQc,CAAK;AAAA,MACjD,SAAS,CAACA,MAAsBd,EAAK,SAASc,CAAK;AAAA,MACnD,SAZe,CAACA,MAAsB;AACtC,QAAAd,EAAK,SAASc,CAAK,GACdV,EAAO,UACX,SAAS,iBAAiB,WAAWY,GAAiB,EAAE,SAAS,IAAM,GACvE,SAAS,iBAAiB,SAASC,GAAiB,EAAE,SAAS,IAAM,GACrEb,EAAO,QAAQ;AAAA,MAChB;AAAA,MAOA,SAAS,CAACU,MAAiBd,EAAK,SAASc,CAAK;AAAA,MAC9C,WAAW,CAACA,MAAyBd,EAAK,WAAWc,CAAK;AAAA,MAC1D,aAAa,CAACA,MAAsBd,EAAK,aAAac,CAAK;AAAA,MAC3D,WAAW,CAACA,MAAsBd,EAAK,WAAWc,CAAK;AAAA,IAAA,GAGlDE,IAAkB,CAACF,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBI,IAAAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD,GAGKA,IAAkB,CAACH,MAAsB;;AAC1C,MAAAA,EAAM,kBAAkB,iBACtBI,IAAAhB,EAAU,UAAV,QAAAgB,EAAiB,SAASJ,EAAM,YACpCd,EAAK,UAAU,GACfI,EAAO,QAAQ,IACN,SAAA,oBAAoB,WAAWY,CAAe,GAC9C,SAAA,oBAAoB,SAASC,CAAe;AAAA,IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}