@nmorph/nmorph-ui-kit 3.0.4 → 3.0.6

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 (59) hide show
  1. package/dist/assets/icons/chevron-right.svg.js +2 -2
  2. package/dist/assets/icons/hand.svg.js +10 -28
  3. package/dist/assets/icons/mic.svg.js +6 -6
  4. package/dist/assets/icons/mute.svg.js +6 -6
  5. package/dist/assets/icons/pin.svg.js +5 -5
  6. package/dist/assets/icons/video-camera-off.svg.js +6 -6
  7. package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +9 -9
  8. package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
  9. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +25 -20
  10. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
  11. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  12. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +23 -18
  13. package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -1
  14. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +10 -10
  15. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
  16. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
  17. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +7 -7
  18. package/dist/components/data/nmorph-image/NmorphImage.vue2.js +1 -1
  19. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
  20. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +82 -87
  21. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +80 -35
  22. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +87 -91
  23. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +71 -44
  24. package/dist/components/data/nmorph-table/NmorphTable.vue.js +114 -162
  25. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
  26. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +4 -4
  27. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +25 -25
  28. package/dist/components/feedback/nmorph-guide/NmorphGuide.vue2.js +66 -61
  29. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +25 -23
  30. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
  31. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +88 -48
  32. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +75 -59
  33. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  34. package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
  35. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
  36. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
  37. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +128 -95
  38. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +73 -71
  39. package/dist/components/navigation/nmorph-stepper/NmorphStepper.css +1 -1
  40. package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue.js +49 -26
  41. package/dist/index.umd.js +20 -20
  42. package/dist/package.json.js +1 -1
  43. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +0 -3
  44. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +1 -0
  45. package/dist/src/components/basic/nmorph-scroll/types.d.ts +1 -0
  46. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
  47. package/dist/src/components/data/nmorph-card/types.d.ts +1 -0
  48. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +2 -1
  49. package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -1
  50. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -0
  51. package/dist/src/components/data/nmorph-pagination/types.d.ts +1 -0
  52. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +0 -1
  53. package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +2 -0
  54. package/dist/src/components/feedback/nmorph-guide/types.d.ts +4 -0
  55. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -0
  56. package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +2 -0
  57. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -2
  58. package/dist/style.css +1 -1
  59. package/package.json +1 -1
@@ -1,31 +1,37 @@
1
1
  import './NmorphTable.css';
2
- import p from "./NmorphTable.vue2.js";
3
- import { openBlock as r, createElementBlock as t, normalizeStyle as a, normalizeClass as _, createElementVNode as o, Fragment as d, renderList as i, toDisplayString as s, createBlock as m, createCommentVNode as y, renderSlot as h } from "vue";
2
+ import h from "./NmorphTable.vue2.js";
3
+ import { openBlock as r, createElementBlock as t, normalizeStyle as n, normalizeClass as _, createElementVNode as o, renderSlot as p, Fragment as d, renderList as i, toDisplayString as s, createBlock as m, createCommentVNode as y } from "vue";
4
4
  /* empty css */
5
5
  import v from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const u = { class: "nmorph-table__wrapper" }, w = { class: "nmorph-table__header" }, f = ["data-src"], g = { class: "nmorph-table__table-row" }, k = { class: "nmorph-table__cell" }, x = ["tabindex"], S = ["id"], R = { class: "nmorph-table__slot-columns" }, W = ["id"], B = { class: "nmorph-table__slot-columns" };
