bitboss-ui 2.0.2 → 2.0.3
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/index105.js +4 -4
- package/dist/index113.js +1 -1
- package/dist/index115.js +4 -4
- package/dist/index117.js +1 -1
- package/dist/index12.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index14.js +3 -3
- package/dist/index18.js +8 -8
- package/dist/index198.js +5 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +7 -7
- package/dist/index20.js +12 -12
- package/dist/index202.js +3 -3
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +3 -35
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +35 -6
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +6 -7
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +7 -5
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -5
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +124 -14
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -16
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +121 -17
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +18 -18
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -27
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +2 -8
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +174 -2
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +42 -2
- package/dist/index215.js.map +1 -1
- package/dist/index217.js +13 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +369 -3
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -126
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +5 -5
- package/dist/index220.js +4 -123
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +2 -2
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +14 -172
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +16 -42
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +22 -0
- package/dist/index224.js.map +1 -0
- package/dist/index225.js +27 -13
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +8 -369
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +2 -3
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +3 -18
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +2 -105
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +21 -0
- package/dist/index230.js.map +1 -0
- package/dist/index231.js +53 -47
- package/dist/index231.js.map +1 -1
- package/dist/index233.js +100 -2
- package/dist/index233.js.map +1 -1
- package/dist/index237.js +9 -3
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +23 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +6 -9
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +15 -8
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -17
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +3 -431
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -88
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +8 -199
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +8 -8
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +17 -23
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +224 -6
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +430 -15
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +88 -8
- package/dist/index249.js.map +1 -1
- package/dist/index253.js +2 -2
- package/dist/index255.js +126 -2
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +3 -2
- package/dist/index256.js.map +1 -1
- package/dist/index258.js +6 -3
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +4 -224
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.js +2 -3
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +72 -0
- package/dist/index261.js.map +1 -0
- package/dist/index262.js +199 -6
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +5 -2
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +434 -67
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +127 -5
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +2 -2
- package/dist/index267.js +2 -126
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +2 -3
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +2 -3
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +26 -209
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +6 -0
- package/dist/index271.js.map +1 -0
- package/dist/index272.js +3 -436
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +210 -126
- package/dist/index273.js.map +1 -1
- package/dist/index275.js +4 -15
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +4 -11
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +59 -4
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +15 -4
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +34 -58
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +10 -34
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +1 -1
- package/dist/index32.js +3 -3
- package/dist/index34.js +12 -12
- package/dist/index36.js +4 -4
- package/dist/index38.js +2 -2
- package/dist/index42.js +5 -5
- package/dist/index44.js +2 -2
- package/dist/index46.js +2 -2
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index70.js +4 -4
- package/dist/index74.js +2 -2
- package/dist/index76.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index83.js +3 -3
- package/dist/index85.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index216.js +0 -7
- package/dist/index216.js.map +0 -1
- package/dist/index234.js +0 -6
- package/dist/index234.js.map +0 -1
- package/dist/index257.js +0 -5
- package/dist/index257.js.map +0 -1
- package/dist/index274.js +0 -31
- package/dist/index274.js.map +0 -1
package/dist/index105.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as oe, ref as x, computed as h, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as k, createElementVNode as s, renderSlot as f, createVNode as I, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
|
|
2
|
-
import { add as ue } from "./
|
|
3
|
-
import { clamp as pe } from "./
|
|
2
|
+
import { add as ue } from "./index260.js";
|
|
3
|
+
import { clamp as pe } from "./index207.js";
|
|
4
4
|
import { isNil as M } from "./index124.js";
|
|
5
5
|
import { useId as fe } from "./index7.js";
|
|
6
|
-
import { useItemValue as me } from "./
|
|
7
|
-
import { when as he } from "./
|
|
6
|
+
import { useItemValue as me } from "./index245.js";
|
|
7
|
+
import { when as he } from "./index220.js";
|
|
8
8
|
import J from "./index14.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import ye from "./index28.js";
|
package/dist/index113.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
|
|
2
2
|
import { state as k, useToast as C } from "./index10.js";
|
|
3
|
-
import B from "./
|
|
3
|
+
import B from "./index261.js";
|
|
4
4
|
const N = /* @__PURE__ */ s({
|
|
5
5
|
__name: "BbToast",
|
|
6
6
|
props: {
|
package/dist/index115.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as A, ref as o, computed as $, watch as I, openBlock as b, createElementBlock as D, mergeProps as L, createElementVNode as c, renderSlot as M, normalizeProps as R, guardReactiveProps as U, unref as u, createBlock as O, Teleport as W, normalizeClass as j, normalizeStyle as q, withCtx as G, createCommentVNode as P } from "vue";
|
|
2
|
-
import { useFloating as J, arrow as K } from "./
|
|
2
|
+
import { useFloating as J, arrow as K } from "./index208.js";
|
|
3
3
|
import { useId as Q } from "./index7.js";
|
|
4
4
|
import { wait as T } from "./index126.js";
|
|
5
5
|
import X from "./index12.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { throttle as w } from "./
|
|
8
|
-
import { waitFor as Y } from "./
|
|
9
|
-
import { autoUpdate as Z, flip as ee, shift as te, hide as oe } from "./
|
|
7
|
+
import { throttle as w } from "./index203.js";
|
|
8
|
+
import { waitFor as Y } from "./index205.js";
|
|
9
|
+
import { autoUpdate as Z, flip as ee, shift as te, hide as oe } from "./index218.js";
|
|
10
10
|
const ae = { class: "bb-tooltip__bubble" }, ne = /* @__PURE__ */ c("svg", {
|
|
11
11
|
fill: "none",
|
|
12
12
|
viewBox: "0 0 24 24",
|
package/dist/index117.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock 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 "./index263.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/index12.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as y, getCurrentInstance as p, computed as s, resolveComponent as d, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
|
|
2
2
|
import { _config as o } from "./index3.js";
|
|
3
|
-
import { useLogger as m } from "./
|
|
3
|
+
import { useLogger as m } from "./index198.js";
|
|
4
4
|
const P = /* @__PURE__ */ y({
|
|
5
5
|
__name: "BaseButton",
|
|
6
6
|
props: {
|
package/dist/index121.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
|
|
2
|
-
import { isCssColor as z } from "./
|
|
2
|
+
import { isCssColor as z } from "./index219.js";
|
|
3
3
|
const g = ["innerHTML"], $ = /* @__PURE__ */ m({
|
|
4
4
|
__name: "BbIcon",
|
|
5
5
|
props: {
|
package/dist/index122.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
|
2
|
-
import { throttle as g } from "./
|
|
2
|
+
import { throttle as g } from "./index203.js";
|
|
3
3
|
const O = /* @__PURE__ */ v({
|
|
4
4
|
__name: "BbSmoothHeight",
|
|
5
5
|
props: {
|
package/dist/index123.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
|
2
|
-
import { isCssColor as d } from "./
|
|
2
|
+
import { isCssColor as d } from "./index219.js";
|
|
3
3
|
const u = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), y = [
|
|
4
4
|
u
|
|
5
5
|
], g = /* @__PURE__ */ p({
|
package/dist/index125.js
CHANGED
package/dist/index128.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isArray as b, isPlainObject as m } from "./
|
|
1
|
+
import { isArray as b, isPlainObject as m } from "./index278.js";
|
|
2
2
|
function i(e, n, l, o, r) {
|
|
3
3
|
const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
|
|
4
4
|
u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index14.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, ref as b, computed as n, watch as E, openBlock as m, createElementBlock as p, normalizeProps as c, guardReactiveProps as h, mergeProps as f, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
|
|
2
|
-
import { isCssColor as k } from "./
|
|
3
|
-
import { when as F } from "./
|
|
4
|
-
import { booleanishToBoolean as N } from "./
|
|
2
|
+
import { isCssColor as k } from "./index219.js";
|
|
3
|
+
import { when as F } from "./index220.js";
|
|
4
|
+
import { booleanishToBoolean as N } from "./index221.js";
|
|
5
5
|
const S = {
|
|
6
6
|
"aria-hidden": "true",
|
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index18.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Ve, ref as k, computed as p, watch as F, nextTick as U, openBlock as d, createElementBlock as u, mergeProps as Se, createElementVNode as r, createTextVNode as De, toDisplayString as f, unref as y, withDirectives as q, createVNode as V, Transition as S, withCtx as D, vShow as j, createCommentVNode as Y, normalizeClass as g, Fragment as w, renderList as O, renderSlot as G } from "vue";
|
|
2
|
-
import i from "./
|
|
3
|
-
import Me from "./
|
|
4
|
-
import Ae from "./
|
|
5
|
-
import xe from "./
|
|
6
|
-
import Ce from "./
|
|
7
|
-
import Ye from "./
|
|
8
|
-
import { groupBy as J } from "./
|
|
2
|
+
import i from "./index209.js";
|
|
3
|
+
import Me from "./index222.js";
|
|
4
|
+
import Ae from "./index223.js";
|
|
5
|
+
import xe from "./index211.js";
|
|
6
|
+
import Ce from "./index224.js";
|
|
7
|
+
import Ye from "./index225.js";
|
|
8
|
+
import { groupBy as J } from "./index226.js";
|
|
9
9
|
import { isNil as Be } from "./index124.js";
|
|
10
|
-
import { last as Q } from "./
|
|
10
|
+
import { last as Q } from "./index213.js";
|
|
11
11
|
const Ie = { class: "bb-base-date-picker__header" }, Ee = ["disabled"], Ne = /* @__PURE__ */ r("span", null, null, -1), Te = {
|
|
12
12
|
"aria-live": "polite",
|
|
13
13
|
class: "bb-base-date-picker__selected-day-label"
|
package/dist/index198.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = "bitboss-ui | ", e = () => ({
|
|
2
|
+
warn: (r) => console.warn(`${o}${r}`),
|
|
3
|
+
error: (r) => console.error(`${o}${r}`)
|
|
4
|
+
});
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
e as useLogger
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=index198.js.map
|
package/dist/index198.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index198.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index198.js","sources":["../src/composables/useLogger.ts"],"sourcesContent":["const prefix = `bitboss-ui | `;\n\nexport const useLogger = () => {\n\treturn {\n\t\twarn: (message: string) => console.warn(`${prefix}${message}`),\n\t\terror: (message: string) => console.error(`${prefix}${message}`),\n\t};\n};\n"],"names":["prefix","useLogger","message"],"mappings":"AAAA,MAAMA,IAAS,iBAEFC,IAAY,OACjB;AAAA,EACN,MAAM,CAACC,MAAoB,QAAQ,KAAK,GAAGF,CAAM,GAAGE,CAAO,EAAE;AAAA,EAC7D,OAAO,CAACA,MAAoB,QAAQ,MAAM,GAAGF,CAAM,GAAGE,CAAO,EAAE;AAAA;"}
|
package/dist/index199.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as r, computed as a, onBeforeMount as X, onBeforeUnmount as Y, watch as H, nextTick as Z } from "vue";
|
|
2
|
-
import { last as _ } from "./
|
|
3
|
-
import { useArray as N } from "./
|
|
4
|
-
import { uniqBy as $ } from "./
|
|
5
|
-
import { useItemValue as ee } from "./
|
|
6
|
-
import { useItemText as te } from "./
|
|
7
|
-
import { hash as v } from "./
|
|
2
|
+
import { last as _ } from "./index213.js";
|
|
3
|
+
import { useArray as N } from "./index243.js";
|
|
4
|
+
import { uniqBy as $ } from "./index244.js";
|
|
5
|
+
import { useItemValue as ee } from "./index245.js";
|
|
6
|
+
import { useItemText as te } from "./index246.js";
|
|
7
|
+
import { hash as v } from "./index228.js";
|
|
8
8
|
import { isNotNil as Q } from "./index129.js";
|
|
9
|
-
import { waitFor as le } from "./
|
|
9
|
+
import { waitFor as le } from "./index205.js";
|
|
10
10
|
import { isNil as oe } from "./index124.js";
|
|
11
11
|
const he = (l) => {
|
|
12
12
|
const i = r(""), q = r(), n = (e) => {
|
package/dist/index20.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { defineComponent as re, ref as n, computed as b, watch as le, openBlock as L, createBlock as F, normalizeClass as z, withCtx as l, renderSlot as d, createVNode as P, withDirectives as ie, createElementVNode as r, mergeProps as W, unref as v, toDisplayString as j, Teleport as se, normalizeStyle as ue, createSlots as de, renderList as ce, normalizeProps as pe, guardReactiveProps as fe, createCommentVNode as me } from "vue";
|
|
2
|
-
import { useFloating as be } from "./
|
|
3
|
-
import o from "./
|
|
4
|
-
import ve from "./
|
|
5
|
-
import ge from "./
|
|
6
|
-
import { identity as ye } from "./
|
|
7
|
-
import { last as ke } from "./
|
|
8
|
-
import { useFocusTrap as he } from "./
|
|
2
|
+
import { useFloating as be } from "./index208.js";
|
|
3
|
+
import o from "./index209.js";
|
|
4
|
+
import ve from "./index210.js";
|
|
5
|
+
import ge from "./index211.js";
|
|
6
|
+
import { identity as ye } from "./index212.js";
|
|
7
|
+
import { last as ke } from "./index213.js";
|
|
8
|
+
import { useFocusTrap as he } from "./index204.js";
|
|
9
9
|
import { useId as Me } from "./index7.js";
|
|
10
10
|
import { useIntersectionObserver as we } from "./index127.js";
|
|
11
11
|
import { useMobile as Ve } from "./index8.js";
|
|
12
|
-
import { vMaska as Ce } from "./
|
|
12
|
+
import { vMaska as Ce } from "./index214.js";
|
|
13
13
|
import { wait as S } from "./index126.js";
|
|
14
|
-
import { waitFor as _e } from "./
|
|
14
|
+
import { waitFor as _e } from "./index205.js";
|
|
15
15
|
import Ye from "./index18.js";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import De from "./
|
|
17
|
+
import De from "./index215.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import Ae from "./
|
|
20
|
-
import { autoUpdate as Se, flip as $e, offset as Oe, shift as Be, hide as Ee } from "./
|
|
19
|
+
import Ae from "./index217.js";
|
|
20
|
+
import { autoUpdate as Se, flip as $e, offset as Oe, shift as Be, hide as Ee } from "./index218.js";
|
|
21
21
|
const Ie = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Le = ["disabled"], Fe = /* @__PURE__ */ r("svg", {
|
|
22
22
|
fill: "none",
|
|
23
23
|
viewBox: "0 0 16 16",
|
package/dist/index202.js
CHANGED
package/dist/index202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index202.js","sources":["../src/utilities/functions/
|
|
1
|
+
{"version":3,"file":"index202.js","sources":["../src/utilities/functions/deburr.ts"],"sourcesContent":["import d from 'lodash.deburr';\n\nexport const deburr = d;\n"],"names":["deburr","d"],"mappings":";AAEO,MAAMA,IAASC;"}
|
package/dist/index203.js
CHANGED
|
@@ -1,38 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { createFocusTrap as d } from "./index242.js";
|
|
4
|
-
import { tryOnScopeDispose as D } from "./index197.js";
|
|
5
|
-
function O(i, a = {}) {
|
|
6
|
-
let e;
|
|
7
|
-
const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
|
|
8
|
-
e && (e.pause(), s.value = !0);
|
|
9
|
-
}, p = () => {
|
|
10
|
-
e && (e.unpause(), s.value = !1);
|
|
11
|
-
};
|
|
12
|
-
return l(
|
|
13
|
-
() => m(i),
|
|
14
|
-
(t) => {
|
|
15
|
-
t && (e = d(t, {
|
|
16
|
-
...n,
|
|
17
|
-
onActivate() {
|
|
18
|
-
c.value = !0, a.onActivate && a.onActivate();
|
|
19
|
-
},
|
|
20
|
-
onDeactivate() {
|
|
21
|
-
c.value = !1, a.onDeactivate && a.onDeactivate();
|
|
22
|
-
}
|
|
23
|
-
}), f && o());
|
|
24
|
-
},
|
|
25
|
-
{ flush: "post" }
|
|
26
|
-
), D(() => r()), {
|
|
27
|
-
hasFocus: c,
|
|
28
|
-
isPaused: s,
|
|
29
|
-
activate: o,
|
|
30
|
-
deactivate: r,
|
|
31
|
-
pause: v,
|
|
32
|
-
unpause: p
|
|
33
|
-
};
|
|
34
|
-
}
|
|
1
|
+
import t from "./index249.js";
|
|
2
|
+
const r = t;
|
|
35
3
|
export {
|
|
36
|
-
|
|
4
|
+
r as throttle
|
|
37
5
|
};
|
|
38
6
|
//# sourceMappingURL=index203.js.map
|
package/dist/index203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index203.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index203.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from 'lodash.throttle';\n\nexport const throttle = t;\n"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
|
package/dist/index204.js
CHANGED
|
@@ -1,9 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})
|
|
1
|
+
import { unrefElement as m } from "./index127.js";
|
|
2
|
+
import { ref as u, watch as l } from "vue";
|
|
3
|
+
import { createFocusTrap as d } from "./index248.js";
|
|
4
|
+
import { tryOnScopeDispose as D } from "./index197.js";
|
|
5
|
+
function O(i, a = {}) {
|
|
6
|
+
let e;
|
|
7
|
+
const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
|
|
8
|
+
e && (e.pause(), s.value = !0);
|
|
9
|
+
}, p = () => {
|
|
10
|
+
e && (e.unpause(), s.value = !1);
|
|
11
|
+
};
|
|
12
|
+
return l(
|
|
13
|
+
() => m(i),
|
|
14
|
+
(t) => {
|
|
15
|
+
t && (e = d(t, {
|
|
16
|
+
...n,
|
|
17
|
+
onActivate() {
|
|
18
|
+
c.value = !0, a.onActivate && a.onActivate();
|
|
19
|
+
},
|
|
20
|
+
onDeactivate() {
|
|
21
|
+
c.value = !1, a.onDeactivate && a.onDeactivate();
|
|
22
|
+
}
|
|
23
|
+
}), f && o());
|
|
24
|
+
},
|
|
25
|
+
{ flush: "post" }
|
|
26
|
+
), D(() => r()), {
|
|
27
|
+
hasFocus: c,
|
|
28
|
+
isPaused: s,
|
|
29
|
+
activate: o,
|
|
30
|
+
deactivate: r,
|
|
31
|
+
pause: v,
|
|
32
|
+
unpause: p
|
|
33
|
+
};
|
|
34
|
+
}
|
|
6
35
|
export {
|
|
7
|
-
|
|
36
|
+
O as useFocusTrap
|
|
8
37
|
};
|
|
9
38
|
//# sourceMappingURL=index204.js.map
|
package/dist/index204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index204.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index204.js","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index205.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
}, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
|
|
1
|
+
const o = (e, t = 50) => new Promise((r) => {
|
|
2
|
+
const n = setInterval(() => {
|
|
3
|
+
e() && (clearInterval(n), r());
|
|
4
|
+
}, t);
|
|
5
|
+
});
|
|
7
6
|
export {
|
|
8
|
-
|
|
7
|
+
o as waitFor
|
|
9
8
|
};
|
|
10
9
|
//# sourceMappingURL=index205.js.map
|
package/dist/index205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index205.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index205.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n\titeratee: () => boolean,\n\tinterval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n\tnew Promise((resolve) => {\n\t\tconst i = setInterval(() => {\n\t\t\tif (iteratee()) {\n\t\t\t\tclearInterval(i);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t}, interval);\n\t});\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OAC1C,IAAI,QAAQ,CAACC,MAAY;AAClB,QAAAC,IAAI,YAAY,MAAM;AAC3B,IAAIH,QACH,cAAcG,CAAC,GACPD;KAEPD,CAAQ;AACZ,CAAC;"}
|
package/dist/index206.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
})
|
|
1
|
+
import { ref as e } from "vue";
|
|
2
|
+
const o = e(0), s = () => {
|
|
3
|
+
o.value++;
|
|
4
|
+
}, a = () => {
|
|
5
|
+
o.value--;
|
|
6
|
+
}, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
d as useModalsState
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=index206.js.map
|
package/dist/index206.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index206.js","sources":["../src/composables/
|
|
1
|
+
{"version":3,"file":"index206.js","sources":["../src/composables/useModalsState.ts"],"sourcesContent":["import { ref } from 'vue';\n\nconst openedModals = ref(0);\n\nconst modalHasOpened = () => {\n\topenedModals.value++;\n};\n\nconst modalHasClosed = () => {\n\topenedModals.value--;\n};\nexport const useModalsState = () => {\n\treturn { openedModals, modalHasOpened, modalHasClosed };\n};\n"],"names":["openedModals","ref","modalHasOpened","modalHasClosed","useModalsState"],"mappings":";AAEA,MAAMA,IAAeC,EAAI,CAAC,GAEpBC,IAAiB,MAAM;AACf,EAAAF,EAAA;AACd,GAEMG,IAAiB,MAAM;AACf,EAAAH,EAAA;AACd,GACaI,IAAiB,OACtB,EAAE,cAAAJ,GAAc,gBAAAE,GAAgB,gBAAAC;"}
|
package/dist/index207.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as o } from "./index250.js";
|
|
3
|
-
var t = o();
|
|
4
|
-
const s = /* @__PURE__ */ r(t);
|
|
1
|
+
const n = (t, a, m) => Math.min(Math.max(t, a), m);
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
n as clamp
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index207.js.map
|
package/dist/index207.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index207.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index207.js","sources":["../src/utilities/functions/clamp.ts"],"sourcesContent":["/**\n * Returns value ensuring it doesn't go below min and exceed max.\n * EXAMPLE: clamp(5, 7, 20) === 7\n * @param value The value to clamp\n * @param min Minimum bound\n * @param max Maximum bound\n * @returns\n */\n\nexport const clamp = (value: number, min: number, max: number) => {\n\treturn Math.min(Math.max(value, min), max);\n};\n"],"names":["clamp","value","min","max"],"mappings":"AASO,MAAMA,IAAQ,CAACC,GAAeC,GAAaC,MAC1C,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;"}
|
package/dist/index208.js
CHANGED
|
@@ -1,19 +1,129 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { arrow as j, computePosition as A } from "./index218.js";
|
|
2
|
+
import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index218.js";
|
|
3
|
+
import { isNode as B, getNodeName as F } from "./index255.js";
|
|
4
|
+
import { getOverflowAncestors as le } from "./index255.js";
|
|
5
|
+
import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
|
|
6
|
+
function z(e) {
|
|
7
|
+
return e != null && typeof e == "object" && "$el" in e;
|
|
8
|
+
}
|
|
9
|
+
function g(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 o(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 = g(o(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 x = t.whileElementsMounted, V = a(() => {
|
|
42
|
+
var n;
|
|
43
|
+
return (n = o(t.open)) != null ? n : !0;
|
|
44
|
+
}), D = a(() => o(t.middleware)), d = a(() => {
|
|
45
|
+
var n;
|
|
46
|
+
return (n = o(t.placement)) != null ? n : "bottom";
|
|
47
|
+
}), v = a(() => {
|
|
48
|
+
var n;
|
|
49
|
+
return (n = o(t.strategy)) != null ? n : "absolute";
|
|
50
|
+
}), S = a(() => {
|
|
51
|
+
var n;
|
|
52
|
+
return (n = o(t.transform)) != null ? n : !0;
|
|
53
|
+
}), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
|
|
54
|
+
const n = {
|
|
55
|
+
position: c.value,
|
|
56
|
+
left: "0",
|
|
57
|
+
top: "0"
|
|
58
|
+
};
|
|
59
|
+
if (!u.value)
|
|
60
|
+
return n;
|
|
61
|
+
const R = C(u.value, p.value), b = C(u.value, w.value);
|
|
62
|
+
return S.value ? {
|
|
63
|
+
...n,
|
|
64
|
+
transform: "translate(" + R + "px, " + b + "px)",
|
|
65
|
+
...M(u.value) >= 1.5 && {
|
|
66
|
+
willChange: "transform"
|
|
67
|
+
}
|
|
68
|
+
} : {
|
|
69
|
+
position: c.value,
|
|
70
|
+
left: R + "px",
|
|
71
|
+
top: b + "px"
|
|
11
72
|
};
|
|
12
73
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
74
|
+
let s;
|
|
75
|
+
function m() {
|
|
76
|
+
i.value == null || u.value == null || A(i.value, u.value, {
|
|
77
|
+
middleware: D.value,
|
|
78
|
+
placement: d.value,
|
|
79
|
+
strategy: v.value
|
|
80
|
+
}).then((n) => {
|
|
81
|
+
p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function E() {
|
|
85
|
+
typeof s == "function" && (s(), s = void 0);
|
|
86
|
+
}
|
|
87
|
+
function N() {
|
|
88
|
+
if (E(), x === void 0) {
|
|
89
|
+
m();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (i.value != null && u.value != null) {
|
|
93
|
+
s = x(i.value, u.value, m);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function $() {
|
|
98
|
+
V.value || (y.value = !1);
|
|
99
|
+
}
|
|
100
|
+
return h([D, d, v], m, {
|
|
101
|
+
flush: "sync"
|
|
102
|
+
}), h([i, u], N, {
|
|
103
|
+
flush: "sync"
|
|
104
|
+
}), h(V, $, {
|
|
105
|
+
flush: "sync"
|
|
106
|
+
}), U() && k(E), {
|
|
107
|
+
x: r(p),
|
|
108
|
+
y: r(w),
|
|
109
|
+
strategy: r(c),
|
|
110
|
+
placement: r(O),
|
|
111
|
+
middlewareData: r(P),
|
|
112
|
+
isPositioned: r(y),
|
|
113
|
+
floatingStyles: _,
|
|
114
|
+
update: m
|
|
115
|
+
};
|
|
116
|
+
}
|
|
16
117
|
export {
|
|
17
|
-
|
|
118
|
+
K as arrow,
|
|
119
|
+
W as autoUpdate,
|
|
120
|
+
A as computePosition,
|
|
121
|
+
X as flip,
|
|
122
|
+
le as getOverflowAncestors,
|
|
123
|
+
Y as hide,
|
|
124
|
+
Z as offset,
|
|
125
|
+
ee as platform,
|
|
126
|
+
ne as shift,
|
|
127
|
+
L as useFloating
|
|
18
128
|
};
|
|
19
129
|
//# sourceMappingURL=index208.js.map
|
package/dist/index208.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index208.js","sources":["../node_modules/dayjs/plugin/isSameOrAfter.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));"],"names":["e","module","this","t"],"mappings":";;;AAAA,GAAC,SAASA,GAAE,GAAE;AAAsD,IAAAC,EAAe,UAAA,EAAwI;AAAA,EAAA,GAAEC,GAAM,WAAU;AAAc,WAAO,SAASF,GAAE,GAAE;AAAC,QAAE,UAAU,gBAAc,SAASA,GAAEG,GAAE;AAAC,eAAO,KAAK,OAAOH,GAAEG,CAAC,KAAG,KAAK,QAAQH,GAAEG,CAAC;AAAA,MAAC;AAAA,IAAC;AAAA,EAAC,CAAC;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index208.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { isNode, getNodeName } from '@floating-ui/utils/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\n\nfunction isComponentPublicInstance(target) {\n return target != null && typeof target === 'object' && '$el' in target;\n}\nfunction unwrapElement(target) {\n if (isComponentPublicInstance(target)) {\n const element = target.$el;\n return isNode(element) && getNodeName(element) === '#comment' ? null : element;\n }\n return target;\n}\n\nfunction toValue(source) {\n return typeof source === 'function' ? source() : unref(source);\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(toValue(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _toValue;\n return (_toValue = toValue(options.open)) != null ? _toValue : true;\n });\n const middlewareOption = computed(() => toValue(options.middleware));\n const placementOption = computed(() => {\n var _toValue2;\n return (_toValue2 = toValue(options.placement)) != null ? _toValue2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _toValue3;\n return (_toValue3 = toValue(options.strategy)) != null ? _toValue3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _toValue4;\n return (_toValue4 = toValue(options.transform)) != null ? _toValue4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["isComponentPublicInstance","target","unwrapElement","element","isNode","getNodeName","toValue","source","unref","arrow","options","args","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_toValue","middlewareOption","placementOption","_toValue2","strategyOption","_toValue3","transformOption","_toValue4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index209.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import {
|
|
3
|
-
(
|
|
4
|
-
|
|
5
|
-
s.exports = o();
|
|
6
|
-
})(n, function() {
|
|
7
|
-
return function(f, o) {
|
|
8
|
-
o.prototype.isSameOrBefore = function(e, r) {
|
|
9
|
-
return this.isSame(e, r) || this.isBefore(e, r);
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
})(t);
|
|
14
|
-
var m = t.exports;
|
|
15
|
-
const c = /* @__PURE__ */ i(m);
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index251.js";
|
|
2
|
+
import { __require as o } from "./index250.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const s = /* @__PURE__ */ r(t);
|
|
16
5
|
export {
|
|
17
|
-
|
|
6
|
+
s as default
|
|
18
7
|
};
|
|
19
8
|
//# sourceMappingURL=index209.js.map
|