@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.
- package/dist/assets/icons/cross.svg.js +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +20 -14
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +30 -25
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue.js +10 -10
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue.js +3 -3
- package/dist/components/basic/nmorph-link/NmorphLink.vue.js +8 -8
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -4
- package/dist/components/basic/nmorph-space/NmorphSpace.vue.js +11 -11
- package/dist/components/basic/nmorph-text/NmorphText.vue.js +11 -11
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.js +8 -8
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +11 -11
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +46 -46
- package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +16 -16
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +31 -31
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +6 -6
- package/dist/components/data/nmorph-card/NmorphCard.vue.js +7 -7
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +3 -3
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.js +7 -7
- package/dist/components/data/nmorph-collapse/NmorphCollapse.vue.js +8 -8
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +12 -12
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +6 -6
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue.js +16 -16
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +9 -9
- package/dist/components/data/nmorph-image/NmorphImage.vue.js +8 -8
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +24 -24
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +13 -13
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +11 -11
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +8 -8
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +1 -1
- package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +3 -3
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue.js +18 -18
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +14 -14
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
- package/dist/components/data/nmorph-table/NmorphTable.vue.js +2 -2
- package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js +7 -7
- package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js +10 -10
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +5 -5
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +3 -3
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.js +9 -9
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +23 -23
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue.js +10 -10
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +9 -9
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +8 -8
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +12 -12
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +6 -6
- package/dist/components/feedback/nmorph-guide/NmorphGuide.vue.js +7 -7
- package/dist/components/feedback/nmorph-guide/NmorphGuide.vue2.js +82 -73
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +79 -84
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue2.js +36 -28
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +49 -55
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +27 -24
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +18 -18
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +7 -7
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +8 -8
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +7 -7
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +4 -4
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.js +9 -9
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js +8 -8
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +2 -2
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +4 -4
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +23 -23
- package/dist/components/form/nmorph-form/NmorphForm.vue.js +8 -8
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +10 -10
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.js +21 -27
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +4 -4
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +10 -10
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +1 -1
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +16 -16
- package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +20 -20
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +10 -10
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +1 -1
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +9 -9
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +11 -11
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +12 -12
- package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +6 -6
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +10 -10
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +9 -9
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +5 -5
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +38 -38
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +12 -12
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.js +11 -11
- package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.js +7 -7
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +18 -18
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +2 -2
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue.js +12 -12
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue.js +15 -15
- package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.js +10 -10
- package/dist/components/others/nmorph-divider/NmorphDivider.vue.js +4 -4
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +8 -8
- package/dist/index.umd.js +29 -29
- package/dist/package.json.js +1 -1
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +1 -0
- package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +2 -0
- package/dist/src/components/feedback/nmorph-guide/types.d.ts +5 -1
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -0
- package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +11 -3
- package/dist/style.css +1 -1
- 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
|
|
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
|
|
6
|
-
const
|
|
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:
|
|
19
|
-
o.hasHeader ? (t(), r("div",
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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" },
|
|
10
|
-
function
|
|
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:
|
|
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
|
-
|
|
28
|
+
n(r.$slots, "header", {}, () => [
|
|
29
29
|
l(
|
|
30
30
|
"div",
|
|
31
31
|
y,
|
|
32
|
-
|
|
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
|
-
|
|
43
|
+
s(o.NmorphIcon, null, {
|
|
44
44
|
default: a(() => [
|
|
45
|
-
|
|
45
|
+
s(o.NmorphIconCross)
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
48
|
/* STABLE */
|
|
49
49
|
})
|
|
50
|
-
], 8,
|
|
50
|
+
], 8, k)) : t("v-if", !0)
|
|
51
51
|
])
|
|
52
52
|
])) : t("v-if", !0),
|
|
53
|
-
l("div",
|
|
54
|
-
|
|
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",
|
|
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
|
|
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:
|
|
24
|
+
default: n(() => [
|
|
25
25
|
l("aside", {
|
|
26
|
-
class:
|
|
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:
|
|
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:
|
|
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", "/
|
|
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
|
|
3
|
-
import { openBlock as
|
|
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
|
|
7
|
-
function
|
|
8
|
-
return
|
|
9
|
-
n(
|
|
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(
|
|
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
|
|
3
|
-
import { useZIndex as
|
|
4
|
-
import { nmorphGuideInjectionKey as
|
|
5
|
-
const
|
|
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(
|
|
28
|
-
const
|
|
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 =
|
|
37
|
+
const d = (e) => String(e), b = r(() => {
|
|
31
38
|
const e = /* @__PURE__ */ new Map();
|
|
32
|
-
return t.steps.forEach((
|
|
33
|
-
e.set(d(
|
|
34
|
-
...
|
|
35
|
-
order:
|
|
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
|
-
}),
|
|
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,
|
|
44
|
-
const
|
|
45
|
-
return
|
|
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
|
-
),
|
|
48
|
-
const
|
|
49
|
-
|
|
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
|
|
52
|
-
|
|
58
|
+
const o = l.value[e];
|
|
59
|
+
o && p(o.name);
|
|
53
60
|
}, v = () => {
|
|
54
|
-
i("update:model-value", !1), i("close",
|
|
55
|
-
},
|
|
56
|
-
i("finish",
|
|
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 (
|
|
59
|
-
if (i("back",
|
|
60
|
-
t.loop && c(
|
|
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(
|
|
70
|
+
c(n.value - 1);
|
|
64
71
|
}
|
|
65
|
-
},
|
|
66
|
-
if (
|
|
67
|
-
if (i("next",
|
|
68
|
-
t.loop ? c(0) :
|
|
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(
|
|
78
|
+
c(n.value + 1);
|
|
72
79
|
}
|
|
73
|
-
},
|
|
80
|
+
}, S = (e) => {
|
|
74
81
|
p(e);
|
|
75
|
-
},
|
|
76
|
-
const
|
|
82
|
+
}, k = (e) => {
|
|
83
|
+
const o = d(e.name), a = u.value[o];
|
|
77
84
|
u.value = {
|
|
78
85
|
...u.value,
|
|
79
|
-
[
|
|
80
|
-
...
|
|
86
|
+
[o]: {
|
|
87
|
+
...a,
|
|
81
88
|
...e,
|
|
82
|
-
registrationOrder:
|
|
89
|
+
registrationOrder: a?.registrationOrder ?? f
|
|
83
90
|
}
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
const
|
|
87
|
-
delete 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
|
-
|
|
90
|
-
[() => t.modelValue,
|
|
91
|
-
([e,
|
|
92
|
-
!e ||
|
|
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
|
-
),
|
|
96
|
-
active:
|
|
97
|
-
activeStep:
|
|
98
|
-
activeIndex:
|
|
99
|
-
steps:
|
|
100
|
-
loop:
|
|
101
|
-
showClose:
|
|
102
|
-
showProgress:
|
|
103
|
-
bordered:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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:
|
|
110
|
-
disabledTeleport:
|
|
111
|
-
width:
|
|
112
|
-
maxWidth:
|
|
113
|
-
registerStep:
|
|
114
|
-
unregisterStep:
|
|
115
|
-
goToStep:
|
|
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:
|
|
118
|
-
finish:
|
|
126
|
+
next: y,
|
|
127
|
+
finish: g,
|
|
119
128
|
close: v
|
|
120
|
-
}),
|
|
121
|
-
const
|
|
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:
|
|
126
|
-
return Object.defineProperty(
|
|
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
|
-
|
|
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-
|
|
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
|
|
3
|
-
import { openBlock as t, createBlock as s, withCtx as a, renderSlot as c, normalizeProps as
|
|
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
|
|
6
|
-
const
|
|
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
|
-
},
|
|
14
|
+
}, b = {
|
|
10
15
|
key: 1,
|
|
11
16
|
class: "nmorph-guide-step__title"
|
|
12
|
-
},
|
|
17
|
+
}, y = {
|
|
13
18
|
key: 2,
|
|
14
19
|
class: "nmorph-guide-step__text"
|
|
15
|
-
},
|
|
16
|
-
function C(n, r,
|
|
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",
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
|
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
|
-
|
|
108
|
+
G as default
|
|
114
109
|
};
|