bitboss-ui 2.0.98 → 2.0.100

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 (106) hide show
  1. package/dist/index100.js +3 -3
  2. package/dist/index111.js +6 -6
  3. package/dist/index119.js +1 -1
  4. package/dist/index121.js +4 -4
  5. package/dist/index123.js +1 -1
  6. package/dist/index127.js +1 -1
  7. package/dist/index128.js +1 -1
  8. package/dist/index129.js +1 -1
  9. package/dist/index13.js +1 -1
  10. package/dist/index133.js +2 -2
  11. package/dist/index17.js +3 -3
  12. package/dist/index19.js +3 -3
  13. package/dist/index207.js +1 -1
  14. package/dist/index21.js +9 -9
  15. package/dist/index212.js +8 -5
  16. package/dist/index213.js +5 -16
  17. package/dist/index214.js +10 -10
  18. package/dist/index215.js +15 -18
  19. package/dist/index216.js +18 -18
  20. package/dist/index217.js +14 -22
  21. package/dist/index218.js +27 -3
  22. package/dist/index219.js +3 -2
  23. package/dist/index220.js +2 -8
  24. package/dist/index221.js +5 -5
  25. package/dist/index225.js +1 -1
  26. package/dist/index226.js +126 -3
  27. package/dist/index227.js +124 -40
  28. package/dist/index228.js +2 -6
  29. package/dist/index229.js +41 -7
  30. package/dist/index23.js +13 -13
  31. package/dist/index230.js +5 -11
  32. package/dist/index231.js +5 -126
  33. package/dist/index232.js +12 -125
  34. package/dist/index233.js +369 -2
  35. package/dist/index234.js +168 -5
  36. package/dist/index235.js +83 -368
  37. package/dist/index237.js +7 -83
  38. package/dist/index238.js +4 -0
  39. package/dist/index239.js +4 -8
  40. package/dist/index240.js +2 -3
  41. package/dist/index241.js +3 -2
  42. package/dist/index242.js +7 -4
  43. package/dist/index243.js +3 -2
  44. package/dist/index244.js +1 -1
  45. package/dist/index246.js +1 -1
  46. package/dist/index248.js +1 -1
  47. package/dist/index25.js +6 -6
  48. package/dist/index256.js +3 -3
  49. package/dist/index258.js +3 -3
  50. package/dist/index27.js +1 -1
  51. package/dist/index279.js +2 -431
  52. package/dist/index280.js +126 -2
  53. package/dist/index281.js +424 -82
  54. package/dist/index282.js +22 -9
  55. package/dist/index284.js +2 -126
  56. package/dist/index285.js +3 -22
  57. package/dist/index286.js +14 -0
  58. package/dist/index287.js +8 -199
  59. package/dist/index288.js +1 -1
  60. package/dist/index289.js +17 -8
  61. package/dist/index290.js +3 -435
  62. package/dist/index291.js +6 -126
  63. package/dist/index292.js +11 -3
  64. package/dist/index293.js +199 -11
  65. package/dist/index294.js +434 -7
  66. package/dist/index295.js +126 -16
  67. package/dist/index296.js +4 -4
  68. package/dist/index297.js +9 -7
  69. package/dist/index298.js +88 -10
  70. package/dist/index299.js +8 -224
  71. package/dist/index300.js +224 -4
  72. package/dist/index301.js +3 -2
  73. package/dist/index302.js +1 -1
  74. package/dist/index303.js +213 -3
  75. package/dist/index304.js +5 -213
  76. package/dist/index305.js +2 -5
  77. package/dist/index307.js +6 -6
  78. package/dist/index308.js +6 -18
  79. package/dist/index309.js +17 -5
  80. package/dist/index31.js +2 -2
  81. package/dist/index310.js +32 -4
  82. package/dist/index311.js +4 -7
  83. package/dist/index312.js +8 -3
  84. package/dist/index313.js +2 -32
  85. package/dist/index314.js +3 -3
  86. package/dist/index315.js +58 -3
  87. package/dist/index316.js +7 -57
  88. package/dist/index317.js +8 -4
  89. package/dist/index318.js +4 -8
  90. package/dist/index319.js +2 -7
  91. package/dist/index33.js +2 -2
  92. package/dist/index35.js +3 -3
  93. package/dist/index37.js +8 -8
  94. package/dist/index39.js +2 -2
  95. package/dist/index41.js +2 -2
  96. package/dist/index43.js +2 -2
  97. package/dist/index45.js +2 -2
  98. package/dist/index55.js +1 -1
  99. package/dist/index57.js +1 -1
  100. package/dist/index81.js +1 -1
  101. package/dist/index84.js +3 -3
  102. package/dist/index86.js +1 -1
  103. package/dist/index88.js +2 -2
  104. package/package.json +2 -2
  105. package/dist/index236.js +0 -166
  106. package/dist/index283.js +0 -4
