@nmorph/nmorph-ui-kit 3.0.0 → 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.
Files changed (35) hide show
  1. package/dist/assets/icons/hand.svg.js +30 -9
  2. package/dist/assets/icons/mute-speaker.svg.js +28 -0
  3. package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
  4. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +11 -9
  5. package/dist/components/basic/nmorph-icon/NmorphIcons.js +271 -270
  6. package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
  7. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +28 -26
  8. package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
  9. package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +60 -59
  10. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +28 -26
  11. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +17 -10
  12. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +82 -57
  13. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +23 -19
  14. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +9 -8
  15. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
  16. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +17 -13
  17. package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
  18. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +26 -34
  19. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
  20. package/dist/icons.js +271 -270
  21. package/dist/index.es.js +422 -421
  22. package/dist/index.umd.js +10 -10
  23. package/dist/package.json.js +1 -1
  24. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +1 -0
  25. package/dist/src/components/basic/nmorph-button/types.d.ts +1 -0
  26. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +2 -1
  27. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
  28. package/dist/src/components/data/nmorph-avatar/types.d.ts +1 -0
  29. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -0
  30. package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -0
  31. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +1 -4
  32. package/dist/src/components/form/nmorph-select-button/types.d.ts +1 -4
  33. package/dist/style.css +1 -1
  34. package/package.json +1 -1
  35. package/dist/assets/icons/speaker-off.svg.js +0 -28
@@ -1,15 +1,15 @@
1
1
  import './NmorphMediaGallery.css';
