@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,10 @@
|
|
|
1
1
|
import './NmorphGuideStep.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import { defineComponent as b, inject as h, useSlots as y, computed as o, watch as x, onBeforeUnmount as _ } from "vue";
|
|
3
|
+
import { createCssSizeVariables as q, createCssVariables as C } from "../../../utils/common.js";
|
|
4
|
+
import B from "../../basic/nmorph-button/NmorphButton.vue.js";
|
|
5
|
+
import N from "../nmorph-tooltip/NmorphTooltip.vue.js";
|
|
6
|
+
import { nmorphGuideInjectionKey as A } from "./types.js";
|
|
7
|
+
const F = /* @__PURE__ */ b({
|
|
7
8
|
__name: "NmorphGuideStep",
|
|
8
9
|
props: {
|
|
9
10
|
name: { type: [String, Number], required: !0 },
|
|
@@ -15,41 +16,48 @@ const I = /* @__PURE__ */ g({
|
|
|
15
16
|
order: { type: Number, required: !1, default: void 0 },
|
|
16
17
|
disabled: { type: Boolean, required: !1, default: !1 }
|
|
17
18
|
},
|
|
18
|
-
setup(p, { expose:
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
setup(p, { expose: m }) {
|
|
20
|
+
m();
|
|
21
|
+
const t = p, e = h(A, null), n = y(), r = o(() => e?.activeStep.value ?? null), i = o(() => e?.activeIndex.value ?? -1), a = o(() => e?.steps.value.length ?? 0), s = o(() => i.value <= 0), l = o(() => i.value >= a.value - 1), c = o(() => !!(e?.active.value && r.value?.name === t.name)), d = o(() => r.value?.position ?? t.position), f = o(() => !!n.content), v = o(() => ({
|
|
22
|
+
...C({
|
|
23
|
+
"--nmorph-private-guide-target-outline-color": e?.targetOutlineColor.value
|
|
24
|
+
}),
|
|
25
|
+
...q({
|
|
26
|
+
"--nmorph-private-guide-target-outline-offset": e?.targetOutlineOffset.value
|
|
27
|
+
})
|
|
28
|
+
})), g = o(() => !e || !r.value ? null : {
|
|
29
|
+
step: r.value,
|
|
30
|
+
index: i.value,
|
|
31
|
+
total: a.value,
|
|
24
32
|
isFirst: s.value,
|
|
25
33
|
isLast: l.value,
|
|
26
|
-
back:
|
|
27
|
-
next:
|
|
28
|
-
close:
|
|
29
|
-
finish:
|
|
34
|
+
back: e.back,
|
|
35
|
+
next: e.next,
|
|
36
|
+
close: e.close,
|
|
37
|
+
finish: e.finish
|
|
30
38
|
});
|
|
31
|
-
|
|
39
|
+
x(
|
|
32
40
|
() => ({
|
|
33
|
-
name:
|
|
34
|
-
title:
|
|
35
|
-
text:
|
|
36
|
-
imageSrc:
|
|
37
|
-
imageAlt:
|
|
38
|
-
position:
|
|
39
|
-
order:
|
|
40
|
-
disabled:
|
|
41
|
+
name: t.name,
|
|
42
|
+
title: t.title,
|
|
43
|
+
text: t.text,
|
|
44
|
+
imageSrc: t.imageSrc,
|
|
45
|
+
imageAlt: t.imageAlt,
|
|
46
|
+
position: t.position,
|
|
47
|
+
order: t.order,
|
|
48
|
+
disabled: t.disabled
|
|
41
49
|
}),
|
|
42
50
|
(S) => {
|
|
43
|
-
|
|
51
|
+
e?.registerStep(S);
|
|
44
52
|
},
|
|
45
53
|
{ immediate: !0 }
|
|
46
54
|
), _(() => {
|
|
47
|
-
|
|
55
|
+
e?.unregisterStep(t.name);
|
|
48
56
|
});
|
|
49
|
-
const u = { props:
|
|
57
|
+
const u = { props: t, guide: e, slots: n, currentStep: r, currentIndex: i, totalSteps: a, isFirstStep: s, isLastStep: l, isActive: c, tooltipPosition: d, hasCustomContent: f, styles: v, stepSlotProps: g, NmorphButton: B, NmorphTooltip: N };
|
|
50
58
|
return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
|
|
51
59
|
}
|
|
52
60
|
});
|
|
53
61
|
export {
|
|
54
|
-
|
|
62
|
+
F as default
|
|
55
63
|
};
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import './NmorphTooltip.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as t, createElementBlock as e, normalizeStyle as
|
|
2
|
+
import f from "./NmorphTooltip.vue2.js";
|
|
3
|
+
import { openBlock as t, createElementBlock as e, normalizeStyle as d, normalizeClass as a, createElementVNode as r, renderSlot as s, Fragment as m, createBlock as c, Transition as _, withCtx as p, createCommentVNode as n, toDisplayString as h, Teleport as y, createVNode as v } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import k from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const C = {
|
|
7
7
|
ref: "slotDOMRef",
|
|
8
8
|
class: "nmorph-tooltip__trigger"
|
|
9
|
-
},
|
|
9
|
+
}, T = { class: "nmorph-tooltip__shadow-content" }, g = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "nmorph-tooltip__triangle"
|
|
12
|
-
},
|
|
13
|
-
|
|
12
|
+
}, P = { key: 1 }, w = { class: "nmorph-tooltip__shadow-content" }, x = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "nmorph-tooltip__triangle"
|
|
15
|
+
}, B = { key: 1 }, E = { class: "nmorph-tooltip__shadow-content" }, M = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "nmorph-tooltip__triangle"
|
|
18
|
+
}, N = { key: 1 };
|
|
19
|
+
function R(l, b, i, o, D, S) {
|
|
14
20
|
return t(), e(
|
|
15
21
|
"div",
|
|
16
22
|
{
|
|
17
23
|
class: a(o.modifiers),
|
|
18
|
-
style:
|
|
24
|
+
style: d(o.styles)
|
|
19
25
|
},
|
|
20
26
|
[
|
|
21
|
-
|
|
27
|
+
r(
|
|
22
28
|
"div",
|
|
23
29
|
{
|
|
24
30
|
ref: "tooltipDOMRef",
|
|
@@ -32,55 +38,55 @@ function b(r, s, i, o, N, R) {
|
|
|
32
38
|
onPointerleave: o.handlePointerEnd
|
|
33
39
|
},
|
|
34
40
|
[
|
|
35
|
-
|
|
41
|
+
r(
|
|
36
42
|
"div",
|
|
37
|
-
|
|
43
|
+
C,
|
|
38
44
|
[
|
|
39
|
-
|
|
45
|
+
s(l.$slots, "default")
|
|
40
46
|
],
|
|
41
47
|
512
|
|
42
48
|
/* NEED_PATCH */
|
|
43
49
|
),
|
|
44
50
|
!o.props.disabled && !o.teleportTooltip ? (t(), e(
|
|
45
|
-
|
|
51
|
+
m,
|
|
46
52
|
{ key: 0 },
|
|
47
53
|
[
|
|
48
|
-
o.props.forceCoordinate ? (t(),
|
|
54
|
+
o.props.forceCoordinate ? (t(), c(_, {
|
|
49
55
|
key: 0,
|
|
50
56
|
name: "opacity"
|
|
51
57
|
}, {
|
|
52
|
-
default:
|
|
58
|
+
default: p(() => [
|
|
53
59
|
o.shouldRenderTooltip ? (t(), e(
|
|
54
60
|
"div",
|
|
55
61
|
{
|
|
56
62
|
key: 0,
|
|
57
63
|
ref: "tooltipBody",
|
|
58
64
|
class: a(o.tooltipContentClass),
|
|
59
|
-
style:
|
|
65
|
+
style: d({ left: i.forceCoordinate?.x, bottom: i.forceCoordinate?.y })
|
|
60
66
|
},
|
|
61
67
|
[
|
|
62
|
-
|
|
63
|
-
o.props.forceCoordinate
|
|
68
|
+
r("div", T, [
|
|
69
|
+
!o.props.forceCoordinate && !o.props.hideTriangle ? (t(), e("div", g)) : n("v-if", !0),
|
|
64
70
|
o.props.text ? (t(), e(
|
|
65
71
|
"span",
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
P,
|
|
73
|
+
h(i.text),
|
|
68
74
|
1
|
|
69
75
|
/* TEXT */
|
|
70
|
-
)) :
|
|
76
|
+
)) : s(l.$slots, "content", { key: 2 })
|
|
71
77
|
])
|
|
72
78
|
],
|
|
73
79
|
6
|
|
74
80
|
/* CLASS, STYLE */
|
|
75
|
-
)) :
|
|
81
|
+
)) : n("v-if", !0)
|
|
76
82
|
]),
|
|
77
83
|
_: 3
|
|
78
84
|
/* FORWARDED */
|
|
79
|
-
})) : (t(),
|
|
85
|
+
})) : (t(), c(_, {
|
|
80
86
|
key: 1,
|
|
81
87
|
name: "opacity"
|
|
82
88
|
}, {
|
|
83
|
-
default:
|
|
89
|
+
default: p(() => [
|
|
84
90
|
o.shouldRenderTooltip ? (t(), e(
|
|
85
91
|
"div",
|
|
86
92
|
{
|
|
@@ -89,26 +95,20 @@ function b(r, s, i, o, N, R) {
|
|
|
89
95
|
class: a(o.tooltipContentClass)
|
|
90
96
|
},
|
|
91
97
|
[
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"div",
|
|
95
|
-
{ class: "nmorph-tooltip__triangle" },
|
|
96
|
-
null,
|
|
97
|
-
-1
|
|
98
|
-
/* CACHED */
|
|
99
|
-
)),
|
|
98
|
+
r("div", w, [
|
|
99
|
+
o.props.hideTriangle ? n("v-if", !0) : (t(), e("div", x)),
|
|
100
100
|
o.props.text ? (t(), e(
|
|
101
101
|
"span",
|
|
102
102
|
B,
|
|
103
|
-
|
|
103
|
+
h(i.text),
|
|
104
104
|
1
|
|
105
105
|
/* TEXT */
|
|
106
|
-
)) :
|
|
106
|
+
)) : s(l.$slots, "content", { key: 2 })
|
|
107
107
|
])
|
|
108
108
|
],
|
|
109
109
|
2
|
|
110
110
|
/* CLASS */
|
|
111
|
-
)) :
|
|
111
|
+
)) : n("v-if", !0)
|
|
112
112
|
]),
|
|
113
113
|
_: 3
|
|
114
114
|
/* FORWARDED */
|
|
@@ -116,57 +116,51 @@ function b(r, s, i, o, N, R) {
|
|
|
116
116
|
],
|
|
117
117
|
64
|
|
118
118
|
/* STABLE_FRAGMENT */
|
|
119
|
-
)) :
|
|
119
|
+
)) : n("v-if", !0)
|
|
120
120
|
],
|
|
121
121
|
544
|
|
122
122
|
/* NEED_HYDRATION, NEED_PATCH */
|
|
123
123
|
),
|
|
124
|
-
o.teleportTooltip ? (t(),
|
|
124
|
+
o.teleportTooltip ? (t(), c(y, {
|
|
125
125
|
key: 0,
|
|
126
126
|
to: o.props.teleportTo
|
|
127
127
|
}, [
|
|
128
|
-
|
|
129
|
-
default:
|
|
128
|
+
v(_, { name: "opacity" }, {
|
|
129
|
+
default: p(() => [
|
|
130
130
|
o.shouldRenderTooltip ? (t(), e(
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
133
133
|
key: 0,
|
|
134
134
|
ref: "tooltipBody",
|
|
135
135
|
class: a(o.tooltipContentClass),
|
|
136
|
-
style:
|
|
136
|
+
style: d(o.tooltipContentStyle)
|
|
137
137
|
},
|
|
138
138
|
[
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"div",
|
|
142
|
-
{ class: "nmorph-tooltip__triangle" },
|
|
143
|
-
null,
|
|
144
|
-
-1
|
|
145
|
-
/* CACHED */
|
|
146
|
-
)),
|
|
139
|
+
r("div", E, [
|
|
140
|
+
o.props.hideTriangle ? n("v-if", !0) : (t(), e("div", M)),
|
|
147
141
|
o.props.text ? (t(), e(
|
|
148
142
|
"span",
|
|
149
|
-
|
|
150
|
-
|
|
143
|
+
N,
|
|
144
|
+
h(i.text),
|
|
151
145
|
1
|
|
152
146
|
/* TEXT */
|
|
153
|
-
)) :
|
|
147
|
+
)) : s(l.$slots, "content", { key: 2 })
|
|
154
148
|
])
|
|
155
149
|
],
|
|
156
150
|
6
|
|
157
151
|
/* CLASS, STYLE */
|
|
158
|
-
)) :
|
|
152
|
+
)) : n("v-if", !0)
|
|
159
153
|
]),
|
|
160
154
|
_: 3
|
|
161
155
|
/* FORWARDED */
|
|
162
156
|
})
|
|
163
|
-
], 8, ["to"])) :
|
|
157
|
+
], 8, ["to"])) : n("v-if", !0)
|
|
164
158
|
],
|
|
165
159
|
6
|
|
166
160
|
/* CLASS, STYLE */
|
|
167
161
|
);
|
|
168
162
|
}
|
|
169
|
-
const
|
|
163
|
+
const L = /* @__PURE__ */ k(f, [["render", R], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue"]]);
|
|
170
164
|
export {
|
|
171
|
-
|
|
165
|
+
L as default
|
|
172
166
|
};
|
|
@@ -4,7 +4,7 @@ import { usePlacement as K } from "../../../hooks/use-placement.js";
|
|
|
4
4
|
import { useZIndex as Q } from "../../../hooks/use-z-index.js";
|
|
5
5
|
import { useModifiers as X } from "../../../utils/create-modifiers.js";
|
|
6
6
|
import { createCssSizeVariables as ee } from "../../../utils/common.js";
|
|
7
|
-
const
|
|
7
|
+
const M = 600, ie = /* @__PURE__ */ Z({
|
|
8
8
|
__name: "NmorphTooltip",
|
|
9
9
|
props: {
|
|
10
10
|
text: { type: String, required: !1, default: "" },
|
|
@@ -21,13 +21,15 @@ const E = 600, ie = /* @__PURE__ */ Z({
|
|
|
21
21
|
disabledTeleport: { type: Boolean, required: !1, default: !0 },
|
|
22
22
|
width: { type: [Number, String], required: !1, default: void 0 },
|
|
23
23
|
maxWidth: { type: [Number, String], required: !1, default: void 0 },
|
|
24
|
-
height: { type: [Number, String], required: !1, default: void 0 }
|
|
24
|
+
height: { type: [Number, String], required: !1, default: void 0 },
|
|
25
|
+
contentClass: { type: [Boolean, null, String, Object, Array], required: !1, skipCheck: !0, default: void 0 },
|
|
26
|
+
hideTriangle: { type: Boolean, required: !1, default: !1 }
|
|
25
27
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const e =
|
|
28
|
+
setup(E, { expose: z }) {
|
|
29
|
+
const e = E, n = l(e.forceShow), I = l(null), C = l(null), T = l(null), q = $(), a = l(null), u = l(null), s = l(null), i = l("mouse"), f = l(!1), m = t(() => !!(e.text || q.content)), b = t(() => n.value && m.value && !e.disabled), { placement: g, placementCoords: S, placementReady: x } = K({
|
|
28
30
|
initialPlacement: e.position,
|
|
29
31
|
contentDOMElement: T,
|
|
30
|
-
relativeElement:
|
|
32
|
+
relativeElement: C,
|
|
31
33
|
enabled: b
|
|
32
34
|
}), R = t(
|
|
33
35
|
() => X({
|
|
@@ -37,41 +39,41 @@ const E = 600, ie = /* @__PURE__ */ Z({
|
|
|
37
39
|
!!e.forceCoordinate?.x && !!e.forceCoordinate?.y && "force-coords"
|
|
38
40
|
]
|
|
39
41
|
})
|
|
40
|
-
),
|
|
42
|
+
), d = () => {
|
|
41
43
|
a.value && clearTimeout(a.value), a.value = null;
|
|
42
|
-
},
|
|
44
|
+
}, p = () => {
|
|
43
45
|
u.value && clearTimeout(u.value), u.value = null;
|
|
44
46
|
}, v = () => {
|
|
45
47
|
s.value && clearTimeout(s.value), s.value = null;
|
|
46
48
|
}, r = (o) => {
|
|
47
|
-
if (
|
|
49
|
+
if (d(), p(), e.disabled || !m.value) {
|
|
48
50
|
n.value = !1;
|
|
49
51
|
return;
|
|
50
52
|
}
|
|
51
53
|
n.value = o;
|
|
52
54
|
}, c = () => {
|
|
53
|
-
if (
|
|
55
|
+
if (p(), !(e.disabled || !m.value)) {
|
|
54
56
|
if (e.openDelay <= 0) {
|
|
55
57
|
r(!0);
|
|
56
58
|
return;
|
|
57
59
|
}
|
|
58
|
-
|
|
60
|
+
d(), a.value = setTimeout(() => r(!0), e.openDelay);
|
|
59
61
|
}
|
|
60
62
|
}, h = () => {
|
|
61
63
|
if (!e.forceShow) {
|
|
62
|
-
if (
|
|
64
|
+
if (d(), e.closeDelay <= 0) {
|
|
63
65
|
r(!1);
|
|
64
66
|
return;
|
|
65
67
|
}
|
|
66
|
-
|
|
68
|
+
p(), u.value = setTimeout(() => r(!1), e.closeDelay);
|
|
67
69
|
}
|
|
68
70
|
}, y = () => {
|
|
69
71
|
n.value ? h() : c();
|
|
70
72
|
}, L = () => {
|
|
71
73
|
e.trigger !== "hover" || i.value !== "mouse" || c();
|
|
72
|
-
},
|
|
74
|
+
}, j = () => {
|
|
73
75
|
e.trigger !== "hover" || i.value !== "mouse" || h();
|
|
74
|
-
},
|
|
76
|
+
}, W = (o) => {
|
|
75
77
|
if (f.value) {
|
|
76
78
|
f.value = !1, o.preventDefault();
|
|
77
79
|
return;
|
|
@@ -86,7 +88,7 @@ const E = 600, ie = /* @__PURE__ */ Z({
|
|
|
86
88
|
}, A = (o) => {
|
|
87
89
|
i.value = o.pointerType || "mouse", !(e.disabled || e.touch !== "longpress") && (o.pointerType !== "touch" && o.pointerType !== "pen" || (v(), s.value = setTimeout(() => {
|
|
88
90
|
f.value = !0, c();
|
|
89
|
-
},
|
|
91
|
+
}, M)));
|
|
90
92
|
}, F = () => {
|
|
91
93
|
v();
|
|
92
94
|
}, w = t(() => e.forceCoordinate ? "100%" : "auto"), D = Q(
|
|
@@ -100,25 +102,26 @@ const E = 600, ie = /* @__PURE__ */ Z({
|
|
|
100
102
|
"--nmorph-private-tooltip-max-width": e.maxWidth,
|
|
101
103
|
"--nmorph-private-tooltip-height": e.height
|
|
102
104
|
})
|
|
103
|
-
})),
|
|
105
|
+
})), B = t(
|
|
104
106
|
() => !e.disabledTeleport && !e.forceCoordinate && typeof document < "u"
|
|
105
|
-
), _ = t(() =>
|
|
107
|
+
), _ = t(() => B.value && b.value), N = t(() => g.value.split("-")[0]), G = t(() => [
|
|
106
108
|
"nmorph-tooltip__info-content",
|
|
107
|
-
`nmorph-tooltip__info-content--${
|
|
108
|
-
_.value && "nmorph-tooltip__info-content--teleported"
|
|
109
|
+
`nmorph-tooltip__info-content--${N.value}`,
|
|
110
|
+
_.value && "nmorph-tooltip__info-content--teleported",
|
|
111
|
+
e.contentClass
|
|
109
112
|
]), U = t(() => ({
|
|
110
113
|
...P.value,
|
|
111
114
|
..._.value ? {
|
|
112
115
|
left: S.value.x,
|
|
113
116
|
top: S.value.y,
|
|
114
|
-
visibility:
|
|
117
|
+
visibility: x.value ? "visible" : "hidden"
|
|
115
118
|
} : {}
|
|
116
119
|
}));
|
|
117
120
|
H(
|
|
118
121
|
() => [e.forceShow, e.disabled],
|
|
119
|
-
([o,
|
|
122
|
+
([o, k], V) => {
|
|
120
123
|
const Y = V?.[0] ?? !1;
|
|
121
|
-
if (
|
|
124
|
+
if (k) {
|
|
122
125
|
r(!1);
|
|
123
126
|
return;
|
|
124
127
|
}
|
|
@@ -126,9 +129,9 @@ const E = 600, ie = /* @__PURE__ */ Z({
|
|
|
126
129
|
},
|
|
127
130
|
{ immediate: !0 }
|
|
128
131
|
), J(() => {
|
|
129
|
-
|
|
132
|
+
d(), p(), v();
|
|
130
133
|
}), z({ tooltipBody: T, open: c, close: h, toggle: y });
|
|
131
|
-
const O = { LONG_PRESS_DELAY_IN_MS:
|
|
134
|
+
const O = { LONG_PRESS_DELAY_IN_MS: M, props: e, showTooltip: n, tooltipDOMRef: I, slotDOMRef: C, tooltipBody: T, slots: q, openTimer: a, closeTimer: u, longPressTimer: s, lastPointerType: i, suppressNextClick: f, hasTooltipContent: m, shouldRenderTooltip: b, placement: g, placementCoords: S, placementReady: x, modifiers: R, clearOpenTimer: d, clearCloseTimer: p, clearLongPressTimer: v, setTooltipOpen: r, open: c, close: h, toggle: y, handleMouseEnter: L, handleMouseLeave: j, handleClick: W, handlePointerDown: A, handlePointerEnd: F, rootWidth: w, zIndex: D, styles: P, canTeleportTooltip: B, teleportTooltip: _, placementSide: N, tooltipContentClass: G, tooltipContentStyle: U };
|
|
132
135
|
return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
|
|
133
136
|
}
|
|
134
137
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-autocomplete .nmorph-autocomplete__input-content{position:relative}.nmorph-autocomplete.nmorph-autocomplete--open .nmorph-autocomplete__input-content{z-index:var(--nmorph-private-autocomplete-input-z-index)}.nmorph-autocomplete__list{padding:var(--indentation-01) 0}.nmorph-autocomplete__list-item{display:flex;align-items:center;box-sizing:border-box;min-width:0;padding:var(--indentation-00) var(--default-indentation-input);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.nmorph-autocomplete__loading{display:flex;justify-content:center;align-items:center;height:100px}.nmorph-autocomplete__list-item:hover,.nmorph-autocomplete__list-item--focused{color:var(--nmorph-
|
|
1
|
+
.nmorph-autocomplete .nmorph-autocomplete__input-content{position:relative}.nmorph-autocomplete.nmorph-autocomplete--open .nmorph-autocomplete__input-content{z-index:var(--nmorph-private-autocomplete-input-z-index)}.nmorph-autocomplete__list{padding:var(--indentation-01) 0}.nmorph-autocomplete__list-item{display:flex;align-items:center;box-sizing:border-box;min-width:0;padding:var(--indentation-00) var(--default-indentation-input);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}.nmorph-autocomplete__loading{display:flex;justify-content:center;align-items:center;height:100px}.nmorph-autocomplete__list-item:hover,.nmorph-autocomplete__list-item--focused{color:var(--nmorph-focus-text-color);background:var(--nmorph-accent-color);--nmorph-private-icon-color: var(--nmorph-focus-text-color)}.nmorph-autocomplete__list-item:hover :where(*),.nmorph-autocomplete__list-item--focused :where(*){color:inherit}.nmorph-autocomplete__list--virtual{overflow-y:auto}.nmorph-autocomplete__list--virtual .nmorph-autocomplete__list-item{height:var(--nmorph-private-autocomplete-virtual-item-height);overflow:hidden}.nmorph-autocomplete__list--dynamic .nmorph-autocomplete__list-item{height:auto}.nmorph-autocomplete__virtual-spacer{position:relative}.nmorph-autocomplete__virtual-content{position:absolute;top:0;right:0;left:0}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './NmorphAutocomplete.css';
|
|
2
2
|
import v from "./NmorphAutocomplete.vue2.js";
|
|
3
|
-
import { openBlock as l, createElementBlock as
|
|
3
|
+
import { openBlock as l, createElementBlock as r, normalizeStyle as i, normalizeClass as a, createElementVNode as d, createVNode as m, createBlock as y, withCtx as p, renderSlot as s, Fragment as _, renderList as h, createTextVNode as f, toDisplayString as u, createCommentVNode as k } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import x from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const b = { class: "nmorph-autocomplete__input-content" }, H = {
|
|
@@ -9,9 +9,9 @@ const b = { class: "nmorph-autocomplete__input-content" }, H = {
|
|
|
9
9
|
}, g = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "nmorph-autocomplete__loading"
|
|
12
|
-
}, N = ["id"], V = ["id", "aria-selected", "onClick"], C = ["id"],
|
|
13
|
-
function
|
|
14
|
-
return l(),
|
|
12
|
+
}, N = ["id"], V = ["id", "aria-selected", "onClick"], C = ["id"], w = ["id", "aria-selected", "onClick"];
|
|
13
|
+
function I(c, n, O, e, D, S) {
|
|
14
|
+
return l(), r(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
17
|
class: a(e.modifiers),
|
|
@@ -55,7 +55,7 @@ function O(c, n, w, e, D, S) {
|
|
|
55
55
|
onOnEscapeKeydown: e.closeHandler
|
|
56
56
|
}, {
|
|
57
57
|
default: p(() => [
|
|
58
|
-
e.loader ? (l(),
|
|
58
|
+
e.loader ? (l(), r("div", g, [
|
|
59
59
|
s(c.$slots, "loader", {}, () => [
|
|
60
60
|
m(e.NmorphIcon, { size: "large" }, {
|
|
61
61
|
default: p(() => [
|
|
@@ -65,7 +65,7 @@ function O(c, n, w, e, D, S) {
|
|
|
65
65
|
/* STABLE */
|
|
66
66
|
})
|
|
67
67
|
])
|
|
68
|
-
])) : e.virtualEnabled ? (l(),
|
|
68
|
+
])) : e.virtualEnabled ? (l(), r("div", {
|
|
69
69
|
key: 1,
|
|
70
70
|
id: e.listboxId,
|
|
71
71
|
ref: e.virtualList.containerRef,
|
|
@@ -91,13 +91,13 @@ function O(c, n, w, e, D, S) {
|
|
|
91
91
|
style: i(e.virtualContentStyle)
|
|
92
92
|
},
|
|
93
93
|
[
|
|
94
|
-
(l(!0),
|
|
94
|
+
(l(!0), r(
|
|
95
95
|
_,
|
|
96
96
|
null,
|
|
97
|
-
h(e.virtualItems, (o) => (l(),
|
|
97
|
+
h(e.virtualItems, (o) => (l(), r("div", {
|
|
98
98
|
id: e.getOptionId(o.index),
|
|
99
99
|
ref_for: !0,
|
|
100
|
-
ref: (
|
|
100
|
+
ref: (t) => e.setVirtualItemRef(t, o.index),
|
|
101
101
|
key: o.index,
|
|
102
102
|
class: a(["nmorph-autocomplete__list-item", [
|
|
103
103
|
e.optionHeightModifiers,
|
|
@@ -128,21 +128,21 @@ function O(c, n, w, e, D, S) {
|
|
|
128
128
|
4
|
|
129
129
|
/* STYLE */
|
|
130
130
|
)
|
|
131
|
-
], 46, N)) : (l(),
|
|
131
|
+
], 46, N)) : (l(), r("div", {
|
|
132
132
|
key: 2,
|
|
133
133
|
id: e.listboxId,
|
|
134
134
|
class: "nmorph-autocomplete__list",
|
|
135
135
|
role: "listbox"
|
|
136
136
|
}, [
|
|
137
|
-
(l(!0),
|
|
137
|
+
(l(!0), r(
|
|
138
138
|
_,
|
|
139
139
|
null,
|
|
140
|
-
h(e.filteredList, (o,
|
|
141
|
-
id: e.getOptionId(
|
|
142
|
-
key:
|
|
143
|
-
class: a(["nmorph-autocomplete__list-item", [e.optionHeightModifiers, { "nmorph-autocomplete__list-item--focused":
|
|
140
|
+
h(e.filteredList, (o, t) => (l(), r("div", {
|
|
141
|
+
id: e.getOptionId(t),
|
|
142
|
+
key: t,
|
|
143
|
+
class: a(["nmorph-autocomplete__list-item", [e.optionHeightModifiers, { "nmorph-autocomplete__list-item--focused": t === e.currentIndex }]]),
|
|
144
144
|
role: "option",
|
|
145
|
-
"aria-selected":
|
|
145
|
+
"aria-selected": t === e.currentIndex,
|
|
146
146
|
onClick: () => e.clickHandler(o)
|
|
147
147
|
}, [
|
|
148
148
|
s(c.$slots, "default", { scope: o }, () => [
|
|
@@ -152,7 +152,7 @@ function O(c, n, w, e, D, S) {
|
|
|
152
152
|
/* TEXT */
|
|
153
153
|
)
|
|
154
154
|
])
|
|
155
|
-
], 10,
|
|
155
|
+
], 10, w))),
|
|
156
156
|
128
|
|
157
157
|
/* KEYED_FRAGMENT */
|
|
158
158
|
))
|
|
@@ -166,7 +166,7 @@ function O(c, n, w, e, D, S) {
|
|
|
166
166
|
/* CLASS, STYLE */
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
|
-
const R = /* @__PURE__ */ x(v, [["render",
|
|
169
|
+
const R = /* @__PURE__ */ x(v, [["render", I], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue"]]);
|
|
170
170
|
export {
|
|
171
171
|
R as default
|
|
172
172
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './NmorphCheckbox.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as o, createElementBlock as c, normalizeClass as
|
|
2
|
+
import d from "./NmorphCheckbox.vue2.js";
|
|
3
|
+
import { openBlock as o, createElementBlock as c, normalizeClass as i, createElementVNode as n, createCommentVNode as l, toDisplayString as a, renderSlot as r } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const p = {
|
|
@@ -25,11 +25,11 @@ const p = {
|
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "nmorph-checkbox__fake"
|
|
27
27
|
};
|
|
28
|
-
function C(s,
|
|
28
|
+
function C(s, h, g, e, N, D) {
|
|
29
29
|
return o(), c(
|
|
30
30
|
"label",
|
|
31
31
|
{
|
|
32
|
-
class:
|
|
32
|
+
class: i(e.modifiers)
|
|
33
33
|
},
|
|
34
34
|
[
|
|
35
35
|
e.props.design === "plain" ? (o(), c("div", p, [
|
|
@@ -42,7 +42,7 @@ function C(s, d, g, e, N, D) {
|
|
|
42
42
|
class: "nmorph-native-input",
|
|
43
43
|
onChange: e.handleChange
|
|
44
44
|
}, null, 40, k),
|
|
45
|
-
|
|
45
|
+
h[0] || (h[0] = n(
|
|
46
46
|
"div",
|
|
47
47
|
{ class: "nmorph-checkbox__fake" },
|
|
48
48
|
null,
|
|
@@ -90,7 +90,7 @@ function C(s, d, g, e, N, D) {
|
|
|
90
90
|
/* CLASS */
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const O = /* @__PURE__ */ t(d, [["render", C], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/form/nmorph-checkbox/NmorphCheckbox.vue"]]);
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
O as default
|
|
96
96
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import './NmorphCheckboxGroup.css';
|
|
2
2
|
import d from "./NmorphCheckboxGroup.vue2.js";
|
|
3
|
-
import { openBlock as o, createElementBlock as s, normalizeClass as t, createElementVNode as
|
|
3
|
+
import { openBlock as o, createElementBlock as s, normalizeClass as t, createElementVNode as n, Fragment as a, renderList as m, createBlock as h, renderSlot as p } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
7
|
-
function f(
|
|
6
|
+
const k = { class: "nmorph-checkbox-group__wrapper" }, b = { class: "nmorph-checkbox-group__content" };
|
|
7
|
+
function f(c, u, i, e, g, x) {
|
|
8
8
|
return o(), s(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
class: t(e.modifiers)
|
|
12
12
|
},
|
|
13
13
|
[
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
n("div", k, [
|
|
15
|
+
n("div", b, [
|
|
16
16
|
(o(!0), s(
|
|
17
17
|
a,
|
|
18
18
|
null,
|
|
@@ -27,7 +27,7 @@ function f(n, u, i, e, g, x) {
|
|
|
27
27
|
128
|
|
28
28
|
/* KEYED_FRAGMENT */
|
|
29
29
|
)),
|
|
30
|
-
p(
|
|
30
|
+
p(c.$slots, "default")
|
|
31
31
|
])
|
|
32
32
|
])
|
|
33
33
|
],
|
|
@@ -35,7 +35,7 @@ function f(n, u, i, e, g, x) {
|
|
|
35
35
|
/* CLASS */
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const w = /* @__PURE__ */ _(d, [["render", f], ["__file", "/home/runner/work/nmorph/nmorph/library/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue"]]);
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
w as default
|
|
41
41
|
};
|