7
- function E(c, H, N, l, C, I) {
6
+ const w = { class: "nmorph-table__wrapper" }, f = {
7
+ class: "nmorph-table__slot-columns",
8
+ hidden: ""
9
+ }, k = { class: "nmorph-table__header" }, u = ["data-src"], g = { class: "nmorph-table__table-row" }, x = { class: "nmorph-table__cell" }, S = ["tabindex"], R = ["id"], B = { key: 1 }, E = ["id"];
10
+ function H(c, N, W, e, C, I) {
8
11
  return r(), t("div", null, [
9
12
  (r(), t(
10
13
  "div",
11
14
  {
12
15
  ref: "nmorphDOMTable",
13
- key: l.key,
14
- class: _(l.modifiers),
15
- style: a(l.tableStyle)
16
+ key: e.key,
17
+ class: _(e.modifiers),
18
+ style: n(e.tableStyle)
16
19
  },
17
20
  [
18
- o("div", u, [
19
- o("table", w, [
21
+ o("div", w, [
22
+ o("div", f, [
23
+ p(c.$slots, "default")
24
+ ]),
25
+ o("table", k, [
20
26
  o("colgroup", null, [
21
27
  (r(!0), t(
22
28
  d,
23
29
  null,
24
- i(l.columns, (e) => (r(), t("col", {
25
- key: e.prop,
26
- style: a({ width: `${l.getWidth(e.width)}px` }),
27
- "data-src": `${l.getWidth(e.width)}px`
28
- }, null, 12, f))),
30
+ i(e.columns, (l) => (r(), t("col", {
31
+ key: l.prop,
32
+ style: n({ width: `${e.getWidth(l.width)}px` }),
33
+ "data-src": `${e.getWidth(l.width)}px`
34
+ }, null, 12, u))),
29
35
  128
30
36
  /* KEYED_FRAGMENT */
31
37
  ))
@@ -35,33 +41,33 @@ function E(c, H, N, l, C, I) {
35
41
  (r(!0), t(
36
42
  d,
37
43
  null,
38
- i(l.columns, (e, b) => (r(), t(
44
+ i(e.columns, (l, b) => (r(), t(
39
45
  "th",
40
46
  {
41
47
  key: b,
42
- class: _(["nmorph-table__table-data", { "nmorph-table__table-data--bordered": l.props.bordered }])
48
+ class: _(["nmorph-table__table-data", { "nmorph-table__table-data--bordered": e.props.bordered }])
43
49
  },
44
50
  [
45
- o("div", k, [
51
+ o("div", x, [
46
52
  o(
47
53
  "div",
48
54
  {
49
- style: a({ "justify-content": e.alignment }),
55
+ style: n({ "justify-content": l.alignment }),
50
56
  class: "nmorph-table__cell-content"
51
57
  },
52
58
  [
53
59
  o(
54
60
  "span",
55
61
  null,
56
- s(e.label),
62
+ s(l.label),
57
63
  1
58
64
  /* TEXT */
59
65
  ),
60
- l.sortData && l.sortData[e.prop] ? (r(), m(l.NmorphSortButton, {
66
+ e.sortData && e.sortData[l.prop] ? (r(), m(e.NmorphSortButton, {
61
67
  key: 0,
62
68
  class: "nmorph-table__button-wrapper",
63
- value: l.sortData[e.prop],
64
- onSort: (n) => l.onSort(n, e.prop)
69
+ value: e.sortData[l.prop],
70
+ onSort: (a) => e.onSort(a, l.prop)
65
71
  }, null, 8, ["value", "onSort"])) : y("v-if", !0)
66
72
  ],
67
73
  4
@@ -79,30 +85,30 @@ function E(c, H, N, l, C, I) {
79
85
  ])
80
86
  ]),
81
87
  o("div", {
82
- ref: l.virtualList.containerRef,
88
+ ref: e.virtualList.containerRef,
83
89
  class: _(["nmorph-table__body", {
84
- "nmorph-table__body--virtual": l.virtualEnabled,
85
- "nmorph-table__body--dynamic": l.props.virtualDynamicHeight
90
+ "nmorph-table__body--virtual": e.virtualEnabled,
91
+ "nmorph-table__body--dynamic": e.props.virtualDynamicHeight
86
92
  }]),
87
- style: a(l.tableBodyStyle),
88
- tabindex: l.virtualEnabled ? 0 : void 0,
93
+ style: n(e.tableBodyStyle),
94
+ tabindex: e.virtualEnabled ? 0 : void 0,
89
95
  role: "grid",
90
- onKeydown: l.tableKeydownHandler,
91
- onScroll: l.scrollHandler
96
+ onKeydown: e.tableKeydownHandler,
97
+ onScroll: e.scrollHandler
92
98
  }, [
93
- l.virtualEnabled ? (r(), t(
99
+ e.virtualEnabled ? (r(), t(
94
100
  "div",
95
101
  {
96
102
  key: 0,
97
103
  class: "nmorph-table__virtual-spacer",
98
- style: a(l.virtualSpacerStyle)
104
+ style: n(e.virtualSpacerStyle)
99
105
  },
100
106
  [
101
107
  o(
102
108
  "div",
103
109
  {
104
110
  class: "nmorph-table__virtual-content",
105
- style: a(l.virtualContentStyle)
111
+ style: n(e.virtualContentStyle)
106
112
  },
107
113
  [
108
114
  o("table", null, [
@@ -110,11 +116,11 @@ function E(c, H, N, l, C, I) {
110
116
  (r(!0), t(
111
117
  d,
112
118
  null,
113
- i(l.columns, (e) => (r(), t(
119
+ i(e.columns, (l) => (r(), t(
114
120
  "col",
115
121
  {
116
- key: e.prop,
117
- style: a({ width: `${l.getWidth(e.width)}px` })
122
+ key: l.prop,
123
+ style: n({ width: `${e.getWidth(l.width)}px` })
118
124
  },
119
125
  null,
120
126
  4
@@ -128,15 +134,15 @@ function E(c, H, N, l, C, I) {
128
134
  (r(!0), t(
129
135
  d,
130
136
  null,
131
- i(l.renderedRows, (e, b) => (r(), t(
137
+ i(e.renderedRows, (l, b) => (r(), t(
132
138
  "tr",
133
139
  {
134
- key: e.index,
140
+ key: l.index,
135
141
  ref_for: !0,
136
- ref: (n) => l.setVirtualRowRef(n, e.index),
142
+ ref: (a) => e.setVirtualRowRef(a, l.index),
137
143
  class: _(["nmorph-table__table-data-row", {
138
- "nmorph-table__table-data-row--row-hover": l.props.rowHover,
139
- "nmorph-table__table-data-row--active": l.activeRowIndex === e.index
144
+ "nmorph-table__table-data-row--row-hover": e.props.rowHover,
145
+ "nmorph-table__table-data-row--active": e.activeRowIndex === l.index
140
146
  }]),
141
147
  role: "row"
142
148
  },
@@ -144,18 +150,18 @@ function E(c, H, N, l, C, I) {
144
150
  (r(!0), t(
145
151
  d,
146
152
  null,
147
- i(l.columns, (n) => (r(), t(
153
+ i(e.columns, (a) => (r(), t(
148
154
  "td",
149
155
  {
150
- key: n.prop,
151
- class: _([{ "nmorph-table__table-data--bordered": l.props.bordered }, "nmorph-table__table-data"])
156
+ key: a.prop,
157
+ class: _([{ "nmorph-table__table-data--bordered": e.props.bordered }, "nmorph-table__table-data"])
152
158
  },
153
159
  [
154
160
  o("div", {
155
- id: `table-cell-${l.tableIdentifier}-${b}-${n.prop}`,
156
- style: a({ "text-align": n.alignment }),
161
+ id: `table-cell-${e.tableIdentifier}-${b}-${a.prop}`,
162
+ style: n({ "text-align": a.alignment }),
157
163
  class: "nmorph-table__cell nmorph-table__cell--data"
158
- }, s(l.tableData(e.item[n.prop])), 13, S)
164
+ }, s(e.tableData(l.item[a.prop])), 13, R)
159
165
  ],
160
166
  2
161
167
  /* CLASS */
@@ -171,29 +177,6 @@ function E(c, H, N, l, C, I) {
171
177
  /* KEYED_FRAGMENT */
172
178
  ))
173
179
  ])
174
- ]),
175
- o("table", null, [
176
- o("colgroup", null, [
177
- (r(!0), t(
178
- d,
179
- null,
180
- i(l.columns, (e) => (r(), t(
181
- "col",
182
- {
183
- key: e.prop,
184
- style: a({ width: `${l.getWidth(e.width)}px` })
185
- },
186
- null,
187
- 4
188
- /* STYLE */
189
- ))),
190
- 128
191
- /* KEYED_FRAGMENT */
192
- ))
193
- ]),
194
- o("tbody", R, [
195
- h(c.$slots, "default")
196
- ])
197
180
  ])
198
181
  ],
199
182
  4
@@ -202,99 +185,68 @@ function E(c, H, N, l, C, I) {
202
185
  ],
203
186
  4
204
187
  /* STYLE */
205
- )) : (r(), t(
206
- d,
207
- { key: 1 },
208
- [
209
- o("table", null, [
210
- o("colgroup", null, [
211
- (r(!0), t(
212
- d,
213
- null,
214
- i(l.columns, (e) => (r(), t(
215
- "col",
216
- {
217
- key: e.prop,
218
- style: a({ width: `${l.getWidth(e.width)}px` })
219
- },
220
- null,
221
- 4
222
- /* STYLE */
223
- ))),
224
- 128
225
- /* KEYED_FRAGMENT */
226
- ))
227
- ]),
228
- o("tbody", null, [
229
- (r(!0), t(
230
- d,
231
- null,
232
- i(l.renderedRows, (e, b) => (r(), t(
233
- "tr",
234
- {
235
- key: b,
236
- class: _(["nmorph-table__table-data-row", { "nmorph-table__table-data-row--row-hover": l.props.rowHover }])
237
- },
238
- [
239
- (r(!0), t(
240
- d,
241
- null,
242
- i(l.columns, (n) => (r(), t(
243
- "td",
244
- {
245
- key: n.prop,
246
- class: _([{ "nmorph-table__table-data--bordered": l.props.bordered }, "nmorph-table__table-data"])
247
- },
248
- [
249
- o("div", {
250
- id: `table-cell-${l.tableIdentifier}-${b}-${n.prop}`,
251
- style: a({ "text-align": n.alignment }),
252
- class: "nmorph-table__cell nmorph-table__cell--data"
253
- }, s(l.tableData(e.item[n.prop])), 13, W)
254
- ],
255
- 2
256
- /* CLASS */
257
- ))),
258
- 128
259
- /* KEYED_FRAGMENT */
260
- ))
261
- ],
262
- 2
263
- /* CLASS */
264
- ))),
265
- 128
266
- /* KEYED_FRAGMENT */
267
- ))
268
- ])
269
- ]),
270
- o("table", null, [
271
- o("colgroup", null, [
272
- (r(!0), t(
273
- d,
274
- null,
275
- i(l.columns, (e) => (r(), t(
276
- "col",
277
- {
278
- key: e.prop,
279
- style: a({ width: `${l.getWidth(e.width)}px` })
280
- },
188
+ )) : (r(), t("table", B, [
189
+ o("colgroup", null, [
190
+ (r(!0), t(
191
+ d,
192
+ null,
193
+ i(e.columns, (l) => (r(), t(
194
+ "col",
195
+ {
196
+ key: l.prop,
197
+ style: n({ width: `${e.getWidth(l.width)}px` })
198
+ },
199
+ null,
200
+ 4
201
+ /* STYLE */
202
+ ))),
203
+ 128
204
+ /* KEYED_FRAGMENT */
205
+ ))
206
+ ]),
207
+ o("tbody", null, [
208
+ (r(!0), t(
209
+ d,
210
+ null,
211
+ i(e.renderedRows, (l, b) => (r(), t(
212
+ "tr",
213
+ {
214
+ key: b,
215
+ class: _(["nmorph-table__table-data-row", { "nmorph-table__table-data-row--row-hover": e.props.rowHover }])
216
+ },
217
+ [
218
+ (r(!0), t(
219
+ d,
281
220
  null,
282
- 4
283
- /* STYLE */
284
- ))),
285
- 128
286
- /* KEYED_FRAGMENT */
287
- ))
288
- ]),
289
- o("tbody", B, [
290
- h(c.$slots, "default")
291
- ])
292
- ])
293
- ],
294
- 64
295
- /* STABLE_FRAGMENT */
296
- ))
297
- ], 46, x)
221
+ i(e.columns, (a) => (r(), t(
222
+ "td",
223
+ {
224
+ key: a.prop,
225
+ class: _([{ "nmorph-table__table-data--bordered": e.props.bordered }, "nmorph-table__table-data"])
226
+ },
227
+ [
228
+ o("div", {
229
+ id: `table-cell-${e.tableIdentifier}-${b}-${a.prop}`,
230
+ style: n({ "text-align": a.alignment }),
231
+ class: "nmorph-table__cell nmorph-table__cell--data"
232
+ }, s(e.tableData(l.item[a.prop])), 13, E)
233
+ ],
234
+ 2
235
+ /* CLASS */
236
+ ))),
237
+ 128
238
+ /* KEYED_FRAGMENT */
239
+ ))
240
+ ],
241
+ 2
242
+ /* CLASS */
243
+ ))),
244
+ 128
245
+ /* KEYED_FRAGMENT */
246
+ ))
247
+ ])
248
+ ]))
249
+ ], 46, S)
298
250
  ])
299
251
  ],
300
252
  6
@@ -302,7 +254,7 @@ function E(c, H, N, l, C, I) {
302
254
  ))
303
255
  ]);
304
256
  }
305
- const K = /* @__PURE__ */ v(p, [["render", E], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-table/NmorphTable.vue"]]);
257
+ const K = /* @__PURE__ */ v(h, [["render", H], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-table/NmorphTable.vue"]]);
306
258
  export {
307
259
  K as default
308
260
  };
@@ -1 +1 @@
1
- .nmorph-video-preview{position:relative;display:flex;width:var(--nmorph-private-video-preview-width, 280px);min-width:0;max-width:100%;height:var(--nmorph-private-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--soft .nmorph-video-preview__state,.nmorph-video-preview.nmorph-video-preview--plain .nmorph-video-preview__state{color:var(--nmorph-text-color)}.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(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height);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__play{position:absolute;top:50%;left:50%;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:42px;height:42px;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);box-shadow:var(--nmorph-shadow-outset);transform:translate(-50%,-50%);cursor:pointer}.nmorph-video-preview .nmorph-video-preview__play .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-video-preview .nmorph-video-preview__play:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-video-preview.nmorph-video-preview--playing .nmorph-video-preview__play{opacity:.72}.nmorph-video-preview.nmorph-video-preview--embedded{width:var(--nmorph-private-video-preview-width, 100%);height:var(--nmorph-private-video-preview-height, 120px);box-shadow:none}.nmorph-video-preview.nmorph-video-preview--embedded .nmorph-video-preview__play,.nmorph-video-preview.nmorph-video-preview--soft .nmorph-video-preview__play,.nmorph-video-preview.nmorph-video-preview--plain .nmorph-video-preview__play{box-shadow:none}.nmorph-video-preview .nmorph-video-preview__name,.nmorph-video-preview .nmorph-video-preview__duration{min-width:0;overflow:hidden;font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height);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:0;background:transparent}.nmorph-video-preview .nmorph-video-preview__action-button,.nmorph-video-preview .nmorph-video-preview__action-link{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;padding:0;color:var(--nmorph-contrast-text-color);font:inherit;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-video-preview .nmorph-video-preview__action-button:hover,.nmorph-video-preview .nmorph-video-preview__action-link:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-video-preview .nmorph-video-preview__action-button .nmorph-icon,.nmorph-video-preview .nmorph-video-preview__action-link .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-video-preview.nmorph-video-preview--compact{width:var(--nmorph-private-video-preview-width, 180px);height:var(--nmorph-private-video-preview-height, 102px)}.nmorph-video-preview.nmorph-video-preview--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-video-preview.nmorph-video-preview--plain{background:transparent;box-shadow:none}.nmorph-video-preview.nmorph-video-preview--error{outline:1px solid var(--nmorph-error-color)}.nmorph-video-preview__portal{display:contents}.nmorph-video-preview__portal .nmorph-video-preview__portal-content{--nmorph-private-video-preview-portal-width: min( calc(100vw - 96px) , 1080px);--nmorph-private-video-preview-portal-height: min( calc(100vh - 180px) , 720px);position:absolute;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-video-preview-portal-width);height:var(--nmorph-private-video-preview-portal-height);transform:translate(-50%,-50%)}.nmorph-video-preview__portal .nmorph-video-preview__portal-media{display:block;width:100%;max-width:100%;height:100%;max-height:100%;object-fit:contain;background:var(--nmorph-black-color);border-radius:var(--default-border-radius)}
1
+ .nmorph-video-preview{position:relative;display:flex;width:var(--nmorph-private-video-preview-width, 280px);min-width:0;max-width:100%;height:var(--nmorph-private-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--soft .nmorph-video-preview__state,.nmorph-video-preview.nmorph-video-preview--plain .nmorph-video-preview__state{color:var(--nmorph-text-color)}.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{position:absolute;inset:0;display:flex;flex-direction:column;gap:var(--indentation-02);justify-content:center;align-items:center;padding:var(--indentation-03);text-align:center;pointer-events:none}.nmorph-video-preview .nmorph-video-preview__error{max-width:100%;overflow:hidden;color:var(--nmorph-error-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height);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__play{position:absolute;top:50%;left:50%;z-index:1;display:inline-flex;justify-content:center;align-items:center;width:42px;height:42px;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}.nmorph-video-preview .nmorph-video-preview__play .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-video-preview .nmorph-video-preview__play:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-video-preview.nmorph-video-preview--playing .nmorph-video-preview__play{opacity:.72}.nmorph-video-preview.nmorph-video-preview--embedded{width:var(--nmorph-private-video-preview-width, 100%);height:var(--nmorph-private-video-preview-height, 120px);box-shadow:none}.nmorph-video-preview .nmorph-video-preview__name,.nmorph-video-preview .nmorph-video-preview__duration{min-width:0;overflow:hidden;font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height);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:0;background:transparent}.nmorph-video-preview .nmorph-video-preview__action-button,.nmorph-video-preview .nmorph-video-preview__action-link{display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;padding:0;color:var(--nmorph-contrast-text-color);font:inherit;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-video-preview .nmorph-video-preview__action-button:hover,.nmorph-video-preview .nmorph-video-preview__action-link:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-video-preview .nmorph-video-preview__action-button .nmorph-icon,.nmorph-video-preview .nmorph-video-preview__action-link .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-video-preview.nmorph-video-preview--compact{width:var(--nmorph-private-video-preview-width, 180px);height:var(--nmorph-private-video-preview-height, 102px)}.nmorph-video-preview.nmorph-video-preview--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-video-preview.nmorph-video-preview--plain{background:transparent;box-shadow:none}.nmorph-video-preview.nmorph-video-preview--error{outline:1px solid var(--nmorph-error-color)}.nmorph-video-preview__portal{display:contents}.nmorph-video-preview__portal .nmorph-video-preview__portal-content{--nmorph-private-video-preview-portal-width: min( calc(100vw - 96px) , 1080px);--nmorph-private-video-preview-portal-height: min( calc(100vh - 180px) , 720px);position:absolute;top:50%;left:50%;display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-video-preview-portal-width);height:var(--nmorph-private-video-preview-portal-height);transform:translate(-50%,-50%)}.nmorph-video-preview__portal .nmorph-video-preview__portal-media{display:block;width:100%;max-width:100%;height:100%;max-height:100%;object-fit:contain;background:var(--nmorph-black-color);border-radius:var(--default-border-radius)}
@@ -21,7 +21,7 @@ const y = ["src", "poster", "controls", "muted", "playsinline", "preload"], w =
21
21
  }, O = {
22
22
  key: 4,
23
23
  class: "nmorph-video-preview__actions"
24
- }, I = ["aria-label"], P = ["aria-label"], g = ["href", "aria-label"], H = ["href", "download", "aria-label"], V = { class: "nmorph-video-preview__portal" }, L = { class: "nmorph-video-preview__portal-content" }, T = ["src", "poster", "muted", "playsinline", "preload"];
24
+ }, I = ["aria-label"], P = ["aria-label"], g = ["href", "aria-label"], H = ["href", "download", "aria-label"], L = { class: "nmorph-video-preview__portal" }, V = { class: "nmorph-video-preview__portal-content" }, T = ["src", "poster", "muted", "playsinline", "preload"];
25
25
  function A(p, R, S, o, z, E) {
26
26
  return e(), r(
27
27
  t,
@@ -164,7 +164,7 @@ function A(p, R, S, o, z, E) {
164
164
  }, [
165
165
  n(o.NmorphIcon, { size: "small" }, {
166
166
  default: i(() => [
167
- n(o.NmorphIconOpen)
167
+ n(o.NmorphIconExternalLink)
168
168
  ]),
169
169
  _: 1
170
170
  /* STABLE */
@@ -196,7 +196,7 @@ function A(p, R, S, o, z, E) {
196
196
  key: 0,
197
197
  to: "body"
198
198
  }, [
199
- d("div", V, [
199
+ d("div", L, [
200
200
  n(o.NmorphOverlay, {
201
201
  show: o.previewOpen,
202
202
  "disabled-teleport": "",
@@ -204,7 +204,7 @@ function A(p, R, S, o, z, E) {
204
204
  onOnEscapeKeydown: o.closePreviewHandler
205
205
  }, {
206
206
  default: i(() => [
207
- d("div", L, [
207
+ d("div", V, [
208
208
  d("video", {
209
209
  class: "nmorph-video-preview__portal-media",
210
210
  src: o.props.src,
@@ -1,15 +1,15 @@
1
1
  import './NmorphVideoPreview.css';
2
- import { defineComponent as U, useAttrs as G, useSlots as J, ref as p, computed as t, watch as K } from "vue";
2
+ import { defineComponent as U, useAttrs as G, useSlots as J, ref as f, computed as t, watch as K } from "vue";
3
3
  import { useModifiers as Q } from "../../../utils/create-modifiers.js";
4
4
  import { createCssSizeVariables as X } from "../../../utils/common.js";
5
5
  import Y from "../../../assets/icons/video.svg.js";
6
6
  import Z from "../../others/nmorph-overlay/NmorphOverlay.vue.js";
7
- import ee from "../../../assets/icons/open.svg.js";
8
- import re from "../../basic/nmorph-icon/NmorphIcon.vue.js";
9
- import te from "../../../assets/icons/play.svg.js";
10
- import oe from "../../../assets/icons/pause.svg.js";
11
- import ae from "../../../assets/icons/loading.svg.js";
12
- import ne from "../../../assets/icons/full-screen.svg.js";
7
+ import ee from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
+ import re from "../../../assets/icons/play.svg.js";
9
+ import te from "../../../assets/icons/pause.svg.js";
10
+ import oe from "../../../assets/icons/loading.svg.js";
11
+ import ae from "../../../assets/icons/full-screen.svg.js";
12
+ import ne from "../../../assets/icons/external-link.svg.js";
13
13
  import le from "../../../assets/icons/eye.svg.js";
14
14
  import se from "../../../assets/icons/download.svg.js";
15
15
  const ie = "var(--nmorph-contrast-text-color)", v = 0.25, Se = /* @__PURE__ */ U({
@@ -44,12 +44,12 @@ const ie = "var(--nmorph-contrast-text-color)", v = 0.25, Se = /* @__PURE__ */ U
44
44
  previewMode: { type: String, required: !1, default: "internal" }
45
45
  },
46
46
  emits: ["play", "pause", "open", "preview", "fullscreen", "download", "error"],
47
- setup(P, { expose: O, emit: _ }) {
48
- const e = P, n = _, u = G(), h = J(), l = p(null), f = p(!1), o = p(!1), s = p(!1), y = (r) => {
47
+ setup(P, { expose: _, emit: A }) {
48
+ const e = P, n = A, u = G(), h = J(), l = f(null), p = f(!1), o = f(!1), s = f(!1), y = (r) => {
49
49
  if (!r || r < 0) return "";
50
50
  const a = Math.round(r / 1e3), i = Math.floor(a / 60), m = a % 60;
51
51
  return `${i}:${m.toString().padStart(2, "0")}`;
52
- }, A = t(() => y(e.durationMs)), d = t(() => !!e.src && !e.loading && !e.error), H = t(() => e.showPlaybackButton && d.value && s.value), F = t(
52
+ }, H = t(() => y(e.durationMs)), d = t(() => !!e.src && !e.loading && !e.error), O = t(() => e.showPlaybackButton && d.value && s.value), E = t(
53
53
  () => e.showPlaybackButton && e.preload === "metadata" ? "auto" : e.preload
54
54
  ), w = t(() => e.showFullscreenAction && d.value && !e.controls), g = t(() => d.value && (e.showPreviewAction || w.value)), N = t(() => e.showDefaultActions && (e.src || e.downloadHref)), q = t(() => !!h.actions || g.value || N.value), S = t(
55
55
  () => Q({
@@ -72,18 +72,18 @@ const ie = "var(--nmorph-contrast-text-color)", v = 0.25, Se = /* @__PURE__ */ U
72
72
  "--nmorph-private-video-preview-portal-width": e.previewWidth,
73
73
  "--nmorph-private-video-preview-portal-height": e.previewHeight
74
74
  })
75
- ), E = t(() => Object.fromEntries(Object.entries(u).filter(([r]) => r !== "class" && r !== "style"))), C = t(() => [S.value, u.class]), D = t(() => [b.value, u.style]);
75
+ ), F = t(() => Object.fromEntries(Object.entries(u).filter(([r]) => r !== "class" && r !== "style"))), k = t(() => [S.value, u.class]), x = t(() => [b.value, u.style]);
76
76
  K(
77
77
  () => [e.src, e.loading, e.error],
78
78
  () => {
79
79
  o.value = !1, s.value = !1;
80
80
  }
81
81
  );
82
- const M = () => n("open"), V = () => n("download"), k = () => {
83
- e.previewMode === "internal" && (f.value = !0), n("preview");
84
- }, x = () => {
85
- f.value = !1;
86
- }, L = async () => {
82
+ const C = () => n("open"), D = () => n("download"), L = () => {
83
+ e.previewMode === "internal" && (p.value = !0), n("preview");
84
+ }, M = () => {
85
+ p.value = !1;
86
+ }, V = async () => {
87
87
  const r = l.value;
88
88
  if (r) {
89
89
  n("fullscreen");
@@ -131,25 +131,25 @@ const ie = "var(--nmorph-contrast-text-color)", v = 0.25, Se = /* @__PURE__ */ U
131
131
  }, z = (r) => {
132
132
  o.value = !1, s.value = !1, n("error", r);
133
133
  };
134
- O({ videoRef: l });
135
- const B = { CONTRAST_ICON_COLOR: ie, VIDEO_BUFFER_EPSILON_SECONDS: v, props: e, emit: n, attrs: u, slots: h, videoRef: l, previewOpen: f, playing: o, videoLoaded: s, formatDuration: y, duration: A, mediaReady: d, showPlaybackControl: H, resolvedPreload: F, showFullscreenAction: w, hasPreviewActions: g, hasDefaultActions: N, hasActions: q, modifiers: S, styles: b, rootAttrs: E, rootClass: C, rootStyle: D, openHandler: M, downloadHandler: V, previewHandler: k, closePreviewHandler: x, fullscreenHandler: L, togglePlayback: R, isVideoFullyBuffered: I, updateVideoLoaded: j, playHandler: T, pauseHandler: W, endedHandler: $, errorHandler: z, get NmorphIcon() {
136
- return re;
134
+ _({ videoRef: l });
135
+ const B = { CONTRAST_ICON_COLOR: ie, VIDEO_BUFFER_EPSILON_SECONDS: v, props: e, emit: n, attrs: u, slots: h, videoRef: l, previewOpen: p, playing: o, videoLoaded: s, formatDuration: y, duration: H, mediaReady: d, showPlaybackControl: O, resolvedPreload: E, showFullscreenAction: w, hasPreviewActions: g, hasDefaultActions: N, hasActions: q, modifiers: S, styles: b, rootAttrs: F, rootClass: k, rootStyle: x, openHandler: C, downloadHandler: D, previewHandler: L, closePreviewHandler: M, fullscreenHandler: V, togglePlayback: R, isVideoFullyBuffered: I, updateVideoLoaded: j, playHandler: T, pauseHandler: W, endedHandler: $, errorHandler: z, get NmorphIcon() {
136
+ return ee;
137
137
  }, get NmorphIconDownload() {
138
138
  return se;
139
139
  }, get NmorphIconEye() {
140
140
  return le;
141
- }, get NmorphIconFullScreen() {
141
+ }, get NmorphIconExternalLink() {
142
142
  return ne;
143
- }, get NmorphIconLoader() {
143
+ }, get NmorphIconFullScreen() {
144
144
  return ae;
145
- }, get NmorphIconOpen() {
146
- return ee;
145
+ }, get NmorphIconLoader() {
146
+ return oe;
147
147
  }, get NmorphOverlay() {
148
148
  return Z;
149
149
  }, get NmorphIconPause() {
150
- return oe;
151
- }, get NmorphIconPlay() {
152
150
  return te;
151
+ }, get NmorphIconPlay() {
152
+ return re;
153
153
  }, get NmorphIconVideo() {
154
154
  return Y;
155
155
  } };