@nmorph/nmorph-ui-kit 2.2.34 → 2.2.36

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 (124) hide show
  1. package/dist/assets/icons/baseball.svg.js +28 -0
  2. package/dist/assets/icons/basketball.svg.js +21 -0
  3. package/dist/assets/icons/bowl.svg.js +21 -0
  4. package/dist/assets/icons/box.svg.js +35 -0
  5. package/dist/assets/icons/briefcase.svg.js +21 -0
  6. package/dist/assets/icons/brush-filled.svg.js +21 -0
  7. package/dist/assets/icons/brush.svg.js +21 -0
  8. package/dist/assets/icons/camera-filled.svg.js +21 -0
  9. package/dist/assets/icons/chevron-double-left.svg.js +28 -0
  10. package/dist/assets/icons/chevron-double-right.svg.js +28 -0
  11. package/dist/assets/icons/chevron-double-up.svg.js +28 -0
  12. package/dist/assets/icons/chevron-left.svg.js +21 -0
  13. package/dist/assets/icons/chevron-right.svg.js +21 -0
  14. package/dist/assets/icons/chevron-up.svg.js +21 -0
  15. package/dist/assets/icons/chicken.svg.js +21 -0
  16. package/dist/assets/icons/clipboard-check.svg.js +25 -0
  17. package/dist/assets/icons/clipboard.svg.js +25 -0
  18. package/dist/assets/icons/close-bold.svg.js +21 -0
  19. package/dist/assets/icons/cold-drink.svg.js +21 -0
  20. package/dist/assets/icons/comment.svg.js +21 -0
  21. package/dist/assets/icons/database.svg.js +25 -0
  22. package/dist/assets/icons/drag-handle.svg.js +21 -0
  23. package/dist/assets/icons/external-link.svg.js +28 -0
  24. package/dist/assets/icons/filter-off.svg.js +28 -0
  25. package/dist/assets/icons/fingerprint.svg.js +44 -0
  26. package/dist/assets/icons/folder-remove.svg.js +21 -0
  27. package/dist/assets/icons/goblet.svg.js +21 -0
  28. package/dist/assets/icons/ice-tea.svg.js +21 -0
  29. package/dist/assets/icons/inbox.svg.js +25 -0
  30. package/dist/assets/icons/mail.svg.js +25 -0
  31. package/dist/assets/icons/odometer.svg.js +35 -0
  32. package/dist/assets/icons/open.svg.js +28 -0
  33. package/dist/assets/icons/pagination.svg.js +8 -0
  34. package/dist/assets/icons/pin.svg.js +21 -0
  35. package/dist/assets/icons/redo.svg.js +21 -0
  36. package/dist/assets/icons/save.svg.js +25 -0
  37. package/dist/assets/icons/server.svg.js +32 -0
  38. package/dist/assets/icons/shield-check.svg.js +25 -0
  39. package/dist/assets/icons/shield.svg.js +25 -0
  40. package/dist/assets/icons/sliders.svg.js +31 -0
  41. package/dist/assets/icons/stopwatch.svg.js +28 -0
  42. package/dist/assets/icons/suitcase-line.svg.js +22 -0
  43. package/dist/assets/icons/undo.svg.js +21 -0
  44. package/dist/assets/icons/video-camera.svg.js +21 -0
  45. package/dist/components/basic/nmorph-button/NmorphButton.vue.js +10 -10
  46. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +5 -5
  47. package/dist/components/basic/nmorph-icon/NmorphIcons.js +617 -527
  48. package/dist/components/basic/nmorph-layout/NmorphLayout.css +1 -0
  49. package/dist/components/basic/nmorph-layout/NmorphLayout.vue.js +50 -0
  50. package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +28 -0
  51. package/dist/components/basic/nmorph-space/NmorphSpace.css +1 -0
  52. package/dist/components/basic/nmorph-space/NmorphSpace.vue.js +21 -0
  53. package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +45 -0
  54. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +15 -15
  55. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +1 -1
  56. package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
  57. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +31 -31
  58. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +36 -38
  59. package/dist/components/data/nmorph-qr-code/NmorphQRCode.css +1 -0
  60. package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue.js +59 -0
  61. package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +50 -0
  62. package/dist/components/data/nmorph-qr-code/qr-code.js +568 -0
  63. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.css +1 -0
  64. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue.js +86 -0
  65. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +60 -0
  66. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.css +1 -0
  67. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +81 -0
  68. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +47 -0
  69. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
  70. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +30 -27
  71. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +75 -63
  72. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js +13 -13
  73. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue2.js +28 -27
  74. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +16 -16
  75. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +20 -17
  76. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +34 -30
  77. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +94 -62
  78. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +21 -21
  79. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +92 -84
  80. package/dist/components/form/nmorph-select/NmorphSelect.vue.js +5 -5
  81. package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +53 -53
  82. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +24 -21
  83. package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +1 -1
  84. package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +16 -16
  85. package/dist/components/form/nmorph-textarea/NmorphTextarea.css +1 -0
  86. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +41 -0
  87. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +67 -0
  88. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
  89. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +40 -31
  90. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +45 -41
  91. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +20 -25
  92. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +41 -27
  93. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +11 -10
  94. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +10 -9
  95. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
  96. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +13 -12
  97. package/dist/hooks/use-common-styles.js +2 -1
  98. package/dist/icons.js +621 -531
  99. package/dist/index.es.js +781 -677
  100. package/dist/index.umd.js +31 -30
  101. package/dist/package.json.js +1 -1
  102. package/dist/src/components/basic/index.d.ts +2 -0
  103. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +49 -3
  104. package/dist/src/components/basic/nmorph-layout/NmorphLayout.vue.d.ts +22 -0
  105. package/dist/src/components/basic/nmorph-space/NmorphSpace.vue.d.ts +33 -0
  106. package/dist/src/components/data/index.d.ts +4 -0
  107. package/dist/src/components/data/nmorph-qr-code/NmorphQRCode.vue.d.ts +34 -0
  108. package/dist/src/components/data/nmorph-qr-code/qr-code.d.ts +12 -0
  109. package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +46 -0
  110. package/dist/src/components/data/nmorph-virtual-list/types.d.ts +4 -0
  111. package/dist/src/components/feedback/index.d.ts +1 -0
  112. package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +40 -0
  113. package/dist/src/components/form/index.d.ts +1 -0
  114. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +1 -1
  115. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +2 -2
  116. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +2 -2
  117. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +1 -1
  118. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +0 -1
  119. package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +48 -0
  120. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -1
  121. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +3 -1
  122. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +3 -1
  123. package/dist/style.css +1 -1
  124. package/package.json +1 -1
