bitboss-ui 2.0.48 → 2.0.50
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.
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +2 -0
- package/dist/index108.js +146 -149
- package/dist/index110.js +4 -4
- package/dist/index118.js +1 -1
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index204.js +2 -116
- package/dist/index205.js +53 -2
- package/dist/index207.js +13 -84
- package/dist/index208.js +22 -0
- package/dist/index209.js +4 -2
- package/dist/index21.js +14 -14
- package/dist/index210.js +2 -4
- package/dist/index211.js +4 -2
- package/dist/index212.js +2 -126
- package/dist/index213.js +8 -5
- package/dist/index214.js +115 -124
- package/dist/index215.js +3 -19
- package/dist/index216.js +40 -15
- package/dist/index217.js +6 -16
- package/dist/index218.js +7 -2
- package/dist/index219.js +3 -2
- package/dist/index220.js +156 -39
- package/dist/index221.js +83 -19
- package/dist/index223.js +5 -53
- package/dist/index224.js +18 -0
- package/dist/index225.js +16 -13
- package/dist/index226.js +19 -5
- package/dist/index227.js +17 -367
- package/dist/index228.js +27 -3
- package/dist/index229.js +3 -3
- package/dist/index23.js +15 -15
- package/dist/index230.js +2 -7
- package/dist/index231.js +247 -6
- package/dist/index232.js +52 -4
- package/dist/index233.js +44 -19
- package/dist/index234.js +5 -27
- package/dist/index235.js +49 -3
- package/dist/index236.js +122 -245
- package/dist/index237.js +124 -51
- package/dist/index238.js +2 -44
- package/dist/index239.js +4 -4
- package/dist/index240.js +369 -49
- package/dist/index241.js +2 -2
- package/dist/index242.js +2 -18
- package/dist/index243.js +17 -105
- package/dist/index244.js +108 -0
- package/dist/{index245.js → index246.js} +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.js +1 -1
- package/dist/index252.js +7 -23
- package/dist/index253.js +176 -6
- package/dist/index254.js +4 -16
- package/dist/index256.js +3 -4
- package/dist/index257.js +9 -3
- package/dist/index258.js +23 -12
- package/dist/index259.js +6 -9
- package/dist/index260.js +15 -8
- package/dist/index261.js +224 -17
- package/dist/index262.js +3 -281
- package/dist/index263.js +12 -6
- package/dist/index264.js +9 -2
- package/dist/index265.js +9 -2
- package/dist/index266.js +17 -2
- package/dist/index267.js +431 -2
- package/dist/index268.js +89 -2
- package/dist/index269.js +280 -125
- package/dist/index27.js +1 -1
- package/dist/index270.js +5 -430
- package/dist/index271.js +2 -176
- package/dist/index272.js +2 -3
- package/dist/index274.js +2 -7
- package/dist/index275.js +2 -22
- package/dist/index276.js +4 -0
- package/dist/index277.js +2 -224
- package/dist/index278.js +2 -200
- package/dist/index279.js +2 -436
- package/dist/index280.js +2 -127
- package/dist/index281.js +24 -85
- package/dist/index282.js +22 -2
- package/dist/index284.js +2 -2
- package/dist/index285.js +126 -2
- package/dist/index286.js +21 -1
- package/dist/index288.js +197 -25
- package/dist/index289.js +435 -21
- package/dist/index29.js +69 -64
- package/dist/index290.js +129 -0
- package/dist/index291.js +1 -1
- package/dist/index292.js +1 -1
- package/dist/index293.js +2 -2
- package/dist/index294.js +5 -66
- package/dist/index296.js +66 -5
- package/dist/index297.js +33 -4
- package/dist/index298.js +5 -4
- package/dist/index299.js +7 -58
- package/dist/index300.js +4 -79
- package/dist/index301.js +81 -0
- package/dist/index303.js +6 -7
- package/dist/index304.js +4 -33
- package/dist/index305.js +4 -4
- package/dist/index306.js +58 -6
- package/dist/index307.js +46 -6
- package/dist/index308.js +10 -18
- package/dist/index309.js +6 -10
- package/dist/index31.js +2 -2
- package/dist/index310.js +19 -2
- package/dist/index311.js +2 -47
- package/dist/{index312.js → index313.js} +1 -1
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +13 -13
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +6 -6
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +15 -15
- package/dist/index84.js +2 -2
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/index206.js +0 -160
- package/dist/index222.js +0 -8
- package/dist/index247.js +0 -4
- package/dist/index251.js +0 -11
- package/dist/index287.js +0 -4
- package/dist/index302.js +0 -7
- /package/dist/{index283.js → index273.js} +0 -0
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
|
-
import { clamp as le } from "./
|
3
|
-
import { head as O } from "./
|
4
|
-
import { isCssColor as Y } from "./
|
2
|
+
import { clamp as le } from "./index204.js";
|
3
|
+
import { head as O } from "./index241.js";
|
4
|
+
import { isCssColor as Y } from "./index210.js";
|
5
5
|
import { isNil as P } from "./index129.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index130.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index229.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 "./
|
3
|
-
import { when as F } from "./
|
2
|
+
import { isCssColor as b } from "./index210.js";
|
3
|
+
import { when as F } from "./index211.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 $, 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 "./
|
2
|
+
import { useOptions as F } from "./index220.js";
|
3
3
|
import M from "./index41.js";
|
4
4
|
/* empty css */
|
5
|
-
import S from "./
|
5
|
+
import S from "./index221.js";
|
6
6
|
/* empty css */
|
7
7
|
const I = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseSwitchGroup",
|
package/dist/index45.js
CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as r, computed as k, toRef as B, openBlock as
|
|
4
4
|
import ue from "./index127.js";
|
5
5
|
/* empty css */
|
6
6
|
import { isNotNil as se } from "./index134.js";
|
7
|
-
import { last as de } from "./
|
8
|
-
import { useOptions as pe } from "./
|
9
|
-
import ce from "./
|
7
|
+
import { last as de } from "./index230.js";
|
8
|
+
import { useOptions as pe } from "./index220.js";
|
9
|
+
import ce from "./index244.js";
|
10
10
|
/* empty css */
|
11
|
-
import fe from "./
|
11
|
+
import fe from "./index246.js";
|
12
12
|
/* empty css */
|
13
|
-
import me from "./
|
13
|
+
import me from "./index205.js";
|
14
14
|
/* empty css */
|
15
|
-
import ve from "./
|
15
|
+
import ve from "./index207.js";
|
16
16
|
const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Ne = /* @__PURE__ */ Y({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
|
2
|
-
import v from "./
|
3
|
-
import E from "./
|
2
|
+
import v from "./index207.js";
|
3
|
+
import E from "./index205.js";
|
4
4
|
/* empty css */
|
5
5
|
import G from "./index127.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
|
2
|
-
import B from "./
|
2
|
+
import B from "./index205.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index207.js";
|
5
5
|
const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
|
6
6
|
__name: "BaseTextInput",
|
7
7
|
props: {
|
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 "./
|
2
|
+
import { isCssColor as _ } from "./index210.js";
|
3
3
|
import { wait as C } from "./index131.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 "./
|
2
|
+
import { isCssColor as r } from "./index210.js";
|
3
3
|
import { isNil as B } from "./index129.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
package/dist/index75.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as Q, defineAsyncComponent as W, computed as A, ref as g, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as O, renderSlot as w, normalizeProps as X, guardReactiveProps as Y, unref as h, createBlock as Z, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x, createVNode as ee, createCommentVNode as te } from "vue";
|
2
|
-
import { findRightIndex as H } from "./
|
2
|
+
import { findRightIndex as H } from "./index257.js";
|
3
3
|
import { useId as ne } from "./index8.js";
|
4
4
|
import { wait as oe } from "./index131.js";
|
5
5
|
import { useIntersectionObserver as ae } from "./index132.js";
|
6
6
|
import le from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import N from "./
|
8
|
+
import N from "./index258.js";
|
9
9
|
const me = /* @__PURE__ */ Q({
|
10
10
|
__name: "BbDropdown",
|
11
11
|
props: {
|
@@ -24,7 +24,7 @@ const me = /* @__PURE__ */ Q({
|
|
24
24
|
},
|
25
25
|
setup(V) {
|
26
26
|
const j = W(
|
27
|
-
() => import("./
|
27
|
+
() => import("./index256.js")
|
28
28
|
), r = V, d = r.id ?? `bb_${ne().id.value}`, m = A(() => {
|
29
29
|
let e = r.items.findIndex((t) => !t.disabled), o = H(
|
30
30
|
r.items,
|
package/dist/index79.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index260.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index127.js";
|
5
5
|
/* empty css */
|
@@ -56,7 +56,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
|
|
56
56
|
const r = a.accept[t];
|
57
57
|
if (r.includes("/")) e.push(r);
|
58
58
|
else {
|
59
|
-
b || (b = (await import("./
|
59
|
+
b || (b = (await import("./index259.js")).default);
|
60
60
|
const o = b.getType(r);
|
61
61
|
if (!o)
|
62
62
|
throw new Error(
|
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 "./
|
2
|
+
import { throttle as c } from "./index215.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index82.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as w, ref as
|
1
|
+
import { defineComponent as w, ref as t, computed as g, openBlock as k, createBlock as $, withCtx as r, renderSlot as a, normalizeProps as s, guardReactiveProps as l, createVNode as V, mergeProps as P } from "vue";
|
2
2
|
import q from "./index27.js";
|
3
3
|
/* empty css */
|
4
4
|
import C from "./index29.js";
|
@@ -31,17 +31,17 @@ const F = /* @__PURE__ */ w({
|
|
31
31
|
reverse: { type: Boolean },
|
32
32
|
step: {}
|
33
33
|
},
|
34
|
-
emits: ["blur", "change", "click", "decrease", "focus", "increase", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
34
|
+
emits: ["blur", "change", "click", "decrease", "focus", "increase", "input", "keydown", "keyup", "mousedown", "mouseup", "update:modelValue"],
|
35
35
|
setup(m, { expose: c, emit: b }) {
|
36
|
-
const i = m, o = b,
|
36
|
+
const i = m, o = b, p = t(), d = t(!1), h = g(() => i.persistentHint || d.value), f = {
|
37
37
|
onBlur: (e) => {
|
38
|
-
|
38
|
+
d.value = !1, o("blur", e);
|
39
39
|
},
|
40
40
|
onChange: (e) => o("change", e),
|
41
41
|
onClick: (e) => o("click", e),
|
42
42
|
onDecrease: (e) => o("decrease", e),
|
43
43
|
onFocus: (e) => {
|
44
|
-
|
44
|
+
d.value = !0, o("focus", e);
|
45
45
|
},
|
46
46
|
onIncrease: (e) => o("increase", e),
|
47
47
|
onInput: (e) => o("input", e),
|
@@ -53,13 +53,13 @@ const F = /* @__PURE__ */ w({
|
|
53
53
|
return c({
|
54
54
|
increase: () => {
|
55
55
|
var e;
|
56
|
-
(e =
|
56
|
+
(e = p.value) == null || e.increase();
|
57
57
|
},
|
58
58
|
decrease: () => {
|
59
59
|
var e;
|
60
|
-
(e =
|
60
|
+
(e = p.value) == null || e.decrease();
|
61
61
|
}
|
62
|
-
}), (e, L) => (
|
62
|
+
}), (e, L) => (k(), $(q, {
|
63
63
|
id: e.id,
|
64
64
|
class: "bb-number-input",
|
65
65
|
direction: e.direction,
|
@@ -74,25 +74,25 @@ const F = /* @__PURE__ */ w({
|
|
74
74
|
reverse: e.reverse,
|
75
75
|
"show-hint": h.value
|
76
76
|
}, {
|
77
|
-
label: r((
|
78
|
-
a(e.$slots, "label", s(l(
|
77
|
+
label: r((u) => [
|
78
|
+
a(e.$slots, "label", s(l(u)))
|
79
79
|
]),
|
80
|
-
input: r(({ id:
|
80
|
+
input: r(({ id: u, name: y, hasErrors: v, ariaDescribedby: B }) => [
|
81
81
|
V(C, P({
|
82
|
-
id:
|
82
|
+
id: u,
|
83
83
|
ref_key: "bni",
|
84
|
-
ref:
|
84
|
+
ref: p,
|
85
85
|
"append:icon": i["append:icon"],
|
86
86
|
"aria-describedby": B,
|
87
87
|
autocomplete: e.autocomplete,
|
88
88
|
autofocus: e.autofocus,
|
89
89
|
disabled: e.disabled,
|
90
|
-
"has-errors":
|
90
|
+
"has-errors": v,
|
91
91
|
loading: e.loading,
|
92
92
|
max: e.max,
|
93
93
|
min: e.min,
|
94
94
|
"model-value": e.modelValue,
|
95
|
-
name:
|
95
|
+
name: y,
|
96
96
|
placeholder: e.placeholder,
|
97
97
|
"prepend:icon": i["prepend:icon"],
|
98
98
|
readonly: e.readonly,
|
package/dist/index84.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as te, ref as s, useAttrs as oe, getCurrentInstance as se, computed as v, nextTick as le, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as l, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
|
2
|
-
import { useFocusTrap as ce } from "./
|
2
|
+
import { useFocusTrap as ce } from "./index216.js";
|
3
3
|
import { useId as A } from "./index8.js";
|
4
4
|
import { wait as E } from "./index131.js";
|
5
|
-
import { useModalsState as p } from "./
|
5
|
+
import { useModalsState as p } from "./index218.js";
|
6
6
|
const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
|
7
7
|
__name: "BbOffCanvas",
|
8
8
|
props: {
|
package/dist/index88.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as S, defineAsyncComponent as H, ref as n, computed as m, openBlock as b, createElementBlock as q, mergeProps as A, createElementVNode as p, renderSlot as y, normalizeProps as I, guardReactiveProps as V, createBlock as C, unref as W, withCtx as $, createCommentVNode as T, nextTick as z } from "vue";
|
2
|
-
import { useFocusTrap as R } from "./
|
2
|
+
import { useFocusTrap as R } from "./index216.js";
|
3
3
|
import { useId as j } from "./index8.js";
|
4
4
|
import { useIntersectionObserver as G } from "./index132.js";
|
5
|
-
import { waitFor as J } from "./
|
5
|
+
import { waitFor as J } from "./index217.js";
|
6
6
|
import K from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
const te = /* @__PURE__ */ S({
|
@@ -24,7 +24,7 @@ const te = /* @__PURE__ */ S({
|
|
24
24
|
emits: ["shown", "hidden"],
|
25
25
|
setup(B, { expose: P, emit: _ }) {
|
26
26
|
const N = H(
|
27
|
-
() => import("./
|
27
|
+
() => import("./index256.js")
|
28
28
|
), t = B, s = _, { id: D } = j(), c = `bbp_${D.value}`, r = n(), l = n(), { activate: E, deactivate: L } = R(l, {
|
29
29
|
/**
|
30
30
|
* This traps all clicks outside so we are pressing
|
package/dist/index90.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
-
import { clamp as p } from "./
|
2
|
+
import { clamp as p } from "./index204.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index130.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|
package/package.json
CHANGED
package/dist/index206.js
DELETED
@@ -1,160 +0,0 @@
|
|
1
|
-
import { ref as a, computed as r, onBeforeMount as Y, onBeforeUnmount as Z, watch as H, nextTick as N } from "vue";
|
2
|
-
import { last as _ } from "./index219.js";
|
3
|
-
import { useArray as Q } from "./index258.js";
|
4
|
-
import { uniqBy as $ } from "./index259.js";
|
5
|
-
import { useItemValue as ee } from "./index260.js";
|
6
|
-
import { useItemText as te } from "./index261.js";
|
7
|
-
import { hash as v } from "./index235.js";
|
8
|
-
import { isNotNil as q } from "./index134.js";
|
9
|
-
import { waitFor as le } from "./index222.js";
|
10
|
-
import { isNil as oe } from "./index129.js";
|
11
|
-
const he = (l) => {
|
12
|
-
const i = a(""), F = a(), u = (e) => {
|
13
|
-
F.value = e, l.emit("update:modelValue", e);
|
14
|
-
}, d = a([]), {
|
15
|
-
array: k,
|
16
|
-
add: E,
|
17
|
-
remove: P,
|
18
|
-
set: y
|
19
|
-
} = Q(), {
|
20
|
-
array: S,
|
21
|
-
add: j,
|
22
|
-
remove: J
|
23
|
-
} = Q(), { getItemText: L } = te(), { getItemValue: U } = ee(), O = (e) => {
|
24
|
-
const t = !!(l.disabled.value || e.disabled), o = L(e, l.itemText), n = U(e, l.itemValue);
|
25
|
-
if (n === void 0)
|
26
|
-
throw new Error(
|
27
|
-
'The result of extracting "value" from option was undefined. Affected item is ' + JSON.stringify(e) + " please check itemValue property is correct."
|
28
|
-
);
|
29
|
-
const X = v(n);
|
30
|
-
return {
|
31
|
-
item: e,
|
32
|
-
text: o,
|
33
|
-
value: n,
|
34
|
-
valueHash: X,
|
35
|
-
disabled: t,
|
36
|
-
selected: !1
|
37
|
-
};
|
38
|
-
}, T = (e) => (e.selected = q(b.value[e.valueHash]), e), V = r(() => {
|
39
|
-
const e = [].concat(
|
40
|
-
d.value.map((t) => T(O(t))),
|
41
|
-
S.value.map(T),
|
42
|
-
k.value.map(T)
|
43
|
-
);
|
44
|
-
return $(e, (t) => t.valueHash);
|
45
|
-
}), z = (e) => {
|
46
|
-
l.multiple ? (u(l.modelValue.value.concat(e.value)), l.stash && E(e), l.resetQueryOnOptionSelected && s()) : (l.stash && y(e), u(e.value), N(() => s()));
|
47
|
-
}, G = async (e) => {
|
48
|
-
if (J((t) => t.valueHash !== e.valueHash), P((t) => t.valueHash !== e.valueHash), l.multiple) {
|
49
|
-
const t = { ...b.value };
|
50
|
-
delete t[e.valueHash], u(Object.values(t));
|
51
|
-
} else
|
52
|
-
u(null), await N(), s();
|
53
|
-
}, b = r(() => {
|
54
|
-
const e = {}, t = [].concat(l.modelValue.value);
|
55
|
-
for (let o = 0; o < t.length; o++) {
|
56
|
-
const n = t[o];
|
57
|
-
e[v(n)] = n;
|
58
|
-
}
|
59
|
-
return e;
|
60
|
-
}), g = async ({ prefill: e = !1 }) => {
|
61
|
-
let t = [];
|
62
|
-
if (Array.isArray(l.items.value))
|
63
|
-
t = l.items.value;
|
64
|
-
else if (typeof l.items.value == "function") {
|
65
|
-
const o = ++c.value;
|
66
|
-
try {
|
67
|
-
t = await l.items.value(
|
68
|
-
i.value,
|
69
|
-
e,
|
70
|
-
l.modelValue.value
|
71
|
-
), o < c.value && (await le(() => o === c.value), t = d.value);
|
72
|
-
} catch (n) {
|
73
|
-
console.error(n);
|
74
|
-
}
|
75
|
-
c.value--;
|
76
|
-
}
|
77
|
-
d.value = t;
|
78
|
-
}, B = r(() => {
|
79
|
-
const e = {};
|
80
|
-
for (let t = 0; t < V.value.length; t++) {
|
81
|
-
const o = V.value[t], { valueHash: n } = o;
|
82
|
-
e[n] = o;
|
83
|
-
}
|
84
|
-
return {
|
85
|
-
get: (t) => e[v(t)]
|
86
|
-
};
|
87
|
-
}), f = r(() => [].concat(l.modelValue.value).reduce((e, t) => {
|
88
|
-
const o = B.value.get(t);
|
89
|
-
return o && e.push(o), e;
|
90
|
-
}, [])), C = (e) => q(B.value.get(e)), s = () => {
|
91
|
-
if (l.multiple) {
|
92
|
-
i.value = "";
|
93
|
-
return;
|
94
|
-
}
|
95
|
-
let e;
|
96
|
-
f.value && (e = _(f.value)), i.value = (e == null ? void 0 : e.text) || "";
|
97
|
-
}, K = () => {
|
98
|
-
const e = i.value.trim(), t = O(e);
|
99
|
-
j(t), s();
|
100
|
-
}, c = a(0), M = r(() => [].concat(l.modelValue.value).reduce(
|
101
|
-
(e, t) => (C(t) ? e.coherent.push(t) : e.incoherent.push(t), e),
|
102
|
-
{ coherent: [], incoherent: [] }
|
103
|
-
)), A = r(() => l.multiple && !l.modelValue.value.length || !l.multiple && oe(l.modelValue.value) ? !0 : !M.value.incoherent.length), R = () => {
|
104
|
-
l.enforceCoherence && !A.value && (l.multiple ? u(M.value.coherent) : u(null));
|
105
|
-
}, p = a(!1), I = a(!1), m = async () => {
|
106
|
-
I.value = !0, await g({ prefill: !0 }), R(), s(), p.value = !0, I.value = !1;
|
107
|
-
};
|
108
|
-
Y(async () => {
|
109
|
-
l.prefill && (await m(), l.stash && y(...f.value));
|
110
|
-
});
|
111
|
-
let h;
|
112
|
-
const W = () => {
|
113
|
-
h && clearTimeout(h), h = setTimeout(async () => {
|
114
|
-
try {
|
115
|
-
await g({ prefill: !1 });
|
116
|
-
} catch (e) {
|
117
|
-
console.error(e);
|
118
|
-
}
|
119
|
-
}, l.queryDebounceTime);
|
120
|
-
};
|
121
|
-
Z(() => clearTimeout(h));
|
122
|
-
let x;
|
123
|
-
H(
|
124
|
-
() => l.modelValue.value,
|
125
|
-
() => {
|
126
|
-
A.value || (x && clearTimeout(x), x = setTimeout(async () => {
|
127
|
-
m();
|
128
|
-
}, l.modelValueDebounceTime));
|
129
|
-
}
|
130
|
-
);
|
131
|
-
let w;
|
132
|
-
const D = async (e, t) => {
|
133
|
-
v(t) !== v(e) && p.value && (w && clearTimeout(w), w = setTimeout(async () => {
|
134
|
-
await m();
|
135
|
-
}, l.depsDebounceTime));
|
136
|
-
};
|
137
|
-
return H(() => l.items.value, D), H(() => l.dependencies.value, D), {
|
138
|
-
addCurrentQueryToManualItems: K,
|
139
|
-
alignQueryToState: s,
|
140
|
-
getOptions: g,
|
141
|
-
hasPrefilled: p,
|
142
|
-
innerLoading: c,
|
143
|
-
isPrefilling: I,
|
144
|
-
manualItems: S,
|
145
|
-
options: V,
|
146
|
-
prefillItems: m,
|
147
|
-
query: i,
|
148
|
-
searchByQuery: W,
|
149
|
-
selectedOptions: f,
|
150
|
-
selectOption: z,
|
151
|
-
setStash: y,
|
152
|
-
unselectOption: G,
|
153
|
-
updateModelValue: u,
|
154
|
-
valueIsSelected: C,
|
155
|
-
internalItems: d
|
156
|
-
};
|
157
|
-
};
|
158
|
-
export {
|
159
|
-
he as useOptions
|
160
|
-
};
|
package/dist/index222.js
DELETED
package/dist/index247.js
DELETED
package/dist/index251.js
DELETED
package/dist/index287.js
DELETED
package/dist/index302.js
DELETED
File without changes
|