@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.
Files changed (112) hide show
  1. package/dist/assets/icons/circle-close.svg.js +4 -4
  2. package/dist/assets/icons/clock.svg.js +2 -2
  3. package/dist/assets/icons/folder-opened.svg.js +8 -8
  4. package/dist/assets/icons/forward-filled.svg.js +21 -0
  5. package/dist/assets/icons/forward.svg.js +24 -0
  6. package/dist/assets/icons/reply-filled.svg.js +21 -0
  7. package/dist/assets/icons/reply.svg.js +24 -0
  8. package/dist/assets/icons/send-filled.svg.js +21 -0
  9. package/dist/assets/icons/send.svg.js +21 -0
  10. package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
  11. package/dist/components/basic/nmorph-link/NmorphLink.vue.js +16 -15
  12. package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +17 -14
  13. package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
  14. package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +23 -23
  15. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +27 -23
  16. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +14 -13
  17. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +68 -65
  18. package/dist/components/data/nmorph-calendar/utils.js +4 -3
  19. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  20. package/dist/components/data/nmorph-card/NmorphCard.vue.js +27 -26
  21. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +21 -13
  22. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +39 -42
  23. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +25 -36
  24. package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue2.js +15 -11
  25. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
  26. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +14 -13
  27. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +42 -27
  28. package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -0
  29. package/dist/components/data/nmorph-empty/NmorphEmpty.vue.js +64 -0
  30. package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +43 -0
  31. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
  32. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +51 -45
  33. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +74 -62
  34. package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +24 -29
  35. package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +25 -14
  36. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +20 -19
  37. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +15 -12
  38. package/dist/components/data/nmorph-table/NmorphTable.vue.js +35 -31
  39. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +64 -50
  40. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
  41. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +8 -8
  42. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +26 -22
  43. package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
  44. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +16 -15
  45. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +11 -8
  46. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
  47. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +13 -13
  48. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +33 -19
  49. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +1 -1
  50. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
  51. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +16 -15
  52. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +39 -32
  53. package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
  54. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +7 -7
  55. package/dist/components/form/nmorph-select/NmorphSelect.vue.js +40 -39
  56. package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +53 -50
  57. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +16 -15
  58. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -16
  59. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +16 -15
  60. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +26 -19
  61. package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +4 -4
  62. package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +48 -38
  63. package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
  64. package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +18 -17
  65. package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +38 -27
  66. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -0
  67. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +183 -0
  68. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +111 -0
  69. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
  70. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +9 -8
  71. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +14 -14
  72. package/dist/hooks/use-common-styles.js +75 -9
  73. package/dist/hooks/use-virtual-list.js +3 -1
  74. package/dist/icons.js +377 -365
  75. package/dist/index.es.js +666 -650
  76. package/dist/index.umd.js +99 -33
  77. package/dist/locales/en.js +1 -0
  78. package/dist/locales/ru.js +1 -0
  79. package/dist/locales/zh.js +1 -0
  80. package/dist/package.json.js +1 -1
  81. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +6 -0
  82. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +2 -0
  83. package/dist/src/components/data/index.d.ts +1 -0
  84. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +2 -0
  85. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +2 -0
  86. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +7 -5
  87. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -3
  88. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +2 -0
  89. package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +36 -0
  90. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +10 -0
  91. package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +6 -0
  92. package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +2 -0
  93. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +6 -0
  94. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -0
  95. package/dist/src/components/feedback/nmorph-alert/types.d.ts +1 -0
  96. package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +2 -0
  97. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +8 -0
  98. package/dist/src/components/form/index.d.ts +2 -0
  99. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +4 -0
  100. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +2 -0
  101. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +2 -0
  102. package/dist/src/components/form/nmorph-select/types.d.ts +2 -0
  103. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +6 -0
  104. package/dist/src/components/form/nmorph-slider/types.d.ts +4 -0
  105. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +8 -0
  106. package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +44 -0
  107. package/dist/src/components/form/nmorph-time-picker/types.d.ts +6 -0
  108. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +3 -3
  109. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -2
  110. package/dist/src/outside-hooks/use-nmorph-notification.d.ts +2 -0
  111. package/dist/style.css +1 -1
  112. package/package.json +6 -5
@@ -1,21 +1,21 @@
1
1
  import './NmorphTooltip.css';
2
2
  import f from "./NmorphTooltip.vue2.js";
3
- import { openBlock as t, createElementBlock as n, normalizeStyle as a, normalizeClass as h, createElementVNode as e, renderSlot as d, createBlock as c, TransitionGroup as p, withCtx as _, createCommentVNode as r, toDisplayString as m } from "vue";
3
+ import { openBlock as t, createElementBlock as n, normalizeStyle as a, normalizeClass as h, createElementVNode as e, renderSlot as d, createBlock as c, TransitionGroup as _, withCtx as p, createCommentVNode as r, toDisplayString as m } from "vue";
4
4
  /* empty css */
5
5
  import v from "../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const y = { ref: "slotDOMRef" }, k = { class: "nmorph-tooltip__shadow-content" }, u = {
7
7
  key: 0,
8
8
  class: "nmorph-tooltip__triangle"
