@nmorph/nmorph-ui-kit 3.0.10 → 3.0.13

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 (105) hide show
  1. package/dist/assets/icons/cross.svg.js +1 -1
  2. package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
  3. package/dist/components/basic/nmorph-button/NmorphButton.vue.js +20 -14
  4. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +30 -25
  5. package/dist/components/basic/nmorph-icon/NmorphIcon.vue.js +10 -10
  6. package/dist/components/basic/nmorph-layout/NmorphLayout.vue.js +3 -3
  7. package/dist/components/basic/nmorph-link/NmorphLink.vue.js +8 -8
  8. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -4
  9. package/dist/components/basic/nmorph-space/NmorphSpace.vue.js +11 -11
  10. package/dist/components/basic/nmorph-text/NmorphText.vue.js +11 -11
  11. package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.js +8 -8
  12. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +11 -11
  13. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +46 -46
  14. package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +16 -16
  15. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +31 -31
  16. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +6 -6
  17. package/dist/components/data/nmorph-card/NmorphCard.vue.js +7 -7
  18. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +3 -3
  19. package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.js +7 -7
  20. package/dist/components/data/nmorph-collapse/NmorphCollapse.vue.js +8 -8
  21. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +12 -12
  22. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +6 -6
  23. package/dist/components/data/nmorph-empty/NmorphEmpty.vue.js +16 -16
  24. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +9 -9
  25. package/dist/components/data/nmorph-image/NmorphImage.vue.js +8 -8
  26. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +24 -24
  27. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +13 -13
  28. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +11 -11
  29. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +8 -8
  30. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +1 -1
  31. package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +3 -3
  32. package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue.js +18 -18
  33. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +14 -14
  34. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
  35. package/dist/components/data/nmorph-table/NmorphTable.vue.js +2 -2
  36. package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js +7 -7
  37. package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js +10 -10
  38. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +5 -5
  39. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +3 -3
  40. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.js +9 -9
  41. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +23 -23
  42. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue.js +10 -10
  43. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +9 -9
  44. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +8 -8
  45. package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +12 -12
  46. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +6 -6
  47. package/dist/components/feedback/nmorph-guide/NmorphGuide.vue.js +7 -7
  48. package/dist/components/feedback/nmorph-guide/NmorphGuide.vue2.js +82 -73
  49. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
  50. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +79 -84
  51. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue2.js +36 -28
  52. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +49 -55
  53. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +27 -24
  54. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
  55. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +18 -18
  56. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +7 -7
  57. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +8 -8
  58. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +7 -7
  59. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +4 -4
  60. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.js +9 -9
  61. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js +8 -8
  62. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +2 -2
  63. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +4 -4
  64. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +23 -23
  65. package/dist/components/form/nmorph-form/NmorphForm.vue.js +8 -8
  66. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +10 -10
  67. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.css +1 -1
  68. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.js +21 -27
  69. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +4 -4
  70. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +10 -10
  71. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +1 -1
  72. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +16 -16
  73. package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +20 -20
  74. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +10 -10
  75. package/dist/components/form/nmorph-select/NmorphSelect.vue.js +1 -1
  76. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
  77. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +9 -9
  78. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +11 -11
  79. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +12 -12
  80. package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +6 -6
  81. package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +10 -10
  82. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +9 -9
  83. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +5 -5
  84. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +38 -38
  85. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +12 -12
  86. package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.js +11 -11
  87. package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.js +7 -7
  88. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +18 -18
  89. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +2 -2
  90. package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue.js +12 -12
  91. package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue.js +15 -15
  92. package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.js +10 -10
  93. package/dist/components/others/nmorph-divider/NmorphDivider.vue.js +4 -4
  94. package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
  95. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +8 -8
  96. package/dist/index.umd.js +29 -29
  97. package/dist/package.json.js +1 -1
  98. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +1 -0
  99. package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +2 -0
  100. package/dist/src/components/feedback/nmorph-guide/types.d.ts +5 -1
  101. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -0
  102. package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +3 -0
  103. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +11 -3
  104. package/dist/style.css +1 -1
  105. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
1
  import './NmorphCallout.css';
2
2
  import n from "./NmorphCallout.vue2.js";
3
- import { openBlock as t, createBlock as s, resolveDynamicComponent as a, mergeProps as c, withCtx as i, createElementBlock as r, renderSlot as l, createTextVNode as p, toDisplayString as m, createCommentVNode as _ } from "vue";
3
+ import { openBlock as t, createBlock as s, resolveDynamicComponent as a, mergeProps as c, withCtx as m, createElementBlock as r, renderSlot as l, createTextVNode as p, toDisplayString as i, createCommentVNode as _ } from "vue";
4
4
  /* empty css */