2
- import y from "./NmorphMediaGallery.vue2.js";
3
- import { openBlock as l, createElementBlock as a, Fragment as s, normalizeStyle as g, normalizeClass as f, renderList as v, createElementVNode as c, createBlock as m, createVNode as e, withCtx as n, createCommentVNode as i, toDisplayString as _, withModifiers as h } from "vue";
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 N = ["aria-label", "onClick"], k = ["src", "poster", "title"], w = {
6
+ const w = ["aria-label", "onClick"], p = ["src", "poster", "title"], N = {
7
7
  key: 2,
8
8
  class: "nmorph-media-gallery__trigger-play"
9
- }, b = {
9
+ }, k = {
10
10
  key: 3,
11
11
  class: "nmorph-media-gallery__trigger-name"
12
- }, p = {
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(), a(
30
- s,
29
+ return l(), n(
30
+ h,
31
31
  null,
32
32
  [
33
- o.props.showTrigger ? (l(), a(
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), a(
42
- s,
41
+ (l(!0), n(
42
+ h,
43
43
  null,
44
- v(o.sourceList, (r, t) => (l(), a(
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(), a("video", {
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, k)),
76
- o.props.showTriggerPlayButton && r.kind === "video" ? (l(), a("span", w, [
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: n(() => [
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(), a(
89
+ o.props.showTriggerName && o.getItemName(r) ? (l(), n(
89
90
  "span",
90
- b,
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(), a(
96
+ o.props.showTriggerSize && o.getItemSize(r) ? (l(), n(
96
97
  "span",
97
- p,
98
+ b,
98
99
  _(o.getItemSize(r)),
99
100
  1
100
101
  /* TEXT */
101
102
  )) : i("v-if", !0)
102
- ], 8, N),
103
- o.showTriggerActionsForItem(r) ? (l(), a("div", z, [
104
- o.showTriggerPreviewActionForItem(r) ? (l(), a("button", {
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: h((d) => o.openPreviewAt(t), ["stop"])
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: n(() => [
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(), a("button", {
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: h((d) => o.triggerFullscreenHandler(r, t), ["stop"])
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: n(() => [
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(), a("a", {
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: h((d) => o.downloadItemHandler(r, t), ["stop"])
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: n(() => [
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: n(() => [
189
+ actions: a(() => [
189
190
  c("div", E, [
190
- e(o.NmorphButton, { onClick: o.rotateRight }, {
191
- default: n(() => [
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: n(() => [
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, { onClick: o.rotateLeft }, {
206
- default: n(() => [
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: n(() => [
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, { onClick: o.zoomIn }, {
221
- default: n(() => [
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: n(() => [
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, { onClick: o.zoomOut }, {
236
- default: n(() => [
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: n(() => [
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: n(() => [
278
+ default: a(() => [
255
279
  e(o.NmorphIcon, null, {
256
- default: n(() => [
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: n(() => [
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(), a("video", {
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(), a(
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(), a("div", L, [
306
- o.showVideoFullscreenAction ? (l(), a("button", {
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: h(o.fullscreenHandler, ["stop"])
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: n(() => [
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(), a("a", {
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: h(o.downloadHandler, ["stop"])
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: n(() => [
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(), a(
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(y, [["render", O], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue"]]);
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,6 +1,6 @@
1
1
  import './NmorphMediaTile.css';
2
- import c from "./NmorphMediaTile.vue2.js";
3
- import { openBlock as e, createElementBlock as r, normalizeClass as d, withDirectives as p, createElementVNode as n, vShow as _, createBlock as m, withCtx as l, createVNode as a, toDisplayString as s, createCommentVNode as i, renderSlot as h } from "vue";
2
+ import m from "./NmorphMediaTile.vue2.js";
3
+ import { openBlock as e, createElementBlock as r, normalizeClass as d, withDirectives as c, createElementVNode as p, vShow as _, createBlock as n, withCtx as s, createVNode as a, toDisplayString as l, createCommentVNode as i, renderSlot as h } from "vue";
4
4
  /* empty css */
5
5
  import f from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const v = ["src", "muted", "autoplay", "playsinline"], y = {
@@ -15,7 +15,10 @@ const v = ["src", "muted", "autoplay", "playsinline"], y = {
15
15
  }, b = {
16
16
  key: 4,
17
17
  class: "nmorph-media-tile__error-text"
18
- }, I = { class: "nmorph-media-tile__status" }, S = {
18
+ }, I = {
19
+ key: 1,
20
+ class: "nmorph-media-tile__status"
21
+ }, S = {
19
22
  key: 0,
20
23
  class: "nmorph-media-tile__status-item",
21
24
  "aria-label": "Microphone muted"
@@ -32,14 +35,14 @@ const v = ["src", "muted", "autoplay", "playsinline"], y = {
32
35
  class: "nmorph-media-tile__status-item",
33
36
  "aria-label": "Pinned"
34
37
  };
35
- function x(t, M, w, o, T, B) {
38
+ function x(t, w, M, o, T, B) {
36
39
  return e(), r(
37
40
  "div",
38
41
  {
39
42
  class: d(o.modifiers)
40
43
  },
41
44
  [
42
- p(n("video", {
45
+ c(p("video", {
43
46
  ref: "videoRef",
44
47
  class: "nmorph-media-tile__video",
45
48
  src: o.props.src || void 0,
@@ -50,47 +53,48 @@ function x(t, M, w, o, T, B) {
50
53
  [_, o.hasVideo && !o.props.loading]
51
54
  ]),
52
55
  o.props.showFallback && (!o.hasVideo || o.props.loading) ? (e(), r("div", y, [
53
- o.props.loading ? (e(), m(o.NmorphIcon, {
56
+ o.props.loading ? (e(), n(o.NmorphIcon, {
54
57
  key: 0,
55
58
  class: "nmorph-media-tile__loader",
56
59
  size: "large"
57
60
  }, {
58
- default: l(() => [
61
+ default: s(() => [
59
62
  a(o.NmorphIconLoaderDots)
60
63
  ]),
61
64
  _: 1
62
65
  /* STABLE */
63
- })) : o.props.avatarSrc ? (e(), m(o.NmorphAvatar, {
66
+ })) : o.props.avatarSrc ? (e(), n(o.NmorphAvatar, {
64
67
  key: 1,
65
68
  src: o.props.avatarSrc,
66
69
  name: o.props.name,
67
- size: 72
70
+ size: 72,
71
+ design: "plain"
68
72
  }, null, 8, ["src", "name"])) : (e(), r(
69
73
  "div",
70
74
  k,
71
- s(o.fallbackLabel),
75
+ l(o.fallbackLabel),
72
76
  1
73
77
  /* TEXT */
74
78
  )),
75
79
  o.props.name ? (e(), r(
76
80
  "span",
77
81
  N,
78
- s(o.props.name),
82
+ l(o.props.name),
79
83
  1
80
84
  /* TEXT */
81
85
  )) : i("v-if", !0),
82
86
  o.props.error && o.props.errorText ? (e(), r(
83
87
  "span",
84
88
  b,
85
- s(o.props.errorText),
89
+ l(o.props.errorText),
86
90
  1
87
91
  /* TEXT */
88
92
  )) : i("v-if", !0)
89
93
  ])) : i("v-if", !0),
90
- n("div", I, [
94
+ o.props.showStatus ? (e(), r("div", I, [
91
95
  o.props.micMuted ? (e(), r("span", S, [
92
96
  a(o.NmorphIcon, { size: "small" }, {
93
- default: l(() => [
97
+ default: s(() => [
94
98
  a(o.NmorphIconMic)
95
99
  ]),
96
100
  _: 1
@@ -99,7 +103,7 @@ function x(t, M, w, o, T, B) {
99
103
  ])) : i("v-if", !0),
100
104
  o.props.videoOff ? (e(), r("span", g, [
101
105
  a(o.NmorphIcon, { size: "small" }, {
102
- default: l(() => [
106
+ default: s(() => [
103
107
  a(o.NmorphIconVideo)
104
108
  ]),
105
109
  _: 1
@@ -108,7 +112,7 @@ function x(t, M, w, o, T, B) {
108
112
  ])) : i("v-if", !0),
109
113
  o.props.screenSharing ? (e(), r("span", z, [
110
114
  a(o.NmorphIcon, { size: "small" }, {
111
- default: l(() => [
115
+ default: s(() => [
112
116
  a(o.NmorphIconShare)
113
117
  ]),
114
118
  _: 1
@@ -117,21 +121,21 @@ function x(t, M, w, o, T, B) {
117
121
  ])) : i("v-if", !0),
118
122
  o.props.pinned ? (e(), r("span", V, [
119
123
  a(o.NmorphIcon, { size: "small" }, {
120
- default: l(() => [
124
+ default: s(() => [
121
125
  a(o.NmorphIconPin)
122
126
  ]),
123
127
  _: 1
124
128
  /* STABLE */
125
129
  })
126
130
  ])) : i("v-if", !0)
127
- ]),
131
+ ])) : i("v-if", !0),
128
132
  h(t.$slots, "overlay")
129
133
  ],
130
134
  2
131
135
  /* CLASS */
132
136
  );
133
137
  }
134
- const P = /* @__PURE__ */ f(c, [["render", x], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-tile/NmorphMediaTile.vue"]]);
138
+ const P = /* @__PURE__ */ f(m, [["render", x], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-tile/NmorphMediaTile.vue"]]);
135
139
  export {
136
140
  P as default
137
141
  };
@@ -1,14 +1,14 @@
1
1
  import './NmorphMediaTile.css';
2
- import { defineComponent as u, ref as p, computed as o, watch as c } from "vue";
2
+ import { defineComponent as d, ref as p, computed as o, watch as c } from "vue";
3
3
  import { useModifiers as m } from "../../../utils/create-modifiers.js";
4
4
  import h from "../../../assets/icons/share.svg.js";
5
5
  import y from "../../../assets/icons/pin.svg.js";
6
6
  import g from "../../../assets/icons/mic.svg.js";
7
7
  import q from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
- import v from "../nmorph-avatar/NmorphAvatar.vue.js";
9
- import B from "../../../assets/icons/video.svg.js";
8
+ import B from "../nmorph-avatar/NmorphAvatar.vue.js";
9
+ import v from "../../../assets/icons/video.svg.js";
10
10
  import N from "../../../assets/icons/loader.svg.js";
11
- const L = /* @__PURE__ */ u({
11
+ const x = /* @__PURE__ */ d({
12
12
  __name: "NmorphMediaTile",
13
13
  props: {
14
14
  src: { type: String, required: !1, default: "" },
@@ -22,6 +22,7 @@ const L = /* @__PURE__ */ u({
22
22
  avatarSrc: { type: String, required: !1, default: "" },
23
23
  loading: { type: Boolean, required: !1, default: !1 },
24
24
  showFallback: { type: Boolean, required: !1, default: !0 },
25
+ showStatus: { type: Boolean, required: !1, default: !0 },
25
26
  micMuted: { type: Boolean, required: !1, default: !1 },
26
27
  videoOff: { type: Boolean, required: !1, default: !1 },
27
28
  screenSharing: { type: Boolean, required: !1, default: !1 },
@@ -33,7 +34,7 @@ const L = /* @__PURE__ */ u({
33
34
  },
34
35
  setup(l, { expose: i }) {
35
36
  const e = l, r = p(null), n = o(() => !!((e.src || e.srcObject) && !e.videoOff && !e.error)), t = o(
36
- () => e.name.split(/\s+/).filter(Boolean).slice(0, 2).map((d) => d[0]?.toUpperCase()).join("")
37
+ () => e.name.split(/\s+/).filter(Boolean).slice(0, 2).map((u) => u[0]?.toUpperCase()).join("")
37
38
  ), f = o(() => t.value || e.name || "?"), s = o(
38
39
  () => m({
39
40
  "nmorph-media-tile": [
@@ -57,7 +58,7 @@ const L = /* @__PURE__ */ u({
57
58
  { immediate: !0, flush: "post" }
58
59
  ), i({ videoRef: r });
59
60
  const a = { props: e, videoRef: r, hasVideo: n, initials: t, fallbackLabel: f, modifiers: s, get NmorphAvatar() {
60
- return v;
61
+ return B;
61
62
  }, get NmorphIcon() {
62
63
  return q;
63
64
  }, get NmorphIconLoaderDots() {
@@ -69,11 +70,11 @@ const L = /* @__PURE__ */ u({
69
70
  }, get NmorphIconShare() {
70
71
  return h;
71
72
  }, get NmorphIconVideo() {
72
- return B;
73
+ return v;
73
74
  } };
74
75
  return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
75
76
  }
76
77
  });
77
78
  export {
78
- L as default
79
+ x as default
79
80
  };
@@ -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 f, createElementVNode as m, normalizeStyle as h, normalizeClass as n, createVNode as e, withCtx as l, renderSlot as d, createElementBlock as s, createCommentVNode as i } from "vue";
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 N(p, r, C, o, _, k) {
7
- return o.props.show ? (t(), c(f, {
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: h(o.portalStyle)
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] = (a) => o.emit("close")),
23
- onOnEscapeKeydown: r[3] || (r[3] = (a) => o.emit("close"))
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(), s(
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
- onClick: r[0] || (r[0] = (a) => o.emit("previous"))
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(), s(
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
- onClick: r[1] || (r[1] = (a) => o.emit("next"))
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(), s(
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 z = /* @__PURE__ */ w(v, [["render", N], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue"]]);
117
+ const B = /* @__PURE__ */ w(v, [["render", _], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue"]]);
114
118
  export {
115
- z as default
119
+ B as default
116
120
  };
@@ -1 +1 @@
1
- .nmorph-select-button{--nmorph-private-select-button-track-padding: 4px;--nmorph-private-select-button-item-size: calc( var(--nmorph-private-control-height) - var(--nmorph-private-select-button-track-padding) * 2 );--nmorph-private-select-button-item-font-size: var(--nmorph-private-control-font-size);--nmorph-private-select-button-item-line-height: var(--nmorph-private-control-line-height);display:inline-flex;align-items:center;width:fit-content;padding:var(--nmorph-private-select-button-track-padding);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),inset calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color);transition:background-color ease-in-out var(--transition-02),border-color ease-in-out var(--transition-02),box-shadow ease-in-out var(--transition-02)}.nmorph-select-button.nmorph-select-button--disabled{cursor:not-allowed;opacity:.6}.nmorph-select-button.nmorph-select-button--fill{width:100%}.nmorph-select-button.nmorph-select-button--fill>.nmorph-select-button-item{flex:1 1 0;min-width:0}
1
+ .nmorph-select-button{--nmorph-private-select-button-padding: max(3px, calc(var(--nmorph-private-control-height) * .1333));--nmorph-private-select-button-item-height: calc( var(--nmorph-private-control-height) - var(--nmorph-private-select-button-padding) * 2 );display:inline-flex;align-items:center;width:fit-content;padding:var(--nmorph-private-select-button-padding);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),inset calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color);transition:background-color ease-in-out var(--transition-02),border-color ease-in-out var(--transition-02),box-shadow ease-in-out var(--transition-02)}.nmorph-select-button.nmorph-select-button--disabled{cursor:not-allowed;opacity:.6}.nmorph-select-button.nmorph-select-button--fill{width:100%}.nmorph-select-button.nmorph-select-button--fill>.nmorph-select-button-item{flex:1 1 0;min-width:0}