@nmorph/nmorph-ui-kit 3.0.5 → 3.0.7

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 (32) hide show
  1. package/dist/assets/icons/hand.svg.js +2 -2
  2. package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +9 -9
  3. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
  4. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -36
  5. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +80 -78
  6. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  7. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +18 -15
  8. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
  9. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +60 -60
  10. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +118 -94
  11. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +19 -19
  12. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +72 -39
  13. package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
  14. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +5 -5
  15. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +80 -56
  16. package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
  17. package/dist/components/data/nmorph-table/NmorphTable.vue.js +114 -162
  18. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +41 -38
  19. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
  20. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +8 -8
  21. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +64 -24
  22. package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
  23. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
  24. package/dist/index.umd.js +25 -25
  25. package/dist/package.json.js +1 -1
  26. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +0 -3
  27. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -0
  28. package/dist/src/components/data/nmorph-pagination/types.d.ts +3 -0
  29. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +2 -21
  30. package/dist/src/components/data/nmorph-table/types.d.ts +11 -3
  31. package/dist/style.css +1 -1
  32. 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 m, Fragment as d, renderList as i, toDisplayString as s, createBlock as p, 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
+ m(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.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(), p(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.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.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,17 +1,15 @@
1
1
  import './NmorphTable.css';
2
- import { defineComponent as j, computed as l, ref as n, provide as M, watch as P, nextTick as z } from "vue";
3
- import { useModifiers as K } from "../../../utils/create-modifiers.js";
4
- import { generateUUID as Q, toCssSize as Y, createCssSizeVariables as $, createCssVariables as F, resolveDomElement as G } from "../../../utils/common.js";
5
- import { useVirtualList as J } from "../../../hooks/use-virtual-list.js";
6
- import X from "./inner-components/nmorph-sort-button/NmorphSortButton.vue.js";
7
- const oe = /* @__PURE__ */ j({
2
+ import { defineComponent as P, computed as l, ref as n, provide as _, watch as z, nextTick as K } from "vue";
3
+ import { useModifiers as Q } from "../../../utils/create-modifiers.js";
4
+ import { generateUUID as Y, toCssSize as $, createCssSizeVariables as F, createCssVariables as G, resolveDomElement as J } from "../../../utils/common.js";
5
+ import { useVirtualList as X } from "../../../hooks/use-virtual-list.js";
6
+ import Z from "./inner-components/nmorph-sort-button/NmorphSortButton.vue.js";
7
+ const ie = /* @__PURE__ */ P({
8
8
  __name: "NmorphTable",
9
9
  props: {
10
10
  data: { type: Array, required: !1, default: () => [] },
11
11
  rowHover: { type: Boolean, required: !1, default: !0 },
12
- bordered: { type: Boolean, required: !1, default: !1 },
13
12
  sort: { type: Object, required: !1, default: void 0 },
14
- design: { type: null, required: !1, default: "nmorph" },
15
13
  virtual: { type: Boolean, required: !1, default: !1 },
16
14
  virtualHeight: { type: [Number, String], required: !1, default: "320px" },
17
15
  virtualOverscan: { type: Number, required: !1, default: 5 },
@@ -19,22 +17,27 @@ const oe = /* @__PURE__ */ j({
19
17
  virtualDynamicHeight: { type: Boolean, required: !1, default: !1 },
20
18
  borderColor: { type: String, required: !1, default: void 0 },
21
19
  cellHeight: { type: [Number, String], required: !1, default: void 0 },
22
- rowHoverBackground: { type: String, required: !1, default: void 0 }
20
+ rowHoverBackground: { type: String, required: !1, default: void 0 },
21
+ design: { type: null, required: !1, default: "nmorph" },
22
+ bordered: { type: Boolean, required: !1, skipCheck: !0 }
23
23
  },
24
- setup(_, { expose: B }) {
25
- B();
26
- const t = _, T = l(
27
- () => K({
28
- "nmorph-table": [t.design]
24
+ setup(B, { expose: T }) {
25
+ T();
26
+ const t = B, w = l(() => t.design === "plain" && t.bordered === !0), I = l(
27
+ () => Q({
28
+ "nmorph-table": {
29
+ [t.design]: !0,
30
+ bordered: w.value
31
+ }
29
32
  })
30
- ), o = n([...t.data]), u = l(() => t.virtual), w = l(() => t.virtualRowHeight), H = l(() => t.virtualOverscan), S = l(() => t.virtualDynamicHeight), r = J(o, {
33
+ ), o = n([...t.data]), u = l(() => t.virtual), H = l(() => t.virtualRowHeight), S = l(() => t.virtualOverscan), C = l(() => t.virtualDynamicHeight), r = X(o, {
31
34
  enabled: u,
32
- itemHeight: w,
33
- overscan: H,
34
- dynamic: S
35
- }), C = l(
35
+ itemHeight: H,
36
+ overscan: S,
37
+ dynamic: C
38
+ }), x = l(
36
39
  () => u.value ? r.virtualItems.value : o.value.map((e, a) => ({ item: e, index: a }))
37
- ), x = l(() => C.value.map((e) => e.item)), s = n(-1), p = n(0), d = n(t.sort), I = (e, a) => {
40
+ ), D = l(() => x.value.map((e) => e.item)), s = n(-1), p = n(0), d = n(t.sort), W = (e, a) => {
38
41
  d.value && (d.value[a] = e, o.value.sort((g, y) => {
39
42
  const b = String(g[a]).toLowerCase(), i = String(y[a]).toLowerCase();
40
43
  if (!d.value)
@@ -43,15 +46,15 @@ const oe = /* @__PURE__ */ j({
43
46
  return f === "ascending" ? b.localeCompare(i) : f === "descending" ? i.localeCompare(b) : 0;
44
47
  }));
45
48
  }, h = n(null), c = n([]);
46
- M("table-data", { rows: x, columns: c });
47
- const D = l(() => {
49
+ _("table-data", { rows: D, columns: c });
50
+ const R = l(() => {
48
51
  const e = c.value.map((i) => i.width).filter((i) => !!i), a = e.length, g = e.reduce((i, f) => (i += Number(f), i), 0), y = c.value.length - a;
49
52
  return h.value?.clientWidth ? (h.value?.clientWidth - g) / y : 0;
50
- }), W = (e) => e !== "" ? e : D.value, m = n(0);
51
- P(
53
+ }), N = (e) => e || R.value, m = n(0);
54
+ z(
52
55
  () => t.data,
53
56
  async () => {
54
- m.value = m.value + 1, o.value = [...t.data], c.value = [], await z();
57
+ m.value = m.value + 1, o.value = [...t.data], c.value = [], await K();
55
58
  const e = r.containerRef.value;
56
59
  e && (e.scrollTop = Math.min(
57
60
  p.value,
@@ -62,38 +65,38 @@ const oe = /* @__PURE__ */ j({
62
65
  immediate: !0
63
66
  }
64
67
  );
65
- const N = (e) => typeof e == "object" ? "" : e, R = Q();
66
- M("table-identifier", R);
67
- const q = l(() => Y(t.virtualHeight)), O = l(() => ({
68
- ...F({
68
+ const O = (e) => typeof e == "object" ? "" : e, k = Y();
69
+ _("table-identifier", k);
70
+ const q = l(() => $(t.virtualHeight)), A = l(() => ({
71
+ ...G({
69
72
  "--nmorph-private-table-border-color": t.borderColor,
70
73
  "--nmorph-private-table-row-hover-background": t.rowHoverBackground
71
74
  }),
72
- ...$({
75
+ ...F({
73
76
  "--nmorph-private-table-cell-height": t.cellHeight
74
77
  })
75
- })), A = l(() => ({
78
+ })), E = l(() => ({
76
79
  "--nmorph-private-table-virtual-row-height": `${t.virtualRowHeight}px`,
77
80
  height: u.value ? q.value : void 0,
78
81
  overflowY: u.value ? "auto" : void 0
79
- })), E = r.spacerStyle, L = r.contentStyle, U = (e, a) => {
80
- r.measureElement(a, G(e));
81
- }, V = () => {
82
+ })), L = r.spacerStyle, U = r.contentStyle, V = (e, a) => {
83
+ r.measureElement(a, J(e));
84
+ }, j = () => {
82
85
  r.scrollHandler(), p.value = r.containerRef.value?.scrollTop || 0;
83
86
  }, v = (e) => {
84
87
  if (!o.value.length) return;
85
88
  const a = s.value < 0 ? 0 : Math.min(Math.max(s.value + e, 0), o.value.length - 1);
86
89
  s.value = a, r.scrollToIndex(a);
87
- }, k = { props: t, modifiers: T, rows: o, virtualEnabled: u, virtualRowHeight: w, virtualOverscan: H, virtualDynamicHeight: S, virtualList: r, renderedRows: C, tableRows: x, activeRowIndex: s, lastScrollTop: p, sortData: d, onSort: I, nmorphDOMTable: h, columns: c, defaultColWidth: D, getWidth: W, key: m, tableData: N, tableIdentifier: R, virtualHeight: q, tableStyle: O, tableBodyStyle: A, virtualSpacerStyle: E, virtualContentStyle: L, setVirtualRowRef: U, scrollHandler: V, moveActiveRow: v, tableKeydownHandler: (e) => {
90
+ }, M = { props: t, bordered: w, modifiers: I, rows: o, virtualEnabled: u, virtualRowHeight: H, virtualOverscan: S, virtualDynamicHeight: C, virtualList: r, renderedRows: x, tableRows: D, activeRowIndex: s, lastScrollTop: p, sortData: d, onSort: W, nmorphDOMTable: h, columns: c, defaultColWidth: R, getWidth: N, key: m, tableData: O, tableIdentifier: k, virtualHeight: q, tableStyle: A, tableBodyStyle: E, virtualSpacerStyle: L, virtualContentStyle: U, setVirtualRowRef: V, scrollHandler: j, moveActiveRow: v, tableKeydownHandler: (e) => {
88
91
  u.value && (e.key === "ArrowDown" ? (e.preventDefault(), v(1)) : e.key === "ArrowUp" ? (e.preventDefault(), v(-1)) : e.key === "Home" ? (e.preventDefault(), s.value = 0, r.scrollToIndex(0)) : e.key === "End" ? (e.preventDefault(), s.value = o.value.length - 1, r.scrollToIndex(o.value.length - 1)) : e.key === "PageDown" ? (e.preventDefault(), v(
89
92
  Math.max(Math.floor((r.viewportHeight.value || t.virtualRowHeight) / t.virtualRowHeight), 1)
90
93
  )) : e.key === "PageUp" && (e.preventDefault(), v(
91
94
  -Math.max(Math.floor((r.viewportHeight.value || t.virtualRowHeight) / t.virtualRowHeight), 1)
92
95
  )));
93
- }, NmorphSortButton: X };
94
- return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
96
+ }, NmorphSortButton: Z };
97
+ return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
95
98
  }
96
99
  });
97
100
  export {
98
- oe as default
101
+ ie as default
99
102
  };
@@ -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)}
@@ -1,6 +1,6 @@
1
1
  import './NmorphDrawer.css';
2
2
  import c from "./NmorphDrawer.vue2.js";
3
- import { openBlock as e, createBlock as p, withCtx as n, createElementVNode as l, normalizeStyle as m, normalizeClass as d, createElementBlock as a, renderSlot as t, toDisplayString as _, createVNode as i, createCommentVNode as s } from "vue";
3
+ import { openBlock as e, createBlock as p, withCtx as i, createElementVNode as l, normalizeStyle as m, normalizeClass as n, createElementBlock as a, renderSlot as t, toDisplayString as _, createVNode as d, createCommentVNode as s } from "vue";
4
4
  /* empty css */
5
5
  import h from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const f = ["aria-label"], w = {
@@ -12,7 +12,7 @@ const f = ["aria-label"], w = {
12
12
  };
13
13
  function v(r, C, N, o, z, O) {
14
14
  return e(), p(o.NmorphOverlay, {
15
- show: o.props.modelValue,
15
+ show: o.isVisible,
16
16
  "z-index": o.props.zIndex,
17
17
  "teleport-to": o.props.teleportTo,
18
18
  "disabled-teleport": o.props.disabledTeleport,
@@ -21,9 +21,9 @@ function v(r, C, N, o, z, O) {
21
21
  onOnOutsideClick: o.overlayClickHandler,
22
22
  onOnEscapeKeydown: o.closeHandler
23
23
  }, {
24
- default: n(() => [
24
+ default: i(() => [
25
25
  l("aside", {
26
- class: d(o.modifiers),
26
+ class: n(o.modifiers),
27
27
  style: m(o.drawerStyle),
28
28
  role: "dialog",
29
29
  "aria-modal": "true",
@@ -45,9 +45,9 @@ function v(r, C, N, o, z, O) {
45
45
  "aria-label": o.props.title ? `Close ${o.props.title}` : "Close drawer",
46
46
  onClick: o.closeHandler
47
47
  }, [
48
- i(o.NmorphIcon, null, {
49
- default: n(() => [
50
- i(o.NmorphIconCross)
48
+ d(o.NmorphIcon, null, {
49
+ default: i(() => [
50
+ d(o.NmorphIconCross)
51
51
  ]),
52
52
  _: 1
53
53
  /* STABLE */
@@ -58,7 +58,7 @@ function v(r, C, N, o, z, O) {
58
58
  l(
59
59
  "div",
60
60
  {
61
- class: d(["nmorph-drawer__content", o.props.contentClass])
61
+ class: n(["nmorph-drawer__content", o.props.contentClass])
62
62
  },
63
63
  [
64
64
  t(r.$slots, "default")