bitboss-ui 2.0.166 → 2.0.167
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/index106.js +7 -7
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- 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/index139.js +2 -2
- 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 +4 -2
- package/dist/index21.js +16 -16
- package/dist/index210.js +41 -4
- package/dist/index211.js +20 -2
- package/dist/index212.js +93 -40
- package/dist/index214.js +200 -7
- package/dist/index216.js +65 -12
- package/dist/index218.js +12 -3
- package/dist/index219.js +13 -20
- package/dist/index220.js +5 -94
- package/dist/index221.js +7 -0
- package/dist/index222.js +5 -200
- package/dist/index223.js +7 -0
- package/dist/index224.js +5 -66
- package/dist/index225.js +7 -0
- package/dist/index226.js +5 -13
- package/dist/index227.js +3 -2
- package/dist/index228.js +2 -6
- package/dist/index229.js +7 -15
- package/dist/index23.js +17 -17
- package/dist/index230.js +249 -8
- package/dist/index231.js +52 -11
- package/dist/index232.js +39 -96
- package/dist/index233.js +7 -0
- package/dist/index234.js +60 -23
- package/dist/index235.js +6 -2
- package/dist/index236.js +7 -177
- package/dist/index237.js +15 -3
- package/dist/index238.js +34 -5
- package/dist/index239.js +86 -5
- package/dist/index241.js +29 -5
- package/dist/index242.js +17 -5
- package/dist/index243.js +51 -5
- package/dist/index244.js +15 -2
- package/dist/index245.js +12 -2
- package/dist/index246.js +15 -8
- package/dist/index247.js +5 -3
- package/dist/index248.js +2 -51
- package/dist/index249.js +2 -17
- package/dist/index25.js +5 -5
- package/dist/index250.js +9 -106
- package/dist/index251.js +20 -0
- package/dist/index252.js +126 -98
- package/dist/index253.js +6 -0
- package/dist/index254.js +106 -2
- package/dist/index256.js +95 -81
- package/dist/index258.js +11 -28
- package/dist/index259.js +228 -15
- package/dist/index260.js +367 -11
- package/dist/index261.js +2 -16
- package/dist/index262.js +2 -10
- package/dist/index263.js +2 -3
- package/dist/index264.js +3 -18
- package/dist/index265.js +169 -120
- package/dist/index266.js +2 -12
- package/dist/index267.js +10 -228
- package/dist/index268.js +2 -367
- package/dist/index269.js +9 -5
- package/dist/index27.js +1 -1
- package/dist/index270.js +11 -5
- package/dist/index271.js +99 -6
- package/dist/index273.js +23 -52
- package/dist/index274.js +6 -44
- package/dist/index275.js +16 -5
- package/dist/index276.js +3 -60
- package/dist/index277.js +1 -1
- package/dist/index280.js +67 -5
- package/dist/index281.js +5 -67
- package/dist/index282.js +5 -4
- package/dist/index283.js +7 -470
- package/dist/index284.js +471 -2
- package/dist/index285.js +3 -7
- package/dist/index286.js +3 -11
- package/dist/index287.js +3 -2
- package/dist/index289.js +7 -3
- package/dist/index29.js +3 -3
- package/dist/index290.js +7 -3
- package/dist/index291.js +13 -0
- package/dist/index292.js +280 -7
- package/dist/index293.js +2 -200
- package/dist/index294.js +16 -701
- package/dist/index295.js +2 -354
- package/dist/index296.js +15 -57
- package/dist/index297.js +2 -3
- package/dist/index298.js +19 -5
- package/dist/index299.js +2 -280
- package/dist/index300.js +15 -2
- package/dist/index301.js +2 -125
- package/dist/index302.js +19 -2
- package/dist/index303.js +2 -16
- package/dist/index304.js +27 -2
- package/dist/index305.js +2 -16
- package/dist/index306.js +2 -2
- package/dist/index307.js +2 -19
- package/dist/index308.js +2 -2
- package/dist/index309.js +2 -15
- package/dist/index31.js +2 -2
- package/dist/index310.js +28 -2
- package/dist/index311.js +22 -5
- package/dist/index313.js +200 -3
- package/dist/index314.js +4 -17
- package/dist/index315.js +2 -6
- package/dist/index316.js +5 -4
- package/dist/index317.js +2 -8
- package/dist/index318.js +3 -28
- package/dist/index319.js +17 -3
- package/dist/index320.js +124 -3
- package/dist/index321.js +2 -19
- package/dist/index322.js +129 -2
- package/dist/index323.js +3 -27
- package/dist/index324.js +3 -2
- package/dist/index325.js +1 -1
- package/dist/index326.js +4 -2
- package/dist/index327.js +382 -2
- package/dist/index328.js +126 -2
- package/dist/index329.js +5 -22
- package/dist/index33.js +8 -8
- package/dist/{index288.js → index330.js} +1 -1
- package/dist/index331.js +5 -129
- package/dist/index332.js +701 -2
- package/dist/index333.js +353 -381
- package/dist/index334.js +56 -124
- package/dist/index335.js +8 -2
- package/dist/index336.js +5 -92
- package/dist/index337.js +7 -57
- package/dist/index338.js +7 -58
- package/dist/index339.js +32 -227
- package/dist/index340.js +28 -8
- package/dist/index342.js +57 -7
- package/dist/index343.js +58 -7
- package/dist/index344.js +2 -2
- package/dist/index345.js +227 -32
- package/dist/index346.js +2 -28
- package/dist/index347.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index350.js +92 -46
- package/dist/index352.js +1 -1
- package/dist/index353.js +463 -462
- package/dist/index354.js +47 -2
- package/dist/index355.js +462 -463
- package/dist/index356.js +2 -47
- 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 +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 +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/dist/index96.js +1 -1
- package/package.json +2 -2
- package/dist/index213.js +0 -8
- package/dist/index215.js +0 -17
- package/dist/index217.js +0 -36
- package/dist/index240.js +0 -7
- package/dist/index255.js +0 -5
- package/dist/index272.js +0 -252
- package/dist/index312.js +0 -5
- package/dist/index341.js +0 -8
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
2
|
import { useItemValue as G } from "./index277.js";
|
3
|
-
import { isNil as k } from "./
|
3
|
+
import { isNil as k } from "./index263.js";
|
4
4
|
import { indexBy as U } from "./index278.js";
|
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 "./
|
5
|
+
import { hash as p } from "./index227.js";
|
6
|
+
import { useItemsGetter as W } from "./index241.js";
|
7
|
+
import { usePrefill as q } from "./index246.js";
|
8
|
+
import { useIndexById as z } from "./index242.js";
|
9
|
+
import { useBaseOptions as J } from "./index243.js";
|
10
|
+
import { useHashedWatcher as K } from "./index245.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 "./index276.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 "./index261.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
2
|
import { add as ve } from "./index279.js";
|
3
|
-
import { clamp as ke } from "./
|
4
|
-
import { isNil as T } from "./
|
3
|
+
import { clamp as ke } from "./index207.js";
|
4
|
+
import { isNil as T } from "./index263.js";
|
5
5
|
import { useId as _e } from "./index8.js";
|
6
6
|
import { useItemValue as ge } from "./index277.js";
|
7
|
-
import { when as Ce } from "./
|
7
|
+
import { when as Ce } from "./index253.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 "./index227.js";
|
13
|
+
import { useItemsGetter as Ie } from "./index241.js";
|
14
|
+
import { usePrefill as Ve } from "./index246.js";
|
15
|
+
import { useIndexById as Ae } from "./index242.js";
|
16
|
+
import { useBaseOptions as Be } from "./index243.js";
|
17
|
+
import { useHashedWatcher as Te } from "./index245.js";
|
18
|
+
import { useLocale as $e } from "./index219.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 "./index237.js";
|
4
|
+
import B from "./index280.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 "./index238.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, useTemplateRef as $, ref as g, useModel as D, createBlock as k, openBlock as y, normalizeClass as O, withCtx as i, createElementVNode as d, createCommentVNode as P, renderSlot as B, unref as u, normalizeProps as z, guardReactiveProps as F } from "vue";
|
2
|
-
import { throttle as m } from "./
|
2
|
+
import { throttle as m } from "./index276.js";
|
3
3
|
import { useId as N } from "./index8.js";
|
4
|
-
import { useLocale as R } from "./
|
4
|
+
import { useLocale as R } from "./index219.js";
|
5
5
|
import { wait as H } from "./index135.js";
|
6
6
|
import I from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import S from "./
|
8
|
+
import S from "./index271.js";
|
9
9
|
/* empty css */
|
10
10
|
const X = /* @__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 "./index281.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/index139.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as c } from "./
|
1
|
+
import { isArray as p } from "./index282.js";
|
2
|
+
import { isPlainObject as c } from "./index283.js";
|
3
3
|
function i(e, n, u, l, r) {
|
4
4
|
const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
|
5
5
|
o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
|
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 "./index209.js";
|
3
3
|
import { isNotNil as z } from "./index140.js";
|
4
|
-
import { useFocusTrap as S } from "./
|
4
|
+
import { useFocusTrap as S } from "./index210.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 "./index211.js";
|
7
|
+
import P from "./index212.js";
|
8
8
|
/* empty css */
|
9
|
-
import R from "./
|
9
|
+
import R from "./index214.js";
|
10
10
|
/* empty css */
|
11
|
-
import U from "./
|
11
|
+
import U from "./index216.js";
|
12
12
|
/* empty css */
|
13
|
-
import j from "./
|
13
|
+
import j from "./index218.js";
|
14
14
|
import { wait as G } from "./index135.js";
|
15
|
-
import { useLocale as J } from "./
|
15
|
+
import { useLocale as J } from "./index219.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 "./index261.js";
|
3
|
+
import { when as N } from "./index253.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index262.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 "./index239.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 "./index241.js";
|
7
|
+
import { useIndexById as w } from "./index242.js";
|
8
|
+
import { useBaseOptions as U } from "./index243.js";
|
9
|
+
import { useCoherence as q } from "./index244.js";
|
10
|
+
import { hash as J } from "./index227.js";
|
11
|
+
import { useHashedWatcher as C } from "./index245.js";
|
12
|
+
import { usePrefill as Q } from "./index246.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
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 "./index220.js";
|
9
|
+
import G from "./index221.js";
|
10
|
+
import J from "./index222.js";
|
11
|
+
import K from "./index223.js";
|
12
|
+
import Q from "./index224.js";
|
13
|
+
import X from "./index225.js";
|
14
|
+
import ee from "./index226.js";
|
15
|
+
import { hash as M } from "./index227.js";
|
16
|
+
import { last as ae } from "./index228.js";
|
17
|
+
import { useLogger as te } from "./index229.js";
|
18
|
+
import oe from "./index230.js";
|
19
|
+
import le from "./index231.js";
|
20
|
+
import re from "./index232.js";
|
21
|
+
import B from "./index233.js";
|
22
|
+
import se from "./index234.js";
|
23
|
+
import { useLocale as de } from "./index219.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,6 +1,43 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { unrefElement as g } from "./index137.js";
|
2
|
+
import { toArray as A, notNullish as D, tryOnScopeDispose as y } from "./index206.js";
|
3
|
+
import { createFocusTrap as F } from "./index284.js";
|
4
|
+
import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
|
5
|
+
function N(f, a = {}) {
|
6
|
+
let t;
|
7
|
+
const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
|
8
|
+
t && (t.pause(), r.value = !0);
|
9
|
+
}, m = () => {
|
10
|
+
t && (t.unpause(), r.value = !1);
|
11
|
+
}, h = T(() => {
|
12
|
+
const e = i(f);
|
13
|
+
return A(e).map((d) => {
|
14
|
+
const s = i(d);
|
15
|
+
return typeof s == "string" ? s : g(s);
|
16
|
+
}).filter(D);
|
17
|
+
});
|
18
|
+
return w(
|
19
|
+
h,
|
20
|
+
(e) => {
|
21
|
+
e.length && (t = F(e, {
|
22
|
+
...p,
|
23
|
+
onActivate() {
|
24
|
+
o.value = !0, a.onActivate && a.onActivate();
|
25
|
+
},
|
26
|
+
onDeactivate() {
|
27
|
+
o.value = !1, a.onDeactivate && a.onDeactivate();
|
28
|
+
}
|
29
|
+
}), l && c());
|
30
|
+
},
|
31
|
+
{ flush: "post" }
|
32
|
+
), y(() => u()), {
|
33
|
+
hasFocus: o,
|
34
|
+
isPaused: r,
|
35
|
+
activate: c,
|
36
|
+
deactivate: u,
|
37
|
+
pause: v,
|
38
|
+
unpause: m
|
39
|
+
};
|
40
|
+
}
|
3
41
|
export {
|
4
|
-
|
5
|
-
s as when
|
42
|
+
N as useFocusTrap
|
6
43
|
};
|
package/dist/index211.js
CHANGED
@@ -1,4 +1,22 @@
|
|
1
|
-
|
1
|
+
import { MaskInput as r } from "./index265.js";
|
2
|
+
const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
|
3
|
+
if (a.arg == null || a.instance == null) return;
|
4
|
+
const s = "setup" in a.instance.$.type;
|
5
|
+
a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
|
6
|
+
}, k = (a, n) => {
|
7
|
+
var s;
|
8
|
+
const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
|
9
|
+
if (t == null || (t == null ? void 0 : t.type) === "file") return;
|
10
|
+
let e = {};
|
11
|
+
if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
|
12
|
+
const l = (o) => {
|
13
|
+
const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
|
14
|
+
p(n, i);
|
15
|
+
};
|
16
|
+
e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
|
17
|
+
}
|
18
|
+
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
19
|
+
};
|
2
20
|
export {
|
3
|
-
|
21
|
+
k as vMaska
|
4
22
|
};
|
package/dist/index212.js
CHANGED
@@ -1,43 +1,96 @@
|
|
1
|
-
import {
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
1
|
+
import { defineComponent as h, toRef as y, ref as o, computed as n, watch as x, createBlock as $, openBlock as b, withCtx as A, createElementBlock as k, mergeProps as l, createElementVNode as f, renderSlot as B } from "vue";
|
2
|
+
import C from "./index237.js";
|
3
|
+
import c from "./index344.js";
|
4
|
+
import { useFloating as D, arrow as E } from "./index252.js";
|
5
|
+
import { flip as P, offset as F, shift as M, autoUpdate as S } from "./index260.js";
|
6
|
+
const W = /* @__PURE__ */ h({
|
7
|
+
__name: "CommonFloating",
|
8
|
+
props: {
|
9
|
+
arrowPadding: {},
|
10
|
+
eager: { type: Boolean },
|
11
|
+
offset: {},
|
12
|
+
padding: {},
|
13
|
+
placement: {},
|
14
|
+
theme: { default: "default" },
|
15
|
+
transitionDuration: {},
|
16
|
+
containerAttributes: { default: () => ({}) },
|
17
|
+
bubbleAttributes: {},
|
18
|
+
wrapper: {},
|
19
|
+
baseClass: {},
|
20
|
+
open: { type: Boolean },
|
21
|
+
teleportTarget: {}
|
22
|
+
},
|
23
|
+
setup(d) {
|
24
|
+
const e = d, m = y(e, "wrapper"), i = o(), s = o(), p = o(), { floatingStyles: g, placement: w, middlewareData: a } = D(
|
25
|
+
i,
|
26
|
+
s,
|
27
|
+
{
|
28
|
+
placement: e.placement,
|
29
|
+
whileElementsMounted: S,
|
30
|
+
middleware: [
|
31
|
+
P(),
|
32
|
+
F(e.offset),
|
33
|
+
M({ padding: e.padding }),
|
34
|
+
E({
|
35
|
+
element: p,
|
36
|
+
padding: e.arrowPadding
|
37
|
+
})
|
38
|
+
]
|
39
|
+
}
|
40
|
+
), _ = n(() => {
|
41
|
+
if (a.value.arrow) {
|
42
|
+
const { x: t, y: r } = a.value.arrow;
|
43
|
+
return {
|
44
|
+
style: {
|
45
|
+
left: `${t}px`,
|
46
|
+
top: `${r}px`
|
47
|
+
}
|
48
|
+
};
|
49
|
+
}
|
50
|
+
}), u = n(() => {
|
51
|
+
var t, r;
|
52
|
+
return c({}, e.containerAttributes, {
|
53
|
+
class: {
|
54
|
+
"bb-floating": !0,
|
55
|
+
[`bb-floating--${w.value}`]: !0,
|
56
|
+
[`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
|
57
|
+
"bb-floating--hidden": !e.open,
|
58
|
+
"bb-floating--open": e.open
|
25
59
|
},
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
60
|
+
style: {
|
61
|
+
...g.value,
|
62
|
+
"--transition-duration": `${e.transitionDuration}ms`,
|
63
|
+
"--arrow-offset-x": Math.round(((r = (t = a.value) == null ? void 0 : t.arrow) == null ? void 0 : r.x) ?? 0) + "px"
|
64
|
+
},
|
65
|
+
tabindex: e.open ? void 0 : -1
|
66
|
+
});
|
67
|
+
}), v = n(() => c({}, e.bubbleAttributes, {}));
|
68
|
+
return x(
|
69
|
+
() => e.open,
|
70
|
+
(t) => {
|
71
|
+
t && (i.value = m.value);
|
72
|
+
}
|
73
|
+
), (t, r) => (b(), $(C, { target: t.teleportTarget }, {
|
74
|
+
default: A(() => [
|
75
|
+
(b(), k("span", l(u.value, {
|
76
|
+
key: u.value.id,
|
77
|
+
ref_key: "content",
|
78
|
+
ref: s
|
79
|
+
}), [
|
80
|
+
f("span", l({
|
81
|
+
ref_key: "bubblearrow",
|
82
|
+
ref: p,
|
83
|
+
class: "bb-floating__arrow"
|
84
|
+
}, _.value), null, 16),
|
85
|
+
f("span", l({ class: "bb-floating__bubble" }, v.value), [
|
86
|
+
B(t.$slots, "default")
|
87
|
+
], 16)
|
88
|
+
], 16))
|
89
|
+
]),
|
90
|
+
_: 3
|
91
|
+
}, 8, ["target"]));
|
92
|
+
}
|
93
|
+
});
|
41
94
|
export {
|
42
|
-
|
95
|
+
W as default
|
43
96
|
};
|