@nmorph/nmorph-ui-kit 3.0.3 → 3.0.5

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-scroll/NmorphScroll.css +1 -1
  8. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +25 -20
  9. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  10. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +19 -17
  11. package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -1
  12. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +10 -10
  13. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
  14. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +7 -7
  15. package/dist/components/data/nmorph-image/NmorphImage.vue2.js +1 -1
  16. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
  17. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +5 -5
  18. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +184 -145
  19. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
  20. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +77 -82
  21. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +56 -34
  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-video-preview/NmorphVideoPreview.vue.js +4 -4
  25. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +25 -25
  26. package/dist/components/feedback/nmorph-guide/NmorphGuide.vue2.js +66 -61
  27. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +25 -23
  28. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
  29. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +88 -48
  30. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +75 -59
  31. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  32. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
  33. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +128 -95
  34. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +73 -71
  35. package/dist/components/navigation/nmorph-stepper/NmorphStepper.css +1 -1
  36. package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue.js +49 -26
  37. package/dist/index.umd.js +50 -50
  38. package/dist/package.json.js +1 -1
  39. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +1 -0
  40. package/dist/src/components/basic/nmorph-scroll/types.d.ts +1 -0
  41. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
  42. package/dist/src/components/data/nmorph-card/types.d.ts +1 -0
  43. package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +5 -1
  44. package/dist/src/components/data/nmorph-media-gallery/types.d.ts +8 -2
  45. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +2 -1
  46. package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -1
  47. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -0
  48. package/dist/src/components/data/nmorph-pagination/types.d.ts +1 -0
  49. package/dist/src/components/data/nmorph-qr-code/NmorphQRCode.vue.d.ts +1 -1
  50. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
  51. package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +2 -0
  52. package/dist/src/components/feedback/nmorph-guide/types.d.ts +4 -0
  53. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -0
  54. package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +2 -0
  55. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -2
  56. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
  57. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +1 -1
  58. package/dist/style.css +1 -1
  59. package/package.json +1 -1
@@ -1,141 +1,136 @@
1
1
  import './NmorphMediaTile.css';
2
- import m from "./NmorphMediaTile.vue2.js";
3
- import { openBlock as e, createElementBlock as r, normalizeClass as d, withDirectives as c, createElementVNode as p, vShow as _, createBlock as n, withCtx as s, createVNode as a, toDisplayString as l, createCommentVNode as i, renderSlot as h } from "vue";
2
+ import s from "./NmorphMediaTile.vue2.js";
3
+ import { openBlock as e, createElementBlock as a, normalizeClass as m, withDirectives as c, createElementVNode as p, vShow as _, createCommentVNode as i, createBlock as r, withCtx as l, createVNode as n, toDisplayString as t, renderSlot as h } from "vue";
4
4
  /* empty css */
