@nmorph/nmorph-ui-kit 3.0.1 → 3.0.2
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/assets/icons/hand.svg.js +30 -9
- package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +28 -26
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +60 -59
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +28 -26
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +17 -10
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +82 -57
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +17 -13
- package/dist/index.umd.js +4 -4
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-avatar/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './NmorphMediaGallery.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as l, createElementBlock as
|
|
2
|
+
import v from "./NmorphMediaGallery.vue2.js";
|
|
3
|
+
import { openBlock as l, createElementBlock as n, Fragment as h, normalizeStyle as g, normalizeClass as f, renderList as y, createElementVNode as c, createBlock as m, createVNode as e, withCtx as a, createCommentVNode as i, toDisplayString as _, withModifiers as s } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import I from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
6
|
+
const w = ["aria-label", "onClick"], p = ["src", "poster", "title"], N = {
|
|
7
7
|
key: 2,
|
|
8
8
|
class: "nmorph-media-gallery__trigger-play"
|
|
9
|
-
},
|
|
9
|
+
}, k = {
|
|
10
10
|
key: 3,
|
|
11
11
|
class: "nmorph-media-gallery__trigger-name"
|
|
12
|
-
},
|
|
12
|
+
}, b = {
|
|
13
13
|
key: 4,
|
|
14
14
|
class: "nmorph-media-gallery__trigger-size"
|
|
15
15
|
}, z = {
|
|
@@ -26,11 +26,11 @@ const N = ["aria-label", "onClick"], k = ["src", "poster", "title"], w = {
|
|
|
26
26
|
class: "nmorph-media-gallery__file-size"
|
|
27
27
|
}, E = { class: "nmorph-media-gallery__action-element" }, V = { class: "nmorph-media-gallery__action-element" }, R = { class: "nmorph-media-gallery__action-element" }, x = { class: "nmorph-media-gallery__action-element" }, M = { class: "nmorph-media-gallery__action-element" };
|
|
28
28
|
function O(G, U, Z, o, j, W) {
|
|
29
|
-
return l(),
|
|
30
|
-
|
|
29
|
+
return l(), n(
|
|
30
|
+
h,
|
|
31
31
|
null,
|
|
32
32
|
[
|
|
33
|
-
o.props.showTrigger ? (l(),
|
|
33
|
+
o.props.showTrigger ? (l(), n(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
36
|
key: 0,
|
|
@@ -38,10 +38,10 @@ function O(G, U, Z, o, j, W) {
|
|
|
38
38
|
style: g(o.triggerStyle)
|
|
39
39
|
},
|
|
40
40
|
[
|
|
41
|
-
(l(!0),
|
|
42
|
-
|
|
41
|
+
(l(!0), n(
|
|
42
|
+
h,
|
|
43
43
|
null,
|
|
44
|
-
|
|
44
|
+
y(o.sourceList, (r, t) => (l(), n(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
key: `${r.kind}-${r.src}-${t}`,
|
|
@@ -60,8 +60,9 @@ function O(G, U, Z, o, j, W) {
|
|
|
60
60
|
alt: r.alt || o.getItemLabel(r, t),
|
|
61
61
|
title: o.getItemName(r),
|
|
62
62
|
fit: "cover",
|
|
63
|
+
design: "plain",
|
|
63
64
|
"frame-border": 0
|
|
64
|
-
}, null, 8, ["src", "alt", "title"])) : (l(),
|
|
65
|
+
}, null, 8, ["src", "alt", "title"])) : (l(), n("video", {
|
|
65
66
|
key: 1,
|
|
66
67
|
ref_for: !0,
|
|
67
68
|
ref: (d) => o.setTriggerVideoRef(t, d),
|
|
@@ -72,84 +73,84 @@ function O(G, U, Z, o, j, W) {
|
|
|
72
73
|
playsinline: "",
|
|
73
74
|
preload: "metadata",
|
|
74
75
|
title: o.getItemName(r)
|
|
75
|
-
}, null, 8,
|
|
76
|
-
o.props.showTriggerPlayButton && r.kind === "video" ? (l(),
|
|
76
|
+
}, null, 8, p)),
|
|
77
|
+
o.props.showTriggerPlayButton && r.kind === "video" ? (l(), n("span", N, [
|
|
77
78
|
e(o.NmorphIcon, {
|
|
78
79
|
size: "medium",
|
|
79
80
|
color: "var(--nmorph-contrast-text-color)"
|
|
80
81
|
}, {
|
|
81
|
-
default:
|
|
82
|
+
default: a(() => [
|
|
82
83
|
e(o.NmorphIconPlay)
|
|
83
84
|
]),
|
|
84
85
|
_: 1
|
|
85
86
|
/* STABLE */
|
|
86
87
|
})
|
|
87
88
|
])) : i("v-if", !0),
|
|
88
|
-
o.props.showTriggerName && o.getItemName(r) ? (l(),
|
|
89
|
+
o.props.showTriggerName && o.getItemName(r) ? (l(), n(
|
|
89
90
|
"span",
|
|
90
|
-
|
|
91
|
+
k,
|
|
91
92
|
_(o.getItemName(r)),
|
|
92
93
|
1
|
|
93
94
|
/* TEXT */
|
|
94
95
|
)) : i("v-if", !0),
|
|
95
|
-
o.props.showTriggerSize && o.getItemSize(r) ? (l(),
|
|
96
|
+
o.props.showTriggerSize && o.getItemSize(r) ? (l(), n(
|
|
96
97
|
"span",
|
|
97
|
-
|
|
98
|
+
b,
|
|
98
99
|
_(o.getItemSize(r)),
|
|
99
100
|
1
|
|
100
101
|
/* TEXT */
|
|
101
102
|
)) : i("v-if", !0)
|
|
102
|
-
], 8,
|
|
103
|
-
o.showTriggerActionsForItem(r) ? (l(),
|
|
104
|
-
o.showTriggerPreviewActionForItem(r) ? (l(),
|
|
103
|
+
], 8, w),
|
|
104
|
+
o.showTriggerActionsForItem(r) ? (l(), n("div", z, [
|
|
105
|
+
o.showTriggerPreviewActionForItem(r) ? (l(), n("button", {
|
|
105
106
|
key: 0,
|
|
106
107
|
type: "button",
|
|
107
108
|
class: "nmorph-media-gallery__trigger-action",
|
|
108
109
|
"aria-label": `Preview ${o.getItemLabel(r, t)}`,
|
|
109
|
-
onClick:
|
|
110
|
+
onClick: s((d) => o.openPreviewAt(t), ["stop"])
|
|
110
111
|
}, [
|
|
111
112
|
e(o.NmorphIcon, {
|
|
112
113
|
size: "small",
|
|
113
114
|
color: "var(--nmorph-contrast-text-color)"
|
|
114
115
|
}, {
|
|
115
|
-
default:
|
|
116
|
+
default: a(() => [
|
|
116
117
|
e(o.NmorphIconEye)
|
|
117
118
|
]),
|
|
118
119
|
_: 1
|
|
119
120
|
/* STABLE */
|
|
120
121
|
})
|
|
121
122
|
], 8, C)) : i("v-if", !0),
|
|
122
|
-
o.showTriggerFullscreenActionForItem(r) ? (l(),
|
|
123
|
+
o.showTriggerFullscreenActionForItem(r) ? (l(), n("button", {
|
|
123
124
|
key: 1,
|
|
124
125
|
type: "button",
|
|
125
126
|
class: "nmorph-media-gallery__trigger-action",
|
|
126
127
|
"aria-label": `Fullscreen ${o.getItemLabel(r, t)}`,
|
|
127
|
-
onClick:
|
|
128
|
+
onClick: s((d) => o.triggerFullscreenHandler(r, t), ["stop"])
|
|
128
129
|
}, [
|
|
129
130
|
e(o.NmorphIcon, {
|
|
130
131
|
size: "small",
|
|
131
132
|
color: "var(--nmorph-contrast-text-color)"
|
|
132
133
|
}, {
|
|
133
|
-
default:
|
|
134
|
+
default: a(() => [
|
|
134
135
|
e(o.NmorphIconFullScreen)
|
|
135
136
|
]),
|
|
136
137
|
_: 1
|
|
137
138
|
/* STABLE */
|
|
138
139
|
})
|
|
139
140
|
], 8, H)) : i("v-if", !0),
|
|
140
|
-
o.showTriggerDownloadActionForItem(r) ? (l(),
|
|
141
|
+
o.showTriggerDownloadActionForItem(r) ? (l(), n("a", {
|
|
141
142
|
key: 2,
|
|
142
143
|
href: o.getItemDownloadHref(r),
|
|
143
144
|
download: o.getItemName(r) || void 0,
|
|
144
145
|
class: "nmorph-media-gallery__trigger-action",
|
|
145
146
|
"aria-label": `Download ${o.getItemLabel(r, t)}`,
|
|
146
|
-
onClick:
|
|
147
|
+
onClick: s((d) => o.downloadItemHandler(r, t), ["stop"])
|
|
147
148
|
}, [
|
|
148
149
|
e(o.NmorphIcon, {
|
|
149
150
|
size: "small",
|
|
150
151
|
color: "var(--nmorph-contrast-text-color)"
|
|
151
152
|
}, {
|
|
152
|
-
default:
|
|
153
|
+
default: a(() => [
|
|
153
154
|
e(o.NmorphIconDownload)
|
|
154
155
|
]),
|
|
155
156
|
_: 1
|
|
@@ -185,12 +186,17 @@ function O(G, U, Z, o, j, W) {
|
|
|
185
186
|
onPrevious: o.previousHandler,
|
|
186
187
|
onNext: o.nextHandler
|
|
187
188
|
}, {
|
|
188
|
-
actions:
|
|
189
|
+
actions: a(() => [
|
|
189
190
|
c("div", E, [
|
|
190
|
-
e(o.NmorphButton, {
|
|
191
|
-
|
|
191
|
+
e(o.NmorphButton, {
|
|
192
|
+
class: "nmorph-preview-portal__control-button",
|
|
193
|
+
design: "plain",
|
|
194
|
+
borderless: "",
|
|
195
|
+
onClick: o.rotateRight
|
|
196
|
+
}, {
|
|
197
|
+
default: a(() => [
|
|
192
198
|
e(o.NmorphIcon, null, {
|
|
193
|
-
default:
|
|
199
|
+
default: a(() => [
|
|
194
200
|
e(o.NmorphIconRotateRight)
|
|
195
201
|
]),
|
|
196
202
|
_: 1
|
|
@@ -202,10 +208,15 @@ function O(G, U, Z, o, j, W) {
|
|
|
202
208
|
})
|
|
203
209
|
]),
|
|
204
210
|
c("div", V, [
|
|
205
|
-
e(o.NmorphButton, {
|
|
206
|
-
|
|
211
|
+
e(o.NmorphButton, {
|
|
212
|
+
class: "nmorph-preview-portal__control-button",
|
|
213
|
+
design: "plain",
|
|
214
|
+
borderless: "",
|
|
215
|
+
onClick: o.rotateLeft
|
|
216
|
+
}, {
|
|
217
|
+
default: a(() => [
|
|
207
218
|
e(o.NmorphIcon, null, {
|
|
208
|
-
default:
|
|
219
|
+
default: a(() => [
|
|
209
220
|
e(o.NmorphIconRotateLeft)
|
|
210
221
|
]),
|
|
211
222
|
_: 1
|
|
@@ -217,10 +228,15 @@ function O(G, U, Z, o, j, W) {
|
|
|
217
228
|
})
|
|
218
229
|
]),
|
|
219
230
|
c("div", R, [
|
|
220
|
-
e(o.NmorphButton, {
|
|
221
|
-
|
|
231
|
+
e(o.NmorphButton, {
|
|
232
|
+
class: "nmorph-preview-portal__control-button",
|
|
233
|
+
design: "plain",
|
|
234
|
+
borderless: "",
|
|
235
|
+
onClick: o.zoomIn
|
|
236
|
+
}, {
|
|
237
|
+
default: a(() => [
|
|
222
238
|
e(o.NmorphIcon, null, {
|
|
223
|
-
default:
|
|
239
|
+
default: a(() => [
|
|
224
240
|
e(o.NmorphIconZoomIn)
|
|
225
241
|
]),
|
|
226
242
|
_: 1
|
|
@@ -232,10 +248,15 @@ function O(G, U, Z, o, j, W) {
|
|
|
232
248
|
})
|
|
233
249
|
]),
|
|
234
250
|
c("div", x, [
|
|
235
|
-
e(o.NmorphButton, {
|
|
236
|
-
|
|
251
|
+
e(o.NmorphButton, {
|
|
252
|
+
class: "nmorph-preview-portal__control-button",
|
|
253
|
+
design: "plain",
|
|
254
|
+
borderless: "",
|
|
255
|
+
onClick: o.zoomOut
|
|
256
|
+
}, {
|
|
257
|
+
default: a(() => [
|
|
237
258
|
e(o.NmorphIcon, null, {
|
|
238
|
-
default:
|
|
259
|
+
default: a(() => [
|
|
239
260
|
e(o.NmorphIconZoomOut)
|
|
240
261
|
]),
|
|
241
262
|
_: 1
|
|
@@ -248,12 +269,15 @@ function O(G, U, Z, o, j, W) {
|
|
|
248
269
|
]),
|
|
249
270
|
c("div", M, [
|
|
250
271
|
e(o.NmorphButton, {
|
|
272
|
+
class: "nmorph-preview-portal__control-button",
|
|
273
|
+
design: "plain",
|
|
274
|
+
borderless: "",
|
|
251
275
|
disabled: o.scaleLevel === 1,
|
|
252
276
|
onClick: o.toggleNormalSize
|
|
253
277
|
}, {
|
|
254
|
-
default:
|
|
278
|
+
default: a(() => [
|
|
255
279
|
e(o.NmorphIcon, null, {
|
|
256
|
-
default:
|
|
280
|
+
default: a(() => [
|
|
257
281
|
o.scaleLevel < 1 ? (l(), m(o.NmorphIconEnlarge, { key: 0 })) : (l(), m(o.NmorphIconShrink, { key: 1 }))
|
|
258
282
|
]),
|
|
259
283
|
_: 1
|
|
@@ -265,7 +289,7 @@ function O(G, U, Z, o, j, W) {
|
|
|
265
289
|
}, 8, ["disabled"])
|
|
266
290
|
])
|
|
267
291
|
]),
|
|
268
|
-
default:
|
|
292
|
+
default: a(() => [
|
|
269
293
|
c("div", F, [
|
|
270
294
|
o.currentItem?.kind === "image" ? (l(), m(o.NmorphImage, {
|
|
271
295
|
key: 0,
|
|
@@ -273,11 +297,12 @@ function O(G, U, Z, o, j, W) {
|
|
|
273
297
|
alt: o.currentItem.alt || o.currentItem.name || "",
|
|
274
298
|
title: o.currentItem.name,
|
|
275
299
|
fit: o.props.imageFit,
|
|
300
|
+
design: "plain",
|
|
276
301
|
"frame-border": 0,
|
|
277
302
|
style: g({ transform: o.imageTransform }),
|
|
278
303
|
onPointerdown: o.pointerDownHandler,
|
|
279
304
|
onPointerup: o.pointerUpHandler
|
|
280
|
-
}, null, 8, ["src", "alt", "title", "fit", "style"])) : o.currentItem?.kind === "video" ? (l(),
|
|
305
|
+
}, null, 8, ["src", "alt", "title", "fit", "style"])) : o.currentItem?.kind === "video" ? (l(), n("video", {
|
|
281
306
|
key: 1,
|
|
282
307
|
ref: "currentVideoRef",
|
|
283
308
|
class: "nmorph-media-gallery__video",
|
|
@@ -295,45 +320,45 @@ function O(G, U, Z, o, j, W) {
|
|
|
295
320
|
onEnded: o.videoEndedHandler,
|
|
296
321
|
onError: o.videoErrorHandler
|
|
297
322
|
}, null, 40, S)) : i("v-if", !0),
|
|
298
|
-
o.currentName ? (l(),
|
|
323
|
+
o.currentName ? (l(), n(
|
|
299
324
|
"span",
|
|
300
325
|
D,
|
|
301
326
|
_(o.currentName),
|
|
302
327
|
1
|
|
303
328
|
/* TEXT */
|
|
304
329
|
)) : i("v-if", !0),
|
|
305
|
-
o.showFileActions ? (l(),
|
|
306
|
-
o.showVideoFullscreenAction ? (l(),
|
|
330
|
+
o.showFileActions ? (l(), n("div", L, [
|
|
331
|
+
o.showVideoFullscreenAction ? (l(), n("button", {
|
|
307
332
|
key: 0,
|
|
308
333
|
type: "button",
|
|
309
334
|
class: "nmorph-media-gallery__file-action",
|
|
310
335
|
"aria-label": `Fullscreen ${o.currentVideoName}`,
|
|
311
|
-
onClick:
|
|
336
|
+
onClick: s(o.fullscreenHandler, ["stop"])
|
|
312
337
|
}, [
|
|
313
338
|
e(o.NmorphIcon, {
|
|
314
339
|
size: "small",
|
|
315
340
|
color: "var(--nmorph-contrast-text-color)"
|
|
316
341
|
}, {
|
|
317
|
-
default:
|
|
342
|
+
default: a(() => [
|
|
318
343
|
e(o.NmorphIconFullScreen)
|
|
319
344
|
]),
|
|
320
345
|
_: 1
|
|
321
346
|
/* STABLE */
|
|
322
347
|
})
|
|
323
348
|
], 8, B)) : i("v-if", !0),
|
|
324
|
-
o.currentDownloadHref ? (l(),
|
|
349
|
+
o.currentDownloadHref ? (l(), n("a", {
|
|
325
350
|
key: 1,
|
|
326
351
|
href: o.currentDownloadHref,
|
|
327
352
|
download: o.currentItemName || void 0,
|
|
328
353
|
class: "nmorph-media-gallery__file-action",
|
|
329
354
|
"aria-label": `Download ${o.currentItemName || "media"}`,
|
|
330
|
-
onClick:
|
|
355
|
+
onClick: s(o.downloadHandler, ["stop"])
|
|
331
356
|
}, [
|
|
332
357
|
e(o.NmorphIcon, {
|
|
333
358
|
size: "small",
|
|
334
359
|
color: "var(--nmorph-contrast-text-color)"
|
|
335
360
|
}, {
|
|
336
|
-
default:
|
|
361
|
+
default: a(() => [
|
|
337
362
|
e(o.NmorphIconDownload)
|
|
338
363
|
]),
|
|
339
364
|
_: 1
|
|
@@ -341,7 +366,7 @@ function O(G, U, Z, o, j, W) {
|
|
|
341
366
|
})
|
|
342
367
|
], 8, T)) : i("v-if", !0)
|
|
343
368
|
])) : i("v-if", !0),
|
|
344
|
-
o.currentSize ? (l(),
|
|
369
|
+
o.currentSize ? (l(), n(
|
|
345
370
|
"span",
|
|
346
371
|
A,
|
|
347
372
|
_(o.currentSize),
|
|
@@ -358,7 +383,7 @@ function O(G, U, Z, o, j, W) {
|
|
|
358
383
|
/* STABLE_FRAGMENT */
|
|
359
384
|
);
|
|
360
385
|
}
|
|
361
|
-
const X = /* @__PURE__ */ I(
|
|
386
|
+
const X = /* @__PURE__ */ I(v, [["render", O], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue"]]);
|
|
362
387
|
export {
|
|
363
388
|
X as default
|
|
364
389
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-preview-portal{display:contents}.nmorph-preview-portal .nmorph-preview-portal__content{--nmorph-private-preview-portal-content-width: min( calc(100vw - 96px) , 960px);--nmorph-private-preview-portal-content-height: min( calc(100vh - 180px) , 720px);position:absolute;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-preview-portal-content-width);height:var(--nmorph-private-preview-portal-content-height);transform:translate(-50%,-50%);transition:var(--transition-04) opacity ease-in-out;pointer-events:none}.nmorph-preview-portal .nmorph-preview-portal__actions{position:absolute;bottom:-50px;left:50%;z-index:2;display:flex;height:0;transform:translate(-50%);transition:ease-in-out bottom var(--transition-03)}.nmorph-preview-portal .nmorph-button__content{box-shadow:none}.nmorph-preview-portal .nmorph-preview-portal__left,.nmorph-preview-portal .nmorph-preview-portal__right{z-index:2}.nmorph-preview-portal .nmorph-preview-portal__left{position:absolute;top:50%;left:-100%;transform:rotate(90deg) translate(-50%);transition:ease-in-out left var(--transition-03)}.nmorph-preview-portal .nmorph-preview-portal__right{position:absolute;top:50%;right:-100%;transform:rotate(270deg) translate(50%);transition:ease-in-out right var(--transition-03)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__actions{bottom:50px}.nmorph-preview-portal.nmorph-preview-portal--opened{--nmorph-private-preview-portal-btn-margin: 20px}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__left{left:var(--nmorph-private-preview-portal-btn-margin)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__right{right:var(--nmorph-private-preview-portal-btn-margin)}
|
|
1
|
+
.nmorph-preview-portal{display:contents}.nmorph-preview-portal .nmorph-preview-portal__content{--nmorph-private-preview-portal-content-width: min( calc(100vw - 96px) , 960px);--nmorph-private-preview-portal-content-height: min( calc(100vh - 180px) , 720px);position:absolute;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-preview-portal-content-width);height:var(--nmorph-private-preview-portal-content-height);transform:translate(-50%,-50%);transition:var(--transition-04) opacity ease-in-out;pointer-events:none}.nmorph-preview-portal .nmorph-preview-portal__actions{position:absolute;bottom:-50px;left:50%;z-index:2;display:flex;height:0;transform:translate(-50%);transition:ease-in-out bottom var(--transition-03)}.nmorph-preview-portal .nmorph-button__content{box-shadow:none}.nmorph-preview-portal .nmorph-preview-portal__control-button{background:var(--nmorph-overlay-color);border-radius:4px}.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content,.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-contrast-text-color);background:transparent;border:0;box-shadow:none}.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content .nmorph-icon,.nmorph-preview-portal .nmorph-preview-portal__control-button .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-preview-portal .nmorph-preview-portal__left,.nmorph-preview-portal .nmorph-preview-portal__right{z-index:2}.nmorph-preview-portal .nmorph-preview-portal__left{position:absolute;top:50%;left:-100%;transform:rotate(90deg) translate(-50%);transition:ease-in-out left var(--transition-03)}.nmorph-preview-portal .nmorph-preview-portal__right{position:absolute;top:50%;right:-100%;transform:rotate(270deg) translate(50%);transition:ease-in-out right var(--transition-03)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__actions{bottom:50px}.nmorph-preview-portal.nmorph-preview-portal--opened{--nmorph-private-preview-portal-btn-margin: 20px}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__left{left:var(--nmorph-private-preview-portal-btn-margin)}.nmorph-preview-portal.nmorph-preview-portal--opened .nmorph-preview-portal__right{right:var(--nmorph-private-preview-portal-btn-margin)}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './NmorphPreviewPortal.css';
|
|
2
2
|
import v from "./NmorphPreviewPortal.vue2.js";
|
|
3
|
-
import { openBlock as t, createBlock as c, Teleport as
|
|
3
|
+
import { openBlock as t, createBlock as c, Teleport as h, createElementVNode as m, normalizeStyle as f, normalizeClass as n, createVNode as e, withCtx as l, renderSlot as d, createElementBlock as a, createCommentVNode as i } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import w from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
function
|
|
7
|
-
return o.props.show ? (t(), c(
|
|
6
|
+
function _(p, r, N, o, C, k) {
|
|
7
|
+
return o.props.show ? (t(), c(h, {
|
|
8
8
|
key: 0,
|
|
9
9
|
to: "body"
|
|
10
10
|
}, [
|
|
@@ -12,15 +12,15 @@ function N(p, r, C, o, _, k) {
|
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
14
|
class: n(o.rootClasses),
|
|
15
|
-
style:
|
|
15
|
+
style: f(o.portalStyle)
|
|
16
16
|
},
|
|
17
17
|
[
|
|
18
18
|
e(o.NmorphOverlay, {
|
|
19
19
|
show: o.props.show,
|
|
20
20
|
"z-index": o.props.zIndex,
|
|
21
21
|
"disabled-teleport": "",
|
|
22
|
-
onOnOutsideClick: r[2] || (r[2] = (
|
|
23
|
-
onOnEscapeKeydown: r[3] || (r[3] = (
|
|
22
|
+
onOnOutsideClick: r[2] || (r[2] = (s) => o.emit("close")),
|
|
23
|
+
onOnEscapeKeydown: r[3] || (r[3] = (s) => o.emit("close"))
|
|
24
24
|
}, {
|
|
25
25
|
default: l(() => [
|
|
26
26
|
m(
|
|
@@ -34,7 +34,7 @@ function N(p, r, C, o, _, k) {
|
|
|
34
34
|
2
|
|
35
35
|
/* CLASS */
|
|
36
36
|
),
|
|
37
|
-
o.props.showNavigation ? (t(),
|
|
37
|
+
o.props.showNavigation ? (t(), a(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
40
|
key: 0,
|
|
@@ -42,8 +42,10 @@ function N(p, r, C, o, _, k) {
|
|
|
42
42
|
},
|
|
43
43
|
[
|
|
44
44
|
e(o.NmorphButton, {
|
|
45
|
+
class: "nmorph-preview-portal__control-button",
|
|
45
46
|
design: "plain",
|
|
46
|
-
|
|
47
|
+
borderless: "",
|
|
48
|
+
onClick: r[0] || (r[0] = (s) => o.emit("previous"))
|
|
47
49
|
}, {
|
|
48
50
|
default: l(() => [
|
|
49
51
|
e(o.NmorphIcon, null, {
|
|
@@ -61,7 +63,7 @@ function N(p, r, C, o, _, k) {
|
|
|
61
63
|
2
|
|
62
64
|
/* CLASS */
|
|
63
65
|
)) : i("v-if", !0),
|
|
64
|
-
o.props.showNavigation ? (t(),
|
|
66
|
+
o.props.showNavigation ? (t(), a(
|
|
65
67
|
"div",
|
|
66
68
|
{
|
|
67
69
|
key: 1,
|
|
@@ -69,8 +71,10 @@ function N(p, r, C, o, _, k) {
|
|
|
69
71
|
},
|
|
70
72
|
[
|
|
71
73
|
e(o.NmorphButton, {
|
|
74
|
+
class: "nmorph-preview-portal__control-button",
|
|
72
75
|
design: "plain",
|
|
73
|
-
|
|
76
|
+
borderless: "",
|
|
77
|
+
onClick: r[1] || (r[1] = (s) => o.emit("next"))
|
|
74
78
|
}, {
|
|
75
79
|
default: l(() => [
|
|
76
80
|
e(o.NmorphIcon, null, {
|
|
@@ -88,7 +92,7 @@ function N(p, r, C, o, _, k) {
|
|
|
88
92
|
2
|
|
89
93
|
/* CLASS */
|
|
90
94
|
)) : i("v-if", !0),
|
|
91
|
-
o.props.showActionBar ? (t(),
|
|
95
|
+
o.props.showActionBar ? (t(), a(
|
|
92
96
|
"div",
|
|
93
97
|
{
|
|
94
98
|
key: 2,
|
|
@@ -110,7 +114,7 @@ function N(p, r, C, o, _, k) {
|
|
|
110
114
|
)
|
|
111
115
|
])) : i("v-if", !0);
|
|
112
116
|
}
|
|
113
|
-
const
|
|
117
|
+
const B = /* @__PURE__ */ w(v, [["render", _], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue"]]);
|
|
114
118
|
export {
|
|
115
|
-
|
|
119
|
+
B as default
|
|
116
120
|
};
|