bitboss-ui 2.0.92 → 2.0.94

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 (254) hide show
  1. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +1 -1
  2. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +2 -2
  3. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
  4. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
  5. package/dist/components/BbRows/BbRows.vue.d.ts +105 -0
  6. package/dist/components/BbTable/BbTable.vue.d.ts +2 -2
  7. package/dist/components/BbTable/types.d.ts +10 -8
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +35 -33
  10. package/dist/index100.js +97 -172
  11. package/dist/index101.js +179 -0
  12. package/dist/{index108.js → index109.js} +5 -5
  13. package/dist/index11.js +1 -1
  14. package/dist/{index110.js → index111.js} +35 -35
  15. package/dist/{index118.js → index119.js} +2 -2
  16. package/dist/index12.js +6 -6
  17. package/dist/{index120.js → index121.js} +6 -6
  18. package/dist/{index122.js → index123.js} +1 -1
  19. package/dist/index125.js +35 -39
  20. package/dist/index126.js +39 -46
  21. package/dist/index127.js +46 -42
  22. package/dist/index128.js +43 -31
  23. package/dist/index129.js +35 -2
  24. package/dist/index13.js +1 -1
  25. package/dist/index130.js +2 -21
  26. package/dist/index131.js +21 -2
  27. package/dist/index132.js +2 -340
  28. package/dist/index133.js +337 -22
  29. package/dist/index134.js +25 -2
  30. package/dist/index135.js +2 -5
  31. package/dist/index136.js +5 -9
  32. package/dist/index137.js +8 -5
  33. package/dist/index138.js +6 -3
  34. package/dist/index139.js +1 -1
  35. package/dist/index140.js +1 -1
  36. package/dist/index141.js +1 -1
  37. package/dist/index142.js +1 -1
  38. package/dist/index143.js +1 -1
  39. package/dist/index144.js +1 -1
  40. package/dist/index145.js +1 -1
  41. package/dist/index146.js +1 -1
  42. package/dist/index147.js +1 -1
  43. package/dist/index148.js +1 -1
  44. package/dist/index149.js +1 -1
  45. package/dist/index15.js +4 -4
  46. package/dist/index150.js +1 -1
  47. package/dist/index151.js +1 -1
  48. package/dist/index152.js +1 -1
  49. package/dist/index153.js +1 -1
  50. package/dist/index154.js +1 -1
  51. package/dist/index155.js +1 -1
  52. package/dist/index156.js +1 -1
  53. package/dist/index157.js +1 -1
  54. package/dist/index158.js +1 -1
  55. package/dist/index159.js +1 -1
  56. package/dist/index160.js +1 -1
  57. package/dist/index161.js +1 -1
  58. package/dist/index162.js +1 -1
  59. package/dist/index163.js +1 -1
  60. package/dist/index164.js +1 -1
  61. package/dist/index165.js +2 -2
  62. package/dist/{index195.js → index168.js} +1 -1
  63. package/dist/index17.js +3 -3
  64. package/dist/index170.js +1 -1
  65. package/dist/index171.js +1 -1
  66. package/dist/index172.js +1 -1
  67. package/dist/index173.js +1 -1
  68. package/dist/index174.js +1 -1
  69. package/dist/index175.js +1 -1
  70. package/dist/index176.js +2 -2
  71. package/dist/index177.js +5 -0
  72. package/dist/index179.js +2 -3
  73. package/dist/index180.js +1 -1
  74. package/dist/index181.js +1 -1
  75. package/dist/index182.js +1 -1
  76. package/dist/index183.js +1 -1
  77. package/dist/index184.js +1 -1
  78. package/dist/index185.js +1 -1
  79. package/dist/index186.js +1 -1
  80. package/dist/index187.js +1 -1
  81. package/dist/index188.js +2 -2
  82. package/dist/index189.js +2 -3
  83. package/dist/index19.js +2 -2
  84. package/dist/index190.js +1 -1
  85. package/dist/index191.js +5 -0
  86. package/dist/index194.js +1 -1
  87. package/dist/index196.js +1 -1
  88. package/dist/index197.js +1 -1
  89. package/dist/index198.js +1 -1
  90. package/dist/index199.js +1 -1
  91. package/dist/index200.js +1 -1
  92. package/dist/index201.js +1 -1
  93. package/dist/index202.js +1 -1
  94. package/dist/index203.js +1 -1
  95. package/dist/index204.js +3 -81
  96. package/dist/index205.js +3 -2
  97. package/dist/index206.js +80 -52
  98. package/dist/index207.js +4 -0
  99. package/dist/index208.js +126 -13
  100. package/dist/index209.js +5 -20
  101. package/dist/index21.js +14 -14
  102. package/dist/index210.js +125 -4
  103. package/dist/index211.js +17 -124
  104. package/dist/index212.js +16 -5
  105. package/dist/index213.js +13 -122
  106. package/dist/index214.js +2 -19
  107. package/dist/index215.js +2 -16
  108. package/dist/index216.js +40 -15
  109. package/dist/index217.js +20 -2
  110. package/dist/index218.js +6 -2
  111. package/dist/index219.js +53 -41
  112. package/dist/index221.js +12 -4
  113. package/dist/index222.js +5 -12
  114. package/dist/index223.js +12 -369
  115. package/dist/index224.js +367 -17
  116. package/dist/index225.js +3 -27
  117. package/dist/index226.js +4 -3
  118. package/dist/index227.js +19 -8
  119. package/dist/index228.js +25 -247
  120. package/dist/index229.js +3 -52
  121. package/dist/index23.js +18 -18
  122. package/dist/index230.js +6 -42
  123. package/dist/index231.js +249 -5
  124. package/dist/index232.js +43 -51
  125. package/dist/index233.js +43 -163
  126. package/dist/index234.js +5 -84
  127. package/dist/index235.js +62 -0
  128. package/dist/index236.js +164 -3
  129. package/dist/index237.js +84 -7
  130. package/dist/index239.js +2 -4
  131. package/dist/index240.js +4 -2
  132. package/dist/index241.js +2 -3
  133. package/dist/index242.js +3 -2
  134. package/dist/index243.js +7 -2
  135. package/dist/index244.js +2 -18
  136. package/dist/index245.js +17 -105
  137. package/dist/index246.js +108 -0
  138. package/dist/{index247.js → index248.js} +2 -2
  139. package/dist/index25.js +109 -106
  140. package/dist/index250.js +2 -3
  141. package/dist/index251.js +10 -6
  142. package/dist/index252.js +3 -16
  143. package/dist/index253.js +224 -9
  144. package/dist/index254.js +281 -23
  145. package/dist/index255.js +6 -89
  146. package/dist/index256.js +4 -0
  147. package/dist/index257.js +2 -3
  148. package/dist/index259.js +2 -7
  149. package/dist/index260.js +2 -176
  150. package/dist/index261.js +125 -280
  151. package/dist/index262.js +430 -5
  152. package/dist/index263.js +176 -2
  153. package/dist/index264.js +3 -2
  154. package/dist/index266.js +7 -2
  155. package/dist/index267.js +22 -2
  156. package/dist/index269.js +1 -1
  157. package/dist/index27.js +4 -4
  158. package/dist/index270.js +5 -1
  159. package/dist/index271.js +16 -2
  160. package/dist/index272.js +9 -2
  161. package/dist/index273.js +23 -28
  162. package/dist/index274.js +83 -16
  163. package/dist/index276.js +9 -2
  164. package/dist/index277.js +2 -126
  165. package/dist/index278.js +2 -431
  166. package/dist/index279.js +1 -21
  167. package/dist/index280.js +4 -0
  168. package/dist/index281.js +1 -1
  169. package/dist/index282.js +2 -9
  170. package/dist/index283.js +28 -3
  171. package/dist/index284.js +22 -12
  172. package/dist/index286.js +436 -9
  173. package/dist/index287.js +126 -16
  174. package/dist/index288.js +200 -4
  175. package/dist/index289.js +3 -200
  176. package/dist/index29.js +3 -3
  177. package/dist/index290.js +11 -435
  178. package/dist/index291.js +7 -125
  179. package/dist/index292.js +9 -4
  180. package/dist/index293.js +17 -224
  181. package/dist/index294.js +3 -88
  182. package/dist/index295.js +8 -3
  183. package/dist/index296.js +4 -3
  184. package/dist/index297.js +88 -210
  185. package/dist/index298.js +3 -2
  186. package/dist/index299.js +3 -3
  187. package/dist/index300.js +211 -3
  188. package/dist/index301.js +64 -56
  189. package/dist/index302.js +2 -3
  190. package/dist/index303.js +5 -7
  191. package/dist/index304.js +4 -18
  192. package/dist/index305.js +7 -6
  193. package/dist/index306.js +3 -66
  194. package/dist/index307.js +3 -5
  195. package/dist/index308.js +57 -32
  196. package/dist/index309.js +3 -4
  197. package/dist/index31.js +2 -2
  198. package/dist/index310.js +3 -8
  199. package/dist/index311.js +6 -3
  200. package/dist/index312.js +18 -10
  201. package/dist/index313.js +32 -46
  202. package/dist/index314.js +7 -2
  203. package/dist/index315.js +13 -0
  204. package/dist/index316.js +47 -480
  205. package/dist/index317.js +2 -424
  206. package/dist/index319.js +480 -2
  207. package/dist/index320.js +426 -0
  208. package/dist/index33.js +2 -2
  209. package/dist/index35.js +4 -4
  210. package/dist/index37.js +18 -18
  211. package/dist/index39.js +7 -7
  212. package/dist/index41.js +2 -2
  213. package/dist/index43.js +2 -2
  214. package/dist/index45.js +8 -8
  215. package/dist/index47.js +3 -3
  216. package/dist/index49.js +2 -2
  217. package/dist/index51.js +1 -1
  218. package/dist/index53.js +2 -2
  219. package/dist/index55.js +2 -2
  220. package/dist/index57.js +2 -2
  221. package/dist/index6.js +1 -1
  222. package/dist/index61.js +4 -4
  223. package/dist/index69.js +1 -1
  224. package/dist/index7.js +2 -2
  225. package/dist/index73.js +3 -3
  226. package/dist/index75.js +6 -6
  227. package/dist/index77.js +2 -2
  228. package/dist/index79.js +3 -3
  229. package/dist/index81.js +1 -1
  230. package/dist/index84.js +75 -72
  231. package/dist/index86.js +1 -1
  232. package/dist/index88.js +5 -5
  233. package/dist/index9.js +1 -1
  234. package/dist/index90.js +2 -2
  235. package/dist/style.css +1 -1
  236. package/dist/utilities/functions/indexBy.d.ts +1 -1
  237. package/package.json +2 -2
  238. package/dist/index124.js +0 -42
  239. package/dist/index169.js +0 -5
  240. package/dist/index178.js +0 -4
  241. package/dist/index220.js +0 -8
  242. package/dist/index238.js +0 -4
  243. package/dist/index249.js +0 -12
  244. package/dist/index285.js +0 -11
  245. /package/dist/{index102.js → index103.js} +0 -0
  246. /package/dist/{index104.js → index105.js} +0 -0
  247. /package/dist/{index106.js → index107.js} +0 -0
  248. /package/dist/{index112.js → index113.js} +0 -0
  249. /package/dist/{index114.js → index115.js} +0 -0
  250. /package/dist/{index116.js → index117.js} +0 -0
  251. /package/dist/{index167.js → index166.js} +0 -0
  252. /package/dist/{index265.js → index258.js} +0 -0
  253. /package/dist/{index318.js → index321.js} +0 -0
  254. /package/dist/{index268.js → index322.js} +0 -0
