bitboss-ui 2.0.170 → 2.0.171
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/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +12 -12
- package/dist/index129.js +2 -2
- package/dist/index13.js +1 -1
- package/dist/index131.js +3 -3
- package/dist/index133.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +2 -5
- package/dist/index21.js +16 -16
- package/dist/index210.js +4 -5
- package/dist/index211.js +2 -5
- package/dist/index212.js +18 -5
- package/dist/index213.js +128 -5
- package/dist/index214.js +106 -5
- package/dist/index216.js +100 -3
- package/dist/index218.js +64 -6
- package/dist/index220.js +13 -52
- package/dist/index221.js +5 -43
- package/dist/index222.js +15 -5
- package/dist/index223.js +29 -60
- package/dist/index224.js +16 -13
- package/dist/index225.js +12 -2
- package/dist/index226.js +51 -4
- package/dist/index227.js +17 -2
- package/dist/index228.js +15 -34
- package/dist/index229.js +3 -2
- package/dist/index23.js +17 -17
- package/dist/index230.js +12 -2
- package/dist/index231.js +12 -85
- package/dist/index232.js +4 -0
- package/dist/index233.js +227 -28
- package/dist/index234.js +363 -12
- package/dist/index235.js +2 -51
- package/dist/index236.js +5 -15
- package/dist/index237.js +5 -12
- package/dist/index238.js +5 -16
- package/dist/index239.js +5 -3
- package/dist/index240.js +5 -4
- package/dist/index241.js +5 -41
- package/dist/index242.js +5 -20
- package/dist/index243.js +6 -92
- package/dist/{index219.js → index244.js} +6 -6
- package/dist/index245.js +41 -189
- package/dist/index246.js +46 -0
- package/dist/index247.js +4 -65
- package/dist/index248.js +62 -0
- package/dist/index249.js +5 -13
- package/dist/index25.js +5 -5
- package/dist/index250.js +2 -6
- package/dist/index251.js +41 -7
- package/dist/index252.js +19 -14
- package/dist/index253.js +93 -17
- package/dist/index255.js +9 -106
- package/dist/index256.js +6 -0
- package/dist/index257.js +194 -94
- package/dist/index259.js +7 -12
- package/dist/index260.js +86 -2
- package/dist/index262.js +33 -367
- package/dist/index263.js +2 -2
- package/dist/index264.js +2 -5
- package/dist/index265.js +3 -9
- package/dist/index267.js +9 -8
- package/dist/index268.js +2 -10
- package/dist/index269.js +6 -101
- package/dist/index27.js +1 -1
- package/dist/index270.js +18 -0
- package/dist/index271.js +11 -23
- package/dist/index272.js +101 -10
- package/dist/index274.js +3 -6
- package/dist/index275.js +8 -15
- package/dist/index276.js +23 -3
- package/dist/index277.js +2 -9
- package/dist/index278.js +9 -8
- package/dist/index279.js +8 -2
- package/dist/index280.js +5 -67
- package/dist/index281.js +67 -5
- package/dist/index282.js +1 -1
- package/dist/index283.js +1 -1
- package/dist/index284.js +4 -280
- package/dist/index285.js +4 -2
- package/dist/index286.js +128 -15
- package/dist/index287.js +3 -2
- package/dist/index288.js +3 -16
- package/dist/index289.js +3 -2
- package/dist/index29.js +3 -3
- package/dist/index291.js +7 -2
- package/dist/index292.js +2 -15
- package/dist/index293.js +2 -2
- package/dist/index294.js +17 -19
- package/dist/index295.js +28 -2
- package/dist/index296.js +7 -27
- package/dist/index297.js +11 -2
- package/dist/index298.js +280 -2
- package/dist/index299.js +2 -2
- package/dist/index300.js +16 -2
- package/dist/index301.js +2 -2
- package/dist/index302.js +15 -27
- package/dist/index303.js +2 -22
- package/dist/{index290.js → index304.js} +2 -2
- package/dist/index305.js +2 -7
- package/dist/index306.js +15 -7
- package/dist/index307.js +2 -11
- package/dist/index308.js +19 -4
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +26 -5
- package/dist/index311.js +2 -4
- package/dist/index312.js +2 -3
- package/dist/index313.js +2 -17
- package/dist/index314.js +2 -5
- package/dist/index315.js +2 -471
- package/dist/index316.js +22 -3
- package/dist/index318.js +125 -3
- package/dist/index319.js +4 -0
- package/dist/index320.js +457 -186
- package/dist/index321.js +3 -2
- package/dist/index322.js +3 -129
- package/dist/index323.js +382 -3
- package/dist/index324.js +126 -3
- package/dist/index325.js +1 -1
- package/dist/index326.js +3 -382
- package/dist/index327.js +5 -125
- package/dist/index328.js +196 -121
- package/dist/index329.js +5 -2
- package/dist/index33.js +8 -8
- package/dist/index330.js +701 -3
- package/dist/index331.js +354 -5
- package/dist/index332.js +58 -701
- package/dist/index333.js +3 -354
- package/dist/index334.js +5 -58
- package/dist/index335.js +47 -2
- package/dist/index336.js +2 -7
- package/dist/index337.js +32 -18
- package/dist/index338.js +28 -7
- package/dist/index340.js +57 -27
- package/dist/index341.js +60 -0
- package/dist/index342.js +6 -227
- package/dist/index343.js +8 -58
- package/dist/index344.js +6 -58
- package/dist/index345.js +8 -8
- package/dist/index346.js +5 -6
- package/dist/index347.js +7 -8
- package/dist/index348.js +19 -5
- package/dist/index349.js +227 -46
- package/dist/index35.js +4 -4
- package/dist/index350.js +1 -1
- package/dist/index351.js +484 -0
- package/dist/index353.js +3 -482
- package/dist/index355.js +1 -1
- package/dist/index37.js +22 -22
- package/dist/index39.js +5 -5
- 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 +2 -2
- 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 +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +41 -40
- package/dist/index96.js +1 -1
- package/package.json +1 -1
- package/dist/index215.js +0 -7
- package/dist/index217.js +0 -4
- package/dist/index254.js +0 -130
- package/dist/index261.js +0 -230
- package/dist/index273.js +0 -5
- package/dist/index317.js +0 -5
- package/dist/index339.js +0 -35
- package/dist/index352.js +0 -5
@@ -16,7 +16,7 @@ export type BbPopoverEvents = {
|
|
16
16
|
(e: 'shown'): void;
|
17
17
|
(e: 'hidden'): void;
|
18
18
|
};
|
19
|
-
declare const onTriggerClick: () => Promise<void>;
|
19
|
+
declare const onTriggerClick: (event: MouseEvent) => Promise<void>;
|
20
20
|
declare const onClickClose: () => Promise<void>;
|
21
21
|
declare function __VLS_template(): {
|
22
22
|
attrs: Partial<{}>;
|
@@ -147,7 +147,7 @@ declare function __VLS_template(): {
|
|
147
147
|
};
|
148
148
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
149
149
|
declare const __VLS_component: import('vue').DefineComponent<BbPopoverProps, {
|
150
|
-
open: () => Promise<void>;
|
150
|
+
open: (event: MouseEvent) => Promise<void>;
|
151
151
|
close: () => Promise<void>;
|
152
152
|
closed: import('vue').ComputedRef<boolean>;
|
153
153
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
package/dist/index106.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
|
2
|
-
import { useItemValue as G } from "./
|
3
|
-
import { isNil as k } from "./
|
4
|
-
import { indexBy as U } from "./
|
5
|
-
import { hash as p } from "./
|
6
|
-
import { useItemsGetter as W } from "./
|
7
|
-
import { usePrefill as q } from "./
|
8
|
-
import { useIndexById as z } from "./
|
9
|
-
import { useBaseOptions as J } from "./
|
10
|
-
import { useHashedWatcher as K } from "./
|
2
|
+
import { useItemValue as G } from "./index278.js";
|
3
|
+
import { isNil as k } from "./index264.js";
|
4
|
+
import { indexBy as U } from "./index279.js";
|
5
|
+
import { hash as p } from "./index229.js";
|
6
|
+
import { useItemsGetter as W } from "./index223.js";
|
7
|
+
import { usePrefill as q } from "./index224.js";
|
8
|
+
import { useIndexById as z } from "./index227.js";
|
9
|
+
import { useBaseOptions as J } from "./index226.js";
|
10
|
+
import { useHashedWatcher as K } from "./index230.js";
|
11
11
|
const oe = /* @__PURE__ */ D({
|
12
12
|
__name: "BbRows",
|
13
13
|
props: {
|
package/dist/index111.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as a, onMounted as m, onBeforeUnmount as p, createBlock as i, openBlock as l, resolveDynamicComponent as u, normalizeStyle as d, withCtx as f, renderSlot as h } from "vue";
|
2
|
-
import { throttle as g } from "./
|
2
|
+
import { throttle as g } from "./index274.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index113.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as s, createElementBlock as b, openBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index209.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
5
5
|
props: {
|
package/dist/index121.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
import { defineComponent as ue, ref as K, computed as h, toRef as O, watch as D, reactive as pe, createBlock as Q, openBlock as n, resolveDynamicComponent as me, normalizeClass as p, unref as v, withCtx as fe, createElementBlock as d, createCommentVNode as g, createElementVNode as o, toDisplayString as m, renderSlot as f, Fragment as A, renderList as B, createVNode as X, createTextVNode as ye, mergeProps as he } from "vue";
|
2
|
-
import { add as ve } from "./
|
3
|
-
import { clamp as ke } from "./
|
4
|
-
import { isNil as T } from "./
|
2
|
+
import { add as ve } from "./index277.js";
|
3
|
+
import { clamp as ke } from "./index207.js";
|
4
|
+
import { isNil as T } from "./index264.js";
|
5
5
|
import { useId as _e } from "./index8.js";
|
6
|
-
import { useItemValue as ge } from "./
|
7
|
-
import { when as Ce } from "./
|
6
|
+
import { useItemValue as ge } from "./index278.js";
|
7
|
+
import { when as Ce } from "./index210.js";
|
8
8
|
import Y from "./index17.js";
|
9
9
|
/* empty css */
|
10
10
|
import we from "./index31.js";
|
11
11
|
/* empty css */
|
12
|
-
import { hash as E } from "./
|
13
|
-
import { useItemsGetter as Ie } from "./
|
14
|
-
import { usePrefill as Ve } from "./
|
15
|
-
import { useIndexById as Ae } from "./
|
16
|
-
import { useBaseOptions as Be } from "./
|
17
|
-
import { useHashedWatcher as Te } from "./
|
18
|
-
import { useLocale as $e } from "./
|
12
|
+
import { hash as E } from "./index229.js";
|
13
|
+
import { useItemsGetter as Ie } from "./index223.js";
|
14
|
+
import { usePrefill as Ve } from "./index224.js";
|
15
|
+
import { useIndexById as Ae } from "./index227.js";
|
16
|
+
import { useBaseOptions as Be } from "./index226.js";
|
17
|
+
import { useHashedWatcher as Te } from "./index230.js";
|
18
|
+
import { useLocale as $e } from "./index231.js";
|
19
19
|
const xe = {
|
20
20
|
key: 0,
|
21
21
|
class: "sr-only"
|
package/dist/index129.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as l, createBlock as o, openBlock as e, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
|
2
2
|
import { useToast as k, state as b } from "./index11.js";
|
3
|
-
import C from "./
|
4
|
-
import B from "./
|
3
|
+
import C from "./index222.js";
|
4
|
+
import B from "./index281.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
7
7
|
props: {
|
package/dist/index13.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as m, getCurrentInstance as h, computed as r, createBlock as i, openBlock as u, mergeProps as c, withCtx as d, renderSlot as p, createTextVNode as f, toDisplayString as v, resolveDynamicComponent as C } from "vue";
|
2
|
-
import S from "./
|
2
|
+
import S from "./index262.js";
|
3
3
|
const A = /* @__PURE__ */ m({
|
4
4
|
__name: "BaseButton",
|
5
5
|
props: {
|
package/dist/index131.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as V, mergeModels as h, ref as i, useModel as $, createBlock as k, openBlock as y, normalizeClass as D, withCtx as d, createElementVNode as u, createCommentVNode as O, renderSlot as B, unref as m, normalizeProps as P, guardReactiveProps as z } from "vue";
|
2
|
-
import { throttle as p } from "./
|
2
|
+
import { throttle as p } from "./index274.js";
|
3
3
|
import { useId as F } from "./index8.js";
|
4
|
-
import { useLocale as N } from "./
|
4
|
+
import { useLocale as N } from "./index231.js";
|
5
5
|
import { wait as H } from "./index135.js";
|
6
6
|
import I from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import R from "./
|
8
|
+
import R from "./index272.js";
|
9
9
|
/* empty css */
|
10
10
|
const W = /* @__PURE__ */ V({
|
11
11
|
__name: "BbTooltip",
|
package/dist/index133.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
|
2
|
-
import { flattenTree as T } from "./
|
2
|
+
import { flattenTree as T } from "./index280.js";
|
3
3
|
const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
|
4
4
|
__name: "BbTree",
|
5
5
|
props: {
|
package/dist/index136.js
CHANGED
package/dist/index138.js
CHANGED
package/dist/index15.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
import { defineComponent as H, ref as u, computed as D, createElementBlock as E, openBlock as I, Fragment as M, createVNode as p, normalizeClass as _, withCtx as n, unref as s, withDirectives as F, createElementVNode as c, mergeProps as T, renderSlot as r, withModifiers as q, normalizeStyle as L, nextTick as N } from "vue";
|
2
|
-
import { isHex as O } from "./
|
2
|
+
import { isHex as O } from "./index256.js";
|
3
3
|
import { isNotNil as z } from "./index140.js";
|
4
|
-
import { useFocusTrap as S } from "./
|
4
|
+
import { useFocusTrap as S } from "./index251.js";
|
5
5
|
import { useId as A } from "./index8.js";
|
6
|
-
import { vMaska as K } from "./
|
7
|
-
import P from "./
|
6
|
+
import { vMaska as K } from "./index252.js";
|
7
|
+
import P from "./index253.js";
|
8
8
|
/* empty css */
|
9
|
-
import R from "./
|
9
|
+
import R from "./index257.js";
|
10
10
|
/* empty css */
|
11
|
-
import U from "./
|
11
|
+
import U from "./index218.js";
|
12
12
|
/* empty css */
|
13
|
-
import j from "./
|
13
|
+
import j from "./index220.js";
|
14
14
|
import { wait as G } from "./index135.js";
|
15
|
-
import { useLocale as J } from "./
|
15
|
+
import { useLocale as J } from "./index231.js";
|
16
16
|
const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], W = ["aria-label"], X = { class: "bb-common-input-inner-container__suffix" }, ce = /* @__PURE__ */ H({
|
17
17
|
__name: "BaseColorInput",
|
18
18
|
props: {
|
package/dist/index17.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as N } from "./
|
4
|
-
import { booleanishToBoolean as S } from "./
|
2
|
+
import { isCssColor as y } from "./index209.js";
|
3
|
+
import { when as N } from "./index210.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index235.js";
|
5
5
|
const A = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index19.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 b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
|
2
2
|
import W from "./index17.js";
|
3
3
|
/* empty css */
|
4
|
-
import K from "./
|
4
|
+
import K from "./index260.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as N } from "./
|
7
|
-
import { useIndexById as w } from "./
|
8
|
-
import { useBaseOptions as U } from "./
|
9
|
-
import { useCoherence as q } from "./
|
10
|
-
import { hash as J } from "./
|
11
|
-
import { useHashedWatcher as C } from "./
|
12
|
-
import { usePrefill as Q } from "./
|
6
|
+
import { useItemsGetter as N } from "./index223.js";
|
7
|
+
import { useIndexById as w } from "./index227.js";
|
8
|
+
import { useBaseOptions as U } from "./index226.js";
|
9
|
+
import { useCoherence as q } from "./index228.js";
|
10
|
+
import { hash as J } from "./index229.js";
|
11
|
+
import { useHashedWatcher as C } from "./index230.js";
|
12
|
+
import { usePrefill as Q } from "./index224.js";
|
13
13
|
const de = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseCheckboxGroup",
|
15
15
|
props: {
|
package/dist/index207.js
CHANGED
package/dist/index208.js
CHANGED
package/dist/index209.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
import { __require as o } from "./index284.js";
|
3
|
-
var t = o();
|
4
|
-
const s = /* @__PURE__ */ r(t);
|
1
|
+
const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
|
5
2
|
export {
|
6
|
-
s as
|
3
|
+
s as isCssColor
|
7
4
|
};
|
package/dist/index21.js
CHANGED
@@ -5,22 +5,22 @@ import { _config as C } from "./index4.js";
|
|
5
5
|
import { useId as F } from "./index8.js";
|
6
6
|
import f from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import s from "./
|
9
|
-
import G from "./
|
10
|
-
import J from "./
|
11
|
-
import K from "./
|
12
|
-
import Q from "./
|
13
|
-
import X from "./
|
14
|
-
import ee from "./
|
15
|
-
import { hash as M } from "./
|
16
|
-
import { last as ae } from "./
|
17
|
-
import { useLogger as te } from "./
|
18
|
-
import oe from "./
|
19
|
-
import le from "./
|
20
|
-
import re from "./
|
21
|
-
import B from "./
|
22
|
-
import se from "./
|
23
|
-
import { useLocale as de } from "./
|
8
|
+
import s from "./index236.js";
|
9
|
+
import G from "./index237.js";
|
10
|
+
import J from "./index238.js";
|
11
|
+
import K from "./index239.js";
|
12
|
+
import Q from "./index240.js";
|
13
|
+
import X from "./index241.js";
|
14
|
+
import ee from "./index242.js";
|
15
|
+
import { hash as M } from "./index229.js";
|
16
|
+
import { last as ae } from "./index211.js";
|
17
|
+
import { useLogger as te } from "./index243.js";
|
18
|
+
import oe from "./index244.js";
|
19
|
+
import le from "./index245.js";
|
20
|
+
import re from "./index246.js";
|
21
|
+
import B from "./index247.js";
|
22
|
+
import se from "./index248.js";
|
23
|
+
import { useLocale as de } from "./index231.js";
|
24
24
|
const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
|
25
25
|
style: { transform: "rotate(180deg)" },
|
26
26
|
viewBox: "0 0 24 24",
|
package/dist/index210.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
var t = e();
|
4
|
-
const m = /* @__PURE__ */ r(t);
|
1
|
+
import { curry as e } from "./index284.js";
|
2
|
+
const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
|
5
3
|
export {
|
6
|
-
|
4
|
+
t as baseWhen,
|
5
|
+
s as when
|
7
6
|
};
|
package/dist/index211.js
CHANGED
package/dist/index212.js
CHANGED
@@ -1,7 +1,20 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { isNil as c } from "./index264.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
|
+
};
|
5
18
|
export {
|
6
|
-
|
19
|
+
y as matchAnyKey
|
7
20
|
};
|
package/dist/index213.js
CHANGED
@@ -1,7 +1,130 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
1
|
+
import { arrow as j, computePosition as A } from "./index234.js";
|
2
|
+
import { autoUpdate as W, flip as X, offset as Y, platform as Z, shift as ee } from "./index234.js";
|
3
|
+
import { isNode as B, getNodeName as F } from "./index286.js";
|
4
|
+
import { getOverflowAncestors as te } from "./index286.js";
|
5
|
+
import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
|
6
|
+
function z(e) {
|
7
|
+
return e != null && typeof e == "object" && "$el" in e;
|
8
|
+
}
|
9
|
+
function V(e) {
|
10
|
+
if (z(e)) {
|
11
|
+
const l = e.$el;
|
12
|
+
return B(l) && F(l) === "#comment" ? null : l;
|
13
|
+
}
|
14
|
+
return e;
|
15
|
+
}
|
16
|
+
function i(e) {
|
17
|
+
return typeof e == "function" ? e() : q(e);
|
18
|
+
}
|
19
|
+
function K(e) {
|
20
|
+
return {
|
21
|
+
name: "arrow",
|
22
|
+
options: e,
|
23
|
+
fn(l) {
|
24
|
+
const t = V(i(e.element));
|
25
|
+
return t == null ? {} : j({
|
26
|
+
element: t,
|
27
|
+
padding: e.padding
|
28
|
+
}).fn(l);
|
29
|
+
}
|
30
|
+
};
|
31
|
+
}
|
32
|
+
function M(e) {
|
33
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
34
|
+
}
|
35
|
+
function C(e, l) {
|
36
|
+
const t = M(e);
|
37
|
+
return Math.round(l * t) / t;
|
38
|
+
}
|
39
|
+
function L(e, l, t) {
|
40
|
+
t === void 0 && (t = {});
|
41
|
+
const D = t.whileElementsMounted, s = r(() => {
|
42
|
+
var n;
|
43
|
+
return (n = i(t.open)) != null ? n : !0;
|
44
|
+
}), O = r(() => i(t.middleware)), p = r(() => {
|
45
|
+
var n;
|
46
|
+
return (n = i(t.placement)) != null ? n : "bottom";
|
47
|
+
}), w = r(() => {
|
48
|
+
var n;
|
49
|
+
return (n = i(t.strategy)) != null ? n : "absolute";
|
50
|
+
}), S = r(() => {
|
51
|
+
var n;
|
52
|
+
return (n = i(t.transform)) != null ? n : !0;
|
53
|
+
}), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
|
54
|
+
const n = {
|
55
|
+
position: m.value,
|
56
|
+
left: "0",
|
57
|
+
top: "0"
|
58
|
+
};
|
59
|
+
if (!u.value)
|
60
|
+
return n;
|
61
|
+
const a = C(u.value, y.value), b = C(u.value, h.value);
|
62
|
+
return S.value ? {
|
63
|
+
...n,
|
64
|
+
transform: "translate(" + a + "px, " + b + "px)",
|
65
|
+
...M(u.value) >= 1.5 && {
|
66
|
+
willChange: "transform"
|
67
|
+
}
|
68
|
+
} : {
|
69
|
+
position: m.value,
|
70
|
+
left: a + "px",
|
71
|
+
top: b + "px"
|
72
|
+
};
|
73
|
+
});
|
74
|
+
let d;
|
75
|
+
function v() {
|
76
|
+
if (f.value == null || u.value == null)
|
77
|
+
return;
|
78
|
+
const n = s.value;
|
79
|
+
A(f.value, u.value, {
|
80
|
+
middleware: O.value,
|
81
|
+
placement: p.value,
|
82
|
+
strategy: w.value
|
83
|
+
}).then((a) => {
|
84
|
+
y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
|
85
|
+
});
|
86
|
+
}
|
87
|
+
function R() {
|
88
|
+
typeof d == "function" && (d(), d = void 0);
|
89
|
+
}
|
90
|
+
function N() {
|
91
|
+
if (R(), D === void 0) {
|
92
|
+
v();
|
93
|
+
return;
|
94
|
+
}
|
95
|
+
if (f.value != null && u.value != null) {
|
96
|
+
d = D(f.value, u.value, v);
|
97
|
+
return;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
function $() {
|
101
|
+
s.value || (g.value = !1);
|
102
|
+
}
|
103
|
+
return x([O, p, w, s], v, {
|
104
|
+
flush: "sync"
|
105
|
+
}), x([f, u], N, {
|
106
|
+
flush: "sync"
|
107
|
+
}), x(s, $, {
|
108
|
+
flush: "sync"
|
109
|
+
}), U() && k(R), {
|
110
|
+
x: o(y),
|
111
|
+
y: o(h),
|
112
|
+
strategy: o(m),
|
113
|
+
placement: o(P),
|
114
|
+
middlewareData: o(E),
|
115
|
+
isPositioned: o(g),
|
116
|
+
floatingStyles: _,
|
117
|
+
update: v
|
118
|
+
};
|
119
|
+
}
|
5
120
|
export {
|
6
|
-
|
121
|
+
K as arrow,
|
122
|
+
W as autoUpdate,
|
123
|
+
A as computePosition,
|
124
|
+
X as flip,
|
125
|
+
te as getOverflowAncestors,
|
126
|
+
Y as offset,
|
127
|
+
Z as platform,
|
128
|
+
ee as shift,
|
129
|
+
L as useFloating
|
7
130
|
};
|
package/dist/index214.js
CHANGED
@@ -1,7 +1,108 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
1
|
+
import { defineComponent as y, ref as F, computed as H, watch as N, createElementBlock as L, openBlock as p, Fragment as S, renderList as V, createBlock as A, withModifiers as O, normalizeClass as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
|
2
|
+
import { hash as d } from "./index229.js";
|
3
|
+
import { isNil as l } from "./index264.js";
|
4
|
+
import E from "./index67.js";
|
5
|
+
/* empty css */
|
6
|
+
const K = /* @__PURE__ */ y({
|
7
|
+
__name: "ChipsBox",
|
8
|
+
props: {
|
9
|
+
options: {}
|
10
|
+
},
|
11
|
+
emits: ["option:unselected"],
|
12
|
+
setup(f, { expose: v, emit: h }) {
|
13
|
+
const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
|
14
|
+
const s = l(n.value) ? -1 : n.value;
|
15
|
+
let o = (s + e) % t.options.length;
|
16
|
+
for (; t.options[o].disabled && o !== s; )
|
17
|
+
o = a(e + 1);
|
18
|
+
return o;
|
19
|
+
}, x = () => {
|
20
|
+
if (!i.value) return;
|
21
|
+
const e = a();
|
22
|
+
n.value = e;
|
23
|
+
}, c = (e = 1) => {
|
24
|
+
const s = l(n.value) ? 0 : n.value;
|
25
|
+
let o = (s - e + t.options.length) % t.options.length;
|
26
|
+
for (; t.options[o].disabled && o !== s; )
|
27
|
+
o = c(e + 1);
|
28
|
+
return o;
|
29
|
+
}, m = async () => {
|
30
|
+
if (!i.value) return;
|
31
|
+
const e = c();
|
32
|
+
n.value = e;
|
33
|
+
}, w = () => {
|
34
|
+
if (!i.value) return;
|
35
|
+
let e = 0;
|
36
|
+
for (; t.options[e].disabled; )
|
37
|
+
e++;
|
38
|
+
n.value = e;
|
39
|
+
}, b = () => {
|
40
|
+
if (!i.value) return;
|
41
|
+
let e = t.options.length - 1;
|
42
|
+
for (; t.options[e].disabled && e !== 0; )
|
43
|
+
e--;
|
44
|
+
n.value = e;
|
45
|
+
}, I = () => {
|
46
|
+
if (!i.value) return;
|
47
|
+
let e = 0;
|
48
|
+
for (; !t.options[e].selected && t.options.length !== e; )
|
49
|
+
e++;
|
50
|
+
n.value = e;
|
51
|
+
}, g = () => {
|
52
|
+
if (!i.value) return;
|
53
|
+
let e = t.options.length - 1;
|
54
|
+
for (; t.options[e].selected && e !== 0; )
|
55
|
+
e--;
|
56
|
+
n.value = e;
|
57
|
+
}, _ = (e) => {
|
58
|
+
if (!i.value) return;
|
59
|
+
const s = t.options.findIndex(
|
60
|
+
(o) => o.valueHash === e
|
61
|
+
);
|
62
|
+
s >= 0 && (n.value = s);
|
63
|
+
}, r = () => {
|
64
|
+
n.value = null;
|
65
|
+
}, k = () => {
|
66
|
+
if (l(n.value)) return;
|
67
|
+
const e = t.options[n.value];
|
68
|
+
e.selected && u("option:unselected", e);
|
69
|
+
}, C = () => l(n.value) ? void 0 : t.options[n.value];
|
70
|
+
return N(
|
71
|
+
() => t.options,
|
72
|
+
(e, s) => {
|
73
|
+
d(e) !== d(s) && r();
|
74
|
+
},
|
75
|
+
{
|
76
|
+
flush: "post"
|
77
|
+
}
|
78
|
+
), v({
|
79
|
+
focusNext: x,
|
80
|
+
focusPrevious: m,
|
81
|
+
focusFirst: w,
|
82
|
+
focusFirstSelected: I,
|
83
|
+
focusLast: b,
|
84
|
+
focusLastSelected: g,
|
85
|
+
blur: r,
|
86
|
+
confirmOption: k,
|
87
|
+
focusByHash: _,
|
88
|
+
getHighlighted: C
|
89
|
+
}), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
|
90
|
+
key: o.valueHash,
|
91
|
+
class: P({
|
92
|
+
"bb-chipsbox-item": !0,
|
93
|
+
"bb-chipsbox-item--focused": B === n.value
|
94
|
+
}),
|
95
|
+
clearable: !0,
|
96
|
+
text: o.text,
|
97
|
+
"onClick:clear": O((M) => u("option:unselected", o), ["stop"])
|
98
|
+
}, {
|
99
|
+
default: $(() => [
|
100
|
+
z(D(o.text), 1)
|
101
|
+
]),
|
102
|
+
_: 2
|
103
|
+
}, 1032, ["class", "text", "onClick:clear"]))), 128));
|
104
|
+
}
|
105
|
+
});
|
5
106
|
export {
|
6
|
-
|
107
|
+
K as default
|
7
108
|
};
|