5
5
  import f from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const v = ["src", "muted", "autoplay", "playsinline"], y = {
7
- key: 0,
6
+ const v = ["src", "muted", "autoplay", "playsinline"], y = ["muted", "autoplay"], k = {
7
+ key: 1,
8
8
  class: "nmorph-media-tile__fallback"
9
- }, k = {
9
+ }, b = {
10
10
  key: 2,
11
11
  class: "nmorph-media-tile__initials"
12
12
  }, N = {
13
13
  key: 3,
14
14
  class: "nmorph-media-tile__name"
15
- }, b = {
15
+ }, u = {
16
16
  key: 4,
17
17
  class: "nmorph-media-tile__error-text"
18
- }, I = {
19
- key: 1,
20
- class: "nmorph-media-tile__status"
21
- }, S = {
22
- key: 0,
23
- class: "nmorph-media-tile__status-item",
24
- "aria-label": "Microphone muted"
25
18
  }, g = {
26
- key: 1,
27
- class: "nmorph-media-tile__status-item",
28
- "aria-label": "Video off"
29
- }, z = {
30
19
  key: 2,
31
- class: "nmorph-media-tile__status-item",
32
- "aria-label": "Screen sharing"
33
- }, V = {
34
- key: 3,
35
- class: "nmorph-media-tile__status-item",
36
- "aria-label": "Pinned"
20
+ class: "nmorph-media-tile__status"
37
21
  };
38
- function x(t, w, M, o, T, B) {
39
- return e(), r(
22
+ function S(d, x, V, o, B, M) {
23
+ return e(), a(
40
24
  "div",
41
25
  {
42
- class: d(o.modifiers)
26
+ class: m(o.modifiers)
43
27
  },
44
28
  [
45
29
  c(p("video", {
46
30
  ref: "videoRef",
47
31
  class: "nmorph-media-tile__video",
48
- src: o.props.src || void 0,
49
- muted: o.props.muted,
32
+ src: o.videoSrc,
33
+ muted: o.videoMuted,
50
34
  autoplay: o.props.autoplay,
51
35
  playsinline: o.props.playsinline
52
36
  }, null, 8, v), [
53
- [_, o.hasVideo && !o.props.loading]
37
+ [_, o.videoVisible && !o.props.loading]
54
38
  ]),
55
- o.props.showFallback && (!o.hasVideo || o.props.loading) ? (e(), r("div", y, [
56
- o.props.loading ? (e(), n(o.NmorphIcon, {
39
+ o.needsAudioOnlyOutput ? (e(), a("audio", {
40
+ key: 0,
41
+ ref: "audioRef",
42
+ class: "nmorph-media-tile__audio",
43
+ muted: o.props.muted,
44
+ autoplay: o.props.autoplay,
45
+ preload: "auto"
46
+ }, null, 8, y)) : i("v-if", !0),
47
+ o.props.showFallback && (!o.videoVisible || o.props.loading) ? (e(), a("div", k, [
48
+ o.props.loading ? (e(), r(o.NmorphIcon, {
57
49
  key: 0,
58
50
  class: "nmorph-media-tile__loader",
59
51
  size: "large"
60
52
  }, {
61
- default: s(() => [
62
- a(o.NmorphIconLoaderDots)
53
+ default: l(() => [
54
+ n(o.NmorphIconLoaderDots)
63
55
  ]),
64
56
  _: 1
65
57
  /* STABLE */
66
- })) : o.props.avatarSrc ? (e(), n(o.NmorphAvatar, {
58
+ })) : o.props.avatarSrc ? (e(), r(o.NmorphAvatar, {
67
59
  key: 1,
68
60
  src: o.props.avatarSrc,
69
61
  name: o.props.name,
70
62
  size: 72,
71
63
  design: "plain"
72
- }, null, 8, ["src", "name"])) : (e(), r(
64
+ }, null, 8, ["src", "name"])) : (e(), a(
73
65
  "div",
74
- k,
75
- l(o.fallbackLabel),
66
+ b,
67
+ t(o.fallbackLabel),
76
68
  1
77
69
  /* TEXT */
78
70
  )),
79
- o.props.name ? (e(), r(
71
+ o.props.name ? (e(), a(
80
72
  "span",
81
73
  N,
82
- l(o.props.name),
74
+ t(o.props.name),
83
75
  1
84
76
  /* TEXT */
85
77
  )) : i("v-if", !0),
86
- o.props.error && o.props.errorText ? (e(), r(
78
+ o.props.error && o.props.errorText ? (e(), a(
87
79
  "span",
88
- b,
89
- l(o.props.errorText),
80
+ u,
81
+ t(o.props.errorText),
90
82
  1
91
83
  /* TEXT */
92
84
  )) : i("v-if", !0)
93
85
  ])) : i("v-if", !0),
94
- o.props.showStatus ? (e(), r("div", I, [
95
- o.props.micMuted ? (e(), r("span", S, [
96
- a(o.NmorphIcon, { size: "small" }, {
97
- default: s(() => [
98
- a(o.NmorphIconMic)
99
- ]),
100
- _: 1
101
- /* STABLE */
102
- })
103
- ])) : i("v-if", !0),
104
- o.props.videoOff ? (e(), r("span", g, [
105
- a(o.NmorphIcon, { size: "small" }, {
106
- default: s(() => [
107
- a(o.NmorphIconVideo)
108
- ]),
109
- _: 1
110
- /* STABLE */
111
- })
112
- ])) : i("v-if", !0),
113
- o.props.screenSharing ? (e(), r("span", z, [
114
- a(o.NmorphIcon, { size: "small" }, {
115
- default: s(() => [
116
- a(o.NmorphIconShare)
117
- ]),
118
- _: 1
119
- /* STABLE */
120
- })
121
- ])) : i("v-if", !0),
122
- o.props.pinned ? (e(), r("span", V, [
123
- a(o.NmorphIcon, { size: "small" }, {
124
- default: s(() => [
125
- a(o.NmorphIconPin)
126
- ]),
127
- _: 1
128
- /* STABLE */
129
- })
130
- ])) : i("v-if", !0)
86
+ o.props.showStatus ? (e(), a("div", g, [
87
+ o.props.micMuted ? (e(), r(o.NmorphButton, {
88
+ key: 0,
89
+ class: "nmorph-media-tile__status-item",
90
+ design: "plain",
91
+ tabindex: -1,
92
+ "aria-label": "Microphone muted"
93
+ }, {
94
+ "icon-only": l(() => [
95
+ n(o.NmorphIconMute)
96
+ ]),
97
+ _: 1
98
+ /* STABLE */
99
+ })) : i("v-if", !0),
100
+ o.props.videoOff ? (e(), r(o.NmorphButton, {
101
+ key: 1,
102
+ class: "nmorph-media-tile__status-item",
103
+ design: "plain",
104
+ tabindex: -1,
105
+ "aria-label": "Video off"
106
+ }, {
107
+ "icon-only": l(() => [
108
+ n(o.NmorphIconVideoCameraOff)
109
+ ]),
110
+ _: 1
111
+ /* STABLE */
112
+ })) : i("v-if", !0),
113
+ o.props.screenSharing ? (e(), r(o.NmorphButton, {
114
+ key: 2,
115
+ class: "nmorph-media-tile__status-item",
116
+ design: "plain",
117
+ tabindex: -1,
118
+ "aria-label": "Screen sharing"
119
+ }, {
120
+ "icon-only": l(() => [
121
+ n(o.NmorphIconShare)
122
+ ]),
123
+ _: 1
124
+ /* STABLE */
125
+ })) : i("v-if", !0)
131
126
  ])) : i("v-if", !0),
132
- h(t.$slots, "overlay")
127
+ h(d.$slots, "overlay")
133
128
  ],
134
129
  2
135
130
  /* CLASS */
136
131
  );
137
132
  }
138
- const P = /* @__PURE__ */ f(m, [["render", x], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-tile/NmorphMediaTile.vue"]]);
133
+ const T = /* @__PURE__ */ f(s, [["render", S], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-tile/NmorphMediaTile.vue"]]);
139
134
  export {
140
- P as default
135
+ T as default
141
136
  };
@@ -1,18 +1,19 @@
1
1
  import './NmorphMediaTile.css';
2
- import { defineComponent as d, ref as p, computed as o, watch as c } from "vue";
3
- import { useModifiers as m } from "../../../utils/create-modifiers.js";
4
- import h from "../../../assets/icons/share.svg.js";
5
- import y from "../../../assets/icons/pin.svg.js";
6
- import g from "../../../assets/icons/mic.svg.js";
7
- import q from "../../basic/nmorph-icon/NmorphIcon.vue.js";
8
- import B from "../nmorph-avatar/NmorphAvatar.vue.js";
9
- import v from "../../../assets/icons/video.svg.js";
10
- import N from "../../../assets/icons/loader.svg.js";
11
- const x = /* @__PURE__ */ d({
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({
12
12
  __name: "NmorphMediaTile",
13
13
  props: {
14
14
  src: { type: String, required: !1, default: "" },
15
15
  srcObject: { type: null, required: !1, default: null },
16
+ sinkId: { type: String, required: !1, default: void 0 },
16
17
  fit: { type: String, required: !1, default: "cover" },
17
18
  mirrored: { type: Boolean, required: !1, default: !1 },
18
19
  muted: { type: Boolean, required: !1, default: !0 },
@@ -28,20 +29,20 @@ const x = /* @__PURE__ */ d({
28
29
  screenSharing: { type: Boolean, required: !1, default: !1 },
29
30
  speaking: { type: Boolean, required: !1, default: !1 },
30
31
  selected: { type: Boolean, required: !1, default: !1 },
31
- pinned: { type: Boolean, required: !1, default: !1 },
32
32
  error: { type: Boolean, required: !1, default: !1 },
33
33
  errorText: { type: String, required: !1, default: "" }
34
34
  },
35
- setup(l, { expose: i }) {
36
- const e = l, r = p(null), n = o(() => !!((e.src || e.srcObject) && !e.videoOff && !e.error)), t = o(
37
- () => e.name.split(/\s+/).filter(Boolean).slice(0, 2).map((u) => u[0]?.toUpperCase()).join("")
38
- ), f = o(() => t.value || e.name || "?"), s = o(
39
- () => m({
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(
39
+ () => 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({
40
42
  "nmorph-media-tile": [
41
43
  e.fit,
42
44
  e.mirrored && "mirrored",
43
45
  e.selected && "selected",
44
- e.pinned && "pinned",
45
46
  e.speaking && "speaking",
46
47
  e.error && "error",
47
48
  e.videoOff && "video-off",
@@ -49,32 +50,53 @@ const x = /* @__PURE__ */ d({
49
50
  e.loading && "loading"
50
51
  ]
51
52
  })
52
- );
53
- c(
54
- () => [e.srcObject, r.value],
53
+ ), u = (r) => {
54
+ if (!r || e.sinkId === void 0) return;
55
+ const p = r;
56
+ typeof p.setSinkId == "function" && p.setSinkId(e.sinkId).catch(() => {
57
+ });
58
+ };
59
+ B(
60
+ () => [
61
+ e.srcObject,
62
+ e.sinkId,
63
+ e.autoplay,
64
+ i.value,
65
+ l.value,
66
+ o.value,
67
+ a.value
68
+ ],
55
69
  () => {
56
- r.value && r.value.srcObject !== e.srcObject && (r.value.srcObject = e.srcObject);
70
+ if (o.value) {
71
+ const r = i.value ? e.srcObject : null;
72
+ o.value.srcObject !== r && (o.value.srcObject = r), u(o.value);
73
+ }
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
+ });
78
+ }
57
79
  },
58
80
  { immediate: !0, flush: "post" }
59
- ), i({ videoRef: r });
60
- const a = { props: e, videoRef: r, hasVideo: n, initials: t, fallbackLabel: f, modifiers: s, get NmorphAvatar() {
61
- return B;
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;
84
+ }, get NmorphButton() {
85
+ return _;
62
86
  }, get NmorphIcon() {
63
- return q;
87
+ return j;
64
88
  }, get NmorphIconLoaderDots() {
89
+ return M;
90
+ }, get NmorphIconMute() {
65
91
  return N;
66
- }, get NmorphIconMic() {
67
- return g;
68
- }, get NmorphIconPin() {
69
- return y;
70
92
  }, get NmorphIconShare() {
71
- return h;
72
- }, get NmorphIconVideo() {
73
- return v;
93
+ return I;
94
+ }, get NmorphIconVideoCameraOff() {
95
+ return k;
74
96
  } };
75
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
97
+ return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
76
98
  }
77
99
  });
78
100
  export {
79
- x as default
101
+ F as default
80
102
  };
@@ -1,97 +1,93 @@
1
1
  import './NmorphPagination.css';
2
- import d from "./NmorphPagination.vue2.js";
3
- import { openBlock as e, createElementBlock as l, normalizeStyle as c, normalizeClass as t, createVNode as a, withCtx as i, Fragment as p, renderList as m, createBlock as s, createCommentVNode as h } from "vue";
2
+ import c from "./NmorphPagination.vue2.js";
3
+ import { openBlock as a, createElementBlock as l, normalizeStyle as d, normalizeClass as t, createVNode as i, withCtx as e, Fragment as h, renderList as m, createBlock as s, createCommentVNode as p } from "vue";
4
4
  /* empty css */
5
5
  import _ from "../../../_virtual/_plugin-vue_export-helper.js";
6
- function b(k, r, v, n, g, f) {
7
- return n.show ? (e(), l(
8
- "div",
9
- {
10
- key: 0,
11
- class: t(n.modifiers),
12
- style: c(n.paginationStyle)
13
- },
14
- [
15
- a(n.NmorphButton, {
16
- class: "nmorph-pagination__btn nmorph-pagination__prev-btn",
17
- thickness: n.props.thickness,
18
- disabled: n.blockPrevButton || n.props.disabled,
19
- onClick: n.prevClick
20
- }, {
21
- default: i(() => [
22
- a(n.NmorphIcon, { class: "nmorph-pagination__prev-icon" }, {
23
- default: i(() => [
24
- a(n.NmorphIconChevronDown)
25
- ]),
26
- _: 1
27
- /* STABLE */
28
- })
29
- ]),
30
- _: 1
31
- /* STABLE */
32
- }, 8, ["thickness", "disabled"]),
33
- a(n.NmorphRadioGroup, {
34
- modelValue: n.selectedPage,
35
- "onUpdate:modelValue": r[0] || (r[0] = (o) => n.selectedPage = o),
36
- class: "nmorph-pagination__page-group",
37
- thickness: n.props.thickness,
38
- disabled: n.props.disabled
39
- }, {
40
- default: i(() => [
41
- (e(!0), l(
42
- p,
43
- null,
44
- m(n.visiblePages, (o) => (e(), l("div", {
45
- key: o.value,
46
- class: "nmorph-pagination__page-btn-wrapper"
47
- }, [
48
- o.value === "prev" || o.value === "next" ? (e(), s(n.NmorphButton, {
49
- key: 0,
50
- class: t(`nmorph-pagination__page-btn nmorph-pagination__${o.value}`),
51
- text: o.label,
52
- thickness: n.props.thickness,
53
- disabled: n.props.disabled,
54
- onClick: (N) => n.bigStepUpdate(o.value)
55
- }, null, 8, ["class", "text", "thickness", "disabled", "onClick"])) : (e(), s(n.NmorphRadio, {
56
- key: 1,
57
- value: o.value,
58
- label: o.label,
59
- class: "nmorph-pagination__page-btn",
60
- thickness: n.props.thickness,
61
- disabled: n.props.disabled
62
- }, null, 8, ["value", "label", "thickness", "disabled"]))
63
- ]))),
64
- 128
65
- /* KEYED_FRAGMENT */
66
- ))
67
- ]),
68
- _: 1
69
- /* STABLE */
70
- }, 8, ["modelValue", "thickness", "disabled"]),
71
- a(n.NmorphButton, {
72
- class: "nmorph-pagination__btn nmorph-pagination__next-btn",
73
- thickness: n.props.thickness,
74
- disabled: n.blockNextButton || n.props.disabled,
75
- onClick: n.nextClick
76
- }, {
77
- default: i(() => [
78
- a(n.NmorphIcon, { class: "nmorph-pagination__next-icon" }, {
79
- default: i(() => [
80
- a(n.NmorphIconChevronDown)
81
- ]),
82
- _: 1
83
- /* STABLE */
84
- })
85
- ]),
86
- _: 1
87
- /* STABLE */
88
- }, 8, ["thickness", "disabled"])
89
- ],
90
- 6
91
- /* CLASS, STYLE */
92
- )) : h("v-if", !0);
6
+ const b = ["aria-busy"];
7
+ function k(v, r, g, n, f, N) {
8
+ return n.show ? (a(), l("div", {
9
+ key: 0,
10
+ class: t(n.modifiers),
11
+ style: d(n.paginationStyle),
12
+ "aria-busy": n.props.loading || void 0
13
+ }, [
14
+ i(n.NmorphButton, {
15
+ class: "nmorph-pagination__btn nmorph-pagination__prev-btn",
16
+ thickness: n.props.thickness,
17
+ disabled: n.blockPrevButton || n.interactionDisabled,
18
+ onClick: n.prevClick
19
+ }, {
20
+ default: e(() => [
21
+ i(n.NmorphIcon, { class: "nmorph-pagination__prev-icon" }, {
22
+ default: e(() => [
23
+ i(n.NmorphIconChevronDown)
24
+ ]),
25
+ _: 1
26
+ /* STABLE */
27
+ })
28
+ ]),
29
+ _: 1
30
+ /* STABLE */
31
+ }, 8, ["thickness", "disabled"]),
32
+ i(n.NmorphRadioGroup, {
33
+ modelValue: n.selectedPage,
34
+ "onUpdate:modelValue": r[0] || (r[0] = (o) => n.selectedPage = o),
35
+ class: "nmorph-pagination__page-group",
36
+ thickness: n.props.thickness,
37
+ disabled: n.interactionDisabled
38
+ }, {
39
+ default: e(() => [
40
+ (a(!0), l(
41
+ h,
42
+ null,
43
+ m(n.visiblePages, (o) => (a(), l("div", {
44
+ key: o.value,
45
+ class: "nmorph-pagination__page-btn-wrapper"
46
+ }, [
47
+ o.value === "prev" || o.value === "next" ? (a(), s(n.NmorphButton, {
48
+ key: 0,
49
+ class: t(`nmorph-pagination__page-btn nmorph-pagination__${o.value}`),
50
+ text: o.label,
51
+ thickness: n.props.thickness,
52
+ disabled: n.interactionDisabled,
53
+ onClick: (x) => n.bigStepUpdate(o.value)
54
+ }, null, 8, ["class", "text", "thickness", "disabled", "onClick"])) : (a(), s(n.NmorphRadio, {
55
+ key: 1,
56
+ value: o.value,
57
+ label: o.label,
58
+ class: "nmorph-pagination__page-btn",
59
+ thickness: n.props.thickness,
60
+ disabled: n.interactionDisabled
61
+ }, null, 8, ["value", "label", "thickness", "disabled"]))
62
+ ]))),
63
+ 128
64
+ /* KEYED_FRAGMENT */
65
+ ))
66
+ ]),
67
+ _: 1
68
+ /* STABLE */
69
+ }, 8, ["modelValue", "thickness", "disabled"]),
70
+ i(n.NmorphButton, {
71
+ class: "nmorph-pagination__btn nmorph-pagination__next-btn",
72
+ thickness: n.props.thickness,
73
+ disabled: n.blockNextButton || n.interactionDisabled,
74
+ onClick: n.nextClick
75
+ }, {
76
+ default: e(() => [
77
+ i(n.NmorphIcon, { class: "nmorph-pagination__next-icon" }, {
78
+ default: e(() => [
79
+ i(n.NmorphIconChevronDown)
80
+ ]),
81
+ _: 1
82
+ /* STABLE */
83
+ })
84
+ ]),
85
+ _: 1
86
+ /* STABLE */
87
+ }, 8, ["thickness", "disabled"])
88
+ ], 14, b)) : p("v-if", !0);
93
89
  }
94
- const P = /* @__PURE__ */ _(d, [["render", b], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-pagination/NmorphPagination.vue"]]);
90
+ const u = /* @__PURE__ */ _(c, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-pagination/NmorphPagination.vue"]]);
95
91
  export {
96
- P as default
92
+ u as default
97
93
  };