@@ -254,8 +254,8 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDatePickerInput
254
254
  onActive?: (() => any) | undefined;
255
255
  }>, {
256
256
  autocomplete: string;
257
- allowWriting: boolean | "not-mobile";
258
257
  width: number | string;
258
+ allowWriting: boolean | "not-mobile";
259
259
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
260
260
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
261
261
  export default _default;
@@ -15,9 +15,9 @@ export type BaseDialogProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'disa
15
15
  */
16
16
  focusTarget?: string;
17
17
  /**
18
- * Displays the modala as fulscreen with no margin to the page
18
+ * Displays the modal as fullscreen with no margin to the page
19
19
  */
20
- fullscreen?: boolean;
20
+ fullscreen?: boolean | 'mobile';
21
21
  /**
22
22
  * Defines the state open / closed of the modal.
23
23
  */
@@ -207,13 +207,13 @@ declare function __VLS_template(): {
207
207
  };
208
208
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
209
209
  declare const __VLS_component: import('vue').DefineComponent<BbDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BbDropdownProps> & Readonly<{}>, {
210
+ width: number;
210
211
  transitionDuration: number;
211
212
  arrowPadding: number;
212
213
  offset: number;
213
214
  padding: number;
214
215
  placement: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
215
216
  theme: string;
216
- width: number;
217
217
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
218
218
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
219
219
  export default _default;
@@ -15,9 +15,9 @@ export type BbOffCanvasProps = Pick<CommonProps, 'closeLabel' | 'compact' | 'dis
15
15
  */
16
16
  focusTarget?: string;
17
17
  /**
18
- * Displays the modala as fulscreen with no margin to the page
18
+ * Displays the offcanvas as fullscreen with no margin to the page
19
19
  */
20
- fullscreen?: boolean;
20
+ fullscreen?: boolean | 'mobile';
21
21
  /**
22
22
  * Defines the state open / closed of the modal.
23
23
  */
@@ -0,0 +1,105 @@
1
+ import { BaseColumn } from '../BbTable/types';
2
+ import { Option as BaseOption } from '../../types/Option';
3
+ export type BbRowsColumn = BaseColumn;
4
+ type Props = {
5
+ columns: BbRowsColumn[];
6
+ /**
7
+ * Defines an array of dependencies that will trigger actions in the component upon change.
8
+ */
9
+ dependencies?: any[];
10
+ /**
11
+ * Timeout used to debounce response to changes to dependencies.
12
+ */
13
+ depsDebounceTime?: number;
14
+ /**
15
+ * Disables the component
16
+ */
17
+ disabled?: boolean;
18
+ items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
19
+ itemValue?: string | ((item: any) => any);
20
+ /**
21
+ * Sets the component in a loading state, usually triggering some visual styles.
22
+ */
23
+ loading?: boolean;
24
+ /**
25
+ * Maximum number of items that can be selected.
26
+ */
27
+ max?: number;
28
+ /**
29
+ * Used by v-model. Can be any serializable type.
30
+ */
31
+ modelValue?: any;
32
+ /**
33
+ * Allows the selection of multiple items.
34
+ */
35
+ multiple?: boolean;
36
+ /**
37
+ * Defines whether the table is selectable.
38
+ * Can be a global boolean that affects all rows or a function
39
+ * that accepts an item and returns a boolean that only affects that item.
40
+ */
41
+ selectable?: boolean | ((item: any) => boolean);
42
+ };
43
+ declare let __VLS_typeProps: Props;
44
+ /**
45
+ * Projection that represents a row of cells with flags
46
+ * linked to the state of the item
47
+ */
48
+ export type MappedItem = BaseOption & {
49
+ columns: Record<string, ItemColumn>;
50
+ };
51
+ type ItemColumn = {
52
+ key: string;
53
+ label: string;
54
+ value: any;
55
+ };
56
+ type __VLS_PublicProps = {
57
+ 'unselected-items'?: any[];
58
+ 'select-all'?: boolean;
59
+ } & typeof __VLS_typeProps;
60
+ declare function __VLS_template(): {
61
+ slots: {
62
+ loading?(_: {
63
+ items: any[];
64
+ }): any;
65
+ "no-data"?(_: {
66
+ loading: boolean;
67
+ }): any;
68
+ default?(_: {
69
+ key: string;
70
+ columns: Record<string, ItemColumn>;
71
+ disabled: boolean | undefined;
72
+ item: any;
73
+ select: () => void;
74
+ selected: boolean | undefined;
75
+ unselect: () => void;
76
+ value: any;
77
+ }): any;
78
+ };
79
+ refs: {};
80
+ attrs: Partial<{}>;
81
+ };
82
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
83
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
84
+ "update:unselected-items": (args_0: unselected) => any;
85
+ } & {
86
+ "update:modelValue": (value: any) => any;
87
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
88
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
89
+ "onUpdate:unselected-items"?: ((args_0: unselected) => any) | undefined;
90
+ }>, {
91
+ dependencies: any[];
92
+ depsDebounceTime: number;
93
+ multiple: boolean;
94
+ modelValue: any;
95
+ items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
96
+ max: number;
97
+ columns: BbRowsColumn[];
98
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
99
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
100
+ export default _default;
101
+ type __VLS_WithTemplateSlots<T, S> = T & {
102
+ new (): {
103
+ $slots: S;
104
+ };
105
+ };
@@ -116,16 +116,16 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
116
116
  items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
117
117
  max: number;
118
118
  align: "left" | "center" | "right";
119
- accessibleLabel: (columns: MappedCell[], item: any) => string;
119
+ columns: BbTableColumn[];
120
120
  actionsText: string;
121
121
  allowSelectAll: boolean;
122
- columns: BbTableColumn[];
123
122
  fixedColumns: (number | {
124
123
  index: number;
125
124
  position: "left" | "right";
126
125
  })[];
127
126
  selectAllLabel: string;
128
127
  selectText: string;
128
+ accessibleLabel: (columns: MappedCell[], item: any) => string;
129
129
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
130
130
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
131
131
  export default _default;
@@ -1,14 +1,7 @@
1
1
  import { Classes } from '../../types/Classes';
2
2
  import { Option } from '../../types/Option';
3
3
  import { InputHTMLAttributes } from 'vue';
4
- /**
5
- * Type used to infer the bahaviour of a single column. You can either extract data or provide elements useful for styling.
6
- */
7
- export type BbTableColumn = {
8
- /**
9
- * Text alignment of the column.
10
- */
11
- align?: 'left' | 'right' | 'center';
4
+ export type BaseColumn = {
12
5
  /**
13
6
  * When set to false the formatter will not run on nullish values.
14
7
  * By default is true so you can create virtual columns with keys that do not
@@ -35,6 +28,15 @@ export type BbTableColumn = {
35
28
  * Placeholder used when the pipeline returns null content.
36
29
  */
37
30
  placeholder?: string;
31
+ };
32
+ /**
33
+ * Type used to infer the bahaviour of a single column. You can either extract data or provide elements useful for styling.
34
+ */
35
+ export type BbTableColumn = BaseColumn & {
36
+ /**
37
+ * Text alignment of the column.
38
+ */
39
+ align?: 'left' | 'right' | 'center';
38
40
  /**
39
41
  * Defines the classes to be passed to the `<td>` elements. Can also be a function for dynamic values.
40
42
  */
package/dist/index.d.ts CHANGED
@@ -55,6 +55,7 @@ export { default as BbRadio } from './components/BbRadio/BbRadio.vue';
55
55
  export { default as BbRadioGroup } from './components/BbRadioGroup/BbRadioGroup.vue';
56
56
  export { default as BbRating } from './components/BbRating/BbRating.vue';
57
57
  export { default as BbRatio } from './components/BbRatio/BbRatio.vue';
58
+ export { default as BbRows } from './components/BbRows/BbRows.vue';
58
59
  export { default as BbSelect } from './components/BbSelect/BbSelect.vue';
59
60
  export { default as BbSlider } from './components/BbSlider/BbSlider.vue';
60
61
  export { default as BbSmoothHeight } from './components/BbSmoothHeight/BbSmoothHeight.vue';
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { useToast as ho } from "./index11.js";
11
11
  import { useWizard as go, wizardInjectionKey as So } from "./index12.js";
12
12
  import { default as Do } from "./index13.js";
13
13
  /* empty css */
14
- import { default as Ro } from "./index15.js";
14
+ import { default as ko } from "./index15.js";
15
15
  /* empty css */
16
16
  import { default as Po } from "./index17.js";
17
17
  /* empty css */
@@ -65,7 +65,7 @@ import { default as Sr } from "./index65.js";
65
65
  /* empty css */
66
66
  import { default as Dr } from "./index67.js";
67
67
  /* empty css */
68
- import { default as Rr } from "./index69.js";
68
+ import { default as kr } from "./index69.js";
69
69
  /* empty css */
70
70
  import { default as Pr } from "./index71.js";
71
71
  /* empty css */
@@ -97,39 +97,40 @@ import { default as rt } from "./index96.js";
97
97
  import { default as et } from "./index98.js";
98
98
  /* empty css */
99
99
  import { default as pt } from "./index100.js";
100
+ import { default as mt } from "./index101.js";
100
101
  /* empty css */
101
- import { default as mt } from "./index102.js";
102
+ import { default as ut } from "./index103.js";
102
103
  /* empty css */
103
- import { default as ut } from "./index104.js";
104
+ import { default as xt } from "./index105.js";
104
105
  /* empty css */
105
- import { default as xt } from "./index106.js";
106
+ import { default as lt } from "./index107.js";
106
107
  /* empty css */
107
- import { default as lt } from "./index108.js";
108
+ import { default as bt } from "./index109.js";
108
109
  /* empty css */
109
- import { default as bt } from "./index110.js";
110
+ import { default as ct } from "./index111.js";
110
111
  /* empty css */
111
- import { default as ct } from "./index112.js";
112
+ import { default as It } from "./index113.js";
112
113
  /* empty css */
113
- import { default as It } from "./index114.js";
114
+ import { default as Tt } from "./index115.js";
114
115
  /* empty css */
115
- import { default as Tt } from "./index116.js";
116
+ import { default as St } from "./index117.js";
116
117
  /* empty css */
117
- import { default as St } from "./index118.js";
118
+ import { default as Dt } from "./index119.js";
118
119
  /* empty css */
119
- import { default as Dt } from "./index120.js";
120
+ import { default as kt } from "./index121.js";
120
121
  /* empty css */
121
- import { default as Rt } from "./index122.js";
122
+ import { default as Pt } from "./index123.js";
122
123
  /* empty css */
123
- import { default as Pt } from "./index124.js";
124
124
  import { default as zt } from "./index125.js";
125
125
  import { default as Nt } from "./index126.js";
126
126
  import { default as yt } from "./index127.js";
127
127
  import { default as Kt } from "./index128.js";
128
+ import { default as Ot } from "./index129.js";
128
129
  export {
129
130
  Do as BaseButton,
130
131
  Po as BaseCheckbox,
131
132
  zo as BaseCheckboxGroup,
132
- Ro as BaseColorInput,
133
+ ko as BaseColorInput,
133
134
  No as BaseDatePicker,
134
135
  yo as BaseDatePickerInput,
135
136
  Ko as BaseDialog,
@@ -153,16 +154,16 @@ export {
153
154
  Ir as BbButton,
154
155
  Tr as BbCheckbox,
155
156
  Sr as BbCheckboxGroup,
156
- Pt as BbChip,
157
- zt as BbCollapsible,
157
+ zt as BbChip,
158
+ Nt as BbCollapsible,
158
159
  Dr as BbColorInput,
159
- Rr as BbConfirm,
160
+ kr as BbConfirm,
160
161
  Pr as BbDatePickerInput,
161
162
  zr as BbDialog,
162
163
  Nr as BbDropdown,
163
164
  yr as BbDropdownButton,
164
165
  Kr as BbDropzone,
165
- Nt as BbIcon,
166
+ yt as BbIcon,
166
167
  Or as BbIntersection,
167
168
  Wr as BbNumberInput,
168
169
  Er as BbOffCanvas,
@@ -173,20 +174,21 @@ export {
173
174
  $r as BbRadioGroup,
174
175
  rt as BbRating,
175
176
  et as BbRatio,
176
- pt as BbSelect,
177
- mt as BbSlider,
178
- yt as BbSmoothHeight,
179
- Kt as BbSpinner,
180
- ut as BbSwitch,
181
- xt as BbSwitchGroup,
182
- lt as BbTab,
183
- bt as BbTable,
184
- ct as BbTag,
185
- Tt as BbTextInput,
186
- It as BbTextarea,
187
- St as BbToast,
188
- Dt as BbTooltip,
189
- Rt as BbTree,
177
+ pt as BbRows,
178
+ mt as BbSelect,
179
+ ut as BbSlider,
180
+ Kt as BbSmoothHeight,
181
+ Ot as BbSpinner,
182
+ xt as BbSwitch,
183
+ lt as BbSwitchGroup,
184
+ bt as BbTab,
185
+ ct as BbTable,
186
+ It as BbTag,
187
+ St as BbTextInput,
188
+ Tt as BbTextarea,
189
+ Dt as BbToast,
190
+ kt as BbTooltip,
191
+ Pt as BbTree,
190
192
  po as useBbConfig,
191
193
  mo as useBroadcastChannelInstance,
192
194
  uo as useConfirm,
package/dist/index100.js CHANGED
@@ -1,179 +1,104 @@
1
- import { defineComponent as h, ref as y, computed as v, openBlock as B, createBlock as g, withCtx as n, renderSlot as a, normalizeProps as i, guardReactiveProps as l, createVNode as $, mergeProps as T } from "vue";
2
- import V from "./index27.js";
3
- /* empty css */
4
- import q from "./index37.js";
5
- /* empty css */
6
- const L = /* @__PURE__ */ h({
7
- __name: "BbSelect",
8
- props: {
9
- addOptions: { type: Boolean },
10
- allowWriting: { type: [Boolean, String], default: !0 },
11
- "append:icon": {},
12
- autocomplete: {},
13
- autofocus: {},
14
- comma: { type: Boolean },
15
- dependencies: {},
16
- depsDebounceTime: {},
17
- direction: {},
1
+ import { defineComponent as S, mergeModels as v, computed as y, toRef as u, reactive as $, useModel as b, watch as A, openBlock as h, createElementBlock as V, Fragment as g, renderSlot as r, unref as L, createCommentVNode as R, renderList as q } from "vue";
2
+ import { useOptions as E } from "./index236.js";
3
+ import { useItemValue as Q } from "./index292.js";
4
+ import { isNil as k } from "./index130.js";
5
+ import { indexBy as j } from "./index295.js";
6
+ import { hash as B } from "./index229.js";
7
+ const X = /* @__PURE__ */ S({
8
+ __name: "BbRows",
9
+ props: /* @__PURE__ */ v({
10
+ columns: { default: () => [] },
11
+ dependencies: { default: () => [] },
12
+ depsDebounceTime: { default: 0 },
18
13
  disabled: { type: Boolean },
19
- enforceCoherence: { type: Boolean },
20
- errors: {},
21
- filterBy: { type: [String, Array, Boolean, Function, null], default: () => [] },
22
- hasErrors: { type: Boolean },
23
- hideLabel: { type: Boolean },
24
- hint: {},
25
- id: {},
26
- items: {},
27
- itemText: {},
14
+ items: { type: [Array, Function], default: () => [] },
28
15
  itemValue: {},
29
- label: {},
30
- labelPosition: {},
31
16
  loading: { type: Boolean },
32
- loadingText: {},
33
- max: {},
34
- maxSelectedLabels: {},
35
- modelValue: {},
36
- modelValueDebounceTime: {},
37
- multiple: { type: Boolean },
38
- name: {},
39
- noDataText: {},
40
- persistentHint: { type: Boolean },
41
- placeholder: {},
42
- prefill: { type: [Boolean, String], default: "focus" },
43
- "prepend:icon": {},
44
- required: { type: Boolean },
45
- queryDebounceTime: {},
46
- readonly: { type: Boolean },
47
- resetQueryOnOptionSelected: { type: Boolean },
48
- reverse: { type: Boolean },
49
- stash: { type: Boolean },
50
- transitionDuration: {},
51
- updateOnAnimationFrame: { type: Boolean }
52
- },
53
- emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue"],
54
- setup(d, { emit: u }) {
55
- const r = d, t = u, s = y(!1), m = v(() => r.persistentHint || s.value), b = {
56
- onBlur: (e) => t("blur", e),
57
- onChange: (e) => t("change", e),
58
- onClick: (e) => t("click", e),
59
- onFocus: (e) => {
60
- s.value = !0, t("focus", e);
61
- },
62
- onInactive: () => {
63
- s.value = !1, t("inactive");
64
- },
65
- onInput: (e) => t("input", e),
66
- "onUpdate:modelValue": (e) => t("update:modelValue", e)
67
- };
68
- return (e, w) => (B(), g(V, {
69
- id: e.id,
70
- class: "bb-select",
71
- direction: e.direction,
72
- errors: e.errors,
73
- "has-errors": e.hasErrors,
74
- "hide-label": e.hideLabel,
75
- hint: e.hint,
76
- label: e.label,
77
- "label-position": e.labelPosition,
78
- "model-value": e.modelValue,
79
- name: e.name,
80
- reverse: e.reverse,
81
- "show-hint": m.value
82
- }, {
83
- label: n((p) => [
84
- a(e.$slots, "label", i(l(p)))
85
- ]),
86
- input: n(({ id: p, hasErrors: c, ariaDescribedby: f }) => [
87
- $(q, T({
88
- id: p,
89
- "add-options": e.addOptions,
90
- "allow-writing": e.allowWriting,
91
- "append:icon": r["append:icon"],
92
- "aria-describedby": f,
93
- autocomplete: e.autocomplete,
94
- autofocus: e.autofocus,
95
- comma: e.comma,
96
- dependencies: e.dependencies,
97
- "deps-debounce-time": e.depsDebounceTime,
98
- disabled: e.disabled,
99
- "enforce-coherence": e.enforceCoherence,
100
- "filter-by": e.filterBy,
101
- "has-errors": c,
102
- "item-text": e.itemText,
103
- "item-value": e.itemValue,
104
- items: e.items,
105
- loading: e.loading,
106
- "loading-text": e.loadingText,
107
- max: e.max,
108
- "max-selected-labels": e.maxSelectedLabels,
109
- "model-value": e.modelValue,
110
- "model-value-debounce-time": e.modelValueDebounceTime,
111
- multiple: e.multiple,
112
- name: e.name,
113
- "no-data-text": e.noDataText,
114
- placeholder: e.placeholder,
115
- prefill: e.prefill,
116
- "prepend:icon": r["prepend:icon"],
117
- "query-debounce-time": e.queryDebounceTime,
118
- readonly: e.readonly,
119
- required: e.required,
120
- "reset-query-on-option-selected": e.resetQueryOnOptionSelected,
121
- stash: e.stash,
122
- "transition-duration": e.transitionDuration,
123
- "update-on-animation-frame": e.updateOnAnimationFrame
124
- }, b), {
125
- "append-outer": n((o) => [
126
- a(e.$slots, "append-outer", i(l(o)))
127
- ]),
128
- append: n((o) => [
129
- a(e.$slots, "append", i(l(o)))
130
- ]),
131
- prefix: n((o) => [
132
- a(e.$slots, "prefix", i(l(o)))
133
- ]),
134
- chevron: n((o) => [
135
- a(e.$slots, "chevron", i(l(o)))
136
- ]),
137
- loading: n((o) => [
138
- a(e.$slots, "loading", i(l(o)))
139
- ]),
140
- "no-data": n((o) => [
141
- a(e.$slots, "no-data", i(l(o)))
142
- ]),
143
- "option:append": n((o) => [
144
- a(e.$slots, "option:append", i(l(o)))
145
- ]),
146
- "option:prepend": n((o) => [
147
- a(e.$slots, "option:prepend", i(l(o)))
148
- ]),
149
- option: n((o) => [
150
- a(e.$slots, "option", i(l(o)))
151
- ]),
152
- "options:append": n((o) => [
153
- a(e.$slots, "options:append", i(l(o)))
154
- ]),
155
- "options:prepend": n((o) => [
156
- a(e.$slots, "options:prepend", i(l(o)))
157
- ]),
158
- "prepend-outer": n((o) => [
159
- a(e.$slots, "prepend-outer", i(l(o)))
160
- ]),
161
- prepend: n((o) => [
162
- a(e.$slots, "prepend", i(l(o)))
163
- ]),
164
- suffix: n((o) => [
165
- a(e.$slots, "suffix", i(l(o)))
166
- ]),
167
- spinner: n((o) => [
168
- a(e.$slots, "spinner", i(l(o)))
169
- ]),
170
- _: 2
171
- }, 1040, ["id", "add-options", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "dependencies", "deps-debounce-time", "disabled", "enforce-coherence", "filter-by", "has-errors", "item-text", "item-value", "items", "loading", "loading-text", "max", "max-selected-labels", "model-value", "model-value-debounce-time", "multiple", "name", "no-data-text", "placeholder", "prefill", "prepend:icon", "query-debounce-time", "readonly", "required", "reset-query-on-option-selected", "stash", "transition-duration", "update-on-animation-frame"])
172
- ]),
173
- _: 3
174
- }, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
17
+ max: { default: 1 / 0 },
18
+ modelValue: { default: () => [] },
19
+ multiple: { type: Boolean, default: !0 },
20
+ selectable: { type: [Boolean, Function] }
21
+ }, {
22
+ "unselected-items": {
23
+ default: () => []
24
+ },
25
+ "unselected-itemsModifiers": {},
26
+ "select-all": { type: Boolean, default: !1 },
27
+ "select-allModifiers": {}
28
+ }),
29
+ emits: /* @__PURE__ */ v(["update:modelValue"], ["update:unselected-items", "update:select-all"]),
30
+ setup(d, { emit: I }) {
31
+ const l = d, m = I, { getItemValue: x } = Q(), p = y(() => !!(l.loading || M.value)), { options: O, selectOption: T, unselectOption: D, internalItems: H, innerLoading: M } = E({
32
+ emit: m,
33
+ itemText: void 0,
34
+ itemValue: l.itemValue,
35
+ max: l.max,
36
+ modelValue: u(l, "modelValue"),
37
+ multiple: l.multiple,
38
+ resetQueryOnOptionSelected: !1,
39
+ stash: !1,
40
+ items: u(l, "items"),
41
+ enforceCoherence: !1,
42
+ prefill: !0,
43
+ modelValueDebounceTime: 0,
44
+ dependencies: u(l, "dependencies"),
45
+ depsDebounceTime: l.depsDebounceTime,
46
+ queryDebounceTime: 0,
47
+ disabled: u(l, "disabled")
48
+ }), f = y(() => O.value.map((e) => {
49
+ let s = !l.selectable;
50
+ return typeof l.selectable == "function" && (s = !l.selectable(e.item)), s = s || !!e.disabled, {
51
+ columns: j(
52
+ l.columns.map((t) => {
53
+ const { label: F, key: N } = t;
54
+ let o = x(e.item, t.key);
55
+ return t.formatter && // By default the formatter runs anyway
56
+ (!k(o) || t.formatOnNull !== !1) && (o = t.formatter(o, t.key, e.item)), t.placeholder && k(o) && (o = t.placeholder), {
57
+ value: o,
58
+ key: N,
59
+ label: F
60
+ };
61
+ }),
62
+ (t) => t.key
63
+ ),
64
+ item: e.item,
65
+ text: e.text,
66
+ valueHash: e.valueHash,
67
+ value: e.value,
68
+ selected: !!(e.selected || c.value),
69
+ disabled: s
70
+ };
71
+ })), w = (e) => {
72
+ c.value || T(e), i.delete(e.valueHash), n.value = n.value.filter(
73
+ (s) => B(s) !== B(e.item)
74
+ );
75
+ }, C = (e) => {
76
+ i.add(e.valueHash), n.value.push(e.item), D(e);
77
+ }, i = $(/* @__PURE__ */ new Set()), n = b(d, "unselected-items");
78
+ let c = b(d, "select-all");
79
+ return A(c, () => {
80
+ i.clear(), n.value = [], m("update:modelValue", []);
81
+ }), (e, s) => (h(), V(g, null, [
82
+ p.value ? r(e.$slots, "loading", {
83
+ key: 0,
84
+ items: L(H)
85
+ }) : R("", !0),
86
+ f.value.length ? (h(!0), V(g, { key: 2 }, q(f.value, (a) => r(e.$slots, "default", {
87
+ key: a.valueHash,
88
+ columns: a.columns,
89
+ disabled: a.disabled,
90
+ item: a.item,
91
+ select: () => w(a),
92
+ selected: a.selected,
93
+ unselect: () => C(a),
94
+ value: a.value
95
+ })), 128)) : r(e.$slots, "no-data", {
96
+ key: 1,
97
+ loading: p.value
98
+ })
99
+ ], 64));
175
100
  }
176
101
  });
177
102
  export {
178
- L as default
103
+ X as default
179
104
  };