@nmorph/nmorph-ui-kit 2.2.51 → 2.2.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +118 -86
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +183 -225
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -0
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +298 -0
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue3.js +6 -0
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -0
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +110 -0
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue3.js +6 -0
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +6 -5
- package/dist/index.es.js +866 -863
- package/dist/index.umd.js +21 -21
- package/dist/outside-hooks/use-nmorph-theme.js +16 -16
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/index.d.ts +2 -0
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-file-card/types.d.ts +1 -1
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -3
- package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +26 -0
- package/dist/src/components/data/nmorph-media-gallery/types.d.ts +34 -0
- package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +43 -0
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +2 -1
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +2 -0
- package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +24 -23
|
@@ -1,35 +1,25 @@
|
|
|
1
1
|
import './NmorphImagePreview.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { createCssSizeVariables as
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import { defineComponent as ue, ref as w, watch as $, computed as a, onBeforeUnmount as de, openBlock as u, createElementBlock as c, Fragment as L, normalizeStyle as H, normalizeClass as me, createElementVNode as I, renderList as R, withModifiers as ce, createVNode as v, unref as m, createSlots as b, withCtx as n, renderSlot as g, toDisplayString as ve, createCommentVNode as N, createBlock as _, resolveDynamicComponent as G } from "vue";
|
|
3
|
+
import { useModifiers as ge } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssSizeVariables as fe } from "../../../utils/common.js";
|
|
5
|
+
import pe from "../nmorph-preview-portal/NmorphPreviewPortal.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import he from "../../../assets/icons/shrink.svg.js";
|
|
8
|
+
import S from "../nmorph-image/NmorphImage.vue.js";
|
|
7
9
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
import
|
|
10
|
+
import ye from "../../../assets/icons/rotate-right.svg.js";
|
|
11
|
+
import we from "../../../assets/icons/rotate-left.svg.js";
|
|
12
|
+
import _e from "../../../assets/icons/zoom-in.svg.js";
|
|
13
|
+
import ke from "../../../assets/icons/zoom-out.svg.js";
|
|
14
|
+
import P from "../../basic/nmorph-button/NmorphButton.vue.js";
|
|
11
15
|
/* empty css */
|
|
12
|
-
import
|
|
16
|
+
import O from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
13
17
|
/* empty css */
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
import $e from "../../../assets/icons/rotate-left.svg.js";
|
|
17
|
-
import Ie from "../../../assets/icons/zoom-in.svg.js";
|
|
18
|
-
import Le from "../../../assets/icons/zoom-out.svg.js";
|
|
19
|
-
import Ce from "../../../assets/icons/enlarge.svg.js";
|
|
20
|
-
const Se = ["aria-label", "onClick"], Ne = {
|
|
18
|
+
import $e from "../../../assets/icons/enlarge.svg.js";
|
|
19
|
+
const Le = ["aria-label", "onClick"], Ie = {
|
|
21
20
|
key: 0,
|
|
22
21
|
class: "nmorph-image-preview__trigger-more"
|
|
23
|
-
}, be = { class: "nmorph-image-
|
|
24
|
-
key: 0,
|
|
25
|
-
class: "nmorph-image-preview__left"
|
|
26
|
-
}, xe = {
|
|
27
|
-
key: 1,
|
|
28
|
-
class: "nmorph-image-preview__right"
|
|
29
|
-
}, Te = {
|
|
30
|
-
key: 2,
|
|
31
|
-
class: "nmorph-image-preview__actions"
|
|
32
|
-
}, Ve = { class: "nmorph-image-preview__action-element" }, We = /* @__PURE__ */ ce({
|
|
22
|
+
}, be = { class: "nmorph-image-preview__action-element" }, Pe = /* @__PURE__ */ ue({
|
|
33
23
|
__name: "NmorphImagePreview",
|
|
34
24
|
props: {
|
|
35
25
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -53,284 +43,252 @@ const Se = ["aria-label", "onClick"], Ne = {
|
|
|
53
43
|
triggerGap: { default: 8 }
|
|
54
44
|
},
|
|
55
45
|
emits: ["update:model-value"],
|
|
56
|
-
setup(
|
|
57
|
-
const t =
|
|
58
|
-
|
|
46
|
+
setup(Z, { emit: U }) {
|
|
47
|
+
const t = Z, i = w(t.modelValue);
|
|
48
|
+
$(
|
|
59
49
|
() => t.modelValue,
|
|
60
|
-
(e) =>
|
|
50
|
+
(e) => i.value = e
|
|
61
51
|
);
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
},
|
|
66
|
-
() =>
|
|
67
|
-
index:
|
|
52
|
+
const r = a(() => Array.isArray(t.src) ? t.src : [t.src]), p = (e) => {
|
|
53
|
+
const l = r.value.length - 1;
|
|
54
|
+
return l < 0 || e < 0 ? 0 : e > l ? l : e;
|
|
55
|
+
}, f = w(p(t.initialIndex)), h = a(() => p(f.value)), C = a(() => r.value[h.value] || ""), k = a(() => t.triggerView === "gallery" && r.value.length > 1), j = a(() => !t.triggerLimit || t.triggerLimit < 1 ? r.value.length : Math.min(Math.floor(t.triggerLimit), r.value.length)), y = a(
|
|
56
|
+
() => r.value.slice(0, j.value).map((e, l) => ({
|
|
57
|
+
index: l,
|
|
68
58
|
src: e
|
|
69
59
|
}))
|
|
70
|
-
),
|
|
71
|
-
() =>
|
|
72
|
-
"nmorph-image-preview": [
|
|
60
|
+
), B = a(() => r.value.length - y.value.length), q = a(() => y.value[y.value.length - 1]?.index ?? -1), x = a(
|
|
61
|
+
() => ge({
|
|
62
|
+
"nmorph-image-preview": [i.value && "opened", k.value && "gallery-trigger"]
|
|
73
63
|
})
|
|
74
|
-
),
|
|
75
|
-
|
|
76
|
-
() => [t.initialIndex,
|
|
64
|
+
), o = w(1);
|
|
65
|
+
$(
|
|
66
|
+
() => [t.initialIndex, r.value.length],
|
|
77
67
|
() => {
|
|
78
|
-
|
|
68
|
+
f.value = p(t.initialIndex);
|
|
79
69
|
}
|
|
80
70
|
);
|
|
81
|
-
const
|
|
82
|
-
|
|
71
|
+
const V = (e) => {
|
|
72
|
+
f.value = p(e), i.value = !0, D("update:model-value", i.value);
|
|
73
|
+
}, J = () => {
|
|
74
|
+
k.value || V(h.value);
|
|
75
|
+
}, Q = () => {
|
|
76
|
+
i.value = !1, D("update:model-value", i.value);
|
|
77
|
+
}, W = () => {
|
|
78
|
+
d.value = d.value + 90, d.value >= 360 && (d.value = 0);
|
|
79
|
+
}, X = () => {
|
|
80
|
+
d.value = d.value - 90, d.value <= -360 && (d.value = 0);
|
|
81
|
+
}, Y = () => {
|
|
82
|
+
o.value < t.maxScaleLevel && (o.value += t.scaleStep), o.value = parseFloat(o.value.toFixed(3));
|
|
83
83
|
}, ee = () => {
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
}, te = () => {
|
|
88
|
-
v.value = v.value + 90, v.value >= 360 && (v.value = 0);
|
|
84
|
+
o.value > t.minScaleLevel && (o.value -= t.scaleStep), o.value = parseFloat(o.value.toFixed(3));
|
|
85
|
+
}, te = a(() => o.value < 1), ae = () => {
|
|
86
|
+
o.value = 1;
|
|
89
87
|
}, oe = () => {
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
}, ae = () => {
|
|
94
|
-
l.value > t.minScaleLevel && (l.value -= t.scaleStep), l.value = parseFloat(l.value.toFixed(3));
|
|
95
|
-
}, le = o(() => l.value < 1), ne = () => {
|
|
96
|
-
l.value = 1;
|
|
97
|
-
}, ie = () => {
|
|
98
|
-
l.value = 1;
|
|
99
|
-
}, v = k(0), M = () => {
|
|
100
|
-
const e = s.value.length;
|
|
88
|
+
o.value = 1;
|
|
89
|
+
}, d = w(0), z = () => {
|
|
90
|
+
const e = r.value.length;
|
|
101
91
|
if (!e) return;
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
const e =
|
|
92
|
+
const l = h.value - 1;
|
|
93
|
+
f.value = l < 0 ? e - 1 : l;
|
|
94
|
+
}, T = () => {
|
|
95
|
+
const e = r.value.length;
|
|
106
96
|
if (!e) return;
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
!
|
|
111
|
-
},
|
|
112
|
-
typeof document > "u" || document.addEventListener("keydown",
|
|
113
|
-
},
|
|
114
|
-
typeof document > "u" || document.removeEventListener("keydown",
|
|
97
|
+
const l = h.value + 1;
|
|
98
|
+
f.value = l > e - 1 ? 0 : l;
|
|
99
|
+
}, A = (e) => {
|
|
100
|
+
!i.value || r.value.length < 2 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || (e.key === "ArrowLeft" && (e.preventDefault(), z()), e.key === "ArrowRight" && (e.preventDefault(), T()));
|
|
101
|
+
}, re = () => {
|
|
102
|
+
typeof document > "u" || document.addEventListener("keydown", A);
|
|
103
|
+
}, M = () => {
|
|
104
|
+
typeof document > "u" || document.removeEventListener("keydown", A);
|
|
115
105
|
};
|
|
116
|
-
|
|
117
|
-
|
|
106
|
+
$(
|
|
107
|
+
i,
|
|
118
108
|
(e) => {
|
|
119
|
-
e ?
|
|
109
|
+
e ? re() : M();
|
|
120
110
|
},
|
|
121
111
|
{ immediate: !0 }
|
|
122
|
-
),
|
|
123
|
-
const
|
|
112
|
+
), de(M);
|
|
113
|
+
const K = a(() => {
|
|
124
114
|
let e = {
|
|
125
|
-
icon:
|
|
126
|
-
handler:
|
|
115
|
+
icon: he,
|
|
116
|
+
handler: oe
|
|
127
117
|
};
|
|
128
|
-
return
|
|
129
|
-
icon:
|
|
130
|
-
handler:
|
|
118
|
+
return te.value && (e = {
|
|
119
|
+
icon: $e,
|
|
120
|
+
handler: ae
|
|
131
121
|
}), e;
|
|
132
|
-
}),
|
|
122
|
+
}), le = [
|
|
133
123
|
{
|
|
134
|
-
icon:
|
|
135
|
-
handler:
|
|
124
|
+
icon: ye,
|
|
125
|
+
handler: W
|
|
136
126
|
},
|
|
137
127
|
{
|
|
138
|
-
icon:
|
|
139
|
-
handler:
|
|
128
|
+
icon: we,
|
|
129
|
+
handler: X
|
|
140
130
|
},
|
|
141
131
|
{
|
|
142
|
-
icon:
|
|
143
|
-
handler:
|
|
132
|
+
icon: _e,
|
|
133
|
+
handler: Y
|
|
144
134
|
},
|
|
145
135
|
{
|
|
146
|
-
icon:
|
|
147
|
-
handler:
|
|
136
|
+
icon: ke,
|
|
137
|
+
handler: ee
|
|
148
138
|
}
|
|
149
|
-
],
|
|
150
|
-
() =>
|
|
139
|
+
], D = U, ne = a(() => r.value.length > 1), ie = a(() => t.showNavigationButtons && ne.value), se = a(
|
|
140
|
+
() => fe({
|
|
151
141
|
"--width": t.width,
|
|
152
142
|
"--height": t.height,
|
|
153
143
|
"--nmorph-image-preview-radius": t.radius,
|
|
154
144
|
"--nmorph-image-preview-trigger-gap": t.triggerGap
|
|
155
145
|
})
|
|
156
|
-
),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
})
|
|
160
|
-
), G = (e) => t.alt ? `${t.alt} ${e + 1}` : `Image ${e + 1}`;
|
|
161
|
-
return (e, u) => (n(), c(N, null, [
|
|
162
|
-
t.showTrigger ? (n(), c("div", {
|
|
146
|
+
), E = (e) => t.alt ? `${t.alt} ${e + 1}` : `Image ${e + 1}`;
|
|
147
|
+
return (e, l) => (u(), c(L, null, [
|
|
148
|
+
t.showTrigger ? (u(), c("div", {
|
|
163
149
|
key: 0,
|
|
164
|
-
class:
|
|
165
|
-
style:
|
|
150
|
+
class: me(x.value),
|
|
151
|
+
style: H(se.value)
|
|
166
152
|
}, [
|
|
167
|
-
|
|
153
|
+
I("div", {
|
|
168
154
|
class: "nmorph-image-preview__trigger",
|
|
169
|
-
onClick:
|
|
155
|
+
onClick: J
|
|
170
156
|
}, [
|
|
171
|
-
|
|
172
|
-
key: `${
|
|
157
|
+
k.value ? (u(!0), c(L, { key: 0 }, R(y.value, (s) => (u(), c("button", {
|
|
158
|
+
key: `${s.src}-${s.index}`,
|
|
173
159
|
type: "button",
|
|
174
160
|
class: "nmorph-image-preview__trigger-item",
|
|
175
|
-
"aria-label":
|
|
176
|
-
onClick:
|
|
161
|
+
"aria-label": E(s.index),
|
|
162
|
+
onClick: ce((F) => V(s.index), ["stop"])
|
|
177
163
|
}, [
|
|
178
|
-
|
|
179
|
-
src:
|
|
180
|
-
alt:
|
|
164
|
+
v(m(S), {
|
|
165
|
+
src: s.src,
|
|
166
|
+
alt: E(s.index),
|
|
181
167
|
fit: t.fit,
|
|
182
168
|
"frame-border": 0
|
|
183
|
-
},
|
|
169
|
+
}, b({ _: 2 }, [
|
|
184
170
|
e.$slots.loading ? {
|
|
185
171
|
name: "loading",
|
|
186
|
-
fn:
|
|
172
|
+
fn: n(() => [
|
|
187
173
|
g(e.$slots, "loading")
|
|
188
174
|
]),
|
|
189
175
|
key: "0"
|
|
190
176
|
} : void 0,
|
|
191
177
|
e.$slots.error ? {
|
|
192
178
|
name: "error",
|
|
193
|
-
fn:
|
|
179
|
+
fn: n(() => [
|
|
194
180
|
g(e.$slots, "error")
|
|
195
181
|
]),
|
|
196
182
|
key: "1"
|
|
197
183
|
} : void 0
|
|
198
184
|
]), 1032, ["src", "alt", "fit"]),
|
|
199
|
-
|
|
200
|
-
], 8,
|
|
185
|
+
s.index === q.value && B.value > 0 ? (u(), c("span", Ie, " +" + ve(B.value), 1)) : N("", !0)
|
|
186
|
+
], 8, Le))), 128)) : (u(), _(m(S), {
|
|
201
187
|
key: 1,
|
|
202
|
-
src:
|
|
188
|
+
src: C.value,
|
|
203
189
|
alt: t.alt,
|
|
204
190
|
fit: t.fit,
|
|
205
191
|
"frame-border": 0
|
|
206
|
-
},
|
|
192
|
+
}, b({ _: 2 }, [
|
|
207
193
|
e.$slots.loading ? {
|
|
208
194
|
name: "loading",
|
|
209
|
-
fn:
|
|
195
|
+
fn: n(() => [
|
|
210
196
|
g(e.$slots, "loading")
|
|
211
197
|
]),
|
|
212
198
|
key: "0"
|
|
213
199
|
} : void 0,
|
|
214
200
|
e.$slots.error ? {
|
|
215
201
|
name: "error",
|
|
216
|
-
fn:
|
|
202
|
+
fn: n(() => [
|
|
217
203
|
g(e.$slots, "error")
|
|
218
204
|
]),
|
|
219
205
|
key: "1"
|
|
220
206
|
} : void 0
|
|
221
207
|
]), 1032, ["src", "alt", "fit"]))
|
|
222
208
|
])
|
|
223
|
-
], 6)) :
|
|
224
|
-
|
|
209
|
+
], 6)) : N("", !0),
|
|
210
|
+
i.value ? (u(), _(pe, {
|
|
225
211
|
key: 1,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
key: "0"
|
|
254
|
-
} : void 0,
|
|
255
|
-
e.$slots.error ? {
|
|
256
|
-
name: "error",
|
|
257
|
-
fn: r(() => [
|
|
258
|
-
g(e.$slots, "error")
|
|
259
|
-
]),
|
|
260
|
-
key: "1"
|
|
261
|
-
} : void 0
|
|
262
|
-
]), 1032, ["src", "alt", "style"])
|
|
263
|
-
]),
|
|
264
|
-
R.value ? (n(), c("div", Be, [
|
|
265
|
-
i(a(I), { onClick: M }, {
|
|
266
|
-
default: r(() => [
|
|
267
|
-
i(a(L), null, {
|
|
268
|
-
default: r(() => [
|
|
269
|
-
i(a(J))
|
|
270
|
-
]),
|
|
271
|
-
_: 1
|
|
272
|
-
})
|
|
212
|
+
show: i.value,
|
|
213
|
+
"z-index": t.zIndex,
|
|
214
|
+
"root-class": "nmorph-image-preview__portal",
|
|
215
|
+
"state-class": x.value,
|
|
216
|
+
"content-class": "nmorph-image-preview__content",
|
|
217
|
+
"left-class": "nmorph-image-preview__left",
|
|
218
|
+
"right-class": "nmorph-image-preview__right",
|
|
219
|
+
"actions-class": "nmorph-image-preview__actions",
|
|
220
|
+
"navigation-button-margin": t.navigationButtonMargin,
|
|
221
|
+
"show-navigation": ie.value,
|
|
222
|
+
"show-action-bar": t.showActionBar,
|
|
223
|
+
onClose: Q,
|
|
224
|
+
onPrevious: z,
|
|
225
|
+
onNext: T
|
|
226
|
+
}, {
|
|
227
|
+
actions: n(() => [
|
|
228
|
+
(u(), c(L, null, R(le, (s, F) => I("div", {
|
|
229
|
+
key: F,
|
|
230
|
+
class: "nmorph-image-preview__action-element"
|
|
231
|
+
}, [
|
|
232
|
+
v(m(P), {
|
|
233
|
+
onClick: s.handler
|
|
234
|
+
}, {
|
|
235
|
+
default: n(() => [
|
|
236
|
+
v(m(O), null, {
|
|
237
|
+
default: n(() => [
|
|
238
|
+
(u(), _(G(s.icon)))
|
|
273
239
|
]),
|
|
274
|
-
_:
|
|
275
|
-
})
|
|
276
|
-
])
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
240
|
+
_: 2
|
|
241
|
+
}, 1024)
|
|
242
|
+
]),
|
|
243
|
+
_: 2
|
|
244
|
+
}, 1032, ["onClick"])
|
|
245
|
+
])), 64)),
|
|
246
|
+
I("div", be, [
|
|
247
|
+
v(m(P), {
|
|
248
|
+
disabled: o.value === 1,
|
|
249
|
+
onClick: K.value.handler
|
|
250
|
+
}, {
|
|
251
|
+
default: n(() => [
|
|
252
|
+
v(m(O), null, {
|
|
253
|
+
default: n(() => [
|
|
254
|
+
(u(), _(G(K.value.icon)))
|
|
286
255
|
]),
|
|
287
256
|
_: 1
|
|
288
257
|
})
|
|
289
|
-
])
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
})
|
|
321
|
-
]),
|
|
322
|
-
_: 1
|
|
323
|
-
}, 8, ["disabled", "onClick"])
|
|
324
|
-
])
|
|
325
|
-
])) : f("", !0)
|
|
326
|
-
]),
|
|
327
|
-
_: 3
|
|
328
|
-
}, 8, ["show", "z-index"])
|
|
329
|
-
], 6)
|
|
330
|
-
])) : f("", !0)
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["disabled", "onClick"])
|
|
261
|
+
])
|
|
262
|
+
]),
|
|
263
|
+
default: n(() => [
|
|
264
|
+
v(m(S), {
|
|
265
|
+
src: C.value,
|
|
266
|
+
alt: t.alt,
|
|
267
|
+
fit: "contain",
|
|
268
|
+
"frame-border": 0,
|
|
269
|
+
style: H({ transform: `rotate(${d.value}deg) scale(${o.value})` })
|
|
270
|
+
}, b({ _: 2 }, [
|
|
271
|
+
e.$slots.loading ? {
|
|
272
|
+
name: "loading",
|
|
273
|
+
fn: n(() => [
|
|
274
|
+
g(e.$slots, "loading")
|
|
275
|
+
]),
|
|
276
|
+
key: "0"
|
|
277
|
+
} : void 0,
|
|
278
|
+
e.$slots.error ? {
|
|
279
|
+
name: "error",
|
|
280
|
+
fn: n(() => [
|
|
281
|
+
g(e.$slots, "error")
|
|
282
|
+
]),
|
|
283
|
+
key: "1"
|
|
284
|
+
} : void 0
|
|
285
|
+
]), 1032, ["src", "alt", "style"])
|
|
286
|
+
]),
|
|
287
|
+
_: 3
|
|
288
|
+
}, 8, ["show", "z-index", "state-class", "navigation-button-margin", "show-navigation", "show-action-bar"])) : N("", !0)
|
|
331
289
|
], 64));
|
|
332
290
|
}
|
|
333
291
|
});
|
|
334
292
|
export {
|
|
335
|
-
|
|
293
|
+
Pe as default
|
|
336
294
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.nmorph-media-gallery{display:contents}.nmorph-media-gallery .nmorph-media-gallery__stage{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;pointer-events:none}.nmorph-media-gallery .nmorph-image{width:100%;height:100%;transition:transform var(--transition-03) ease-in-out;pointer-events:none}.nmorph-media-gallery .nmorph-image img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__video{display:block;width:100%;max-width:100%;height:100%;max-height:100%;background:var(--nmorph-black-color);border-radius:var(--default-border-radius);object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__play{position:absolute;top:50%;left:50%;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:54px;height:54px;padding:0;color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--border-radius-circular);transform:translate(-50%,-50%);cursor:pointer;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__play .nmorph-icon{--nmorph-icon-color: var(--nmorph-contrast-text-color);--color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery .nmorph-media-gallery__play:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery.nmorph-media-gallery--video-playing .nmorph-media-gallery__play{opacity:.72}.nmorph-media-gallery .nmorph-media-gallery__action-element{margin-right:var(--indentation-03)}.nmorph-media-gallery.nmorph-media-gallery--image-cover .nmorph-image img{width:100%;height:100%;object-fit:cover}.nmorph-media-gallery.nmorph-media-gallery--video-cover .nmorph-media-gallery__video{object-fit:cover}
|