@nmorph/nmorph-ui-kit 2.2.42 → 2.2.44
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/chevron-up.svg.js +4 -4
- package/dist/assets/icons/download.svg.js +5 -5
- package/dist/assets/icons/open.svg.js +2 -2
- package/dist/assets/icons/search.svg.js +1 -1
- package/dist/assets/icons/smile.svg.js +4 -4
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +16 -16
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -0
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +207 -0
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue3.js +6 -0
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -0
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +371 -0
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue3.js +6 -0
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -0
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +124 -0
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue3.js +6 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +164 -150
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +8 -8
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -0
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +147 -0
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue3.js +6 -0
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +154 -125
- package/dist/components/form/nmorph-file-upload/types.js +9 -9
- package/dist/hooks/use-common-styles.js +73 -22
- package/dist/index.es.js +861 -849
- package/dist/index.umd.js +76 -25
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/index.d.ts +8 -0
- package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +38 -0
- package/dist/src/components/data/nmorph-audio-preview/types.d.ts +20 -0
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +25 -0
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +50 -0
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +30 -0
- package/dist/src/components/data/nmorph-file-card/types.d.ts +18 -0
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +41 -0
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +27 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +4 -0
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +1 -1
- package/dist/src/utils/file-types.d.ts +8 -1
- package/dist/style.css +1 -1
- package/dist/utils/file-types.js +28 -21
- package/package.json +23 -24
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import './NmorphImagePreview.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { createCssSizeVariables as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { defineComponent as ce, ref as k, watch as S, computed as o, onBeforeUnmount as ge, openBlock as n, createElementBlock as c, Fragment as N, normalizeStyle as b, normalizeClass as Z, createElementVNode as h, renderList as U, withModifiers as fe, createVNode as i, unref as a, createSlots as B, withCtx as r, renderSlot as g, toDisplayString as pe, createCommentVNode as f, createBlock as $, Teleport as he, resolveDynamicComponent as j } from "vue";
|
|
3
|
+
import { useModifiers as ye } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssSizeVariables as q } from "../../../utils/common.js";
|
|
5
|
+
import _e from "../../../assets/icons/shrink.svg.js";
|
|
6
|
+
import x from "../nmorph-image/NmorphImage.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import we from "../../others/nmorph-overlay/NmorphOverlay.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import I from "../../basic/nmorph-button/NmorphButton.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
12
|
+
import L from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
const
|
|
14
|
+
import J from "../../../assets/icons/chevron-down.svg.js";
|
|
15
|
+
import ke from "../../../assets/icons/rotate-right.svg.js";
|
|
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 = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "nmorph-image-preview__trigger-more"
|
|
23
|
-
},
|
|
23
|
+
}, be = { class: "nmorph-image-preview__content" }, Be = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "nmorph-image-preview__left"
|
|
26
|
-
},
|
|
26
|
+
}, xe = {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: "nmorph-image-preview__right"
|
|
29
|
-
},
|
|
29
|
+
}, Te = {
|
|
30
30
|
key: 2,
|
|
31
31
|
class: "nmorph-image-preview__actions"
|
|
32
|
-
},
|
|
32
|
+
}, Ve = { class: "nmorph-image-preview__action-element" }, We = /* @__PURE__ */ ce({
|
|
33
33
|
__name: "NmorphImagePreview",
|
|
34
34
|
props: {
|
|
35
35
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -53,238 +53,252 @@ const $e = ["aria-label", "onClick"], Ie = {
|
|
|
53
53
|
triggerGap: { default: 8 }
|
|
54
54
|
},
|
|
55
55
|
emits: ["update:model-value"],
|
|
56
|
-
setup(
|
|
57
|
-
const t =
|
|
58
|
-
|
|
56
|
+
setup(Q, { emit: W }) {
|
|
57
|
+
const t = Q, d = k(t.modelValue);
|
|
58
|
+
S(
|
|
59
59
|
() => t.modelValue,
|
|
60
|
-
(e) =>
|
|
60
|
+
(e) => d.value = e
|
|
61
61
|
);
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
},
|
|
66
|
-
() =>
|
|
67
|
-
index:
|
|
62
|
+
const s = o(() => Array.isArray(t.src) ? t.src : [t.src]), y = (e) => {
|
|
63
|
+
const u = s.value.length - 1;
|
|
64
|
+
return u < 0 || e < 0 ? 0 : e > u ? u : e;
|
|
65
|
+
}, p = k(y(t.initialIndex)), _ = o(() => y(p.value)), T = o(() => s.value[_.value] || ""), C = o(() => t.triggerView === "gallery" && s.value.length > 1), X = o(() => !t.triggerLimit || t.triggerLimit < 1 ? s.value.length : Math.min(Math.floor(t.triggerLimit), s.value.length)), w = o(
|
|
66
|
+
() => s.value.slice(0, X.value).map((e, u) => ({
|
|
67
|
+
index: u,
|
|
68
68
|
src: e
|
|
69
69
|
}))
|
|
70
|
-
),
|
|
71
|
-
() =>
|
|
72
|
-
"nmorph-image-preview": [
|
|
70
|
+
), V = o(() => s.value.length - w.value.length), Y = o(() => w.value[w.value.length - 1]?.index ?? -1), z = o(
|
|
71
|
+
() => ye({
|
|
72
|
+
"nmorph-image-preview": [d.value && "opened", C.value && "gallery-trigger"]
|
|
73
73
|
})
|
|
74
|
-
),
|
|
75
|
-
|
|
76
|
-
() => [t.initialIndex,
|
|
74
|
+
), l = k(1);
|
|
75
|
+
S(
|
|
76
|
+
() => [t.initialIndex, s.value.length],
|
|
77
77
|
() => {
|
|
78
|
-
|
|
78
|
+
p.value = y(t.initialIndex);
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
},
|
|
81
|
+
const A = (e) => {
|
|
82
|
+
p.value = y(e), d.value = !0, O("update:model-value", d.value);
|
|
83
|
+
}, ee = () => {
|
|
84
|
+
C.value || A(_.value);
|
|
85
|
+
}, K = () => {
|
|
86
|
+
d.value = !1, O("update:model-value", d.value);
|
|
87
|
+
}, te = () => {
|
|
88
88
|
v.value = v.value + 90, v.value >= 360 && (v.value = 0);
|
|
89
|
-
},
|
|
89
|
+
}, oe = () => {
|
|
90
90
|
v.value = v.value - 90, v.value <= -360 && (v.value = 0);
|
|
91
|
-
}, Y = () => {
|
|
92
|
-
r.value < t.maxScaleLevel && (r.value += t.scaleStep), r.value = parseFloat(r.value.toFixed(3));
|
|
93
|
-
}, ee = () => {
|
|
94
|
-
r.value > t.minScaleLevel && (r.value -= t.scaleStep), r.value = parseFloat(r.value.toFixed(3));
|
|
95
|
-
}, te = a(() => r.value < 1), ae = () => {
|
|
96
|
-
r.value = 1;
|
|
97
|
-
}, le = () => {
|
|
98
|
-
r.value = 1;
|
|
99
|
-
}, v = k(0), oe = () => {
|
|
100
|
-
const e = u.value.length;
|
|
101
|
-
if (!e) return;
|
|
102
|
-
const s = y.value - 1;
|
|
103
|
-
f.value = s < 0 ? e - 1 : s;
|
|
104
91
|
}, re = () => {
|
|
105
|
-
|
|
92
|
+
l.value < t.maxScaleLevel && (l.value += t.scaleStep), l.value = parseFloat(l.value.toFixed(3));
|
|
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;
|
|
106
101
|
if (!e) return;
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
},
|
|
102
|
+
const u = _.value - 1;
|
|
103
|
+
p.value = u < 0 ? e - 1 : u;
|
|
104
|
+
}, D = () => {
|
|
105
|
+
const e = s.value.length;
|
|
106
|
+
if (!e) return;
|
|
107
|
+
const u = _.value + 1;
|
|
108
|
+
p.value = u > e - 1 ? 0 : u;
|
|
109
|
+
}, E = (e) => {
|
|
110
|
+
!d.value || s.value.length < 2 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || (e.key === "ArrowLeft" && (e.preventDefault(), M()), e.key === "ArrowRight" && (e.preventDefault(), D()));
|
|
111
|
+
}, se = () => {
|
|
112
|
+
typeof document > "u" || document.addEventListener("keydown", E);
|
|
113
|
+
}, F = () => {
|
|
114
|
+
typeof document > "u" || document.removeEventListener("keydown", E);
|
|
115
|
+
};
|
|
116
|
+
S(
|
|
117
|
+
d,
|
|
118
|
+
(e) => {
|
|
119
|
+
e ? se() : F();
|
|
120
|
+
},
|
|
121
|
+
{ immediate: !0 }
|
|
122
|
+
), ge(F);
|
|
123
|
+
const H = o(() => {
|
|
110
124
|
let e = {
|
|
111
|
-
icon:
|
|
112
|
-
handler:
|
|
125
|
+
icon: _e,
|
|
126
|
+
handler: ie
|
|
113
127
|
};
|
|
114
|
-
return
|
|
115
|
-
icon:
|
|
116
|
-
handler:
|
|
128
|
+
return le.value && (e = {
|
|
129
|
+
icon: Ce,
|
|
130
|
+
handler: ne
|
|
117
131
|
}), e;
|
|
118
|
-
}),
|
|
132
|
+
}), ue = [
|
|
119
133
|
{
|
|
120
|
-
icon:
|
|
121
|
-
handler:
|
|
134
|
+
icon: ke,
|
|
135
|
+
handler: te
|
|
122
136
|
},
|
|
123
137
|
{
|
|
124
|
-
icon:
|
|
125
|
-
handler:
|
|
138
|
+
icon: $e,
|
|
139
|
+
handler: oe
|
|
126
140
|
},
|
|
127
141
|
{
|
|
128
|
-
icon:
|
|
129
|
-
handler:
|
|
142
|
+
icon: Ie,
|
|
143
|
+
handler: re
|
|
130
144
|
},
|
|
131
145
|
{
|
|
132
|
-
icon:
|
|
133
|
-
handler:
|
|
146
|
+
icon: Le,
|
|
147
|
+
handler: ae
|
|
134
148
|
}
|
|
135
|
-
],
|
|
136
|
-
() =>
|
|
149
|
+
], O = W, de = o(() => s.value.length > 1), R = o(() => t.showNavigationButtons && de.value), me = o(
|
|
150
|
+
() => q({
|
|
137
151
|
"--width": t.width,
|
|
138
152
|
"--height": t.height,
|
|
139
153
|
"--nmorph-image-preview-radius": t.radius,
|
|
140
154
|
"--nmorph-image-preview-trigger-gap": t.triggerGap
|
|
141
155
|
})
|
|
142
|
-
),
|
|
143
|
-
() =>
|
|
156
|
+
), ve = o(
|
|
157
|
+
() => q({
|
|
144
158
|
"--nmorph-image-preview-btn-margin": t.navigationButtonMargin
|
|
145
159
|
})
|
|
146
|
-
),
|
|
147
|
-
return (e,
|
|
148
|
-
t.showTrigger ? (n(),
|
|
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", {
|
|
149
163
|
key: 0,
|
|
150
|
-
class:
|
|
151
|
-
style:
|
|
164
|
+
class: Z(z.value),
|
|
165
|
+
style: b(me.value)
|
|
152
166
|
}, [
|
|
153
167
|
h("div", {
|
|
154
168
|
class: "nmorph-image-preview__trigger",
|
|
155
|
-
onClick:
|
|
169
|
+
onClick: ee
|
|
156
170
|
}, [
|
|
157
|
-
|
|
158
|
-
key: `${
|
|
171
|
+
C.value ? (n(!0), c(N, { key: 0 }, U(w.value, (m) => (n(), c("button", {
|
|
172
|
+
key: `${m.src}-${m.index}`,
|
|
159
173
|
type: "button",
|
|
160
174
|
class: "nmorph-image-preview__trigger-item",
|
|
161
|
-
"aria-label":
|
|
162
|
-
onClick:
|
|
175
|
+
"aria-label": G(m.index),
|
|
176
|
+
onClick: fe((P) => A(m.index), ["stop"])
|
|
163
177
|
}, [
|
|
164
|
-
i(
|
|
165
|
-
src:
|
|
166
|
-
alt:
|
|
178
|
+
i(a(x), {
|
|
179
|
+
src: m.src,
|
|
180
|
+
alt: G(m.index),
|
|
167
181
|
fit: t.fit,
|
|
168
182
|
"frame-border": 0
|
|
169
|
-
},
|
|
183
|
+
}, B({ _: 2 }, [
|
|
170
184
|
e.$slots.loading ? {
|
|
171
185
|
name: "loading",
|
|
172
|
-
fn:
|
|
186
|
+
fn: r(() => [
|
|
173
187
|
g(e.$slots, "loading")
|
|
174
188
|
]),
|
|
175
189
|
key: "0"
|
|
176
190
|
} : void 0,
|
|
177
191
|
e.$slots.error ? {
|
|
178
192
|
name: "error",
|
|
179
|
-
fn:
|
|
193
|
+
fn: r(() => [
|
|
180
194
|
g(e.$slots, "error")
|
|
181
195
|
]),
|
|
182
196
|
key: "1"
|
|
183
197
|
} : void 0
|
|
184
198
|
]), 1032, ["src", "alt", "fit"]),
|
|
185
|
-
|
|
186
|
-
], 8,
|
|
199
|
+
m.index === Y.value && V.value > 0 ? (n(), c("span", Ne, " +" + pe(V.value), 1)) : f("", !0)
|
|
200
|
+
], 8, Se))), 128)) : (n(), $(a(x), {
|
|
187
201
|
key: 1,
|
|
188
|
-
src:
|
|
202
|
+
src: T.value,
|
|
189
203
|
alt: t.alt,
|
|
190
204
|
fit: t.fit,
|
|
191
205
|
"frame-border": 0
|
|
192
|
-
},
|
|
206
|
+
}, B({ _: 2 }, [
|
|
193
207
|
e.$slots.loading ? {
|
|
194
208
|
name: "loading",
|
|
195
|
-
fn:
|
|
209
|
+
fn: r(() => [
|
|
196
210
|
g(e.$slots, "loading")
|
|
197
211
|
]),
|
|
198
212
|
key: "0"
|
|
199
213
|
} : void 0,
|
|
200
214
|
e.$slots.error ? {
|
|
201
215
|
name: "error",
|
|
202
|
-
fn:
|
|
216
|
+
fn: r(() => [
|
|
203
217
|
g(e.$slots, "error")
|
|
204
218
|
]),
|
|
205
219
|
key: "1"
|
|
206
220
|
} : void 0
|
|
207
221
|
]), 1032, ["src", "alt", "fit"]))
|
|
208
222
|
])
|
|
209
|
-
], 6)) :
|
|
210
|
-
|
|
223
|
+
], 6)) : f("", !0),
|
|
224
|
+
d.value ? (n(), $(he, {
|
|
211
225
|
key: 1,
|
|
212
226
|
to: "body"
|
|
213
227
|
}, [
|
|
214
228
|
h("div", {
|
|
215
|
-
class:
|
|
216
|
-
style:
|
|
229
|
+
class: Z(["nmorph-image-preview__portal", z.value]),
|
|
230
|
+
style: b(ve.value)
|
|
217
231
|
}, [
|
|
218
|
-
i(
|
|
219
|
-
show:
|
|
232
|
+
i(a(we), {
|
|
233
|
+
show: d.value,
|
|
220
234
|
"z-index": t.zIndex,
|
|
221
235
|
"disabled-teleport": "",
|
|
222
|
-
onOnOutsideClick:
|
|
223
|
-
onOnEscapeKeydown:
|
|
236
|
+
onOnOutsideClick: K,
|
|
237
|
+
onOnEscapeKeydown: K
|
|
224
238
|
}, {
|
|
225
|
-
default:
|
|
226
|
-
h("div",
|
|
227
|
-
i(
|
|
228
|
-
src:
|
|
239
|
+
default: r(() => [
|
|
240
|
+
h("div", be, [
|
|
241
|
+
i(a(x), {
|
|
242
|
+
src: T.value,
|
|
229
243
|
alt: t.alt,
|
|
230
244
|
fit: "contain",
|
|
231
245
|
"frame-border": 0,
|
|
232
|
-
style:
|
|
233
|
-
},
|
|
246
|
+
style: b({ transform: `rotate(${v.value}deg) scale(${l.value})` })
|
|
247
|
+
}, B({ _: 2 }, [
|
|
234
248
|
e.$slots.loading ? {
|
|
235
249
|
name: "loading",
|
|
236
|
-
fn:
|
|
250
|
+
fn: r(() => [
|
|
237
251
|
g(e.$slots, "loading")
|
|
238
252
|
]),
|
|
239
253
|
key: "0"
|
|
240
254
|
} : void 0,
|
|
241
255
|
e.$slots.error ? {
|
|
242
256
|
name: "error",
|
|
243
|
-
fn:
|
|
257
|
+
fn: r(() => [
|
|
244
258
|
g(e.$slots, "error")
|
|
245
259
|
]),
|
|
246
260
|
key: "1"
|
|
247
261
|
} : void 0
|
|
248
262
|
]), 1032, ["src", "alt", "style"])
|
|
249
263
|
]),
|
|
250
|
-
|
|
251
|
-
i(
|
|
252
|
-
default:
|
|
253
|
-
i(
|
|
254
|
-
default:
|
|
255
|
-
i(
|
|
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))
|
|
256
270
|
]),
|
|
257
271
|
_: 1
|
|
258
272
|
})
|
|
259
273
|
]),
|
|
260
274
|
_: 1
|
|
261
275
|
})
|
|
262
|
-
])) :
|
|
263
|
-
|
|
264
|
-
i(
|
|
265
|
-
default:
|
|
266
|
-
i(
|
|
267
|
-
default:
|
|
268
|
-
i(
|
|
276
|
+
])) : f("", !0),
|
|
277
|
+
R.value ? (n(), c("div", xe, [
|
|
278
|
+
i(a(I), { onClick: D }, {
|
|
279
|
+
default: r(() => [
|
|
280
|
+
i(a(L), null, {
|
|
281
|
+
default: r(() => [
|
|
282
|
+
i(a(J))
|
|
269
283
|
]),
|
|
270
284
|
_: 1
|
|
271
285
|
})
|
|
272
286
|
]),
|
|
273
287
|
_: 1
|
|
274
288
|
})
|
|
275
|
-
])) :
|
|
276
|
-
t.showActionBar ? (n(),
|
|
277
|
-
(n(),
|
|
278
|
-
key:
|
|
289
|
+
])) : f("", !0),
|
|
290
|
+
t.showActionBar ? (n(), c("div", Te, [
|
|
291
|
+
(n(), c(N, null, U(ue, (m, P) => h("div", {
|
|
292
|
+
key: P,
|
|
279
293
|
class: "nmorph-image-preview__action-element"
|
|
280
294
|
}, [
|
|
281
|
-
i(
|
|
282
|
-
onClick:
|
|
295
|
+
i(a(I), {
|
|
296
|
+
onClick: m.handler
|
|
283
297
|
}, {
|
|
284
|
-
default:
|
|
285
|
-
i(
|
|
286
|
-
default:
|
|
287
|
-
(n(), $(
|
|
298
|
+
default: r(() => [
|
|
299
|
+
i(a(L), null, {
|
|
300
|
+
default: r(() => [
|
|
301
|
+
(n(), $(j(m.icon)))
|
|
288
302
|
]),
|
|
289
303
|
_: 2
|
|
290
304
|
}, 1024)
|
|
@@ -292,15 +306,15 @@ const $e = ["aria-label", "onClick"], Ie = {
|
|
|
292
306
|
_: 2
|
|
293
307
|
}, 1032, ["onClick"])
|
|
294
308
|
])), 64)),
|
|
295
|
-
h("div",
|
|
296
|
-
i(
|
|
297
|
-
disabled:
|
|
298
|
-
onClick:
|
|
309
|
+
h("div", Ve, [
|
|
310
|
+
i(a(I), {
|
|
311
|
+
disabled: l.value === 1,
|
|
312
|
+
onClick: H.value.handler
|
|
299
313
|
}, {
|
|
300
|
-
default:
|
|
301
|
-
i(
|
|
302
|
-
default:
|
|
303
|
-
(n(), $(
|
|
314
|
+
default: r(() => [
|
|
315
|
+
i(a(L), null, {
|
|
316
|
+
default: r(() => [
|
|
317
|
+
(n(), $(j(H.value.icon)))
|
|
304
318
|
]),
|
|
305
319
|
_: 1
|
|
306
320
|
})
|
|
@@ -308,15 +322,15 @@ const $e = ["aria-label", "onClick"], Ie = {
|
|
|
308
322
|
_: 1
|
|
309
323
|
}, 8, ["disabled", "onClick"])
|
|
310
324
|
])
|
|
311
|
-
])) :
|
|
325
|
+
])) : f("", !0)
|
|
312
326
|
]),
|
|
313
327
|
_: 3
|
|
314
328
|
}, 8, ["show", "z-index"])
|
|
315
329
|
], 6)
|
|
316
|
-
])) :
|
|
330
|
+
])) : f("", !0)
|
|
317
331
|
], 64));
|
|
318
332
|
}
|
|
319
333
|
});
|
|
320
334
|
export {
|
|
321
|
-
|
|
335
|
+
We as default
|
|
322
336
|
};
|
|
@@ -6,10 +6,10 @@ import n from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
|
6
6
|
import z from "../nmorph-avatar/NmorphAvatar.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import M from "../../../assets/icons/mic.svg.js";
|
|
9
|
-
import V from "../../../assets/icons/
|
|
10
|
-
import C from "../../../assets/icons/
|
|
11
|
-
import I from "../../../assets/icons/
|
|
12
|
-
import w from "../../../assets/icons/
|
|
9
|
+
import V from "../../../assets/icons/share.svg.js";
|
|
10
|
+
import C from "../../../assets/icons/pin.svg.js";
|
|
11
|
+
import I from "../../../assets/icons/loader.svg.js";
|
|
12
|
+
import w from "../../../assets/icons/video.svg.js";
|
|
13
13
|
const T = ["src", "muted", "autoplay", "playsinline"], D = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "nmorph-media-tile__fallback"
|
|
@@ -105,7 +105,7 @@ const T = ["src", "muted", "autoplay", "playsinline"], D = {
|
|
|
105
105
|
size: "large"
|
|
106
106
|
}, {
|
|
107
107
|
default: s(() => [
|
|
108
|
-
r(t(
|
|
108
|
+
r(t(I))
|
|
109
109
|
]),
|
|
110
110
|
_: 1
|
|
111
111
|
})) : e.avatarSrc ? (a(), u(t(z), {
|
|
@@ -129,7 +129,7 @@ const T = ["src", "muted", "autoplay", "playsinline"], D = {
|
|
|
129
129
|
e.videoOff ? (a(), o("span", U, [
|
|
130
130
|
r(t(n), { size: "small" }, {
|
|
131
131
|
default: s(() => [
|
|
132
|
-
r(t(
|
|
132
|
+
r(t(w))
|
|
133
133
|
]),
|
|
134
134
|
_: 1
|
|
135
135
|
})
|
|
@@ -137,7 +137,7 @@ const T = ["src", "muted", "autoplay", "playsinline"], D = {
|
|
|
137
137
|
e.screenSharing ? (a(), o("span", q, [
|
|
138
138
|
r(t(n), { size: "small" }, {
|
|
139
139
|
default: s(() => [
|
|
140
|
-
r(t(
|
|
140
|
+
r(t(V))
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
143
|
})
|
|
@@ -145,7 +145,7 @@ const T = ["src", "muted", "autoplay", "playsinline"], D = {
|
|
|
145
145
|
e.pinned ? (a(), o("span", A, [
|
|
146
146
|
r(t(n), { size: "small" }, {
|
|
147
147
|
default: s(() => [
|
|
148
|
-
r(t(
|
|
148
|
+
r(t(C))
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
151
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.nmorph-video-preview{position:relative;display:flex;width:var(--nmorph-video-preview-width, 280px);min-width:0;max-width:100%;height:var(--nmorph-video-preview-height, 158px);overflow:hidden;color:var(--nmorph-white-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,var(--nmorph-main-color));border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-video-preview .nmorph-video-preview__media,.nmorph-video-preview .nmorph-video-preview__state{width:100%;height:100%}.nmorph-video-preview .nmorph-video-preview__media{display:block;object-fit:cover}.nmorph-video-preview.nmorph-video-preview--contain .nmorph-video-preview__media{object-fit:contain}.nmorph-video-preview .nmorph-video-preview__state{display:flex;flex-direction:column;gap:var(--indentation-02);justify-content:center;align-items:center;padding:var(--indentation-03);text-align:center}.nmorph-video-preview .nmorph-video-preview__error{max-width:100%;overflow:hidden;color:var(--nmorph-error-text-color);font-size:var(--font-size-extra-small);white-space:nowrap;text-overflow:ellipsis}.nmorph-video-preview .nmorph-video-preview__meta{position:absolute;right:0;bottom:0;left:0;display:flex;gap:var(--indentation-02);justify-content:space-between;align-items:center;padding:18px var(--indentation-03) var(--indentation-02);background:linear-gradient(transparent,color-mix(in srgb,var(--nmorph-black-color) 66%,transparent));pointer-events:none}.nmorph-video-preview .nmorph-video-preview__name,.nmorph-video-preview .nmorph-video-preview__duration{min-width:0;overflow:hidden;font-size:var(--font-size-extra-small);line-height:var(--line-height-regular);white-space:nowrap;text-overflow:ellipsis}.nmorph-video-preview .nmorph-video-preview__name{flex:1 1 auto}.nmorph-video-preview .nmorph-video-preview__duration{flex:0 0 auto;font-variant-numeric:tabular-nums}.nmorph-video-preview .nmorph-video-preview__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);display:flex;gap:var(--indentation-01);padding:2px;background:color-mix(in srgb,var(--nmorph-main-color) 86%,transparent);border-radius:var(--default-border-radius)}.nmorph-video-preview .nmorph-video-preview__action-link{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;color:var(--nmorph-text-color);text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-video-preview .nmorph-video-preview__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-video-preview .nmorph-video-preview__action-link .nmorph-icon{--color: currentColor}.nmorph-video-preview.nmorph-video-preview--compact{width:var(--nmorph-video-preview-width, 180px);height:var(--nmorph-video-preview-height, 102px)}.nmorph-video-preview.nmorph-video-preview--error{outline:1px solid var(--nmorph-error-color)}
|