bitboss-ui 1.0.63 → 1.0.66
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/BbButton/BbButton.vue.d.ts +4 -0
- package/dist/index105.js +3 -3
- package/dist/index113.js +1 -1
- package/dist/index115.js +4 -4
- package/dist/index117.js +1 -1
- package/dist/index12.js +19 -30
- package/dist/index12.js.map +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/index14.js +3 -3
- package/dist/index16.js +1 -1
- package/dist/index18.js +8 -8
- package/dist/index198.js +2 -122
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +2 -5
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +13 -13
- package/dist/index200.js +4 -134
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +2 -19
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +174 -2
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +3 -2
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +1 -1
- package/dist/index205.js +6 -174
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +7 -6
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -41
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +7 -1
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +16 -13
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +14 -367
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +18 -426
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +20 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +29 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +8 -174
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +2 -2
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +42 -3
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +1 -9
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +13 -5
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +122 -2
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +42 -42
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +134 -3
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +2 -3
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +172 -14
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +367 -14
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +425 -18
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +3 -29
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +3 -8
- package/dist/index226.js.map +1 -1
- package/dist/index229.js +1 -1
- package/dist/index230.js +1 -1
- package/dist/index234.js +8 -3
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +23 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +4 -17
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +6 -295
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +17 -6
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +435 -2
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.js +89 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +3 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +1 -108
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +5 -433
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +200 -3
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +297 -1
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +6 -7
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -9
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -23
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +2 -79
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +2 -200
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -118
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -5
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +2 -69
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +106 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +55 -65
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +1 -1
- package/dist/index257.js +1 -1
- package/dist/index258.js +118 -2
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +2 -2
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +4 -4
- package/dist/index260.js +69 -2
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +235 -2
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +5 -235
- package/dist/index262.js.map +1 -1
- package/dist/index267.js +1 -1
- package/dist/index268.js +2 -2
- package/dist/index269.js +2 -2
- package/dist/index28.js +2 -2
- package/dist/index30.js +1 -1
- package/dist/index32.js +3 -3
- package/dist/index34.js +9 -9
- package/dist/index36.js +2 -2
- package/dist/index38.js +2 -2
- package/dist/index40.js +1 -1
- package/dist/index42.js +4 -4
- package/dist/index44.js +3 -3
- package/dist/index46.js +3 -3
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index58.js +1 -0
- package/dist/index58.js.map +1 -1
- package/dist/index70.js +5 -5
- package/dist/index74.js +2 -2
- package/dist/index76.js +1 -1
- package/dist/index79.js +1 -1
- 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
|
@@ -72,6 +72,10 @@ export type BbButtonProps = {
|
|
|
72
72
|
[key: string]: unknown;
|
|
73
73
|
}) => boolean) | null;
|
|
74
74
|
queryStringArrayFormat?: 'brackets' | 'indices';
|
|
75
|
+
/**
|
|
76
|
+
* Sets or retrieves the relationship between the object and the destination of the link.
|
|
77
|
+
*/
|
|
78
|
+
rel?: HTMLAnchorElement['rel'];
|
|
75
79
|
/**
|
|
76
80
|
* Calls `router.replace` instead of `router.push`.
|
|
77
81
|
*/
|
package/dist/index105.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as q, computed as p, onMounted as de, watch as J, openBlock as n, createBlock as be, resolveDynamicComponent as re, normalizeClass as f, withCtx as ue, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, unref as C, createVNode as j, Fragment as N, renderList as S, createTextVNode as pe, mergeProps as fe } from "vue";
|
|
2
|
-
import { add as me } from "./
|
|
3
|
-
import { clamp as ye } from "./
|
|
2
|
+
import { add as me } from "./index259.js";
|
|
3
|
+
import { clamp as ye } from "./index198.js";
|
|
4
4
|
import { deepEqual as K } from "./index227.js";
|
|
5
5
|
import { isNil as x } from "./index124.js";
|
|
6
6
|
import { isNotNil as he } from "./index129.js";
|
|
7
7
|
import { useId as _e } from "./index7.js";
|
|
8
8
|
import { useItemValue as ke } from "./index230.js";
|
|
9
|
-
import { when as ge } from "./
|
|
9
|
+
import { when as ge } from "./index200.js";
|
|
10
10
|
import Q from "./index14.js";
|
|
11
11
|
import "./index15.js";
|
|
12
12
|
import ve 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 d, Fragment as f, 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 "./index260.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 "./index219.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
|
import "./index13.js";
|
|
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 "./index223.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 v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
|
|
2
|
-
import { flattenTree as P } from "./
|
|
2
|
+
import { flattenTree as P } from "./index262.js";
|
|
3
3
|
const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
|
|
4
4
|
__name: "BbTree",
|
|
5
5
|
props: {
|
package/dist/index12.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as y, getCurrentInstance as
|
|
2
|
-
import { _config as
|
|
3
|
-
import { useLogger as
|
|
4
|
-
const
|
|
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
|
+
import { _config as o } from "./index3.js";
|
|
3
|
+
import { useLogger as m } from "./index207.js";
|
|
4
|
+
const P = /* @__PURE__ */ y({
|
|
5
5
|
__name: "BaseButton",
|
|
6
6
|
props: {
|
|
7
7
|
activeClass: {},
|
|
@@ -33,14 +33,14 @@ const A = /* @__PURE__ */ y({
|
|
|
33
33
|
},
|
|
34
34
|
setup(f) {
|
|
35
35
|
var i, l, u, c;
|
|
36
|
-
const t = f,
|
|
36
|
+
const t = f, a = !!((l = (i = p()) == null ? void 0 : i.proxy) != null && l.$inertia), g = !!((c = (u = p()) == null ? void 0 : u.proxy) != null && c.$nuxt), n = s(() => {
|
|
37
37
|
if (t.href || t.to && t.disabled) {
|
|
38
|
-
if (
|
|
39
|
-
const e =
|
|
38
|
+
if (a && !t.disabled && !t.target) {
|
|
39
|
+
const e = d(o.inertiaLinkName);
|
|
40
40
|
if (typeof e == "string") {
|
|
41
|
-
const { warn:
|
|
42
|
-
|
|
43
|
-
`Inertia link component "${
|
|
41
|
+
const { warn: r } = m();
|
|
42
|
+
r(
|
|
43
|
+
`Inertia link component "${o.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
return e;
|
|
@@ -48,12 +48,12 @@ const A = /* @__PURE__ */ y({
|
|
|
48
48
|
return "a";
|
|
49
49
|
}
|
|
50
50
|
if (t.to) {
|
|
51
|
-
if (
|
|
52
|
-
const e =
|
|
51
|
+
if (g) {
|
|
52
|
+
const e = d(o.nuxtLinkName);
|
|
53
53
|
if (typeof e == "string") {
|
|
54
|
-
const { warn:
|
|
55
|
-
|
|
56
|
-
`Nuxt link component "${
|
|
54
|
+
const { warn: r } = m();
|
|
55
|
+
r(
|
|
56
|
+
`Nuxt link component "${o.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.nuxtLinkName}" or set bitboss-ui config key "nuxtLInkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
return e;
|
|
@@ -61,26 +61,15 @@ const A = /* @__PURE__ */ y({
|
|
|
61
61
|
return "router-link";
|
|
62
62
|
}
|
|
63
63
|
return t.tag;
|
|
64
|
-
}),
|
|
64
|
+
}), b = s(() => ({
|
|
65
65
|
"base-btn": !0,
|
|
66
66
|
"base-btn--block": t.block,
|
|
67
67
|
"base-btn--disabled": t.disabled
|
|
68
68
|
})), v = s(() => {
|
|
69
69
|
const e = {};
|
|
70
|
-
|
|
71
|
-
case "button":
|
|
72
|
-
e.disabled = t.disabled, e.type = t.type;
|
|
73
|
-
break;
|
|
74
|
-
case "a":
|
|
75
|
-
t.disabled ? (e["aria-disabled"] = !0, e.role = "link") : e.href = t.href;
|
|
76
|
-
break;
|
|
77
|
-
case "router-link":
|
|
78
|
-
e.to = t.to;
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
return e;
|
|
70
|
+
return n.value === "button" ? (e.disabled = t.disabled, e.type = t.type) : n.value === "a" || a && typeof n.value != "string" && n.value.name === "Link" ? t.disabled ? (e["aria-disabled"] = !0, e.role = "link") : (e.href = t.href, e.target = t.target, a && (e.data = t.data, e.headers = t.headers, e.method = t.method, e.onBefore = t.onBefore, e.onCancel = t.onCancel, e.onCancelToken = t.onCancelToken, e.onFinish = t.onFinish, e.only = t.only, e.onProgress = t.onProgress, e.onStart = t.onStart, e.onSuccess = t.onSuccess, e.preserveScroll = t.preserveScroll, e.preserveState = t.preserveState, e.queryStringArrayFormat = t.queryStringArrayFormat, e.replace = t.replace)) : (n.value === "router-link" || typeof n.value != "string" && n.value.name === "NuxtLink") && (e.activeClass = t.activeClass, e.ariaCurrentValue = t.ariaCurrentValue, e.exactActiveClass = t.exactActiveClass, e.replace = t.replace, e.target = t.target, e.to = t.to), e;
|
|
82
71
|
});
|
|
83
|
-
return (e,
|
|
72
|
+
return (e, r) => (k(), h(C(n.value), x({ class: b.value }, v.value), {
|
|
84
73
|
default: S(() => [
|
|
85
74
|
L(e.$slots, "default", {}, () => [
|
|
86
75
|
B(N(e.text), 1)
|
|
@@ -91,6 +80,6 @@ const A = /* @__PURE__ */ y({
|
|
|
91
80
|
}
|
|
92
81
|
});
|
|
93
82
|
export {
|
|
94
|
-
|
|
83
|
+
P as default
|
|
95
84
|
};
|
|
96
85
|
//# sourceMappingURL=index12.js.map
|
package/dist/index12.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index12.js","sources":["../src/components/BaseButton/BaseButton.vue"],"sourcesContent":["<template>\n\t<component :is=\"tag\" :class=\"classes\" v-bind=\"attributes\">\n\t\t<slot>{{ text }}</slot>\n\t</component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\nimport { _config } from '@/composables/useBbConfig';\nimport { useLogger } from '@/composables/useLogger';\n\nexport type BaseButtonProps = {\n\t/**\n\t * Class to apply when the link is active\n\t */\n\tactiveClass?: string;\n\n\t/**\n\t * Value passed to the attribute `aria-current` when the link is exact active.\n\t *\n\t * @defaultValue `'page'`\n\t */\n\tariaCurrentValue?:\n\t\t| 'page'\n\t\t| 'step'\n\t\t| 'location'\n\t\t| 'date'\n\t\t| 'time'\n\t\t| 'true'\n\t\t| 'false';\n\n\t/**\n\t * Displays the component as full width.\n\t */\n\tblock?: boolean;\n\n\tdata?: object;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Class to apply when the link is exact active\n\t */\n\texactActiveClass?: string;\n\n\theaders?: object;\n\n\t/**\n\t * Returns the hyperlink's URL.\n\t *\n\t * Can be set, to change the URL.\n\t */\n\thref?: HTMLAnchorElement['href'];\n\n\tmethod?: 'get' | 'post' | 'put' | 'patch' | 'delete';\n\n\tonBefore?: () => void;\n\n\tonCancel?: () => void;\n\n\tonCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;\n\n\tonFinish?: () => void;\n\n\tonly?: string[];\n\n\tonProgress?: (progress: { percentage: number | undefined }) => void;\n\n\tonStart?: () => void;\n\n\tonSuccess?: () => void;\n\n\tpreserveScroll?: boolean | ((props: { [key: string]: unknown }) => boolean);\n\n\tpreserveState?:\n\t\t| boolean\n\t\t| ((props: { [key: string]: unknown }) => boolean)\n\t\t| null;\n\n\tqueryStringArrayFormat?: 'brackets' | 'indices';\n\n\t/**\n\t * Calls `router.replace` instead of `router.push`.\n\t */\n\treplace?: boolean;\n\n\t/**\n\t * Any HTML tag corresponding to a non-void HTMl element.\n\t */\n\ttag?: string;\n\n\t/**\n\t * Sets or retrieves the window or frame at which to target content.\n\t */\n\ttarget?: HTMLAnchorElement['target'];\n\n\t/**\n\t * Text content of the component.\n\t */\n\ttext?: string;\n\n\t/**\n\t * Route Location the link should navigate to when clicked on.\n\t */\n\tto?: RouteLocationRaw;\n\n\t/**\n\t * Gets the classification and default behavior of the button.\n\t */\n\ttype?: HTMLButtonElement['type'];\n};\n\nconst props = withDefaults(defineProps<BaseButtonProps>(), {\n\ttag: 'button',\n\ttype: 'button',\n});\n\ndefineSlots<{\n\tdefault?: (props: object) => any;\n}>();\n\n/* Ignore because possibly undefined */\n// @ts-expect-error possibly undef\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-expect-error possibly undef\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n\t// For disabled links always render a\n\tif (props.href || (props.to && props.disabled)) {\n\t\t// Prevent rendering inertia links if target is passed (inertia doesn't support external links)\n\t\tif (isInertia && !props.disabled && !props.target) {\n\t\t\tconst resolved = resolveComponent(_config.inertiaLinkName);\n\t\t\tif (typeof resolved === 'string') {\n\t\t\t\tconst { warn } = useLogger();\n\t\t\t\twarn(\n\t\t\t\t\t`Inertia link component \"${_config.inertiaLinkName}\" could not be resolved. Ensure you app registers a link component with the name \"${_config.inertiaLinkName}\" or set bitboss-ui config key \"inertiaLinkName\" to the correct value globally. Please visit ${_config.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn resolved;\n\t\t}\n\n\t\treturn 'a';\n\t}\n\tif (props.to) {\n\t\tif (isNuxt) {\n\t\t\tconst resolved = resolveComponent(_config.nuxtLinkName);\n\t\t\tif (typeof resolved === 'string') {\n\t\t\t\tconst { warn } = useLogger();\n\t\t\t\twarn(\n\t\t\t\t\t`Nuxt link component \"${_config.nuxtLinkName}\" could not be resolved. Ensure you app registers a link component with the name \"${_config.nuxtLinkName}\" or set bitboss-ui config key \"nuxtLInkName\" to the correct value globally. Please visit ${_config.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn resolved;\n\t\t}\n\t\treturn 'router-link';\n\t}\n\treturn props.tag;\n});\n\nconst classes = computed(() => ({\n\t'base-btn': true,\n\t'base-btn--block': props.block,\n\t'base-btn--disabled': props.disabled,\n}));\n\nconst attributes = computed(() => {\n\ttype PossibleAttributes = {\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\n\t\t'aria-disabled': boolean;\n\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\n\t\tdata: BaseButtonProps['data'];\n\n\t\tdisabled: boolean;\n\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\n\t\theaders: BaseButtonProps['headers'];\n\n\t\thref: string;\n\n\t\tmethod: BaseButtonProps['method'];\n\n\t\tonBefore: BaseButtonProps['onBefore'];\n\n\t\tonCancel: BaseButtonProps['onCancel'];\n\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\n\t\tonFinish: BaseButtonProps['onFinish'];\n\n\t\tonly: BaseButtonProps['only'];\n\n\t\tonProgress: BaseButtonProps['onProgress'];\n\n\t\tonStart: BaseButtonProps['onStart'];\n\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\n\t\treplace: BaseButtonProps['replace'];\n\n\t\trole: string;\n\n\t\tstyle: { [rule: string]: string };\n\n\t\ttarget: string;\n\n\t\tto: BaseButtonProps['to'];\n\n\t\ttype: string;\n\t};\n\tconst initial: Partial<PossibleAttributes> = {};\n\n\tif (tag.value === 'button') {\n\t\tinitial.disabled = props.disabled;\n\t\tinitial.type = props.type;\n\t} else if (\n\t\ttag.value === 'a' ||\n\t\t(isInertia && typeof tag.value !== 'string' && tag.value.name === 'Link')\n\t) {\n\t\t// When rendering as anchor prevent navigation if disabled\n\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\tif (props.disabled) {\n\t\t\tinitial['aria-disabled'] = true;\n\t\t\tinitial.role = 'link';\n\t\t} else {\n\t\t\t// Only attach the href to active links\n\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\tinitial.href = props.href;\n\t\t\tinitial.target = props.target;\n\n\t\t\tif (isInertia) {\n\t\t\t\tinitial.data = props.data;\n\t\t\t\tinitial.headers = props.headers;\n\t\t\t\tinitial.method = props.method;\n\t\t\t\tinitial.onBefore = props.onBefore;\n\t\t\t\tinitial.onCancel = props.onCancel;\n\t\t\t\tinitial.onCancelToken = props.onCancelToken;\n\t\t\t\tinitial.onFinish = props.onFinish;\n\t\t\t\tinitial.only = props.only;\n\t\t\t\tinitial.onProgress = props.onProgress;\n\t\t\t\tinitial.onStart = props.onStart;\n\t\t\t\tinitial.onSuccess = props.onSuccess;\n\t\t\t\tinitial.preserveScroll = props.preserveScroll;\n\t\t\t\tinitial.preserveState = props.preserveState;\n\t\t\t\tinitial.queryStringArrayFormat = props.queryStringArrayFormat;\n\t\t\t\tinitial.replace = props.replace;\n\t\t\t}\n\t\t}\n\t} else if (\n\t\ttag.value === 'router-link' ||\n\t\t(typeof tag.value !== 'string' && tag.value.name === 'NuxtLink')\n\t) {\n\t\tinitial.activeClass = props.activeClass;\n\t\tinitial.ariaCurrentValue = props.ariaCurrentValue;\n\t\tinitial.exactActiveClass = props.exactActiveClass;\n\t\tinitial.replace = props.replace;\n\t\tinitial.target = props.target;\n\t\tinitial.to = props.to;\n\t}\n\n\tswitch (tag.value) {\n\t\tcase 'button':\n\t\t\tinitial.disabled = props.disabled;\n\t\t\tinitial.type = props.type;\n\t\t\tbreak;\n\t\tcase 'a':\n\t\t\t// When rendering as anchor prevent navigation if disabled\n\t\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\t\tif (props.disabled) {\n\t\t\t\tinitial['aria-disabled'] = true;\n\t\t\t\tinitial.role = 'link';\n\t\t\t} else {\n\t\t\t\t// Only attach the href to active links\n\t\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\t\tinitial.href = props.href;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 'router-link':\n\t\t\tinitial.to = props.to;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\treturn initial;\n});\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseButton';\n</style>\n"],"names":["props","__props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolved","resolveComponent","_config","warn","useLogger","classes","attributes","initial"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"index12.js","sources":["../src/components/BaseButton/BaseButton.vue"],"sourcesContent":["<template>\n\t<component :is=\"tag\" :class=\"classes\" v-bind=\"attributes\">\n\t\t<slot>{{ text }}</slot>\n\t</component>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, resolveComponent } from 'vue';\nimport type { RouteLocationRaw } from 'vue-router';\nimport { _config } from '@/composables/useBbConfig';\nimport { useLogger } from '@/composables/useLogger';\n\nexport type BaseButtonProps = {\n\t/**\n\t * Class to apply when the link is active\n\t */\n\tactiveClass?: string;\n\n\t/**\n\t * Value passed to the attribute `aria-current` when the link is exact active.\n\t *\n\t * @defaultValue `'page'`\n\t */\n\tariaCurrentValue?:\n\t\t| 'page'\n\t\t| 'step'\n\t\t| 'location'\n\t\t| 'date'\n\t\t| 'time'\n\t\t| 'true'\n\t\t| 'false';\n\n\t/**\n\t * Displays the component as full width.\n\t */\n\tblock?: boolean;\n\n\tdata?: object;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Class to apply when the link is exact active\n\t */\n\texactActiveClass?: string;\n\n\theaders?: object;\n\n\t/**\n\t * Returns the hyperlink's URL.\n\t *\n\t * Can be set, to change the URL.\n\t */\n\thref?: HTMLAnchorElement['href'];\n\n\tmethod?: 'get' | 'post' | 'put' | 'patch' | 'delete';\n\n\tonBefore?: () => void;\n\n\tonCancel?: () => void;\n\n\tonCancelToken?: (cancelToken: import('axios').CancelTokenSource) => void;\n\n\tonFinish?: () => void;\n\n\tonly?: string[];\n\n\tonProgress?: (progress: { percentage: number | undefined }) => void;\n\n\tonStart?: () => void;\n\n\tonSuccess?: () => void;\n\n\tpreserveScroll?: boolean | ((props: { [key: string]: unknown }) => boolean);\n\n\tpreserveState?:\n\t\t| boolean\n\t\t| ((props: { [key: string]: unknown }) => boolean)\n\t\t| null;\n\n\tqueryStringArrayFormat?: 'brackets' | 'indices';\n\n\t/**\n\t * Calls `router.replace` instead of `router.push`.\n\t */\n\treplace?: boolean;\n\n\t/**\n\t * Any HTML tag corresponding to a non-void HTMl element.\n\t */\n\ttag?: string;\n\n\t/**\n\t * Sets or retrieves the window or frame at which to target content.\n\t */\n\ttarget?: HTMLAnchorElement['target'];\n\n\t/**\n\t * Text content of the component.\n\t */\n\ttext?: string;\n\n\t/**\n\t * Route Location the link should navigate to when clicked on.\n\t */\n\tto?: RouteLocationRaw;\n\n\t/**\n\t * Gets the classification and default behavior of the button.\n\t */\n\ttype?: HTMLButtonElement['type'];\n};\n\nconst props = withDefaults(defineProps<BaseButtonProps>(), {\n\ttag: 'button',\n\ttype: 'button',\n});\n\ndefineSlots<{\n\tdefault?: (props: object) => any;\n}>();\n\n/* Ignore because possibly undefined */\n// @ts-expect-error possibly undef\nconst isInertia = !!getCurrentInstance()?.proxy?.$inertia;\n\n// @ts-expect-error possibly undef\nconst isNuxt = !!getCurrentInstance()?.proxy?.$nuxt;\n\nconst tag = computed(() => {\n\t// For disabled links always render a\n\tif (props.href || (props.to && props.disabled)) {\n\t\t// Prevent rendering inertia links if target is passed (inertia doesn't support external links)\n\t\tif (isInertia && !props.disabled && !props.target) {\n\t\t\tconst resolved = resolveComponent(_config.inertiaLinkName);\n\t\t\tif (typeof resolved === 'string') {\n\t\t\t\tconst { warn } = useLogger();\n\t\t\t\twarn(\n\t\t\t\t\t`Inertia link component \"${_config.inertiaLinkName}\" could not be resolved. Ensure you app registers a link component with the name \"${_config.inertiaLinkName}\" or set bitboss-ui config key \"inertiaLinkName\" to the correct value globally. Please visit ${_config.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn resolved;\n\t\t}\n\n\t\treturn 'a';\n\t}\n\tif (props.to) {\n\t\tif (isNuxt) {\n\t\t\tconst resolved = resolveComponent(_config.nuxtLinkName);\n\t\t\tif (typeof resolved === 'string') {\n\t\t\t\tconst { warn } = useLogger();\n\t\t\t\twarn(\n\t\t\t\t\t`Nuxt link component \"${_config.nuxtLinkName}\" could not be resolved. Ensure you app registers a link component with the name \"${_config.nuxtLinkName}\" or set bitboss-ui config key \"nuxtLInkName\" to the correct value globally. Please visit ${_config.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn resolved;\n\t\t}\n\t\treturn 'router-link';\n\t}\n\treturn props.tag;\n});\n\nconst classes = computed(() => ({\n\t'base-btn': true,\n\t'base-btn--block': props.block,\n\t'base-btn--disabled': props.disabled,\n}));\n\nconst attributes = computed(() => {\n\ttype PossibleAttributes = {\n\t\tactiveClass: BaseButtonProps['activeClass'];\n\t\t'aria-disabled': boolean;\n\t\tariaCurrentValue: BaseButtonProps['ariaCurrentValue'];\n\t\tdata: BaseButtonProps['data'];\n\t\tdisabled: boolean;\n\t\texactActiveClass: BaseButtonProps['exactActiveClass'];\n\t\theaders: BaseButtonProps['headers'];\n\t\thref: string;\n\t\tmethod: BaseButtonProps['method'];\n\t\tonBefore: BaseButtonProps['onBefore'];\n\t\tonCancel: BaseButtonProps['onCancel'];\n\t\tonCancelToken: BaseButtonProps['onCancelToken'];\n\t\tonFinish: BaseButtonProps['onFinish'];\n\t\tonly: BaseButtonProps['only'];\n\t\tonProgress: BaseButtonProps['onProgress'];\n\t\tonStart: BaseButtonProps['onStart'];\n\t\tonSuccess: BaseButtonProps['onSuccess'];\n\t\tpreserveScroll: BaseButtonProps['preserveScroll'];\n\t\tpreserveState: BaseButtonProps['preserveState'];\n\t\tqueryStringArrayFormat: BaseButtonProps['queryStringArrayFormat'];\n\t\treplace: BaseButtonProps['replace'];\n\t\trole: string;\n\t\tstyle: { [rule: string]: string };\n\t\ttarget: string;\n\t\tto: BaseButtonProps['to'];\n\t\ttype: string;\n\t};\n\tconst initial: Partial<PossibleAttributes> = {};\n\n\tif (tag.value === 'button') {\n\t\tinitial.disabled = props.disabled;\n\t\tinitial.type = props.type;\n\t} else if (\n\t\ttag.value === 'a' ||\n\t\t(isInertia && typeof tag.value !== 'string' && tag.value.name === 'Link')\n\t) {\n\t\t// When rendering as anchor prevent navigation if disabled\n\t\t// https://getbootstrap.com/docs/4.0/components/buttons/#disabled-state\n\t\tif (props.disabled) {\n\t\t\tinitial['aria-disabled'] = true;\n\t\t\tinitial.role = 'link';\n\t\t} else {\n\t\t\t// Only attach the href to active links\n\t\t\t// https://www.scottohara.me/blog/2021/05/28/disabled-links.html\n\t\t\tinitial.href = props.href;\n\t\t\tinitial.target = props.target;\n\n\t\t\tif (isInertia) {\n\t\t\t\tinitial.data = props.data;\n\t\t\t\tinitial.headers = props.headers;\n\t\t\t\tinitial.method = props.method;\n\t\t\t\tinitial.onBefore = props.onBefore;\n\t\t\t\tinitial.onCancel = props.onCancel;\n\t\t\t\tinitial.onCancelToken = props.onCancelToken;\n\t\t\t\tinitial.onFinish = props.onFinish;\n\t\t\t\tinitial.only = props.only;\n\t\t\t\tinitial.onProgress = props.onProgress;\n\t\t\t\tinitial.onStart = props.onStart;\n\t\t\t\tinitial.onSuccess = props.onSuccess;\n\t\t\t\tinitial.preserveScroll = props.preserveScroll;\n\t\t\t\tinitial.preserveState = props.preserveState;\n\t\t\t\tinitial.queryStringArrayFormat = props.queryStringArrayFormat;\n\t\t\t\tinitial.replace = props.replace;\n\t\t\t}\n\t\t}\n\t} else if (\n\t\ttag.value === 'router-link' ||\n\t\t(typeof tag.value !== 'string' && tag.value.name === 'NuxtLink')\n\t) {\n\t\tinitial.activeClass = props.activeClass;\n\t\tinitial.ariaCurrentValue = props.ariaCurrentValue;\n\t\tinitial.exactActiveClass = props.exactActiveClass;\n\t\tinitial.replace = props.replace;\n\t\tinitial.target = props.target;\n\t\tinitial.to = props.to;\n\t}\n\n\treturn initial;\n});\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseButton';\n</style>\n"],"names":["props","__props","isInertia","_b","_a","getCurrentInstance","isNuxt","_d","_c","tag","computed","resolved","resolveComponent","_config","warn","useLogger","classes","attributes","initial"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoHA,UAAMA,IAAQC,GAWRC,IAAY,CAAC,GAACC,KAAAC,IAAAC,EAAA,MAAA,gBAAAD,EAAsB,UAAtB,QAAAD,EAA6B,WAG3CG,IAAS,CAAC,GAACC,KAAAC,IAAAH,EAAA,MAAA,gBAAAG,EAAsB,UAAtB,QAAAD,EAA6B,QAExCE,IAAMC,EAAS,MAAM;AAE1B,UAAIV,EAAM,QAASA,EAAM,MAAMA,EAAM,UAAW;AAE/C,YAAIE,KAAa,CAACF,EAAM,YAAY,CAACA,EAAM,QAAQ;AAC5C,gBAAAW,IAAWC,EAAiBC,EAAQ,eAAe;AACrD,cAAA,OAAOF,KAAa,UAAU;AAC3B,kBAAA,EAAE,MAAAG,MAASC;AACjB,YAAAD;AAAA,cACC,2BAA2BD,EAAQ,eAAe,qFAAqFA,EAAQ,eAAe,gGAAgGA,EAAQ,gBAAgB;AAAA,YAAA;AAAA,UAExR;AACO,iBAAAF;AAAA,QACR;AAEO,eAAA;AAAA,MACR;AACA,UAAIX,EAAM,IAAI;AACb,YAAIM,GAAQ;AACL,gBAAAK,IAAWC,EAAiBC,EAAQ,YAAY;AAClD,cAAA,OAAOF,KAAa,UAAU;AAC3B,kBAAA,EAAE,MAAAG,MAASC;AACjB,YAAAD;AAAA,cACC,wBAAwBD,EAAQ,YAAY,qFAAqFA,EAAQ,YAAY,6FAA6FA,EAAQ,gBAAgB;AAAA,YAAA;AAAA,UAE5Q;AACO,iBAAAF;AAAA,QACR;AACO,eAAA;AAAA,MACR;AACA,aAAOX,EAAM;AAAA,IAAA,CACb,GAEKgB,IAAUN,EAAS,OAAO;AAAA,MAC/B,YAAY;AAAA,MACZ,mBAAmBV,EAAM;AAAA,MACzB,sBAAsBA,EAAM;AAAA,IAC3B,EAAA,GAEIiB,IAAaP,EAAS,MAAM;AA6BjC,YAAMQ,IAAuC,CAAA;AAEzC,aAAAT,EAAI,UAAU,YACjBS,EAAQ,WAAWlB,EAAM,UACzBkB,EAAQ,OAAOlB,EAAM,QAErBS,EAAI,UAAU,OACbP,KAAa,OAAOO,EAAI,SAAU,YAAYA,EAAI,MAAM,SAAS,SAI9DT,EAAM,YACTkB,EAAQ,eAAe,IAAI,IAC3BA,EAAQ,OAAO,WAIfA,EAAQ,OAAOlB,EAAM,MACrBkB,EAAQ,SAASlB,EAAM,QAEnBE,MACHgB,EAAQ,OAAOlB,EAAM,MACrBkB,EAAQ,UAAUlB,EAAM,SACxBkB,EAAQ,SAASlB,EAAM,QACvBkB,EAAQ,WAAWlB,EAAM,UACzBkB,EAAQ,WAAWlB,EAAM,UACzBkB,EAAQ,gBAAgBlB,EAAM,eAC9BkB,EAAQ,WAAWlB,EAAM,UACzBkB,EAAQ,OAAOlB,EAAM,MACrBkB,EAAQ,aAAalB,EAAM,YAC3BkB,EAAQ,UAAUlB,EAAM,SACxBkB,EAAQ,YAAYlB,EAAM,WAC1BkB,EAAQ,iBAAiBlB,EAAM,gBAC/BkB,EAAQ,gBAAgBlB,EAAM,eAC9BkB,EAAQ,yBAAyBlB,EAAM,wBACvCkB,EAAQ,UAAUlB,EAAM,aAI1BS,EAAI,UAAU,iBACb,OAAOA,EAAI,SAAU,YAAYA,EAAI,MAAM,SAAS,gBAErDS,EAAQ,cAAclB,EAAM,aAC5BkB,EAAQ,mBAAmBlB,EAAM,kBACjCkB,EAAQ,mBAAmBlB,EAAM,kBACjCkB,EAAQ,UAAUlB,EAAM,SACxBkB,EAAQ,SAASlB,EAAM,QACvBkB,EAAQ,KAAKlB,EAAM,KAGbkB;AAAA,IAAA,CACP;;;;;;;;;;;"}
|
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 "./index199.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 "./index199.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/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 "./index199.js";
|
|
3
|
+
import { when as F } from "./index200.js";
|
|
4
|
+
import { booleanishToBoolean as N } from "./index201.js";
|
|
5
5
|
const S = {
|
|
6
6
|
"aria-hidden": "true",
|
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index16.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as y, toRef as l, openBlock as c, createElementBlock as r, normalizeClass as p, createElementVNode as g, renderSlot as n, unref as i, createTextVNode as k, toDisplayString as v, createCommentVNode as w, Fragment as V, renderList as z, createVNode as S, mergeProps as T, withCtx as F } from "vue";
|
|
2
|
-
import { useOptions as N } from "./
|
|
2
|
+
import { useOptions as N } from "./index202.js";
|
|
3
3
|
import I from "./index14.js";
|
|
4
4
|
import "./index15.js";
|
|
5
5
|
const M = { class: "bb-base-checkbox-group__container" }, H = {
|
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 "./index208.js";
|
|
3
|
+
import Me from "./index209.js";
|
|
4
|
+
import Ae from "./index210.js";
|
|
5
|
+
import xe from "./index211.js";
|
|
6
|
+
import Ce from "./index212.js";
|
|
7
|
+
import Ye from "./index213.js";
|
|
8
|
+
import { groupBy as J } from "./index214.js";
|
|
9
9
|
import { isNil as Be } from "./index124.js";
|
|
10
|
-
import { last as Q } from "./
|
|
10
|
+
import { last as Q } from "./index215.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,125 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { autoUpdate as T, flip as W, hide as X, platform as Y, shift as Z } from "./index210.js";
|
|
3
|
-
import { unref as o, computed as r, ref as f, shallowRef as B, watch as h, getCurrentScope as F, onScopeDispose as I, shallowReadonly as a } from "vue";
|
|
4
|
-
import { isNode as U, getNodeName as k } from "./index242.js";
|
|
5
|
-
import { getOverflowAncestors as ne } from "./index242.js";
|
|
6
|
-
function q(n) {
|
|
7
|
-
return n != null && typeof n == "object" && "$el" in n;
|
|
8
|
-
}
|
|
9
|
-
function g(n) {
|
|
10
|
-
if (q(n)) {
|
|
11
|
-
const l = n.$el;
|
|
12
|
-
return U(l) && k(l) === "#comment" ? null : l;
|
|
13
|
-
}
|
|
14
|
-
return n;
|
|
15
|
-
}
|
|
16
|
-
function J(n) {
|
|
17
|
-
return {
|
|
18
|
-
name: "arrow",
|
|
19
|
-
options: n,
|
|
20
|
-
fn(l) {
|
|
21
|
-
const t = g(o(n.element));
|
|
22
|
-
return t == null ? {} : j({
|
|
23
|
-
element: t,
|
|
24
|
-
padding: n.padding
|
|
25
|
-
}).fn(l);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function S(n) {
|
|
30
|
-
return typeof window > "u" ? 1 : (n.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
31
|
-
}
|
|
32
|
-
function M(n, l) {
|
|
33
|
-
const t = S(n);
|
|
34
|
-
return Math.round(l * t) / t;
|
|
35
|
-
}
|
|
36
|
-
function K(n, l, t) {
|
|
37
|
-
t === void 0 && (t = {});
|
|
38
|
-
const x = t.whileElementsMounted, D = r(() => {
|
|
39
|
-
var e;
|
|
40
|
-
return (e = o(t.open)) != null ? e : !0;
|
|
41
|
-
}), O = r(() => o(t.middleware)), d = r(() => {
|
|
42
|
-
var e;
|
|
43
|
-
return (e = o(t.placement)) != null ? e : "bottom";
|
|
44
|
-
}), v = r(() => {
|
|
45
|
-
var e;
|
|
46
|
-
return (e = o(t.strategy)) != null ? e : "absolute";
|
|
47
|
-
}), _ = r(() => {
|
|
48
|
-
var e;
|
|
49
|
-
return (e = o(t.transform)) != null ? e : !0;
|
|
50
|
-
}), i = r(() => g(n.value)), u = r(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), P = f(d.value), E = B({}), y = f(!1), N = r(() => {
|
|
51
|
-
const e = {
|
|
52
|
-
position: c.value,
|
|
53
|
-
left: "0",
|
|
54
|
-
top: "0"
|
|
55
|
-
};
|
|
56
|
-
if (!u.value)
|
|
57
|
-
return e;
|
|
58
|
-
const b = M(u.value, p.value), C = M(u.value, w.value);
|
|
59
|
-
return _.value ? {
|
|
60
|
-
...e,
|
|
61
|
-
transform: "translate(" + b + "px, " + C + "px)",
|
|
62
|
-
...S(u.value) >= 1.5 && {
|
|
63
|
-
willChange: "transform"
|
|
64
|
-
}
|
|
65
|
-
} : {
|
|
66
|
-
position: c.value,
|
|
67
|
-
left: b + "px",
|
|
68
|
-
top: C + "px"
|
|
69
|
-
};
|
|
70
|
-
});
|
|
71
|
-
let s;
|
|
72
|
-
function m() {
|
|
73
|
-
i.value == null || u.value == null || A(i.value, u.value, {
|
|
74
|
-
middleware: O.value,
|
|
75
|
-
placement: d.value,
|
|
76
|
-
strategy: v.value
|
|
77
|
-
}).then((e) => {
|
|
78
|
-
p.value = e.x, w.value = e.y, c.value = e.strategy, P.value = e.placement, E.value = e.middlewareData, y.value = !0;
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function R() {
|
|
82
|
-
typeof s == "function" && (s(), s = void 0);
|
|
83
|
-
}
|
|
84
|
-
function V() {
|
|
85
|
-
if (R(), x === void 0) {
|
|
86
|
-
m();
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
if (i.value != null && u.value != null) {
|
|
90
|
-
s = x(i.value, u.value, m);
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
function $() {
|
|
95
|
-
D.value || (y.value = !1);
|
|
96
|
-
}
|
|
97
|
-
return h([O, d, v], m, {
|
|
98
|
-
flush: "sync"
|
|
99
|
-
}), h([i, u], V, {
|
|
100
|
-
flush: "sync"
|
|
101
|
-
}), h(D, $, {
|
|
102
|
-
flush: "sync"
|
|
103
|
-
}), F() && I(R), {
|
|
104
|
-
x: a(p),
|
|
105
|
-
y: a(w),
|
|
106
|
-
strategy: a(c),
|
|
107
|
-
placement: a(P),
|
|
108
|
-
middlewareData: a(E),
|
|
109
|
-
isPositioned: a(y),
|
|
110
|
-
floatingStyles: N,
|
|
111
|
-
update: m
|
|
112
|
-
};
|
|
113
|
-
}
|
|
1
|
+
const n = (t, a, m) => Math.min(Math.max(t, a), m);
|
|
114
2
|
export {
|
|
115
|
-
|
|
116
|
-
T as autoUpdate,
|
|
117
|
-
A as computePosition,
|
|
118
|
-
W as flip,
|
|
119
|
-
ne as getOverflowAncestors,
|
|
120
|
-
X as hide,
|
|
121
|
-
Y as platform,
|
|
122
|
-
Z as shift,
|
|
123
|
-
K as useFloating
|
|
3
|
+
n as clamp
|
|
124
4
|
};
|
|
125
5
|
//# sourceMappingURL=index198.js.map
|
package/dist/index198.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index198.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index198.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/index199.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as o } from "./index237.js";
|
|
3
|
-
var t = o();
|
|
4
|
-
const s = /* @__PURE__ */ r(t);
|
|
1
|
+
const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
|
|
5
2
|
export {
|
|
6
|
-
s as
|
|
3
|
+
s as isCssColor
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=index199.js.map
|
package/dist/index199.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index199.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index199.js","sources":["../src/utilities/functions/isCssColor.ts"],"sourcesContent":["/**\n * Taken from vuetify colorable mixin\n * https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/mixins/colorable/index.ts\n */\nexport const isCssColor = (color: string): boolean => {\n\treturn !!color && !!color.match(/^(#|var\\(--|(rgb|hsl)a?\\()/);\n};\n"],"names":["isCssColor","color"],"mappings":"AAIa,MAAAA,IAAa,CAACC,MACnB,CAAC,CAACA,KAAS,CAAC,CAACA,EAAM,MAAM,4BAA4B;"}
|
package/dist/index20.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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 "./
|
|
2
|
+
import { useFloating as be } from "./index219.js";
|
|
3
|
+
import o from "./index208.js";
|
|
4
|
+
import ve from "./index220.js";
|
|
5
|
+
import ge from "./index211.js";
|
|
6
|
+
import { identity as ye } from "./index221.js";
|
|
7
|
+
import { last as ke } from "./index215.js";
|
|
8
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 "./index222.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
|
import "./index19.js";
|
|
17
|
-
import De from "./
|
|
18
|
-
import "./
|
|
19
|
-
import Ae from "./
|
|
20
|
-
import { autoUpdate as Se, flip as $e, shift as Oe, hide as Be } from "./
|
|
21
|
-
import { offset as Ee } from "./
|
|
17
|
+
import De from "./index216.js";
|
|
18
|
+
import "./index217.js";
|
|
19
|
+
import Ae from "./index218.js";
|
|
20
|
+
import { autoUpdate as Se, flip as $e, shift as Oe, hide as Be } from "./index223.js";
|
|
21
|
+
import { offset as Ee } from "./index224.js";
|
|
22
22
|
const Ie = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Le = ["disabled"], Fe = /* @__PURE__ */ r("svg", {
|
|
23
23
|
fill: "none",
|
|
24
24
|
viewBox: "0 0 16 16",
|