bt-core-app 2.2.3 → 2.2.5
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/_virtual/VAlert.sass.mjs +1 -0
- package/dist/_virtual/VAvatar.sass.mjs +1 -0
- package/dist/_virtual/VBtn.sass.mjs +1 -0
- package/dist/_virtual/VBtnGroup.sass.mjs +1 -0
- package/dist/_virtual/VBtnToggle.sass.mjs +1 -0
- package/dist/_virtual/VCard.sass.mjs +1 -0
- package/dist/_virtual/VDivider.sass.mjs +1 -0
- package/dist/_virtual/VIcon.sass.mjs +1 -0
- package/dist/_virtual/VImg.sass.mjs +1 -0
- package/dist/_virtual/VList.sass.mjs +1 -0
- package/dist/_virtual/VListItem.sass.mjs +1 -0
- package/dist/_virtual/VMenu.sass.mjs +1 -0
- package/dist/_virtual/VOverlay.sass.mjs +1 -0
- package/dist/_virtual/VProgressCircular.sass.mjs +1 -0
- package/dist/_virtual/VProgressLinear.sass.mjs +1 -0
- package/dist/_virtual/VResponsive.sass.mjs +1 -0
- package/dist/_virtual/VRipple.sass.mjs +1 -0
- package/dist/_virtual/VToolbar.sass.mjs +1 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlert.mjs +196 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlertTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VAvatar/VAvatar.mjs +92 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs +220 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtnGroup/VBtnGroup.mjs +68 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtnToggle/VBtnToggle.mjs +57 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs +180 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardActions.mjs +32 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardItem.mjs +118 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardSubtitle.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardText.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCard/VCardTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +39 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VDivider/VDivider.mjs +82 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs +77 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VImg/VImg.mjs +248 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs +281 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListChildren.mjs +104 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListGroup.mjs +129 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs +312 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListItemSubtitle.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/VListSubheader.mjs +50 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VList/list.mjs +38 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs +132 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VMenu/shared.mjs +4 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs +291 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/locationStrategies.mjs +292 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/requestNewFrame.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/scrollStrategies.mjs +91 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/useActivator.mjs +179 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VOverlay/util/point.mjs +42 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs +129 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VProgressLinear/VProgressLinear.mjs +195 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VProgressLinear/chunks.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VResponsive/VResponsive.mjs +56 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs +167 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarTitle.mjs +37 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/createTransition.mjs +113 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/dialog-transition.mjs +136 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/expand-transition.mjs +52 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/border.mjs +19 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/color.mjs +69 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/component.mjs +11 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/defaults.mjs +70 -45
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/delay.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/density.mjs +20 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/dimensions.mjs +23 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/display.mjs +23 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/elevation.mjs +25 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focusTrap.mjs +97 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/forwardRefs.mjs +78 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/group.mjs +169 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/hydration.mjs +20 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/iconSizes.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +73 -40
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/intersectionObserver.mjs +24 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/lazy.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/list-items.mjs +33 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/loader.mjs +38 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/locale.mjs +22 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/location.mjs +49 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/activeStrategies.mjs +102 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/nested.mjs +315 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/openStrategies.mjs +60 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/selectStrategies.mjs +206 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/position.mjs +22 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/proxiedModel.mjs +35 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/resizeObserver.mjs +26 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/reveal.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/rounded.mjs +30 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/router.mjs +97 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/scopeId.mjs +12 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/selectLink.mjs +16 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/size.mjs +27 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/ssrBoot.mjs +17 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/stack.mjs +39 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/tag.mjs +10 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/teleport.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/theme.mjs +32 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/toggleScope.mjs +19 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/transition.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/variant.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/click-outside/index.mjs +62 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/intersect/index.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/ripple/index.mjs +183 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/anchor.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/animation.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/bindProps.mjs +36 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/box.mjs +73 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/color/APCA.mjs +19 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/colorUtils.mjs +141 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/console.mjs +12 -4
- package/dist/bt-core/core/node_modules/vuetify/lib/util/createSimpleFunctional.mjs +31 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/deepEqual.mjs +37 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/dom.mjs +14 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/easing.mjs +7 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/getCurrentInstance.mjs +13 -6
- package/dist/bt-core/core/node_modules/vuetify/lib/util/getScrollParent.mjs +34 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/globals.mjs +7 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +301 -28
- package/dist/bt-core/core/node_modules/vuetify/lib/util/isFixedPosition.mjs +11 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/throttle.mjs +25 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/useRender.mjs +8 -0
- package/dist/components/BT-Blade.vue.mjs +108 -97
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { toRef as o, isRef as a } from "vue";
|
|
2
|
+
import { propsFactory as r } from "../util/propsFactory.mjs";
|
|
3
|
+
const s = r({
|
|
4
|
+
elevation: {
|
|
5
|
+
type: [Number, String],
|
|
6
|
+
validator(e) {
|
|
7
|
+
const t = parseInt(e);
|
|
8
|
+
return !isNaN(t) && t >= 0 && // Material Design has a maximum elevation of 24
|
|
9
|
+
// https://material.io/design/environment/elevation.html#default-elevations
|
|
10
|
+
t <= 24;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, "elevation");
|
|
14
|
+
function v(e) {
|
|
15
|
+
return {
|
|
16
|
+
elevationClasses: o(() => {
|
|
17
|
+
const n = a(e) ? e.value : e.elevation;
|
|
18
|
+
return n == null ? [] : [`elevation-${n}`];
|
|
19
|
+
})
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
s as makeElevationProps,
|
|
24
|
+
v as useElevation
|
|
25
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { toRef as h, watch as L, onScopeDispose as k, nextTick as g, toValue as F } from "vue";
|
|
2
|
+
import { propsFactory as K } from "../util/propsFactory.mjs";
|
|
3
|
+
import { IN_BROWSER as D } from "../util/globals.mjs";
|
|
4
|
+
import { focusableChildren as E } from "../util/helpers.mjs";
|
|
5
|
+
const O = K({
|
|
6
|
+
retainFocus: Boolean,
|
|
7
|
+
captureFocus: Boolean,
|
|
8
|
+
/** @deprecated */
|
|
9
|
+
disableInitialFocus: Boolean
|
|
10
|
+
}, "focusTrap"), y = /* @__PURE__ */ new Map();
|
|
11
|
+
let b = 0;
|
|
12
|
+
function T(n) {
|
|
13
|
+
const f = document.activeElement;
|
|
14
|
+
if (n.key !== "Tab" || !f)
|
|
15
|
+
return;
|
|
16
|
+
const c = Array.from(y.values()).filter((o) => {
|
|
17
|
+
var v;
|
|
18
|
+
let {
|
|
19
|
+
isActive: d,
|
|
20
|
+
contentEl: i
|
|
21
|
+
} = o;
|
|
22
|
+
return d.value && ((v = i.value) == null ? void 0 : v.contains(f));
|
|
23
|
+
}).map((o) => o.contentEl.value);
|
|
24
|
+
let m, u = f.parentElement;
|
|
25
|
+
for (; u; ) {
|
|
26
|
+
if (c.includes(u)) {
|
|
27
|
+
m = u;
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
u = u.parentElement;
|
|
31
|
+
}
|
|
32
|
+
if (!m)
|
|
33
|
+
return;
|
|
34
|
+
const e = E(m).filter((o) => o.tabIndex >= 0);
|
|
35
|
+
if (!e.length)
|
|
36
|
+
return;
|
|
37
|
+
const s = document.activeElement;
|
|
38
|
+
if (e.length === 1 && e[0].classList.contains("v-list") && e[0].contains(s)) {
|
|
39
|
+
n.preventDefault();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const a = e[0], r = e[e.length - 1];
|
|
43
|
+
n.shiftKey && (s === a || a.classList.contains("v-list") && a.contains(s)) && (n.preventDefault(), r.focus()), !n.shiftKey && (s === r || r.classList.contains("v-list") && r.contains(s)) && (n.preventDefault(), a.focus());
|
|
44
|
+
}
|
|
45
|
+
function P(n, f) {
|
|
46
|
+
let {
|
|
47
|
+
isActive: c,
|
|
48
|
+
localTop: m,
|
|
49
|
+
activatorEl: u,
|
|
50
|
+
contentEl: e
|
|
51
|
+
} = f;
|
|
52
|
+
const s = Symbol("trap");
|
|
53
|
+
let a = !1, r = -1;
|
|
54
|
+
async function o() {
|
|
55
|
+
a = !0, r = window.setTimeout(() => {
|
|
56
|
+
a = !1;
|
|
57
|
+
}, 100);
|
|
58
|
+
}
|
|
59
|
+
async function d(t) {
|
|
60
|
+
var w;
|
|
61
|
+
const p = t.relatedTarget, l = t.target;
|
|
62
|
+
document.removeEventListener("pointerdown", o), document.removeEventListener("keydown", i), await g(), c.value && !a && p !== l && e.value && // We're the menu without open submenus or overlays
|
|
63
|
+
F(m) && // It isn't the document or the container body
|
|
64
|
+
![document, e.value].includes(l) && // It isn't inside the container body
|
|
65
|
+
!e.value.contains(l) && ((w = E(e.value)[0]) == null || w.focus());
|
|
66
|
+
}
|
|
67
|
+
function i(t) {
|
|
68
|
+
if (t.key === "Tab" && (document.removeEventListener("keydown", i), c.value && e.value && t.target && !e.value.contains(t.target))) {
|
|
69
|
+
const p = E(document.documentElement);
|
|
70
|
+
if (t.shiftKey && t.target === p.at(0) || !t.shiftKey && t.target === p.at(-1)) {
|
|
71
|
+
const l = E(e.value);
|
|
72
|
+
l.length > 0 && (t.preventDefault(), l[0].focus());
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const v = h(() => c.value && n.captureFocus && !n.disableInitialFocus);
|
|
77
|
+
D && (L(() => n.retainFocus, (t) => {
|
|
78
|
+
t ? y.set(s, {
|
|
79
|
+
isActive: c,
|
|
80
|
+
contentEl: e
|
|
81
|
+
}) : y.delete(s);
|
|
82
|
+
}, {
|
|
83
|
+
immediate: !0
|
|
84
|
+
}), L(v, (t) => {
|
|
85
|
+
t ? (document.addEventListener("pointerdown", o), document.addEventListener("focusin", d, {
|
|
86
|
+
once: !0
|
|
87
|
+
}), document.addEventListener("keydown", i)) : (document.removeEventListener("pointerdown", o), document.removeEventListener("focusin", d), document.removeEventListener("keydown", i));
|
|
88
|
+
}, {
|
|
89
|
+
immediate: !0
|
|
90
|
+
}), b++ < 1 && document.addEventListener("keydown", T)), k(() => {
|
|
91
|
+
y.delete(s), clearTimeout(r), document.removeEventListener("pointerdown", o), document.removeEventListener("focusin", d), document.removeEventListener("keydown", i), --b < 1 && document.removeEventListener("keydown", T);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
O as makeFocusTrapProps,
|
|
96
|
+
P as useFocusTrap
|
|
97
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const h = Symbol("Forwarded refs");
|
|
2
|
+
function p(c, u) {
|
|
3
|
+
let r = c;
|
|
4
|
+
for (; r; ) {
|
|
5
|
+
const n = Reflect.getOwnPropertyDescriptor(r, u);
|
|
6
|
+
if (n)
|
|
7
|
+
return n;
|
|
8
|
+
r = Object.getPrototypeOf(r);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
function R(c) {
|
|
12
|
+
for (var u = arguments.length, r = new Array(u > 1 ? u - 1 : 0), n = 1; n < u; n++)
|
|
13
|
+
r[n - 1] = arguments[n];
|
|
14
|
+
return c[h] = r, new Proxy(c, {
|
|
15
|
+
get(s, t) {
|
|
16
|
+
if (Reflect.has(s, t))
|
|
17
|
+
return Reflect.get(s, t);
|
|
18
|
+
if (!(typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))) {
|
|
19
|
+
for (const e of r)
|
|
20
|
+
if (e.value && Reflect.has(e.value, t)) {
|
|
21
|
+
const f = Reflect.get(e.value, t);
|
|
22
|
+
return typeof f == "function" ? f.bind(e.value) : f;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
has(s, t) {
|
|
27
|
+
if (Reflect.has(s, t))
|
|
28
|
+
return !0;
|
|
29
|
+
if (typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))
|
|
30
|
+
return !1;
|
|
31
|
+
for (const e of r)
|
|
32
|
+
if (e.value && Reflect.has(e.value, t))
|
|
33
|
+
return !0;
|
|
34
|
+
return !1;
|
|
35
|
+
},
|
|
36
|
+
set(s, t, e) {
|
|
37
|
+
if (Reflect.has(s, t))
|
|
38
|
+
return Reflect.set(s, t, e);
|
|
39
|
+
if (typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))
|
|
40
|
+
return !1;
|
|
41
|
+
for (const f of r)
|
|
42
|
+
if (f.value && Reflect.has(f.value, t))
|
|
43
|
+
return Reflect.set(f.value, t, e);
|
|
44
|
+
return !1;
|
|
45
|
+
},
|
|
46
|
+
getOwnPropertyDescriptor(s, t) {
|
|
47
|
+
var f;
|
|
48
|
+
const e = Reflect.getOwnPropertyDescriptor(s, t);
|
|
49
|
+
if (e)
|
|
50
|
+
return e;
|
|
51
|
+
if (!(typeof t == "symbol" || t.startsWith("$") || t.startsWith("__"))) {
|
|
52
|
+
for (const o of r) {
|
|
53
|
+
if (!o.value)
|
|
54
|
+
continue;
|
|
55
|
+
const i = p(o.value, t) ?? ("_" in o.value ? p((f = o.value._) == null ? void 0 : f.setupState, t) : void 0);
|
|
56
|
+
if (i)
|
|
57
|
+
return i;
|
|
58
|
+
}
|
|
59
|
+
for (const o of r) {
|
|
60
|
+
const i = o.value && o.value[h];
|
|
61
|
+
if (!i)
|
|
62
|
+
continue;
|
|
63
|
+
const l = i.slice();
|
|
64
|
+
for (; l.length; ) {
|
|
65
|
+
const a = l.shift(), v = p(a.value, t);
|
|
66
|
+
if (v)
|
|
67
|
+
return v;
|
|
68
|
+
const d = a.value && a.value[h];
|
|
69
|
+
d && l.push(...d);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
R as forwardRefs
|
|
78
|
+
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { useProxiedModel as G } from "./proxiedModel.mjs";
|
|
2
|
+
import { useId as E, provide as b, inject as A, toRef as x, computed as g, onBeforeUnmount as w, watch as B, reactive as P, onMounted as k, onUpdated as M, unref as U } from "vue";
|
|
3
|
+
import { deepEqual as $ } from "../util/deepEqual.mjs";
|
|
4
|
+
import { wrapInArray as q, findChildrenWithProvide as F } from "../util/helpers.mjs";
|
|
5
|
+
import { propsFactory as y } from "../util/propsFactory.mjs";
|
|
6
|
+
import { getCurrentInstance as C } from "../util/getCurrentInstance.mjs";
|
|
7
|
+
import { consoleWarn as W } from "../util/console.mjs";
|
|
8
|
+
const Q = y({
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: null,
|
|
11
|
+
default: void 0
|
|
12
|
+
},
|
|
13
|
+
multiple: Boolean,
|
|
14
|
+
mandatory: [Boolean, String],
|
|
15
|
+
max: Number,
|
|
16
|
+
selectedClass: String,
|
|
17
|
+
disabled: Boolean
|
|
18
|
+
}, "group"), X = y({
|
|
19
|
+
value: null,
|
|
20
|
+
disabled: Boolean,
|
|
21
|
+
selectedClass: String
|
|
22
|
+
}, "group-item");
|
|
23
|
+
function Y(s, o) {
|
|
24
|
+
let d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
25
|
+
const n = C("useGroupItem");
|
|
26
|
+
if (!n)
|
|
27
|
+
throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");
|
|
28
|
+
const t = E();
|
|
29
|
+
b(Symbol.for(`${o.description}:id`), t);
|
|
30
|
+
const i = A(o, null);
|
|
31
|
+
if (!i) {
|
|
32
|
+
if (!d)
|
|
33
|
+
return i;
|
|
34
|
+
throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${o.description}`);
|
|
35
|
+
}
|
|
36
|
+
const m = x(() => s.value), p = g(() => !!(i.disabled.value || s.disabled));
|
|
37
|
+
function h() {
|
|
38
|
+
i == null || i.register({
|
|
39
|
+
id: t,
|
|
40
|
+
value: m,
|
|
41
|
+
disabled: p
|
|
42
|
+
}, n);
|
|
43
|
+
}
|
|
44
|
+
function v() {
|
|
45
|
+
i == null || i.unregister(t);
|
|
46
|
+
}
|
|
47
|
+
h(), w(() => v());
|
|
48
|
+
const f = g(() => i.isSelected(t)), I = g(() => i.items.value[0].id === t), e = g(() => i.items.value[i.items.value.length - 1].id === t), l = g(() => f.value && [i.selectedClass.value, s.selectedClass]);
|
|
49
|
+
return B(f, (r) => {
|
|
50
|
+
n.emit("group:selected", {
|
|
51
|
+
value: r
|
|
52
|
+
});
|
|
53
|
+
}, {
|
|
54
|
+
flush: "sync"
|
|
55
|
+
}), {
|
|
56
|
+
id: t,
|
|
57
|
+
isSelected: f,
|
|
58
|
+
isFirst: I,
|
|
59
|
+
isLast: e,
|
|
60
|
+
toggle: () => i.select(t, !f.value),
|
|
61
|
+
select: (r) => i.select(t, r),
|
|
62
|
+
selectedClass: l,
|
|
63
|
+
value: m,
|
|
64
|
+
disabled: p,
|
|
65
|
+
group: i,
|
|
66
|
+
register: h,
|
|
67
|
+
unregister: v
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function Z(s, o) {
|
|
71
|
+
let d = !1;
|
|
72
|
+
const n = P([]), t = G(s, "modelValue", [], (e) => e === void 0 ? [] : S(n, e === null ? [null] : q(e)), (e) => {
|
|
73
|
+
const l = N(n, e);
|
|
74
|
+
return s.multiple ? l : l[0];
|
|
75
|
+
}), i = C("useGroup");
|
|
76
|
+
function m(e, l) {
|
|
77
|
+
const r = e, u = Symbol.for(`${o.description}:id`), a = F(u, i == null ? void 0 : i.vnode).indexOf(l);
|
|
78
|
+
U(r.value) === void 0 && (r.value = a, r.useIndexAsValue = !0), a > -1 ? n.splice(a, 0, r) : n.push(r);
|
|
79
|
+
}
|
|
80
|
+
function p(e) {
|
|
81
|
+
if (d)
|
|
82
|
+
return;
|
|
83
|
+
h();
|
|
84
|
+
const l = n.findIndex((r) => r.id === e);
|
|
85
|
+
n.splice(l, 1);
|
|
86
|
+
}
|
|
87
|
+
function h() {
|
|
88
|
+
const e = n.find((l) => !l.disabled);
|
|
89
|
+
e && s.mandatory === "force" && !t.value.length && (t.value = [e.id]);
|
|
90
|
+
}
|
|
91
|
+
k(() => {
|
|
92
|
+
h();
|
|
93
|
+
}), w(() => {
|
|
94
|
+
d = !0;
|
|
95
|
+
}), M(() => {
|
|
96
|
+
for (let e = 0; e < n.length; e++)
|
|
97
|
+
n[e].useIndexAsValue && (n[e].value = e);
|
|
98
|
+
});
|
|
99
|
+
function v(e, l) {
|
|
100
|
+
const r = n.find((u) => u.id === e);
|
|
101
|
+
if (!(l && (r != null && r.disabled)))
|
|
102
|
+
if (s.multiple) {
|
|
103
|
+
const u = t.value.slice(), c = u.findIndex((V) => V === e), a = ~c;
|
|
104
|
+
if (l = l ?? !a, a && s.mandatory && u.length <= 1 || !a && s.max != null && u.length + 1 > s.max)
|
|
105
|
+
return;
|
|
106
|
+
c < 0 && l ? u.push(e) : c >= 0 && !l && u.splice(c, 1), t.value = u;
|
|
107
|
+
} else {
|
|
108
|
+
const u = t.value.includes(e);
|
|
109
|
+
if (s.mandatory && u || !u && !l)
|
|
110
|
+
return;
|
|
111
|
+
t.value = l ?? !u ? [e] : [];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function f(e) {
|
|
115
|
+
if (s.multiple && W('This method is not supported when using "multiple" prop'), t.value.length) {
|
|
116
|
+
const l = t.value[0], r = n.findIndex((a) => a.id === l);
|
|
117
|
+
let u = (r + e) % n.length, c = n[u];
|
|
118
|
+
for (; c.disabled && u !== r; )
|
|
119
|
+
u = (u + e) % n.length, c = n[u];
|
|
120
|
+
if (c.disabled)
|
|
121
|
+
return;
|
|
122
|
+
t.value = [n[u].id];
|
|
123
|
+
} else {
|
|
124
|
+
const l = n.find((r) => !r.disabled);
|
|
125
|
+
l && (t.value = [l.id]);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
const I = {
|
|
129
|
+
register: m,
|
|
130
|
+
unregister: p,
|
|
131
|
+
selected: t,
|
|
132
|
+
select: v,
|
|
133
|
+
disabled: x(() => s.disabled),
|
|
134
|
+
prev: () => f(n.length - 1),
|
|
135
|
+
next: () => f(1),
|
|
136
|
+
isSelected: (e) => t.value.includes(e),
|
|
137
|
+
selectedClass: x(() => s.selectedClass),
|
|
138
|
+
items: x(() => n),
|
|
139
|
+
getItemIndex: (e) => L(n, e)
|
|
140
|
+
};
|
|
141
|
+
return b(o, I), I;
|
|
142
|
+
}
|
|
143
|
+
function L(s, o) {
|
|
144
|
+
const d = S(s, [o]);
|
|
145
|
+
return d.length ? s.findIndex((n) => n.id === d[0]) : -1;
|
|
146
|
+
}
|
|
147
|
+
function S(s, o) {
|
|
148
|
+
const d = [];
|
|
149
|
+
return o.forEach((n) => {
|
|
150
|
+
const t = s.find((m) => $(n, m.value)), i = s[n];
|
|
151
|
+
(t == null ? void 0 : t.value) !== void 0 ? d.push(t.id) : i != null && i.useIndexAsValue && d.push(i.id);
|
|
152
|
+
}), d;
|
|
153
|
+
}
|
|
154
|
+
function N(s, o) {
|
|
155
|
+
const d = [];
|
|
156
|
+
return o.forEach((n) => {
|
|
157
|
+
const t = s.findIndex((i) => i.id === n);
|
|
158
|
+
if (~t) {
|
|
159
|
+
const i = s[t];
|
|
160
|
+
d.push(i.value !== void 0 ? i.value : t);
|
|
161
|
+
}
|
|
162
|
+
}), d;
|
|
163
|
+
}
|
|
164
|
+
export {
|
|
165
|
+
X as makeGroupItemProps,
|
|
166
|
+
Q as makeGroupProps,
|
|
167
|
+
Z as useGroup,
|
|
168
|
+
Y as useGroupItem
|
|
169
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useDisplay as t } from "./display.mjs";
|
|
2
|
+
import { shallowRef as r, onMounted as s } from "vue";
|
|
3
|
+
import { IN_BROWSER as n } from "../util/globals.mjs";
|
|
4
|
+
function l() {
|
|
5
|
+
if (!n)
|
|
6
|
+
return r(!1);
|
|
7
|
+
const {
|
|
8
|
+
ssr: o
|
|
9
|
+
} = t();
|
|
10
|
+
if (o) {
|
|
11
|
+
const e = r(!1);
|
|
12
|
+
return s(() => {
|
|
13
|
+
e.value = !0;
|
|
14
|
+
}), e;
|
|
15
|
+
} else
|
|
16
|
+
return r(!0);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
l as useHydration
|
|
20
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { computed as c } from "vue";
|
|
2
|
+
import { propsFactory as t } from "../util/propsFactory.mjs";
|
|
3
|
+
const S = t({
|
|
4
|
+
iconSize: [Number, String],
|
|
5
|
+
iconSizes: {
|
|
6
|
+
type: Array,
|
|
7
|
+
default: () => [["x-small", 10], ["small", 16], ["default", 24], ["large", 28], ["x-large", 32]]
|
|
8
|
+
}
|
|
9
|
+
}, "iconSize");
|
|
10
|
+
function z(i, n) {
|
|
11
|
+
return {
|
|
12
|
+
iconSize: c(() => {
|
|
13
|
+
const o = new Map(i.iconSizes), e = i.iconSize ?? n() ?? "default";
|
|
14
|
+
return o.has(e) ? o.get(e) : e;
|
|
15
|
+
})
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
S as makeIconSizeProps,
|
|
20
|
+
z as useIconSizes
|
|
21
|
+
};
|
|
@@ -1,82 +1,115 @@
|
|
|
1
|
-
import { createVNode as
|
|
2
|
-
import { genericComponent as
|
|
3
|
-
import { propsFactory as
|
|
4
|
-
|
|
1
|
+
import { createVNode as i, mergeProps as g, createElementVNode as c, normalizeClass as d, inject as y, computed as I, toValue as V } from "vue";
|
|
2
|
+
import { genericComponent as S, defineComponent as l } from "../util/defineComponent.mjs";
|
|
3
|
+
import { propsFactory as v } from "../util/propsFactory.mjs";
|
|
4
|
+
import { consoleWarn as A } from "../util/console.mjs";
|
|
5
|
+
const h = [String, Function, Object, Array], w = Symbol.for("vuetify:icons"), s = v({
|
|
5
6
|
icon: {
|
|
6
|
-
type:
|
|
7
|
+
type: h
|
|
7
8
|
},
|
|
8
9
|
// Could not remove this and use makeTagProps, types complained because it is not required
|
|
9
10
|
tag: {
|
|
10
11
|
type: [String, Object, Function],
|
|
11
12
|
required: !0
|
|
12
13
|
}
|
|
13
|
-
}, "icon")
|
|
14
|
-
m()({
|
|
14
|
+
}, "icon"), m = S()({
|
|
15
15
|
name: "VComponentIcon",
|
|
16
|
-
props:
|
|
17
|
-
setup(
|
|
16
|
+
props: s(),
|
|
17
|
+
setup(t, o) {
|
|
18
18
|
let {
|
|
19
|
-
slots:
|
|
20
|
-
} =
|
|
19
|
+
slots: r
|
|
20
|
+
} = o;
|
|
21
21
|
return () => {
|
|
22
|
-
const e =
|
|
23
|
-
return
|
|
22
|
+
const e = t.icon;
|
|
23
|
+
return i(t.tag, null, {
|
|
24
24
|
default: () => {
|
|
25
|
-
var
|
|
26
|
-
return [
|
|
25
|
+
var n;
|
|
26
|
+
return [t.icon ? i(e, null, null) : (n = r.default) == null ? void 0 : n.call(r)];
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
})
|
|
32
|
-
const I = c({
|
|
31
|
+
}), C = l({
|
|
33
32
|
name: "VSvgIcon",
|
|
34
33
|
inheritAttrs: !1,
|
|
35
|
-
props:
|
|
36
|
-
setup(
|
|
34
|
+
props: s(),
|
|
35
|
+
setup(t, o) {
|
|
37
36
|
let {
|
|
38
|
-
attrs:
|
|
39
|
-
} =
|
|
40
|
-
return () =>
|
|
37
|
+
attrs: r
|
|
38
|
+
} = o;
|
|
39
|
+
return () => i(t.tag, g(r, {
|
|
41
40
|
style: null
|
|
42
41
|
}), {
|
|
43
|
-
default: () => [
|
|
42
|
+
default: () => [c("svg", {
|
|
44
43
|
class: "v-icon__svg",
|
|
45
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
46
45
|
viewBox: "0 0 24 24",
|
|
47
46
|
role: "img",
|
|
48
47
|
"aria-hidden": "true"
|
|
49
|
-
}, [Array.isArray(
|
|
48
|
+
}, [Array.isArray(t.icon) ? t.icon.map((e) => Array.isArray(e) ? c("path", {
|
|
50
49
|
d: e[0],
|
|
51
50
|
"fill-opacity": e[1]
|
|
52
|
-
}, null) :
|
|
51
|
+
}, null) : c("path", {
|
|
53
52
|
d: e
|
|
54
|
-
}, null)) :
|
|
55
|
-
d:
|
|
53
|
+
}, null)) : c("path", {
|
|
54
|
+
d: t.icon
|
|
56
55
|
}, null)])]
|
|
57
56
|
});
|
|
58
57
|
}
|
|
59
58
|
});
|
|
60
|
-
|
|
59
|
+
l({
|
|
61
60
|
name: "VLigatureIcon",
|
|
62
|
-
props:
|
|
63
|
-
setup(
|
|
64
|
-
return () =>
|
|
65
|
-
default: () => [
|
|
61
|
+
props: s(),
|
|
62
|
+
setup(t) {
|
|
63
|
+
return () => i(t.tag, null, {
|
|
64
|
+
default: () => [t.icon]
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
|
-
|
|
68
|
+
l({
|
|
70
69
|
name: "VClassIcon",
|
|
71
|
-
props:
|
|
72
|
-
setup(
|
|
73
|
-
return () =>
|
|
74
|
-
class:
|
|
70
|
+
props: s(),
|
|
71
|
+
setup(t) {
|
|
72
|
+
return () => i(t.tag, {
|
|
73
|
+
class: d(t.icon)
|
|
75
74
|
}, null);
|
|
76
75
|
}
|
|
77
76
|
});
|
|
77
|
+
const O = (t) => {
|
|
78
|
+
const o = y(w);
|
|
79
|
+
if (!o)
|
|
80
|
+
throw new Error("Missing Vuetify Icons provide!");
|
|
81
|
+
return {
|
|
82
|
+
iconData: I(() => {
|
|
83
|
+
var u;
|
|
84
|
+
const e = V(t);
|
|
85
|
+
if (!e)
|
|
86
|
+
return {
|
|
87
|
+
component: m
|
|
88
|
+
};
|
|
89
|
+
let n = e;
|
|
90
|
+
if (typeof n == "string" && (n = n.trim(), n.startsWith("$") && (n = (u = o.aliases) == null ? void 0 : u[n.slice(1)])), n || A(`Could not find aliased icon "${e}"`), Array.isArray(n))
|
|
91
|
+
return {
|
|
92
|
+
component: C,
|
|
93
|
+
icon: n
|
|
94
|
+
};
|
|
95
|
+
if (typeof n != "string")
|
|
96
|
+
return {
|
|
97
|
+
component: m,
|
|
98
|
+
icon: n
|
|
99
|
+
};
|
|
100
|
+
const a = Object.keys(o.sets).find((p) => typeof n == "string" && n.startsWith(`${p}:`)), f = a ? n.slice(a.length + 1) : n;
|
|
101
|
+
return {
|
|
102
|
+
component: o.sets[a ?? o.defaultSet].component,
|
|
103
|
+
icon: f
|
|
104
|
+
};
|
|
105
|
+
})
|
|
106
|
+
};
|
|
107
|
+
};
|
|
78
108
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
109
|
+
w as IconSymbol,
|
|
110
|
+
h as IconValue,
|
|
111
|
+
m as VComponentIcon,
|
|
112
|
+
C as VSvgIcon,
|
|
113
|
+
s as makeIconProps,
|
|
114
|
+
O as useIcon
|
|
82
115
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ref as f, shallowRef as v, onScopeDispose as p, watch as I } from "vue";
|
|
2
|
+
import { SUPPORTS_INTERSECTION as c } from "../util/globals.mjs";
|
|
3
|
+
function O(o, i) {
|
|
4
|
+
const t = f(), r = v(!1);
|
|
5
|
+
if (c) {
|
|
6
|
+
const s = new IntersectionObserver((e) => {
|
|
7
|
+
o == null || o(e, s), r.value = !!e.find((n) => n.isIntersecting);
|
|
8
|
+
}, i);
|
|
9
|
+
p(() => {
|
|
10
|
+
s.disconnect();
|
|
11
|
+
}), I(t, (e, n) => {
|
|
12
|
+
n && (s.unobserve(n), r.value = !1), e && s.observe(e);
|
|
13
|
+
}, {
|
|
14
|
+
flush: "post"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
intersectionRef: t,
|
|
19
|
+
isIntersecting: r
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
O as useIntersectionObserver
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { shallowRef as n, toRef as f, watch as l } from "vue";
|
|
2
|
+
import { propsFactory as s } from "../util/propsFactory.mjs";
|
|
3
|
+
const i = s({
|
|
4
|
+
eager: Boolean
|
|
5
|
+
}, "lazy");
|
|
6
|
+
function m(o, a) {
|
|
7
|
+
const e = n(!1), t = f(() => e.value || o.eager || a.value);
|
|
8
|
+
l(a, () => e.value = !0);
|
|
9
|
+
function r() {
|
|
10
|
+
o.eager || (e.value = !1);
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
isBooted: e,
|
|
14
|
+
hasContent: t,
|
|
15
|
+
onAfterLeave: r
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
i as makeLazyProps,
|
|
20
|
+
m as useLazy
|
|
21
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
import { propsFactory as t } from "../util/propsFactory.mjs";
|
|
3
|
+
const o = t({
|
|
4
|
+
items: {
|
|
5
|
+
type: Array,
|
|
6
|
+
default: () => []
|
|
7
|
+
},
|
|
8
|
+
itemTitle: {
|
|
9
|
+
type: [String, Array, Function],
|
|
10
|
+
default: "title"
|
|
11
|
+
},
|
|
12
|
+
itemValue: {
|
|
13
|
+
type: [String, Array, Function],
|
|
14
|
+
default: "value"
|
|
15
|
+
},
|
|
16
|
+
itemChildren: {
|
|
17
|
+
type: [Boolean, String, Array, Function],
|
|
18
|
+
default: "children"
|
|
19
|
+
},
|
|
20
|
+
itemProps: {
|
|
21
|
+
type: [Boolean, String, Array, Function],
|
|
22
|
+
default: "props"
|
|
23
|
+
},
|
|
24
|
+
itemType: {
|
|
25
|
+
type: [Boolean, String, Array, Function],
|
|
26
|
+
default: "type"
|
|
27
|
+
},
|
|
28
|
+
returnObject: Boolean,
|
|
29
|
+
valueComparator: Function
|
|
30
|
+
}, "list-items");
|
|
31
|
+
export {
|
|
32
|
+
o as makeItemsProps
|
|
33
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { toRef as a, createElementVNode as n, normalizeClass as l, createVNode as i } from "vue";
|
|
2
|
+
import { VProgressLinear as m } from "../components/VProgressLinear/VProgressLinear.mjs";
|
|
3
|
+
import { propsFactory as c } from "../util/propsFactory.mjs";
|
|
4
|
+
import { getCurrentInstanceName as d } from "../util/getCurrentInstance.mjs";
|
|
5
|
+
const v = c({
|
|
6
|
+
loading: [Boolean, String]
|
|
7
|
+
}, "loader");
|
|
8
|
+
function C(e) {
|
|
9
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d();
|
|
10
|
+
return {
|
|
11
|
+
loaderClasses: a(() => ({
|
|
12
|
+
[`${t}--loading`]: e.loading
|
|
13
|
+
}))
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function L(e, t) {
|
|
17
|
+
var r;
|
|
18
|
+
let {
|
|
19
|
+
slots: o
|
|
20
|
+
} = t;
|
|
21
|
+
return n("div", {
|
|
22
|
+
class: l(`${e.name}__loader`)
|
|
23
|
+
}, [((r = o.default) == null ? void 0 : r.call(o, {
|
|
24
|
+
color: e.color,
|
|
25
|
+
isActive: e.active
|
|
26
|
+
})) || i(m, {
|
|
27
|
+
absolute: e.absolute,
|
|
28
|
+
active: e.active,
|
|
29
|
+
color: e.color,
|
|
30
|
+
height: "2",
|
|
31
|
+
indeterminate: !0
|
|
32
|
+
}, null)]);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
L as LoaderSlot,
|
|
36
|
+
v as makeLoaderProps,
|
|
37
|
+
C as useLoader
|
|
38
|
+
};
|