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,248 @@
|
|
|
1
|
+
import { shallowRef as g, ref as L, computed as V, watch as b, onBeforeMount as D, nextTick as $, onBeforeUnmount as G, toRef as J, withDirectives as B, createVNode as i, mergeProps as K, createElementVNode as c, Fragment as Q, normalizeClass as U, vShow as X } from "vue";
|
|
2
|
+
import "../../../../../../../_virtual/VImg.sass.mjs";
|
|
3
|
+
import { makeVResponsiveProps as Y, VResponsive as N } from "../VResponsive/VResponsive.mjs";
|
|
4
|
+
import { useBackgroundColor as Z } from "../../composables/color.mjs";
|
|
5
|
+
import { makeComponentProps as p } from "../../composables/component.mjs";
|
|
6
|
+
import { makeRoundedProps as ee, useRounded as re } from "../../composables/rounded.mjs";
|
|
7
|
+
import { makeTransitionProps as te, MaybeTransition as S } from "../../composables/transition.mjs";
|
|
8
|
+
import W from "../../directives/intersect/index.mjs";
|
|
9
|
+
import { propsFactory as ae } from "../../util/propsFactory.mjs";
|
|
10
|
+
import { genericComponent as ne } from "../../util/defineComponent.mjs";
|
|
11
|
+
import { getCurrentInstance as le } from "../../util/getCurrentInstance.mjs";
|
|
12
|
+
import { SUPPORTS_INTERSECTION as ie } from "../../util/globals.mjs";
|
|
13
|
+
import { useRender as oe } from "../../util/useRender.mjs";
|
|
14
|
+
import { convertToUnit as ue } from "../../util/helpers.mjs";
|
|
15
|
+
const ce = ae({
|
|
16
|
+
absolute: Boolean,
|
|
17
|
+
alt: String,
|
|
18
|
+
cover: Boolean,
|
|
19
|
+
color: String,
|
|
20
|
+
draggable: {
|
|
21
|
+
type: [Boolean, String],
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
eager: Boolean,
|
|
25
|
+
gradient: String,
|
|
26
|
+
imageClass: null,
|
|
27
|
+
lazySrc: String,
|
|
28
|
+
options: {
|
|
29
|
+
type: Object,
|
|
30
|
+
// For more information on types, navigate to:
|
|
31
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
|
|
32
|
+
default: () => ({
|
|
33
|
+
root: void 0,
|
|
34
|
+
rootMargin: void 0,
|
|
35
|
+
threshold: void 0
|
|
36
|
+
})
|
|
37
|
+
},
|
|
38
|
+
sizes: String,
|
|
39
|
+
src: {
|
|
40
|
+
type: [String, Object],
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
crossorigin: String,
|
|
44
|
+
referrerpolicy: String,
|
|
45
|
+
srcset: String,
|
|
46
|
+
position: String,
|
|
47
|
+
...Y(),
|
|
48
|
+
...p(),
|
|
49
|
+
...ee(),
|
|
50
|
+
...te()
|
|
51
|
+
}, "VImg"), Ie = ne()({
|
|
52
|
+
name: "VImg",
|
|
53
|
+
directives: {
|
|
54
|
+
vIntersect: W
|
|
55
|
+
},
|
|
56
|
+
props: ce(),
|
|
57
|
+
emits: {
|
|
58
|
+
loadstart: (e) => !0,
|
|
59
|
+
load: (e) => !0,
|
|
60
|
+
error: (e) => !0
|
|
61
|
+
},
|
|
62
|
+
setup(e, j) {
|
|
63
|
+
let {
|
|
64
|
+
emit: _,
|
|
65
|
+
slots: o
|
|
66
|
+
} = j;
|
|
67
|
+
const {
|
|
68
|
+
backgroundColorClasses: E,
|
|
69
|
+
backgroundColorStyles: F
|
|
70
|
+
} = Z(() => e.color), {
|
|
71
|
+
roundedClasses: O
|
|
72
|
+
} = re(e), v = le("VImg"), z = g(""), n = L(), a = g(e.eager ? "loading" : "idle"), s = g(), f = g(), l = V(() => e.src && typeof e.src == "object" ? {
|
|
73
|
+
src: e.src.src,
|
|
74
|
+
srcset: e.srcset || e.src.srcset,
|
|
75
|
+
lazySrc: e.lazySrc || e.src.lazySrc,
|
|
76
|
+
aspect: Number(e.aspectRatio || e.src.aspect || 0)
|
|
77
|
+
} : {
|
|
78
|
+
src: e.src,
|
|
79
|
+
srcset: e.srcset,
|
|
80
|
+
lazySrc: e.lazySrc,
|
|
81
|
+
aspect: Number(e.aspectRatio || 0)
|
|
82
|
+
}), m = V(() => l.value.aspect || s.value / f.value || 0);
|
|
83
|
+
b(() => e.src, () => {
|
|
84
|
+
y(a.value !== "idle");
|
|
85
|
+
}), b(m, (r, t) => {
|
|
86
|
+
!r && t && n.value && d(n.value);
|
|
87
|
+
}), D(() => y());
|
|
88
|
+
function y(r) {
|
|
89
|
+
if (!(e.eager && r) && !(ie && !r && !e.eager)) {
|
|
90
|
+
if (a.value = "loading", l.value.lazySrc) {
|
|
91
|
+
const t = new Image();
|
|
92
|
+
t.src = l.value.lazySrc, d(t, null);
|
|
93
|
+
}
|
|
94
|
+
l.value.src && $(() => {
|
|
95
|
+
var t;
|
|
96
|
+
_("loadstart", ((t = n.value) == null ? void 0 : t.currentSrc) || l.value.src), setTimeout(() => {
|
|
97
|
+
var u;
|
|
98
|
+
if (!v.isUnmounted)
|
|
99
|
+
if ((u = n.value) != null && u.complete) {
|
|
100
|
+
if (n.value.naturalWidth || R(), a.value === "error")
|
|
101
|
+
return;
|
|
102
|
+
m.value || d(n.value, null), a.value === "loading" && C();
|
|
103
|
+
} else
|
|
104
|
+
m.value || d(n.value), I();
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function C() {
|
|
110
|
+
var r;
|
|
111
|
+
v.isUnmounted || (I(), d(n.value), a.value = "loaded", _("load", ((r = n.value) == null ? void 0 : r.currentSrc) || l.value.src));
|
|
112
|
+
}
|
|
113
|
+
function R() {
|
|
114
|
+
var r;
|
|
115
|
+
v.isUnmounted || (a.value = "error", _("error", ((r = n.value) == null ? void 0 : r.currentSrc) || l.value.src));
|
|
116
|
+
}
|
|
117
|
+
function I() {
|
|
118
|
+
const r = n.value;
|
|
119
|
+
r && (z.value = r.currentSrc || r.src);
|
|
120
|
+
}
|
|
121
|
+
let h = -1;
|
|
122
|
+
G(() => {
|
|
123
|
+
clearTimeout(h);
|
|
124
|
+
});
|
|
125
|
+
function d(r) {
|
|
126
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 100;
|
|
127
|
+
const u = () => {
|
|
128
|
+
if (clearTimeout(h), v.isUnmounted)
|
|
129
|
+
return;
|
|
130
|
+
const {
|
|
131
|
+
naturalHeight: T,
|
|
132
|
+
naturalWidth: k
|
|
133
|
+
} = r;
|
|
134
|
+
T || k ? (s.value = k, f.value = T) : !r.complete && a.value === "loading" && t != null ? h = window.setTimeout(u, t) : (r.currentSrc.endsWith(".svg") || r.currentSrc.startsWith("data:image/svg+xml")) && (s.value = 1, f.value = 1);
|
|
135
|
+
};
|
|
136
|
+
u();
|
|
137
|
+
}
|
|
138
|
+
const P = J(() => ({
|
|
139
|
+
"v-img__img--cover": e.cover,
|
|
140
|
+
"v-img__img--contain": !e.cover
|
|
141
|
+
})), x = () => {
|
|
142
|
+
var u;
|
|
143
|
+
if (!l.value.src || a.value === "idle")
|
|
144
|
+
return null;
|
|
145
|
+
const r = c("img", {
|
|
146
|
+
class: U(["v-img__img", P.value, e.imageClass]),
|
|
147
|
+
style: {
|
|
148
|
+
objectPosition: e.position
|
|
149
|
+
},
|
|
150
|
+
crossorigin: e.crossorigin,
|
|
151
|
+
src: l.value.src,
|
|
152
|
+
srcset: l.value.srcset,
|
|
153
|
+
alt: e.alt,
|
|
154
|
+
referrerpolicy: e.referrerpolicy,
|
|
155
|
+
draggable: e.draggable,
|
|
156
|
+
sizes: e.sizes,
|
|
157
|
+
ref: n,
|
|
158
|
+
onLoad: C,
|
|
159
|
+
onError: R
|
|
160
|
+
}, null), t = (u = o.sources) == null ? void 0 : u.call(o);
|
|
161
|
+
return i(S, {
|
|
162
|
+
transition: e.transition,
|
|
163
|
+
appear: !0
|
|
164
|
+
}, {
|
|
165
|
+
default: () => [B(t ? c("picture", {
|
|
166
|
+
class: "v-img__picture"
|
|
167
|
+
}, [t, r]) : r, [[X, a.value === "loaded"]])]
|
|
168
|
+
});
|
|
169
|
+
}, H = () => i(S, {
|
|
170
|
+
transition: e.transition
|
|
171
|
+
}, {
|
|
172
|
+
default: () => [l.value.lazySrc && a.value !== "loaded" && c("img", {
|
|
173
|
+
class: U(["v-img__img", "v-img__img--preload", P.value]),
|
|
174
|
+
style: {
|
|
175
|
+
objectPosition: e.position
|
|
176
|
+
},
|
|
177
|
+
crossorigin: e.crossorigin,
|
|
178
|
+
src: l.value.lazySrc,
|
|
179
|
+
alt: e.alt,
|
|
180
|
+
referrerpolicy: e.referrerpolicy,
|
|
181
|
+
draggable: e.draggable
|
|
182
|
+
}, null)]
|
|
183
|
+
}), M = () => o.placeholder ? i(S, {
|
|
184
|
+
transition: e.transition,
|
|
185
|
+
appear: !0
|
|
186
|
+
}, {
|
|
187
|
+
default: () => [(a.value === "loading" || a.value === "error" && !o.error) && c("div", {
|
|
188
|
+
class: "v-img__placeholder"
|
|
189
|
+
}, [o.placeholder()])]
|
|
190
|
+
}) : null, q = () => o.error ? i(S, {
|
|
191
|
+
transition: e.transition,
|
|
192
|
+
appear: !0
|
|
193
|
+
}, {
|
|
194
|
+
default: () => [a.value === "error" && c("div", {
|
|
195
|
+
class: "v-img__error"
|
|
196
|
+
}, [o.error()])]
|
|
197
|
+
}) : null, A = () => e.gradient ? c("div", {
|
|
198
|
+
class: "v-img__gradient",
|
|
199
|
+
style: {
|
|
200
|
+
backgroundImage: `linear-gradient(${e.gradient})`
|
|
201
|
+
}
|
|
202
|
+
}, null) : null, w = g(!1);
|
|
203
|
+
{
|
|
204
|
+
const r = b(m, (t) => {
|
|
205
|
+
t && (requestAnimationFrame(() => {
|
|
206
|
+
requestAnimationFrame(() => {
|
|
207
|
+
w.value = !0;
|
|
208
|
+
});
|
|
209
|
+
}), r());
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
return oe(() => {
|
|
213
|
+
const r = N.filterProps(e);
|
|
214
|
+
return B(i(N, K({
|
|
215
|
+
class: ["v-img", {
|
|
216
|
+
"v-img--absolute": e.absolute,
|
|
217
|
+
"v-img--booting": !w.value,
|
|
218
|
+
"v-img--fit-content": e.width === "fit-content"
|
|
219
|
+
}, E.value, O.value, e.class],
|
|
220
|
+
style: [{
|
|
221
|
+
width: ue(e.width === "auto" ? s.value : e.width)
|
|
222
|
+
}, F.value, e.style]
|
|
223
|
+
}, r, {
|
|
224
|
+
aspectRatio: m.value,
|
|
225
|
+
"aria-label": e.alt,
|
|
226
|
+
role: e.alt ? "img" : void 0
|
|
227
|
+
}), {
|
|
228
|
+
additional: () => c(Q, null, [i(x, null, null), i(H, null, null), i(A, null, null), i(M, null, null), i(q, null, null)]),
|
|
229
|
+
default: o.default
|
|
230
|
+
}), [[W, {
|
|
231
|
+
handler: y,
|
|
232
|
+
options: e.options
|
|
233
|
+
}, null, {
|
|
234
|
+
once: !0
|
|
235
|
+
}]]);
|
|
236
|
+
}), {
|
|
237
|
+
currentSrc: z,
|
|
238
|
+
image: n,
|
|
239
|
+
state: a,
|
|
240
|
+
naturalWidth: s,
|
|
241
|
+
naturalHeight: f
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
export {
|
|
246
|
+
Ie as VImg,
|
|
247
|
+
ce as makeVImgProps
|
|
248
|
+
};
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { toRef as a, useId as Y, watch as Z, shallowRef as p, ref as ee, computed as te, createVNode as N, normalizeClass as ne, normalizeStyle as ae } from "vue";
|
|
2
|
+
import "../../../../../../../_virtual/VList.sass.mjs";
|
|
3
|
+
import { VListChildren as ie } from "./VListChildren.mjs";
|
|
4
|
+
import { createList as oe } from "./list.mjs";
|
|
5
|
+
import { makeBorderProps as le, useBorder as re } from "../../composables/border.mjs";
|
|
6
|
+
import { useBackgroundColor as se } from "../../composables/color.mjs";
|
|
7
|
+
import { makeComponentProps as ue } from "../../composables/component.mjs";
|
|
8
|
+
import { provideDefaults as ce } from "../../composables/defaults.mjs";
|
|
9
|
+
import { makeDensityProps as de, useDensity as me } from "../../composables/density.mjs";
|
|
10
|
+
import { makeDimensionProps as ve, useDimension as fe } from "../../composables/dimensions.mjs";
|
|
11
|
+
import { makeElevationProps as ge, useElevation as ye } from "../../composables/elevation.mjs";
|
|
12
|
+
import { IconValue as V } from "../../composables/icons.mjs";
|
|
13
|
+
import { makeItemsProps as be } from "../../composables/list-items.mjs";
|
|
14
|
+
import { makeNestedProps as ke, useNested as Ce } from "../../composables/nested/nested.mjs";
|
|
15
|
+
import { useProxiedModel as Se } from "../../composables/proxiedModel.mjs";
|
|
16
|
+
import { makeRoundedProps as xe, useRounded as Ie } from "../../composables/rounded.mjs";
|
|
17
|
+
import { makeTagProps as he } from "../../composables/tag.mjs";
|
|
18
|
+
import { makeThemeProps as Pe, provideTheme as we } from "../../composables/theme.mjs";
|
|
19
|
+
import { makeVariantProps as Te } from "../../composables/variant.mjs";
|
|
20
|
+
import { EventProp as C, focusChild as Ne, convertToUnit as B, isPrimitive as F, getPropertyFromItem as v, omit as Ve } from "../../util/helpers.mjs";
|
|
21
|
+
import { propsFactory as Be } from "../../util/propsFactory.mjs";
|
|
22
|
+
import { genericComponent as Fe } from "../../util/defineComponent.mjs";
|
|
23
|
+
import { useRender as Le } from "../../util/useRender.mjs";
|
|
24
|
+
const De = /* @__PURE__ */ new Set(["item", "divider", "subheader"]);
|
|
25
|
+
function Ee(e, i) {
|
|
26
|
+
const s = F(i) ? i : v(i, e.itemTitle), c = F(i) ? i : v(i, e.itemValue, void 0), y = v(i, e.itemChildren), r = e.itemProps === !0 ? Ve(i, ["children"]) : v(i, e.itemProps);
|
|
27
|
+
let u = v(i, e.itemType, "item");
|
|
28
|
+
De.has(u) || (u = "item");
|
|
29
|
+
const d = {
|
|
30
|
+
title: s,
|
|
31
|
+
value: c,
|
|
32
|
+
...r
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
type: u,
|
|
36
|
+
title: d.title,
|
|
37
|
+
value: d.value,
|
|
38
|
+
props: d,
|
|
39
|
+
children: u === "item" && y ? L(e, y) : void 0,
|
|
40
|
+
raw: i
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function L(e, i) {
|
|
44
|
+
const s = [];
|
|
45
|
+
for (const c of i)
|
|
46
|
+
s.push(Ee(e, c));
|
|
47
|
+
return s;
|
|
48
|
+
}
|
|
49
|
+
function Re(e) {
|
|
50
|
+
return {
|
|
51
|
+
items: te(() => L(e, e.items))
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const Ae = Be({
|
|
55
|
+
baseColor: String,
|
|
56
|
+
/* @deprecated */
|
|
57
|
+
activeColor: String,
|
|
58
|
+
activeClass: String,
|
|
59
|
+
bgColor: String,
|
|
60
|
+
disabled: Boolean,
|
|
61
|
+
filterable: Boolean,
|
|
62
|
+
expandIcon: V,
|
|
63
|
+
collapseIcon: V,
|
|
64
|
+
lines: {
|
|
65
|
+
type: [Boolean, String],
|
|
66
|
+
default: "one"
|
|
67
|
+
},
|
|
68
|
+
slim: Boolean,
|
|
69
|
+
prependGap: [Number, String],
|
|
70
|
+
indent: [Number, String],
|
|
71
|
+
nav: Boolean,
|
|
72
|
+
navigationStrategy: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: "focus"
|
|
75
|
+
},
|
|
76
|
+
navigationIndex: Number,
|
|
77
|
+
"onClick:open": C(),
|
|
78
|
+
"onClick:select": C(),
|
|
79
|
+
"onUpdate:opened": C(),
|
|
80
|
+
...ke({
|
|
81
|
+
selectStrategy: "single-leaf",
|
|
82
|
+
openStrategy: "list"
|
|
83
|
+
}),
|
|
84
|
+
...le(),
|
|
85
|
+
...ue(),
|
|
86
|
+
...de(),
|
|
87
|
+
...ve(),
|
|
88
|
+
...ge(),
|
|
89
|
+
...be(),
|
|
90
|
+
...xe(),
|
|
91
|
+
...he(),
|
|
92
|
+
...Pe(),
|
|
93
|
+
...Te({
|
|
94
|
+
variant: "text"
|
|
95
|
+
})
|
|
96
|
+
}, "VList"), ot = Fe()({
|
|
97
|
+
name: "VList",
|
|
98
|
+
props: Ae(),
|
|
99
|
+
emits: {
|
|
100
|
+
"update:selected": (e) => !0,
|
|
101
|
+
"update:activated": (e) => !0,
|
|
102
|
+
"update:opened": (e) => !0,
|
|
103
|
+
"update:navigationIndex": (e) => !0,
|
|
104
|
+
"click:open": (e) => !0,
|
|
105
|
+
"click:activate": (e) => !0,
|
|
106
|
+
"click:select": (e) => !0
|
|
107
|
+
},
|
|
108
|
+
setup(e, i) {
|
|
109
|
+
let {
|
|
110
|
+
attrs: s,
|
|
111
|
+
slots: c,
|
|
112
|
+
emit: y
|
|
113
|
+
} = i;
|
|
114
|
+
const {
|
|
115
|
+
items: r
|
|
116
|
+
} = Re(e), {
|
|
117
|
+
themeClasses: u
|
|
118
|
+
} = we(e), {
|
|
119
|
+
backgroundColorClasses: d,
|
|
120
|
+
backgroundColorStyles: D
|
|
121
|
+
} = se(() => e.bgColor), {
|
|
122
|
+
borderClasses: E
|
|
123
|
+
} = re(e), {
|
|
124
|
+
densityClasses: R
|
|
125
|
+
} = me(e), {
|
|
126
|
+
dimensionStyles: A
|
|
127
|
+
} = fe(e), {
|
|
128
|
+
elevationClasses: G
|
|
129
|
+
} = ye(e), {
|
|
130
|
+
roundedClasses: M
|
|
131
|
+
} = Ie(e), {
|
|
132
|
+
children: j,
|
|
133
|
+
open: O,
|
|
134
|
+
parents: U,
|
|
135
|
+
select: $,
|
|
136
|
+
getPath: z
|
|
137
|
+
} = Ce(e, {
|
|
138
|
+
items: r,
|
|
139
|
+
returnObject: a(() => e.returnObject),
|
|
140
|
+
scrollToActive: a(() => e.navigationStrategy === "track")
|
|
141
|
+
}), H = a(() => e.lines ? `v-list--${e.lines}-line` : void 0), S = a(() => e.activeColor), x = a(() => e.baseColor), I = a(() => e.color), h = a(() => e.selectable || e.activatable), l = Se(e, "navigationIndex", -1, (t) => t ?? -1), P = Y();
|
|
142
|
+
oe({
|
|
143
|
+
filterable: e.filterable,
|
|
144
|
+
trackingIndex: l,
|
|
145
|
+
navigationStrategy: a(() => e.navigationStrategy),
|
|
146
|
+
uid: P
|
|
147
|
+
}), Z(r, () => {
|
|
148
|
+
e.navigationStrategy === "track" && (l.value = -1);
|
|
149
|
+
}), ce({
|
|
150
|
+
VListGroup: {
|
|
151
|
+
activeColor: S,
|
|
152
|
+
baseColor: x,
|
|
153
|
+
color: I,
|
|
154
|
+
expandIcon: a(() => e.expandIcon),
|
|
155
|
+
collapseIcon: a(() => e.collapseIcon)
|
|
156
|
+
},
|
|
157
|
+
VListItem: {
|
|
158
|
+
activeClass: a(() => e.activeClass),
|
|
159
|
+
activeColor: S,
|
|
160
|
+
baseColor: x,
|
|
161
|
+
color: I,
|
|
162
|
+
density: a(() => e.density),
|
|
163
|
+
disabled: a(() => e.disabled),
|
|
164
|
+
lines: a(() => e.lines),
|
|
165
|
+
nav: a(() => e.nav),
|
|
166
|
+
slim: a(() => e.slim),
|
|
167
|
+
variant: a(() => e.variant),
|
|
168
|
+
tabindex: a(() => e.navigationStrategy === "track" ? -1 : void 0)
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
const f = p(!1), m = ee();
|
|
172
|
+
function K(t) {
|
|
173
|
+
f.value = !0;
|
|
174
|
+
}
|
|
175
|
+
function W(t) {
|
|
176
|
+
f.value = !1;
|
|
177
|
+
}
|
|
178
|
+
function X(t) {
|
|
179
|
+
var o;
|
|
180
|
+
e.navigationStrategy === "track" ? ~l.value || (l.value = w("first")) : !f.value && !(t.relatedTarget && ((o = m.value) != null && o.contains(t.relatedTarget))) && b();
|
|
181
|
+
}
|
|
182
|
+
function _() {
|
|
183
|
+
e.navigationStrategy === "track" && (l.value = -1);
|
|
184
|
+
}
|
|
185
|
+
function q(t) {
|
|
186
|
+
switch (t) {
|
|
187
|
+
case "ArrowDown":
|
|
188
|
+
return "next";
|
|
189
|
+
case "ArrowUp":
|
|
190
|
+
return "prev";
|
|
191
|
+
case "Home":
|
|
192
|
+
return "first";
|
|
193
|
+
case "End":
|
|
194
|
+
return "last";
|
|
195
|
+
default:
|
|
196
|
+
return null;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
function w(t) {
|
|
200
|
+
const o = r.value.length;
|
|
201
|
+
if (o === 0)
|
|
202
|
+
return -1;
|
|
203
|
+
let n;
|
|
204
|
+
t === "first" ? n = 0 : t === "last" ? n = o - 1 : (n = l.value + (t === "next" ? 1 : -1), n < 0 && (n = o - 1), n >= o && (n = 0));
|
|
205
|
+
const g = n;
|
|
206
|
+
let T = 0;
|
|
207
|
+
for (; T < o; ) {
|
|
208
|
+
const k = r.value[n];
|
|
209
|
+
if (k && k.type !== "divider" && k.type !== "subheader")
|
|
210
|
+
return n;
|
|
211
|
+
if (n += t === "next" || t === "first" ? 1 : -1, n < 0 && (n = o - 1), n >= o && (n = 0), n === g)
|
|
212
|
+
return -1;
|
|
213
|
+
T++;
|
|
214
|
+
}
|
|
215
|
+
return -1;
|
|
216
|
+
}
|
|
217
|
+
function J(t) {
|
|
218
|
+
const o = t.target;
|
|
219
|
+
if (!m.value || o.tagName === "INPUT" && ["Home", "End"].includes(t.key) || o.tagName === "TEXTAREA")
|
|
220
|
+
return;
|
|
221
|
+
const n = q(t.key);
|
|
222
|
+
if (n !== null)
|
|
223
|
+
if (t.preventDefault(), e.navigationStrategy === "track") {
|
|
224
|
+
const g = w(n);
|
|
225
|
+
g !== -1 && (l.value = g);
|
|
226
|
+
} else
|
|
227
|
+
b(n);
|
|
228
|
+
}
|
|
229
|
+
function Q(t) {
|
|
230
|
+
f.value = !0;
|
|
231
|
+
}
|
|
232
|
+
function b(t) {
|
|
233
|
+
if (m.value)
|
|
234
|
+
return Ne(m.value, t);
|
|
235
|
+
}
|
|
236
|
+
return Le(() => {
|
|
237
|
+
const t = e.indent ?? (e.prependGap ? Number(e.prependGap) + 24 : void 0), o = h.value ? s.ariaMultiselectable ?? !String(e.selectStrategy).startsWith("single-") : void 0;
|
|
238
|
+
return N(e.tag, {
|
|
239
|
+
ref: m,
|
|
240
|
+
class: ne(["v-list", {
|
|
241
|
+
"v-list--disabled": e.disabled,
|
|
242
|
+
"v-list--nav": e.nav,
|
|
243
|
+
"v-list--slim": e.slim
|
|
244
|
+
}, u.value, d.value, E.value, R.value, G.value, H.value, M.value, e.class]),
|
|
245
|
+
style: ae([{
|
|
246
|
+
"--v-list-indent": B(t),
|
|
247
|
+
"--v-list-group-prepend": t ? "0px" : void 0,
|
|
248
|
+
"--v-list-prepend-gap": B(e.prependGap)
|
|
249
|
+
}, D.value, A.value, e.style]),
|
|
250
|
+
tabindex: e.disabled ? -1 : 0,
|
|
251
|
+
role: h.value ? "listbox" : "list",
|
|
252
|
+
"aria-activedescendant": e.navigationStrategy === "track" && l.value >= 0 ? `v-list-item-${P}-${l.value}` : void 0,
|
|
253
|
+
"aria-multiselectable": o,
|
|
254
|
+
onFocusin: K,
|
|
255
|
+
onFocusout: W,
|
|
256
|
+
onFocus: X,
|
|
257
|
+
onBlur: _,
|
|
258
|
+
onKeydown: J,
|
|
259
|
+
onMousedown: Q
|
|
260
|
+
}, {
|
|
261
|
+
default: () => [N(ie, {
|
|
262
|
+
items: r.value,
|
|
263
|
+
returnObject: e.returnObject
|
|
264
|
+
}, c)]
|
|
265
|
+
});
|
|
266
|
+
}), {
|
|
267
|
+
open: O,
|
|
268
|
+
select: $,
|
|
269
|
+
focus: b,
|
|
270
|
+
children: j,
|
|
271
|
+
parents: U,
|
|
272
|
+
getPath: z,
|
|
273
|
+
navigationIndex: l
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
export {
|
|
278
|
+
ot as VList,
|
|
279
|
+
Ae as makeVListProps,
|
|
280
|
+
Re as useListItems
|
|
281
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { createVNode as p, mergeProps as d } from "vue";
|
|
2
|
+
import { VListGroup as V } from "./VListGroup.mjs";
|
|
3
|
+
import { VListItem as L } from "./VListItem.mjs";
|
|
4
|
+
import { VListSubheader as C } from "./VListSubheader.mjs";
|
|
5
|
+
import { createList as I } from "./list.mjs";
|
|
6
|
+
import { VDivider as y } from "../VDivider/VDivider.mjs";
|
|
7
|
+
import { genericComponent as P } from "../../util/defineComponent.mjs";
|
|
8
|
+
import { propsFactory as g } from "../../util/propsFactory.mjs";
|
|
9
|
+
const w = g({
|
|
10
|
+
items: Array,
|
|
11
|
+
returnObject: Boolean
|
|
12
|
+
}, "VListChildren"), G = P()({
|
|
13
|
+
name: "VListChildren",
|
|
14
|
+
props: w(),
|
|
15
|
+
setup(u, s) {
|
|
16
|
+
let {
|
|
17
|
+
slots: e
|
|
18
|
+
} = s;
|
|
19
|
+
return I(), () => {
|
|
20
|
+
var m, o;
|
|
21
|
+
return ((m = e.default) == null ? void 0 : m.call(e)) ?? ((o = u.items) == null ? void 0 : o.map((j, a) => {
|
|
22
|
+
var b, v;
|
|
23
|
+
let {
|
|
24
|
+
children: l,
|
|
25
|
+
props: r,
|
|
26
|
+
type: c,
|
|
27
|
+
raw: n
|
|
28
|
+
} = j;
|
|
29
|
+
if (c === "divider")
|
|
30
|
+
return ((b = e.divider) == null ? void 0 : b.call(e, {
|
|
31
|
+
props: r
|
|
32
|
+
})) ?? p(y, r, null);
|
|
33
|
+
if (c === "subheader")
|
|
34
|
+
return ((v = e.subheader) == null ? void 0 : v.call(e, {
|
|
35
|
+
props: r
|
|
36
|
+
})) ?? p(C, r, null);
|
|
37
|
+
const f = {
|
|
38
|
+
subtitle: e.subtitle ? (i) => {
|
|
39
|
+
var t;
|
|
40
|
+
return (t = e.subtitle) == null ? void 0 : t.call(e, {
|
|
41
|
+
...i,
|
|
42
|
+
item: n
|
|
43
|
+
});
|
|
44
|
+
} : void 0,
|
|
45
|
+
prepend: e.prepend ? (i) => {
|
|
46
|
+
var t;
|
|
47
|
+
return (t = e.prepend) == null ? void 0 : t.call(e, {
|
|
48
|
+
...i,
|
|
49
|
+
item: n
|
|
50
|
+
});
|
|
51
|
+
} : void 0,
|
|
52
|
+
append: e.append ? (i) => {
|
|
53
|
+
var t;
|
|
54
|
+
return (t = e.append) == null ? void 0 : t.call(e, {
|
|
55
|
+
...i,
|
|
56
|
+
item: n
|
|
57
|
+
});
|
|
58
|
+
} : void 0,
|
|
59
|
+
title: e.title ? (i) => {
|
|
60
|
+
var t;
|
|
61
|
+
return (t = e.title) == null ? void 0 : t.call(e, {
|
|
62
|
+
...i,
|
|
63
|
+
item: n
|
|
64
|
+
});
|
|
65
|
+
} : void 0
|
|
66
|
+
}, O = V.filterProps(r);
|
|
67
|
+
return l ? p(V, d(O, {
|
|
68
|
+
value: u.returnObject ? n : r == null ? void 0 : r.value,
|
|
69
|
+
rawId: r == null ? void 0 : r.value
|
|
70
|
+
}), {
|
|
71
|
+
activator: (i) => {
|
|
72
|
+
let {
|
|
73
|
+
props: t
|
|
74
|
+
} = i;
|
|
75
|
+
const h = d(r, t, {
|
|
76
|
+
value: u.returnObject ? n : r.value
|
|
77
|
+
});
|
|
78
|
+
return e.header ? e.header({
|
|
79
|
+
props: h
|
|
80
|
+
}) : p(L, d(h, {
|
|
81
|
+
index: a
|
|
82
|
+
}), f);
|
|
83
|
+
},
|
|
84
|
+
default: () => p(G, {
|
|
85
|
+
items: l,
|
|
86
|
+
returnObject: u.returnObject
|
|
87
|
+
}, e)
|
|
88
|
+
}) : e.item ? e.item({
|
|
89
|
+
props: {
|
|
90
|
+
...r,
|
|
91
|
+
index: a
|
|
92
|
+
}
|
|
93
|
+
}) : p(L, d(r, {
|
|
94
|
+
index: a,
|
|
95
|
+
value: u.returnObject ? n : r.value
|
|
96
|
+
}), f);
|
|
97
|
+
}));
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
export {
|
|
102
|
+
G as VListChildren,
|
|
103
|
+
w as makeVListChildrenProps
|
|
104
|
+
};
|