@@ -0,0 +1,41 @@
1
+ import './NmorphTextarea.css';
2
+ import a from "./NmorphTextarea.vue2.js";
3
+ import { openBlock as n, createElementBlock as t, normalizeStyle as l, normalizeClass as d, createElementVNode as i, mergeProps as m, withKeys as s } from "vue";
4
+ /* empty css */
5
+ import p from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const c = ["id", "name", "autocomplete", "tabindex", "placeholder", "disabled", "value", "rows"];
7
+ function f(x, o, h, e, b, y) {
8
+ return n(), t(
9
+ "div",
10
+ {
11
+ class: d(e.modifiers),
12
+ style: l(e.styles)
13
+ },
14
+ [
15
+ i("textarea", m({
16
+ id: e.id,
17
+ ref: "textareaDOMRef",
18
+ name: e.name,
19
+ autocomplete: e.autocomplete,
20
+ tabindex: e.tabindex,
21
+ class: "nmorph-native-input",
22
+ placeholder: e.props.placeholder,
23
+ disabled: e.props.disabled,
24
+ value: e.props.modelValue,
25
+ rows: e.rows
26
+ }, e.props.textareaAttrs, {
27
+ onInput: e.handleInput,
28
+ onFocus: e.handleFocus,
29
+ onBlur: e.handleBlur,
30
+ onKeydown: o[0] || (o[0] = (r) => e.emit("keydown", r)),
31
+ onKeyup: o[1] || (o[1] = s((r) => e.emit("on-enter"), ["enter"]))
32
+ }), null, 16, c)
33
+ ],
34
+ 6
35
+ /* CLASS, STYLE */
36
+ );
37
+ }
38
+ const k = /* @__PURE__ */ p(a, [["render", f], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-textarea/NmorphTextarea.vue"]]);
39
+ export {
40
+ k as default
41
+ };
@@ -0,0 +1,67 @@
1
+ import './NmorphTextarea.css';
2
+ import { defineComponent as F, ref as h, computed as l, watch as B, onMounted as I, nextTick as T } from "vue";
3
+ import { NmorphComponentHeight as $ } from "../../../types/index.js";
4
+ import { useModifiers as O } from "../../../utils/create-modifiers.js";
5
+ import { useFormItemInput as V } from "../nmorph-form/use-form-item-input.js";
6
+ const D = /* @__PURE__ */ F({
7
+ __name: "NmorphTextarea",
8
+ props: {
9
+ placeholder: { type: String, required: !1, default: "" },
10
+ modelValue: { type: String, required: !1, default: "" },
11
+ rows: { type: Number, required: !1, default: 3 },
12
+ minRows: { type: Number, required: !1, default: 2 },
13
+ maxRows: { type: Number, required: !1, default: void 0 },
14
+ resize: { type: String, required: !1, default: "vertical" },
15
+ autoSize: { type: Boolean, required: !1, default: !1 },
16
+ indentation: { type: String, required: !1, default: "12px" },
17
+ textareaAttrs: { type: Object, required: !1, default: () => ({}) },
18
+ id: { type: String, required: !1 },
19
+ name: { type: String, required: !1 },
20
+ autocomplete: { type: String, required: !1 },
21
+ height: { type: null, required: !1, default: "basic" },
22
+ disabled: { type: Boolean, required: !1, default: !1 },
23
+ tabindex: { type: Number, required: !1 }
24
+ },
25
+ emits: ["update:model-value", "focus", "blur", "on-enter", "keydown"],
26
+ setup(y, { expose: g, emit: x }) {
27
+ const e = y, n = x, { id: b, name: w, autocomplete: q, tabindex: v } = V(e), a = h(null), s = h(!1), S = l(
28
+ () => O({
29
+ nmorph: [$[e.height], `${s.value && "focused"}`],
30
+ "nmorph-textarea": [`${e.disabled && "disabled"}`, `${e.autoSize && "auto-size"}`]
31
+ })
32
+ ), i = (t) => {
33
+ const o = window.getComputedStyle(t);
34
+ return parseFloat(o.paddingTop) + parseFloat(o.paddingBottom);
35
+ }, r = async () => {
36
+ if (!e.autoSize) return;
37
+ await T();
38
+ const t = a.value;
39
+ if (!t) return;
40
+ t.style.height = "auto";
41
+ const o = window.getComputedStyle(t), N = parseFloat(o.lineHeight) || 20, c = e.maxRows ? e.maxRows * N + i(t) : 1 / 0, C = Math.min(t.scrollHeight, c);
42
+ t.style.height = `${C}px`, t.style.overflowY = t.scrollHeight > c ? "auto" : "hidden";
43
+ }, _ = (t) => {
44
+ const o = t.target;
45
+ n("update:model-value", o.value), r();
46
+ }, z = () => {
47
+ n("focus"), s.value = !0;
48
+ }, H = () => {
49
+ n("blur"), s.value = !1;
50
+ }, u = () => {
51
+ a.value?.focus();
52
+ }, d = () => {
53
+ a.value?.blur();
54
+ }, p = () => {
55
+ a.value?.select();
56
+ };
57
+ B(() => e.modelValue, r), I(r), g({ textareaDOMRef: a, focus: u, blur: d, select: p, resizeToContent: r });
58
+ const f = l(() => Math.max(e.minRows, 1)), R = l(() => Math.max(e.rows, f.value)), M = l(() => ({
59
+ "--nmorph-textarea-resize": e.autoSize ? "none" : e.resize,
60
+ "--nmorph-textarea-indentation": e.indentation
61
+ })), m = { props: e, emit: n, id: b, name: w, autocomplete: q, tabindex: v, textareaDOMRef: a, focused: s, modifiers: S, getVerticalPadding: i, resizeToContent: r, handleInput: _, handleFocus: z, handleBlur: H, focus: u, blur: d, select: p, minRows: f, rows: R, styles: M };
62
+ return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
63
+ }
64
+ });
65
+ export {
66
+ D as default
67
+ };
@@ -1 +1 @@
1
- .nmorph-time-picker{--width: 160px;position:relative;width:var(--width);height:var(--height)}.nmorph-time-picker .nmorph-time-picker__input{display:flex;align-items:center;height:100%;padding:0 var(--default-indentation-input);overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);cursor:pointer}.nmorph-time-picker .nmorph-time-picker__native{position:absolute;width:0;height:0;padding:0;border:0;opacity:0;pointer-events:none}.nmorph-time-picker .nmorph-time-picker__clock-icon{flex:0 0 auto;margin-right:6px}.nmorph-time-picker .nmorph-time-picker__selected-value{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-time-picker .nmorph-time-picker__clear{display:inline-flex;flex:0 0 auto;justify-content:center;align-items:center;width:18px;height:18px;padding:0;color:var(--nmorph-text-color);background:transparent;border:0;cursor:pointer}.nmorph-time-picker .nmorph-time-picker__panel{display:grid;grid-template-columns:minmax(48px,1fr) auto minmax(48px,1fr);gap:4px;padding:8px}.nmorph-time-picker .nmorph-time-picker__panel--with-seconds{grid-template-columns:minmax(48px,1fr) auto minmax(48px,1fr) auto minmax(48px,1fr)}.nmorph-time-picker .nmorph-time-picker__column{display:grid;max-height:220px;overflow-y:auto}.nmorph-time-picker .nmorph-time-picker__separator{display:flex;justify-content:center;align-items:center;color:var(--nmorph-semi-contrast-text-color);font-weight:700}.nmorph-time-picker .nmorph-time-picker__option{min-height:28px;padding:0 8px;color:var(--nmorph-text-color);background:transparent;border:0;border-radius:4px;cursor:pointer}.nmorph-time-picker .nmorph-time-picker__option:hover,.nmorph-time-picker .nmorph-time-picker__option--active{color:var(--nmorph-focus-text-color);background:var(--nmorph-accent-color)}.nmorph-time-picker .nmorph-time-picker__option:disabled{cursor:not-allowed;opacity:.35}.nmorph-time-picker.nmorph-time-picker--open .nmorph-time-picker__input{box-shadow:var(--nmorph-shadow-inset)}.nmorph-time-picker.nmorph-time-picker--focus{outline:2px solid var(--nmorph-accent-color)}.nmorph-time-picker.nmorph-time-picker--placeholder .nmorph-time-picker__selected-value{color:var(--nmorph-placeholder-text-color)}.nmorph-time-picker.nmorph-time-picker--disabled{cursor:not-allowed;opacity:.6}.nmorph-time-picker.nmorph-time-picker--disabled .nmorph-time-picker__input{pointer-events:none}
1
+ .nmorph-time-picker{--width: 160px;position:relative;width:var(--width);height:var(--height)}.nmorph-time-picker .nmorph-time-picker__input{display:flex;align-items:center;height:100%;padding:0 var(--default-indentation-input);overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset);cursor:pointer}.nmorph-time-picker .nmorph-time-picker__native{position:absolute;width:0;height:0;padding:0;border:0;opacity:0;pointer-events:none}.nmorph-time-picker .nmorph-time-picker__clock-icon{flex:0 0 auto;margin-right:6px}.nmorph-time-picker .nmorph-time-picker__selected-value{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-time-picker .nmorph-time-picker__clear{display:inline-flex;flex:0 0 auto;justify-content:center;align-items:center;width:18px;height:18px;padding:0;color:var(--nmorph-text-color);background:transparent;border:0;cursor:pointer}.nmorph-time-picker .nmorph-time-picker__panel{display:grid;grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr);gap:6px;align-items:start;padding:8px;color:var(--nmorph-text-color)}.nmorph-time-picker .nmorph-time-picker__panel--with-seconds{grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr) 8px minmax(0,1fr)}.nmorph-time-picker .nmorph-time-picker__column{display:grid;grid-auto-flow:row;grid-auto-rows:var(--height);grid-template-columns:minmax(0,1fr);gap:4px;align-content:start;max-height:220px;padding:2px;overflow:hidden auto;scrollbar-gutter:stable}.nmorph-time-picker .nmorph-time-picker__separator{display:flex;justify-content:center;align-items:flex-start;min-width:8px;padding-top:calc((var(--height) - 1em) / 2 + 2px);color:var(--nmorph-semi-contrast-text-color);font-weight:700;line-height:1}.nmorph-time-picker .nmorph-time-picker__option{display:flex;justify-content:center;align-items:center;width:100%;min-width:0;min-height:var(--height);margin:0;padding:0 8px;color:var(--nmorph-text-color);font:inherit;line-height:1;background:transparent;border:0;border-radius:4px;box-shadow:none;cursor:pointer;appearance:none}.nmorph-time-picker .nmorph-time-picker__option:hover:not(:disabled),.nmorph-time-picker .nmorph-time-picker__option--active{color:var(--nmorph-focus-text-color);background:var(--nmorph-accent-color)}.nmorph-time-picker .nmorph-time-picker__option:focus-visible{outline:2px solid var(--nmorph-accent-color);outline-offset:1px}.nmorph-time-picker .nmorph-time-picker__option:disabled{cursor:not-allowed;opacity:.35}.nmorph-time-picker.nmorph-time-picker--open .nmorph-time-picker__input{box-shadow:var(--nmorph-shadow-inset)}.nmorph-time-picker.nmorph-time-picker--focus{outline:2px solid var(--nmorph-accent-color)}.nmorph-time-picker.nmorph-time-picker--placeholder .nmorph-time-picker__selected-value{color:var(--nmorph-placeholder-text-color)}.nmorph-time-picker.nmorph-time-picker--disabled{cursor:not-allowed;opacity:.6}.nmorph-time-picker.nmorph-time-picker--disabled .nmorph-time-picker__input{pointer-events:none}
@@ -1,30 +1,30 @@
1
1
  import './NmorphTimePicker.css';
