@nmorph/nmorph-ui-kit 2.2.19 → 2.2.21
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/circle-close.svg.js +4 -4
- package/dist/assets/icons/clock.svg.js +2 -2
- package/dist/assets/icons/folder-opened.svg.js +8 -8
- package/dist/assets/icons/forward-filled.svg.js +21 -0
- package/dist/assets/icons/forward.svg.js +24 -0
- package/dist/assets/icons/reply-filled.svg.js +21 -0
- package/dist/assets/icons/reply.svg.js +24 -0
- package/dist/assets/icons/send-filled.svg.js +21 -0
- package/dist/assets/icons/send.svg.js +21 -0
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-link/NmorphLink.vue.js +16 -15
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +17 -14
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +23 -23
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +27 -23
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +14 -13
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +68 -65
- package/dist/components/data/nmorph-calendar/utils.js +4 -3
- package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
- package/dist/components/data/nmorph-card/NmorphCard.vue.js +27 -26
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +21 -13
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +39 -42
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +25 -36
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue2.js +15 -11
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +14 -13
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +42 -27
- package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -0
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue.js +64 -0
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +43 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +51 -45
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +74 -62
- package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +24 -29
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +25 -14
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +20 -19
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +15 -12
- package/dist/components/data/nmorph-table/NmorphTable.vue.js +35 -31
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +64 -50
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +8 -8
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +26 -22
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +16 -15
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +11 -8
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +13 -13
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +33 -19
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +16 -15
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +39 -32
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +7 -7
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +40 -39
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +53 -50
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +16 -15
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -16
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +16 -15
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +26 -19
- package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +4 -4
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +48 -38
- package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +18 -17
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +38 -27
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -0
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +183 -0
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +111 -0
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +9 -8
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +14 -14
- package/dist/hooks/use-common-styles.js +75 -9
- package/dist/hooks/use-virtual-list.js +3 -1
- package/dist/icons.js +377 -365
- package/dist/index.es.js +666 -650
- package/dist/index.umd.js +99 -33
- package/dist/locales/en.js +1 -0
- package/dist/locales/ru.js +1 -0
- package/dist/locales/zh.js +1 -0
- package/dist/package.json.js +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +6 -0
- package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +2 -0
- package/dist/src/components/data/index.d.ts +1 -0
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +7 -5
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -3
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +36 -0
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +10 -0
- package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +6 -0
- package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +6 -0
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -0
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +1 -0
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +2 -0
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +8 -0
- package/dist/src/components/form/index.d.ts +2 -0
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +4 -0
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +2 -0
- package/dist/src/components/form/nmorph-select/types.d.ts +2 -0
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +6 -0
- package/dist/src/components/form/nmorph-slider/types.d.ts +4 -0
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +8 -0
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +44 -0
- package/dist/src/components/form/nmorph-time-picker/types.d.ts +6 -0
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +3 -3
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -2
- package/dist/src/outside-hooks/use-nmorph-notification.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +6 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as o, createElementBlock as l, createElementVNode as t } from "vue";
|
|
2
2
|
const n = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
viewBox: "0 0 1024 1024"
|
|
5
5
|
};
|
|
6
6
|
function r(a, e) {
|
|
7
|
-
return
|
|
7
|
+
return o(), l("svg", n, [...e[0] || (e[0] = [
|
|
8
8
|
t(
|
|
9
9
|
"path",
|
|
10
10
|
{ d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z" },
|
|
@@ -21,8 +21,8 @@ function r(a, e) {
|
|
|
21
21
|
)
|
|
22
22
|
])]);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const m = { render: r };
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
m as default,
|
|
27
27
|
r as render
|
|
28
28
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
1
|
+
import { openBlock as o, createElementBlock as n, createElementVNode as t } from "vue";
|
|
2
2
|
const l = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
viewBox: "0 0 1024 1024"
|
|
5
5
|
};
|
|
6
6
|
function r(a, e) {
|
|
7
|
-
return
|
|
7
|
+
return o(), n("svg", l, [...e[0] || (e[0] = [
|
|
8
8
|
t(
|
|
9
9
|
"path",
|
|
10
10
|
{ d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896" },
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as o, createElementBlock as t, createElementVNode as n } from "vue";
|
|
2
|
+
const r = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
viewBox: "0 0 1024 1024"
|
|
5
5
|
};
|
|
6
|
-
function
|
|
7
|
-
return
|
|
8
|
-
|
|
6
|
+
function l(a, e) {
|
|
7
|
+
return o(), t("svg", r, [...e[0] || (e[0] = [
|
|
8
|
+
n(
|
|
9
9
|
"path",
|
|
10
10
|
{ d: "M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896" },
|
|
11
11
|
null,
|
|
@@ -14,8 +14,8 @@ function r(a, e) {
|
|
|
14
14
|
)
|
|
15
15
|
])]);
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const c = { render: l };
|
|
18
18
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
c as default,
|
|
20
|
+
l as render
|
|
21
21
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
|
|
2
|
+
const n = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
viewBox: "0 0 1024 1024"
|
|
5
|
+
};
|
|
6
|
+
function l(a, e) {
|
|
7
|
+
return t(), o("svg", n, [...e[0] || (e[0] = [
|
|
8
|
+
r(
|
|
9
|
+
"path",
|
|
10
|
+
{ d: "M582.4 265.6A32 32 0 0 0 528 288v96h-96c-199.424 0-329.792 133.952-375.168 376.896a32 32 0 0 0 59.968 20.928C193.536 652.8 294.08 608 432 608h96v128a32 32 0 0 0 54.4 22.4l256-224a32 32 0 0 0 0-48z" },
|
|
11
|
+
null,
|
|
12
|
+
-1
|
|
13
|
+
/* CACHED */
|
|
14
|
+
)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const c = { render: l };
|
|
18
|
+
export {
|
|
19
|
+
c as default,
|
|
20
|
+
l as render
|
|
21
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as n } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
viewBox: "0 0 1024 1024"
|
|
5
|
+
};
|
|
6
|
+
function l(c, e) {
|
|
7
|
+
return t(), o("svg", r, [...e[0] || (e[0] = [
|
|
8
|
+
n(
|
|
9
|
+
"path",
|
|
10
|
+
{
|
|
11
|
+
fill: "none",
|
|
12
|
+
d: "m576 288 224 224-224 224m192-224H480c-154.667 0-256 101.333-256 256"
|
|
13
|
+
},
|
|
14
|
+
null,
|
|
15
|
+
-1
|
|
16
|
+
/* CACHED */
|
|
17
|
+
)
|
|
18
|
+
])]);
|
|
19
|
+
}
|
|
20
|
+
const m = { render: l };
|
|
21
|
+
export {
|
|
22
|
+
m as default,
|
|
23
|
+
l as render
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as o, createElementVNode as r } from "vue";
|
|
2
|
+
const l = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
viewBox: "0 0 1024 1024"
|
|
5
|
+
};
|
|
6
|
+
function n(a, e) {
|
|
7
|
+
return t(), o("svg", l, [...e[0] || (e[0] = [
|
|
8
|
+
r(
|
|
9
|
+
"path",
|
|
10
|
+
{ d: "M441.6 265.6A32 32 0 0 1 496 288v96h96c199.424 0 329.792 133.952 375.168 376.896a32 32 0 0 1-59.968 20.928C830.464 652.8 729.92 608 592 608h-96v128a32 32 0 0 1-54.4 22.4l-256-224a32 32 0 0 1 0-48z" },
|
|
11
|
+
null,
|
|
12
|
+
-1
|
|
13
|
+
/* CACHED */
|
|
14
|
+
)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const d = { render: n };
|
|
18
|
+
export {
|
|
19
|
+
d as default,
|
|
20
|
+
n as render
|
|
21
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
viewBox: "0 0 1024 1024"
|
|
5
|
+
};
|
|
6
|
+
function l(c, e) {
|
|
7
|
+
return t(), n("svg", r, [...e[0] || (e[0] = [
|
|
8
|
+
o(
|
|
9
|
+
"path",
|
|
10
|
+
{
|
|
11
|
+
fill: "none",
|
|
12
|
+
d: "M448 288 224 512l224 224M256 512h288c154.667 0 256 101.333 256 256"
|
|
13
|
+
},
|
|
14
|
+
null,
|
|
15
|
+
-1
|
|
16
|
+
/* CACHED */
|
|
17
|
+
)
|
|
18
|
+
])]);
|
|
19
|
+
}
|
|
20
|
+
const d = { render: l };
|
|
21
|
+
export {
|
|
22
|
+
d as default,
|
|
23
|
+
l as render
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
viewBox: "0 0 1024 1024"
|
|
5
|
+
};
|
|
6
|
+
function l(d, e) {
|
|
7
|
+
return t(), n("svg", r, [...e[0] || (e[0] = [
|
|
8
|
+
o(
|
|
9
|
+
"path",
|
|
10
|
+
{ d: "m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z" },
|
|
11
|
+
null,
|
|
12
|
+
-1
|
|
13
|
+
/* CACHED */
|
|
14
|
+
)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const m = { render: l };
|
|
18
|
+
export {
|
|
19
|
+
m as default,
|
|
20
|
+
l as render
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as n, createElementVNode as o } from "vue";
|
|
2
|
+
const r = {
|
|
3
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4
|
+
viewBox: "0 0 1024 1024"
|
|
5
|
+
};
|
|
6
|
+
function l(s, e) {
|
|
7
|
+
return t(), n("svg", r, [...e[0] || (e[0] = [
|
|
8
|
+
o(
|
|
9
|
+
"path",
|
|
10
|
+
{ d: "m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z" },
|
|
11
|
+
null,
|
|
12
|
+
-1
|
|
13
|
+
/* CACHED */
|
|
14
|
+
)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const d = { render: l };
|
|
18
|
+
export {
|
|
19
|
+
d as default,
|
|
20
|
+
l as render
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-button{display:inline-block;width:auto}.nmorph-button.nmorph--fill{width:100%}.nmorph-button .nmorph-button__content{display:flex;gap:var(--indentation-02);justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:var(--height);padding:var(--indentation-00) var(--indentation-04);line-height:0;background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color);
|
|
1
|
+
.nmorph-button{display:inline-block;width:auto}.nmorph-button.nmorph--fill{width:100%}.nmorph-button .nmorph-button__content{display:flex;gap:var(--indentation-02);justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:var(--height);padding:var(--indentation-00) var(--indentation-04);color:var(--nmorph-button-color, var(--nmorph-text-color));line-height:0;background:var(--nmorph-main-color);border:none;border-radius:var(--default-border-radius);box-shadow:var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color);cursor:pointer}.nmorph-button .nmorph-button__content span{color:var(--nmorph-button-color, var(--nmorph-text-color));--color: var(--nmorph-button-color, var(--nmorph-text-color))}.nmorph-button .nmorph-button__content>.nmorph-icon{flex-shrink:0;--color: var(--nmorph-button-color, var(--nmorph-text-color))}.nmorph-button .nmorph-button__content:disabled{pointer-events:none}.nmorph-button .nmorph-button__content[loading=true]{cursor:default}.nmorph-button.nmorph-button--ripple .nmorph-button__content{position:relative;overflow:hidden}.nmorph-button.nmorph-button--ripple .nmorph-button__content:after{position:absolute;top:0;left:0;width:100%;height:100%;background-image:radial-gradient(circle,var(--nmorph-main-color) 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:scale(10);opacity:0;transition:transform .3s,opacity 1s;content:""}.nmorph-button.nmorph-button--ripple .nmorph-button__content:active:after{transform:scale(0);opacity:.3;transition:0s}.nmorph-button.nmorph-button--accent-bg-on-hover .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-white-color);background:var(--nmorph-accent-color);box-shadow:none}.nmorph-button.nmorph-button--accent-bg-on-hover .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--color: var(--nmorph-white-color)}.nmorph-button.nmorph-button--accent-bg-on-hover .nmorph-button__content:not(:disabled,[loading=true]):hover span{color:var(--nmorph-white-color)}.nmorph-button.nmorph-button--round .nmorph-button__content{border-radius:var(--border-radius-200)}.nmorph-button.nmorph-button--circle{width:var(--height)}.nmorph-button.nmorph-button--circle .nmorph-button__content{border-radius:var(--border-radius-circular)}.nmorph-button.nmorph-button--transparent{padding:var(--indentation-00)}.nmorph-button.nmorph-button--transparent .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-accent-color);background:transparent;box-shadow:none}.nmorph-button.nmorph-button--transparent.nmorph-button--custom-color .nmorph-button__content:not(:disabled,[loading=true]):hover{color:var(--nmorph-button-hover-color)}.nmorph-button.nmorph-button--transparent .nmorph-button__content:not(:disabled,[loading=true]):hover span{color:var(--nmorph-accent-color)}.nmorph-button.nmorph-button--transparent.nmorph-button--custom-color .nmorph-button__content:not(:disabled,[loading=true]):hover span{color:var(--nmorph-button-hover-color);--color: var(--nmorph-button-hover-color)}.nmorph-button.nmorph-button--transparent .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--color: var(--nmorph-accent-color)}.nmorph-button.nmorph-button--transparent.nmorph-button--custom-color .nmorph-button__content:not(:disabled,[loading=true]):hover .nmorph-icon{--color: var(--nmorph-button-hover-color)}.nmorph-button.nmorph-button--transparent .nmorph-button__content{color:var(--nmorph-button-color, var(--transparent-button-color, var(--nmorph-text-color)));background:transparent;box-shadow:none}.nmorph-button.nmorph-button--transparent .nmorph-button__content span{color:var(--nmorph-button-color, var(--transparent-button-color, var(--nmorph-text-color)));--color: var(--nmorph-button-color, var(--transparent-button-color, var(--nmorph-text-color)))}.nmorph-button.nmorph-button--transparent .nmorph-button__content .nmorph-icon{--color: var(--nmorph-button-color, var(--transparent-button-color, var(--nmorph-text-color)))}.nmorph-button.nmorph-button--square,.nmorph-button.nmorph-button--icon-only{width:var(--height);height:var(--height)}.nmorph-button.nmorph-button--icon-only .nmorph-button__content{padding:0}.nmorph-button.nmorph-button.nmorph--thin-component{font-weight:400;font-size:var(--font-size-extra-small);line-height:var(--line-height-regular)}.nmorph-button.nmorph-button--disabled{cursor:not-allowed;opacity:.6}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import './NmorphLink.css';
|
|
2
2
|
import i from "./NmorphLink.vue2.js";
|
|
3
|
-
import { openBlock as t, createElementBlock as s, normalizeClass as a, createElementVNode as c, renderSlot as r, createTextVNode as
|
|
3
|
+
import { openBlock as t, createElementBlock as s, normalizeStyle as l, normalizeClass as a, createElementVNode as c, renderSlot as r, createTextVNode as m, toDisplayString as p, createBlock as d, withCtx as f, createCommentVNode as h } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
function
|
|
5
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const k = ["href", "target"];
|
|
7
|
+
function y(o, N, n, e, g, x) {
|
|
8
8
|
return t(), s(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
class: a(e.modifiers)
|
|
11
|
+
class: a(e.modifiers),
|
|
12
|
+
style: l(e.styles)
|
|
12
13
|
},
|
|
13
14
|
[
|
|
14
15
|
c("a", {
|
|
@@ -16,31 +17,31 @@ function k(o, N, n, e, g, x) {
|
|
|
16
17
|
target: e.props.target
|
|
17
18
|
}, [
|
|
18
19
|
r(o.$slots, "prepend"),
|
|
19
|
-
|
|
20
|
-
" " +
|
|
20
|
+
m(
|
|
21
|
+
" " + p(n.text) + " ",
|
|
21
22
|
1
|
|
22
23
|
/* TEXT */
|
|
23
24
|
),
|
|
24
|
-
e.slots.icon ? (t(),
|
|
25
|
+
e.slots.icon ? (t(), d(e.NmorphIcon, {
|
|
25
26
|
key: 0,
|
|
26
27
|
class: "nmorph-link__icon",
|
|
27
28
|
width: "10px",
|
|
28
29
|
height: "10px"
|
|
29
30
|
}, {
|
|
30
|
-
default:
|
|
31
|
+
default: f(() => [
|
|
31
32
|
r(o.$slots, "icon")
|
|
32
33
|
]),
|
|
33
34
|
_: 3
|
|
34
35
|
/* FORWARDED */
|
|
35
|
-
})) :
|
|
36
|
+
})) : h("v-if", !0),
|
|
36
37
|
r(o.$slots, "default")
|
|
37
|
-
], 8,
|
|
38
|
+
], 8, k)
|
|
38
39
|
],
|
|
39
|
-
|
|
40
|
-
/* CLASS */
|
|
40
|
+
6
|
|
41
|
+
/* CLASS, STYLE */
|
|
41
42
|
);
|
|
42
43
|
}
|
|
43
|
-
const
|
|
44
|
+
const C = /* @__PURE__ */ _(i, [["render", y], ["__file", "/builds/ketjo/nmorph/library/src/components/basic/nmorph-link/NmorphLink.vue"]]);
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
C as default
|
|
46
47
|
};
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
import './NmorphLink.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { NmorphColor as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
2
|
+
import { defineComponent as d, useSlots as u, computed as t } from "vue";
|
|
3
|
+
import { useModifiers as a } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { NmorphColor as p } from "../../../types/index.js";
|
|
5
|
+
import f from "../nmorph-icon/NmorphIcon.vue.js";
|
|
6
|
+
const q = /* @__PURE__ */ d({
|
|
7
7
|
__name: "NmorphLink",
|
|
8
8
|
props: {
|
|
9
|
-
type: { type: null, required: !1, default:
|
|
9
|
+
type: { type: null, required: !1, default: p.accent },
|
|
10
10
|
underline: { type: Boolean, required: !1, default: !1 },
|
|
11
11
|
href: { type: String, required: !1, default: "" },
|
|
12
12
|
text: { type: String, required: !1, default: "" },
|
|
13
13
|
target: { type: null, required: !1, default: "self" },
|
|
14
|
-
disabled: { type: Boolean, required: !1, default: !1 }
|
|
14
|
+
disabled: { type: Boolean, required: !1, default: !1 },
|
|
15
|
+
color: { type: String, required: !1, default: void 0 }
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
-
|
|
18
|
-
const e =
|
|
19
|
-
() =>
|
|
17
|
+
setup(o, { expose: l }) {
|
|
18
|
+
l();
|
|
19
|
+
const e = o, n = u(), s = t(
|
|
20
|
+
() => a({
|
|
20
21
|
"nmorph-link": [e.type, `${e.underline && "underline"}`, `${e.disabled && "disabled"}`]
|
|
21
22
|
})
|
|
22
|
-
),
|
|
23
|
-
|
|
23
|
+
), i = t(() => ({
|
|
24
|
+
...e.color !== void 0 && { "--link-color": e.color }
|
|
25
|
+
})), r = { props: e, slots: n, modifiers: s, styles: i, get NmorphIcon() {
|
|
26
|
+
return f;
|
|
24
27
|
} };
|
|
25
28
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
26
29
|
}
|
|
27
30
|
});
|
|
28
31
|
export {
|
|
29
|
-
|
|
32
|
+
q as default
|
|
30
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-badge{position:relative;display:inline-block;height:fit-content;--dot-size: 4px}.nmorph-badge .nmorph-badge__container{position:absolute;display:inline-flex;justify-content:center;align-items:center;background:var(--nmorph-badge-color);border-radius:var(--default-border-radius);opacity:1}.nmorph-badge.nmorph-badge--tag{position:static;display:inline-flex}.nmorph-badge .nmorph-badge__container--tag{position:static}.nmorph-badge .nmorph-badge__content{
|
|
1
|
+
.nmorph-badge{position:relative;display:inline-block;height:fit-content;--dot-size: 4px}.nmorph-badge .nmorph-badge__container{position:absolute;display:inline-flex;justify-content:center;align-items:center;background:var(--nmorph-badge-color);border-radius:var(--default-border-radius);opacity:1}.nmorph-badge.nmorph-badge--tag{position:static;display:inline-flex}.nmorph-badge .nmorph-badge__container--tag{position:static}.nmorph-badge .nmorph-badge__content{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;min-width:calc(1em * var(--line-height-regular) + 4px);padding:2px 4px;color:var(--nmorph-light-shade-color);font-size:var(--font-size-base);line-height:var(--line-height-regular);text-align:center}.nmorph-badge.nmorph-badge--tiny .nmorph-badge__content{font-size:var(--font-size-tiny)}.nmorph-badge.nmorph-badge--extra-small .nmorph-badge__content{font-size:var(--font-size-extra-small)}.nmorph-badge .nmorph-badge__container--hidden{opacity:0}.nmorph-badge .nmorph-badge__dot{width:var(--dot-size);height:var(--dot-size);border-radius:var(--border-radius-circular)}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './NmorphBadge.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import m from "./NmorphBadge.vue2.js";
|
|
3
|
+
import { openBlock as o, createElementBlock as a, normalizeStyle as i, normalizeClass as d, renderSlot as s, createCommentVNode as l, Fragment as c, createTextVNode as t, toDisplayString as n } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
5
|
+
import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const y = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-badge__dot"
|
|
@@ -10,45 +10,45 @@ const y = {
|
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "nmorph-badge__content"
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
return !
|
|
13
|
+
function _(r, g, h, e, k, v) {
|
|
14
|
+
return !e.props.disabled && (!e.props.isTag || e.shouldShowBadge) ? (o(), a(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
17
|
key: 0,
|
|
18
|
-
class: d(
|
|
19
|
-
style: i(
|
|
18
|
+
class: d(e.modifiers),
|
|
19
|
+
style: i(e.styles)
|
|
20
20
|
},
|
|
21
21
|
[
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
e.props.isTag ? l("v-if", !0) : s(r.$slots, "default", { key: 0 }),
|
|
23
|
+
e.shouldShowBadge ? (o(), a(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
26
|
key: 1,
|
|
27
27
|
ref: "badge",
|
|
28
|
-
class: d(
|
|
29
|
-
style: i(
|
|
28
|
+
class: d(e.containerModifiers),
|
|
29
|
+
style: i(e.containerStyle)
|
|
30
30
|
},
|
|
31
31
|
[
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
e.props.isDot ? (o(), a("div", y)) : (o(), a("div", f, [
|
|
33
|
+
e.props.isTag ? (o(), a(
|
|
34
34
|
c,
|
|
35
35
|
{ key: 0 },
|
|
36
36
|
[
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
t(
|
|
38
|
+
n(e.displayValue),
|
|
39
39
|
1
|
|
40
40
|
/* TEXT */
|
|
41
41
|
)
|
|
42
42
|
],
|
|
43
43
|
64
|
|
44
44
|
/* STABLE_FRAGMENT */
|
|
45
|
-
)) :
|
|
45
|
+
)) : s(r.$slots, "value", {
|
|
46
46
|
key: 1,
|
|
47
|
-
value:
|
|
48
|
-
displayValue:
|
|
47
|
+
value: e.props.value,
|
|
48
|
+
displayValue: e.displayValue
|
|
49
49
|
}, () => [
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
t(
|
|
51
|
+
n(e.displayValue),
|
|
52
52
|
1
|
|
53
53
|
/* TEXT */
|
|
54
54
|
)
|
|
@@ -57,13 +57,13 @@ function g(a, _, h, o, k, v) {
|
|
|
57
57
|
],
|
|
58
58
|
6
|
|
59
59
|
/* CLASS, STYLE */
|
|
60
|
-
)) :
|
|
60
|
+
)) : l("v-if", !0)
|
|
61
61
|
],
|
|
62
62
|
6
|
|
63
63
|
/* CLASS, STYLE */
|
|
64
|
-
)) :
|
|
64
|
+
)) : e.props.isTag ? l("v-if", !0) : s(r.$slots, "default", { key: 1 });
|
|
65
65
|
}
|
|
66
|
-
const T = /* @__PURE__ */ m
|
|
66
|
+
const T = /* @__PURE__ */ p(m, [["render", _], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-badge/NmorphBadge.vue"]]);
|
|
67
67
|
export {
|
|
68
68
|
T as default
|
|
69
69
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './NmorphBadge.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
const
|
|
2
|
+
import { defineComponent as z, computed as t, ref as n, onMounted as S, watch as q, nextTick as _ } from "vue";
|
|
3
|
+
import { useModifiers as f } from "../../../utils/create-modifiers.js";
|
|
4
|
+
const B = /* @__PURE__ */ z({
|
|
5
5
|
__name: "NmorphBadge",
|
|
6
6
|
props: {
|
|
7
7
|
value: { type: [Number, String], required: !1, default: void 0 },
|
|
@@ -14,38 +14,42 @@ const S = /* @__PURE__ */ b({
|
|
|
14
14
|
offsetY: { type: Number, required: !1, default: 0 },
|
|
15
15
|
offsetX: { type: Number, required: !1, default: 0 },
|
|
16
16
|
zIndex: { type: Number, required: !1, default: 1 },
|
|
17
|
-
disabled: { type: Boolean, required: !1, default: !1 }
|
|
17
|
+
disabled: { type: Boolean, required: !1, default: !1 },
|
|
18
|
+
dotSize: { type: [Number, String], required: !1, default: void 0 }
|
|
18
19
|
},
|
|
19
|
-
setup(
|
|
20
|
-
|
|
21
|
-
const e =
|
|
22
|
-
() =>
|
|
20
|
+
setup(p, { expose: c }) {
|
|
21
|
+
c();
|
|
22
|
+
const e = p, m = t(
|
|
23
|
+
() => f({
|
|
23
24
|
"nmorph-badge": [`${e.hidden && "hidden"}`, `${e.isTag && "tag"}`, e.size]
|
|
24
25
|
})
|
|
25
|
-
),
|
|
26
|
-
() =>
|
|
26
|
+
), g = t(
|
|
27
|
+
() => f({
|
|
27
28
|
"nmorph-badge__container": [`${e.hidden && "hidden"}`, `${e.isTag && "tag"}`]
|
|
28
29
|
})
|
|
29
|
-
),
|
|
30
|
-
const
|
|
30
|
+
), v = t(() => typeof Number(e.value) == "number" && Number(e.value) > e.max ? `${e.max}+` : e.value), y = t(() => e.isDot || e.value !== void 0), o = t(() => {
|
|
31
|
+
const a = `${(i?.value / 2 + e.offsetX) * -1}px`, h = `${(s?.value / 2 + e.offsetY) * -1}px`;
|
|
31
32
|
return {
|
|
32
|
-
x:
|
|
33
|
-
y
|
|
33
|
+
x: a,
|
|
34
|
+
y: h
|
|
34
35
|
};
|
|
35
|
-
}),
|
|
36
|
+
}), b = t(() => e.isTag ? {
|
|
36
37
|
zIndex: e.zIndex
|
|
37
38
|
} : {
|
|
38
|
-
right:
|
|
39
|
-
top:
|
|
39
|
+
right: o.value.x,
|
|
40
|
+
top: o.value.y,
|
|
40
41
|
zIndex: e.zIndex
|
|
41
|
-
}),
|
|
42
|
-
|
|
42
|
+
}), u = (a) => typeof a == "number" ? `${a}px` : a, x = t(() => ({
|
|
43
|
+
"--nmorph-badge-color": e.color,
|
|
44
|
+
...e.dotSize !== void 0 && { "--dot-size": u(e.dotSize) }
|
|
45
|
+
})), r = n(null), i = n(0), s = n(0), d = async () => {
|
|
46
|
+
await _(), !(!r.value || e.isTag) && (i.value = r.value.clientWidth, s.value = r.value.clientHeight);
|
|
43
47
|
};
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
return Object.defineProperty(
|
|
48
|
+
S(d), q(() => [e.value, e.max, e.isDot, e.isTag, e.size], d);
|
|
49
|
+
const l = { props: e, modifiers: m, containerModifiers: g, displayValue: v, shouldShowBadge: y, appliedOffset: o, containerStyle: b, getCssSize: u, styles: x, badge: r, badgeWidth: i, badgeHeight: s, updateBadgeSize: d };
|
|
50
|
+
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
47
51
|
}
|
|
48
52
|
});
|
|
49
53
|
export {
|
|
50
|
-
|
|
54
|
+
B as default
|
|
51
55
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import './NmorphCalendar.css';
|
|
2
2
|
import f from "./NmorphCalendar.vue2.js";
|
|
3
|
-
import { openBlock as o, createElementBlock as r, normalizeClass as i, renderSlot as n, createVNode as s, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as
|
|
3
|
+
import { openBlock as o, createElementBlock as r, normalizeStyle as k, normalizeClass as i, renderSlot as n, createVNode as s, withCtx as l, Fragment as c, renderList as y, createBlock as D, createElementVNode as C, createTextVNode as _, toDisplayString as m } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import v from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
7
|
-
function
|
|
6
|
+
const T = ["data-date", "onClick"];
|
|
7
|
+
function B(d, M, p, a, w, x) {
|
|
8
8
|
return o(), r(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
|
-
class: i(a.modifiers)
|
|
11
|
+
class: i(a.modifiers),
|
|
12
|
+
style: k(a.styles)
|
|
12
13
|
},
|
|
13
14
|
[
|
|
14
15
|
n(d.$slots, "header", {}, () => [
|
|
@@ -47,7 +48,7 @@ function T(d, B, p, a, M, w) {
|
|
|
47
48
|
row: h
|
|
48
49
|
}, {
|
|
49
50
|
default: l(() => [
|
|
50
|
-
|
|
51
|
+
C("div", {
|
|
51
52
|
"data-date": `${a.dateData(e[t]).date}`,
|
|
52
53
|
class: i([
|
|
53
54
|
"nmorph-calendar-date",
|
|
@@ -60,7 +61,7 @@ function T(d, B, p, a, M, w) {
|
|
|
60
61
|
"nmorph-calendar-date--selected": a.isValueSelected(a.dateData(e[t]).date)
|
|
61
62
|
}
|
|
62
63
|
]),
|
|
63
|
-
onClick: (
|
|
64
|
+
onClick: (S) => a.clickDate(a.dateData(e[t]))
|
|
64
65
|
}, [
|
|
65
66
|
n(d.$slots, "date-cell", {
|
|
66
67
|
scope: {
|
|
@@ -68,13 +69,13 @@ function T(d, B, p, a, M, w) {
|
|
|
68
69
|
selected: a.isValueSelected(a.dateData(e[t]).date)
|
|
69
70
|
}
|
|
70
71
|
}, () => [
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
_(
|
|
73
|
+
m(a.dateData(e[t]).hidden ? "-" : a.dateData(e[t]).value),
|
|
73
74
|
1
|
|
74
75
|
/* TEXT */
|
|
75
76
|
)
|
|
76
77
|
])
|
|
77
|
-
], 10,
|
|
78
|
+
], 10, T)
|
|
78
79
|
]),
|
|
79
80
|
_: 2
|
|
80
81
|
/* DYNAMIC */
|
|
@@ -95,11 +96,11 @@ function T(d, B, p, a, M, w) {
|
|
|
95
96
|
}, 8, ["data"])
|
|
96
97
|
])
|
|
97
98
|
],
|
|
98
|
-
|
|
99
|
-
/* CLASS */
|
|
99
|
+
6
|
|
100
|
+
/* CLASS, STYLE */
|
|
100
101
|
);
|
|
101
102
|
}
|
|
102
|
-
const
|
|
103
|
+
const z = /* @__PURE__ */ v(f, [["render", B], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-calendar/NmorphCalendar.vue"]]);
|
|
103
104
|
export {
|
|
104
|
-
|
|
105
|
+
z as default
|
|
105
106
|
};
|