package/dist/index316.js CHANGED
@@ -1,60 +1,10 @@
1
- var o = function(a, e, s, t) {
2
- if (s === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof e == "function" ? a !== e || !t : !e.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return s === "m" ? t : s === "a" ? t.call(a) : t ? t.value : e.get(a);
5
- }, i, l, r;
6
- class d {
7
- constructor(...e) {
8
- i.set(this, /* @__PURE__ */ new Map()), l.set(this, /* @__PURE__ */ new Map()), r.set(this, /* @__PURE__ */ new Map());
9
- for (const s of e)
10
- this.define(s);
1
+ const e = {
2
+ common: {
3
+ closeLabel: "Chiudi",
4
+ loadingText: "Caricamento...",
5
+ noDataText: "Nessun elemento da visualizzare"
11
6
  }
12
- define(e, s = !1) {
13
- for (let [t, f] of Object.entries(e)) {
14
- t = t.toLowerCase(), f = f.map((n) => n.toLowerCase()), o(this, r, "f").has(t) || o(this, r, "f").set(t, /* @__PURE__ */ new Set());
15
- const h = o(this, r, "f").get(t);
16
- let u = !0;
17
- for (let n of f) {
18
- const w = n.startsWith("*");
19
- if (n = w ? n.slice(1) : n, h == null || h.add(n), u && o(this, l, "f").set(t, n), u = !1, w)
20
- continue;
21
- const c = o(this, i, "f").get(n);
22
- if (c && c != t && !s)
23
- throw new Error(`"${t} -> ${n}" conflicts with "${c} -> ${n}". Pass \`force=true\` to override this definition.`);
24
- o(this, i, "f").set(n, t);
25
- }
26
- }
27
- return this;
28
- }
29
- getType(e) {
30
- if (typeof e != "string")
31
- return null;
32
- const s = e.replace(/^.*[/\\]/, "").toLowerCase(), t = s.replace(/^.*\./, "").toLowerCase(), f = s.length < e.length;
33
- return !(t.length < s.length - 1) && f ? null : o(this, i, "f").get(t) ?? null;
34
- }
35
- getExtension(e) {
36
- var s;
37
- return typeof e != "string" ? null : (e = (s = e == null ? void 0 : e.split) == null ? void 0 : s.call(e, ";")[0], (e && o(this, l, "f").get(e.trim().toLowerCase())) ?? null);
38
- }
39
- getAllExtensions(e) {
40
- return typeof e != "string" ? null : o(this, r, "f").get(e.toLowerCase()) ?? null;
41
- }
42
- _freeze() {
43
- this.define = () => {
44
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
45
- }, Object.freeze(this);
46
- for (const e of o(this, r, "f").values())
47
- Object.freeze(e);
48
- return this;
49
- }
50
- _getTestState() {
51
- return {
52
- types: o(this, i, "f"),
53
- extensions: o(this, l, "f")
54
- };
55
- }
56
- }
57
- i = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
7
+ };
58
8
  export {
59
- d as default
9
+ e as default
60
10
  };
package/dist/index317.js CHANGED
@@ -1,6 +1,10 @@
1
- function e(t) {
2
- return Object.prototype.toString.call(t).slice(8, -1);
3
- }
1
+ const o = {
2
+ common: {
3
+ closeLabel: "Close",
4
+ loadingText: "Loading...",
5
+ noDataText: "No data to display"
6
+ }
7
+ };
4
8
  export {
5
- e as getType
9
+ o as default
6
10
  };
package/dist/index318.js CHANGED
@@ -1,10 +1,6 @@
1
- const e = {
2
- common: {
3
- closeLabel: "Chiudi",
4
- loadingText: "Caricamento...",
5
- noDataText: "Nessun elemento da visualizzare"
6
- }
7
- };
1
+ function e(t) {
2
+ return Object.prototype.toString.call(t).slice(8, -1);
3
+ }
8
4
  export {
9
- e as default
5
+ e as getType
10
6
  };
package/dist/index319.js CHANGED
@@ -1,10 +1,5 @@
1
- const o = {
2
- common: {
3
- closeLabel: "Close",
4
- loadingText: "Loading...",
5
- noDataText: "No data to display"
6
- }
7
- };
1
+ import o from "./index256.js";
2
+ /* empty css */
8
3
  export {
9
4
  o as default
10
5
  };
package/dist/index33.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as L, ref as m, toRef as l, openBlock as $, createBlock as E, unref as p, withCtx as t, renderSlot as i, normalizeProps as f, guardReactiveProps as b, createVNode as B, mergeProps as v, createSlots as C } from "vue";
2
- import { useOptions as w } from "./index236.js";
2
+ import { useOptions as w } from "./index234.js";
3
3
  import q from "./index31.js";
4
4
  /* empty css */
5
- import z from "./index237.js";
5
+ import z from "./index235.js";
6
6
  /* empty css */
7
7
  const N = /* @__PURE__ */ L({
8
8
  __name: "BaseRadioGroup",
package/dist/index35.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as g, computed as f, openBlock as l, createElementBlock as i, mergeProps as h, createElementVNode as r, renderSlot as p, Fragment as B, renderList as I, normalizeClass as V, toDisplayString as M } from "vue";
2
- import { booleanishToBoolean as D } from "./index243.js";
3
- import { identity as F } from "./index233.js";
4
- import { isCssColor as v } from "./index241.js";
2
+ import { booleanishToBoolean as D } from "./index240.js";
3
+ import { identity as F } from "./index228.js";
4
+ import { isCssColor as v } from "./index238.js";
5
5
  import { isNotNil as T } from "./index134.js";
6
6
  const $ = { class: "bb-base-rating__inner-container" }, q = { class: "bb-base-rating__label-text sr-only" }, x = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], H = ["height", "width"], J = /* @__PURE__ */ C({
7
7
  __name: "BaseRating",
package/dist/index37.js CHANGED
@@ -6,14 +6,14 @@ import { useMobile as We } from "./index9.js";
6
6
  import Re from "./index128.js";
7
7
  /* empty css */
8
8
  import { isNotNil as Je } from "./index134.js";
9
- import { last as Ye } from "./index219.js";
9
+ import { last as Ye } from "./index220.js";
10
10
  import { matchAnyKey as j } from "./index245.js";
11
- import { useFloating as je } from "./index231.js";
11
+ import { useFloating as je } from "./index226.js";
12
12
  import { useIntersectionObserver as Ge } from "./index132.js";
13
- import { useLogger as Xe } from "./index220.js";
14
- import { useOptions as Ze } from "./index236.js";
13
+ import { useLogger as Xe } from "./index212.js";
14
+ import { useOptions as Ze } from "./index234.js";
15
15
  import { wait as L } from "./index130.js";
16
- import { when as et } from "./index242.js";
16
+ import { when as et } from "./index239.js";
17
17
  import tt from "./index246.js";
18
18
  /* empty css */
19
19
  import ot from "./index248.js";
@@ -21,9 +21,9 @@ import ot from "./index248.js";
21
21
  import nt from "./index207.js";
22
22
  /* empty css */
23
23
  import lt from "./index209.js";
24
- import { waitFor as at } from "./index228.js";
25
- import it from "./index230.js";
26
- import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index235.js";
24
+ import { waitFor as at } from "./index230.js";
25
+ import it from "./index232.js";
26
+ import { autoUpdate as rt, flip as st, offset as ut, shift as pt } from "./index233.js";
27
27
  const ct = { class: "bb-base-select__input-container" }, dt = {
28
28
  key: 1,
29
29
  class: "bb-base-select__max-reached"
package/dist/index39.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle as I } from "vue";
2
2
  import { clamp as le } from "./index206.js";
3
3
  import { head as O } from "./index250.js";
4
- import { isCssColor as Y } from "./index241.js";
4
+ import { isCssColor as Y } from "./index238.js";
5
5
  import { isNil as P } from "./index251.js";
6
6
  import { isNotNil as ne } from "./index134.js";
7
7
  import { transposeValue as y } from "./index131.js";
8
- import { hash as J } from "./index218.js";
8
+ import { hash as J } from "./index219.js";
9
9
  const oe = { class: "bb-base-slider__slider-container" }, ie = {
10
10
  key: 0,
11
11
  class: "bb-base-slider__ticks-container"
package/dist/index41.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as q, createElementVNode as l, renderSlot as A } from "vue";
2
- import { isCssColor as b } from "./index241.js";
3
- import { when as F } from "./index242.js";
2
+ import { isCssColor as b } from "./index238.js";
3
+ import { when as F } from "./index239.js";
4
4
  const N = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index43.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as V, ref as p, toRef as l, openBlock as w, createBlock as B, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v, createSlots as z } from "vue";
2
- import { useOptions as F } from "./index236.js";
2
+ import { useOptions as F } from "./index234.js";
3
3
  import M from "./index41.js";
4
4
  /* empty css */
5
- import S from "./index237.js";
5
+ import S from "./index235.js";
6
6
  /* empty css */
7
7
  const I = /* @__PURE__ */ V({
8
8
  __name: "BaseSwitchGroup",
package/dist/index45.js CHANGED
@@ -4,8 +4,8 @@ import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as
4
4
  import ue from "./index128.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index134.js";
7
- import { last as de } from "./index219.js";
8
- import { useOptions as pe } from "./index236.js";
7
+ import { last as de } from "./index220.js";
8
+ import { useOptions as pe } from "./index234.js";
9
9
  import ce from "./index246.js";
10
10
  /* empty css */
11
11
  import me from "./index248.js";
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index241.js";
2
+ import { isCssColor as _ } from "./index238.js";
3
3
  import { wait as C } from "./index130.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index241.js";
2
+ import { isCssColor as r } from "./index238.js";
3
3
  import { isNil as B } from "./index251.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index226.js";
2
+ import { throttle as c } from "./index241.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as le, ref as l, useAttrs as se, computed as u, getCurrentInstance as ae, nextTick as ne, onBeforeUnmount as O, onMounted as ie, watch as re, openBlock as g, createBlock as ue, withCtx as ce, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as de, toDisplayString as A, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as fe } from "./index227.js";
2
+ import { useFocusTrap as fe } from "./index229.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index130.js";
5
- import { useModalsState as b } from "./index229.js";
6
- import ve from "./index230.js";
5
+ import { useModalsState as b } from "./index242.js";
6
+ import ve from "./index232.js";
7
7
  import { useMobile as pe } from "./index9.js";
8
8
  const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"], Ve = /* @__PURE__ */ le({
9
9
  __name: "BbOffCanvas",
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index282.js";
2
+ import { debounce as F } from "./index297.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index227.js";
2
+ import { useFocusTrap as z } from "./index229.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { useIntersectionObserver as R } from "./index132.js";
5
- import { waitFor as j } from "./index228.js";
5
+ import { waitFor as j } from "./index230.js";
6
6
  import G from "./index13.js";
7
7
  /* empty css */
8
8
  import J from "./index256.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.98",
3
+ "version": "2.0.100",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -91,4 +91,4 @@
91
91
  "lint-staged": {
92
92
  "*.{js,css,md,html,json,vue,ts}": "prettier --write"
93
93
  }
94
- }
94
+ }
package/dist/index236.js DELETED
@@ -1,166 +0,0 @@
1
- import { ref as s, computed as a, onServerPrefetch as $, onBeforeMount as ee, onBeforeUnmount as te, watch as b, nextTick as Q } from "vue";
2
- import { last as le } from "./index219.js";
3
- import { useArray as E } from "./index293.js";
4
- import { uniqBy as ne } from "./index294.js";
5
- import { useItemValue as ue } from "./index288.js";
6
- import { useItemText as oe } from "./index295.js";
7
- import { hash as f } from "./index218.js";
8
- import { isNotNil as F } from "./index134.js";
9
- import { waitFor as ie } from "./index228.js";
10
- import { isNil as se } from "./index251.js";
11
- import { pipe as H } from "./index296.js";
12
- const xe = (t) => {
13
- const r = s(""), P = s(), o = (e) => {
14
- P.value = e, t.emit("update:modelValue", e);
15
- }, m = s([]), {
16
- array: k,
17
- add: j,
18
- remove: J,
19
- set: h
20
- } = E(), {
21
- array: O,
22
- add: L,
23
- remove: U
24
- } = E(), { getItemText: z } = oe(), { getItemValue: G } = ue();
25
- if (t.max && t.max < 1)
26
- throw new Error("Invalid value for `max` property");
27
- const B = (e) => {
28
- const l = !!(t.disabled.value || e.disabled), n = z(e, t.itemText), u = G(e, t.itemValue);
29
- if (u === void 0)
30
- throw new Error(
31
- 'The result of extracting "value" from option was undefined. Affected item is ' + JSON.stringify(e) + " please check itemValue property is correct."
32
- );
33
- const _ = f(u);
34
- return {
35
- item: e,
36
- text: n,
37
- value: u,
38
- valueHash: _,
39
- disabled: l,
40
- selected: !1
41
- };
42
- }, V = (e) => (e.selected = F(q.value[e.valueHash]), e), K = t.max || 1 / 0, g = (e) => (e.disabled = e.disabled || t.multiple && t.modelValue.value.length >= K && !e.selected, e), x = a(() => {
43
- const e = [].concat(
44
- m.value.map(H(B, V, g)),
45
- O.value.map(H(V, g)),
46
- k.value.map(H(V, g))
47
- );
48
- return ne(e, (n) => n.valueHash);
49
- }), R = (e) => {
50
- t.multiple ? (o(t.modelValue.value.concat(e.value)), t.stash && j(e), t.resetQueryOnOptionSelected && i()) : (t.stash && h(e), o(e.value), Q(() => i()));
51
- }, W = async (e) => {
52
- if (U((l) => l.valueHash !== e.valueHash), J((l) => l.valueHash !== e.valueHash), t.multiple) {
53
- const l = { ...q.value };
54
- delete l[e.valueHash], o(Object.values(l));
55
- } else
56
- o(null), await Q(), i();
57
- }, q = a(() => {
58
- const e = {}, l = [].concat(t.modelValue.value);
59
- for (let n = 0; n < l.length; n++) {
60
- const u = l[n];
61
- e[f(u)] = u;
62
- }
63
- return e;
64
- }), I = async ({ prefill: e = !1 }) => {
65
- let l = [];
66
- if (Array.isArray(t.items.value))
67
- l = t.items.value;
68
- else if (typeof t.items.value == "function") {
69
- const n = ++d.value;
70
- try {
71
- l = await t.items.value(
72
- r.value,
73
- e,
74
- t.modelValue.value
75
- ), n < d.value && (await ie(() => n === d.value), l = m.value);
76
- } catch (u) {
77
- console.error(u);
78
- }
79
- d.value--;
80
- }
81
- m.value = l;
82
- }, C = a(() => {
83
- const e = {};
84
- for (let l = 0; l < x.value.length; l++) {
85
- const n = x.value[l], { valueHash: u } = n;
86
- e[u] = n;
87
- }
88
- return {
89
- get: (l) => e[f(l)]
90
- };
91
- }), c = a(() => [].concat(t.modelValue.value).reduce((e, l) => {
92
- const n = C.value.get(l);
93
- return n && e.push(n), e;
94
- }, [])), M = (e) => F(C.value.get(e)), i = () => {
95
- if (t.multiple) {
96
- r.value = "";
97
- return;
98
- }
99
- let e;
100
- c.value && (e = le(c.value)), r.value = (e == null ? void 0 : e.text) || "";
101
- }, X = () => {
102
- const e = r.value.trim(), l = B(e);
103
- L(l), i();
104
- }, d = s(0), A = a(() => [].concat(t.modelValue.value).reduce(
105
- (e, l) => (M(l) ? e.coherent.push(l) : e.incoherent.push(l), e),
106
- { coherent: [], incoherent: [] }
107
- )), D = a(() => t.multiple && !t.modelValue.value.length || !t.multiple && se(t.modelValue.value) ? !0 : !A.value.incoherent.length), Y = () => {
108
- t.enforceCoherence && !D.value && (t.multiple ? o(A.value.coherent) : o(null));
109
- }, y = s(!1), w = s(!1), v = async () => {
110
- w.value = !0, await I({ prefill: !0 }), Y(), i(), y.value = !0, w.value = !1;
111
- };
112
- $(async () => {
113
- t.prefill && (await v(), t.stash && h(...c.value));
114
- }), ee(async () => {
115
- t.prefill && !y.value && (await v(), t.stash && h(...c.value));
116
- });
117
- let T;
118
- const Z = () => {
119
- T && clearTimeout(T), T = setTimeout(async () => {
120
- try {
121
- await I({ prefill: !1 });
122
- } catch (e) {
123
- console.error(e);
124
- }
125
- }, t.queryDebounceTime);
126
- };
127
- te(() => clearTimeout(T));
128
- let p;
129
- b(
130
- () => t.modelValue.value,
131
- () => {
132
- D.value || (p && clearTimeout(p), p = setTimeout(async () => {
133
- v();
134
- }, t.modelValueDebounceTime));
135
- }
136
- );
137
- let S;
138
- const N = async (e, l) => {
139
- f(l) !== f(e) && y.value && (S && clearTimeout(S), S = setTimeout(async () => {
140
- await v();
141
- }, t.depsDebounceTime));
142
- };
143
- return b(() => t.items.value, N), b(() => t.dependencies.value, N), {
144
- addCurrentQueryToManualItems: X,
145
- alignQueryToState: i,
146
- getOptions: I,
147
- hasPrefilled: y,
148
- innerLoading: d,
149
- isPrefilling: w,
150
- manualItems: O,
151
- options: x,
152
- prefillItems: v,
153
- query: r,
154
- searchByQuery: Z,
155
- selectedOptions: c,
156
- selectOption: R,
157
- setStash: h,
158
- unselectOption: W,
159
- updateModelValue: o,
160
- valueIsSelected: M,
161
- internalItems: m
162
- };
163
- };
164
- export {
165
- xe as useOptions
166
- };
package/dist/index283.js DELETED
@@ -1,4 +0,0 @@
1
- var o = { exports: {} };
2
- export {
3
- o as __module
4
- };