@eodash/eodash 5.0.0-rc.3 → 5.1.0
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/README.md +1 -0
- package/core/client/App.vue +8 -2
- package/core/client/asWebComponent.js +5 -5
- package/core/client/components/DashboardLayout.vue +42 -25
- package/core/client/components/EodashOverlay.vue +1 -1
- package/core/client/components/ErrorAlert.vue +2 -2
- package/core/client/components/Footer.vue +4 -4
- package/core/client/components/Header.vue +3 -3
- package/core/client/components/MobileLayout.vue +9 -10
- package/core/client/composables/DefineEodash.js +38 -43
- package/core/client/composables/DefineTemplate.js +4 -2
- package/core/client/composables/DefineWidgets.js +14 -8
- package/core/client/composables/index.js +273 -23
- package/core/client/eodashSTAC/EodashCollection.js +80 -47
- package/core/client/eodashSTAC/helpers.js +136 -27
- package/core/client/eodashSTAC/parquet.js +145 -0
- package/core/client/eodashSTAC/triggers.js +6 -3
- package/core/client/plugins/index.js +4 -3
- package/core/client/plugins/vuetify.js +3 -0
- package/core/client/store/actions.js +21 -4
- package/core/client/store/stac.js +93 -56
- package/core/client/store/states.js +15 -5
- package/core/client/types.ts +59 -43
- package/core/client/utils/index.js +79 -0
- package/core/client/utils/keys.js +2 -2
- package/core/client/utils/states.js +30 -5
- package/core/client/views/Dashboard.vue +36 -32
- package/core/client/vite-env.d.ts +7 -0
- package/dist/client/{DashboardLayout-t_PavJPO.js → DashboardLayout-ByVs1DrY.js} +23 -12
- package/dist/client/{DynamicWebComponent-y07rVJch.js → DynamicWebComponent-C3W7HSQm.js} +1 -1
- package/dist/client/{EodashDatePicker-CcOfyzGD.js → EodashDatePicker-BIAf1sMT.js} +59 -32
- package/dist/client/{EodashItemFilter-B9HCvIMi.js → EodashItemFilter-DPznh8UB.js} +20 -10
- package/dist/client/{EodashLayerControl-KStn7Nb_.js → EodashLayerControl-Bhxjw4V2.js} +29 -16
- package/dist/client/EodashLayoutSwitcher-C5qTEffW.js +61 -0
- package/dist/client/EodashMapBtns-WoGq8MuV.js +173 -0
- package/dist/client/{EodashStacInfo-C_hDy6Pd.js → EodashStacInfo-CSvvF2jI.js} +3 -18
- package/dist/client/{EodashTools-BXflvRf8.js → EodashTools-Cv1SXQ5y.js} +13 -13
- package/dist/client/{ExportState-C0QRemK1.js → ExportState-D-iuwaad.js} +58 -52
- package/dist/client/{Footer-7VGyGUAs.js → Footer-CyF0zRAk.js} +15 -13
- package/dist/client/{Header-BQJnXHYq.js → Header-CgD8jDKU.js} +33 -28
- package/dist/client/{MobileLayout-b8nQ-Vyl.js → MobileLayout-EKQ_kpSh.js} +69 -60
- package/dist/client/{PopUp-DgNrh9Df.js → PopUp-BsYLvWch.js} +19 -10
- package/dist/client/ProcessList-C2xsLU2_.js +191 -0
- package/dist/client/{VImg-D4eT3IQ1.js → VImg-OHe8YTs2.js} +24 -24
- package/dist/client/{VMain-C3hN2-H3.js → VMain-PryTLU4a.js} +7 -7
- package/dist/client/{VOverlay-tAeNygaA.js → VOverlay-yUn7p-Uf.js} +64 -27
- package/dist/client/{VTooltip-B0Q3iHMZ.js → VTooltip-DZ0fjpB3.js} +13 -10
- package/dist/client/{WidgetsContainer-CtDHfCYf.js → WidgetsContainer-B9LBadcC.js} +1 -1
- package/dist/client/asWebComponent-By_7_JjS.js +19193 -0
- package/dist/client/async-DkSu_u2K.js +740 -0
- package/dist/client/eo-dash.js +1 -1
- package/dist/client/{forwardRefs-CIFAqXaZ.js → forwardRefs-BXxrv98s.js} +31 -4
- package/dist/client/handling-CgmFXkW6.js +1212 -0
- package/dist/client/helpers-Dy0Q13tP.js +4534 -0
- package/dist/client/{index-DvcUndod.js → index-BuhOHXKv.js} +2 -4
- package/dist/client/{index-BQ16n4Sk.js → index-Ch_HchK3.js} +39 -32
- package/dist/client/{index-Cv7HBz49.js → index-Dqj4tbx2.js} +2 -2
- package/dist/client/index-skjhlH8u.js +376 -0
- package/dist/client/{ssrBoot-BP7SYRyC.js → ssrBoot-Zgc_Ttvi.js} +2 -2
- package/dist/client/templates.js +850 -0
- package/dist/client/transition-C98Yn4Vo.js +40 -0
- package/dist/node/cli.js +16 -6
- package/dist/node/types.d.ts +1 -1
- package/dist/types/core/client/App.vue.d.ts +2 -2
- package/dist/types/core/client/asWebComponent.d.ts +1 -1
- package/dist/types/core/client/components/DynamicWebComponent.vue.d.ts +1 -3
- package/dist/types/core/client/components/Footer.vue.d.ts +1 -105
- package/dist/types/core/client/components/IframeWrapper.vue.d.ts +1 -1
- package/dist/types/core/client/components/MobileLayout.vue.d.ts +1 -324
- package/dist/types/core/client/composables/DefineEodash.d.ts +2 -2
- package/dist/types/core/client/composables/DefineTemplate.d.ts +1 -1
- package/dist/types/core/client/composables/DefineWidgets.d.ts +4 -4
- package/dist/types/core/client/composables/index.d.ts +24 -2
- package/dist/types/core/client/eodashSTAC/EodashCollection.d.ts +9 -6
- package/dist/types/core/client/eodashSTAC/helpers.d.ts +20 -5
- package/dist/types/core/client/eodashSTAC/parquet.d.ts +2 -0
- package/dist/types/core/client/plugins/vuetify.d.ts +7 -4
- package/dist/types/core/client/store/actions.d.ts +3 -2
- package/dist/types/core/client/store/stac.d.ts +16 -13
- package/dist/types/core/client/store/states.d.ts +14 -4
- package/dist/types/core/client/types.d.ts +45 -30
- package/dist/types/core/client/utils/index.d.ts +2 -0
- package/dist/types/core/client/utils/keys.d.ts +4 -4
- package/dist/types/core/client/utils/states.d.ts +59 -47
- package/dist/types/core/client/views/Dashboard.vue.d.ts +2 -2
- package/dist/types/templates/baseConfig.d.ts +4 -0
- package/dist/types/templates/compare.d.ts +210 -0
- package/dist/types/templates/expert.d.ts +151 -0
- package/dist/types/templates/index.d.ts +6 -0
- package/dist/types/templates/light.d.ts +145 -0
- package/dist/types/widgets/EodashDatePicker.vue.d.ts +1 -458
- package/dist/types/widgets/EodashItemFilter.vue.d.ts +3 -3
- package/dist/types/widgets/EodashLayerControl.vue.d.ts +14 -7
- package/dist/types/widgets/EodashLayoutSwitcher.vue.d.ts +1 -3
- package/dist/types/widgets/EodashMap/index.vue.d.ts +1 -4
- package/dist/types/widgets/EodashMapBtns.vue.d.ts +8 -8
- package/dist/types/widgets/EodashProcess/ProcessList.vue.d.ts +8 -1
- package/dist/types/widgets/EodashProcess/index.vue.d.ts +8 -4
- package/dist/types/widgets/EodashProcess/methods/async.d.ts +18 -18
- package/dist/types/widgets/EodashProcess/methods/composables.d.ts +3 -2
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/chart/index.d.ts +1 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/chart/sentinelhub-endpoint.d.ts +6 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.d.ts +4 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.d.ts +5 -0
- package/dist/types/widgets/EodashProcess/methods/custom-endpoints/layers/index.d.ts +1 -0
- package/dist/types/widgets/EodashProcess/methods/handling.d.ts +12 -5
- package/dist/types/widgets/EodashProcess/methods/outputs.d.ts +72 -41
- package/dist/types/widgets/EodashProcess/methods/utils.d.ts +41 -21
- package/dist/types/widgets/EodashProcess/states.d.ts +11 -0
- package/dist/types/widgets/EodashProcess/types.d.ts +41 -0
- package/dist/types/widgets/EodashStacInfo.vue.d.ts +14 -14
- package/dist/types/widgets/EodashTools.vue.d.ts +3 -3
- package/dist/types/widgets/ExportState.vue.d.ts +1 -1
- package/dist/types/widgets/PopUp.vue.d.ts +11 -16
- package/dist/types/widgets/WidgetsContainer.vue.d.ts +3 -6
- package/package.json +53 -45
- package/templates/baseConfig.js +68 -0
- package/templates/compare.js +162 -0
- package/templates/expert.js +123 -0
- package/templates/index.js +8 -0
- package/templates/light.js +130 -0
- package/widgets/EodashDatePicker.vue +80 -31
- package/widgets/EodashItemFilter.vue +26 -11
- package/widgets/EodashLayerControl.vue +20 -11
- package/widgets/EodashLayoutSwitcher.vue +6 -3
- package/widgets/EodashMap/index.vue +3 -8
- package/widgets/EodashMap/methods/create-layers-config.js +4 -3
- package/widgets/EodashMap/methods/index.js +33 -23
- package/widgets/EodashMapBtns.vue +83 -41
- package/widgets/EodashProcess/ProcessList.vue +34 -10
- package/widgets/EodashProcess/index.vue +55 -20
- package/widgets/EodashProcess/methods/async.js +77 -59
- package/widgets/EodashProcess/methods/composables.js +21 -14
- package/widgets/EodashProcess/methods/custom-endpoints/chart/index.js +35 -0
- package/widgets/EodashProcess/methods/custom-endpoints/chart/sentinelhub-endpoint.js +275 -0
- package/widgets/EodashProcess/methods/custom-endpoints/chart/veda-endpoint.js +116 -0
- package/widgets/EodashProcess/methods/custom-endpoints/layers/eoxhub-workspaces-endpoint.js +94 -0
- package/widgets/EodashProcess/methods/custom-endpoints/layers/index.js +33 -0
- package/widgets/EodashProcess/methods/handling.js +127 -80
- package/widgets/EodashProcess/methods/outputs.js +376 -125
- package/widgets/EodashProcess/methods/utils.js +398 -10
- package/widgets/EodashProcess/states.js +13 -0
- package/widgets/EodashProcess/types.ts +46 -0
- package/widgets/EodashStacInfo.vue +2 -17
- package/widgets/EodashTools.vue +13 -13
- package/widgets/WidgetsContainer.vue +1 -1
- package/core/client/eodash.js +0 -454
- package/dist/client/EodashLayoutSwitcher-DqeFO3RN.js +0 -52
- package/dist/client/EodashMapBtns-5BF27qJB.js +0 -131
- package/dist/client/ProcessList-C62SOVO6.js +0 -484
- package/dist/client/asWebComponent-BJ2NWunV.js +0 -12479
- package/dist/client/eo-dash.css +0 -5
- package/dist/client/index-Da5xXX6Q.js +0 -780
- package/dist/client/transition-Cdb4K27U.js +0 -37
- package/dist/types/core/client/eodash.d.ts +0 -8
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { createVNode,
|
|
2
|
-
import { p as propsFactory, g as genericComponent, h as makeTagProps, i as makeComponentProps, a as useRender, B as useBackgroundColor, K as useBorder, L as useElevation, M as useRounded, b as provideTheme, c as useRtl, C as provideDefaults, N as VDefaultsProvider, q as convertToUnit, f as makeThemeProps, O as makeRoundedProps, P as makeElevationProps, Q as makeBorderProps, R as clamp, S as consoleWarn, j as useProxiedModel, T as useToggleScope, U as useLayoutItem, W as makeLayoutItemProps, _ as _export_sfc, X as eodashKey } from './asWebComponent-
|
|
3
|
-
import { a as VExpandTransition } from './index-
|
|
4
|
-
import { V as VImg } from './VImg-
|
|
5
|
-
import { u as useSsrBoot } from './ssrBoot-
|
|
1
|
+
import { createVNode, normalizeStyle, normalizeClass, createElementVNode, shallowRef, computed, ref, watch, onMounted, onBeforeUnmount, toRef, watchEffect, mergeProps, inject, createBlock, openBlock, withCtx, createTextVNode, toDisplayString, unref } from 'vue';
|
|
2
|
+
import { p as propsFactory, g as genericComponent, h as makeTagProps, i as makeComponentProps, a as useRender, B as useBackgroundColor, K as useBorder, L as useElevation, M as useRounded, b as provideTheme, c as useRtl, C as provideDefaults, N as VDefaultsProvider, q as convertToUnit, f as makeThemeProps, O as makeRoundedProps, P as makeElevationProps, Q as makeBorderProps, R as clamp, S as consoleWarn, j as useProxiedModel, T as useToggleScope, U as useLayoutItem, W as makeLayoutItemProps, _ as _export_sfc, X as eodashKey } from './asWebComponent-By_7_JjS.js';
|
|
3
|
+
import { a as VExpandTransition } from './index-BuhOHXKv.js';
|
|
4
|
+
import { V as VImg } from './VImg-OHe8YTs2.js';
|
|
5
|
+
import { u as useSsrBoot } from './ssrBoot-Zgc_Ttvi.js';
|
|
6
|
+
|
|
7
|
+
const _style_0 = ".logo[data-v-86c95219]{max-width:140px}";
|
|
6
8
|
|
|
7
9
|
const makeVToolbarTitleProps = propsFactory({
|
|
8
10
|
text: String,
|
|
@@ -19,10 +21,10 @@ const VToolbarTitle = genericComponent()({
|
|
|
19
21
|
useRender(() => {
|
|
20
22
|
const hasText = !!(slots.default || slots.text || props.text);
|
|
21
23
|
return createVNode(props.tag, {
|
|
22
|
-
"class": ['v-toolbar-title', props.class],
|
|
23
|
-
"style": props.style
|
|
24
|
+
"class": normalizeClass(['v-toolbar-title', props.class]),
|
|
25
|
+
"style": normalizeStyle(props.style)
|
|
24
26
|
}, {
|
|
25
|
-
default: () => [hasText &&
|
|
27
|
+
default: () => [hasText && createElementVNode("div", {
|
|
26
28
|
"class": "v-toolbar-title__placeholder"
|
|
27
29
|
}, [slots.text ? slots.text() : props.text, slots.default?.()])]
|
|
28
30
|
});
|
|
@@ -41,7 +43,10 @@ const makeVToolbarProps = propsFactory({
|
|
|
41
43
|
default: 'default',
|
|
42
44
|
validator: v => allowedDensities.includes(v)
|
|
43
45
|
},
|
|
44
|
-
extended:
|
|
46
|
+
extended: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: null
|
|
49
|
+
},
|
|
45
50
|
extensionHeight: {
|
|
46
51
|
type: [Number, String],
|
|
47
52
|
default: 48
|
|
@@ -73,7 +78,7 @@ const VToolbar = genericComponent()({
|
|
|
73
78
|
const {
|
|
74
79
|
backgroundColorClasses,
|
|
75
80
|
backgroundColorStyles
|
|
76
|
-
} = useBackgroundColor(
|
|
81
|
+
} = useBackgroundColor(() => props.color);
|
|
77
82
|
const {
|
|
78
83
|
borderClasses
|
|
79
84
|
} = useBorder(props);
|
|
@@ -89,7 +94,7 @@ const VToolbar = genericComponent()({
|
|
|
89
94
|
const {
|
|
90
95
|
rtlClasses
|
|
91
96
|
} = useRtl();
|
|
92
|
-
const isExtended = shallowRef(
|
|
97
|
+
const isExtended = shallowRef(props.extended === null ? !!slots.extension?.() : props.extended);
|
|
93
98
|
const contentHeight = computed(() => parseInt(Number(props.height) + (props.density === 'prominent' ? Number(props.height) : 0) - (props.density === 'comfortable' ? 8 : 0) - (props.density === 'compact' ? 16 : 0), 10));
|
|
94
99
|
const extensionHeight = computed(() => isExtended.value ? parseInt(Number(props.extensionHeight) + (props.density === 'prominent' ? Number(props.extensionHeight) : 0) - (props.density === 'comfortable' ? 4 : 0) - (props.density === 'compact' ? 8 : 0), 10) : 0);
|
|
95
100
|
provideDefaults({
|
|
@@ -101,18 +106,18 @@ const VToolbar = genericComponent()({
|
|
|
101
106
|
const hasTitle = !!(props.title || slots.title);
|
|
102
107
|
const hasImage = !!(slots.image || props.image);
|
|
103
108
|
const extension = slots.extension?.();
|
|
104
|
-
isExtended.value =
|
|
109
|
+
isExtended.value = props.extended === null ? !!extension : props.extended;
|
|
105
110
|
return createVNode(props.tag, {
|
|
106
|
-
"class": ['v-toolbar', {
|
|
111
|
+
"class": normalizeClass(['v-toolbar', {
|
|
107
112
|
'v-toolbar--absolute': props.absolute,
|
|
108
113
|
'v-toolbar--collapse': props.collapse,
|
|
109
114
|
'v-toolbar--flat': props.flat,
|
|
110
115
|
'v-toolbar--floating': props.floating,
|
|
111
116
|
[`v-toolbar--density-${props.density}`]: true
|
|
112
|
-
}, backgroundColorClasses.value, borderClasses.value, elevationClasses.value, roundedClasses.value, themeClasses.value, rtlClasses.value, props.class],
|
|
113
|
-
"style": [backgroundColorStyles.value, props.style]
|
|
117
|
+
}, backgroundColorClasses.value, borderClasses.value, elevationClasses.value, roundedClasses.value, themeClasses.value, rtlClasses.value, props.class]),
|
|
118
|
+
"style": normalizeStyle([backgroundColorStyles.value, props.style])
|
|
114
119
|
}, {
|
|
115
|
-
default: () => [hasImage &&
|
|
120
|
+
default: () => [hasImage && createElementVNode("div", {
|
|
116
121
|
"key": "image",
|
|
117
122
|
"class": "v-toolbar__image"
|
|
118
123
|
}, [!slots.image ? createVNode(VImg, {
|
|
@@ -135,19 +140,19 @@ const VToolbar = genericComponent()({
|
|
|
135
140
|
}
|
|
136
141
|
}
|
|
137
142
|
}, {
|
|
138
|
-
default: () => [
|
|
143
|
+
default: () => [createElementVNode("div", {
|
|
139
144
|
"class": "v-toolbar__content",
|
|
140
145
|
"style": {
|
|
141
146
|
height: convertToUnit(contentHeight.value)
|
|
142
147
|
}
|
|
143
|
-
}, [slots.prepend &&
|
|
148
|
+
}, [slots.prepend && createElementVNode("div", {
|
|
144
149
|
"class": "v-toolbar__prepend"
|
|
145
150
|
}, [slots.prepend?.()]), hasTitle && createVNode(VToolbarTitle, {
|
|
146
151
|
"key": "title",
|
|
147
152
|
"text": props.title
|
|
148
153
|
}, {
|
|
149
154
|
text: slots.title
|
|
150
|
-
}), slots.default?.(), slots.append &&
|
|
155
|
+
}), slots.default?.(), slots.append && createElementVNode("div", {
|
|
151
156
|
"class": "v-toolbar__append"
|
|
152
157
|
}, [slots.append?.()])])]
|
|
153
158
|
}), createVNode(VDefaultsProvider, {
|
|
@@ -158,7 +163,7 @@ const VToolbar = genericComponent()({
|
|
|
158
163
|
}
|
|
159
164
|
}, {
|
|
160
165
|
default: () => [createVNode(VExpandTransition, null, {
|
|
161
|
-
default: () => [isExtended.value &&
|
|
166
|
+
default: () => [isExtended.value && createElementVNode("div", {
|
|
162
167
|
"class": "v-toolbar__extension",
|
|
163
168
|
"style": {
|
|
164
169
|
height: convertToUnit(extensionHeight.value)
|
|
@@ -326,7 +331,7 @@ const VAppBar = genericComponent()({
|
|
|
326
331
|
} = useScroll(props, {
|
|
327
332
|
canScroll
|
|
328
333
|
});
|
|
329
|
-
const canHide =
|
|
334
|
+
const canHide = toRef(() => scrollBehavior.value.hide || scrollBehavior.value.fullyHide);
|
|
330
335
|
const isCollapsed = computed(() => props.collapse || scrollBehavior.value.collapse && (scrollBehavior.value.inverted ? scrollRatio.value > 0 : scrollRatio.value === 0));
|
|
331
336
|
const isFlat = computed(() => props.flat || scrollBehavior.value.fullyHide && !isActive.value || scrollBehavior.value.elevate && (scrollBehavior.value.inverted ? currentScroll.value > 0 : currentScroll.value === 0));
|
|
332
337
|
const opacity = computed(() => scrollBehavior.value.fadeImage ? scrollBehavior.value.inverted ? 1 - scrollRatio.value : scrollRatio.value : undefined);
|
|
@@ -337,7 +342,7 @@ const VAppBar = genericComponent()({
|
|
|
337
342
|
if (!canHide.value) return height + extensionHeight;
|
|
338
343
|
return currentScroll.value < scrollThreshold.value || scrollBehavior.value.fullyHide ? height + extensionHeight : height;
|
|
339
344
|
});
|
|
340
|
-
useToggleScope(
|
|
345
|
+
useToggleScope(() => !!props.scrollBehavior, () => {
|
|
341
346
|
watchEffect(() => {
|
|
342
347
|
if (canHide.value) {
|
|
343
348
|
if (scrollBehavior.value.inverted) {
|
|
@@ -358,11 +363,11 @@ const VAppBar = genericComponent()({
|
|
|
358
363
|
} = useLayoutItem({
|
|
359
364
|
id: props.name,
|
|
360
365
|
order: computed(() => parseInt(props.order, 10)),
|
|
361
|
-
position: toRef(props
|
|
366
|
+
position: toRef(() => props.location),
|
|
362
367
|
layoutSize: height,
|
|
363
368
|
elementSize: shallowRef(undefined),
|
|
364
369
|
active: isActive,
|
|
365
|
-
absolute: toRef(props
|
|
370
|
+
absolute: toRef(() => props.absolute)
|
|
366
371
|
});
|
|
367
372
|
useRender(() => {
|
|
368
373
|
const toolbarProps = VToolbar.filterProps(props);
|
|
@@ -404,9 +409,9 @@ const _sfc_main = {
|
|
|
404
409
|
__name: 'Header',
|
|
405
410
|
setup(__props) {
|
|
406
411
|
|
|
407
|
-
const eodash =
|
|
412
|
+
const eodash = inject(eodashKey);
|
|
408
413
|
|
|
409
|
-
const title = eodash
|
|
414
|
+
const title = eodash?.brand?.name;
|
|
410
415
|
|
|
411
416
|
return (_ctx, _cache) => {
|
|
412
417
|
|
|
@@ -423,7 +428,7 @@ return (_ctx, _cache) => {
|
|
|
423
428
|
}),
|
|
424
429
|
createVNode(VImg, {
|
|
425
430
|
class: "mx-12 logo",
|
|
426
|
-
src: unref(eodash)
|
|
431
|
+
src: unref(eodash)?.brand?.logo
|
|
427
432
|
}, null, 8 /* PROPS */, ["src"])
|
|
428
433
|
]),
|
|
429
434
|
_: 1 /* STABLE */
|
|
@@ -432,6 +437,6 @@ return (_ctx, _cache) => {
|
|
|
432
437
|
}
|
|
433
438
|
|
|
434
439
|
};
|
|
435
|
-
const Header = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-
|
|
440
|
+
const Header = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]],['__scopeId',"data-v-86c95219"]]);
|
|
436
441
|
|
|
437
442
|
export { Header as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref, computed, createVNode, mergeProps, Fragment, shallowRef, watch, provide,
|
|
2
|
-
import { k as keys, g as genericComponent, p as propsFactory, u as useTextColor, a as useRender, V as VBtn, o as omit, m as makeVBtnProps, b as provideTheme, c as useRtl, d as useLocale, e as useGroup, f as makeThemeProps, h as makeTagProps, i as makeComponentProps, j as useProxiedModel, l as useGroupItem, n as makeGroupItemProps, q as convertToUnit, r as useDisplay, s as useResizeObserver, t as useGoTo, I as IN_BROWSER, v as VIcon, w as makeGroupProps, x as makeDisplayProps, y as IconValue, z as focusableChildren, A as useDensity, B as useBackgroundColor, C as provideDefaults, D as makeDensityProps, E as isObject, _ as _export_sfc, F as useDefineTemplate, G as useLayout } from './asWebComponent-
|
|
3
|
-
import { V as VMain } from './VMain-
|
|
4
|
-
import { f as forwardRefs, a as animate, s as standardEasing, u as useLazy, m as makeLazyProps, b as useScopeId } from './forwardRefs-
|
|
5
|
-
import { u as useSsrBoot } from './ssrBoot-
|
|
6
|
-
import { M as MaybeTransition } from './transition-
|
|
7
|
-
import { V as VFadeTransition } from './index-
|
|
1
|
+
import { ref, computed, createVNode, mergeProps, createElementVNode, Fragment, normalizeStyle, normalizeClass, shallowRef, watch, provide, toRef, withDirectives, inject, vShow, nextTick, useCssVars, onMounted, createBlock, openBlock, withCtx, createElementBlock, Suspense, createCommentVNode, unref, resolveDynamicComponent, renderList, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { k as keys, g as genericComponent, p as propsFactory, u as useTextColor, a as useRender, V as VBtn, o as omit, m as makeVBtnProps, b as provideTheme, c as useRtl, d as useLocale, e as useGroup, f as makeThemeProps, h as makeTagProps, i as makeComponentProps, j as useProxiedModel, l as useGroupItem, n as makeGroupItemProps, q as convertToUnit, r as useDisplay, s as useResizeObserver, t as useGoTo, I as IN_BROWSER, v as VIcon, w as makeGroupProps, x as makeDisplayProps, y as IconValue, z as focusableChildren, A as useDensity, B as useBackgroundColor, C as provideDefaults, D as makeDensityProps, E as isObject, _ as _export_sfc, F as useDefineTemplate, G as useLayout } from './asWebComponent-By_7_JjS.js';
|
|
3
|
+
import { V as VMain } from './VMain-PryTLU4a.js';
|
|
4
|
+
import { f as forwardRefs, a as animate, s as standardEasing, u as useLazy, m as makeLazyProps, b as useScopeId } from './forwardRefs-BXxrv98s.js';
|
|
5
|
+
import { u as useSsrBoot } from './ssrBoot-Zgc_Ttvi.js';
|
|
6
|
+
import { M as MaybeTransition } from './transition-C98Yn4Vo.js';
|
|
7
|
+
import { V as VFadeTransition } from './index-BuhOHXKv.js';
|
|
8
8
|
|
|
9
9
|
// Utilities
|
|
10
10
|
const handleGesture = wrapper => {
|
|
@@ -111,6 +111,8 @@ const Touch = {
|
|
|
111
111
|
unmounted
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
+
const _style_0 = ".panel[data-v-f4ab4c65]{bottom:var(--2d9a694e);top:var(--4f6792e6);position:absolute;overflow:hidden;width:100%;left:0;z-index:3}.component-container[data-v-f4ab4c65]{height:90%}.close-btn[data-v-f4ab4c65]{height:5%;position:relative}.tabs[data-v-f4ab4c65]{bottom:var(--515e6bda);position:relative;z-index:10}[data-v-f4ab4c65] .bg-surface{backdrop-filter:blur(10px)!important;background-color:rgba(var(--v-theme-surface),var(--v-surface-opacity, .8))!important}";
|
|
115
|
+
|
|
114
116
|
// Types
|
|
115
117
|
|
|
116
118
|
const VTabsSymbol = Symbol.for('vuetify:v-tabs');
|
|
@@ -139,7 +141,7 @@ const VTab = genericComponent()({
|
|
|
139
141
|
const {
|
|
140
142
|
textColorClasses: sliderColorClasses,
|
|
141
143
|
textColorStyles: sliderColorStyles
|
|
142
|
-
} = useTextColor(props
|
|
144
|
+
} = useTextColor(() => props.sliderColor);
|
|
143
145
|
const rootEl = ref();
|
|
144
146
|
const sliderEl = ref();
|
|
145
147
|
const isHorizontal = computed(() => props.direction === 'horizontal');
|
|
@@ -194,10 +196,10 @@ const VTab = genericComponent()({
|
|
|
194
196
|
"onGroup:selected": updateSlider
|
|
195
197
|
}), {
|
|
196
198
|
...slots,
|
|
197
|
-
default: () =>
|
|
199
|
+
default: () => createElementVNode(Fragment, null, [slots.default?.() ?? props.text, !props.hideSlider && createElementVNode("div", {
|
|
198
200
|
"ref": sliderEl,
|
|
199
|
-
"class": ['v-tab__slider', sliderColorClasses.value],
|
|
200
|
-
"style": sliderColorStyles.value
|
|
201
|
+
"class": normalizeClass(['v-tab__slider', sliderColorClasses.value]),
|
|
202
|
+
"style": normalizeStyle(sliderColorStyles.value)
|
|
201
203
|
}, null)])
|
|
202
204
|
});
|
|
203
205
|
});
|
|
@@ -222,6 +224,7 @@ const makeVWindowProps = propsFactory({
|
|
|
222
224
|
type: [Boolean, String],
|
|
223
225
|
validator: v => typeof v === 'boolean' || v === 'hover'
|
|
224
226
|
},
|
|
227
|
+
verticalArrows: [Boolean, String],
|
|
225
228
|
touch: {
|
|
226
229
|
type: [Object, Boolean],
|
|
227
230
|
default: undefined
|
|
@@ -248,7 +251,7 @@ const makeVWindowProps = propsFactory({
|
|
|
248
251
|
const VWindow = genericComponent()({
|
|
249
252
|
name: 'VWindow',
|
|
250
253
|
directives: {
|
|
251
|
-
Touch
|
|
254
|
+
vTouch: Touch
|
|
252
255
|
},
|
|
253
256
|
props: makeVWindowProps(),
|
|
254
257
|
emits: {
|
|
@@ -302,8 +305,8 @@ const VWindow = genericComponent()({
|
|
|
302
305
|
transitionHeight,
|
|
303
306
|
rootRef
|
|
304
307
|
});
|
|
305
|
-
const canMoveBack =
|
|
306
|
-
const canMoveForward =
|
|
308
|
+
const canMoveBack = toRef(() => props.continuous || activeIndex.value !== 0);
|
|
309
|
+
const canMoveForward = toRef(() => props.continuous || activeIndex.value !== group.items.value.length - 1);
|
|
307
310
|
function prev() {
|
|
308
311
|
canMoveBack.value && group.prev();
|
|
309
312
|
}
|
|
@@ -320,7 +323,7 @@ const VWindow = genericComponent()({
|
|
|
320
323
|
};
|
|
321
324
|
arrows.push(canMoveBack.value ? slots.prev ? slots.prev({
|
|
322
325
|
props: prevProps
|
|
323
|
-
}) : createVNode(VBtn, prevProps, null) :
|
|
326
|
+
}) : createVNode(VBtn, prevProps, null) : createElementVNode("div", null, null));
|
|
324
327
|
const nextProps = {
|
|
325
328
|
icon: isRtl.value ? props.prevIcon : props.nextIcon,
|
|
326
329
|
class: `v-window__${isRtlReverse.value ? 'left' : 'right'}`,
|
|
@@ -329,7 +332,7 @@ const VWindow = genericComponent()({
|
|
|
329
332
|
};
|
|
330
333
|
arrows.push(canMoveForward.value ? slots.next ? slots.next({
|
|
331
334
|
props: nextProps
|
|
332
|
-
}) : createVNode(VBtn, nextProps, null) :
|
|
335
|
+
}) : createVNode(VBtn, nextProps, null) : createElementVNode("div", null, null));
|
|
333
336
|
return arrows;
|
|
334
337
|
});
|
|
335
338
|
const touchOptions = computed(() => {
|
|
@@ -355,24 +358,29 @@ const VWindow = genericComponent()({
|
|
|
355
358
|
});
|
|
356
359
|
useRender(() => withDirectives(createVNode(props.tag, {
|
|
357
360
|
"ref": rootRef,
|
|
358
|
-
"class": ['v-window', {
|
|
359
|
-
'v-window--show-arrows-on-hover': props.showArrows === 'hover'
|
|
360
|
-
|
|
361
|
-
|
|
361
|
+
"class": normalizeClass(['v-window', {
|
|
362
|
+
'v-window--show-arrows-on-hover': props.showArrows === 'hover',
|
|
363
|
+
'v-window--vertical-arrows': !!props.verticalArrows
|
|
364
|
+
}, themeClasses.value, props.class]),
|
|
365
|
+
"style": normalizeStyle(props.style)
|
|
362
366
|
}, {
|
|
363
|
-
default: () => [
|
|
367
|
+
default: () => [createElementVNode("div", {
|
|
364
368
|
"class": "v-window__container",
|
|
365
369
|
"style": {
|
|
366
370
|
height: transitionHeight.value
|
|
367
371
|
}
|
|
368
372
|
}, [slots.default?.({
|
|
369
373
|
group
|
|
370
|
-
}), props.showArrows !== false &&
|
|
371
|
-
"class":
|
|
374
|
+
}), props.showArrows !== false && createElementVNode("div", {
|
|
375
|
+
"class": normalizeClass(['v-window__controls', {
|
|
376
|
+
'v-window__controls--left': props.verticalArrows === 'left' || props.verticalArrows === true
|
|
377
|
+
}, {
|
|
378
|
+
'v-window__controls--right': props.verticalArrows === 'right'
|
|
379
|
+
}])
|
|
372
380
|
}, [arrows.value])]), slots.additional?.({
|
|
373
381
|
group
|
|
374
382
|
})]
|
|
375
|
-
}), [[
|
|
383
|
+
}), [[Touch, touchOptions.value]]));
|
|
376
384
|
return {
|
|
377
385
|
group
|
|
378
386
|
};
|
|
@@ -441,7 +449,7 @@ const makeVWindowItemProps = propsFactory({
|
|
|
441
449
|
const VWindowItem = genericComponent()({
|
|
442
450
|
name: 'VWindowItem',
|
|
443
451
|
directives: {
|
|
444
|
-
Touch
|
|
452
|
+
vTouch: Touch
|
|
445
453
|
},
|
|
446
454
|
props: makeVWindowItemProps(),
|
|
447
455
|
emits: {
|
|
@@ -525,9 +533,9 @@ const VWindowItem = genericComponent()({
|
|
|
525
533
|
"transition": transition.value,
|
|
526
534
|
"disabled": !isBooted.value
|
|
527
535
|
}, {
|
|
528
|
-
default: () => [withDirectives(
|
|
529
|
-
"class": ['v-window-item', groupItem.selectedClass.value, props.class],
|
|
530
|
-
"style": props.style
|
|
536
|
+
default: () => [withDirectives(createElementVNode("div", {
|
|
537
|
+
"class": normalizeClass(['v-window-item', groupItem.selectedClass.value, props.class]),
|
|
538
|
+
"style": normalizeStyle(props.style)
|
|
531
539
|
}, [hasContent.value && slots.default?.()]), [[vShow, groupItem.isSelected.value]])]
|
|
532
540
|
}));
|
|
533
541
|
return {
|
|
@@ -623,6 +631,7 @@ function getOffsetPosition(isHorizontal, element) {
|
|
|
623
631
|
const VSlideGroupSymbol = Symbol.for('vuetify:v-slide-group');
|
|
624
632
|
const makeVSlideGroupProps = propsFactory({
|
|
625
633
|
centerActive: Boolean,
|
|
634
|
+
contentClass: null,
|
|
626
635
|
direction: {
|
|
627
636
|
type: String,
|
|
628
637
|
default: 'horizontal'
|
|
@@ -912,42 +921,42 @@ const VSlideGroup = genericComponent()({
|
|
|
912
921
|
return scrollSizeMax - Math.abs(scrollOffset.value) > 1;
|
|
913
922
|
});
|
|
914
923
|
useRender(() => createVNode(props.tag, {
|
|
915
|
-
"class": ['v-slide-group', {
|
|
924
|
+
"class": normalizeClass(['v-slide-group', {
|
|
916
925
|
'v-slide-group--vertical': !isHorizontal.value,
|
|
917
926
|
'v-slide-group--has-affixes': hasAffixes.value,
|
|
918
927
|
'v-slide-group--is-overflowing': isOverflowing.value
|
|
919
|
-
}, displayClasses.value, props.class],
|
|
920
|
-
"style": props.style,
|
|
928
|
+
}, displayClasses.value, props.class]),
|
|
929
|
+
"style": normalizeStyle(props.style),
|
|
921
930
|
"tabindex": isFocused.value || group.selected.value.length ? -1 : 0,
|
|
922
931
|
"onFocus": onFocus
|
|
923
932
|
}, {
|
|
924
|
-
default: () => [hasAffixes.value &&
|
|
933
|
+
default: () => [hasAffixes.value && createElementVNode("div", {
|
|
925
934
|
"key": "prev",
|
|
926
|
-
"class": ['v-slide-group__prev', {
|
|
935
|
+
"class": normalizeClass(['v-slide-group__prev', {
|
|
927
936
|
'v-slide-group__prev--disabled': !hasPrev.value
|
|
928
|
-
}],
|
|
937
|
+
}]),
|
|
929
938
|
"onMousedown": onFocusAffixes,
|
|
930
939
|
"onClick": () => hasPrev.value && scrollTo('prev')
|
|
931
940
|
}, [slots.prev?.(slotProps.value) ?? createVNode(VFadeTransition, null, {
|
|
932
941
|
default: () => [createVNode(VIcon, {
|
|
933
942
|
"icon": isRtl.value ? props.nextIcon : props.prevIcon
|
|
934
943
|
}, null)]
|
|
935
|
-
})]),
|
|
944
|
+
})]), createElementVNode("div", {
|
|
936
945
|
"key": "container",
|
|
937
946
|
"ref": containerRef,
|
|
938
|
-
"class":
|
|
947
|
+
"class": normalizeClass(['v-slide-group__container', props.contentClass]),
|
|
939
948
|
"onScroll": onScroll
|
|
940
|
-
}, [
|
|
949
|
+
}, [createElementVNode("div", {
|
|
941
950
|
"ref": contentRef,
|
|
942
951
|
"class": "v-slide-group__content",
|
|
943
952
|
"onFocusin": onFocusin,
|
|
944
953
|
"onFocusout": onFocusout,
|
|
945
954
|
"onKeydown": onKeydown
|
|
946
|
-
}, [slots.default?.(slotProps.value)])]), hasAffixes.value &&
|
|
955
|
+
}, [slots.default?.(slotProps.value)])]), hasAffixes.value && createElementVNode("div", {
|
|
947
956
|
"key": "next",
|
|
948
|
-
"class": ['v-slide-group__next', {
|
|
957
|
+
"class": normalizeClass(['v-slide-group__next', {
|
|
949
958
|
'v-slide-group__next--disabled': !hasNext.value
|
|
950
|
-
}],
|
|
959
|
+
}]),
|
|
951
960
|
"onMousedown": onFocusAffixes,
|
|
952
961
|
"onClick": () => hasNext.value && scrollTo('next')
|
|
953
962
|
}, [slots.next?.(slotProps.value) ?? createVNode(VFadeTransition, null, {
|
|
@@ -1023,24 +1032,24 @@ const VTabs = genericComponent()({
|
|
|
1023
1032
|
const {
|
|
1024
1033
|
backgroundColorClasses,
|
|
1025
1034
|
backgroundColorStyles
|
|
1026
|
-
} = useBackgroundColor(
|
|
1035
|
+
} = useBackgroundColor(() => props.bgColor);
|
|
1027
1036
|
const {
|
|
1028
1037
|
scopeId
|
|
1029
1038
|
} = useScopeId();
|
|
1030
1039
|
provideDefaults({
|
|
1031
1040
|
VTab: {
|
|
1032
|
-
color: toRef(props
|
|
1033
|
-
direction: toRef(props
|
|
1034
|
-
stacked: toRef(props
|
|
1035
|
-
fixed: toRef(props
|
|
1036
|
-
sliderColor: toRef(props
|
|
1037
|
-
hideSlider: toRef(props
|
|
1041
|
+
color: toRef(() => props.color),
|
|
1042
|
+
direction: toRef(() => props.direction),
|
|
1043
|
+
stacked: toRef(() => props.stacked),
|
|
1044
|
+
fixed: toRef(() => props.fixedTabs),
|
|
1045
|
+
sliderColor: toRef(() => props.sliderColor),
|
|
1046
|
+
hideSlider: toRef(() => props.hideSlider)
|
|
1038
1047
|
}
|
|
1039
1048
|
});
|
|
1040
1049
|
useRender(() => {
|
|
1041
1050
|
const slideGroupProps = VSlideGroup.filterProps(props);
|
|
1042
1051
|
const hasWindow = !!(slots.window || props.items.length > 0);
|
|
1043
|
-
return
|
|
1052
|
+
return createElementVNode(Fragment, null, [createVNode(VSlideGroup, mergeProps(slideGroupProps, {
|
|
1044
1053
|
"modelValue": model.value,
|
|
1045
1054
|
"onUpdate:modelValue": $event => model.value = $event,
|
|
1046
1055
|
"class": ['v-tabs', `v-tabs--${props.direction}`, `v-tabs--align-tabs-${props.alignTabs}`, {
|
|
@@ -1090,7 +1099,7 @@ const _hoisted_1 = {
|
|
|
1090
1099
|
class: "pa-2 panel bg-surface"
|
|
1091
1100
|
};
|
|
1092
1101
|
const _hoisted_2 = { class: "d-flex py-2 justify-end align-end" };
|
|
1093
|
-
const _hoisted_3 = { class: "component-container" };
|
|
1102
|
+
const _hoisted_3 = { class: "d-flex flex-column justify-center component-container" };
|
|
1094
1103
|
|
|
1095
1104
|
|
|
1096
1105
|
const _sfc_main = {
|
|
@@ -1098,9 +1107,9 @@ const _sfc_main = {
|
|
|
1098
1107
|
setup(__props) {
|
|
1099
1108
|
|
|
1100
1109
|
useCssVars(_ctx => ({
|
|
1101
|
-
"
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1110
|
+
"2d9a694e": (tabsHeightFromBtm.value),
|
|
1111
|
+
"4f6792e6": (mainRectTopPx.value),
|
|
1112
|
+
"515e6bda": (mainRectBtmPx.value)
|
|
1104
1113
|
}));
|
|
1105
1114
|
|
|
1106
1115
|
const { bgWidget, importedWidgets } = useDefineTemplate();
|
|
@@ -1118,7 +1127,7 @@ onMounted(() => {
|
|
|
1118
1127
|
mainRectTopPx.value = mainRect.value.top + "px";
|
|
1119
1128
|
mainRectBtmPx.value = (mainRect.value.bottom || 48) + "px";
|
|
1120
1129
|
tabsHeightFromBtm.value =
|
|
1121
|
-
mainRect.value.bottom + (tabs.value?.$el?.clientHeight ??
|
|
1130
|
+
mainRect.value.bottom + (tabs.value?.$el?.clientHeight ?? 48) + "px";
|
|
1122
1131
|
});
|
|
1123
1132
|
|
|
1124
1133
|
return (_ctx, _cache) => {
|
|
@@ -1127,7 +1136,7 @@ return (_ctx, _cache) => {
|
|
|
1127
1136
|
|
|
1128
1137
|
|
|
1129
1138
|
|
|
1130
|
-
return (openBlock(), createBlock(VMain, { class: "overflow-hidden
|
|
1139
|
+
return (openBlock(), createBlock(VMain, { class: "overflow-hidden" }, {
|
|
1131
1140
|
default: withCtx(() => [
|
|
1132
1141
|
(openBlock(), createBlock(Suspense, { suspensible: "" }, {
|
|
1133
1142
|
default: withCtx(() => [
|
|
@@ -1152,18 +1161,18 @@ return (_ctx, _cache) => {
|
|
|
1152
1161
|
onClick: _cache[0] || (_cache[0] = $event => (activeIdx.value = -1))
|
|
1153
1162
|
}, {
|
|
1154
1163
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
1155
|
-
createTextVNode("✕")
|
|
1164
|
+
createTextVNode("✕", -1 /* CACHED */)
|
|
1156
1165
|
])),
|
|
1157
|
-
_: 1 /* STABLE
|
|
1166
|
+
_: 1 /* STABLE */,
|
|
1167
|
+
__: [2]
|
|
1158
1168
|
})
|
|
1159
1169
|
]),
|
|
1160
1170
|
(openBlock(), createBlock(Suspense, { suspensible: "" }, {
|
|
1161
1171
|
default: withCtx(() => [
|
|
1162
1172
|
withDirectives(createElementVNode("div", _hoisted_3, [
|
|
1163
1173
|
(openBlock(), createBlock(resolveDynamicComponent(importedWidget.value.component), mergeProps({
|
|
1164
|
-
key: importedWidget.value.id
|
|
1165
|
-
|
|
1166
|
-
}, importedWidget.value.props), null, 16 /* FULL_PROPS */))
|
|
1174
|
+
key: importedWidget.value.id
|
|
1175
|
+
}, { ref_for: true }, importedWidget.value.props), null, 16 /* FULL_PROPS */))
|
|
1167
1176
|
], 512 /* NEED_PATCH */), [
|
|
1168
1177
|
[vShow, activeIdx.value === idx]
|
|
1169
1178
|
])
|
|
@@ -1212,6 +1221,6 @@ return (_ctx, _cache) => {
|
|
|
1212
1221
|
}
|
|
1213
1222
|
|
|
1214
1223
|
};
|
|
1215
|
-
const MobileLayout = /*#__PURE__*/_export_sfc(_sfc_main, [['__scopeId',"data-v-
|
|
1224
|
+
const MobileLayout = /*#__PURE__*/_export_sfc(_sfc_main, [['styles',[_style_0]],['__scopeId',"data-v-f4ab4c65"]]);
|
|
1216
1225
|
|
|
1217
1226
|
export { MobileLayout as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { createVNode, Transition, mergeProps, ref, onBeforeUnmount, watch, nextTick,
|
|
2
|
-
import { g as genericComponent, p as propsFactory, j as useProxiedModel, I as IN_BROWSER, a as useRender, z as focusableChildren, N as VDefaultsProvider, b as provideTheme, B as useBackgroundColor, K as useBorder, H as useDimension, L as useElevation,
|
|
3
|
-
import { m as makeVOverlayProps, V as VOverlay } from './VOverlay-
|
|
4
|
-
import { a as animate, g as getTargetBox, n as nullifyTransforms, c as acceleratedEasing, d as deceleratedEasing, s as standardEasing, b as useScopeId, f as forwardRefs } from './forwardRefs-
|
|
1
|
+
import { createVNode, Transition, mergeProps, ref, onBeforeUnmount, watch, nextTick, normalizeStyle, normalizeClass, mergeModels, useModel, createElementBlock, openBlock, withCtx, createBlock, createCommentVNode, resolveDynamicComponent, unref, renderSlot } from 'vue';
|
|
2
|
+
import { g as genericComponent, p as propsFactory, j as useProxiedModel, I as IN_BROWSER, a as useRender, z as focusableChildren, N as VDefaultsProvider, b as provideTheme, B as useBackgroundColor, K as useBorder, H as useDimension, L as useElevation, ai as useLocation, aj as usePosition, M as useRounded, f as makeThemeProps, h as makeTagProps, O as makeRoundedProps, am as makePositionProps, an as makeLocationProps, P as makeElevationProps, J as makeDimensionProps, i as makeComponentProps, Q as makeBorderProps, av as useDefineWidgets } from './asWebComponent-By_7_JjS.js';
|
|
3
|
+
import { m as makeVOverlayProps, V as VOverlay } from './VOverlay-yUn7p-Uf.js';
|
|
4
|
+
import { a as animate, g as getTargetBox, n as nullifyTransforms, c as acceleratedEasing, d as deceleratedEasing, s as standardEasing, b as useScopeId, f as forwardRefs } from './forwardRefs-BXxrv98s.js';
|
|
5
5
|
|
|
6
6
|
// Utilities
|
|
7
7
|
const makeVDialogTransitionProps = propsFactory({
|
|
8
8
|
target: [Object, Array]
|
|
9
9
|
}, 'v-dialog-transition');
|
|
10
|
+
const saved = new WeakMap();
|
|
10
11
|
const VDialogTransition = genericComponent()({
|
|
11
12
|
name: 'VDialogTransition',
|
|
12
13
|
props: makeVDialogTransitionProps(),
|
|
@@ -23,13 +24,15 @@ const VDialogTransition = genericComponent()({
|
|
|
23
24
|
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
24
25
|
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
25
26
|
el.style.visibility = '';
|
|
27
|
+
const dimensions = getDimensions(props.target, el);
|
|
26
28
|
const {
|
|
27
29
|
x,
|
|
28
30
|
y,
|
|
29
31
|
sx,
|
|
30
32
|
sy,
|
|
31
33
|
speed
|
|
32
|
-
} =
|
|
34
|
+
} = dimensions;
|
|
35
|
+
saved.set(el, dimensions);
|
|
33
36
|
const animation = animate(el, [{
|
|
34
37
|
transform: `translate(${x}px, ${y}px) scale(${sx}, ${sy})`,
|
|
35
38
|
opacity: 0
|
|
@@ -58,13 +61,19 @@ const VDialogTransition = genericComponent()({
|
|
|
58
61
|
},
|
|
59
62
|
async onLeave(el, done) {
|
|
60
63
|
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
64
|
+
let dimensions;
|
|
65
|
+
if (!saved.has(el) || Array.isArray(props.target) || props.target.offsetParent || props.target.getClientRects().length) {
|
|
66
|
+
dimensions = getDimensions(props.target, el);
|
|
67
|
+
} else {
|
|
68
|
+
dimensions = saved.get(el);
|
|
69
|
+
}
|
|
61
70
|
const {
|
|
62
71
|
x,
|
|
63
72
|
y,
|
|
64
73
|
sx,
|
|
65
74
|
sy,
|
|
66
75
|
speed
|
|
67
|
-
} =
|
|
76
|
+
} = dimensions;
|
|
68
77
|
const animation = animate(el, [{}, {
|
|
69
78
|
transform: `translate(${x}px, ${y}px) scale(${sx}, ${sy})`,
|
|
70
79
|
opacity: 0
|
|
@@ -208,7 +217,7 @@ const VDialog = genericComponent()({
|
|
|
208
217
|
}
|
|
209
218
|
function onAfterEnter() {
|
|
210
219
|
emit('afterEnter');
|
|
211
|
-
if (overlay.value?.contentEl && !overlay.value.contentEl.contains(document.activeElement)) {
|
|
220
|
+
if ((props.scrim || props.retainFocus) && overlay.value?.contentEl && !overlay.value.contentEl.contains(document.activeElement)) {
|
|
212
221
|
overlay.value.contentEl.focus({
|
|
213
222
|
preventScroll: true
|
|
214
223
|
});
|
|
@@ -296,7 +305,7 @@ const VSheet = genericComponent()({
|
|
|
296
305
|
const {
|
|
297
306
|
backgroundColorClasses,
|
|
298
307
|
backgroundColorStyles
|
|
299
|
-
} = useBackgroundColor(
|
|
308
|
+
} = useBackgroundColor(() => props.color);
|
|
300
309
|
const {
|
|
301
310
|
borderClasses
|
|
302
311
|
} = useBorder(props);
|
|
@@ -316,8 +325,8 @@ const VSheet = genericComponent()({
|
|
|
316
325
|
roundedClasses
|
|
317
326
|
} = useRounded(props);
|
|
318
327
|
useRender(() => createVNode(props.tag, {
|
|
319
|
-
"class": ['v-sheet', themeClasses.value, backgroundColorClasses.value, borderClasses.value, elevationClasses.value, positionClasses.value, roundedClasses.value, props.class],
|
|
320
|
-
"style": [backgroundColorStyles.value, dimensionStyles.value, locationStyles.value, props.style]
|
|
328
|
+
"class": normalizeClass(['v-sheet', themeClasses.value, backgroundColorClasses.value, borderClasses.value, elevationClasses.value, positionClasses.value, roundedClasses.value, props.class]),
|
|
329
|
+
"style": normalizeStyle([backgroundColorStyles.value, dimensionStyles.value, locationStyles.value, props.style])
|
|
321
330
|
}, slots));
|
|
322
331
|
return {};
|
|
323
332
|
}
|