bitboss-ui 2.0.105 → 2.0.107

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 (175) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
  3. package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
  4. package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbRows/BbRows.vue.d.ts +1 -0
  8. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  9. package/dist/components/BbTable/types.d.ts +13 -0
  10. package/dist/components/ListBox.vue.d.ts +0 -2
  11. package/dist/composables/useLocale.d.ts +1 -1
  12. package/dist/i18n/en.d.ts +45 -0
  13. package/dist/i18n/it.d.ts +45 -0
  14. package/dist/index100.js +46 -45
  15. package/dist/index111.js +223 -205
  16. package/dist/index119.js +2 -2
  17. package/dist/index121.js +55 -54
  18. package/dist/index123.js +1 -1
  19. package/dist/index125.js +14 -13
  20. package/dist/index127.js +1 -1
  21. package/dist/index128.js +1 -1
  22. package/dist/index129.js +1 -1
  23. package/dist/index13.js +2 -2
  24. package/dist/index133.js +2 -2
  25. package/dist/index15.js +36 -35
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +63 -64
  28. package/dist/index207.js +8 -2
  29. package/dist/index208.js +3 -4
  30. package/dist/index209.js +53 -2
  31. package/dist/index21.js +110 -103
  32. package/dist/index211.js +13 -16
  33. package/dist/index212.js +3 -16
  34. package/dist/index213.js +40 -18
  35. package/dist/index214.js +6 -19
  36. package/dist/index215.js +7 -27
  37. package/dist/index216.js +12 -3
  38. package/dist/index217.js +13 -2
  39. package/dist/index218.js +2 -8
  40. package/dist/index219.js +4 -250
  41. package/dist/index220.js +2 -52
  42. package/dist/index221.js +3 -44
  43. package/dist/index222.js +20 -5
  44. package/dist/index223.js +4 -60
  45. package/dist/index224.js +281 -84
  46. package/dist/index225.js +18 -0
  47. package/dist/index226.js +16 -8
  48. package/dist/index227.js +18 -24
  49. package/dist/index228.js +14 -16
  50. package/dist/index229.js +18 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +27 -15
  53. package/dist/index231.js +2 -12
  54. package/dist/index232.js +250 -16
  55. package/dist/index233.js +52 -3
  56. package/dist/index234.js +44 -41
  57. package/dist/index235.js +5 -6
  58. package/dist/index236.js +60 -7
  59. package/dist/index237.js +126 -12
  60. package/dist/index238.js +124 -52
  61. package/dist/index239.js +4 -0
  62. package/dist/index240.js +4 -12
  63. package/dist/index241.js +369 -3
  64. package/dist/index242.js +85 -125
  65. package/dist/index244.js +25 -2
  66. package/dist/index245.js +16 -19
  67. package/dist/index246.js +48 -5
  68. package/dist/index247.js +12 -366
  69. package/dist/index248.js +12 -4
  70. package/dist/index249.js +16 -2
  71. package/dist/index25.js +44 -41
  72. package/dist/index250.js +2 -2
  73. package/dist/index251.js +18 -2
  74. package/dist/index252.js +105 -17
  75. package/dist/{index255.js → index254.js} +2 -2
  76. package/dist/index256.js +14 -0
  77. package/dist/index257.js +2 -12
  78. package/dist/index258.js +2 -10
  79. package/dist/index259.js +9 -2
  80. package/dist/index260.js +3 -6
  81. package/dist/index261.js +8 -15
  82. package/dist/index262.js +23 -9
  83. package/dist/index263.js +88 -8
  84. package/dist/index265.js +6 -89
  85. package/dist/index266.js +18 -0
  86. package/dist/index267.js +9 -4
  87. package/dist/index268.js +9 -6
  88. package/dist/index269.js +8 -2
  89. package/dist/index27.js +1 -1
  90. package/dist/index270.js +28 -2
  91. package/dist/index271.js +3 -2
  92. package/dist/index273.js +7 -2
  93. package/dist/index274.js +431 -2
  94. package/dist/index275.js +1 -1
  95. package/dist/index276.js +89 -2
  96. package/dist/index277.js +7 -2
  97. package/dist/index278.js +11 -2
  98. package/dist/index279.js +4 -28
  99. package/dist/index280.js +224 -22
  100. package/dist/index281.js +202 -0
  101. package/dist/index282.js +175 -6
  102. package/dist/index283.js +6 -3
  103. package/dist/index284.js +2 -7
  104. package/dist/index285.js +2 -11
  105. package/dist/index286.js +2 -17
  106. package/dist/index287.js +2 -9
  107. package/dist/index288.js +2 -431
  108. package/dist/index289.js +2 -2
  109. package/dist/index29.js +2 -2
  110. package/dist/index290.js +2 -89
  111. package/dist/index291.js +2 -3
  112. package/dist/index292.js +4 -0
  113. package/dist/index293.js +2 -224
  114. package/dist/index294.js +2 -200
  115. package/dist/index295.js +22 -2
  116. package/dist/index297.js +2 -176
  117. package/dist/index298.js +125 -21
  118. package/dist/index299.js +24 -0
  119. package/dist/index301.js +3 -436
  120. package/dist/index302.js +16 -126
  121. package/dist/index303.js +436 -3
  122. package/dist/index304.js +127 -3
  123. package/dist/index305.js +3 -213
  124. package/dist/index306.js +3 -3
  125. package/dist/index307.js +214 -3
  126. package/dist/index308.js +3 -58
  127. package/dist/index309.js +3 -7
  128. package/dist/index31.js +2 -2
  129. package/dist/index310.js +3 -19
  130. package/dist/index311.js +56 -64
  131. package/dist/index312.js +2 -7
  132. package/dist/index313.js +67 -2
  133. package/dist/index314.js +5 -5
  134. package/dist/index315.js +32 -7
  135. package/dist/index316.js +7 -8
  136. package/dist/index317.js +18 -7
  137. package/dist/index318.js +53 -5
  138. package/dist/index319.js +53 -3
  139. package/dist/index320.js +46 -3
  140. package/dist/index321.js +6 -32
  141. package/dist/index322.js +4 -46
  142. package/dist/index323.js +8 -2
  143. package/dist/index324.js +2 -2
  144. package/dist/index325.js +6 -0
  145. package/dist/index326.js +2 -424
  146. package/dist/index328.js +424 -2
  147. package/dist/index33.js +45 -45
  148. package/dist/index35.js +56 -55
  149. package/dist/index37.js +166 -165
  150. package/dist/index39.js +4 -4
  151. package/dist/index41.js +2 -2
  152. package/dist/index43.js +70 -71
  153. package/dist/index45.js +7 -7
  154. package/dist/index47.js +2 -2
  155. package/dist/index49.js +2 -2
  156. package/dist/index53.js +28 -27
  157. package/dist/index55.js +1 -1
  158. package/dist/index57.js +2 -2
  159. package/dist/index61.js +32 -31
  160. package/dist/index75.js +3 -3
  161. package/dist/index77.js +87 -86
  162. package/dist/index79.js +2 -2
  163. package/dist/index81.js +1 -1
  164. package/dist/index84.js +45 -44
  165. package/dist/index86.js +67 -66
  166. package/dist/index88.js +69 -67
  167. package/package.json +1 -1
  168. package/dist/index210.js +0 -283
  169. package/dist/index243.js +0 -127
  170. package/dist/index253.js +0 -108
  171. package/dist/index264.js +0 -25
  172. package/dist/index296.js +0 -128
  173. package/dist/index300.js +0 -10
  174. /package/dist/{index327.js → index329.js} +0 -0
  175. /package/dist/{index272.js → index330.js} +0 -0