2
2
  import b from "./NmorphTimePicker.vue2.js";
3
- import { openBlock as i, createElementBlock as n, normalizeStyle as v, normalizeClass as r, createElementVNode as l, withKeys as m, withModifiers as t, createVNode as c, withCtx as p, toDisplayString as d, createCommentVNode as _, createBlock as u, Fragment as s, renderList as h } from "vue";
3
+ import { openBlock as i, createElementBlock as n, normalizeStyle as v, normalizeClass as l, createElementVNode as r, withKeys as m, withModifiers as t, createVNode as d, withCtx as p, toDisplayString as c, createCommentVNode as _, createBlock as f, Fragment as s, renderList as h } from "vue";
4
4
  /* empty css */
5
- import f from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const y = ["aria-expanded", "aria-controls", "tabindex", "onKeydown"], w = ["id", "name", "autocomplete", "step", "value", "disabled"], x = { class: "nmorph-time-picker__selected-value" }, C = ["id"], O = {
5
+ import u from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const y = ["aria-expanded", "aria-controls", "tabindex", "onKeydown"], w = ["id", "name", "autocomplete", "step", "value", "disabled"], x = { class: "nmorph-time-picker__selected-value" }, C = ["id"], g = {
7
7
  class: "nmorph-time-picker__column",
8
8
  role: "listbox",
9
9
  "aria-label": "Hours"
10
- }, N = ["disabled", "onClick"], g = {
10
+ }, O = ["disabled", "onClick"], H = {
11
11
  class: "nmorph-time-picker__column",
12
12
  role: "listbox",
13
13
  "aria-label": "Minutes"
14
- }, H = ["disabled", "onClick"], V = {
14
+ }, N = ["disabled", "onClick"], M = {
15
15
  class: "nmorph-time-picker__column",
16
16
  role: "listbox",
17
17
  "aria-label": "Seconds"
18
- }, I = ["disabled", "onClick"];
19
- function S(z, a, B, e, D, M) {
18
+ }, V = ["disabled", "onClick"];
19
+ function I(S, a, z, e, B, D) {
20
20
  return i(), n(
21
21
  "div",
22
22
  {
23
- class: r(e.modifiers),
23
+ class: l(e.modifiers),
24
24
  style: v(e.styles)
25
25
  },
26
26
  [
27
- l("div", {
27
+ r("div", {
28
28
  ref: "inputDOMRef",
29
29
  class: "nmorph-time-picker__input",
30
30
  role: "combobox",
@@ -40,7 +40,7 @@ function S(z, a, B, e, D, M) {
40
40
  m(t(e.closeHandler, ["prevent"]), ["escape"])
41
41
  ]
42
42
  }, [
43
- l("input", {
43
+ r("input", {
44
44
  id: e.id,
45
45
  class: "nmorph-time-picker__native",
46
46
  name: e.name,
@@ -51,17 +51,17 @@ function S(z, a, B, e, D, M) {
51
51
  disabled: e.props.disabled,
52
52
  onInput: e.nativeInputHandler
53
53
  }, null, 40, w),
54
- c(e.NmorphIcon, { class: "nmorph-time-picker__clock-icon" }, {
54
+ d(e.NmorphIcon, { class: "nmorph-time-picker__clock-icon" }, {
55
55
  default: p(() => [
56
- c(e.NmorphIconClock)
56
+ d(e.NmorphIconClock)
57
57
  ]),
58
58
  _: 1
59
59
  /* STABLE */
60
60
  }),
61
- l(
61
+ r(
62
62
  "div",
63
63
  x,
64
- d(e.displayValue),
64
+ c(e.displayValue),
65
65
  1
66
66
  /* TEXT */
67
67
  ),
@@ -72,19 +72,19 @@ function S(z, a, B, e, D, M) {
72
72
  "aria-label": "Clear time",
73
73
  onClick: t(e.clearHandler, ["stop"])
74
74
  }, [
75
- c(e.NmorphIcon, {
75
+ d(e.NmorphIcon, {
76
76
  width: "14px",
77
77
  height: "14px"
78
78
  }, {
79
79
  default: p(() => [
80
- c(e.NmorphIconCircleClose)
80
+ d(e.NmorphIconCircleClose)
81
81
  ]),
82
82
  _: 1
83
83
  /* STABLE */
84
84
  })
85
85
  ])) : _("v-if", !0)
86
86
  ], 40, y),
87
- e.inputDOMRef && !e.props.disabled ? (i(), u(e.NmorphDropdown, {
87
+ e.inputDOMRef && !e.props.disabled ? (i(), f(e.NmorphDropdown, {
88
88
  key: 0,
89
89
  open: e.open,
90
90
  "relative-element": e.inputDOMRef,
@@ -96,43 +96,49 @@ function S(z, a, B, e, D, M) {
96
96
  onOnEscapeKeydown: e.closeHandler
97
97
  }, {
98
98
  default: p(() => [
99
- l("div", {
99
+ r("div", {
100
100
  id: `${e.id}-dropdown`,
101
- class: r(["nmorph-time-picker__panel", { "nmorph-time-picker__panel--with-seconds": e.props.showSeconds }])
101
+ class: l(["nmorph-time-picker__panel", { "nmorph-time-picker__panel--with-seconds": e.props.showSeconds }])
102
102
  }, [
103
- l("div", O, [
103
+ r("div", g, [
104
104
  (i(!0), n(
105
105
  s,
106
106
  null,
107
107
  h(e.hourOptions, (o) => (i(), n("button", {
108
108
  key: o.value,
109
109
  type: "button",
110
- class: r(["nmorph-time-picker__option", { "nmorph-time-picker__option--active": o.value === e.pickerValue.hour }]),
110
+ class: l(["nmorph-time-picker__option", [
111
+ e.optionHeightModifiers,
112
+ { "nmorph-time-picker__option--active": o.value === e.pickerValue.hour }
113
+ ]]),
111
114
  disabled: o.disabled,
112
115
  onClick: (k) => e.selectUnit("hour", o.value)
113
- }, d(o.label), 11, N))),
116
+ }, c(o.label), 11, O))),
114
117
  128
115
118
  /* KEYED_FRAGMENT */
116
119
  ))
117
120
  ]),
118
- a[1] || (a[1] = l(
121
+ a[1] || (a[1] = r(
119
122
  "div",
120
123
  { class: "nmorph-time-picker__separator" },
121
124
  ":",
122
125
  -1
123
126
  /* CACHED */
124
127
  )),
125
- l("div", g, [
128
+ r("div", H, [
126
129
  (i(!0), n(
127
130
  s,
128
131
  null,
129
132
  h(e.minuteOptions, (o) => (i(), n("button", {
130
133
  key: o.value,
131
134
  type: "button",
132
- class: r(["nmorph-time-picker__option", { "nmorph-time-picker__option--active": o.value === e.pickerValue.minute }]),
135
+ class: l(["nmorph-time-picker__option", [
136
+ e.optionHeightModifiers,
137
+ { "nmorph-time-picker__option--active": o.value === e.pickerValue.minute }
138
+ ]]),
133
139
  disabled: o.disabled,
134
140
  onClick: (k) => e.selectUnit("minute", o.value)
135
- }, d(o.label), 11, H))),
141
+ }, c(o.label), 11, N))),
136
142
  128
137
143
  /* KEYED_FRAGMENT */
138
144
  ))
@@ -141,24 +147,27 @@ function S(z, a, B, e, D, M) {
141
147
  s,
142
148
  { key: 0 },
143
149
  [
144
- a[0] || (a[0] = l(
150
+ a[0] || (a[0] = r(
145
151
  "div",
146
152
  { class: "nmorph-time-picker__separator" },
147
153
  ":",
148
154
  -1
149
155
  /* CACHED */
150
156
  )),
151
- l("div", V, [
157
+ r("div", M, [
152
158
  (i(!0), n(
153
159
  s,
154
160
  null,
155
161
  h(e.secondOptions, (o) => (i(), n("button", {
156
162
  key: o.value,
157
163
  type: "button",
158
- class: r(["nmorph-time-picker__option", { "nmorph-time-picker__option--active": o.value === e.pickerValue.second }]),
164
+ class: l(["nmorph-time-picker__option", [
165
+ e.optionHeightModifiers,
166
+ { "nmorph-time-picker__option--active": o.value === e.pickerValue.second }
167
+ ]]),
159
168
  disabled: o.disabled,
160
169
  onClick: (k) => e.selectUnit("second", o.value)
161
- }, d(o.label), 11, I))),
170
+ }, c(o.label), 11, V))),
162
171
  128
163
172
  /* KEYED_FRAGMENT */
164
173
  ))
@@ -177,7 +186,7 @@ function S(z, a, B, e, D, M) {
177
186
  /* CLASS, STYLE */
178
187
  );
179
188
  }
180
- const F = /* @__PURE__ */ f(b, [["render", S], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-time-picker/NmorphTimePicker.vue"]]);
189
+ const F = /* @__PURE__ */ u(b, [["render", I], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-time-picker/NmorphTimePicker.vue"]]);
181
190
  export {
182
191
  F as default
183
192
  };
@@ -1,14 +1,14 @@
1
1
  import './NmorphTimePicker.css';
2
- import { defineComponent as X, ref as v, computed as l, watch as Y } from "vue";
3
- import { NmorphComponentHeight as Z } from "../../../types/index.js";
4
- import { useI18n as ee } from "vue-i18n";
5
- import { useModifiers as te } from "../../../utils/create-modifiers.js";
6
- import { useFormItemInput as oe } from "../nmorph-form/use-form-item-input.js";
7
- import re from "../../../assets/icons/clock.svg.js";
8
- import ne from "../../../assets/icons/circle-close.svg.js";
9
- import le from "../../basic/nmorph-icon/NmorphIcon.vue.js";
10
- import ue from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
11
- const be = /* @__PURE__ */ X({
2
+ import { defineComponent as ee, ref as g, computed as n, watch as te } from "vue";
3
+ import { NmorphComponentHeight as _ } from "../../../types/index.js";
4
+ import { useI18n as oe } from "vue-i18n";
5
+ import { useModifiers as $ } from "../../../utils/create-modifiers.js";
6
+ import { useFormItemInput as re } from "../nmorph-form/use-form-item-input.js";
7
+ import ne from "../../../assets/icons/clock.svg.js";
8
+ import le from "../../../assets/icons/circle-close.svg.js";
9
+ import ue from "../../basic/nmorph-icon/NmorphIcon.vue.js";
10
+ import se from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
11
+ const Se = /* @__PURE__ */ ee({
12
12
  __name: "NmorphTimePicker",
13
13
  props: {
14
14
  modelValue: { type: [String, null], required: !1, default: null },
@@ -30,18 +30,18 @@ const be = /* @__PURE__ */ X({
30
30
  tabindex: { type: Number, required: !1 }
31
31
  },
32
32
  emits: ["update:model-value", "focus", "blur"],
33
- setup(_, { expose: $, emit: O }) {
34
- const t = _, s = O, { t: T } = ee(), { id: k, name: H, autocomplete: B, tabindex: P } = oe(t), a = v(!1), c = v(!1), w = v(null), m = (e) => String(e).padStart(2, "0"), p = (e) => Math.max(1, Math.floor(Number.isFinite(e) ? e : 1)), i = (e) => {
33
+ setup(O, { expose: H, emit: k }) {
34
+ const t = O, s = k, { t: T } = oe(), { id: B, name: M, autocomplete: P, tabindex: z } = re(t), a = g(!1), c = g(!1), w = g(null), m = (e) => String(e).padStart(2, "0"), p = (e) => Math.max(1, Math.floor(Number.isFinite(e) ? e : 1)), i = (e) => {
35
35
  if (!e) return null;
36
36
  const o = e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
37
37
  if (!o) return null;
38
38
  const r = Number(o[1]), S = Number(o[2]), d = Number(o[3] || 0);
39
39
  return r > 23 || S > 59 || d > 59 ? null : { hour: r, minute: S, second: d };
40
- }, g = (e) => {
40
+ }, v = (e) => {
41
41
  const o = `${m(e.hour)}:${m(e.minute)}`;
42
42
  return t.showSeconds ? `${o}:${m(e.second)}` : o;
43
- }, f = (e) => e.hour * 3600 + e.minute * 60 + e.second, y = l(() => i(t.minTime)), N = l(() => i(t.maxTime)), x = l(() => i(t.modelValue)), u = v(x.value || { hour: 0, minute: 0, second: 0 }), V = l(() => t.placeholder || T("pickATime"));
44
- Y(
43
+ }, f = (e) => e.hour * 3600 + e.minute * 60 + e.second, y = n(() => i(t.minTime)), N = n(() => i(t.maxTime)), x = n(() => i(t.modelValue)), u = g(x.value || { hour: 0, minute: 0, second: 0 }), V = n(() => t.placeholder || T("pickATime"));
44
+ te(
45
45
  () => t.modelValue,
46
46
  (e) => {
47
47
  const o = i(e);
@@ -53,36 +53,36 @@ const be = /* @__PURE__ */ X({
53
53
  return !!(y.value && o < f(y.value) || N.value && o > f(N.value));
54
54
  }, b = (e, o, r) => {
55
55
  const S = p(r), d = /* @__PURE__ */ new Set();
56
- for (let n = 0; n <= o; n += S) d.add(n);
57
- return d.add(u.value[e]), Array.from(d).filter((n) => n >= 0 && n <= o).sort((n, q) => n - q).map((n) => {
58
- const q = { ...u.value, [e]: n };
56
+ for (let l = 0; l <= o; l += S) d.add(l);
57
+ return d.add(u.value[e]), Array.from(d).filter((l) => l >= 0 && l <= o).sort((l, q) => l - q).map((l) => {
58
+ const q = { ...u.value, [e]: l };
59
59
  return {
60
- label: m(n),
61
- value: n,
60
+ label: m(l),
61
+ value: l,
62
62
  disabled: h(q)
63
63
  };
64
64
  });
65
- }, z = l(() => b("hour", 23, t.hourStep)), M = l(() => b("minute", 59, t.minuteStep)), D = l(() => b("second", 59, t.secondStep)), A = (e, o) => {
65
+ }, D = n(() => b("hour", 23, t.hourStep)), A = n(() => b("minute", 59, t.minuteStep)), F = n(() => b("second", 59, t.secondStep)), R = (e, o) => {
66
66
  const r = { ...u.value, [e]: o };
67
- h(r) || (u.value = r, s("update:model-value", g(r)));
68
- }, F = () => {
67
+ h(r) || (u.value = r, s("update:model-value", v(r)));
68
+ }, U = () => {
69
69
  s("update:model-value", null), a.value = !1;
70
- }, R = () => {
70
+ }, j = () => {
71
71
  a.value = !1;
72
- }, U = () => {
72
+ }, E = () => {
73
73
  t.disabled || (a.value = !a.value);
74
- }, j = () => {
74
+ }, G = () => {
75
75
  c.value = !0, s("focus");
76
- }, E = () => {
76
+ }, J = () => {
77
77
  c.value = !1, s("blur");
78
- }, G = (e) => {
78
+ }, K = (e) => {
79
79
  const o = e.target, r = i(o.value);
80
- !r || h(r) || (u.value = r, s("update:model-value", g(r)));
81
- }, J = l(() => t.modelValue || V.value), K = l(
80
+ !r || h(r) || (u.value = r, s("update:model-value", v(r)));
81
+ }, L = n(() => t.modelValue || V.value), Q = n(
82
82
  () => t.showSeconds ? p(t.secondStep) : p(t.minuteStep) * 60
83
- ), L = l(() => t.clearable && !!t.modelValue && !t.disabled), Q = l(
84
- () => te({
85
- nmorph: [Z[t.height]],
83
+ ), W = n(() => t.clearable && !!t.modelValue && !t.disabled), X = n(
84
+ () => $({
85
+ nmorph: [_[t.height]],
86
86
  "nmorph-time-picker": [
87
87
  `${t.disabled && "disabled"}`,
88
88
  `${a.value && "open"}`,
@@ -90,22 +90,26 @@ const be = /* @__PURE__ */ X({
90
90
  `${!t.modelValue && "placeholder"}`
91
91
  ]
92
92
  })
93
- ), I = (e) => typeof e == "number" ? `${e}px` : e, W = l(() => ({
93
+ ), Y = n(
94
+ () => $({
95
+ nmorph: [_[t.height]]
96
+ })
97
+ ), I = (e) => typeof e == "number" ? `${e}px` : e, Z = n(() => ({
94
98
  ...t.width !== void 0 && { "--width": I(t.width) }
95
99
  }));
96
- $({ inputDOMRef: w });
97
- const C = { props: t, emit: s, t: T, id: k, name: H, autocomplete: B, tabindex: P, open: a, focused: c, inputDOMRef: w, pad: m, normalizeStep: p, parseTime: i, formatTime: g, timeToSeconds: f, minTimeParts: y, maxTimeParts: N, modelTimeParts: x, pickerValue: u, placeholderText: V, isOutsideRange: h, getUnitOptions: b, hourOptions: z, minuteOptions: M, secondOptions: D, selectUnit: A, clearHandler: F, closeHandler: R, toggleOpen: U, focusHandler: j, blurHandler: E, nativeInputHandler: G, displayValue: J, inputStep: K, showClearButton: L, modifiers: Q, getCssSize: I, styles: W, get NmorphDropdown() {
98
- return ue;
100
+ H({ inputDOMRef: w });
101
+ const C = { props: t, emit: s, t: T, id: B, name: M, autocomplete: P, tabindex: z, open: a, focused: c, inputDOMRef: w, pad: m, normalizeStep: p, parseTime: i, formatTime: v, timeToSeconds: f, minTimeParts: y, maxTimeParts: N, modelTimeParts: x, pickerValue: u, placeholderText: V, isOutsideRange: h, getUnitOptions: b, hourOptions: D, minuteOptions: A, secondOptions: F, selectUnit: R, clearHandler: U, closeHandler: j, toggleOpen: E, focusHandler: G, blurHandler: J, nativeInputHandler: K, displayValue: L, inputStep: Q, showClearButton: W, modifiers: X, optionHeightModifiers: Y, getCssSize: I, styles: Z, get NmorphDropdown() {
102
+ return se;
99
103
  }, get NmorphIcon() {
100
- return le;
104
+ return ue;
101
105
  }, get NmorphIconCircleClose() {
102
- return ne;
106
+ return le;
103
107
  }, get NmorphIconClock() {
104
- return re;
108
+ return ne;
105
109
  } };
106
110
  return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
107
111
  }
108
112
  });
109
113
  export {
110
- be as default
114
+ Se as default
111
115
  };
@@ -1,21 +1,15 @@
1
1
  import './NmorphBacktop.css';
2
- import l from "./NmorphBacktop.vue2.js";
3
- import { openBlock as e, createElementBlock as a, normalizeStyle as c, createBlock as i, Teleport as d, createElementVNode as t, normalizeClass as m, withModifiers as s, renderSlot as h, createVNode as r, withCtx as p } from "vue";
2
+ import a from "./NmorphBacktop.vue2.js";
3
+ import { openBlock as e, createElementBlock as p, createBlock as c, Teleport as i, createElementVNode as t, normalizeStyle as s, normalizeClass as d, withModifiers as m, renderSlot as f, createVNode as r, withCtx as l } from "vue";
4
4
  /* empty css */
5
- import f from "../../../_virtual/_plugin-vue_export-helper.js";
6
- function _(n, b, k, o, v, x) {
7
- return e(), a(
5
+ import h from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const _ = { ref: "placeholderDOMEl" };
7
+ function k(n, v, y, o, b, N) {
8
+ return e(), p(
8
9
  "div",
9
- {
10
- ref: "placeholderDOMEl",
11
- style: c({
12
- "--nmorph-backtop-right": `${o.props.right}px`,
13
- "--nmorph-backtop-bottom": `${o.props.bottom}px`,
14
- "--nmorph-backtop-z-index": o.props.zIndex
15
- })
16
- },
10
+ _,
17
11
  [
18
- (e(), i(d, {
12
+ (e(), c(i, {
19
13
  to: o.props.teleportTo,
20
14
  disabled: !o.isMounted || o.props.teleportDisabled
21
15
  }, [
@@ -23,22 +17,23 @@ function _(n, b, k, o, v, x) {
23
17
  "div",
24
18
  {
25
19
  ref: "selfDOMEl",
26
- class: m(o.modifiers)
20
+ class: d(o.modifiers),
21
+ style: s(o.styles)
27
22
  },
28
23
  [
29
24
  t("div", {
30
- onClick: s(o.scrollToTopHandler, ["stop"])
25
+ onClick: m(o.scrollToTopHandler, ["stop"])
31
26
  }, [
32
- h(n.$slots, "default", {}, () => [
27
+ f(n.$slots, "default", {}, () => [
33
28
  r(o.NmorphButton, {
34
29
  "style-type": o.props.design === "nmorph" ? "default" : "transparent"
35
30
  }, {
36
- default: p(() => [
31
+ default: l(() => [
37
32
  r(o.NmorphIcon, {
38
33
  class: "nmorph-backtop__up-icon",
39
34
  color: o.props.design === "nmorph" ? void 0 : "var(--nmorph-contrast-text-color)"
40
35
  }, {
41
- default: p(() => [
36
+ default: l(() => [
42
37
  r(o.NmorphIconChevronDown)
43
38
  ]),
44
39
  _: 1
@@ -51,16 +46,16 @@ function _(n, b, k, o, v, x) {
51
46
  ])
52
47
  ])
53
48
  ],
54
- 2
55
- /* CLASS */
49
+ 6
50
+ /* CLASS, STYLE */
56
51
  )
57
52
  ], 8, ["to", "disabled"]))
58
53
  ],
59
- 4
60
- /* STYLE */
54
+ 512
55
+ /* NEED_PATCH */
61
56
  );
62
57
  }
63
- const z = /* @__PURE__ */ f(l, [["render", _], ["__file", "/builds/ketjo/nmorph/library/src/components/navigation/nmorph-backtop/NmorphBacktop.vue"]]);
58
+ const E = /* @__PURE__ */ h(a, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/navigation/nmorph-backtop/NmorphBacktop.vue"]]);
64
59
  export {
65
- z as default
60
+ E as default
66
61
  };
@@ -1,10 +1,10 @@
1
1
  import './NmorphBacktop.css';
2
- import { defineComponent as b, computed as g, ref as t, onMounted as y, onUnmounted as N } from "vue";
3
- import { useModifiers as _ } from "../../../utils/create-modifiers.js";
4
- import q from "../../basic/nmorph-icon/NmorphIcon.vue.js";
5
- import E from "../../basic/nmorph-button/NmorphButton.vue.js";
6
- import T from "../../../assets/icons/chevron-down.svg.js";
7
- const k = /* @__PURE__ */ b({
2
+ import { defineComponent as E, computed as v, ref as l, onMounted as T, onUnmounted as k } from "vue";
3
+ import { useModifiers as q } from "../../../utils/create-modifiers.js";
4
+ import x from "../../basic/nmorph-icon/NmorphIcon.vue.js";
5
+ import I from "../../basic/nmorph-button/NmorphButton.vue.js";
6
+ import B from "../../../assets/icons/chevron-down.svg.js";
7
+ const Y = /* @__PURE__ */ E({
8
8
  __name: "NmorphBacktop",
9
9
  props: {
10
10
  right: { type: Number, required: !1, default: 40 },
@@ -16,38 +16,52 @@ const k = /* @__PURE__ */ b({
16
16
  teleportDisabled: { type: Boolean, required: !1, default: !1 }
17
17
  },
18
18
  emits: ["click"],
19
- setup(m, { expose: c, emit: f }) {
20
- c();
21
- const r = m, n = f, d = g(
22
- () => _({
23
- "nmorph-backtop": [`${o.value && "show"}`, r.design]
19
+ setup(b, { expose: w, emit: y }) {
20
+ w();
21
+ const t = b, s = y, g = v(
22
+ () => q({
23
+ "nmorph-backtop": [`${n.value && "show"}`, t.design]
24
24
  })
25
- ), e = t(null), u = t(null), i = t(null), o = t(!1), s = t(!1), l = (p) => {
26
- if (!p) return;
27
- const h = p.target;
28
- o.value = h.scrollTop > r.visibilityHeight;
29
- }, v = () => {
30
- n("click"), e.value && e.value.scrollTo({
25
+ ), N = v(() => ({
26
+ "--nmorph-backtop-right": `${t.right}px`,
27
+ "--nmorph-backtop-bottom": `${t.bottom}px`,
28
+ "--nmorph-backtop-z-index": t.zIndex
29
+ })), u = (r) => r === window, c = (r) => u(r) ? window.scrollY || document.documentElement.scrollTop || document.body.scrollTop || 0 : r.scrollTop, a = (r) => {
30
+ let o = r?.parentElement ?? null;
31
+ for (; o; ) {
32
+ const h = window.getComputedStyle(o), _ = h.overflowY || h.overflow;
33
+ if (["auto", "scroll", "overlay"].includes(_) && o.scrollHeight > o.clientHeight) return o;
34
+ o = o.parentElement;
35
+ }
36
+ return window;
37
+ }, e = l(null), p = l(null), m = l(null), n = l(!1), d = l(!1), i = () => {
38
+ if (!e.value) {
39
+ n.value = !1;
40
+ return;
41
+ }
42
+ n.value = c(e.value) > t.visibilityHeight;
43
+ }, S = () => {
44
+ s("click"), e.value && e.value.scrollTo({
31
45
  top: 0,
32
46
  left: 0,
33
47
  behavior: "smooth"
34
48
  });
35
49
  };
36
- y(() => {
37
- e.value = u.value?.parentElement ?? i.value?.parentElement?.parentElement ?? null, e.value?.addEventListener("scroll", l), o.value = (e.value?.scrollTop ?? 0) > r.visibilityHeight, s.value = !0;
38
- }), N(() => {
39
- e.value && e.value?.removeEventListener("scroll", l);
50
+ T(() => {
51
+ e.value = a(p.value ?? m.value), e.value.addEventListener("scroll", i), i(), d.value = !0;
52
+ }), k(() => {
53
+ e.value && e.value.removeEventListener("scroll", i);
40
54
  });
41
- const a = { props: r, emit: n, modifiers: d, container: e, placeholderDOMEl: u, selfDOMEl: i, showButton: o, isMounted: s, scrollHandler: l, scrollToTopHandler: v, get NmorphButton() {
42
- return E;
55
+ const f = { props: t, emit: s, modifiers: g, styles: N, isWindow: u, getScrollTop: c, findScrollableAncestor: a, container: e, placeholderDOMEl: p, selfDOMEl: m, showButton: n, isMounted: d, updateVisibility: i, scrollToTopHandler: S, get NmorphButton() {
56
+ return I;
43
57
  }, get NmorphIcon() {
44
- return q;
58
+ return x;
45
59
  }, get NmorphIconChevronDown() {
46
- return T;
60
+ return B;
47
61
  } };
48
- return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
62
+ return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
49
63
  }
50
64
  });
51
65
  export {
52
- k as default
66
+ Y as default
53
67
  };