bitboss-ui 2.1.13 → 2.1.15
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/BbDropdown/BbDropdown.vue.d.ts +12 -2
- package/dist/components/BbPopover/BbPopover.vue.d.ts +12 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +12 -2
- package/dist/components/CommonPopover.vue.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index209.js +2 -34
- package/dist/index21.js +16 -16
- package/dist/index210.js +51 -86
- package/dist/{index213.js → index211.js} +1 -1
- package/dist/index212.js +105 -28
- package/dist/index214.js +99 -50
- package/dist/index216.js +72 -3
- package/dist/index218.js +13 -16
- package/dist/index219.js +2 -4
- package/dist/index220.js +2 -13
- package/dist/index221.js +2 -11
- package/dist/index222.js +2 -20
- package/dist/index223.js +3 -197
- package/dist/index224.js +9 -0
- package/dist/index225.js +7 -66
- package/dist/index226.js +7 -0
- package/dist/index227.js +5 -13
- package/dist/index228.js +5 -113
- package/dist/index229.js +7 -0
- package/dist/index23.js +15 -15
- package/dist/index230.js +5 -13
- package/dist/index231.js +5 -3
- package/dist/index232.js +5 -2
- package/dist/index233.js +8 -4
- package/dist/index234.js +250 -2
- package/dist/index235.js +52 -2
- package/dist/index236.js +44 -5
- package/dist/index237.js +4 -4
- package/dist/index238.js +60 -5
- package/dist/index239.js +13 -5
- package/dist/index240.js +4 -5
- package/dist/index241.js +11 -5
- package/dist/index242.js +20 -2
- package/dist/index243.js +197 -2
- package/dist/index245.js +114 -12
- package/dist/index247.js +10 -106
- package/dist/index248.js +5 -0
- package/dist/index249.js +4 -100
- package/dist/index25.js +3 -3
- package/dist/index250.js +88 -0
- package/dist/index252.js +29 -5
- package/dist/index253.js +16 -5
- package/dist/index254.js +15 -8
- package/dist/index255.js +12 -250
- package/dist/index256.js +12 -51
- package/dist/index257.js +3 -44
- package/dist/index258.js +4 -4
- package/dist/index259.js +2 -60
- package/dist/index260.js +34 -2
- package/dist/index261.js +17 -182
- package/dist/index262.js +11 -9
- package/dist/index263.js +6 -3
- package/dist/index264.js +231 -2
- package/dist/index265.js +182 -6
- package/dist/index266.js +2 -7
- package/dist/index267.js +8 -8
- package/dist/index268.js +8 -23
- package/dist/index269.js +9 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +23 -6
- package/dist/index271.js +6 -16
- package/dist/index272.js +16 -9
- package/dist/index273.js +3 -9
- package/dist/index274.js +9 -8
- package/dist/index275.js +1 -1
- package/dist/index278.js +1 -1
- package/dist/index279.js +1 -1
- package/dist/index280.js +3 -2
- package/dist/index281.js +1 -1
- package/dist/index282.js +3 -17
- package/dist/index284.js +7 -3
- package/dist/index285.js +17 -3
- package/dist/index286.js +6 -0
- package/dist/index287.js +28 -7
- package/dist/index288.js +1 -1
- package/dist/index289.js +3 -7
- package/dist/index29.js +3 -3
- package/dist/index290.js +7 -11
- package/dist/index291.js +10 -3
- package/dist/index293.js +280 -5
- package/dist/index294.js +2 -280
- package/dist/index295.js +16 -2
- package/dist/index296.js +2 -125
- package/dist/index297.js +16 -2
- package/dist/index298.js +2 -15
- package/dist/index299.js +19 -2
- package/dist/index300.js +2 -16
- package/dist/index301.js +15 -2
- package/dist/index302.js +2 -16
- package/dist/index303.js +19 -2
- package/dist/index304.js +2 -19
- package/dist/index305.js +27 -2
- package/dist/index306.js +2 -19
- package/dist/index307.js +2 -2
- package/dist/index308.js +2 -27
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +1 -1
- package/dist/index311.js +21 -1
- package/dist/index313.js +6 -2
- package/dist/index314.js +3 -22
- package/dist/index315.js +7 -0
- package/dist/index316.js +2 -6
- package/dist/index317.js +125 -3
- package/dist/index318.js +2 -3
- package/dist/index319.js +1 -1
- package/dist/index320.js +1 -1
- package/dist/index325.js +7 -128
- package/dist/index326.js +5 -368
- package/dist/index327.js +7 -32
- package/dist/index328.js +128 -27
- package/dist/index329.js +371 -0
- package/dist/index33.js +8 -8
- package/dist/index330.js +6 -7
- package/dist/index331.js +6 -5
- package/dist/index332.js +19 -8
- package/dist/index335.js +1 -1
- package/dist/index336.js +32 -6
- package/dist/index337.js +27 -18
- package/dist/index340.js +1 -1
- package/dist/{index344.js → index342.js} +1 -1
- package/dist/index343.js +127 -3
- package/dist/index345.js +3 -127
- package/dist/index35.js +4 -4
- package/dist/index37.js +204 -198
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/package.json +2 -2
- package/dist/index215.js +0 -17
- package/dist/index217.js +0 -14
- package/dist/index244.js +0 -20
- package/dist/index246.js +0 -8
- package/dist/index251.js +0 -233
- package/dist/index283.js +0 -30
- package/dist/index312.js +0 -4
- package/dist/index338.js +0 -9
package/dist/index39.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as te, ref as d, computed as p, onMounted as le, watch as oe, createElementBlock as y, openBlock as g, mergeProps as L, renderSlot as v, createElementVNode as m, createCommentVNode as H, Fragment as ne, renderList as se, normalizeProps as ie, guardReactiveProps as ue, unref as c, normalizeStyle as G, normalizeClass as O } from "vue";
|
2
|
-
import { head as de } from "./
|
3
|
-
import { isCssColor as Y } from "./
|
4
|
-
import { isNil as S } from "./
|
2
|
+
import { head as de } from "./index220.js";
|
3
|
+
import { isCssColor as Y } from "./index221.js";
|
4
|
+
import { isNil as S } from "./index222.js";
|
5
5
|
import { getAsPercentageBetween as T, getAsPercentage as me, getValueFromPercentageInInterval as x } from "./index136.js";
|
6
|
-
import { hash as j } from "./
|
7
|
-
import { snapToStep as ce } from "./
|
8
|
-
import { last as be } from "./
|
9
|
-
import { transpose as J } from "./
|
6
|
+
import { hash as j } from "./index223.js";
|
7
|
+
import { snapToStep as ce } from "./index224.js";
|
8
|
+
import { last as be } from "./index209.js";
|
9
|
+
import { transpose as J } from "./index225.js";
|
10
10
|
import { clamp as f } from "./index207.js";
|
11
11
|
const ve = { class: "bb-base-slider__slider-container" }, fe = {
|
12
12
|
key: 0,
|
package/dist/index41.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index221.js";
|
3
|
+
import { when as N } from "./index249.js";
|
4
4
|
const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index250.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as U } from "./
|
7
|
-
import { useIndexById as T } from "./
|
8
|
-
import { useBaseOptions as q } from "./
|
9
|
-
import { useCoherence as J } from "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as $ } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index252.js";
|
7
|
+
import { useIndexById as T } from "./index211.js";
|
8
|
+
import { useBaseOptions as q } from "./index210.js";
|
9
|
+
import { useCoherence as J } from "./index254.js";
|
10
|
+
import { hash as Q } from "./index223.js";
|
11
|
+
import { useHashedWatcher as $ } from "./index255.js";
|
12
|
+
import { usePrefill as X } from "./index253.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
|
|
3
3
|
/* empty css */
|
4
4
|
import ae from "./index111.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as le } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as re } from "./
|
9
|
-
import ie from "./
|
6
|
+
import { last as le } from "./index209.js";
|
7
|
+
import { useBaseOptions as ne } from "./index210.js";
|
8
|
+
import { useIndexById as re } from "./index211.js";
|
9
|
+
import ie from "./index212.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index214.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index216.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index218.js";
|
16
|
+
import { isEmpty as pe } from "./index219.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
|
18
18
|
__name: "BaseTag",
|
19
19
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index218.js";
|
3
|
+
import G from "./index216.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index111.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
|
2
|
-
import E from "./
|
2
|
+
import E from "./index216.js";
|
3
3
|
/* empty css */
|
4
|
-
import I from "./
|
4
|
+
import I from "./index218.js";
|
5
5
|
import { isNotNil as N } from "./index140.js";
|
6
|
-
import { MaskInput as z } from "./
|
6
|
+
import { MaskInput as z } from "./index265.js";
|
7
7
|
const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
|
8
8
|
__name: "BaseTextInput",
|
9
9
|
props: {
|
package/dist/index53.js
CHANGED
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index221.js";
|
3
3
|
import { wait as C } from "./index135.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as l } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as l } from "./index221.js";
|
3
|
+
import { isNil as B } from "./index222.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index113.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as w } from "./
|
12
|
-
import { useLocale as D } from "./
|
10
|
+
import { pickBy as W } from "./index247.js";
|
11
|
+
import { noop as w } from "./index248.js";
|
12
|
+
import { useLocale as D } from "./index239.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index67.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index239.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
|
2
|
-
import { findRightIndex as T } from "./
|
2
|
+
import { findRightIndex as T } from "./index269.js";
|
3
3
|
import { useId as te } from "./index8.js";
|
4
|
-
import { useUntil as ne } from "./
|
4
|
+
import { useUntil as ne } from "./index241.js";
|
5
5
|
import { wait as oe } from "./index135.js";
|
6
6
|
import ae from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
import B from "./index85.js";
|
9
9
|
/* empty css */
|
10
|
-
import le from "./
|
10
|
+
import le from "./index245.js";
|
11
11
|
/* empty css */
|
12
|
-
import K from "./
|
12
|
+
import K from "./index270.js";
|
13
13
|
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
|
14
14
|
__name: "BbDropdown",
|
15
15
|
props: {
|
package/dist/index81.js
CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import I from "./index113.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as M } from "./
|
12
|
+
import { useLocale as M } from "./index239.js";
|
13
13
|
const O = { class: "bb-dropdown-button__content" }, R = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index83.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, 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 "./index272.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index111.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index271.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index221.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index87.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index273.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as l, renderSlot as s, createTextVNode as j, toDisplayString as z, nextTick as G } from "vue";
|
2
|
-
import { parseSize as J } from "./
|
2
|
+
import { parseSize as J } from "./index256.js";
|
3
3
|
import { useId as D } from "./index8.js";
|
4
|
-
import { useLocale as Q } from "./
|
4
|
+
import { useLocale as Q } from "./index239.js";
|
5
5
|
import { useMobile as X } from "./index9.js";
|
6
|
-
import { useUntil as Y } from "./
|
6
|
+
import { useUntil as Y } from "./index241.js";
|
7
7
|
import { wait as h } from "./index135.js";
|
8
8
|
const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
|
9
9
|
ref: "header",
|
package/dist/index92.js
CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
|
|
3
3
|
/* empty css */
|
4
4
|
import P from "./index13.js";
|
5
5
|
/* empty css */
|
6
|
-
import { debounce as X } from "./
|
7
|
-
import { useLocale as H } from "./
|
6
|
+
import { debounce as X } from "./index274.js";
|
7
|
+
import { useLocale as H } from "./index239.js";
|
8
8
|
import { useRoute as J } from "./index142.js";
|
9
9
|
const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
|
10
10
|
__name: "BbPagination",
|
package/dist/index94.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as l, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
|
2
2
|
import { useId as H } from "./index8.js";
|
3
3
|
import { useIntersectionObserver as N } from "./index137.js";
|
4
|
-
import { useLocale as U } from "./
|
5
|
-
import { useUntil as W } from "./
|
4
|
+
import { useLocale as U } from "./index239.js";
|
5
|
+
import { useUntil as W } from "./index241.js";
|
6
6
|
import q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import A from "./
|
8
|
+
import A from "./index245.js";
|
9
9
|
/* empty css */
|
10
10
|
const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
|
11
11
|
__name: "BbPopover",
|
package/package.json
CHANGED
package/dist/index215.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
import { isNil as f } from "./index260.js";
|
2
|
-
import { computed as t, unref as o } from "vue";
|
3
|
-
const a = ({ modelValue: e, iteratee: h, multiple: u }) => {
|
4
|
-
const i = t(
|
5
|
-
() => new Array().concat(o(e))
|
6
|
-
), s = t(() => i.value.reduce(
|
7
|
-
(r, n) => (h(n) ? r.coherent.push(n) : r.incoherent.push(n), r),
|
8
|
-
{ coherent: [], incoherent: [] }
|
9
|
-
)), c = t(() => u && !o(e).length || !u && f(o(e)) ? !0 : !s.value.incoherent.length);
|
10
|
-
return {
|
11
|
-
status: s,
|
12
|
-
coherent: c
|
13
|
-
};
|
14
|
-
};
|
15
|
-
export {
|
16
|
-
a as useCoherence
|
17
|
-
};
|
package/dist/index217.js
DELETED
package/dist/index244.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { isNil as c } from "./index260.js";
|
2
|
-
const a = (t, r) => {
|
3
|
-
if (!Object.prototype.hasOwnProperty.call(t, r))
|
4
|
-
throw new Error(
|
5
|
-
`Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
|
6
|
-
);
|
7
|
-
}, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
|
8
|
-
const i = s.toLocaleLowerCase();
|
9
|
-
for (let e = 0; e < r.length; e++) {
|
10
|
-
const n = r[e];
|
11
|
-
a(t, n);
|
12
|
-
const o = t[n];
|
13
|
-
if (c(o)) continue;
|
14
|
-
if (l(o).includes(i)) return !0;
|
15
|
-
}
|
16
|
-
return !1;
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
y as matchAnyKey
|
20
|
-
};
|
package/dist/index246.js
DELETED
package/dist/index251.js
DELETED
@@ -1,233 +0,0 @@
|
|
1
|
-
import { defineComponent as U, ref as f, computed as x, watch as D, createElementBlock as d, openBlock as p, withModifiers as X, normalizeStyle as h, normalizeClass as $, createElementVNode as c, renderSlot as m, createTextVNode as z, toDisplayString as g, unref as H, Fragment as Z, renderList as ee } from "vue";
|
2
|
-
import { isNil as b } from "./index260.js";
|
3
|
-
import { useVirtualizer as te } from "./index339.js";
|
4
|
-
import { isNotNil as oe } from "./index140.js";
|
5
|
-
import { hash as L } from "./index216.js";
|
6
|
-
import { useLocale as ne } from "./index220.js";
|
7
|
-
const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
8
|
-
key: 0,
|
9
|
-
class: "bb-listbox__loading"
|
10
|
-
}, se = {
|
11
|
-
key: 1,
|
12
|
-
class: "bb-listbox__no-data"
|
13
|
-
}, ae = ["aria-selected", "data-index"], ue = { class: "autocomplete-option__content" }, re = { class: "autocomplete-option__label" }, xe = /* @__PURE__ */ U({
|
14
|
-
__name: "ListBox",
|
15
|
-
props: {
|
16
|
-
compact: { type: Boolean },
|
17
|
-
options: {},
|
18
|
-
open: { type: Boolean },
|
19
|
-
loading: { type: Boolean },
|
20
|
-
multiple: { type: Boolean },
|
21
|
-
transitionDuration: { default: 250 },
|
22
|
-
loadingText: {},
|
23
|
-
noDataText: {}
|
24
|
-
},
|
25
|
-
emits: ["option:selected", "option:unselected"],
|
26
|
-
setup(N, { expose: V, emit: O }) {
|
27
|
-
const o = N, _ = O, { t: y } = ne(), s = f(null), C = (e) => "option_" + JSON.stringify(e).replace(/\W/g, "_"), i = x(
|
28
|
-
() => o.options.map((e) => ({ ...e, id: C(e.value) }))
|
29
|
-
), v = te({
|
30
|
-
get count() {
|
31
|
-
return o.options.length;
|
32
|
-
},
|
33
|
-
getScrollElement: () => s.value ? s.value : null,
|
34
|
-
estimateSize: () => o.compact ? 33 : 41,
|
35
|
-
overscan: 5,
|
36
|
-
measureElement: () => o.compact ? 33 : 41,
|
37
|
-
useAnimationFrameWithResizeObserver: !0
|
38
|
-
}), F = (e) => {
|
39
|
-
e && v.value.measureElement(e);
|
40
|
-
}, M = x(() => v.value.getVirtualItems()), A = x(() => v.value.getTotalSize()), n = f(null), a = x(
|
41
|
-
() => o.open && o.options.some((e) => !e.disabled)
|
42
|
-
), I = (e = 1) => {
|
43
|
-
const l = b(n.value) ? -1 : n.value;
|
44
|
-
let t = (l + e) % o.options.length;
|
45
|
-
for (; o.options[t].disabled && t !== l; )
|
46
|
-
t = I(e + 1);
|
47
|
-
return t;
|
48
|
-
}, R = () => {
|
49
|
-
if (!a.value) return;
|
50
|
-
const e = I();
|
51
|
-
n.value = e, u();
|
52
|
-
}, S = (e = 1) => {
|
53
|
-
const l = b(n.value) ? 0 : n.value;
|
54
|
-
let t = (l - e + o.options.length) % o.options.length;
|
55
|
-
for (; o.options[t].disabled && t !== l; )
|
56
|
-
t = S(e + 1);
|
57
|
-
return t;
|
58
|
-
}, P = async () => {
|
59
|
-
if (!a.value) return;
|
60
|
-
const e = S();
|
61
|
-
n.value = e, u();
|
62
|
-
}, W = () => {
|
63
|
-
if (!a.value) return;
|
64
|
-
let e = 0;
|
65
|
-
for (; o.options[e].disabled; )
|
66
|
-
e++;
|
67
|
-
n.value = e, u();
|
68
|
-
}, q = () => {
|
69
|
-
if (!a.value) return;
|
70
|
-
let e = o.options.length - 1;
|
71
|
-
for (; o.options[e].disabled && e !== 0; )
|
72
|
-
e--;
|
73
|
-
n.value = e, u();
|
74
|
-
}, J = () => {
|
75
|
-
if (!a.value) return;
|
76
|
-
let e = 0;
|
77
|
-
for (; o.options[e] && !o.options[e].selected && o.options.length !== e; )
|
78
|
-
e++;
|
79
|
-
n.value = e % o.options.length, u();
|
80
|
-
}, Y = () => {
|
81
|
-
if (!a.value) return;
|
82
|
-
let e = o.options.length - 1;
|
83
|
-
for (; o.options[e].selected && e > 0; )
|
84
|
-
e--;
|
85
|
-
n.value = e === -1 ? o.options.length - 1 : e, u();
|
86
|
-
}, j = (e) => {
|
87
|
-
if (!a.value) return;
|
88
|
-
const l = o.options.findIndex(
|
89
|
-
(t) => t.valueHash === e
|
90
|
-
);
|
91
|
-
l >= 0 && (n.value = l), u();
|
92
|
-
}, k = () => {
|
93
|
-
n.value = null;
|
94
|
-
}, u = () => {
|
95
|
-
s.value && oe(n.value) && v.value.scrollToIndex(n.value, {
|
96
|
-
align: "center",
|
97
|
-
behavior: "smooth"
|
98
|
-
});
|
99
|
-
}, w = () => {
|
100
|
-
if (b(n.value) || !o.open) return;
|
101
|
-
const e = o.options[n.value];
|
102
|
-
e.selected ? _("option:unselected", e) : _("option:selected", e);
|
103
|
-
}, B = f(0), E = () => {
|
104
|
-
s.value && (B.value = s.value.scrollHeight);
|
105
|
-
}, G = (e) => !e.disabled, K = (e) => {
|
106
|
-
if (e.preventDefault(), s.value && e.target && e.target instanceof HTMLElement) {
|
107
|
-
if (!s.value.querySelector('[role="listbox"]'))
|
108
|
-
throw new Error("Could not find listbox in DOM tree.");
|
109
|
-
let t = e.target, r = t.dataset.index;
|
110
|
-
for (; b(r) && t.parentElement; )
|
111
|
-
t = t.parentElement, r = t.dataset.index;
|
112
|
-
if (r) {
|
113
|
-
const T = o.options[+r];
|
114
|
-
T && G(T) && (n.value = +r, w());
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}, Q = () => b(n.value) ? void 0 : o.options[n.value];
|
118
|
-
return D(
|
119
|
-
() => o.open,
|
120
|
-
() => {
|
121
|
-
E();
|
122
|
-
},
|
123
|
-
{ flush: "post" }
|
124
|
-
), D(
|
125
|
-
() => o.options,
|
126
|
-
(e, l) => {
|
127
|
-
L(e.map((t) => t.valueHash)) !== L(l.map((t) => t.valueHash)) && (v.value.calculateRange(), E(), k());
|
128
|
-
},
|
129
|
-
{
|
130
|
-
flush: "post"
|
131
|
-
}
|
132
|
-
), V({
|
133
|
-
focusNext: R,
|
134
|
-
focusPrevious: P,
|
135
|
-
focusFirst: W,
|
136
|
-
focusFirstSelected: J,
|
137
|
-
focusLast: q,
|
138
|
-
focusLastSelected: Y,
|
139
|
-
blur: k,
|
140
|
-
confirmOption: w,
|
141
|
-
focusByHash: j,
|
142
|
-
getHighlighted: Q
|
143
|
-
}), (e, l) => (p(), d("span", {
|
144
|
-
class: $(["bb-listbox", {
|
145
|
-
"bb-listbox--compact": e.compact,
|
146
|
-
"bb-listbox--loading": e.loading,
|
147
|
-
"bb-listbox--multiple": e.multiple,
|
148
|
-
"bb-listbox--no-data": !i.value.length,
|
149
|
-
"bb-listbox--open": e.open
|
150
|
-
}]),
|
151
|
-
style: h({
|
152
|
-
"--transition-duration": `${e.transitionDuration}ms`,
|
153
|
-
"--overlay-min-height": `${B.value}px`
|
154
|
-
}),
|
155
|
-
onClick: X(K, ["stop"])
|
156
|
-
}, [
|
157
|
-
c("span", le, [
|
158
|
-
c("span", {
|
159
|
-
ref_key: "inner",
|
160
|
-
ref: s,
|
161
|
-
class: "bb-listbox__inner-container",
|
162
|
-
tabindex: "-1"
|
163
|
-
}, [
|
164
|
-
m(e.$slots, "options:prepend"),
|
165
|
-
e.loading && !e.options.length ? (p(), d("span", ie, [
|
166
|
-
m(e.$slots, "loading", {}, () => [
|
167
|
-
z(g(e.loadingText || H(y)("common.loadingText").value), 1)
|
168
|
-
])
|
169
|
-
])) : e.options.length ? (p(), d("span", {
|
170
|
-
key: 2,
|
171
|
-
role: "listbox",
|
172
|
-
style: h({
|
173
|
-
height: `${A.value}px`
|
174
|
-
}),
|
175
|
-
tabindex: "-1"
|
176
|
-
}, [
|
177
|
-
(p(!0), d(Z, null, ee(M.value, (t, r) => (p(), d("span", {
|
178
|
-
key: i.value[t.index].value,
|
179
|
-
ref_for: !0,
|
180
|
-
ref: F,
|
181
|
-
"aria-selected": n.value === r ? !0 : void 0,
|
182
|
-
class: $({
|
183
|
-
"bb-listbox__option autocomplete-option": !0,
|
184
|
-
"autocomplete-option--focused": n.value === t.index,
|
185
|
-
"autocomplete-option--selected": i.value[t.index].selected,
|
186
|
-
"autocomplete-option--disabled": i.value[t.index].disabled
|
187
|
-
}),
|
188
|
-
"data-index": t.index,
|
189
|
-
role: "option",
|
190
|
-
style: h({
|
191
|
-
transform: `translateY(${t.start}px)`
|
192
|
-
})
|
193
|
-
}, [
|
194
|
-
c("span", ue, [
|
195
|
-
m(e.$slots, "option", {
|
196
|
-
disabled: !!i.value[t.index].disabled,
|
197
|
-
focused: n.value === t.index,
|
198
|
-
index: t.index,
|
199
|
-
item: i.value[t.index].item,
|
200
|
-
selected: !!i.value[t.index].selected,
|
201
|
-
text: i.value[t.index].text,
|
202
|
-
value: i.value[t.index].value
|
203
|
-
}, () => [
|
204
|
-
l[0] || (l[0] = c("svg", {
|
205
|
-
class: "autocomplete-option__checkbox",
|
206
|
-
role: "presentation",
|
207
|
-
viewBox: "276.411 158.834 114.971 114.97"
|
208
|
-
}, [
|
209
|
-
c("path", {
|
210
|
-
d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
|
211
|
-
fill: "none",
|
212
|
-
"stroke-linecap": "round",
|
213
|
-
"stroke-width": "14px"
|
214
|
-
})
|
215
|
-
], -1)),
|
216
|
-
c("span", re, g(i.value[t.index].text), 1)
|
217
|
-
])
|
218
|
-
])
|
219
|
-
], 14, ae))), 128))
|
220
|
-
], 4)) : (p(), d("span", se, [
|
221
|
-
m(e.$slots, "no-data", {}, () => [
|
222
|
-
z(g(e.noDataText || H(y)("common.noDataText").value), 1)
|
223
|
-
])
|
224
|
-
])),
|
225
|
-
m(e.$slots, "options:append")
|
226
|
-
], 512)
|
227
|
-
])
|
228
|
-
], 6));
|
229
|
-
}
|
230
|
-
});
|
231
|
-
export {
|
232
|
-
xe as default
|
233
|
-
};
|
package/dist/index283.js
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
function y(t, r) {
|
2
|
-
return t > r ? 1 : -1;
|
3
|
-
}
|
4
|
-
function c(t, r) {
|
5
|
-
var n = 5381;
|
6
|
-
if (typeof t == "object" && t !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
7
|
-
r || (r = /* @__PURE__ */ new WeakSet());
|
8
|
-
for (var p = Object.keys(t).sort(y), i = 0; i < p.length; i++) {
|
9
|
-
var s = p[i], e = t[s];
|
10
|
-
if (n = 33 * n ^ c(s, r), typeof e == "object" && e !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
11
|
-
if (r.has(e)) continue;
|
12
|
-
r.add(e);
|
13
|
-
}
|
14
|
-
n = 33 * n ^ c(e, r);
|
15
|
-
}
|
16
|
-
return 33 * n ^ c(t.constructor, r);
|
17
|
-
}
|
18
|
-
var o = typeof t;
|
19
|
-
try {
|
20
|
-
t instanceof Date ? o += t.getTime() : o += String(t);
|
21
|
-
} catch {
|
22
|
-
o += String(Object.assign({}, t));
|
23
|
-
}
|
24
|
-
for (var a = 0; a < o.length; a++) n = 33 * n ^ o.charCodeAt(a);
|
25
|
-
return n;
|
26
|
-
}
|
27
|
-
export {
|
28
|
-
c as hash,
|
29
|
-
y as sortNumbers
|
30
|
-
};
|
package/dist/index312.js
DELETED