9
- }, w = {
9
+ }, x = {
10
10
  key: 0,
11
11
  class: "nmorph-tooltip__info-content"
12
- }, x = { class: "nmorph-tooltip__shadow-content" }, C = { key: 0 };
13
- function M(l, s, i, o, g, T) {
12
+ }, C = { class: "nmorph-tooltip__shadow-content" }, M = { key: 0 };
13
+ function g(l, s, i, o, w, T) {
14
14
  return t(), n(
15
15
  "div",
16
16
  {
17
17
  class: h(o.modifiers),
18
- style: a({ "--nmorph-tooltip-width": o.width })
18
+ style: a(o.styles)
19
19
  },
20
20
  [
21
21
  e(
@@ -36,12 +36,12 @@ function M(l, s, i, o, g, T) {
36
36
  512
37
37
  /* NEED_PATCH */
38
38
  ),
39
- o.props.forceCoordinate ? (t(), c(p, {
39
+ o.props.forceCoordinate ? (t(), c(_, {
40
40
  key: 0,
41
41
  name: "opacity",
42
42
  tag: "div"
43
43
  }, {
44
- default: _(() => [
44
+ default: p(() => [
45
45
  o.showTooltip && o.props.text ? (t(), n(
46
46
  "div",
47
47
  {
@@ -68,14 +68,14 @@ function M(l, s, i, o, g, T) {
68
68
  ]),
69
69
  _: 1
70
70
  /* STABLE */
71
- })) : (t(), c(p, {
71
+ })) : (t(), c(_, {
72
72
  key: 1,
73
73
  name: "opacity",
74
74
  tag: "div"
75
75
  }, {
76
- default: _(() => [
77
- o.showTooltip ? (t(), n("div", w, [
78
- e("div", x, [
76
+ default: p(() => [
77
+ o.showTooltip ? (t(), n("div", x, [
78
+ e("div", C, [
79
79
  s[0] || (s[0] = e(
80
80
  "div",
81
81
  { class: "nmorph-tooltip__triangle" },
@@ -85,7 +85,7 @@ function M(l, s, i, o, g, T) {
85
85
  )),
86
86
  o.props.text ? (t(), n(
87
87
  "span",
88
- C,
88
+ M,
89
89
  m(i.text),
90
90
  1
91
91
  /* TEXT */
@@ -105,7 +105,7 @@ function M(l, s, i, o, g, T) {
105
105
  /* CLASS, STYLE */
106
106
  );
107
107
  }
108
- const E = /* @__PURE__ */ v(f, [["render", M], ["__file", "/builds/ketjo/nmorph/library/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue"]]);
108
+ const E = /* @__PURE__ */ v(f, [["render", g], ["__file", "/builds/ketjo/nmorph/library/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue"]]);
109
109
  export {
110
110
  E as default
111
111
  };
@@ -1,37 +1,51 @@
1
1
  import './NmorphTooltip.css';
2
- import { defineComponent as _, ref as o, computed as i } from "vue";
3
- import { useModifiers as h } from "../../../utils/create-modifiers.js";
4
- import { usePlacement as y } from "../../../hooks/use-placement.js";
5
- const w = /* @__PURE__ */ _({
2
+ import { defineComponent as w, ref as r, computed as n } from "vue";
3
+ import { useModifiers as S } from "../../../utils/create-modifiers.js";
4
+ import { usePlacement as _ } from "../../../hooks/use-placement.js";
5
+ import { useZIndex as g } from "../../../hooks/use-z-index.js";
6
+ const z = /* @__PURE__ */ w({
6
7
  __name: "NmorphTooltip",
7
8
  props: {
8
9
  text: { type: String, required: !1, default: "" },
9
10
  position: { type: null, required: !1, default: "top" },
10
11
  forceShow: { type: Boolean, required: !1, default: !1 },
11
- forceCoordinate: { type: [Object, null], required: !1, default: null }
12
+ forceCoordinate: { type: [Object, null], required: !1, default: null },
13
+ zIndex: { type: Number, required: !1, default: void 0 },
14
+ width: { type: [Number, String], required: !1, default: void 0 },
15
+ maxWidth: { type: [Number, String], required: !1, default: void 0 },
16
+ height: { type: [Number, String], required: !1, default: void 0 }
12
17
  },
13
- setup(u, { expose: f }) {
14
- const e = u, t = o(e.forceShow), n = o(null), r = o(null), { placement: l } = y({
18
+ setup(c, { expose: m }) {
19
+ const e = c, t = r(e.forceShow), l = r(null), d = r(null), { placement: a } = _({
15
20
  initialPlacement: e.position,
16
- contentDOMElement: n,
17
- relativeElement: r
18
- }), c = i(
19
- () => h({
21
+ contentDOMElement: l,
22
+ relativeElement: d
23
+ }), h = n(
24
+ () => S({
20
25
  "nmorph-tooltip": [
21
- l.value,
26
+ a.value,
22
27
  `${!!e.forceCoordinate?.x && !!e.forceCoordinate?.y && "force-coords"}`
23
28
  ]
24
29
  })
25
- ), p = () => {
30
+ ), v = () => {
26
31
  t.value = !0;
27
- }, d = () => {
32
+ }, x = () => {
28
33
  e.forceShow || (t.value = !1);
29
- }, m = i(() => e.forceCoordinate ? "100%" : "auto"), s = o(null);
30
- f({ tooltipBody: s });
31
- const a = { props: e, showTooltip: t, tooltipDOMRef: n, slotDOMRef: r, placement: l, modifiers: c, handleMouseEnter: p, handleMouseLeave: d, width: m, tooltipBody: s };
32
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
34
+ }, o = (i) => typeof i == "number" ? `${i}px` : i, s = n(() => e.forceCoordinate ? "100%" : "auto"), u = g(
35
+ () => t.value,
36
+ () => e.zIndex
37
+ ), y = n(() => ({
38
+ "--nmorph-tooltip-width": s.value,
39
+ "--nmorph-tooltip-z-index": u.value,
40
+ ...e.width !== void 0 && { "--width": o(e.width) },
41
+ ...e.maxWidth !== void 0 && { "--max-width": o(e.maxWidth) },
42
+ ...e.height !== void 0 && { "--height": o(e.height) }
43
+ })), f = r(null);
44
+ m({ tooltipBody: f });
45
+ const p = { props: e, showTooltip: t, tooltipDOMRef: l, slotDOMRef: d, placement: a, modifiers: h, handleMouseEnter: v, handleMouseLeave: x, getCssSize: o, rootWidth: s, zIndex: u, styles: y, tooltipBody: f };
46
+ return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
33
47
  }
34
48
  });
35
49
  export {
36
- w as default
50
+ z as default
37
51
  };
@@ -64,8 +64,8 @@ function V(a, s, S, e, z, A) {
64
64
  ])
65
65
  ])) : e.virtualEnabled ? (l(), t("div", {
66
66
  key: 1,
67
- ref: e.virtualList.containerRef,
68
67
  id: e.listboxId,
68
+ ref: e.virtualList.containerRef,
69
69
  class: i(["nmorph-autocomplete__list nmorph-autocomplete__list--virtual", { "nmorph-autocomplete__list--dynamic": e.virtualDynamicHeight }]),
70
70
  style: m({ "--autocomplete-virtual-item-height": `${e.virtualItemHeight}px`, maxHeight: e.virtualMaxHeight }),
71
71
  role: "listbox",
@@ -1 +1 @@
1
- .nmorph-date-picker{--width: 200px;position:relative;width:var(--width)}.nmorph-date-picker .nmorph-date-picker__date-wrapper,.nmorph-date-picker .nmorph-date-picker__date-range-wrapper{height:100%}.nmorph-date-picker .nmorph-date-picker__input{display:flex;justify-content:space-between;align-items:center;height:100%;padding:0 var(--indentation-03);overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);cursor:pointer}.nmorph-date-picker .nmorph-date-picker__selected-value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-date-picker .nmorph-date-picker__input--open{background:var(--nmorph-main-color);box-shadow:var(--nmorph-shadow-inset)}.nmorph-date-picker .nmorph-date-picker__calendar-icon{margin-right:2px}.nmorph-date-picker .nmorph-date-picker__clear-button-wrapper{width:14px;height:14px;margin-right:1px}.nmorph-date-picker .nmorph-dropdown{padding:var(--indentation-03)}.nmorph-date-picker input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:none}.nmorph-date-picker .nmorph-calendar{--table-data-cell-height: 42px}.nmorph-date-picker.nmorph-date-picker--daterange{--width: 250px}.nmorph-date-picker.nmorph-date-picker--daterange .nmorph-dropdown{display:flex;justify-content:space-between}.nmorph-date-picker.nmorph-date-picker--daterange .nmorph-date-picker__value-separator{padding:0 var(--indentation-03)}.nmorph-date-picker.nmorph-date-picker--daterange .nmorph-date-picker__selected-value{display:flex}.nmorph-date-picker.nmorph-date-picker--focus{outline:2px solid var(--nmorph-accent-color)}.nmorph-date-picker.nmorph-date-picker--disabled{cursor:not-allowed;opacity:.6}.nmorph-date-picker.nmorph-date-picker--disabled .nmorph-date-picker__date-wrapper{pointer-events:none}
1
+ .nmorph-date-picker{--width: 200px;--date-picker-calendar-cell-height: 42px;position:relative;width:var(--width)}.nmorph-date-picker .nmorph-date-picker__date-wrapper,.nmorph-date-picker .nmorph-date-picker__date-range-wrapper{height:100%}.nmorph-date-picker .nmorph-date-picker__input{display:flex;justify-content:space-between;align-items:center;height:100%;padding:0 var(--indentation-03);overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);cursor:pointer}.nmorph-date-picker .nmorph-date-picker__selected-value{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-date-picker .nmorph-date-picker__input--open{background:var(--nmorph-main-color);box-shadow:var(--nmorph-shadow-inset)}.nmorph-date-picker .nmorph-date-picker__calendar-icon{margin-right:2px}.nmorph-date-picker .nmorph-date-picker__clear-button-wrapper{width:14px;height:14px;margin-right:1px}.nmorph-date-picker .nmorph-dropdown{padding:var(--indentation-03)}.nmorph-date-picker input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:none}.nmorph-date-picker .nmorph-calendar{--table-data-cell-height: var(--date-picker-calendar-cell-height)}.nmorph-date-picker.nmorph-date-picker--daterange{--width: 250px}.nmorph-date-picker.nmorph-date-picker--daterange .nmorph-dropdown{display:flex;justify-content:space-between}.nmorph-date-picker.nmorph-date-picker--daterange .nmorph-date-picker__value-separator{padding:0 var(--indentation-03)}.nmorph-date-picker.nmorph-date-picker--daterange .nmorph-date-picker__selected-value{display:flex}.nmorph-date-picker.nmorph-date-picker--focus{outline:2px solid var(--nmorph-accent-color)}.nmorph-date-picker.nmorph-date-picker--disabled{cursor:not-allowed;opacity:.6}.nmorph-date-picker.nmorph-date-picker--disabled .nmorph-date-picker__date-wrapper{pointer-events:none}
@@ -1,17 +1,18 @@
1
1
  import './NmorphDatePicker.css';
2
2
  import p from "./NmorphDatePicker.vue2.js";
3
- import { openBlock as n, createElementBlock as m, normalizeClass as t, createElementVNode as o, withKeys as _, withModifiers as a, createVNode as r, withCtx as i, toDisplayString as s, createBlock as l, createCommentVNode as c } from "vue";
3
+ import { openBlock as n, createElementBlock as m, normalizeStyle as _, normalizeClass as t, createElementVNode as o, withKeys as s, withModifiers as a, createVNode as r, withCtx as i, toDisplayString as h, createBlock as l, createCommentVNode as c } from "vue";
4
4
  /* empty css */
5
- import h from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const f = { class: "nmorph-date-picker__date-wrapper" }, k = ["id", "name", "autocomplete", "onKeydown"], v = { class: "nmorph-date-picker__selected-value" }, y = { class: "nmorph-date-picker__clear-button-wrapper" }, u = { class: "nmorph-date-picker__content" };
7
- function w(D, C, d, e, N, x) {
5
+ import f from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const k = { class: "nmorph-date-picker__date-wrapper" }, v = ["id", "name", "autocomplete", "onKeydown"], y = { class: "nmorph-date-picker__selected-value" }, w = { class: "nmorph-date-picker__clear-button-wrapper" }, D = { class: "nmorph-date-picker__content" };
7
+ function u(C, N, d, e, x, B) {
8
8
  return n(), m(
9
9
  "div",
10
10
  {
11
- class: t(e.modifiers)
11
+ class: t(e.modifiers),
12
+ style: _(e.styles)
12
13
  },
13
14
  [
14
- o("div", f, [
15
+ o("div", k, [
15
16
  o(
16
17
  "div",
17
18
  {
@@ -27,9 +28,9 @@ function w(D, C, d, e, N, x) {
27
28
  type: "date",
28
29
  onFocus: a(e.focusHandler, ["prevent"]),
29
30
  onBlur: e.blurHandler,
30
- onKeydown: _(a(() => {
31
+ onKeydown: s(a(() => {
31
32
  }, ["prevent"]), ["space"])
32
- }, null, 40, k),
33
+ }, null, 40, v),
33
34
  r(e.NmorphIcon, { class: "nmorph-date-picker__calendar-icon" }, {
34
35
  default: i(() => [
35
36
  r(e.NmorphIconCalendar)
@@ -39,12 +40,12 @@ function w(D, C, d, e, N, x) {
39
40
  }),
40
41
  o(
41
42
  "div",
42
- v,
43
- s(e.displayValue),
43
+ y,
44
+ h(e.displayValue),
44
45
  1
45
46
  /* TEXT */
46
47
  ),
47
- o("div", y, [
48
+ o("div", w, [
48
49
  e.showClearButton ? (n(), l(e.NmorphClearButton, {
49
50
  key: 0,
50
51
  onClear: e.clearHandler
@@ -54,7 +55,7 @@ function w(D, C, d, e, N, x) {
54
55
  2
55
56
  /* CLASS */
56
57
  ),
57
- o("div", u, [
58
+ o("div", D, [
58
59
  e.nmorphInputDOMRef ? (n(), l(e.NmorphDropdown, {
59
60
  key: 0,
60
61
  "fill-width": !1,
@@ -78,11 +79,11 @@ function w(D, C, d, e, N, x) {
78
79
  ])
79
80
  ])
80
81
  ],
81
- 2
82
- /* CLASS */
82
+ 6
83
+ /* CLASS, STYLE */
83
84
  );
84
85
  }
85
- const V = /* @__PURE__ */ h(p, [["render", w], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-date-picker/NmorphDatePicker.vue"]]);
86
+ const V = /* @__PURE__ */ f(p, [["render", u], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-date-picker/NmorphDatePicker.vue"]]);
86
87
  export {
87
88
  V as default
88
89
  };
@@ -1,16 +1,16 @@
1
1
  import './NmorphDatePicker.css';
2
- import { defineComponent as H, computed as l, ref as u } from "vue";
3
- import { useModifiers as O } from "../../../utils/create-modifiers.js";
4
- import { NmorphComponentHeight as k } from "../../../types/index.js";
5
- import w from "./inner-components/nmorph-clear-button/NmorphClearButton.vue.js";
6
- import B from "./inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js";
7
- import { useI18n as P } from "vue-i18n";
8
- import { useFormItemInput as V } from "../nmorph-form/use-form-item-input.js";
9
- import { formatDate as s } from "../../data/nmorph-calendar/utils.js";
10
- import j from "../../../assets/icons/calendar.svg.js";
2
+ import { defineComponent as O, computed as a, ref as u } from "vue";
3
+ import { useModifiers as k } from "../../../utils/create-modifiers.js";
4
+ import { NmorphComponentHeight as B } from "../../../types/index.js";
5
+ import P from "./inner-components/nmorph-clear-button/NmorphClearButton.vue.js";
6
+ import V from "./inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js";
7
+ import { useI18n as $ } from "vue-i18n";
8
+ import { useFormItemInput as j } from "../nmorph-form/use-form-item-input.js";
9
+ import { formatDate as f } from "../../data/nmorph-calendar/utils.js";
10
+ import z from "../../../assets/icons/calendar.svg.js";
11
11
  import L from "../../basic/nmorph-icon/NmorphIcon.vue.js";
12
12
  import M from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
13
- const X = /* @__PURE__ */ H({
13
+ const Z = /* @__PURE__ */ O({
14
14
  __name: "NmorphDatePicker",
15
15
  props: {
16
16
  placeholder: { type: String, required: !1, default: "" },
@@ -25,6 +25,8 @@ const X = /* @__PURE__ */ H({
25
25
  dateFormatter: { type: Function, required: !1, default: void 0 },
26
26
  valueSeparator: { type: String, required: !1, default: ", " },
27
27
  rangeSeparator: { type: String, required: !1, default: " - " },
28
+ width: { type: [Number, String], required: !1, default: void 0 },
29
+ calendarCellHeight: { type: [Number, String], required: !1, default: void 0 },
28
30
  id: { type: String, required: !1 },
29
31
  name: { type: String, required: !1 },
30
32
  autocomplete: { type: String, required: !1 },
@@ -33,22 +35,27 @@ const X = /* @__PURE__ */ H({
33
35
  tabindex: { type: Number, required: !1 }
34
36
  },
35
37
  emits: ["update:model-value"],
36
- setup(m, { expose: f, emit: c }) {
37
- f();
38
- const { t: p } = P(), e = m, { id: y, name: v, autocomplete: h } = V(e), n = l(() => e.placeholder ? e.placeholder : p("pickADate")), t = u(e.modelValue), d = c, a = u(!1), g = () => {
39
- a.value = !0;
40
- }, q = () => {
41
- a.value = !1;
42
- }, S = l(
43
- () => O({
44
- nmorph: [k[e.height]],
45
- "nmorph-date-picker": [`${e.disabled && "disabled"}`, e.type, `${a.value && "focus"}`]
38
+ setup(m, { expose: c, emit: y }) {
39
+ c();
40
+ const { t: p } = $(), e = m, { id: h, name: v, autocomplete: g } = j(e), n = a(() => e.placeholder ? e.placeholder : p("pickADate")), t = u(e.modelValue), d = y, l = u(!1), q = () => {
41
+ l.value = !0;
42
+ }, S = () => {
43
+ l.value = !1;
44
+ }, N = a(
45
+ () => k({
46
+ nmorph: [B[e.height]],
47
+ "nmorph-date-picker": [`${e.disabled && "disabled"}`, e.type, `${l.value && "focus"}`]
46
48
  })
47
- ), o = u(!1), D = u(null), N = () => {
49
+ ), i = (r) => typeof r == "number" ? `${r}px` : r, b = a(() => ({
50
+ ...e.width !== void 0 && { "--width": i(e.width) },
51
+ ...e.calendarCellHeight !== void 0 && {
52
+ "--date-picker-calendar-cell-height": i(e.calendarCellHeight)
53
+ }
54
+ })), o = u(!1), D = u(null), C = () => {
48
55
  o.value = !1;
49
- }, b = () => {
56
+ }, _ = () => {
50
57
  o.value = !o.value;
51
- }, _ = l(() => {
58
+ }, A = a(() => {
52
59
  if (!t.value) return n.value;
53
60
  const r = {
54
61
  locale: e.dateLocale,
@@ -58,25 +65,25 @@ const X = /* @__PURE__ */ H({
58
65
  };
59
66
  if (Array.isArray(t.value)) {
60
67
  if (t.value.length === 0) return n.value;
61
- const C = s(t.value, r), x = e.type === "daterange" ? e.rangeSeparator : e.valueSeparator;
62
- return C.join(x);
68
+ const F = f(t.value, r), x = e.type === "daterange" ? e.rangeSeparator : e.valueSeparator;
69
+ return F.join(x);
63
70
  } else
64
- return s(t.value, r);
65
- }), A = () => {
71
+ return f(t.value, r);
72
+ }), H = () => {
66
73
  const r = Array.isArray(t.value) ? [] : null;
67
74
  t.value = r, d("update:model-value", t.value);
68
75
  }, I = (r) => {
69
76
  t.value = r, d("update:model-value", t.value);
70
- }, F = l(() => Array.isArray(t.value) ? t.value.length > 0 : !!t.value), i = { t: p, props: e, id: y, name: v, autocomplete: h, placeholderText: n, selectedDate: t, emit: d, focus: a, focusHandler: g, blurHandler: q, modifiers: S, open: o, nmorphInputDOMRef: D, closeHandler: N, toggleOpen: b, displayValue: _, clearHandler: A, updateSelectedDateHandler: I, showClearButton: F, get NmorphDropdown() {
77
+ }, w = a(() => Array.isArray(t.value) ? t.value.length > 0 : !!t.value), s = { t: p, props: e, id: h, name: v, autocomplete: g, placeholderText: n, selectedDate: t, emit: d, focus: l, focusHandler: q, blurHandler: S, modifiers: N, getCssSize: i, styles: b, open: o, nmorphInputDOMRef: D, closeHandler: C, toggleOpen: _, displayValue: A, clearHandler: H, updateSelectedDateHandler: I, showClearButton: w, get NmorphDropdown() {
71
78
  return M;
72
79
  }, get NmorphIcon() {
73
80
  return L;
74
81
  }, get NmorphIconCalendar() {
75
- return j;
76
- }, NmorphClearButton: w, NmorphDatePickerContent: B };
77
- return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
82
+ return z;
83
+ }, NmorphClearButton: P, NmorphDatePickerContent: V };
84
+ return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
78
85
  }
79
86
  });
80
87
  export {
81
- X as default
88
+ Z as default
82
89
  };
@@ -1 +1 @@
1
- .nmorph-number-input{display:inline-flex;flex-direction:column;align-items:flex-start}.nmorph-number-input .nmorph-number-input__content{display:flex;align-items:center;width:100%}.nmorph-number-input .nmorph-number-input__input-content{display:flex;width:100%;height:var(--height);height:100%;background:var(--nmorph-main-color);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)}.nmorph-number-input .nmorph-number-input__decrease .nmorph-button__content{border-top-right-radius:0;border-bottom-right-radius:0}.nmorph-number-input .nmorph-number-input__increase .nmorph-button__content{border-top-left-radius:0;border-bottom-left-radius:0}.nmorph-number-input input{width:auto;width:100%;padding:var(--indentation-00) var(--default-indentation-input);text-align:center;background:var(--nmorph-main-color);border:none;border-top:1px solid var(--nmorph-main-color);border-bottom:1px solid var(--nmorph-main-color);box-shadow:inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),inset calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color);transition:ease-in-out var(--transition-01) background;transition:background 0s;appearance:textfield}.nmorph-number-input input:focus{background:var(--nmorph-accent-color);outline:none}.nmorph-number-input input::-webkit-inner-spin-button,.nmorph-number-input input::-webkit-outer-spin-button{margin:0;appearance:none}.nmorph-number-input .nmorph-number-input__action-btns{display:flex;flex-direction:column}.nmorph-number-input.nmorph-number-input--disabled{cursor:not-allowed;opacity:.6}.nmorph-number-input.nmorph-number-input--disabled .nmorph-number-input__input-content{pointer-events:none}.nmorph-number-input.nmorph-number-input--action-btn-position-right input{border-top-left-radius:var(--default-border-radius);border-bottom-left-radius:var(--default-border-radius)}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__decrease,.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__increase{display:flex;justify-content:center;width:100%}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__decrease .nmorph-button__content{border-radius:0;border-top-right-radius:var(--default-border-radius)}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__increase .nmorph-button__content{border-radius:0;border-bottom-right-radius:var(--default-border-radius)}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-button{--height: var(--nmorph-number-input-right-action-height);width:100%}
1
+ .nmorph-number-input{display:inline-flex;flex-direction:column;align-items:flex-start}.nmorph-number-input .nmorph-number-input__content{display:flex;align-items:center;width:100%}.nmorph-number-input .nmorph-number-input__input-content{display:flex;width:100%;height:var(--height);height:100%;background:var(--nmorph-main-color);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)}.nmorph-number-input .nmorph-number-input__decrease .nmorph-button__content{border-top-right-radius:0;border-bottom-right-radius:0}.nmorph-number-input .nmorph-number-input__increase .nmorph-button__content{border-top-left-radius:0;border-bottom-left-radius:0}.nmorph-number-input input{width:auto;width:100%;padding:var(--indentation-00) var(--default-indentation-input);text-align:center;background:var(--nmorph-main-color);border:none;border-top:1px solid var(--nmorph-main-color);border-bottom:1px solid var(--nmorph-main-color);box-shadow:inset var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),inset calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color);transition:ease-in-out var(--transition-01) background;transition:background 0s;appearance:textfield}.nmorph-number-input input:focus{background:var(--nmorph-accent-color);outline:none}.nmorph-number-input input::-webkit-inner-spin-button,.nmorph-number-input input::-webkit-outer-spin-button{margin:0;appearance:none}.nmorph-number-input .nmorph-number-input__action-btns{display:flex;flex-direction:column}.nmorph-number-input.nmorph-number-input--disabled{cursor:not-allowed;opacity:.6}.nmorph-number-input.nmorph-number-input--disabled .nmorph-number-input__input-content{pointer-events:none}.nmorph-number-input.nmorph-number-input--action-btn-position-right input{border-top-left-radius:var(--default-border-radius);border-bottom-left-radius:var(--default-border-radius)}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__decrease,.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__increase{display:flex;justify-content:center;width:100%}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__increase .nmorph-button__content{border-radius:0;border-top-right-radius:var(--default-border-radius)}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-number-input__decrease .nmorph-button__content{border-radius:0;border-bottom-right-radius:var(--default-border-radius)}.nmorph-number-input.nmorph-number-input--action-btn-position-right .nmorph-button{--height: var(--nmorph-number-input-right-action-height);width:100%}
@@ -12,7 +12,7 @@ const _ = { class: "nmorph-number-input__content" }, s = { class: "nmorph-number
12
12
  }, B = {
13
13
  key: 2,
14
14
  class: "nmorph-number-input__action-btns"
15
- }, g = { class: "nmorph-number-input__decrease" }, u = { class: "nmorph-number-input__increase" };
15
+ }, g = { class: "nmorph-number-input__increase" }, u = { class: "nmorph-number-input__decrease" };
16
16
  function I(N, y, r, n, v, x) {
17
17
  return o(), a(
18
18
  "div",
@@ -63,8 +63,8 @@ function I(N, y, r, n, v, x) {
63
63
  e("div", g, [
64
64
  i(n.NmorphButton, {
65
65
  "style-type": "transparent",
66
- disabled: n.minBtnDisabled,
67
- onClick: n.decreaseHandler
66
+ disabled: n.maxBtnDisabled,
67
+ onClick: n.increaseHandler
68
68
  }, {
69
69
  default: t(() => [
70
70
  i(n.NmorphIcon, {
@@ -72,7 +72,7 @@ function I(N, y, r, n, v, x) {
72
72
  height: n.actionBtnIconSize
73
73
  }, {
74
74
  default: t(() => [
75
- i(n.NmorphIconMinusThin)
75
+ i(n.NmorphIconPlusThin)
76
76
  ]),
77
77
  _: 1
78
78
  /* STABLE */
@@ -85,8 +85,8 @@ function I(N, y, r, n, v, x) {
85
85
  e("div", u, [
86
86
  i(n.NmorphButton, {
87
87
  "style-type": "transparent",
88
- disabled: n.maxBtnDisabled,
89
- onClick: n.increaseHandler
88
+ disabled: n.minBtnDisabled,
89
+ onClick: n.decreaseHandler
90
90
  }, {
91
91
  default: t(() => [
92
92
  i(n.NmorphIcon, {
@@ -94,7 +94,7 @@ function I(N, y, r, n, v, x) {
94
94
  height: n.actionBtnIconSize
95
95
  }, {
96
96
  default: t(() => [
97
- i(n.NmorphIconPlusThin)
97
+ i(n.NmorphIconMinusThin)
98
98
  ]),
99
99
  _: 1
100
100
  /* STABLE */
@@ -1,23 +1,24 @@
1
1
  import './NmorphSelect.css';
2
2
  import w from "./NmorphSelect.vue2.js";
3
- import { openBlock as r, createElementBlock as n, normalizeClass as x, createElementVNode as t, withKeys as a, withModifiers as l, Fragment as d, renderList as c, toDisplayString as _, createBlock as i, mergeProps as h, createVNode as f, withCtx as m, normalizeStyle as s, renderSlot as b, createCommentVNode as k } from "vue";
3
+ import { openBlock as r, createElementBlock as l, normalizeStyle as c, normalizeClass as x, createElementVNode as t, withKeys as a, withModifiers as n, Fragment as d, renderList as h, toDisplayString as _, createBlock as i, mergeProps as m, createVNode as f, withCtx as s, renderSlot as b, createCommentVNode as k } from "vue";
4
4
  /* empty css */
5
5
  import H from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const N = { class: "nmorph-select__content" }, S = ["id", "name", "autocomplete", "tabindex", "disabled", "aria-expanded", "aria-controls", "aria-activedescendant", "onKeydown"], u = ["value"], I = {
6
+ const N = { class: "nmorph-select__content" }, S = ["id", "name", "autocomplete", "tabindex", "disabled", "aria-expanded", "aria-controls", "aria-activedescendant", "onKeydown"], I = ["value"], O = {
7
7
  key: 0,
8
8
  class: "nmorph-select__selected-value"
9
- }, O = {
9
+ }, u = {
10
10
  key: 1,
11
11
  class: "nmorph-select__selected-value"
12
12
  }, C = {
13
13
  key: 2,
14
14
  class: "nmorph-select__selected-value"
15
15
  }, D = ["id"];
16
- function E(p, v, y, e, M, R) {
17
- return r(), n(
16
+ function E(y, v, p, e, M, R) {
17
+ return r(), l(
18
18
  "div",
19
19
  {
20
- class: x(e.modifiers)
20
+ class: x(e.modifiers),
21
+ style: c(e.styles)
21
22
  },
22
23
  [
23
24
  t("div", N, [
@@ -34,22 +35,22 @@ function E(p, v, y, e, M, R) {
34
35
  onFocus: e.focusHandler,
35
36
  onBlur: e.blurHandler,
36
37
  onKeydown: [
37
- a(l(e.spaceHandler, ["prevent"]), ["space"]),
38
- a(l(e.arrowDownHandler, ["prevent"]), ["arrow-down"]),
39
- a(l(e.arrowUpHandler, ["prevent"]), ["arrow-up"]),
40
- a(l(e.enterHandler, ["prevent"]), ["enter"]),
41
- a(l(e.escapeHandler, ["prevent"]), ["escape"]),
42
- a(l(e.homeHandler, ["prevent"]), ["home"]),
43
- a(l(e.endHandler, ["prevent"]), ["end"])
38
+ a(n(e.spaceHandler, ["prevent"]), ["space"]),
39
+ a(n(e.arrowDownHandler, ["prevent"]), ["arrow-down"]),
40
+ a(n(e.arrowUpHandler, ["prevent"]), ["arrow-up"]),
41
+ a(n(e.enterHandler, ["prevent"]), ["enter"]),
42
+ a(n(e.escapeHandler, ["prevent"]), ["escape"]),
43
+ a(n(e.homeHandler, ["prevent"]), ["home"]),
44
+ a(n(e.endHandler, ["prevent"]), ["end"])
44
45
  ]
45
46
  }, [
46
- (r(!0), n(
47
+ (r(!0), l(
47
48
  d,
48
49
  null,
49
- c(e.nativeOptions, (o) => (r(), n("option", {
50
+ h(e.nativeOptions, (o) => (r(), l("option", {
50
51
  key: o,
51
52
  value: o
52
- }, null, 8, u))),
53
+ }, null, 8, I))),
53
54
  128
54
55
  /* KEYED_FRAGMENT */
55
56
  ))
@@ -60,26 +61,26 @@ function E(p, v, y, e, M, R) {
60
61
  ref: "nmorphSelectDOMRef",
61
62
  class: "nmorph-select__selected-values-line",
62
63
  "aria-hidden": "true",
63
- onClick: l(e.clickHandler, ["stop"])
64
+ onClick: n(e.clickHandler, ["stop"])
64
65
  },
65
66
  [
66
- typeof e.initialValue == "string" ? (r(), n(
67
+ typeof e.initialValue == "string" ? (r(), l(
67
68
  "div",
68
- I,
69
+ O,
69
70
  _(e.selectedValueTitle),
70
71
  1
71
72
  /* TEXT */
72
- )) : e.initialValue.length === 0 ? (r(), n(
73
+ )) : e.initialValue.length === 0 ? (r(), l(
73
74
  "div",
74
- O,
75
+ u,
75
76
  _(e.computedNoElementPlaceholder),
76
77
  1
77
78
  /* TEXT */
78
- )) : (r(), n("div", C, [
79
- (r(!0), n(
79
+ )) : (r(), l("div", C, [
80
+ (r(!0), l(
80
81
  d,
81
82
  null,
82
- c(e.tags, (o) => (r(), i(e.NmorphTagItem, h({
83
+ h(e.tags, (o) => (r(), i(e.NmorphTagItem, m({
83
84
  key: o.value
84
85
  }, { ref_for: !0 }, o, {
85
86
  transparent: "",
@@ -92,7 +93,7 @@ function E(p, v, y, e, M, R) {
92
93
  ))
93
94
  ])),
94
95
  f(e.NmorphIcon, { class: "nmorph-select__chevron" }, {
95
- default: m(() => [
96
+ default: s(() => [
96
97
  e.props.loading ? (r(), i(e.NmorphIconLoader, { key: 0 })) : (r(), i(e.NmorphIconChevronDown, { key: 1 }))
97
98
  ]),
98
99
  _: 1
@@ -116,7 +117,7 @@ function E(p, v, y, e, M, R) {
116
117
  onOnOutsideClick: e.closeHandler,
117
118
  onOnEscapeKeydown: e.escapeHandler
118
119
  }, {
119
- default: m(() => [
120
+ default: s(() => [
120
121
  t("div", {
121
122
  id: e.listboxId,
122
123
  ref: "optionsDOMRef",
@@ -128,18 +129,18 @@ function E(p, v, y, e, M, R) {
128
129
  class: "nmorph-select__chevron",
129
130
  size: "medium"
130
131
  }, {
131
- default: m(() => [
132
+ default: s(() => [
132
133
  f(e.NmorphIconChevronDown)
133
134
  ]),
134
135
  _: 1
135
136
  /* STABLE */
136
- })) : e.virtualEnabled ? (r(), n(
137
+ })) : e.virtualEnabled ? (r(), l(
137
138
  "div",
138
139
  {
139
140
  key: 1,
140
141
  ref: e.virtualList.containerRef,
141
142
  class: "nmorph-select__virtual-list",
142
- style: s({ maxHeight: e.virtualMaxHeight }),
143
+ style: c({ maxHeight: e.virtualMaxHeight }),
143
144
  onScroll: v[0] || (v[0] = (...o) => e.virtualList.scrollHandler && e.virtualList.scrollHandler(...o))
144
145
  },
145
146
  [
@@ -147,20 +148,20 @@ function E(p, v, y, e, M, R) {
147
148
  "div",
148
149
  {
149
150
  class: "nmorph-select__virtual-spacer",
150
- style: s(e.virtualSpacerStyle)
151
+ style: c(e.virtualSpacerStyle)
151
152
  },
152
153
  [
153
154
  t(
154
155
  "div",
155
156
  {
156
157
  class: "nmorph-select__virtual-content",
157
- style: s(e.virtualContentStyle)
158
+ style: c(e.virtualContentStyle)
158
159
  },
159
160
  [
160
- (r(!0), n(
161
+ (r(!0), l(
161
162
  d,
162
163
  null,
163
- c(e.virtualOptions, (o) => (r(), i(e.NmorphSelectOption, h({
164
+ h(e.virtualOptions, (o) => (r(), i(e.NmorphSelectOption, m({
164
165
  id: e.getOptionId(o.item.value),
165
166
  ref_for: !0,
166
167
  ref: (g) => e.setVirtualOptionRef(g, o.index),
@@ -183,14 +184,14 @@ function E(p, v, y, e, M, R) {
183
184
  ],
184
185
  36
185
186
  /* STYLE, NEED_HYDRATION */
186
- )) : (r(), n(
187
+ )) : (r(), l(
187
188
  d,
188
189
  { key: 2 },
189
190
  [
190
- (r(!0), n(
191
+ (r(!0), l(
191
192
  d,
192
193
  null,
193
- c(y.options, (o) => (r(), i(e.NmorphSelectOption, h({
194
+ h(p.options, (o) => (r(), i(e.NmorphSelectOption, m({
194
195
  id: e.getOptionId(o.value),
195
196
  key: o.value
196
197
  }, { ref_for: !0 }, o, {
@@ -200,7 +201,7 @@ function E(p, v, y, e, M, R) {
200
201
  128
201
202
  /* KEYED_FRAGMENT */
202
203
  )),
203
- b(p.$slots, "default")
204
+ b(y.$slots, "default")
204
205
  ],
205
206
  64
206
207
  /* STABLE_FRAGMENT */
@@ -211,8 +212,8 @@ function E(p, v, y, e, M, R) {
211
212
  /* FORWARDED */
212
213
  }, 8, ["open", "relative-element", "fill-width", "width", "min-width", "z-index", "aria-label"])) : k("v-if", !0)
213
214
  ],
214
- 2
215
- /* CLASS */
215
+ 6
216
+ /* CLASS, STYLE */
216
217
  );
217
218
  }
218
219
  const B = /* @__PURE__ */ H(w, [["render", E], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-select/NmorphSelect.vue"]]);