@@ -77,7 +77,6 @@ declare const __VLS_component: import('vue').DefineComponent<BaseDialogProps, {}
77
77
  size?: any;
78
78
  } & string) | keyof Sizes;
79
79
  transition: string;
80
- closeLabel: string;
81
80
  panelClasses: import('../../types/Classes').Classes;
82
81
  overlayClasses: import('../../types/Classes').Classes;
83
82
  showClose: boolean;
@@ -469,8 +469,6 @@ declare function __VLS_template(): {
469
469
  "option:selected": (option: BaseOption) => any;
470
470
  }, string, {
471
471
  transitionDuration: number;
472
- loadingText: string;
473
- noDataText: string;
474
472
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
475
473
  beforeCreate?: (() => void) | (() => void)[];
476
474
  created?: (() => void) | (() => void)[];
@@ -493,8 +491,6 @@ declare function __VLS_template(): {
493
491
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
494
492
  } & Readonly<{
495
493
  transitionDuration: number;
496
- loadingText: string;
497
- noDataText: string;
498
494
  }> & Omit<Readonly<{
499
495
  compact?: boolean;
500
496
  options: BaseOption[];
@@ -506,7 +502,7 @@ declare function __VLS_template(): {
506
502
  }> & Readonly<{
507
503
  "onOption:unselected"?: ((option: BaseOption) => any) | undefined;
508
504
  "onOption:selected"?: ((option: BaseOption) => any) | undefined;
509
- }>, "blur" | "focusNext" | "focusPrevious" | "focusFirst" | "focusFirstSelected" | "focusLast" | "focusLastSelected" | "confirmOption" | "focusByHash" | "getHighlighted" | ("transitionDuration" | "loadingText" | "noDataText")> & import('vue').ShallowUnwrapRef<{
505
+ }>, "transitionDuration" | "blur" | "focusNext" | "focusPrevious" | "focusFirst" | "focusFirstSelected" | "focusLast" | "focusLastSelected" | "confirmOption" | "focusByHash" | "getHighlighted"> & import('vue').ShallowUnwrapRef<{
510
506
  focusNext: () => void;
511
507
  focusPrevious: () => Promise<void>;
512
508
  focusFirst: () => void;
@@ -560,9 +556,7 @@ declare const __VLS_component: import('vue').DefineComponent<BaseSelectProps, {}
560
556
  allowWriting: boolean | "not-mobile";
561
557
  dependencies: any[];
562
558
  depsDebounceTime: number;
563
- loadingText: string;
564
559
  modelValueDebounceTime: number;
565
- noDataText: string;
566
560
  max: number;
567
561
  prefill: boolean | "focus";
568
562
  filterBy: string | string[] | false | ((value: any, item: any) => boolean) | null;
@@ -42,7 +42,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbAlertProps, {}, {
42
42
  }, string, import('vue').PublicProps, Readonly<BbAlertProps> & Readonly<{
43
43
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
44
44
  }>, {
45
- closeLabel: string;
46
45
  theme: string;
47
46
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
48
47
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -28,7 +28,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbChipProps, {}, {}
28
28
  "onClick:clear"?: ((...args: any[]) => any) | undefined;
29
29
  }>, {
30
30
  clearable: boolean;
31
- clearableLabel: string;
32
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
32
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
33
  export default _default;
@@ -84,7 +84,6 @@ declare const __VLS_component: import('vue').DefineComponent<BbOffCanvasProps, {
84
84
  size?: any;
85
85
  } & string) | keyof Sizes;
86
86
  transition: string;
87
- closeLabel: string;
88
87
  panelClasses: import('../../types/Classes').Classes;
89
88
  overlayClasses: import('../../types/Classes').Classes;
90
89
  showClose: boolean;
@@ -1,6 +1,6 @@
1
1
  import { CommonProps } from '../../types/CommonProps';
2
2
  import { Placement } from '@floating-ui/vue';
3
- export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
3
+ export type BbPopoverProps = Pick<CommonProps, 'arrowPadding' | 'closeLabel' | 'block' | 'disabled' | 'eager' | 'offset' | 'padding' | 'placement' | 'showClose' | 'theme' | 'transitionDuration'> & {
4
4
  /**
5
5
  * Elements that obtains focus immediately after opening the popover.
6
6
  * By default it's the first tabbable item.
@@ -70,6 +70,7 @@ declare function __VLS_template(): {
70
70
  checked: boolean | undefined;
71
71
  columns: Record<string, ItemColumn>;
72
72
  disabled: boolean | undefined;
73
+ index: number;
73
74
  item: any;
74
75
  select: () => void;
75
76
  unselect: () => void;
@@ -1,4 +1,4 @@
1
- import { BbTableProps, MappedCell, BbTableColumn } from './types';
1
+ import { BbTableProps, BbTableColumn } from './types';
2
2
  import { Classes } from '../../types/Classes';
3
3
  declare let __VLS_typeProps: BbTableProps;
4
4
  type __VLS_PublicProps = {
@@ -109,23 +109,18 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
109
109
  }>, {
110
110
  dependencies: any[];
111
111
  depsDebounceTime: number;
112
- loadingText: string;
113
112
  multiple: boolean;
114
- noDataText: string;
115
113
  modelValue: any;
116
114
  items: any[] | ((prefill: boolean, modelValue?: any[]) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[]) => any[]);
117
115
  max: number;
118
116
  align: "left" | "center" | "right";
119
117
  columns: BbTableColumn[];
120
- actionsText: string;
121
118
  allowSelectAll: boolean;
122
119
  fixedColumns: (number | {
123
120
  index: number;
124
121
  position: "left" | "right";
125
122
  })[];
126
- selectAllLabel: string;
127
- selectText: string;
128
- accessibleLabel: (columns: MappedCell[], item: any) => string;
123
+ actionsText: string;
129
124
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
130
125
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
131
126
  export default _default;
@@ -150,6 +150,14 @@ export type BbTableProps = {
150
150
  * String displayed when there are no items to display.
151
151
  */
152
152
  noDataText?: string;
153
+ /**
154
+ * Current page number starting from 1
155
+ */
156
+ page?: number;
157
+ /**
158
+ * Number of items per page.
159
+ */
160
+ perPage?: number;
153
161
  /**
154
162
  * Sets the input in a readonly state.
155
163
  */
@@ -176,6 +184,10 @@ export type BbTableProps = {
176
184
  * Defines the classes to be passed to the `<th>`.
177
185
  */
178
186
  thClass?: Classes;
187
+ /**
188
+ * Total number of items there is.
189
+ */
190
+ totalItems?: number;
179
191
  };
180
192
  /**
181
193
  * We allow table data classes to be a function so it can depend on the item
@@ -191,6 +203,7 @@ export type MappedItem = Option & {
191
203
  onRowClick: (event: MouseEvent) => void;
192
204
  onRowContextMenu: (event: MouseEvent) => void;
193
205
  onRowDblClick: (event: MouseEvent) => void;
206
+ rowIndex: number | undefined;
194
207
  };
195
208
  /**
196
209
  * Projection that represnets a header
@@ -50,8 +50,6 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
50
50
  "onOption:selected"?: ((option: Option) => any) | undefined;
51
51
  }>, {
52
52
  transitionDuration: number;
53
- loadingText: string;
54
- noDataText: string;
55
53
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
56
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
57
55
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { Locale } from '../i18n';
2
2
  import { NestedKeyOf } from '../types/NestedKeyOf';
3
3
  export declare const useLocale: () => {
4
- t: (path: NestedKeyOf<Locale>) => Readonly<import('vue').Ref<any, any>>;
4
+ t: (path: NestedKeyOf<Locale>, ...args: any[]) => Readonly<import('vue').Ref<any, any>>;
5
5
  };
package/dist/i18n/en.d.ts CHANGED
@@ -4,5 +4,50 @@ declare const _default: {
4
4
  loadingText: string;
5
5
  noDataText: string;
6
6
  };
7
+ colorInput: {
8
+ paletteLabel: string;
9
+ };
10
+ datePicker: {
11
+ monthLabel: string;
12
+ yearLabel: string;
13
+ previousMonthLabel: string;
14
+ nextMonthLabel: string;
15
+ };
16
+ baseDatePickerInput: {
17
+ dateFormat: string;
18
+ dateFormatSingle: string;
19
+ dateFormatRange: string;
20
+ emptyRange: string;
21
+ changeSelectionRange: string;
22
+ changeSelection: string;
23
+ emptySelection: string;
24
+ };
25
+ dialog: {
26
+ closeLabel: string;
27
+ };
28
+ dropdownButton: {
29
+ open: string;
30
+ close: string;
31
+ };
32
+ rating: {
33
+ singleStar: string;
34
+ multipleStars: string;
35
+ };
36
+ select: {
37
+ multipleMaxReached: string;
38
+ };
39
+ chip: {
40
+ clearLabel: string;
41
+ };
42
+ pagination: {
43
+ previous: string;
44
+ next: string;
45
+ };
46
+ table: {
47
+ noDataText: string;
48
+ selectAllLabel: string;
49
+ selectText: string;
50
+ select: string;
51
+ };
7
52
  };
8
53
  export default _default;
package/dist/i18n/it.d.ts CHANGED
@@ -4,5 +4,50 @@ declare const _default: {
4
4
  loadingText: string;
5
5
  noDataText: string;
6
6
  };
7
+ colorInput: {
8
+ paletteLabel: string;
9
+ };
10
+ datePicker: {
11
+ monthLabel: string;
12
+ yearLabel: string;
13
+ previousMonthLabel: string;
14
+ nextMonthLabel: string;
15
+ };
16
+ baseDatePickerInput: {
17
+ dateFormat: string;
18
+ dateFormatSingle: string;
19
+ dateFormatRange: string;
20
+ emptyRange: string;
21
+ changeSelectionRange: string;
22
+ changeSelection: string;
23
+ emptySelection: string;
24
+ };
25
+ dialog: {
26
+ closeLabel: string;
27
+ };
28
+ dropdownButton: {
29
+ open: string;
30
+ close: string;
31
+ };
32
+ rating: {
33
+ singleStar: string;
34
+ multipleStars: string;
35
+ };
36
+ select: {
37
+ multipleMaxReached: string;
38
+ };
39
+ chip: {
40
+ clearLabel: string;
41
+ };
42
+ pagination: {
43
+ previous: string;
44
+ next: string;
45
+ };
46
+ table: {
47
+ noDataText: string;
48
+ selectAllLabel: string;
49
+ selectText: string;
50
+ select: string;
51
+ };
7
52
  };
8
53
  export default _default;
package/dist/index100.js CHANGED
@@ -1,16 +1,16 @@
1
- import { defineComponent as L, mergeModels as V, computed as b, toRef as m, reactive as P, useModel as I, watch as R, openBlock as B, createElementBlock as g, Fragment as k, renderSlot as r, unref as j, createCommentVNode as E, renderList as G } from "vue";
2
- import { useItemValue as U } from "./index287.js";
3
- import { isNil as x } from "./index250.js";
4
- import { indexBy as W } from "./index300.js";
5
- import { hash as H } from "./index216.js";
6
- import { useItemsGetter as q } from "./index227.js";
7
- import { usePrefill as z } from "./index232.js";
8
- import { useIndexById as J } from "./index228.js";
9
- import { useBaseOptions as K } from "./index229.js";
10
- import { useHashedWatcher as Q } from "./index231.js";
11
- const ne = /* @__PURE__ */ L({
1
+ import { defineComponent as P, mergeModels as b, computed as I, toRef as m, reactive as R, useModel as B, watch as j, openBlock as g, createElementBlock as k, Fragment as x, renderSlot as r, unref as E, createCommentVNode as G, renderList as U } from "vue";
2
+ import { useItemValue as W } from "./index268.js";
3
+ import { isNil as H } from "./index257.js";
4
+ import { indexBy as q } from "./index269.js";
5
+ import { hash as w } from "./index208.js";
6
+ import { useItemsGetter as z } from "./index244.js";
7
+ import { usePrefill as J } from "./index249.js";
8
+ import { useIndexById as K } from "./index245.js";
9
+ import { useBaseOptions as Q } from "./index246.js";
10
+ import { useHashedWatcher as X } from "./index248.js";
11
+ const ne = /* @__PURE__ */ P({
12
12
  __name: "BbRows",
13
- props: /* @__PURE__ */ V({
13
+ props: /* @__PURE__ */ b({
14
14
  columns: { default: () => [] },
15
15
  dependencies: { default: () => [] },
16
16
  depsDebounceTime: { default: 0 },
@@ -30,24 +30,24 @@ const ne = /* @__PURE__ */ L({
30
30
  "select-all": { type: Boolean, default: !1 },
31
31
  "select-allModifiers": {}
32
32
  }),
33
- emits: /* @__PURE__ */ V(["update:modelValue"], ["update:unselected-items", "update:select-all"]),
34
- setup(d, { emit: w }) {
35
- const l = d, u = w, { getItemValue: M } = U(), p = b(() => !!(l.loading || O.value)), {
33
+ emits: /* @__PURE__ */ b(["update:modelValue"], ["update:unselected-items", "update:select-all"]),
34
+ setup(d, { emit: M }) {
35
+ const l = d, u = M, { getItemValue: O } = W(), p = I(() => !!(l.loading || S.value)), {
36
36
  getter: f,
37
37
  items: v,
38
- loading: O
39
- } = q({
38
+ loading: S
39
+ } = z({
40
40
  items: m(l, "items")
41
- }), { hasPrefilled: S } = z({
41
+ }), { hasPrefilled: F } = J({
42
42
  onStart: !0,
43
43
  currentValue: l.modelValue,
44
44
  multiple: l.multiple,
45
45
  fn: async ({ prefill: e }) => {
46
46
  await f(e, l.modelValue);
47
47
  }
48
- }), { data: y } = J({
48
+ }), { data: y } = K({
49
49
  items: m(l, "modelValue")
50
- }), { options: F } = K({
50
+ }), { options: N } = Q({
51
51
  disabled: m(l, "disabled"),
52
52
  items: v,
53
53
  itemText: void 0,
@@ -55,36 +55,36 @@ const ne = /* @__PURE__ */ L({
55
55
  max: l.max,
56
56
  selectable: !0,
57
57
  selectedIndexedByHash: y
58
- }), N = async (e) => {
58
+ }), T = async (e) => {
59
59
  l.multiple ? u("update:modelValue", l.modelValue.concat(e.value)) : u("update:modelValue", e.value);
60
- }, T = async (e) => {
60
+ }, $ = async (e) => {
61
61
  if (l.multiple) {
62
62
  const t = { ...y.value };
63
63
  delete t[e.valueHash], u("update:modelValue", Object.values(t));
64
64
  } else
65
65
  u("update:modelValue", null);
66
66
  };
67
- Q(
67
+ X(
68
68
  () => [l.dependencies, l.items],
69
69
  async () => {
70
- S.value && await f(!1, l.modelValue);
70
+ F.value && await f(!1, l.modelValue);
71
71
  },
72
72
  {
73
73
  debounce: l.depsDebounceTime
74
74
  }
75
75
  );
76
- const h = b(() => F.value.map((e) => {
76
+ const h = I(() => N.value.map((e) => {
77
77
  let t = !l.selectable;
78
78
  return typeof l.selectable == "function" && (t = !l.selectable(e.item)), t = t || !!e.disabled, {
79
- columns: W(
79
+ columns: q(
80
80
  l.columns.map((a) => {
81
- const { label: C, key: D } = a;
82
- let o = M(e.item, a.key);
81
+ const { label: D, key: L } = a;
82
+ let o = O(e.item, a.key);
83
83
  return a.formatter && // By default the formatter runs anyway
84
- (!x(o) || a.formatOnNull !== !1) && (o = a.formatter(o, a.key, e.item)), a.placeholder && x(o) && (o = a.placeholder), {
84
+ (!H(o) || a.formatOnNull !== !1) && (o = a.formatter(o, a.key, e.item)), a.placeholder && H(o) && (o = a.placeholder), {
85
85
  value: o,
86
- key: D,
87
- label: C
86
+ key: L,
87
+ label: D
88
88
  };
89
89
  }),
90
90
  (a) => a.key
@@ -96,29 +96,30 @@ const ne = /* @__PURE__ */ L({
96
96
  selected: !!(e.selected || i.value),
97
97
  disabled: t
98
98
  };
99
- })), $ = (e) => {
100
- i.value || N(e), c.delete(e.valueHash), n.value = n.value.filter(
101
- (t) => H(t) !== H(e.item)
99
+ })), A = (e) => {
100
+ i.value || T(e), c.delete(e.valueHash), n.value = n.value.filter(
101
+ (t) => w(t) !== w(e.item)
102
102
  );
103
- }, A = (e) => {
104
- c.add(e.valueHash), n.value.push(e.item), T(e);
105
- }, c = P(/* @__PURE__ */ new Set()), n = I(d, "unselected-items");
106
- let i = I(d, "select-all");
107
- return R(i, () => {
103
+ }, C = (e) => {
104
+ c.add(e.valueHash), n.value.push(e.item), $(e);
105
+ }, c = R(/* @__PURE__ */ new Set()), n = B(d, "unselected-items");
106
+ let i = B(d, "select-all");
107
+ return j(i, () => {
108
108
  c.clear(), n.value = [], u("update:modelValue", []);
109
- }), (e, t) => (B(), g(k, null, [
109
+ }), (e, t) => (g(), k(x, null, [
110
110
  p.value ? r(e.$slots, "loading", {
111
111
  key: 0,
112
- items: j(v)
113
- }) : E("", !0),
114
- h.value.length ? (B(!0), g(k, { key: 2 }, G(h.value, (s) => r(e.$slots, "default", {
112
+ items: E(v)
113
+ }) : G("", !0),
114
+ h.value.length ? (g(!0), k(x, { key: 2 }, U(h.value, (s, V) => r(e.$slots, "default", {
115
115
  key: s.valueHash,
116
116
  checked: s.selected,
117
117
  columns: s.columns,
118
118
  disabled: s.disabled,
119
+ index: V,
119
120
  item: s.item,
120
- select: () => $(s),
121
- unselect: () => A(s),
121
+ select: () => A(s),
122
+ unselect: () => C(s),
122
123
  value: s.value
123
124
  })), 128)) : r(e.$slots, "no-data", {
124
125
  key: 1,