@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,14 +1,14 @@
1
1
  import './NmorphMediaTile.css';
2
- import { defineComponent as O, ref as m, computed as t, watch as B } from "vue";
3
- import { useModifiers as b } from "../../../utils/create-modifiers.js";
4
- import k from "../../../assets/icons/video-camera-off.svg.js";
5
- import I from "../../../assets/icons/share.svg.js";
6
- import N from "../../../assets/icons/mute.svg.js";
7
- import j from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
- import _ from "../../basic/nmorph-button/NmorphButton.vue.js";
9
- import A from "../nmorph-avatar/NmorphAvatar.vue.js";
10
- import M from "../../../assets/icons/loader.svg.js";
11
- const F = /* @__PURE__ */ O({
2
+ import { defineComponent as _, ref as m, computed as t, watch as I } from "vue";
3
+ import { useModifiers as E } from "../../../utils/create-modifiers.js";
4
+ import L from "../../../assets/icons/video-camera-off.svg.js";
5
+ import A from "../../../assets/icons/share.svg.js";
6
+ import C from "../../../assets/icons/mute.svg.js";
7
+ import x from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
+ import w from "../../basic/nmorph-button/NmorphButton.vue.js";
9
+ import R from "../nmorph-avatar/NmorphAvatar.vue.js";
10
+ import D from "../../../assets/icons/loader.svg.js";
11
+ const W = /* @__PURE__ */ _({
12
12
  __name: "NmorphMediaTile",
13
13
  props: {
14
14
  src: { type: String, required: !1, default: "" },
@@ -32,13 +32,21 @@ const F = /* @__PURE__ */ O({
32
32
  error: { type: Boolean, required: !1, default: !1 },
33
33
  errorText: { type: String, required: !1, default: "" }
34
34
  },
35
- setup(v, { expose: h }) {
36
- const e = v, o = m(null), a = m(null), n = t(() => !!(e.src || e.srcObject)), i = t(() => n.value && !e.videoOff && !e.error), s = (r) => !r || typeof r.getAudioTracks != "function" ? [] : r.getAudioTracks(), d = t(() => s(e.srcObject).length > 0), l = t(
37
- () => !!(e.srcObject && e.videoOff && !e.muted && !e.error && d.value)
38
- ), y = t(() => e.muted || l.value), g = t(() => i.value && e.src ? e.src : void 0), f = t(
35
+ setup(j, { expose: N }) {
36
+ const e = j, o = m(null), n = m(null), u = m({
37
+ audio: 0,
38
+ video: 0
39
+ }), y = t(() => !!(e.src || e.srcObject)), h = (r) => !r || typeof r.getAudioTracks != "function" ? [] : r.getAudioTracks(), g = (r) => !r || typeof r.getVideoTracks != "function" ? [] : r.getVideoTracks(), d = (r) => {
40
+ u.value = {
41
+ audio: h(r).length,
42
+ video: g(r).length
43
+ };
44
+ }, k = t(() => typeof e.srcObject?.getVideoTracks == "function"), O = t(() => u.value.video > 0), S = t(
45
+ () => !!(e.src || e.srcObject && (!k.value || O.value))
46
+ ), c = t(() => y.value && S.value && !e.videoOff && !e.error), i = t(() => !!(e.srcObject && !e.muted && !e.error)), b = t(() => e.muted || i.value), T = t(() => c.value && e.src ? e.src : void 0), q = t(
39
47
  () => e.name.split(/\s+/).filter(Boolean).slice(0, 2).map((r) => r[0]?.toUpperCase()).join("")
40
- ), S = t(() => f.value || e.name || "?"), q = t(
41
- () => b({
48
+ ), M = t(() => q.value || e.name || "?"), V = t(
49
+ () => E({
42
50
  "nmorph-media-tile": [
43
51
  e.fit,
44
52
  e.mirrored && "mirrored",
@@ -50,53 +58,78 @@ const F = /* @__PURE__ */ O({
50
58
  e.loading && "loading"
51
59
  ]
52
60
  })
53
- ), u = (r) => {
61
+ ), s = (r) => {
54
62
  if (!r || e.sinkId === void 0) return;
55
- const p = r;
56
- typeof p.setSinkId == "function" && p.setSinkId(e.sinkId).catch(() => {
63
+ const a = r;
64
+ typeof a.setSinkId == "function" && a.setSinkId(e.sinkId).catch(() => {
57
65
  });
66
+ }, f = (r) => {
67
+ console.warn("[NmorphMediaTile] media autoplay failed", r);
68
+ }, p = (r) => {
69
+ if (!r || !e.autoplay) return;
70
+ let a;
71
+ try {
72
+ a = r.play();
73
+ } catch (v) {
74
+ f(v);
75
+ return;
76
+ }
77
+ a && typeof a.catch == "function" && a.catch(f);
58
78
  };
59
- B(
79
+ I(
80
+ () => e.srcObject,
81
+ (r, a, v) => {
82
+ if (d(r), !r || typeof r.addEventListener != "function" || typeof r.removeEventListener != "function")
83
+ return;
84
+ const l = () => d(r);
85
+ r.addEventListener("addtrack", l), r.addEventListener("removetrack", l), v(() => {
86
+ r.removeEventListener("addtrack", l), r.removeEventListener("removetrack", l);
87
+ });
88
+ },
89
+ { immediate: !0 }
90
+ ), I(
60
91
  () => [
61
92
  e.srcObject,
62
93
  e.sinkId,
63
94
  e.autoplay,
95
+ e.videoOff,
96
+ e.error,
97
+ c.value,
64
98
  i.value,
65
- l.value,
99
+ b.value,
66
100
  o.value,
67
- a.value
101
+ n.value
68
102
  ],
69
103
  () => {
70
104
  if (o.value) {
71
- const r = i.value ? e.srcObject : null;
72
- o.value.srcObject !== r && (o.value.srcObject = r), u(o.value);
105
+ const r = e.srcObject;
106
+ o.value.srcObject !== r && (o.value.srcObject = r), s(o.value), e.autoplay && r && !e.videoOff && !e.error && p(o.value);
73
107
  }
74
- if (a.value) {
75
- const r = l.value ? e.srcObject : null;
76
- a.value.srcObject !== r && (a.value.srcObject = r), u(a.value), e.autoplay && l.value && a.value.play().catch(() => {
77
- });
108
+ if (n.value) {
109
+ const r = i.value ? e.srcObject : null;
110
+ n.value.srcObject !== r && (n.value.srcObject = r), s(n.value), e.autoplay && i.value && p(n.value);
78
111
  }
79
112
  },
80
113
  { immediate: !0, flush: "post" }
81
- ), h({ videoRef: o });
82
- const c = { props: e, videoRef: o, audioRef: a, hasMediaSource: n, videoVisible: i, getAudioTracks: s, hasAudioTracks: d, needsAudioOnlyOutput: l, videoMuted: y, videoSrc: g, initials: f, fallbackLabel: S, modifiers: q, setMediaElementSinkId: u, get NmorphAvatar() {
83
- return A;
114
+ ), N({ videoRef: o });
115
+ const B = { props: e, videoRef: o, audioRef: n, srcObjectTrackCount: u, hasMediaSource: y, getAudioTracks: h, getVideoTracks: g, updateSrcObjectTrackCount: d, canInspectVideoTracks: k, hasVideoTracks: O, hasVideoSource: S, videoVisible: c, needsSeparateAudioOutput: i, videoMuted: b, videoSrc: T, initials: q, fallbackLabel: M, modifiers: V, setMediaElementSinkId: s, logMediaPlaybackError: f, playMediaElement: p, get NmorphAvatar() {
116
+ return R;
84
117
  }, get NmorphButton() {
85
- return _;
118
+ return w;
86
119
  }, get NmorphIcon() {
87
- return j;
120
+ return x;
88
121
  }, get NmorphIconLoaderDots() {
89
- return M;
122
+ return D;
90
123
  }, get NmorphIconMute() {
91
- return N;
124
+ return C;
92
125
  }, get NmorphIconShare() {
93
- return I;
126
+ return A;
94
127
  }, get NmorphIconVideoCameraOff() {
95
- return k;
128
+ return L;
96
129
  } };
97
- return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
130
+ return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
98
131
  }
99
132
  });
100
133
  export {
101
- F as default
134
+ W as default
102
135
  };
@@ -1 +1 @@
1
- .nmorph-pagination{display:flex;justify-content:center;margin-top:var(--indentation-04)}.nmorph-pagination .nmorph-radio-group__content{display:flex;gap:8px;justify-content:center}.nmorph-pagination .nmorph-radio-group{display:inline-flex;align-items:center}.nmorph-pagination .nmorph-radio-group .nmorph-radio:not(:last-child){margin-right:0;margin-bottom:0}.nmorph-pagination .nmorph-pagination__page-group{margin:0 var(--indentation-01)}.nmorph-pagination .nmorph-pagination__prev-icon{rotate:90deg}.nmorph-pagination .nmorph-pagination__next-icon{rotate:-90deg}.nmorph-pagination .nmorph-pagination__prev-btn{margin-right:8px}.nmorph-pagination .nmorph-pagination__next-btn{margin-left:8px}.nmorph-pagination .nmorph-pagination__page-btn{--nmorph-private-control-height: var(--nmorph-private-pagination-height);--nmorph-private-selection-control-size: var(--nmorph-private-pagination-height);width:40px;min-width:40px;height:var(--nmorph-private-pagination-height);min-height:var(--nmorph-private-pagination-height)}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__content,.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__fake{width:100%;height:100%}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio.nmorph-radio--nmorph .nmorph-radio__fake{padding:0}.nmorph-pagination .nmorph-pagination__page-btn-wrapper{display:flex}.nmorph-pagination .nmorph-pagination__prev-secondary-btn{margin-right:8px}.nmorph-pagination .nmorph-pagination__next-secondary-btn{margin-left:8px}
1
+ .nmorph-pagination{display:flex;justify-content:center;box-sizing:border-box;width:var(--nmorph-private-pagination-width, 100%);min-width:min(100%,var(--nmorph-private-pagination-min-width, 0px));max-width:100%;margin-top:var(--indentation-04);margin-right:auto;margin-left:auto}.nmorph-pagination.nmorph-pagination--fixed-container{width:var(--nmorph-private-pagination-width, var(--nmorph-private-pagination-fixed-width))}.nmorph-pagination .nmorph-radio-group__content{display:flex;gap:8px;justify-content:center}.nmorph-pagination .nmorph-radio-group{display:inline-flex;align-items:center}.nmorph-pagination .nmorph-radio-group .nmorph-radio:not(:last-child){margin-right:0;margin-bottom:0}.nmorph-pagination .nmorph-pagination__page-group{margin:0 var(--indentation-01)}.nmorph-pagination .nmorph-pagination__prev-icon{rotate:90deg}.nmorph-pagination .nmorph-pagination__next-icon{rotate:-90deg}.nmorph-pagination .nmorph-pagination__prev-btn{margin-right:8px}.nmorph-pagination .nmorph-pagination__next-btn{margin-left:8px}.nmorph-pagination .nmorph-pagination__page-btn{--nmorph-private-control-height: var(--nmorph-private-pagination-height);--nmorph-private-selection-control-size: var(--nmorph-private-pagination-height);width:40px;min-width:40px;height:var(--nmorph-private-pagination-height);min-height:var(--nmorph-private-pagination-height)}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__content,.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__fake{width:100%;height:100%}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio.nmorph-radio--nmorph .nmorph-radio__fake{padding:0}.nmorph-pagination .nmorph-pagination__page-btn-wrapper{display:flex}.nmorph-pagination .nmorph-pagination__prev-secondary-btn{margin-right:8px}.nmorph-pagination .nmorph-pagination__next-secondary-btn{margin-left:8px}
@@ -17,7 +17,7 @@ function k(v, r, g, n, f, N) {
17
17
  disabled: n.blockPrevButton || n.interactionDisabled,
18
18
  onClick: n.prevClick
19
19
  }, {
20
- default: e(() => [
20
+ "icon-only": e(() => [
21
21
  i(n.NmorphIcon, { class: "nmorph-pagination__prev-icon" }, {
22
22
  default: e(() => [
23
23
  i(n.NmorphIconChevronDown)
@@ -50,7 +50,7 @@ function k(v, r, g, n, f, N) {
50
50
  text: o.label,
51
51
  thickness: n.props.thickness,
52
52
  disabled: n.interactionDisabled,
53
- onClick: (x) => n.bigStepUpdate(o.value)
53
+ onClick: (y) => n.bigStepUpdate(o.value)
54
54
  }, null, 8, ["class", "text", "thickness", "disabled", "onClick"])) : (a(), s(n.NmorphRadio, {
55
55
  key: 1,
56
56
  value: o.value,
@@ -73,7 +73,7 @@ function k(v, r, g, n, f, N) {
73
73
  disabled: n.blockNextButton || n.interactionDisabled,
74
74
  onClick: n.nextClick
75
75
  }, {
76
- default: e(() => [
76
+ "icon-only": e(() => [
77
77
  i(n.NmorphIcon, { class: "nmorph-pagination__next-icon" }, {
78
78
  default: e(() => [
79
79
  i(n.NmorphIconChevronDown)
@@ -87,7 +87,7 @@ function k(v, r, g, n, f, N) {
87
87
  }, 8, ["thickness", "disabled"])
88
88
  ], 14, b)) : p("v-if", !0);
89
89
  }
90
- const u = /* @__PURE__ */ _(c, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-pagination/NmorphPagination.vue"]]);
90
+ const P = /* @__PURE__ */ _(c, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-pagination/NmorphPagination.vue"]]);
91
91
  export {
92
- u as default
92
+ P as default
93
93
  };
@@ -1,12 +1,13 @@
1
1
  import './NmorphPagination.css';
2
- import { defineComponent as O, computed as n, ref as g, watch as c } from "vue";
3
- import { useModifiers as Q } from "../../../utils/create-modifiers.js";
4
- import V from "../../form/nmorph-radio/NmorphRadio.vue.js";
2
+ import { defineComponent as V, computed as i, ref as b, watch as d } from "vue";
3
+ import { useModifiers as O } from "../../../utils/create-modifiers.js";
4
+ import { createCssSizeVariables as Q } from "../../../utils/common.js";
5
+ import W from "../../form/nmorph-radio/NmorphRadio.vue.js";
5
6
  import F from "../../basic/nmorph-icon/NmorphIcon.vue.js";
6
- import M from "../../basic/nmorph-button/NmorphButton.vue.js";
7
- import I from "../../form/nmorph-radio-group/NmorphRadioGroup.vue.js";
8
- import R from "../../../assets/icons/chevron-down.svg.js";
9
- const z = /* @__PURE__ */ O({
7
+ import I from "../../basic/nmorph-button/NmorphButton.vue.js";
8
+ import R from "../../form/nmorph-radio-group/NmorphRadioGroup.vue.js";
9
+ import D from "../../../assets/icons/chevron-down.svg.js";
10
+ const K = /* @__PURE__ */ V({
10
11
  __name: "NmorphPagination",
11
12
  props: {
12
13
  totalElementsQuantity: { type: Number, required: !0 },
@@ -17,88 +18,111 @@ const z = /* @__PURE__ */ O({
17
18
  hideOnSinglePage: { type: Boolean, required: !1, default: !0 },
18
19
  maxVisiblePages: { type: Number, required: !1, default: 9 },
19
20
  fastForwardStep: { type: Number, required: !1, default: 5 },
20
- thickness: { type: null, required: !1, default: "basic" }
21
+ thickness: { type: null, required: !1, default: "basic" },
22
+ fixedContainer: { type: Boolean, required: !1, default: !1 },
23
+ width: { type: [Number, String], required: !1, default: void 0 },
24
+ minWidth: { type: [Number, String], required: !1, default: void 0 }
21
25
  },
22
26
  emits: ["update:model-value"],
23
- setup(b, { expose: h, emit: N }) {
24
- h();
25
- const t = b, p = N, S = n(
26
- () => Q({
27
- "nmorph-pagination": [t.disabled && "disabled", t.loading && "loading"]
27
+ setup(N, { expose: S, emit: x }) {
28
+ S();
29
+ const t = N, c = x, y = i(
30
+ () => O({
31
+ "nmorph-pagination": [
32
+ t.disabled && "disabled",
33
+ t.loading && "loading",
34
+ t.fixedContainer && "fixed-container"
35
+ ]
28
36
  })
29
- ), d = {
37
+ ), g = {
30
38
  thick: "var(--thick-component)",
31
39
  basic: "var(--basic-component)",
32
40
  thin: "var(--thin-component)"
33
- }, y = n(() => ({
34
- "--nmorph-private-pagination-height": d[t.thickness]
35
- })), P = n(() => t.disabled || t.loading), k = () => {
36
- r.value = String(Number(r.value) - 1);
37
- }, _ = () => {
38
- r.value = String(Number(r.value) + 1);
39
- }, r = g(String(t.modelValue)), u = n(() => {
41
+ }, o = i(() => Math.max(1, Math.floor(t.maxVisiblePages))), v = i(() => {
42
+ const e = o.value * 40, a = Math.max(0, o.value - 1) * 8;
43
+ return [
44
+ "calc(",
45
+ "var(--nmorph-private-pagination-height) + ",
46
+ "var(--nmorph-private-pagination-height) + ",
47
+ "16px + var(--indentation-01) + var(--indentation-01) + ",
48
+ `${e + a}px`,
49
+ ")"
50
+ ].join("");
51
+ }), P = i(() => ({
52
+ "--nmorph-private-pagination-height": g[t.thickness],
53
+ "--nmorph-private-pagination-fixed-pages": o.value,
54
+ "--nmorph-private-pagination-fixed-width": v.value,
55
+ ...Q({
56
+ "--nmorph-private-pagination-width": t.width,
57
+ "--nmorph-private-pagination-min-width": t.minWidth
58
+ })
59
+ })), q = i(() => t.disabled || t.loading), k = () => {
60
+ n.value = String(Number(n.value) - 1);
61
+ }, w = () => {
62
+ n.value = String(Number(n.value) + 1);
63
+ }, n = b(String(t.modelValue)), u = i(() => {
40
64
  const e = Number(t.totalElementsQuantity), a = Number(t.elementsQuantityOnPage);
41
65
  return !Number.isFinite(e) || !Number.isFinite(a) || e <= 0 || a <= 0 ? 0 : Math.ceil(e / a);
42
- }), i = n(
66
+ }), s = i(
43
67
  () => Array.from({ length: u.value }, (e, a) => ({ value: String(a + 1), label: String(a + 1) }))
44
- ), s = g([]), v = n(() => {
45
- const e = String(Math.max(1, Number(r.value) || 1));
68
+ ), p = b([]), f = i(() => {
69
+ const e = String(Math.max(1, Number(n.value) || 1));
46
70
  return [{ value: e, label: e }];
47
- }), l = n(() => t.loading && s.value.length ? s.value : i.value.length ? i.value : v.value), q = n(() => t.loading || !t.hideOnSinglePage || u.value > 1);
48
- c(r, (e) => {
49
- p("update:model-value", Number(e));
50
- }), c(
51
- [i, () => t.loading],
71
+ }), r = i(() => t.loading && p.value.length ? p.value : s.value.length ? s.value : f.value), _ = i(() => t.loading || !t.hideOnSinglePage || u.value > 1);
72
+ d(n, (e) => {
73
+ c("update:model-value", Number(e));
74
+ }), d(
75
+ [s, () => t.loading],
52
76
  ([e, a]) => {
53
- (e.length || !a) && (s.value = e);
77
+ (e.length || !a) && (p.value = e);
54
78
  },
55
79
  { immediate: !0 }
56
- ), c(
80
+ ), d(
57
81
  () => t.modelValue,
58
82
  (e) => {
59
- r.value = String(e);
83
+ n.value = String(e);
60
84
  }
61
- ), c([u, () => t.loading], ([e, a]) => {
62
- a || e <= 0 || Number(r.value) > e && (r.value = String(e));
85
+ ), d([u, () => t.loading], ([e, a]) => {
86
+ a || e <= 0 || Number(n.value) > e && (n.value = String(e));
63
87
  });
64
- const x = n(() => Number(r.value) === 1), B = n(() => Number(r.value) >= l.value.length), w = n(() => {
65
- const e = l.value.length, a = Number(r.value), o = t.maxVisiblePages;
66
- if (e <= o)
67
- return l.value;
68
- const m = Math.floor(o / 2);
88
+ const B = i(() => Number(n.value) === 1), C = i(() => Number(n.value) >= r.value.length), M = i(() => {
89
+ const e = r.value.length, a = Number(n.value), l = t.maxVisiblePages;
90
+ if (e <= l)
91
+ return r.value;
92
+ const m = Math.floor(l / 2);
69
93
  return a <= m ? [
70
- ...l.value.slice(0, o - 2),
94
+ ...r.value.slice(0, l - 2),
71
95
  { value: "next", label: "..." },
72
- l.value[e - 1]
96
+ r.value[e - 1]
73
97
  ] : a >= e - m ? [
74
- l.value[0],
98
+ r.value[0],
75
99
  { value: "prev", label: "..." },
76
- ...l.value.slice(e - (o - 2))
100
+ ...r.value.slice(e - (l - 2))
77
101
  ] : [
78
- l.value[0],
102
+ r.value[0],
79
103
  { value: "prev", label: "..." },
80
- ...l.value.slice(a - m, a + m - 1),
104
+ ...r.value.slice(a - m, a + m - 1),
81
105
  { value: "next", label: "..." },
82
- l.value[e - 1]
106
+ r.value[e - 1]
83
107
  ];
84
- }), f = { props: t, emit: p, modifiers: S, thicknessHeightMap: d, paginationStyle: y, interactionDisabled: P, prevClick: k, nextClick: _, selectedPage: r, totalPages: u, pages: i, retainedPages: s, fallbackPages: v, effectivePages: l, show: q, blockPrevButton: x, blockNextButton: B, visiblePages: w, bigStepUpdate: (e) => {
85
- const a = Number(r.value);
86
- let o = e === "prev" ? a - t.fastForwardStep : a + t.fastForwardStep;
87
- o <= 0 && (o = 1), o >= l.value.length && (o = l.value.length), r.value = String(o);
108
+ }), h = { props: t, emit: c, modifiers: y, thicknessHeightMap: g, fixedPagesCount: o, fixedContainerWidth: v, paginationStyle: P, interactionDisabled: q, prevClick: k, nextClick: w, selectedPage: n, totalPages: u, pages: s, retainedPages: p, fallbackPages: f, effectivePages: r, show: _, blockPrevButton: B, blockNextButton: C, visiblePages: M, bigStepUpdate: (e) => {
109
+ const a = Number(n.value);
110
+ let l = e === "prev" ? a - t.fastForwardStep : a + t.fastForwardStep;
111
+ l <= 0 && (l = 1), l >= r.value.length && (l = r.value.length), n.value = String(l);
88
112
  }, get NmorphRadioGroup() {
89
- return I;
113
+ return R;
90
114
  }, get NmorphButton() {
91
- return M;
115
+ return I;
92
116
  }, get NmorphIcon() {
93
117
  return F;
94
118
  }, get NmorphRadio() {
95
- return V;
119
+ return W;
96
120
  }, get NmorphIconChevronDown() {
97
- return R;
121
+ return D;
98
122
  } };
99
- return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
123
+ return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
100
124
  }
101
125
  });
102
126
  export {
103
- z as default
127
+ K as default
104
128
  };
@@ -1 +1 @@
1
- .nmorph-table{--nmorph-private-table-border-color: var(--nmorph-info-text-color);--nmorph-private-table-cell-height: auto;--nmorph-private-table-row-hover-background: var(--nmorph-info-color)}.nmorph-table .nmorph-table__header th{border-bottom:0}.nmorph-table .nmorph-table__button-wrapper{display:flex;align-items:center;margin-left:var(--indentation-03)}.nmorph-table table{width:calc(100% - 2px);margin-left:1px;border-collapse:collapse;border-spacing:0}.nmorph-table .nmorph-table__table-data{padding:var(--indentation-03) 0;border-bottom:1px solid var(--nmorph-private-table-border-color)}.nmorph-table .nmorph-table__table-data--bordered{border:1px solid var(--nmorph-private-table-border-color)}.nmorph-table .nmorph-table__cell{padding:0 var(--indentation-03)}.nmorph-table .nmorph-table__cell-content{display:flex;align-items:center}.nmorph-table .nmorph-table__cell--data{height:var(--nmorph-private-table-cell-height)}.nmorph-table .nmorph-table__body{position:relative}.nmorph-table .nmorph-table__body--virtual{overflow-x:hidden}.nmorph-table .nmorph-table__body--virtual .nmorph-table__table-data{height:var(--nmorph-private-table-virtual-row-height);padding-top:0;padding-bottom:0}.nmorph-table .nmorph-table__body--virtual.nmorph-table__body--dynamic .nmorph-table__table-data{height:auto}.nmorph-table .nmorph-table__virtual-spacer{position:relative;min-width:100%}.nmorph-table .nmorph-table__virtual-content{position:absolute;top:0;right:0;left:0}.nmorph-table .nmorph-table__table-data-row--row-hover:hover,.nmorph-table .nmorph-table__table-data-row--active{background:var(--nmorph-private-table-row-hover-background)}.nmorph-table--nmorph{overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);--nmorph-private-table-border-color: transparent}.nmorph-table--nmorph .nmorph-table__button-wrapper{padding:var(--indentation-02)}.nmorph-table--nmorph .nmorph-table__table-row{background:var(--nmorph-main-color);box-shadow:var(--nmorph-shadow-inset)}.nmorph-table--plain{overflow:hidden;background:var(--nmorph-main-color);border:var(--nmorph-plain-border);border-radius:var(--default-border-radius)}
1
+ .nmorph-table{--nmorph-private-table-border-color: var(--nmorph-info-text-color);--nmorph-private-table-cell-height: auto;--nmorph-private-table-row-hover-background: var(--nmorph-info-color)}.nmorph-table .nmorph-table__header th{border-bottom:0}.nmorph-table .nmorph-table__button-wrapper{display:flex;align-items:center;margin-left:var(--indentation-03)}.nmorph-table table{width:calc(100% - 2px);margin-left:1px;table-layout:fixed;border-collapse:collapse;border-spacing:0}.nmorph-table .nmorph-table__table-data{padding:var(--indentation-03) 0;border-bottom:1px solid var(--nmorph-private-table-border-color)}.nmorph-table .nmorph-table__table-data--bordered{border:1px solid var(--nmorph-private-table-border-color)}.nmorph-table .nmorph-table__cell{padding:0 var(--indentation-03)}.nmorph-table .nmorph-table__cell-content{display:flex;align-items:center}.nmorph-table .nmorph-table__cell--data{height:var(--nmorph-private-table-cell-height)}.nmorph-table .nmorph-table__body{position:relative}.nmorph-table .nmorph-table__body--virtual{overflow-x:hidden}.nmorph-table .nmorph-table__body--virtual .nmorph-table__table-data{height:var(--nmorph-private-table-virtual-row-height);padding-top:0;padding-bottom:0}.nmorph-table .nmorph-table__body--virtual.nmorph-table__body--dynamic .nmorph-table__table-data{height:auto}.nmorph-table .nmorph-table__virtual-spacer{position:relative;min-width:100%}.nmorph-table .nmorph-table__virtual-content{position:absolute;top:0;right:0;left:0}.nmorph-table .nmorph-table__table-data-row--row-hover:hover,.nmorph-table .nmorph-table__table-data-row--active{background:var(--nmorph-private-table-row-hover-background)}.nmorph-table--nmorph{overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);--nmorph-private-table-border-color: transparent}.nmorph-table--nmorph .nmorph-table__button-wrapper{padding:var(--indentation-02)}.nmorph-table--nmorph .nmorph-table__table-row{background:var(--nmorph-main-color);box-shadow:var(--nmorph-shadow-inset)}.nmorph-table--plain{overflow:hidden;background:var(--nmorph-main-color);border:var(--nmorph-plain-border);border-radius:var(--default-border-radius)}.nmorph-table--plain.nmorph-table--bordered{border:1px solid var(--nmorph-private-table-border-color)}.nmorph-table--plain.nmorph-table--bordered table{width:100%;margin-left:0}.nmorph-table--plain.nmorph-table--bordered .nmorph-table__table-data--bordered{border:0;border-right:1px solid var(--nmorph-private-table-border-color);border-bottom:1px solid var(--nmorph-private-table-border-color)}.nmorph-table--plain.nmorph-table--bordered .nmorph-table__table-data--bordered:last-child{border-right:0}.nmorph-table--plain.nmorph-table--bordered .nmorph-table__body:not(.nmorph-table__body--virtual) .nmorph-table__table-data-row:last-child .nmorph-table__table-data--bordered{border-bottom:0}