bt-core-app 2.2.4 → 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 +1 -1
package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/createTransition.mjs
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { TransitionGroup as u, Transition as g, h } from "vue";
|
|
2
|
+
import { PREFERS_REDUCED_MOTION as b } from "../../util/globals.mjs";
|
|
3
|
+
import { genericComponent as m } from "../../util/defineComponent.mjs";
|
|
4
|
+
import { propsFactory as v } from "../../util/propsFactory.mjs";
|
|
5
|
+
const c = v({
|
|
6
|
+
disabled: Boolean,
|
|
7
|
+
group: Boolean,
|
|
8
|
+
hideOnLeave: Boolean,
|
|
9
|
+
leaveAbsolute: Boolean,
|
|
10
|
+
mode: String,
|
|
11
|
+
origin: String
|
|
12
|
+
}, "transition");
|
|
13
|
+
function T(n, i, s) {
|
|
14
|
+
return m()({
|
|
15
|
+
name: n,
|
|
16
|
+
props: c({
|
|
17
|
+
mode: s,
|
|
18
|
+
origin: i
|
|
19
|
+
}),
|
|
20
|
+
setup(e, a) {
|
|
21
|
+
let {
|
|
22
|
+
slots: r
|
|
23
|
+
} = a;
|
|
24
|
+
const l = {
|
|
25
|
+
onBeforeEnter(t) {
|
|
26
|
+
e.origin && (t.style.transformOrigin = e.origin);
|
|
27
|
+
},
|
|
28
|
+
onLeave(t) {
|
|
29
|
+
if (e.leaveAbsolute) {
|
|
30
|
+
const {
|
|
31
|
+
offsetTop: o,
|
|
32
|
+
offsetLeft: d,
|
|
33
|
+
offsetWidth: f,
|
|
34
|
+
offsetHeight: y
|
|
35
|
+
} = t;
|
|
36
|
+
t._transitionInitialStyles = {
|
|
37
|
+
position: t.style.position,
|
|
38
|
+
top: t.style.top,
|
|
39
|
+
left: t.style.left,
|
|
40
|
+
width: t.style.width,
|
|
41
|
+
height: t.style.height
|
|
42
|
+
}, t.style.position = "absolute", t.style.top = `${o}px`, t.style.left = `${d}px`, t.style.width = `${f}px`, t.style.height = `${y}px`;
|
|
43
|
+
}
|
|
44
|
+
e.hideOnLeave && t.style.setProperty("display", "none", "important");
|
|
45
|
+
},
|
|
46
|
+
onAfterLeave(t) {
|
|
47
|
+
if (e.leaveAbsolute && (t != null && t._transitionInitialStyles)) {
|
|
48
|
+
const {
|
|
49
|
+
position: o,
|
|
50
|
+
top: d,
|
|
51
|
+
left: f,
|
|
52
|
+
width: y,
|
|
53
|
+
height: p
|
|
54
|
+
} = t._transitionInitialStyles;
|
|
55
|
+
delete t._transitionInitialStyles, t.style.position = o || "", t.style.top = d || "", t.style.left = f || "", t.style.width = y || "", t.style.height = p || "";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
return () => {
|
|
60
|
+
const t = e.group ? u : g;
|
|
61
|
+
return h(t, {
|
|
62
|
+
name: e.disabled ? "" : n,
|
|
63
|
+
css: !e.disabled,
|
|
64
|
+
...e.group ? void 0 : {
|
|
65
|
+
mode: e.mode
|
|
66
|
+
},
|
|
67
|
+
...e.disabled ? {} : l
|
|
68
|
+
}, r.default);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function _(n, i) {
|
|
74
|
+
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "in-out";
|
|
75
|
+
return m()({
|
|
76
|
+
name: n,
|
|
77
|
+
props: {
|
|
78
|
+
mode: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: s
|
|
81
|
+
},
|
|
82
|
+
disabled: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: b()
|
|
85
|
+
},
|
|
86
|
+
group: Boolean,
|
|
87
|
+
hideOnLeave: Boolean
|
|
88
|
+
},
|
|
89
|
+
setup(e, a) {
|
|
90
|
+
let {
|
|
91
|
+
slots: r
|
|
92
|
+
} = a;
|
|
93
|
+
const l = e.group ? u : g;
|
|
94
|
+
return () => h(l, {
|
|
95
|
+
name: e.disabled ? "" : n,
|
|
96
|
+
css: !e.disabled,
|
|
97
|
+
// mode: props.mode, // TODO: vuejs/vue-next#3104
|
|
98
|
+
...e.disabled ? {} : {
|
|
99
|
+
...i,
|
|
100
|
+
onLeave: (t) => {
|
|
101
|
+
var o;
|
|
102
|
+
e.hideOnLeave ? t.style.setProperty("display", "none", "important") : (o = i.onLeave) == null || o.call(i, t);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, r.default);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
T as createCssTransition,
|
|
111
|
+
_ as createJavascriptTransition,
|
|
112
|
+
c as makeTransitionProps
|
|
113
|
+
};
|
package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/dialog-transition.mjs
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { createVNode as v, Transition as w, mergeProps as F } from "vue";
|
|
2
|
+
import { getTargetBox as b } from "../../util/box.mjs";
|
|
3
|
+
import { animate as d, nullifyTransforms as B } from "../../util/animation.mjs";
|
|
4
|
+
import { deceleratedEasing as x, standardEasing as E, acceleratedEasing as P } from "../../util/easing.mjs";
|
|
5
|
+
import { genericComponent as O } from "../../util/defineComponent.mjs";
|
|
6
|
+
import { propsFactory as S } from "../../util/propsFactory.mjs";
|
|
7
|
+
import { PREFERS_REDUCED_MOTION as A } from "../../util/globals.mjs";
|
|
8
|
+
const V = S({
|
|
9
|
+
target: [Object, Array]
|
|
10
|
+
}, "v-dialog-transition"), y = /* @__PURE__ */ new WeakMap(), X = O()({
|
|
11
|
+
name: "VDialogTransition",
|
|
12
|
+
props: V(),
|
|
13
|
+
setup(i, a) {
|
|
14
|
+
let {
|
|
15
|
+
slots: e
|
|
16
|
+
} = a;
|
|
17
|
+
const r = {
|
|
18
|
+
onBeforeEnter(t) {
|
|
19
|
+
t.style.pointerEvents = "none", t.style.visibility = "hidden";
|
|
20
|
+
},
|
|
21
|
+
async onEnter(t, f) {
|
|
22
|
+
var m;
|
|
23
|
+
await new Promise((s) => requestAnimationFrame(s)), await new Promise((s) => requestAnimationFrame(s)), t.style.visibility = "";
|
|
24
|
+
const n = T(i.target, t), {
|
|
25
|
+
x: c,
|
|
26
|
+
y: g,
|
|
27
|
+
sx: h,
|
|
28
|
+
sy: p,
|
|
29
|
+
speed: o
|
|
30
|
+
} = n;
|
|
31
|
+
if (y.set(t, n), A())
|
|
32
|
+
d(t, [{
|
|
33
|
+
opacity: 0
|
|
34
|
+
}, {}], {
|
|
35
|
+
duration: 125 * o,
|
|
36
|
+
easing: x
|
|
37
|
+
}).finished.then(() => f());
|
|
38
|
+
else {
|
|
39
|
+
const s = d(t, [{
|
|
40
|
+
transform: `translate(${c}px, ${g}px) scale(${h}, ${p})`,
|
|
41
|
+
opacity: 0
|
|
42
|
+
}, {}], {
|
|
43
|
+
duration: 225 * o,
|
|
44
|
+
easing: x
|
|
45
|
+
});
|
|
46
|
+
(m = $(t)) == null || m.forEach((l) => {
|
|
47
|
+
d(l, [{
|
|
48
|
+
opacity: 0
|
|
49
|
+
}, {
|
|
50
|
+
opacity: 0,
|
|
51
|
+
offset: 0.33
|
|
52
|
+
}, {}], {
|
|
53
|
+
duration: 225 * 2 * o,
|
|
54
|
+
easing: E
|
|
55
|
+
});
|
|
56
|
+
}), s.finished.then(() => f());
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
onAfterEnter(t) {
|
|
60
|
+
t.style.removeProperty("pointer-events");
|
|
61
|
+
},
|
|
62
|
+
onBeforeLeave(t) {
|
|
63
|
+
t.style.pointerEvents = "none";
|
|
64
|
+
},
|
|
65
|
+
async onLeave(t, f) {
|
|
66
|
+
var m;
|
|
67
|
+
await new Promise((s) => requestAnimationFrame(s));
|
|
68
|
+
let n;
|
|
69
|
+
!y.has(t) || Array.isArray(i.target) || i.target.offsetParent || i.target.getClientRects().length ? n = T(i.target, t) : n = y.get(t);
|
|
70
|
+
const {
|
|
71
|
+
x: c,
|
|
72
|
+
y: g,
|
|
73
|
+
sx: h,
|
|
74
|
+
sy: p,
|
|
75
|
+
speed: o
|
|
76
|
+
} = n;
|
|
77
|
+
A() ? d(t, [{}, {
|
|
78
|
+
opacity: 0
|
|
79
|
+
}], {
|
|
80
|
+
duration: 85 * o,
|
|
81
|
+
easing: P
|
|
82
|
+
}).finished.then(() => f()) : (d(t, [{}, {
|
|
83
|
+
transform: `translate(${c}px, ${g}px) scale(${h}, ${p})`,
|
|
84
|
+
opacity: 0
|
|
85
|
+
}], {
|
|
86
|
+
duration: 125 * o,
|
|
87
|
+
easing: P
|
|
88
|
+
}).finished.then(() => f()), (m = $(t)) == null || m.forEach((l) => {
|
|
89
|
+
d(l, [{}, {
|
|
90
|
+
opacity: 0,
|
|
91
|
+
offset: 0.2
|
|
92
|
+
}, {
|
|
93
|
+
opacity: 0
|
|
94
|
+
}], {
|
|
95
|
+
duration: 125 * 2 * o,
|
|
96
|
+
easing: E
|
|
97
|
+
});
|
|
98
|
+
}));
|
|
99
|
+
},
|
|
100
|
+
onAfterLeave(t) {
|
|
101
|
+
t.style.removeProperty("pointer-events");
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
return () => i.target ? v(w, F({
|
|
105
|
+
name: "dialog-transition"
|
|
106
|
+
}, r, {
|
|
107
|
+
css: !1
|
|
108
|
+
}), e) : v(w, {
|
|
109
|
+
name: "dialog-transition"
|
|
110
|
+
}, e);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
function $(i) {
|
|
114
|
+
var e;
|
|
115
|
+
const a = (e = i.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")) == null ? void 0 : e.children;
|
|
116
|
+
return a && [...a];
|
|
117
|
+
}
|
|
118
|
+
function T(i, a) {
|
|
119
|
+
const e = b(i), r = B(a), [t, f] = getComputedStyle(a).transformOrigin.split(" ").map((D) => parseFloat(D)), [n, c] = getComputedStyle(a).getPropertyValue("--v-overlay-anchor-origin").split(" ");
|
|
120
|
+
let g = e.left + e.width / 2;
|
|
121
|
+
n === "left" || c === "left" ? g -= e.width / 2 : (n === "right" || c === "right") && (g += e.width / 2);
|
|
122
|
+
let h = e.top + e.height / 2;
|
|
123
|
+
n === "top" || c === "top" ? h -= e.height / 2 : (n === "bottom" || c === "bottom") && (h += e.height / 2);
|
|
124
|
+
const p = e.width / r.width, o = e.height / r.height, m = Math.max(1, p, o), s = p / m || 0, l = o / m || 0, u = r.width * r.height / (window.innerWidth * window.innerHeight), C = u > 0.12 ? Math.min(1.5, (u - 0.12) * 10 + 1) : 1;
|
|
125
|
+
return {
|
|
126
|
+
x: g - (t + r.left),
|
|
127
|
+
y: h - (f + r.top),
|
|
128
|
+
sx: s,
|
|
129
|
+
sy: l,
|
|
130
|
+
speed: C
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
X as VDialogTransition,
|
|
135
|
+
V as makeVDialogTransitionProps
|
|
136
|
+
};
|
package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/expand-transition.mjs
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
function a() {
|
|
2
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "y";
|
|
3
|
+
return {
|
|
4
|
+
onBeforeEnter(t) {
|
|
5
|
+
t._parent = t.parentNode, t._initialStyle = {
|
|
6
|
+
transition: t.style.transition,
|
|
7
|
+
overflow: t.style.overflow,
|
|
8
|
+
width: t.style.width,
|
|
9
|
+
height: t.style.height
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
onEnter(t) {
|
|
13
|
+
const e = t._initialStyle;
|
|
14
|
+
if (!e)
|
|
15
|
+
return;
|
|
16
|
+
t.style.setProperty("transition", "none", "important"), t.style.overflow = "hidden";
|
|
17
|
+
const s = `${t.offsetWidth}px`, r = `${t.offsetHeight}px`;
|
|
18
|
+
["x", "both"].includes(i) && (t.style.width = "0"), ["y", "both"].includes(i) && (t.style.height = "0"), t.offsetHeight, t.style.transition = e.transition, n && t._parent && t._parent.classList.add(n), requestAnimationFrame(() => {
|
|
19
|
+
["x", "both"].includes(i) && (t.style.width = s), ["y", "both"].includes(i) && (t.style.height = r);
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
onAfterEnter: o,
|
|
23
|
+
onEnterCancelled: o,
|
|
24
|
+
onLeave(t) {
|
|
25
|
+
t._initialStyle = {
|
|
26
|
+
transition: "",
|
|
27
|
+
overflow: t.style.overflow,
|
|
28
|
+
width: t.style.width,
|
|
29
|
+
height: t.style.height
|
|
30
|
+
}, t.style.overflow = "hidden", ["x", "both"].includes(i) && (t.style.width = `${t.offsetWidth}px`), ["y", "both"].includes(i) && (t.style.height = `${t.offsetHeight}px`), t.offsetHeight, requestAnimationFrame(() => {
|
|
31
|
+
["x", "both"].includes(i) && (t.style.width = "0"), ["y", "both"].includes(i) && (t.style.height = "0");
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
onAfterLeave: h,
|
|
35
|
+
onLeaveCancelled: h
|
|
36
|
+
};
|
|
37
|
+
function h(t) {
|
|
38
|
+
n && t._parent && t._parent.classList.remove(n), o(t);
|
|
39
|
+
}
|
|
40
|
+
function o(t) {
|
|
41
|
+
if (!t._initialStyle)
|
|
42
|
+
return;
|
|
43
|
+
const {
|
|
44
|
+
width: e,
|
|
45
|
+
height: s
|
|
46
|
+
} = t._initialStyle;
|
|
47
|
+
t.style.overflow = t._initialStyle.overflow, e != null && ["x", "both"].includes(i) && (t.style.width = e), s != null && ["y", "both"].includes(i) && (t.style.height = s), delete t._initialStyle;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
a as default
|
|
52
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createCssTransition as t, createJavascriptTransition as i } from "./createTransition.mjs";
|
|
2
|
+
import n from "./expand-transition.mjs";
|
|
3
|
+
t("fab-transition", "center center", "out-in");
|
|
4
|
+
t("dialog-bottom-transition");
|
|
5
|
+
t("dialog-top-transition");
|
|
6
|
+
t("fade-transition");
|
|
7
|
+
t("scale-transition");
|
|
8
|
+
t("scroll-x-transition");
|
|
9
|
+
t("scroll-x-reverse-transition");
|
|
10
|
+
t("scroll-y-transition");
|
|
11
|
+
t("scroll-y-reverse-transition");
|
|
12
|
+
t("slide-x-transition");
|
|
13
|
+
t("slide-x-reverse-transition");
|
|
14
|
+
t("slide-y-transition");
|
|
15
|
+
t("slide-y-reverse-transition");
|
|
16
|
+
const s = i("expand-transition", n());
|
|
17
|
+
i("expand-x-transition", n("", "x"));
|
|
18
|
+
i("expand-both-transition", n("", "both"));
|
|
19
|
+
export {
|
|
20
|
+
s as VExpandTransition
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { computed as n } from "vue";
|
|
2
|
+
import { propsFactory as s } from "../util/propsFactory.mjs";
|
|
3
|
+
import { getCurrentInstanceName as m } from "../util/getCurrentInstance.mjs";
|
|
4
|
+
const p = s({
|
|
5
|
+
border: [Boolean, Number, String]
|
|
6
|
+
}, "border");
|
|
7
|
+
function b(e) {
|
|
8
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m();
|
|
9
|
+
return {
|
|
10
|
+
borderClasses: n(() => {
|
|
11
|
+
const r = e.border;
|
|
12
|
+
return r === !0 || r === "" ? `${o}--border` : typeof r == "string" || r === 0 ? String(r).split(" ").map((t) => `border-${t}`) : [];
|
|
13
|
+
})
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
p as makeBorderProps,
|
|
18
|
+
b as useBorder
|
|
19
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { toValue as l } from "vue";
|
|
2
|
+
import { destructComputed as a } from "../util/helpers.mjs";
|
|
3
|
+
import { isCssColor as c, isParsableColor as C, parseColor as g, getForeground as d } from "../util/colorUtils.mjs";
|
|
4
|
+
function u(t) {
|
|
5
|
+
return a(() => {
|
|
6
|
+
const {
|
|
7
|
+
class: o,
|
|
8
|
+
style: r
|
|
9
|
+
} = b(t);
|
|
10
|
+
return {
|
|
11
|
+
colorClasses: o,
|
|
12
|
+
colorStyles: r
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function p(t) {
|
|
17
|
+
const {
|
|
18
|
+
colorClasses: o,
|
|
19
|
+
colorStyles: r
|
|
20
|
+
} = u(() => ({
|
|
21
|
+
text: l(t)
|
|
22
|
+
}));
|
|
23
|
+
return {
|
|
24
|
+
textColorClasses: o,
|
|
25
|
+
textColorStyles: r
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function y(t) {
|
|
29
|
+
const {
|
|
30
|
+
colorClasses: o,
|
|
31
|
+
colorStyles: r
|
|
32
|
+
} = u(() => ({
|
|
33
|
+
background: l(t)
|
|
34
|
+
}));
|
|
35
|
+
return {
|
|
36
|
+
backgroundColorClasses: o,
|
|
37
|
+
backgroundColorStyles: r
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function i(t) {
|
|
41
|
+
return {
|
|
42
|
+
text: typeof t.text == "string" ? t.text.replace(/^text-/, "") : t.text,
|
|
43
|
+
background: typeof t.background == "string" ? t.background.replace(/^bg-/, "") : t.background
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function b(t) {
|
|
47
|
+
const o = i(l(t)), r = [], e = {};
|
|
48
|
+
if (o.background)
|
|
49
|
+
if (c(o.background)) {
|
|
50
|
+
if (e.backgroundColor = o.background, !o.text && C(o.background)) {
|
|
51
|
+
const s = g(o.background);
|
|
52
|
+
if (s.a == null || s.a === 1) {
|
|
53
|
+
const n = d(s);
|
|
54
|
+
e.color = n, e.caretColor = n;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
} else
|
|
58
|
+
r.push(`bg-${o.background}`);
|
|
59
|
+
return o.text && (c(o.text) ? (e.color = o.text, e.caretColor = o.text) : r.push(`text-${o.text}`)), {
|
|
60
|
+
class: r,
|
|
61
|
+
style: e
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
b as computeColor,
|
|
66
|
+
y as useBackgroundColor,
|
|
67
|
+
u as useColor,
|
|
68
|
+
p as useTextColor
|
|
69
|
+
};
|
|
@@ -1,61 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getCurrentInstance as
|
|
3
|
-
import {
|
|
4
|
-
import { injectSelf as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
if (!
|
|
1
|
+
import { ref as E, computed as v, unref as d, provide as w, inject as S, shallowRef as j, watchEffect as I } from "vue";
|
|
2
|
+
import { getCurrentInstance as V } from "../util/getCurrentInstance.mjs";
|
|
3
|
+
import { mergeDeep as o, toKebabCase as k } from "../util/helpers.mjs";
|
|
4
|
+
import { injectSelf as x } from "../util/injectSelf.mjs";
|
|
5
|
+
const m = Symbol.for("vuetify:defaults");
|
|
6
|
+
function _() {
|
|
7
|
+
const r = S(m);
|
|
8
|
+
if (!r)
|
|
9
9
|
throw new Error("[Vuetify] Could not find defaults instance");
|
|
10
|
-
return
|
|
10
|
+
return r;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
12
|
+
function P(r, t) {
|
|
13
|
+
const s = _(), l = E(r), f = v(() => {
|
|
14
|
+
if (d(t == null ? void 0 : t.disabled))
|
|
15
|
+
return s.value;
|
|
16
|
+
const a = d(t == null ? void 0 : t.scoped), c = d(t == null ? void 0 : t.reset), n = d(t == null ? void 0 : t.root);
|
|
17
|
+
if (l.value == null && !(a || c || n))
|
|
18
|
+
return s.value;
|
|
19
|
+
let e = o(l.value, {
|
|
20
|
+
prev: s.value
|
|
21
|
+
});
|
|
22
|
+
if (a)
|
|
23
|
+
return e;
|
|
24
|
+
if (c || n) {
|
|
25
|
+
const u = Number(c || 1 / 0);
|
|
26
|
+
for (let i = 0; i <= u && !(!e || !("prev" in e)); i++)
|
|
27
|
+
e = e.prev;
|
|
28
|
+
return e && typeof n == "string" && n in e && (e = o(o(e, {
|
|
29
|
+
prev: e
|
|
30
|
+
}), e[n])), e;
|
|
31
|
+
}
|
|
32
|
+
return e.prev ? o(e.prev, e) : e;
|
|
33
|
+
});
|
|
34
|
+
return w(m, f), f;
|
|
35
|
+
}
|
|
36
|
+
function O(r, t) {
|
|
37
|
+
return r.props && (typeof r.props[t] < "u" || typeof r.props[k(t)] < "u");
|
|
14
38
|
}
|
|
15
|
-
function
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
39
|
+
function W() {
|
|
40
|
+
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = arguments.length > 1 ? arguments[1] : void 0, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : _();
|
|
41
|
+
const l = V("useDefaults");
|
|
42
|
+
if (t = t ?? l.type.name ?? l.type.__name, !t)
|
|
19
43
|
throw new Error("[Vuetify] Could not determine component name");
|
|
20
|
-
const
|
|
21
|
-
var
|
|
22
|
-
return (
|
|
23
|
-
}),
|
|
24
|
-
get(
|
|
25
|
-
var
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
28
|
-
return [(
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
31
|
-
const i = (
|
|
44
|
+
const f = v(() => {
|
|
45
|
+
var n;
|
|
46
|
+
return (n = s.value) == null ? void 0 : n[r._as ?? t];
|
|
47
|
+
}), g = new Proxy(r, {
|
|
48
|
+
get(n, e) {
|
|
49
|
+
var p, D, y, h;
|
|
50
|
+
const u = Reflect.get(n, e);
|
|
51
|
+
if (e === "class" || e === "style")
|
|
52
|
+
return [(p = f.value) == null ? void 0 : p[e], u].filter((C) => C != null);
|
|
53
|
+
if (O(l.vnode, e))
|
|
54
|
+
return u;
|
|
55
|
+
const i = (D = f.value) == null ? void 0 : D[e];
|
|
32
56
|
if (i !== void 0)
|
|
33
57
|
return i;
|
|
34
|
-
const
|
|
35
|
-
return
|
|
58
|
+
const b = (h = (y = s.value) == null ? void 0 : y.global) == null ? void 0 : h[e];
|
|
59
|
+
return b !== void 0 ? b : u;
|
|
36
60
|
}
|
|
37
|
-
}),
|
|
38
|
-
|
|
39
|
-
if (
|
|
40
|
-
const
|
|
41
|
-
let [
|
|
42
|
-
return
|
|
61
|
+
}), a = j();
|
|
62
|
+
I(() => {
|
|
63
|
+
if (f.value) {
|
|
64
|
+
const n = Object.entries(f.value).filter((e) => {
|
|
65
|
+
let [u] = e;
|
|
66
|
+
return u.startsWith(u[0].toUpperCase());
|
|
43
67
|
});
|
|
44
|
-
|
|
68
|
+
a.value = n.length ? Object.fromEntries(n) : void 0;
|
|
45
69
|
} else
|
|
46
|
-
|
|
70
|
+
a.value = void 0;
|
|
47
71
|
});
|
|
48
|
-
function
|
|
49
|
-
const
|
|
50
|
-
|
|
72
|
+
function c() {
|
|
73
|
+
const n = x(m, l);
|
|
74
|
+
w(m, v(() => a.value ? o((n == null ? void 0 : n.value) ?? {}, a.value) : n == null ? void 0 : n.value));
|
|
51
75
|
}
|
|
52
76
|
return {
|
|
53
|
-
props:
|
|
54
|
-
provideSubDefaults:
|
|
77
|
+
props: g,
|
|
78
|
+
provideSubDefaults: c
|
|
55
79
|
};
|
|
56
80
|
}
|
|
57
81
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
82
|
+
m as DefaultsSymbol,
|
|
83
|
+
_ as injectDefaults,
|
|
84
|
+
W as internalUseDefaults,
|
|
85
|
+
P as provideDefaults
|
|
61
86
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defer as f } from "../util/helpers.mjs";
|
|
2
|
+
import { propsFactory as c } from "../util/propsFactory.mjs";
|
|
3
|
+
const i = c({
|
|
4
|
+
closeDelay: [Number, String],
|
|
5
|
+
openDelay: [Number, String]
|
|
6
|
+
}, "delay");
|
|
7
|
+
function N(l, n) {
|
|
8
|
+
let e = () => {
|
|
9
|
+
};
|
|
10
|
+
function t(r, a) {
|
|
11
|
+
e == null || e();
|
|
12
|
+
const y = r ? l.openDelay : l.closeDelay, m = Math.max((a == null ? void 0 : a.minDelay) ?? 0, Number(y ?? 0));
|
|
13
|
+
return new Promise((D) => {
|
|
14
|
+
e = f(m, () => {
|
|
15
|
+
n == null || n(r), D(r);
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function u() {
|
|
20
|
+
return t(!0);
|
|
21
|
+
}
|
|
22
|
+
function o(r) {
|
|
23
|
+
return t(!1, r);
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
clearDelay: e,
|
|
27
|
+
runOpenDelay: u,
|
|
28
|
+
runCloseDelay: o
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
i as makeDelayProps,
|
|
33
|
+
N as useDelay
|
|
34
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { toRef as n } from "vue";
|
|
2
|
+
import { propsFactory as s } from "../util/propsFactory.mjs";
|
|
3
|
+
import { getCurrentInstanceName as r } from "../util/getCurrentInstance.mjs";
|
|
4
|
+
const o = [null, "default", "comfortable", "compact"], m = s({
|
|
5
|
+
density: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "default",
|
|
8
|
+
validator: (e) => o.includes(e)
|
|
9
|
+
}
|
|
10
|
+
}, "density");
|
|
11
|
+
function u(e) {
|
|
12
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : r();
|
|
13
|
+
return {
|
|
14
|
+
densityClasses: n(() => `${t}--density-${e.density}`)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
m as makeDensityProps,
|
|
19
|
+
u as useDensity
|
|
20
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { computed as u } from "vue";
|
|
2
|
+
import { propsFactory as d } from "../util/propsFactory.mjs";
|
|
3
|
+
import { convertToUnit as n } from "../util/helpers.mjs";
|
|
4
|
+
const f = d({
|
|
5
|
+
height: [Number, String],
|
|
6
|
+
maxHeight: [Number, String],
|
|
7
|
+
maxWidth: [Number, String],
|
|
8
|
+
minHeight: [Number, String],
|
|
9
|
+
minWidth: [Number, String],
|
|
10
|
+
width: [Number, String]
|
|
11
|
+
}, "dimension");
|
|
12
|
+
function x(t) {
|
|
13
|
+
return {
|
|
14
|
+
dimensionStyles: u(() => {
|
|
15
|
+
const i = {}, m = n(t.height), e = n(t.maxHeight), h = n(t.maxWidth), o = n(t.minHeight), r = n(t.minWidth), g = n(t.width);
|
|
16
|
+
return m != null && (i.height = m), e != null && (i.maxHeight = e), h != null && (i.maxWidth = h), o != null && (i.minHeight = o), r != null && (i.minWidth = r), g != null && (i.width = g), i;
|
|
17
|
+
})
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
f as makeDimensionProps,
|
|
22
|
+
x as useDimension
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { inject as l, computed as o, toRef as u } from "vue";
|
|
2
|
+
import { getCurrentInstanceName as s } from "../util/getCurrentInstance.mjs";
|
|
3
|
+
const a = Symbol.for("vuetify:display");
|
|
4
|
+
function p() {
|
|
5
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
6
|
+
mobile: null
|
|
7
|
+
}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : s();
|
|
8
|
+
const t = l(a);
|
|
9
|
+
if (!t)
|
|
10
|
+
throw new Error("Could not find Vuetify display injection");
|
|
11
|
+
const r = o(() => e.mobile ? !0 : typeof e.mobileBreakpoint == "number" ? t.width.value < e.mobileBreakpoint : e.mobileBreakpoint ? t.width.value < t.thresholds.value[e.mobileBreakpoint] : e.mobile === null ? t.mobile.value : !1), i = u(() => n ? {
|
|
12
|
+
[`${n}--mobile`]: r.value
|
|
13
|
+
} : {});
|
|
14
|
+
return {
|
|
15
|
+
...t,
|
|
16
|
+
displayClasses: i,
|
|
17
|
+
mobile: r
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
a as DisplaySymbol,
|
|
22
|
+
p as useDisplay
|
|
23
|
+
};
|