bitboss-ui 2.0.116 → 2.0.118

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 (200) hide show
  1. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +4 -0
  2. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +32 -6
  3. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
  4. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +33 -357
  5. package/dist/components/BaseTag/BaseTag.vue.d.ts +17 -3
  6. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -0
  7. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
  8. package/dist/components/BbButton/BbButton.vue.d.ts +4 -4
  9. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +4 -0
  10. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
  11. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +76 -89
  12. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +75 -89
  13. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
  14. package/dist/components/BbRows/BbRows.vue.d.ts +70 -85
  15. package/dist/components/BbSelect/BbSelect.vue.d.ts +5 -10
  16. package/dist/components/BbTable/BbTable.vue.d.ts +63 -91
  17. package/dist/components/BbTable/types.d.ts +46 -27
  18. package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
  19. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
  20. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
  21. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
  22. package/dist/components/ClearableButton.vue.d.ts +2 -0
  23. package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
  24. package/dist/components/ListBox.vue.d.ts +40 -44
  25. package/dist/index100.js +91 -82
  26. package/dist/index101.js +35 -42
  27. package/dist/index111.js +235 -211
  28. package/dist/index113.js +6 -4
  29. package/dist/index115.js +17 -15
  30. package/dist/index117.js +14 -12
  31. package/dist/index119.js +2 -2
  32. package/dist/index121.js +59 -61
  33. package/dist/index123.js +1 -1
  34. package/dist/index125.js +1 -1
  35. package/dist/index127.js +1 -1
  36. package/dist/index128.js +1 -1
  37. package/dist/index129.js +1 -1
  38. package/dist/index13.js +2 -2
  39. package/dist/index132.js +2 -2
  40. package/dist/index133.js +2 -2
  41. package/dist/index15.js +38 -33
  42. package/dist/index17.js +3 -3
  43. package/dist/index19.js +8 -8
  44. package/dist/index206.js +126 -3
  45. package/dist/index207.js +5 -53
  46. package/dist/index208.js +127 -0
  47. package/dist/index209.js +16 -13
  48. package/dist/index21.js +16 -16
  49. package/dist/index210.js +16 -2
  50. package/dist/index211.js +19 -4
  51. package/dist/index212.js +15 -2
  52. package/dist/index213.js +2 -86
  53. package/dist/index214.js +4 -0
  54. package/dist/index215.js +40 -24
  55. package/dist/index216.js +13 -17
  56. package/dist/index217.js +18 -49
  57. package/dist/index218.js +6 -15
  58. package/dist/index219.js +15 -3
  59. package/dist/index220.js +65 -12
  60. package/dist/index222.js +13 -126
  61. package/dist/index223.js +5 -5
  62. package/dist/index224.js +2 -125
  63. package/dist/index225.js +367 -14
  64. package/dist/index226.js +3 -16
  65. package/dist/index227.js +7 -19
  66. package/dist/index228.js +8 -15
  67. package/dist/index229.js +19 -2
  68. package/dist/index23.js +116 -111
  69. package/dist/index230.js +27 -2
  70. package/dist/index231.js +3 -41
  71. package/dist/index232.js +249 -12
  72. package/dist/index233.js +50 -18
  73. package/dist/index234.js +43 -5
  74. package/dist/index235.js +5 -15
  75. package/dist/index236.js +60 -5
  76. package/dist/index237.js +3 -369
  77. package/dist/index238.js +115 -19
  78. package/dist/index239.js +4 -27
  79. package/dist/index240.js +2 -8
  80. package/dist/index241.js +4 -250
  81. package/dist/index242.js +2 -52
  82. package/dist/index243.js +80 -38
  83. package/dist/index245.js +25 -60
  84. package/dist/index246.js +17 -3
  85. package/dist/index247.js +51 -7
  86. package/dist/index248.js +15 -4
  87. package/dist/index249.js +10 -113
  88. package/dist/index25.js +7 -7
  89. package/dist/index250.js +16 -2
  90. package/dist/index251.js +2 -2
  91. package/dist/index252.js +2 -2
  92. package/dist/index253.js +1 -1
  93. package/dist/index254.js +2 -2
  94. package/dist/index256.js +2 -2
  95. package/dist/index259.js +214 -10
  96. package/dist/index260.js +9 -2
  97. package/dist/index261.js +2 -8
  98. package/dist/index262.js +9 -23
  99. package/dist/index263.js +23 -90
  100. package/dist/index264.js +92 -0
  101. package/dist/index266.js +6 -16
  102. package/dist/index267.js +16 -224
  103. package/dist/index268.js +9 -3
  104. package/dist/index269.js +11 -0
  105. package/dist/index27.js +1 -1
  106. package/dist/index270.js +8 -7
  107. package/dist/index271.js +281 -4
  108. package/dist/index272.js +6 -3
  109. package/dist/index273.js +2 -17
  110. package/dist/index274.js +2 -9
  111. package/dist/index275.js +2 -28
  112. package/dist/index276.js +2 -281
  113. package/dist/index277.js +2 -6
  114. package/dist/index278.js +2 -2
  115. package/dist/index279.js +126 -2
  116. package/dist/index280.js +431 -2
  117. package/dist/index281.js +176 -2
  118. package/dist/index282.js +2 -2
  119. package/dist/index283.js +3 -2
  120. package/dist/index285.js +5 -429
  121. package/dist/index286.js +22 -176
  122. package/dist/index288.js +7 -22
  123. package/dist/index289.js +13 -0
  124. package/dist/index29.js +48 -40
  125. package/dist/index290.js +88 -6
  126. package/dist/index291.js +200 -11
  127. package/dist/index292.js +436 -2
  128. package/dist/index293.js +127 -2
  129. package/dist/index294.js +224 -2
  130. package/dist/index295.js +2 -2
  131. package/dist/index296.js +2 -2
  132. package/dist/index297.js +1 -1
  133. package/dist/index298.js +1 -21
  134. package/dist/index299.js +4 -0
  135. package/dist/index300.js +2 -9
  136. package/dist/index301.js +25 -197
  137. package/dist/index302.js +21 -435
  138. package/dist/index304.js +3 -88
  139. package/dist/index305.js +3 -8
  140. package/dist/index306.js +17 -3
  141. package/dist/index307.js +1 -1
  142. package/dist/index308.js +3 -214
  143. package/dist/index309.js +2 -2
  144. package/dist/index31.js +2 -2
  145. package/dist/index310.js +2 -3
  146. package/dist/index311.js +5 -67
  147. package/dist/index312.js +67 -5
  148. package/dist/index313.js +3 -3
  149. package/dist/index314.js +5 -3
  150. package/dist/index315.js +7 -57
  151. package/dist/index316.js +2 -32
  152. package/dist/index317.js +3 -5
  153. package/dist/index318.js +57 -7
  154. package/dist/index320.js +32 -6
  155. package/dist/index321.js +25 -18
  156. package/dist/index322.js +7 -53
  157. package/dist/index323.js +7 -53
  158. package/dist/index324.js +17 -5
  159. package/dist/index325.js +53 -47
  160. package/dist/index326.js +53 -2
  161. package/dist/index327.js +47 -480
  162. package/dist/index328.js +482 -0
  163. package/dist/index329.js +2 -424
  164. package/dist/index33.js +8 -8
  165. package/dist/index332.js +426 -0
  166. package/dist/index35.js +4 -4
  167. package/dist/index37.js +172 -161
  168. package/dist/index39.js +4 -4
  169. package/dist/index41.js +2 -2
  170. package/dist/index43.js +8 -8
  171. package/dist/index45.js +92 -85
  172. package/dist/index47.js +40 -36
  173. package/dist/index49.js +39 -35
  174. package/dist/index53.js +1 -1
  175. package/dist/index55.js +1 -1
  176. package/dist/index57.js +2 -2
  177. package/dist/index61.js +11 -10
  178. package/dist/index67.js +14 -12
  179. package/dist/index71.js +5 -3
  180. package/dist/index75.js +37 -35
  181. package/dist/index77.js +54 -50
  182. package/dist/index79.js +2 -2
  183. package/dist/index81.js +1 -1
  184. package/dist/index82.js +11 -9
  185. package/dist/index84.js +4 -4
  186. package/dist/index86.js +2 -2
  187. package/dist/index88.js +5 -5
  188. package/dist/style.css +1 -1
  189. package/dist/types/ColumnName.d.ts +4 -0
  190. package/dist/types/Option.d.ts +2 -2
  191. package/dist/types/PrefixWith.d.ts +1 -0
  192. package/package.json +2 -2
  193. package/dist/index221.js +0 -18
  194. package/dist/index244.js +0 -7
  195. package/dist/index265.js +0 -8
  196. package/dist/index284.js +0 -128
  197. package/dist/index287.js +0 -4
  198. package/dist/index303.js +0 -129
  199. /package/dist/{index330.js → index333.js} +0 -0
  200. /package/dist/{index331.js → index334.js} +0 -0
