bitboss-ui 2.1.2 → 2.1.4
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/BaseSlider/BaseSlider.vue.d.ts +5 -0
- package/dist/index106.js +3 -3
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +6 -6
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index133.js +1 -1
- package/dist/index136.js +10 -20
- package/dist/index137.js +2 -2
- 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/index206.js +2 -138
- package/dist/index207.js +2 -2
- package/dist/index208.js +138 -2
- package/dist/index209.js +1 -1
- package/dist/index21.js +15 -15
- package/dist/index211.js +1 -1
- package/dist/index213.js +3 -3
- package/dist/index214.js +1 -1
- package/dist/index215.js +1 -1
- package/dist/index216.js +1 -1
- package/dist/index218.js +66 -4
- package/dist/index220.js +13 -11
- package/dist/index221.js +174 -17
- package/dist/index222.js +2 -197
- package/dist/index224.js +31 -63
- package/dist/index225.js +6 -0
- package/dist/index226.js +2 -13
- package/dist/index227.js +9 -113
- package/dist/{index219.js → index228.js} +2 -2
- package/dist/index229.js +3 -34
- package/dist/index23.js +15 -15
- package/dist/index230.js +5 -2
- package/dist/index231.js +5 -2
- package/dist/index232.js +5 -18
- package/dist/index233.js +5 -12
- package/dist/index234.js +5 -6
- package/dist/index235.js +5 -4
- package/dist/index236.js +2 -106
- package/dist/index237.js +4 -0
- package/dist/index238.js +2 -100
- package/dist/index239.js +13 -0
- package/dist/index240.js +19 -227
- package/dist/index241.js +113 -3
- package/dist/index243.js +6 -2
- package/dist/index244.js +15 -12
- package/dist/index245.js +106 -5
- package/dist/index247.js +100 -5
- package/dist/index249.js +18 -5
- package/dist/index25.js +3 -3
- package/dist/index250.js +12 -5
- package/dist/index251.js +6 -2
- package/dist/index252.js +228 -2
- package/dist/index253.js +8 -175
- package/dist/index254.js +2 -9
- package/dist/index255.js +12 -2
- package/dist/index256.js +2 -5
- package/dist/index257.js +7 -5
- package/dist/index258.js +7 -8
- package/dist/index259.js +5 -250
- package/dist/index260.js +5 -52
- package/dist/index261.js +6 -42
- package/dist/index262.js +250 -5
- package/dist/index263.js +43 -51
- package/dist/index264.js +44 -2
- package/dist/index265.js +5 -9
- package/dist/index266.js +59 -7
- package/dist/index267.js +8 -8
- package/dist/index268.js +8 -23
- package/dist/index269.js +3 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +9 -3
- package/dist/index271.js +23 -6
- package/dist/index272.js +4 -16
- package/dist/index273.js +197 -2
- package/dist/index275.js +2 -5
- package/dist/index276.js +67 -5
- package/dist/index277.js +5 -8
- package/dist/index278.js +5 -3
- package/dist/index279.js +8 -17
- package/dist/index280.js +3 -28
- package/dist/index281.js +17 -3
- package/dist/index282.js +28 -3
- package/dist/index283.js +5 -0
- package/dist/index285.js +7 -3
- package/dist/index286.js +2 -7
- package/dist/index287.js +3 -10
- package/dist/index288.js +4 -4
- package/dist/index289.js +7 -2
- package/dist/index29.js +4 -4
- package/dist/index290.js +11 -3
- package/dist/index291.js +5 -3
- package/dist/index292.js +280 -2
- package/dist/index293.js +2 -4
- package/dist/index294.js +125 -5
- package/dist/index295.js +2 -280
- package/dist/index296.js +15 -2
- package/dist/index297.js +2 -125
- package/dist/index298.js +16 -2
- package/dist/index299.js +2 -15
- package/dist/index300.js +16 -2
- package/dist/index301.js +2 -16
- package/dist/index302.js +19 -2
- package/dist/index303.js +2 -16
- package/dist/index304.js +3 -2
- package/dist/index305.js +701 -19
- package/dist/index306.js +354 -2
- package/dist/index307.js +57 -5
- package/dist/index308.js +3 -19
- package/dist/index309.js +3 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +5 -26
- package/dist/index311.js +2 -2
- package/dist/index312.js +19 -2
- package/dist/index313.js +2 -2
- package/dist/index314.js +27 -2
- package/dist/index315.js +2 -2
- package/dist/index316.js +1 -21
- package/dist/index317.js +4 -0
- package/dist/index318.js +2 -5
- package/dist/index319.js +2 -701
- package/dist/index320.js +22 -354
- package/dist/index322.js +5 -8
- package/dist/index323.js +3 -6
- package/dist/index324.js +2 -8
- package/dist/index325.js +1 -1
- package/dist/index326.js +1 -1
- package/dist/index328.js +228 -2
- package/dist/index329.js +123 -222
- package/dist/index330.js +367 -56
- package/dist/index331.js +47 -58
- package/dist/index332.js +58 -47
- package/dist/index333.js +57 -128
- package/dist/index334.js +6 -368
- package/dist/index337.js +92 -6
- package/dist/index338.js +7 -92
- package/dist/index339.js +8 -0
- package/dist/index340.js +8 -3
- package/dist/index342.js +3 -482
- package/dist/index343.js +120 -427
- package/dist/index344.js +422 -113
- package/dist/index345.js +123 -43
- package/dist/index346.js +484 -0
- package/dist/index347.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +13 -13
- package/dist/index39.js +186 -168
- package/dist/index41.js +2 -2
- package/dist/index45.js +6 -6
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/dist/index96.js +1 -1
- package/dist/utilities/functions/percentage.d.ts +14 -21
- package/dist/utilities/functions/snapToStep.d.ts +1 -0
- package/dist/utilities/functions/transpose.d.ts +1 -0
- package/dist/utilities/functions/transposePercent.d.ts +9 -0
- package/package.json +2 -2
- package/dist/index246.js +0 -7
- package/dist/index248.js +0 -7
- package/dist/index274.js +0 -69
- package/dist/index284.js +0 -9
- package/dist/index321.js +0 -60
- package/dist/index341.js +0 -131
- /package/dist/{index242.js → index223.js} +0 -0
package/dist/index53.js
CHANGED
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index222.js";
|
3
3
|
import { wait as C } from "./index135.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as l } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as l } from "./index222.js";
|
3
|
+
import { isNil as B } from "./index223.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index113.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as w } from "./
|
12
|
-
import { useLocale as D } from "./
|
10
|
+
import { pickBy as W } from "./index253.js";
|
11
|
+
import { noop as w } from "./index254.js";
|
12
|
+
import { useLocale as D } from "./index228.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index67.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index228.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
|
2
|
-
import { findRightIndex as T } from "./
|
2
|
+
import { findRightIndex as T } from "./index270.js";
|
3
3
|
import { useId as te } from "./index8.js";
|
4
|
-
import { useUntil as ne } from "./
|
4
|
+
import { useUntil as ne } from "./index239.js";
|
5
5
|
import { wait as oe } from "./index135.js";
|
6
6
|
import ae from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
import B from "./index85.js";
|
9
9
|
/* empty css */
|
10
|
-
import le from "./
|
10
|
+
import le from "./index241.js";
|
11
11
|
/* empty css */
|
12
|
-
import K from "./
|
12
|
+
import K from "./index271.js";
|
13
13
|
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
|
14
14
|
__name: "BbDropdown",
|
15
15
|
props: {
|
package/dist/index81.js
CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import I from "./index113.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as M } from "./
|
12
|
+
import { useLocale as M } from "./index228.js";
|
13
13
|
const O = { class: "bb-dropdown-button__content" }, R = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index83.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index244.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index111.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index243.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index222.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index87.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index269.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as l, renderSlot as s, createTextVNode as j, toDisplayString as z, nextTick as G } from "vue";
|
2
|
-
import { parseSize as J } from "./
|
2
|
+
import { parseSize as J } from "./index255.js";
|
3
3
|
import { useId as D } from "./index8.js";
|
4
|
-
import { useLocale as Q } from "./
|
4
|
+
import { useLocale as Q } from "./index228.js";
|
5
5
|
import { useMobile as X } from "./index9.js";
|
6
|
-
import { useUntil as Y } from "./
|
6
|
+
import { useUntil as Y } from "./index239.js";
|
7
7
|
import { wait as h } from "./index135.js";
|
8
8
|
const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
|
9
9
|
ref: "header",
|
package/dist/index92.js
CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
|
|
3
3
|
/* empty css */
|
4
4
|
import P from "./index13.js";
|
5
5
|
/* empty css */
|
6
|
-
import { debounce as X } from "./
|
7
|
-
import { useLocale as H } from "./
|
6
|
+
import { debounce as X } from "./index227.js";
|
7
|
+
import { useLocale as H } from "./index228.js";
|
8
8
|
import { useRoute as J } from "./index142.js";
|
9
9
|
const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
|
10
10
|
__name: "BbPagination",
|
package/dist/index94.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as l, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
|
2
2
|
import { useId as H } from "./index8.js";
|
3
3
|
import { useIntersectionObserver as N } from "./index137.js";
|
4
|
-
import { useLocale as U } from "./
|
5
|
-
import { useUntil as W } from "./
|
4
|
+
import { useLocale as U } from "./index228.js";
|
5
|
+
import { useUntil as W } from "./index239.js";
|
6
6
|
import q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import A from "./
|
8
|
+
import A from "./index241.js";
|
9
9
|
/* empty css */
|
10
10
|
const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
|
11
11
|
__name: "BbPopover",
|
package/dist/index96.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
-
import { clamp as p } from "./
|
2
|
+
import { clamp as p } from "./index206.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index136.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|
@@ -2,32 +2,25 @@
|
|
2
2
|
* Get the percentage "a" represents in total
|
3
3
|
* @returns
|
4
4
|
*/
|
5
|
-
export declare const getAsPercentage: (a: number, total: number) => number;
|
5
|
+
export declare const getAsPercentage: (a: number, total: number, clamped?: boolean) => number;
|
6
6
|
/**
|
7
|
-
* Get
|
7
|
+
* Get a number knowing the percentage and the total
|
8
8
|
* @returns
|
9
9
|
*/
|
10
|
-
export declare const
|
10
|
+
export declare const getValueFromPercentage: (percentage: number, of: number) => number;
|
11
11
|
/**
|
12
12
|
* Normalize the bounds of a value
|
13
13
|
*/
|
14
|
-
export declare const getAsPercentageBetween: (a: number, min: number, max: number) => number;
|
14
|
+
export declare const getAsPercentageBetween: (a: number, min: number, max: number, clamped?: boolean) => number;
|
15
15
|
/**
|
16
|
-
*
|
17
|
-
*
|
18
|
-
*
|
16
|
+
* Calculate the actual value that corresponds to a given percentage within an interval
|
17
|
+
* @param percentage The percentage (0-100) to convert to a value
|
18
|
+
* @param intervalStart The start of the interval
|
19
|
+
* @param intervalEnd The end of the interval
|
20
|
+
* @returns The value that corresponds to the given percentage in the interval
|
21
|
+
* @example
|
22
|
+
* getValueFromPercentageInInterval(50, -20, 60) // returns 20
|
23
|
+
* getValueFromPercentageInInterval(0, 0, 100) // returns 0
|
24
|
+
* getValueFromPercentageInInterval(100, 0, 100) // returns 100
|
19
25
|
*/
|
20
|
-
|
21
|
-
value: number;
|
22
|
-
originalBounds: {
|
23
|
-
min: number;
|
24
|
-
max: number;
|
25
|
-
};
|
26
|
-
targetBounds: {
|
27
|
-
min: number;
|
28
|
-
max: number;
|
29
|
-
};
|
30
|
-
step: number;
|
31
|
-
};
|
32
|
-
export declare const transposeValue: (params: TransposeValueParameters) => number;
|
33
|
-
export {};
|
26
|
+
export declare const getValueFromPercentageInInterval: (percentage: number, intervalStart: number, intervalEnd: number) => number;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const snapToStep: (value: number, min: number, max: number, step: number) => number;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function transpose(value: number, fromMin: number, fromMax: number, toMin: number, toMax: number): number;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Transpose a percentage to a value
|
3
|
+
* @param value - The percentage to transpose 0 - 100
|
4
|
+
* @param min - The minimum value
|
5
|
+
* @param max - The maximum value
|
6
|
+
* @returns The value
|
7
|
+
*/
|
8
|
+
export declare const transposePercent: (value: number, // 0–100
|
9
|
+
min: number, max: number) => number;
|
package/package.json
CHANGED
package/dist/index246.js
DELETED
package/dist/index248.js
DELETED
package/dist/index274.js
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
|
2
|
-
import { useLocale as k } from "./index219.js";
|
3
|
-
import h from "./index13.js";
|
4
|
-
/* empty css */
|
5
|
-
import C from "./index85.js";
|
6
|
-
/* empty css */
|
7
|
-
const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
|
8
|
-
key: 1,
|
9
|
-
class: "bb-toast-message__title"
|
10
|
-
}, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
|
11
|
-
__name: "BbToastMessage",
|
12
|
-
props: {
|
13
|
-
title: {},
|
14
|
-
text: {},
|
15
|
-
icon: {},
|
16
|
-
theme: { default: "default" },
|
17
|
-
id: {},
|
18
|
-
showClose: { type: Boolean }
|
19
|
-
},
|
20
|
-
emits: ["click:close"],
|
21
|
-
setup(r, { emit: c }) {
|
22
|
-
const m = r, p = c, { t: _ } = k(), b = () => {
|
23
|
-
p("click:close", m.id);
|
24
|
-
};
|
25
|
-
return (e, a) => (o(), l("div", {
|
26
|
-
"aria-atomic": "true",
|
27
|
-
"aria-live": "polite",
|
28
|
-
"aria-role": "alert",
|
29
|
-
class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
|
30
|
-
}, [
|
31
|
-
t("div", w, [
|
32
|
-
e.icon ? (o(), i(C, {
|
33
|
-
key: 0,
|
34
|
-
class: "bb-toast-message__icon",
|
35
|
-
type: e.icon
|
36
|
-
}, null, 8, ["type"])) : s("", !0)
|
37
|
-
]),
|
38
|
-
t("div", v, [
|
39
|
-
e.showClose ? (o(), i(h, {
|
40
|
-
key: 0,
|
41
|
-
"aria-label": f(_)("common.closeLabel").value,
|
42
|
-
class: "bb-toast-message__close",
|
43
|
-
onClick: b
|
44
|
-
}, {
|
45
|
-
default: g(() => a[0] || (a[0] = [
|
46
|
-
t("svg", {
|
47
|
-
fill: "none",
|
48
|
-
viewBox: "0 0 24 24",
|
49
|
-
xmlns: "http://www.w3.org/2000/svg"
|
50
|
-
}, [
|
51
|
-
t("path", {
|
52
|
-
d: "M23 23L1 1M23 1L1 23",
|
53
|
-
stroke: "currentColor",
|
54
|
-
"stroke-linecap": "round",
|
55
|
-
"stroke-width": "2"
|
56
|
-
})
|
57
|
-
], -1)
|
58
|
-
])),
|
59
|
-
_: 1
|
60
|
-
}, 8, ["aria-label"])) : s("", !0),
|
61
|
-
e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
|
62
|
-
t("p", B, n(e.text), 1)
|
63
|
-
])
|
64
|
-
], 2));
|
65
|
-
}
|
66
|
-
});
|
67
|
-
export {
|
68
|
-
z as default
|
69
|
-
};
|
package/dist/index284.js
DELETED
package/dist/index321.js
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
var o = function(a, e, s, t) {
|
2
|
-
if (s === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
|
3
|
-
if (typeof e == "function" ? a !== e || !t : !e.has(a)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
4
|
-
return s === "m" ? t : s === "a" ? t.call(a) : t ? t.value : e.get(a);
|
5
|
-
}, i, l, r;
|
6
|
-
class d {
|
7
|
-
constructor(...e) {
|
8
|
-
i.set(this, /* @__PURE__ */ new Map()), l.set(this, /* @__PURE__ */ new Map()), r.set(this, /* @__PURE__ */ new Map());
|
9
|
-
for (const s of e)
|
10
|
-
this.define(s);
|
11
|
-
}
|
12
|
-
define(e, s = !1) {
|
13
|
-
for (let [t, f] of Object.entries(e)) {
|
14
|
-
t = t.toLowerCase(), f = f.map((n) => n.toLowerCase()), o(this, r, "f").has(t) || o(this, r, "f").set(t, /* @__PURE__ */ new Set());
|
15
|
-
const h = o(this, r, "f").get(t);
|
16
|
-
let u = !0;
|
17
|
-
for (let n of f) {
|
18
|
-
const w = n.startsWith("*");
|
19
|
-
if (n = w ? n.slice(1) : n, h == null || h.add(n), u && o(this, l, "f").set(t, n), u = !1, w)
|
20
|
-
continue;
|
21
|
-
const c = o(this, i, "f").get(n);
|
22
|
-
if (c && c != t && !s)
|
23
|
-
throw new Error(`"${t} -> ${n}" conflicts with "${c} -> ${n}". Pass \`force=true\` to override this definition.`);
|
24
|
-
o(this, i, "f").set(n, t);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
return this;
|
28
|
-
}
|
29
|
-
getType(e) {
|
30
|
-
if (typeof e != "string")
|
31
|
-
return null;
|
32
|
-
const s = e.replace(/^.*[/\\]/, "").toLowerCase(), t = s.replace(/^.*\./, "").toLowerCase(), f = s.length < e.length;
|
33
|
-
return !(t.length < s.length - 1) && f ? null : o(this, i, "f").get(t) ?? null;
|
34
|
-
}
|
35
|
-
getExtension(e) {
|
36
|
-
var s;
|
37
|
-
return typeof e != "string" ? null : (e = (s = e == null ? void 0 : e.split) == null ? void 0 : s.call(e, ";")[0], (e && o(this, l, "f").get(e.trim().toLowerCase())) ?? null);
|
38
|
-
}
|
39
|
-
getAllExtensions(e) {
|
40
|
-
return typeof e != "string" ? null : o(this, r, "f").get(e.toLowerCase()) ?? null;
|
41
|
-
}
|
42
|
-
_freeze() {
|
43
|
-
this.define = () => {
|
44
|
-
throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
|
45
|
-
}, Object.freeze(this);
|
46
|
-
for (const e of o(this, r, "f").values())
|
47
|
-
Object.freeze(e);
|
48
|
-
return this;
|
49
|
-
}
|
50
|
-
_getTestState() {
|
51
|
-
return {
|
52
|
-
types: o(this, i, "f"),
|
53
|
-
extensions: o(this, l, "f")
|
54
|
-
};
|
55
|
-
}
|
56
|
-
}
|
57
|
-
i = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
58
|
-
export {
|
59
|
-
d as default
|
60
|
-
};
|
package/dist/index341.js
DELETED
@@ -1,131 +0,0 @@
|
|
1
|
-
function c() {
|
2
|
-
return typeof window < "u";
|
3
|
-
}
|
4
|
-
function s(n) {
|
5
|
-
return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
6
|
-
}
|
7
|
-
function i(n) {
|
8
|
-
var t;
|
9
|
-
return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
10
|
-
}
|
11
|
-
function E(n) {
|
12
|
-
var t;
|
13
|
-
return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
|
14
|
-
}
|
15
|
-
function p(n) {
|
16
|
-
return c() ? n instanceof Node || n instanceof i(n).Node : !1;
|
17
|
-
}
|
18
|
-
function m(n) {
|
19
|
-
return c() ? n instanceof Element || n instanceof i(n).Element : !1;
|
20
|
-
}
|
21
|
-
function w(n) {
|
22
|
-
return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
|
23
|
-
}
|
24
|
-
function a(n) {
|
25
|
-
return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
|
26
|
-
}
|
27
|
-
function y(n) {
|
28
|
-
const {
|
29
|
-
overflow: t,
|
30
|
-
overflowX: e,
|
31
|
-
overflowY: o,
|
32
|
-
display: r
|
33
|
-
} = b(n);
|
34
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
|
35
|
-
}
|
36
|
-
function D(n) {
|
37
|
-
return ["table", "td", "th"].includes(s(n));
|
38
|
-
}
|
39
|
-
function N(n) {
|
40
|
-
return [":popover-open", ":modal"].some((t) => {
|
41
|
-
try {
|
42
|
-
return n.matches(t);
|
43
|
-
} catch {
|
44
|
-
return !1;
|
45
|
-
}
|
46
|
-
});
|
47
|
-
}
|
48
|
-
function T(n) {
|
49
|
-
const t = L(), e = m(n) ? b(n) : n;
|
50
|
-
return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
|
51
|
-
}
|
52
|
-
function k(n) {
|
53
|
-
let t = u(n);
|
54
|
-
for (; w(t) && !g(t); ) {
|
55
|
-
if (T(t))
|
56
|
-
return t;
|
57
|
-
if (N(t))
|
58
|
-
return null;
|
59
|
-
t = u(t);
|
60
|
-
}
|
61
|
-
return null;
|
62
|
-
}
|
63
|
-
function L() {
|
64
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
65
|
-
}
|
66
|
-
function g(n) {
|
67
|
-
return ["html", "body", "#document"].includes(s(n));
|
68
|
-
}
|
69
|
-
function b(n) {
|
70
|
-
return i(n).getComputedStyle(n);
|
71
|
-
}
|
72
|
-
function C(n) {
|
73
|
-
return m(n) ? {
|
74
|
-
scrollLeft: n.scrollLeft,
|
75
|
-
scrollTop: n.scrollTop
|
76
|
-
} : {
|
77
|
-
scrollLeft: n.scrollX,
|
78
|
-
scrollTop: n.scrollY
|
79
|
-
};
|
80
|
-
}
|
81
|
-
function u(n) {
|
82
|
-
if (s(n) === "html")
|
83
|
-
return n;
|
84
|
-
const t = (
|
85
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
86
|
-
n.assignedSlot || // DOM Element detected.
|
87
|
-
n.parentNode || // ShadowRoot detected.
|
88
|
-
a(n) && n.host || // Fallback.
|
89
|
-
E(n)
|
90
|
-
);
|
91
|
-
return a(t) ? t.host : t;
|
92
|
-
}
|
93
|
-
function h(n) {
|
94
|
-
const t = u(n);
|
95
|
-
return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
|
96
|
-
}
|
97
|
-
function d(n, t, e) {
|
98
|
-
var o;
|
99
|
-
t === void 0 && (t = []), e === void 0 && (e = !0);
|
100
|
-
const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
101
|
-
if (S) {
|
102
|
-
const f = v(l);
|
103
|
-
return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
|
104
|
-
}
|
105
|
-
return t.concat(r, d(r, [], e));
|
106
|
-
}
|
107
|
-
function v(n) {
|
108
|
-
return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
|
109
|
-
}
|
110
|
-
export {
|
111
|
-
b as getComputedStyle,
|
112
|
-
k as getContainingBlock,
|
113
|
-
E as getDocumentElement,
|
114
|
-
v as getFrameElement,
|
115
|
-
h as getNearestOverflowAncestor,
|
116
|
-
s as getNodeName,
|
117
|
-
C as getNodeScroll,
|
118
|
-
d as getOverflowAncestors,
|
119
|
-
u as getParentNode,
|
120
|
-
i as getWindow,
|
121
|
-
T as isContainingBlock,
|
122
|
-
m as isElement,
|
123
|
-
w as isHTMLElement,
|
124
|
-
g as isLastTraversableNode,
|
125
|
-
p as isNode,
|
126
|
-
y as isOverflowElement,
|
127
|
-
a as isShadowRoot,
|
128
|
-
D as isTableElement,
|
129
|
-
N as isTopLayer,
|
130
|
-
L as isWebKit
|
131
|
-
};
|
File without changes
|