5
- import d from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const h = {
5
+ import h from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const d = {
7
7
  key: 0,
8
8
  class: "nmorph-callout__title"
9
9
  }, f = {
@@ -15,12 +15,12 @@ function y(e, k, v, o, C, N) {
15
15
  class: ["nmorph-callout", `nmorph-callout--${o.props.type}`],
16
16
  style: o.styles
17
17
  }, o.rootAttrs), {
18
- default: i(() => [
19
- o.hasHeader ? (t(), r("div", h, [
18
+ default: m(() => [
19
+ o.hasHeader ? (t(), r("div", d, [
20
20
  l(e.$slots, "header", {}, () => [
21
21
  l(e.$slots, "title", {}, () => [
22
22
  p(
23
- m(o.props.title),
23
+ i(o.props.title),
24
24
  1
25
25
  /* TEXT */
26
26
  )
@@ -39,7 +39,7 @@ function y(e, k, v, o, C, N) {
39
39
  /* FORWARDED */
40
40
  }, 16, ["class", "style"]);
41
41
  }
42
- const T = /* @__PURE__ */ d(n, [["render", y], ["__file", "/builds/ketjo/nmorph/library/src/components/feedback/nmorph-callout/NmorphCallout.vue"]]);
42
+ const b = /* @__PURE__ */ h(n, [["render", y], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/feedback/nmorph-callout/NmorphCallout.vue"]]);
43
43
  export {
44
- T as default
44
+ b as default
45
45
  };
@@ -1,13 +1,13 @@
1
1
  import './NmorphDialog.css';
2
2
  import c from "./NmorphDialog.vue2.js";
3
- import { openBlock as e, createBlock as d, withCtx as a, createElementVNode as l, normalizeStyle as m, normalizeClass as _, createElementBlock as i, renderSlot as s, toDisplayString as p, createVNode as n, createCommentVNode as t } from "vue";
3
+ import { openBlock as e, createBlock as d, withCtx as a, createElementVNode as l, normalizeStyle as m, normalizeClass as p, createElementBlock as i, renderSlot as n, toDisplayString as _, createVNode as s, createCommentVNode as t } from "vue";
4
4
  /* empty css */
5
5
  import h from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const f = ["aria-label"], g = {
7
7
  key: 0,
8
8
  class: "nmorph-dialog__header"
9
- }, y = { class: "nmorph-dialog__title" }, b = ["aria-label"], k = { class: "nmorph-dialog__content" };
10
- function v(r, C, N, o, w, x) {
9
+ }, y = { class: "nmorph-dialog__title" }, k = ["aria-label"], v = { class: "nmorph-dialog__content" };
10
+ function C(r, b, N, o, w, x) {
11
11
  return e(), d(o.NmorphOverlay, {
12
12
  show: o.isVisible,
13
13
  "z-index": o.props.zIndex,
@@ -18,18 +18,18 @@ function v(r, C, N, o, w, x) {
18
18
  }, {
19
19
  default: a(() => [
20
20
  l("div", {
21
- class: _(o.modifiers),
21
+ class: p(o.modifiers),
22
22
  style: m(o.dialogStyle),
23
23
  role: "dialog",
24
24
  "aria-modal": "true",
25
25
  "aria-label": o.props.title || void 0
26
26
  }, [
27
27
  o.hasHeader ? (e(), i("div", g, [
28
- s(r.$slots, "header", {}, () => [
28
+ n(r.$slots, "header", {}, () => [
29
29
  l(
30
30
  "div",
31
31
  y,
32
- p(o.props.title),
32
+ _(o.props.title),
33
33
  1
34
34
  /* TEXT */
35
35
  ),
@@ -40,18 +40,18 @@ function v(r, C, N, o, w, x) {
40
40
  "aria-label": o.props.title ? `Close ${o.props.title}` : "Close dialog",
41
41
  onClick: o.closeHandler
42
42
  }, [
43
- n(o.NmorphIcon, null, {
43
+ s(o.NmorphIcon, null, {
44
44
  default: a(() => [
45
- n(o.NmorphIconCross)
45
+ s(o.NmorphIconCross)
46
46
  ]),
47
47
  _: 1
48
48
  /* STABLE */
49
49
  })
50
- ], 8, b)) : t("v-if", !0)
50
+ ], 8, k)) : t("v-if", !0)
51
51
  ])
52
52
  ])) : t("v-if", !0),
53
- l("div", k, [
54
- s(r.$slots, "default")
53
+ l("div", v, [
54
+ n(r.$slots, "default")
55
55
  ])
56
56
  ], 14, f)
57
57
  ]),
@@ -59,7 +59,7 @@ function v(r, C, N, o, w, x) {
59
59
  /* FORWARDED */
60
60
  }, 8, ["show", "z-index", "close-on-escape"]);
61
61
  }
62
- const S = /* @__PURE__ */ h(c, [["render", v], ["__file", "/builds/ketjo/nmorph/library/src/components/feedback/nmorph-dialog/NmorphDialog.vue"]]);
62
+ const S = /* @__PURE__ */ h(c, [["render", C], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/feedback/nmorph-dialog/NmorphDialog.vue"]]);
63
63
  export {
64
64
  S as default
65
65
  };
@@ -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 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";
3
+ import { openBlock as e, createBlock as p, withCtx as n, createElementVNode as l, normalizeStyle as m, normalizeClass as i, 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 = {
@@ -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: i(() => [
24
+ default: n(() => [
25
25
  l("aside", {
26
- class: n(o.modifiers),
26
+ class: i(o.modifiers),
27
27
  style: m(o.drawerStyle),
28
28
  role: "dialog",
29
29
  "aria-modal": "true",
@@ -46,7 +46,7 @@ function v(r, C, N, o, z, O) {
46
46
  onClick: o.closeHandler
47
47
  }, [
48
48
  d(o.NmorphIcon, null, {
49
- default: i(() => [
49
+ default: n(() => [
50
50
  d(o.NmorphIconCross)
51
51
  ]),
52
52
  _: 1
@@ -58,7 +58,7 @@ function v(r, C, N, o, z, O) {
58
58
  l(
59
59
  "div",
60
60
  {
61
- class: n(["nmorph-drawer__content", o.props.contentClass])
61
+ class: i(["nmorph-drawer__content", o.props.contentClass])
62
62
  },
63
63
  [
64
64
  t(r.$slots, "default")
@@ -75,7 +75,7 @@ function v(r, C, N, o, z, O) {
75
75
  /* FORWARDED */
76
76
  }, 8, ["show", "z-index", "teleport-to", "disabled-teleport", "close-on-escape"]);
77
77
  }
78
- const V = /* @__PURE__ */ h(c, [["render", v], ["__file", "/builds/ketjo/nmorph/library/src/components/feedback/nmorph-drawer/NmorphDrawer.vue"]]);
78
+ const V = /* @__PURE__ */ h(c, [["render", v], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/feedback/nmorph-drawer/NmorphDrawer.vue"]]);
79
79
  export {
80
80
  V as default
81
81
  };
@@ -1,15 +1,15 @@
1
1
  import './NmorphGuide.css';
2
- import o from "./NmorphGuide.vue2.js";
3
- import { openBlock as r, createElementBlock as t, renderSlot as n } from "vue";
2
+ import r from "./NmorphGuide.vue2.js";
3
+ import { openBlock as e, createElementBlock as t, renderSlot as n } from "vue";
4
4
  /* empty css */
5
5
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const s = { class: "nmorph-guide" };
7
- function i(e, c, m, d, a, f) {
8
- return r(), t("div", s, [
9
- n(e.$slots, "default")
6
+ const m = { class: "nmorph-guide" };
7
+ function s(o, c, i, d, a, f) {
8
+ return e(), t("div", m, [
9
+ n(o.$slots, "default")
10
10
  ]);
11
11
  }
12
- const $ = /* @__PURE__ */ p(o, [["render", i], ["__file", "/builds/ketjo/nmorph/library/src/components/feedback/nmorph-guide/NmorphGuide.vue"]]);
12
+ const $ = /* @__PURE__ */ p(r, [["render", s], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/feedback/nmorph-guide/NmorphGuide.vue"]]);
13
13
  export {
14
14
  $ as default
15
15
  };
@@ -1,8 +1,8 @@
1
1
  import './NmorphGuide.css';
2
- import { defineComponent as j, ref as B, computed as a, watch as z, provide as A } from "vue";
3
- import { useZIndex as V } from "../../../hooks/use-z-index.js";
4
- import { nmorphGuideInjectionKey as W } from "./types.js";
5
- const E = /* @__PURE__ */ j({
2
+ import { defineComponent as A, ref as N, computed as r, watch as V, provide as W } from "vue";
3
+ import { useZIndex as G } from "../../../hooks/use-z-index.js";
4
+ import { nmorphGuideInjectionKey as K } from "./types.js";
5
+ const L = /* @__PURE__ */ A({
6
6
  __name: "NmorphGuide",
7
7
  props: {
8
8
  modelValue: { type: Boolean, required: !1, default: !1 },
@@ -13,6 +13,8 @@ const E = /* @__PURE__ */ j({
13
13
  showClose: { type: Boolean, required: !1, default: !0 },
14
14
  showProgress: { type: Boolean, required: !1, default: !0 },
15
15
  bordered: { type: Boolean, required: !1, default: !1 },
16
+ targetOutlineColor: { type: null, required: !1, default: "success" },
17
+ targetOutlineOffset: { type: [Number, String], required: !1, default: "var(--indentation-02)" },
16
18
  backText: { type: String, required: !1, default: "Back" },
17
19
  nextText: { type: String, required: !1, default: "Next" },
18
20
  finishText: { type: String, required: !1, default: "Finish" },
@@ -24,108 +26,115 @@ const E = /* @__PURE__ */ j({
24
26
  maxWidth: { type: [Number, String], required: !1, default: "280px" }
25
27
  },
26
28
  emits: ["update:model-value", "update:active-step", "change", "back", "next", "finish", "close"],
27
- setup(C, { expose: N, emit: F }) {
28
- const t = C, i = F, u = B({}), x = B(void 0);
29
+ setup(F, { expose: P, emit: j }) {
30
+ const O = {
31
+ accent: "var(--nmorph-accent-color)",
32
+ success: "var(--nmorph-success-color)",
33
+ error: "var(--nmorph-error-color)",
34
+ warning: "var(--nmorph-warn-color)"
35
+ }, t = F, i = j, u = N({}), m = N(void 0);
29
36
  let f = 0;
30
- const d = (e) => String(e), b = a(() => {
37
+ const d = (e) => String(e), b = r(() => {
31
38
  const e = /* @__PURE__ */ new Map();
32
- return t.steps.forEach((r, o) => {
33
- e.set(d(r.name), {
34
- ...r,
35
- order: r.order ?? o
39
+ return t.steps.forEach((o, a) => {
40
+ e.set(d(o.name), {
41
+ ...o,
42
+ order: o.order ?? a
36
43
  });
37
44
  }), e;
38
- }), s = a(
45
+ }), l = r(
39
46
  () => Object.values(u.value).map((e) => ({
40
47
  ...e,
41
48
  ...b.value.get(d(e.name)),
42
49
  registrationOrder: e.registrationOrder
43
- })).filter((e) => !e.disabled).sort((e, r) => {
44
- const o = e.order ?? e.registrationOrder, P = r.order ?? r.registrationOrder;
45
- return o - P;
50
+ })).filter((e) => !e.disabled).sort((e, o) => {
51
+ const a = e.order ?? e.registrationOrder, z = o.order ?? o.registrationOrder;
52
+ return a - z;
46
53
  })
47
- ), g = a(() => t.modelValue && s.value.length > 0), T = V(g, () => t.zIndex), q = a(() => t.activeStep ?? x.value), l = a(() => s.value.findIndex((e) => e.name === q.value)), n = a(() => s.value[l.value] ?? null), O = a(() => l.value <= 0), w = a(() => l.value >= s.value.length - 1), p = (e) => {
48
- const r = s.value.find((o) => o.name === e);
49
- r && (x.value = e, i("update:active-step", e), i("change", r, s.value.indexOf(r)));
54
+ ), x = r(() => t.modelValue && l.value.length > 0), T = G(x, () => t.zIndex), q = r(() => t.activeStep ?? m.value), n = r(() => l.value.findIndex((e) => e.name === q.value)), s = r(() => l.value[n.value] ?? null), w = r(() => n.value <= 0), C = r(() => n.value >= l.value.length - 1), _ = r(() => O[t.targetOutlineColor] || t.targetOutlineColor), p = (e) => {
55
+ const o = l.value.find((a) => a.name === e);
56
+ o && (m.value = e, i("update:active-step", e), i("change", o, l.value.indexOf(o)));
50
57
  }, c = (e) => {
51
- const r = s.value[e];
52
- r && p(r.name);
58
+ const o = l.value[e];
59
+ o && p(o.name);
53
60
  }, v = () => {
54
- i("update:model-value", !1), i("close", n.value, l.value);
55
- }, m = () => {
56
- i("finish", n.value, l.value), t.closeOnFinish && v();
61
+ i("update:model-value", !1), i("close", s.value, n.value);
62
+ }, g = () => {
63
+ i("finish", s.value, n.value), t.closeOnFinish && v();
57
64
  }, h = () => {
58
- if (n.value) {
59
- if (i("back", n.value, l.value), O.value) {
60
- t.loop && c(s.value.length - 1);
65
+ if (s.value) {
66
+ if (i("back", s.value, n.value), w.value) {
67
+ t.loop && c(l.value.length - 1);
61
68
  return;
62
69
  }
63
- c(l.value - 1);
70
+ c(n.value - 1);
64
71
  }
65
- }, S = () => {
66
- if (n.value) {
67
- if (i("next", n.value, l.value), w.value) {
68
- t.loop ? c(0) : m();
72
+ }, y = () => {
73
+ if (s.value) {
74
+ if (i("next", s.value, n.value), C.value) {
75
+ t.loop ? c(0) : g();
69
76
  return;
70
77
  }
71
- c(l.value + 1);
78
+ c(n.value + 1);
72
79
  }
73
- }, y = (e) => {
80
+ }, S = (e) => {
74
81
  p(e);
75
- }, _ = (e) => {
76
- const r = d(e.name), o = u.value[r];
82
+ }, k = (e) => {
83
+ const o = d(e.name), a = u.value[o];
77
84
  u.value = {
78
85
  ...u.value,
79
- [r]: {
80
- ...o,
86
+ [o]: {
87
+ ...a,
81
88
  ...e,
82
- registrationOrder: o?.registrationOrder ?? f
89
+ registrationOrder: a?.registrationOrder ?? f
83
90
  }
84
- }, o || (f += 1);
85
- }, k = (e) => {
86
- const r = d(e), o = { ...u.value };
87
- delete o[r], u.value = o;
91
+ }, a || (f += 1);
92
+ }, I = (e) => {
93
+ const o = d(e), a = { ...u.value };
94
+ delete a[o], u.value = a;
88
95
  };
89
- z(
90
- [() => t.modelValue, s, n],
91
- ([e, r, o]) => {
92
- !e || o || r.length === 0 || p(r[0].name);
96
+ V(
97
+ [() => t.modelValue, l, s],
98
+ ([e, o, a]) => {
99
+ !e || a || o.length === 0 || p(o[0].name);
93
100
  },
94
101
  { immediate: !0 }
95
- ), A(W, {
96
- active: g,
97
- activeStep: n,
98
- activeIndex: l,
99
- steps: s,
100
- loop: a(() => t.loop),
101
- showClose: a(() => t.showClose),
102
- showProgress: a(() => t.showProgress),
103
- bordered: a(() => t.bordered),
104
- backText: a(() => t.backText),
105
- nextText: a(() => t.nextText),
106
- finishText: a(() => t.finishText),
107
- closeText: a(() => t.closeText),
102
+ ), W(K, {
103
+ active: x,
104
+ activeStep: s,
105
+ activeIndex: n,
106
+ steps: l,
107
+ loop: r(() => t.loop),
108
+ showClose: r(() => t.showClose),
109
+ showProgress: r(() => t.showProgress),
110
+ bordered: r(() => t.bordered),
111
+ targetOutlineColor: _,
112
+ targetOutlineOffset: r(() => t.targetOutlineOffset),
113
+ backText: r(() => t.backText),
114
+ nextText: r(() => t.nextText),
115
+ finishText: r(() => t.finishText),
116
+ closeText: r(() => t.closeText),
108
117
  zIndex: T,
109
- teleportTo: a(() => t.teleportTo),
110
- disabledTeleport: a(() => t.disabledTeleport),
111
- width: a(() => t.width),
112
- maxWidth: a(() => t.maxWidth),
113
- registerStep: _,
114
- unregisterStep: k,
115
- goToStep: y,
118
+ teleportTo: r(() => t.teleportTo),
119
+ disabledTeleport: r(() => t.disabledTeleport),
120
+ width: r(() => t.width),
121
+ maxWidth: r(() => t.maxWidth),
122
+ registerStep: k,
123
+ unregisterStep: I,
124
+ goToStep: S,
116
125
  back: h,
117
- next: S,
118
- finish: m,
126
+ next: y,
127
+ finish: g,
119
128
  close: v
120
- }), N({ back: h, next: S, finish: m, close: v, goToStep: y });
121
- const I = { props: t, emit: i, registeredSteps: u, internalActiveStep: x, get registrationCursor() {
129
+ }), P({ back: h, next: y, finish: g, close: v, goToStep: S });
130
+ const B = { targetOutlineColorMap: O, props: t, emit: i, registeredSteps: u, internalActiveStep: m, get registrationCursor() {
122
131
  return f;
123
132
  }, set registrationCursor(e) {
124
133
  f = e;
125
- }, getStepKey: d, stepOverrides: b, steps: s, active: g, guideZIndex: T, activeStepName: q, activeIndex: l, activeStep: n, isFirstStep: O, isLastStep: w, setActiveStep: p, goToIndex: c, close: v, finish: m, back: h, next: S, goToStep: y, registerStep: _, unregisterStep: k };
126
- return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
134
+ }, getStepKey: d, stepOverrides: b, steps: l, active: x, guideZIndex: T, activeStepName: q, activeIndex: n, activeStep: s, isFirstStep: w, isLastStep: C, targetOutlineColor: _, setActiveStep: p, goToIndex: c, close: v, finish: g, back: h, next: y, goToStep: S, registerStep: k, unregisterStep: I };
135
+ return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
127
136
  }
128
137
  });
129
138
  export {
130
- E as default
139
+ L as default
131
140
  };
@@ -1 +1 @@
1
- .nmorph-guide-step__card{display:grid;gap:var(--indentation-03);box-sizing:border-box;min-width:min(240px,100vw - 48px);padding:var(--indentation-02);border-radius:var(--default-border-radius)}.nmorph-guide-step__card--bordered{border:var(--nmorph-plain-border)}.nmorph-guide-step__image{display:block;width:100%;max-height:140px;border-radius:var(--default-border-radius);object-fit:cover}.nmorph-guide-step__body{display:grid;gap:var(--indentation-02)}.nmorph-guide-step__progress{color:var(--nmorph-placeholder-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-guide-step__title{margin:0;color:var(--nmorph-text-color);font-size:var(--nmorph-typography-title-small-font-size);line-height:var(--nmorph-typography-title-small-line-height)}.nmorph-guide-step__text{margin:0;color:var(--nmorph-text-color);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height)}.nmorph-guide-step__actions{display:flex;gap:var(--indentation-02);align-items:center}.nmorph-guide-step__spacer{flex:1 1 auto}
1
+ .nmorph-guide-step .nmorph-tooltip__trigger{position:relative;border-radius:var(--nmorph-private-guide-target-outline-radius, var(--border-radius-120))}.nmorph-guide-step .nmorph-tooltip__trigger:after{position:absolute;z-index:1;border:2px solid var(--nmorph-private-guide-target-outline-color, var(--nmorph-success-color));border-radius:inherit;box-shadow:0 0 0 1px color-mix(in srgb,var(--nmorph-private-guide-target-outline-color, var(--nmorph-success-color)) 18%,transparent),0 0 8px color-mix(in srgb,var(--nmorph-private-guide-target-outline-color, var(--nmorph-success-color)) 28%,transparent),inset 0 0 4px color-mix(in srgb,var(--nmorph-private-guide-target-outline-color, var(--nmorph-success-color)) 18%,transparent);transform:scale(.98);opacity:0;transition:opacity var(--transition-02) ease,transform var(--transition-02) ease;pointer-events:none;inset:calc(-1 * var(--nmorph-private-guide-target-outline-offset, var(--indentation-02)));content:""}.nmorph-guide-step.nmorph-guide-step--active .nmorph-tooltip__trigger:after{transform:scale(1);opacity:1}.nmorph-guide-step__card{display:grid;gap:var(--indentation-03);box-sizing:border-box;min-width:min(240px,100vw - 48px);padding:var(--indentation-02);border-radius:var(--default-border-radius)}.nmorph-guide-step__tooltip--bordered{box-sizing:border-box;border:var(--nmorph-plain-border)}.nmorph-guide-step__image{display:block;width:100%;max-height:140px;border-radius:var(--default-border-radius);object-fit:cover}.nmorph-guide-step__body{display:grid;gap:var(--indentation-02)}.nmorph-guide-step__progress{color:var(--nmorph-placeholder-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-guide-step__title{margin:0;color:var(--nmorph-text-color);font-size:var(--nmorph-typography-title-small-font-size);line-height:var(--nmorph-typography-title-small-line-height)}.nmorph-guide-step__text{margin:0;color:var(--nmorph-text-color);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height)}.nmorph-guide-step__actions{display:flex;gap:var(--indentation-02);align-items:center}.nmorph-guide-step__spacer{flex:1 1 auto}
@@ -1,20 +1,27 @@
1
1
  import './NmorphGuideStep.css';
2
- import g from "./NmorphGuideStep.vue2.js";
3
- import { openBlock as t, createBlock as s, withCtx as a, renderSlot as c, normalizeProps as m, mergeProps as h, createElementBlock as o, normalizeClass as _, createCommentVNode as i, createElementVNode as d, toDisplayString as l, createVNode as p } from "vue";
2
+ import p from "./NmorphGuideStep.vue2.js";
3
+ import { openBlock as t, createBlock as s, normalizeStyle as m, normalizeClass as h, withCtx as a, renderSlot as c, normalizeProps as _, mergeProps as u, createElementBlock as i, createCommentVNode as o, createElementVNode as d, toDisplayString as l, createVNode as g } from "vue";
4
4
  /* empty css */
5
- import u from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const v = ["src", "alt"], x = { class: "nmorph-guide-step__body" }, k = {
5
+ import v from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const x = {
7
+ key: 1,
8
+ class: "nmorph-guide-step__card",
9
+ role: "dialog",
10
+ "aria-live": "polite"
11
+ }, S = ["src", "alt"], f = { class: "nmorph-guide-step__body" }, k = {
7
12
  key: 0,
8
13
  class: "nmorph-guide-step__progress"
9
- }, S = {
14
+ }, b = {
10
15
  key: 1,
11
16
  class: "nmorph-guide-step__title"
12
- }, f = {
17
+ }, y = {
13
18
  key: 2,
14
19
  class: "nmorph-guide-step__text"
15
- }, b = { class: "nmorph-guide-step__actions" };
16
- function C(n, r, w, e, y, N) {
20
+ }, w = { class: "nmorph-guide-step__actions" };
21
+ function C(n, r, N, e, P, T) {
17
22
  return t(), s(e.NmorphTooltip, {
23
+ class: h(["nmorph-guide-step", e.isActive && "nmorph-guide-step--active"]),
24
+ style: m(e.styles),
18
25
  "force-show": e.isActive,
19
26
  position: e.tooltipPosition,
20
27
  "z-index": e.guide?.zIndex.value,
@@ -22,93 +29,81 @@ function C(n, r, w, e, y, N) {
22
29
  "disabled-teleport": e.guide?.disabledTeleport.value,
23
30
  width: e.guide?.width.value,
24
31
  "max-width": e.guide?.maxWidth.value,
32
+ "content-class": e.guide?.bordered.value ? "nmorph-guide-step__tooltip--bordered" : void 0,
33
+ "hide-triangle": e.guide?.bordered.value,
25
34
  trigger: "manual",
26
35
  disabled: !e.guide || e.props.disabled
27
36
  }, {
28
37
  content: a(() => [
29
- e.hasCustomContent && e.stepSlotProps ? c(n.$slots, "content", m(h({ key: 0 }, e.stepSlotProps))) : e.currentStep && e.stepSlotProps ? (t(), o(
30
- "div",
31
- {
32
- key: 1,
33
- class: _(["nmorph-guide-step__card", e.guide?.bordered.value && "nmorph-guide-step__card--bordered"]),
34
- role: "dialog",
35
- "aria-live": "polite"
36
- },
37
- [
38
- e.currentStep.imageSrc ? (t(), o("img", {
38
+ e.hasCustomContent && e.stepSlotProps ? c(n.$slots, "content", _(u({ key: 0 }, e.stepSlotProps))) : e.currentStep && e.stepSlotProps ? (t(), i("div", x, [
39
+ e.currentStep.imageSrc ? (t(), i("img", {
40
+ key: 0,
41
+ class: "nmorph-guide-step__image",
42
+ src: e.currentStep.imageSrc,
43
+ alt: e.currentStep.imageAlt || e.currentStep.title || ""
44
+ }, null, 8, S)) : o("v-if", !0),
45
+ d("div", f, [
46
+ e.guide?.showProgress.value ? (t(), i(
47
+ "div",
48
+ k,
49
+ l(e.stepSlotProps.index + 1) + " / " + l(e.stepSlotProps.total),
50
+ 1
51
+ /* TEXT */
52
+ )) : o("v-if", !0),
53
+ e.currentStep.title ? (t(), i(
54
+ "h3",
55
+ b,
56
+ l(e.currentStep.title),
57
+ 1
58
+ /* TEXT */
59
+ )) : o("v-if", !0),
60
+ e.currentStep.text ? (t(), i(
61
+ "p",
62
+ y,
63
+ l(e.currentStep.text),
64
+ 1
65
+ /* TEXT */
66
+ )) : o("v-if", !0)
67
+ ]),
68
+ d("div", w, [
69
+ e.guide?.showClose.value ? (t(), s(e.NmorphButton, {
39
70
  key: 0,
40
- class: "nmorph-guide-step__image",
41
- src: e.currentStep.imageSrc,
42
- alt: e.currentStep.imageAlt || e.currentStep.title || ""
43
- }, null, 8, v)) : i("v-if", !0),
44
- d("div", x, [
45
- e.guide?.showProgress.value ? (t(), o(
46
- "div",
47
- k,
48
- l(e.stepSlotProps.index + 1) + " / " + l(e.stepSlotProps.total),
49
- 1
50
- /* TEXT */
51
- )) : i("v-if", !0),
52
- e.currentStep.title ? (t(), o(
53
- "h3",
54
- S,
55
- l(e.currentStep.title),
56
- 1
57
- /* TEXT */
58
- )) : i("v-if", !0),
59
- e.currentStep.text ? (t(), o(
60
- "p",
61
- f,
62
- l(e.currentStep.text),
63
- 1
64
- /* TEXT */
65
- )) : i("v-if", !0)
66
- ]),
67
- d("div", b, [
68
- e.guide?.showClose.value ? (t(), s(e.NmorphButton, {
69
- key: 0,
70
- class: "nmorph-guide-step__close",
71
- text: e.guide.closeText.value,
72
- design: "plain",
73
- thickness: "thin",
74
- onClick: e.guide.close
75
- }, null, 8, ["text", "onClick"])) : i("v-if", !0),
76
- r[1] || (r[1] = d(
77
- "span",
78
- { class: "nmorph-guide-step__spacer" },
79
- null,
80
- -1
81
- /* CACHED */
82
- )),
83
- p(e.NmorphButton, {
84
- class: "nmorph-guide-step__back",
85
- text: e.guide?.backText.value,
86
- design: "plain",
87
- thickness: "thin",
88
- disabled: e.isFirstStep && !e.guide?.loop.value,
89
- onClick: e.guide?.back
90
- }, null, 8, ["text", "disabled", "onClick"]),
91
- p(e.NmorphButton, {
92
- class: "nmorph-guide-step__next",
93
- text: e.isLastStep && !e.guide?.loop.value ? e.guide?.finishText.value : e.guide?.nextText.value,
94
- design: "plain",
95
- thickness: "thin",
96
- onClick: r[0] || (r[0] = (P) => e.isLastStep && !e.guide?.loop.value ? e.guide?.finish() : e.guide?.next())
97
- }, null, 8, ["text"])
98
- ])
99
- ],
100
- 2
101
- /* CLASS */
102
- )) : i("v-if", !0)
71
+ class: "nmorph-guide-step__close",
72
+ text: e.guide.closeText.value,
73
+ design: "plain",
74
+ onClick: e.guide.close
75
+ }, null, 8, ["text", "onClick"])) : o("v-if", !0),
76
+ r[1] || (r[1] = d(
77
+ "span",
78
+ { class: "nmorph-guide-step__spacer" },
79
+ null,
80
+ -1
81
+ /* CACHED */
82
+ )),
83
+ g(e.NmorphButton, {
84
+ class: "nmorph-guide-step__back",
85
+ text: e.guide?.backText.value,
86
+ design: "plain",
87
+ disabled: e.isFirstStep && !e.guide?.loop.value,
88
+ onClick: e.guide?.back
89
+ }, null, 8, ["text", "disabled", "onClick"]),
90
+ g(e.NmorphButton, {
91
+ class: "nmorph-guide-step__next",
92
+ text: e.isLastStep && !e.guide?.loop.value ? e.guide?.finishText.value : e.guide?.nextText.value,
93
+ design: "plain",
94
+ onClick: r[0] || (r[0] = (z) => e.isLastStep && !e.guide?.loop.value ? e.guide?.finish() : e.guide?.next())
95
+ }, null, 8, ["text"])
96
+ ])
97
+ ])) : o("v-if", !0)
103
98
  ]),
104
99
  default: a(() => [
105
100
  c(n.$slots, "default")
106
101
  ]),
107
102
  _: 3
108
103
  /* FORWARDED */
109
- }, 8, ["force-show", "position", "z-index", "teleport-to", "disabled-teleport", "width", "max-width", "disabled"]);
104
+ }, 8, ["class", "style", "force-show", "position", "z-index", "teleport-to", "disabled-teleport", "width", "max-width", "content-class", "hide-triangle", "disabled"]);
110
105
  }
111
- const A = /* @__PURE__ */ u(g, [["render", C], ["__file", "/builds/ketjo/nmorph/library/src/components/feedback/nmorph-guide/NmorphGuideStep.vue"]]);
106
+ const G = /* @__PURE__ */ v(p, [["render", C], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/feedback/nmorph-guide/NmorphGuideStep.vue"]]);
112
107
  export {
113
- A as default
108
+ G as default
114
109
  };