@@ -3,6 +3,10 @@ type Props = {
3
3
  * Name of the icon to be added at the end of the input.
4
4
  */
5
5
  'append:icon'?: string;
6
+ /**
7
+ * Whether the input is clearable.
8
+ */
9
+ clearable?: boolean;
6
10
  /**
7
11
  * Name of the icon to be added at the start of the input.
8
12
  */
@@ -23,7 +27,11 @@ declare function __VLS_template(): {
23
27
  attrs: Partial<{}>;
24
28
  };
25
29
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
+ "click:clear": () => any;
32
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
33
+ "onClick:clear"?: (() => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
35
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
36
  export default _default;
29
37
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,60 +1,56 @@
1
1
  import { Option } from '../types/Option';
2
- type Props = {
3
- /**
4
- * Sets the listbox in a compact state.
5
- */
6
- compact?: boolean;
7
- options: Option[];
8
- open?: boolean;
9
- loading?: boolean;
10
- transitionDuration?: number;
11
- loadingText?: string;
12
- noDataText?: string;
13
- };
14
- declare function __VLS_template(): {
2
+ declare const _default: <Item = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ readonly "onOption:unselected"?: ((option: Option) => any) | undefined;
5
+ readonly "onOption:selected"?: ((option: Option) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onOption:unselected" | "onOption:selected"> & {
7
+ /**
8
+ * Sets the listbox in a compact state.
9
+ */
10
+ compact?: boolean;
11
+ options: Option<Item>[];
12
+ open?: boolean;
13
+ loading?: boolean;
14
+ transitionDuration?: number;
15
+ loadingText?: string;
16
+ noDataText?: string;
17
+ }> & import('vue').PublicProps;
18
+ expose(exposed: import('vue').ShallowUnwrapRef<{
19
+ focusNext: () => void;
20
+ focusPrevious: () => Promise<void>;
21
+ focusFirst: () => void;
22
+ focusFirstSelected: () => void;
23
+ focusLast: () => void;
24
+ focusLastSelected: () => void;
25
+ blur: () => void;
26
+ confirmOption: () => void;
27
+ focusByHash: (hash: Option["valueHash"]) => void;
28
+ getHighlighted: () => Option<Item> | undefined;
29
+ }>): void;
30
+ attrs: any;
15
31
  slots: Partial<Record<"loading", (_: {}) => any>> & Partial<Record<"no-data", (_: {}) => any>> & {
16
32
  "options:prepend"?(_: {}): any;
17
33
  option?(_: {
18
34
  disabled: boolean;
19
35
  focused: boolean;
20
36
  index: number;
21
- item: any;
37
+ item: Item;
22
38
  selected: boolean;
23
39
  text: string;
24
40
  value: any;
25
41
  }): any;
26
42
  "options:append"?(_: {}): any;
27
43
  };
28
- refs: {
29
- inner: HTMLDivElement;
44
+ emit: {
45
+ (e: "option:selected", option: Option): void;
46
+ (e: "option:unselected", option: Option): void;
30
47
  };
31
- attrs: Partial<{}>;
48
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
49
+ [key: string]: any;
50
+ }> & {
51
+ __ctx?: Awaited<typeof __VLS_setup>;
32
52
  };
33
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
- declare const __VLS_component: import('vue').DefineComponent<Props, {
35
- focusNext: () => void;
36
- focusPrevious: () => Promise<void>;
37
- focusFirst: () => void;
38
- focusFirstSelected: () => void;
39
- focusLast: () => void;
40
- focusLastSelected: () => void;
41
- blur: () => void;
42
- confirmOption: () => void;
43
- focusByHash: (hash: Option["valueHash"]) => void;
44
- getHighlighted: () => Option | undefined;
45
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
46
- "option:unselected": (option: Option) => any;
47
- "option:selected": (option: Option) => any;
48
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
49
- "onOption:unselected"?: ((option: Option) => any) | undefined;
50
- "onOption:selected"?: ((option: Option) => any) | undefined;
51
- }>, {
52
- transitionDuration: number;
53
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
55
53
  export default _default;
56
- type __VLS_WithTemplateSlots<T, S> = T & {
57
- new (): {
58
- $slots: S;
59
- };
60
- };
54
+ type __VLS_PrettifyLocal<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
package/dist/index100.js CHANGED
@@ -1,16 +1,16 @@
1
- import { defineComponent as R, mergeModels as b, computed as I, toRef as m, reactive as j, useModel as B, watch as E, openBlock as g, createElementBlock as k, Fragment as H, renderSlot as p, unref as x, createCommentVNode as G, renderList as U } from "vue";
2
- import { useItemValue as W } from "./index274.js";
3
- import { isNil as w } from "./index251.js";
4
- import { indexBy as q } from "./index305.js";
5
- import { hash as M } from "./index219.js";
6
- import { useItemsGetter as z } from "./index215.js";
7
- import { usePrefill as J } from "./index221.js";
8
- import { useIndexById as K } from "./index216.js";
9
- import { useBaseOptions as Q } from "./index217.js";
10
- import { useHashedWatcher as X } from "./index220.js";
11
- const de = /* @__PURE__ */ R({
1
+ import { defineComponent as D, computed as V, toRef as r, reactive as E, watch as m, ref as L, openBlock as b, createElementBlock as B, Fragment as g, renderSlot as i, unref as P, createCommentVNode as R, renderList as j } from "vue";
2
+ import { useItemValue as G } from "./index269.js";
3
+ import { isNil as k } from "./index252.js";
4
+ import { indexBy as U } from "./index270.js";
5
+ import { hash as p } from "./index231.js";
6
+ import { useItemsGetter as W } from "./index245.js";
7
+ import { usePrefill as q } from "./index250.js";
8
+ import { useIndexById as z } from "./index246.js";
9
+ import { useBaseOptions as J } from "./index247.js";
10
+ import { useHashedWatcher as K } from "./index249.js";
11
+ const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
- props: /* @__PURE__ */ b({
13
+ props: {
14
14
  columns: { default: () => [] },
15
15
  dependencies: { default: () => [] },
16
16
  depsDebounceTime: { default: 0 },
@@ -21,109 +21,118 @@ const de = /* @__PURE__ */ R({
21
21
  max: { default: 1 / 0 },
22
22
  modelValue: { default: () => [] },
23
23
  multiple: { type: Boolean, default: !0 },
24
- selectable: { type: [Boolean, Function] }
25
- }, {
26
- "unselected-items": {
27
- default: () => []
28
- },
29
- "unselected-itemsModifiers": {},
30
- "select-all": { type: Boolean, default: !1 },
31
- "select-allModifiers": {}
32
- }),
33
- emits: /* @__PURE__ */ b(["update:modelValue"], ["update:unselected-items", "update:select-all"]),
34
- setup(r, { emit: O }) {
35
- const l = r, o = O, { getItemValue: S } = W(), f = I(() => !!(l.loading || F.value)), {
24
+ selectable: { type: [Boolean, Function] },
25
+ selectAll: { type: Boolean },
26
+ unselectedItems: { default: () => [] }
27
+ },
28
+ emits: ["update:modelValue", "update:unselectedItems"],
29
+ setup(H, { emit: x }) {
30
+ const t = H, u = x, { getItemValue: A } = G(), f = V(() => !!(t.loading || w.value)), {
36
31
  getter: v,
37
32
  items: y,
38
- loading: F
39
- } = z({
40
- items: m(l, "items")
41
- }), { hasPrefilled: N } = J({
33
+ loading: w
34
+ } = W({
35
+ items: r(t, "items")
36
+ }), { hasPrefilled: O } = q({
42
37
  onStart: !0,
43
- currentValue: l.modelValue,
44
- multiple: l.multiple,
38
+ currentValue: t.modelValue,
39
+ multiple: t.multiple,
45
40
  fn: async ({ prefill: e }) => {
46
- await v(e, l.modelValue);
41
+ await v(e, t.modelValue);
47
42
  }
48
- }), { data: h } = K({
49
- items: m(l, "modelValue")
50
- }), { options: T } = Q({
51
- disabled: m(l, "disabled"),
43
+ }), { data: h } = z({
44
+ items: r(t, "modelValue")
45
+ }), { options: S } = J({
46
+ disabled: r(t, "disabled"),
52
47
  items: y,
53
48
  itemText: void 0,
54
- itemValue: l.itemValue,
55
- max: l.max,
49
+ itemValue: t.itemValue,
50
+ max: t.max,
56
51
  selectable: !0,
57
52
  selectedIndexedByHash: h
58
- }), $ = async (e) => {
59
- l.multiple ? o("update:modelValue", l.modelValue.concat(e.value)) : o("update:modelValue", e.value);
60
- }, A = async (e) => {
61
- if (l.multiple) {
62
- const t = { ...h.value };
63
- delete t[e.valueHash], o("update:modelValue", Object.values(t));
53
+ }), F = async (e) => {
54
+ t.multiple ? u("update:modelValue", t.modelValue.concat(e.value)) : u("update:modelValue", e.value);
55
+ }, N = async (e) => {
56
+ if (t.multiple) {
57
+ const l = { ...h.value };
58
+ delete l[e.valueHash], u("update:modelValue", Object.values(l));
64
59
  } else
65
- o("update:modelValue", null);
60
+ u("update:modelValue", null);
66
61
  };
67
- X(
68
- () => [l.dependencies, l.items],
62
+ K(
63
+ () => [t.dependencies, t.items],
69
64
  async () => {
70
- N.value && await v(!1, l.modelValue);
65
+ O.value && await v(!1, t.modelValue);
71
66
  },
72
67
  {
73
- debounce: l.depsDebounceTime
68
+ debounce: t.depsDebounceTime
74
69
  }
75
70
  );
76
- const V = I(() => T.value.map((e) => {
77
- let t = !l.selectable;
78
- typeof l.selectable == "function" && (t = !l.selectable(e.item)), t = t || !!e.disabled;
79
- const a = q(
80
- l.columns.map((s) => {
81
- const { label: L, key: P } = s;
82
- let u = S(e.item, s.key);
71
+ const I = V(() => S.value.map((e) => {
72
+ let l = !t.selectable;
73
+ typeof t.selectable == "function" && (l = !t.selectable(e.item)), l = l || !!e.disabled;
74
+ const a = U(
75
+ t.columns.map((s) => {
76
+ const { label: $, key: C } = s;
77
+ let n = A(e.item, s.key);
83
78
  return s.formatter && // By default the formatter runs anyway
84
- (!w(u) || s.formatOnNull !== !1) && (u = s.formatter(u, s.key, e.item)), s.placeholder && w(u) && (u = s.placeholder), {
85
- value: u,
86
- key: P,
87
- label: L
79
+ (!k(n) || s.formatOnNull !== !1) && (n = s.formatter(n, s.key, e.item)), s.placeholder && k(n) && (n = s.placeholder), {
80
+ value: n,
81
+ key: C,
82
+ label: $
88
83
  };
89
84
  }),
90
85
  (s) => s.key
91
- ), i = !!(e.selected || c.value) && !n.has(e.valueHash);
86
+ ), c = !!(e.selected || d.value) && !o.has(e.valueHash);
92
87
  return {
93
88
  columns: a,
94
89
  item: e.item,
95
90
  text: e.text,
96
91
  valueHash: e.valueHash,
97
92
  value: e.value,
98
- selected: i,
99
- disabled: t
93
+ selected: c,
94
+ disabled: l
100
95
  };
101
- })), C = (e) => {
102
- c.value || $(e), n.delete(e.valueHash), d.value = d.value.filter(
103
- (t) => M(t) !== M(e.value)
96
+ })), T = (e) => {
97
+ d.value || F(e), o.delete(e.valueHash), u(
98
+ "update:unselectedItems",
99
+ t.unselectedItems.filter((l) => p(l) !== p(e.value))
104
100
  );
105
- }, D = (e) => {
106
- n.add(e.valueHash), d.value.push(e.value), A(e);
107
- }, n = j(/* @__PURE__ */ new Set()), d = B(r, "unselected-items");
108
- let c = B(r, "select-all");
109
- return E(c, () => {
110
- n.clear(), d.value = [], o("update:modelValue", []);
111
- }), (e, t) => (g(), k(H, null, [
112
- f.value ? p(e.$slots, "loading", {
101
+ }, _ = (e) => {
102
+ o.add(e.valueHash), u("update:unselectedItems", [...t.unselectedItems, e.value]), N(e);
103
+ }, o = E(/* @__PURE__ */ new Set());
104
+ m(
105
+ () => t.unselectedItems,
106
+ () => {
107
+ o.clear(), t.unselectedItems.forEach((e) => {
108
+ o.add(p(e));
109
+ });
110
+ }
111
+ );
112
+ const d = L(t.selectAll);
113
+ return m(
114
+ () => t.selectAll,
115
+ () => {
116
+ d.value = t.selectAll;
117
+ }
118
+ ), m(d, () => {
119
+ o.clear(), u("update:unselectedItems", []), u("update:modelValue", []);
120
+ }), (e, l) => (b(), B(g, null, [
121
+ f.value ? i(e.$slots, "loading", {
113
122
  key: 0,
114
- items: x(y)
115
- }) : G("", !0),
116
- V.value.length ? (g(!0), k(H, { key: 2 }, U(V.value, (a, i) => p(e.$slots, "default", {
117
- key: a.valueHash + x(c),
123
+ items: P(y)
124
+ }) : R("", !0),
125
+ I.value.length ? (b(!0), B(g, { key: 2 }, j(I.value, (a, c) => i(e.$slots, "default", {
126
+ key: a.valueHash + d.value,
118
127
  checked: a.selected,
119
128
  columns: a.columns,
120
129
  disabled: a.disabled,
121
- index: i,
130
+ index: c,
122
131
  item: a.item,
123
- select: () => C(a),
124
- unselect: () => D(a),
132
+ select: () => T(a),
133
+ unselect: () => _(a),
125
134
  value: a.value
126
- })), 128)) : p(e.$slots, "no-data", {
135
+ })), 128)) : i(e.$slots, "no-data", {
127
136
  key: 1,
128
137
  loading: f.value
129
138
  })
@@ -131,5 +140,5 @@ const de = /* @__PURE__ */ R({
131
140
  }
132
141
  });
133
142
  export {
134
- de as default
143
+ oe as default
135
144
  };
package/dist/index101.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, ref as y, computed as g, openBlock as v, createBlock as B, withCtx as n, renderSlot as a, normalizeProps as l, guardReactiveProps as i, createVNode as $, mergeProps as T } from "vue";
1
+ import { defineComponent as h, ref as y, computed as g, openBlock as v, createBlock as B, withCtx as a, renderSlot as n, normalizeProps as l, guardReactiveProps as i, createVNode as $, mergeProps as T } from "vue";
2
2
  import V from "./index27.js";
3
3
  /* empty css */
4
4
  import w from "./index37.js";
@@ -10,6 +10,7 @@ const k = /* @__PURE__ */ h({
10
10
  "append:icon": {},
11
11
  autocomplete: {},
12
12
  autofocus: {},
13
+ clearable: { type: Boolean },
13
14
  comma: { type: Boolean },
14
15
  compact: { type: Boolean },
15
16
  dependencies: {},
@@ -53,16 +54,16 @@ const k = /* @__PURE__ */ h({
53
54
  },
54
55
  emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue", "option:add"],
55
56
  setup(d, { emit: m }) {
56
- const r = d, t = m, p = y(!1), u = g(() => r.persistentHint || p.value), c = {
57
+ const r = d, t = m, s = y(!1), u = g(() => r.persistentHint || s.value), c = {
57
58
  onBlur: (e) => t("blur", e),
58
59
  onChange: (e) => t("change", e),
59
60
  onClick: (e) => t("click", e),
60
61
  "onOption:add": (e) => t("option:add", e),
61
62
  onFocus: (e) => {
62
- p.value = !0, t("focus", e);
63
+ s.value = !0, t("focus", e);
63
64
  },
64
65
  onInactive: () => {
65
- p.value = !1, t("inactive");
66
+ s.value = !1, t("inactive");
66
67
  },
67
68
  onInput: (e) => t("input", e),
68
69
  "onUpdate:modelValue": (e) => t("update:modelValue", e)
@@ -83,17 +84,18 @@ const k = /* @__PURE__ */ h({
83
84
  reverse: e.reverse,
84
85
  "show-hint": u.value
85
86
  }, {
86
- label: n((s) => [
87
- a(e.$slots, "label", l(i(s)))
87
+ label: a((p) => [
88
+ n(e.$slots, "label", l(i(p)))
88
89
  ]),
89
- input: n(({ id: s, hasErrors: b, ariaDescribedby: f }) => [
90
+ input: a(({ id: p, hasErrors: b, ariaDescribedby: f }) => [
90
91
  $(w, T({
91
- id: s,
92
+ id: p,
92
93
  "allow-writing": e.allowWriting,
93
94
  "append:icon": r["append:icon"],
94
95
  "aria-describedby": f,
95
96
  autocomplete: e.autocomplete,
96
97
  autofocus: e.autofocus,
98
+ clearable: e.clearable,
97
99
  comma: e.comma,
98
100
  compact: e.compact,
99
101
  dependencies: e.dependencies,
@@ -126,53 +128,44 @@ const k = /* @__PURE__ */ h({
126
128
  "transition-duration": e.transitionDuration,
127
129
  "update-on-animation-frame": e.updateOnAnimationFrame
128
130
  }, c), {
129
- "append-outer": n((o) => [
130
- a(e.$slots, "append-outer", l(i(o)))
131
+ "append-outer": a((o) => [
132
+ n(e.$slots, "append-outer", l(i(o)))
131
133
  ]),
132
- append: n((o) => [
133
- a(e.$slots, "append", l(i(o)))
134
+ append: a((o) => [
135
+ n(e.$slots, "append", l(i(o)))
134
136
  ]),
135
- prefix: n((o) => [
136
- a(e.$slots, "prefix", l(i(o)))
137
+ prefix: a((o) => [
138
+ n(e.$slots, "prefix", l(i(o)))
137
139
  ]),
138
- chevron: n((o) => [
139
- a(e.$slots, "chevron", l(i(o)))
140
+ chevron: a((o) => [
141
+ n(e.$slots, "chevron", l(i(o)))
140
142
  ]),
141
- loading: n((o) => [
142
- a(e.$slots, "loading", l(i(o)))
143
+ loading: a((o) => [
144
+ n(e.$slots, "loading", l(i(o)))
143
145
  ]),
144
- "no-data": n((o) => [
145
- a(e.$slots, "no-data", l(i(o)))
146
+ "no-data": a((o) => [
147
+ n(e.$slots, "no-data", l(i(o)))
146
148
  ]),
147
- "option:append": n((o) => [
148
- a(e.$slots, "option:append", l(i(o)))
149
+ option: a((o) => [
150
+ n(e.$slots, "option", l(i(o)))
149
151
  ]),
150
- "option:prepend": n((o) => [
151
- a(e.$slots, "option:prepend", l(i(o)))
152
+ "options:append": a((o) => [
153
+ n(e.$slots, "options:append", l(i(o)))
152
154
  ]),
153
- option: n((o) => [
154
- a(e.$slots, "option", l(i(o)))
155
+ "options:prepend": a((o) => [
156
+ n(e.$slots, "options:prepend", l(i(o)))
155
157
  ]),
156
- "options:append": n((o) => [
157
- a(e.$slots, "options:append", l(i(o)))
158
+ "prepend-outer": a((o) => [
159
+ n(e.$slots, "prepend-outer", l(i(o)))
158
160
  ]),
159
- "options:prepend": n((o) => [
160
- a(e.$slots, "options:prepend", l(i(o)))
161
+ prepend: a((o) => [
162
+ n(e.$slots, "prepend", l(i(o)))
161
163
  ]),
162
- "prepend-outer": n((o) => [
163
- a(e.$slots, "prepend-outer", l(i(o)))
164
- ]),
165
- prepend: n((o) => [
166
- a(e.$slots, "prepend", l(i(o)))
167
- ]),
168
- suffix: n((o) => [
169
- a(e.$slots, "suffix", l(i(o)))
170
- ]),
171
- spinner: n((o) => [
172
- a(e.$slots, "spinner", l(i(o)))
164
+ suffix: a((o) => [
165
+ n(e.$slots, "suffix", l(i(o)))
173
166
  ]),
174
167
  _: 2
175
- }, 1040, ["id", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "comma", "compact", "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", "selected-labels-fn", "stash", "teleport-target", "transition-duration", "update-on-animation-frame"])
168
+ }, 1040, ["id", "allow-writing", "append:icon", "aria-describedby", "autocomplete", "autofocus", "clearable", "comma", "compact", "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", "selected-labels-fn", "stash", "teleport-target", "transition-duration", "update-on-animation-frame"])
176
169
  ]),
177
170
  _: 3
178
171
  }, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));