@nmorph/nmorph-ui-kit 2.2.38 → 2.2.40

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 (235) hide show
  1. package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
  2. package/dist/components/basic/nmorph-button/NmorphButton.vue.js +13 -10
  3. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +4 -4
  4. package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +12 -10
  5. package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +19 -16
  6. package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
  7. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +30 -26
  8. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +42 -40
  9. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +6 -6
  10. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +24 -21
  11. package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +23 -21
  12. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
  13. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +121 -73
  14. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +105 -78
  15. package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +18 -14
  16. package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +15 -11
  17. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +15 -12
  18. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +44 -40
  19. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +7 -7
  20. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +22 -16
  21. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
  22. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +9 -9
  23. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +21 -19
  24. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +27 -24
  25. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +19 -15
  26. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +10 -8
  27. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +25 -23
  28. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +8 -8
  29. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +4 -4
  30. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +18 -22
  31. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +42 -33
  32. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +32 -32
  33. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  34. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +77 -106
  35. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
  36. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +4 -4
  37. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +7 -7
  38. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +6 -6
  39. package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +1 -1
  40. package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +51 -49
  41. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -18
  42. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +28 -24
  43. package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +30 -30
  44. package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +34 -32
  45. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +16 -16
  46. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +37 -35
  47. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +12 -12
  48. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +34 -32
  49. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +16 -16
  50. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +64 -57
  51. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +27 -22
  52. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +75 -46
  53. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +25 -23
  54. package/dist/hooks/use-field-validation.js +50 -66
  55. package/dist/hooks/use-focusable-input.js +27 -0
  56. package/dist/hooks/use-nmorph-translation.js +4 -4
  57. package/dist/hooks/use-placement.js +65 -61
  58. package/dist/index.es.js +842 -837
  59. package/dist/index.umd.js +36 -36
  60. package/dist/package.json.js +1 -1
  61. package/dist/plugin.js +47 -42
  62. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +4 -17
  63. package/dist/src/components/basic/nmorph-button/types.d.ts +13 -0
  64. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +3 -9
  65. package/dist/src/components/basic/nmorph-icon/types.d.ts +6 -0
  66. package/dist/src/components/basic/nmorph-layout/NmorphLayout.vue.d.ts +2 -9
  67. package/dist/src/components/basic/nmorph-layout/types.d.ts +8 -0
  68. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +3 -14
  69. package/dist/src/components/basic/nmorph-link/types.d.ts +11 -0
  70. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +2 -2
  71. package/dist/src/components/basic/nmorph-scroll/types.d.ts +5 -0
  72. package/dist/src/components/basic/nmorph-space/NmorphSpace.vue.d.ts +2 -15
  73. package/dist/src/components/basic/nmorph-space/types.d.ts +14 -0
  74. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +5 -20
  75. package/dist/src/components/data/nmorph-avatar/types.d.ts +21 -0
  76. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +5 -40
  77. package/dist/src/components/data/nmorph-badge/types.d.ts +34 -0
  78. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +4 -12
  79. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -9
  80. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +12 -0
  81. package/dist/src/components/data/nmorph-calendar/types.d.ts +13 -0
  82. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +2 -10
  83. package/dist/src/components/data/nmorph-card/types.d.ts +9 -0
  84. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -5
  85. package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +2 -4
  86. package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/types.d.ts +3 -0
  87. package/dist/src/components/data/nmorph-carousel/types.d.ts +6 -0
  88. package/dist/src/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +3 -7
  89. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +4 -10
  90. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +13 -0
  91. package/dist/src/components/data/nmorph-collapse/types.d.ts +7 -0
  92. package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +3 -12
  93. package/dist/src/components/data/nmorph-empty/types.d.ts +11 -0
  94. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -8
  95. package/dist/src/components/data/nmorph-image/types.d.ts +10 -0
  96. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +9 -18
  97. package/dist/src/components/data/nmorph-image-preview/types.d.ts +23 -0
  98. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -13
  99. package/dist/src/components/data/nmorph-pagination/types.d.ts +14 -0
  100. package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +3 -15
  101. package/dist/src/components/data/nmorph-progress/types.d.ts +12 -0
  102. package/dist/src/components/data/nmorph-qr-code/NmorphQRCode.vue.d.ts +5 -15
  103. package/dist/src/components/data/nmorph-qr-code/types.d.ts +12 -0
  104. package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +2 -7
  105. package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +3 -9
  106. package/dist/src/components/data/nmorph-skeleton/components/types.d.ts +8 -0
  107. package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -0
  108. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +4 -18
  109. package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +2 -4
  110. package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/types.d.ts +3 -0
  111. package/dist/src/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +4 -5
  112. package/dist/src/components/data/nmorph-table/components/nmorph-table-column/types.d.ts +3 -0
  113. package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +4 -6
  114. package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/types.d.ts +7 -0
  115. package/dist/src/components/data/nmorph-table/types.d.ts +15 -0
  116. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +9 -9
  117. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +3 -5
  118. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/types.d.ts +6 -0
  119. package/dist/src/components/data/nmorph-tag-list/types.d.ts +8 -0
  120. package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +3 -14
  121. package/dist/src/components/data/nmorph-virtual-list/types.d.ts +15 -0
  122. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +5 -7
  123. package/dist/src/components/feedback/nmorph-alert/types.d.ts +5 -0
  124. package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +4 -16
  125. package/dist/src/components/feedback/nmorph-callout/types.d.ts +12 -0
  126. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +4 -19
  127. package/dist/src/components/feedback/nmorph-dialog/types.d.ts +20 -0
  128. package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +4 -17
  129. package/dist/src/components/feedback/nmorph-drawer/types.d.ts +18 -0
  130. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +5 -14
  131. package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +11 -0
  132. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +6 -19
  133. package/dist/src/components/form/nmorph-autocomplete/types.d.ts +18 -0
  134. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -1
  135. package/dist/src/components/form/nmorph-checkbox/types.d.ts +3 -0
  136. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -10
  137. package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +11 -0
  138. package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +6 -11
  139. package/dist/src/components/form/nmorph-color-picker/types.d.ts +11 -0
  140. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +4 -20
  141. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/types.d.ts +3 -0
  142. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +3 -8
  143. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/types.d.ts +10 -0
  144. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +3 -6
  145. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/types.d.ts +12 -0
  146. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +3 -6
  147. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/types.d.ts +9 -0
  148. package/dist/src/components/form/nmorph-date-picker/types.d.ts +21 -0
  149. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +5 -13
  150. package/dist/src/components/form/nmorph-file-upload/types.d.ts +17 -0
  151. package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +4 -8
  152. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +3 -12
  153. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +3 -8
  154. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +7 -0
  155. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +3 -6
  156. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/types.d.ts +5 -0
  157. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +10 -0
  158. package/dist/src/components/form/nmorph-form/types.d.ts +6 -1
  159. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +3 -10
  160. package/dist/src/components/form/nmorph-number-input/types.d.ts +11 -0
  161. package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +5 -13
  162. package/dist/src/components/form/nmorph-otp-input/types.d.ts +21 -0
  163. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +4 -9
  164. package/dist/src/components/form/nmorph-radio/types.d.ts +6 -0
  165. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +3 -11
  166. package/dist/src/components/form/nmorph-radio-group/types.d.ts +12 -0
  167. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +3 -21
  168. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
  169. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/types.d.ts +3 -0
  170. package/dist/src/components/form/nmorph-select/types.d.ts +21 -0
  171. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +4 -12
  172. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +3 -6
  173. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +4 -0
  174. package/dist/src/components/form/nmorph-select-button/types.d.ts +12 -0
  175. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +111 -0
  176. package/dist/src/components/form/nmorph-slider/types.d.ts +3 -0
  177. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +3 -14
  178. package/dist/src/components/form/nmorph-switch/types.d.ts +15 -0
  179. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +6 -14
  180. package/dist/src/components/form/nmorph-text-input/types.d.ts +16 -0
  181. package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +6 -18
  182. package/dist/src/components/form/nmorph-textarea/types.d.ts +20 -0
  183. package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +6 -20
  184. package/dist/src/components/form/nmorph-time-picker/types.d.ts +24 -0
  185. package/dist/src/components/navigation/index.d.ts +1 -1
  186. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +4 -12
  187. package/dist/src/components/navigation/nmorph-backtop/types.d.ts +14 -0
  188. package/dist/src/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +2 -4
  189. package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +2 -4
  190. package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/types.d.ts +3 -0
  191. package/dist/src/components/navigation/nmorph-breadcrumb/types.d.ts +3 -0
  192. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +14 -33
  193. package/dist/src/components/navigation/nmorph-context-menu/types.d.ts +48 -0
  194. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +6 -24
  195. package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +24 -0
  196. package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +4 -8
  197. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +4 -5
  198. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/types.d.ts +3 -0
  199. package/dist/src/components/navigation/nmorph-tabs/{type.d.ts → types.d.ts} +9 -0
  200. package/dist/src/components/navigation/nmorph-tabs/utils.d.ts +1 -1
  201. package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +2 -5
  202. package/dist/src/components/others/nmorph-divider/types.d.ts +3 -0
  203. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +3 -12
  204. package/dist/src/components/others/nmorph-overlay/types.d.ts +14 -0
  205. package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +2 -8
  206. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +9 -0
  207. package/dist/src/hooks/use-focusable-input.d.ts +16 -0
  208. package/dist/src/hooks/use-form-validation.d.ts +1 -2
  209. package/dist/src/plugin.d.ts +4 -1
  210. package/dist/src/types/app.types.d.ts +21 -0
  211. package/dist/src/types/common.types.d.ts +62 -0
  212. package/dist/src/types/date.types.d.ts +7 -0
  213. package/dist/src/types/image.types.d.ts +17 -0
  214. package/dist/src/types/index.d.ts +8 -206
  215. package/dist/src/types/selection.types.d.ts +26 -0
  216. package/dist/src/types/table.types.d.ts +5 -0
  217. package/dist/src/types/theme.types.d.ts +55 -0
  218. package/dist/src/types/translation.types.d.ts +20 -0
  219. package/dist/src/utils/common.d.ts +3 -0
  220. package/dist/src/utils/file-types.d.ts +8 -0
  221. package/dist/src/utils/index.d.ts +1 -0
  222. package/dist/style.css +1 -1
  223. package/dist/types/common.types.js +14 -0
  224. package/dist/types/date.types.js +4 -0
  225. package/dist/types/image.types.js +5 -0
  226. package/dist/types/selection.types.js +4 -0
  227. package/dist/types/table.types.js +4 -0
  228. package/dist/types/translation.types.js +4 -0
  229. package/dist/utils/common.js +16 -6
  230. package/dist/utils/file-types.js +41 -0
  231. package/package.json +1 -1
  232. package/dist/src/components/data/nmorph-calendar/hooks/index.d.ts +0 -2
  233. package/dist/src/hooks/index.d.ts +0 -9
  234. package/dist/src/outside-hooks/index.d.ts +0 -5
  235. package/dist/types/index.js +0 -20
@@ -1,7 +1,7 @@
1
1
  import './NmorphDrawer.css';
2
2
  import { defineComponent as m, useSlots as c, computed as o } from "vue";
3
3
  import { useModifiers as y } from "../../../utils/create-modifiers.js";
4
- import { toCssSize as h } from "../../../utils/common.js";
4
+ import { createCssSizeVariables as h } from "../../../utils/common.js";
5
5
  import q from "../../others/nmorph-overlay/NmorphOverlay.vue.js";
6
6
  import _ from "../../basic/nmorph-icon/NmorphIcon.vue.js";
7
7
  import v from "../../../assets/icons/cross.svg.js";
@@ -21,26 +21,28 @@ const w = /* @__PURE__ */ m({
21
21
  contentClass: { type: String, required: !1, default: "" }
22
22
  },
23
23
  emits: ["on-close", "update:model-value"],
24
- setup(a, { expose: n, emit: u }) {
24
+ setup(s, { expose: n, emit: u }) {
25
25
  n();
26
- const e = a, r = u, t = c(), d = o(
26
+ const e = s, r = u, t = c(), d = o(
27
27
  () => y({
28
28
  "nmorph-drawer": [e.placement, e.modelValue && "open"]
29
29
  })
30
- ), p = o(() => ({
31
- "--nmorph-drawer-size": h(e.size)
32
- })), l = () => {
30
+ ), p = o(
31
+ () => h({
32
+ "--nmorph-drawer-size": e.size
33
+ })
34
+ ), l = () => {
33
35
  r("on-close"), r("update:model-value", !1);
34
36
  }, i = () => {
35
37
  e.closeOnOverlay && l();
36
- }, f = o(() => !!(t.header || e.title || e.showClose)), s = { props: e, emit: r, slots: t, modifiers: d, drawerStyle: p, closeHandler: l, overlayClickHandler: i, hasHeader: f, get NmorphIcon() {
38
+ }, f = o(() => !!(t.header || e.title || e.showClose)), a = { props: e, emit: r, slots: t, modifiers: d, drawerStyle: p, closeHandler: l, overlayClickHandler: i, hasHeader: f, get NmorphIcon() {
37
39
  return _;
38
40
  }, get NmorphIconCross() {
39
41
  return v;
40
42
  }, get NmorphOverlay() {
41
43
  return q;
42
44
  } };
43
- return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
45
+ return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
44
46
  }
45
47
  });
46
48
  export {
@@ -1,10 +1,10 @@
1
1
  import './NmorphTooltip.css';
2
- import { defineComponent as y, ref as o, computed as r } from "vue";
3
- import { useModifiers as w } from "../../../utils/create-modifiers.js";
4
- import { toCssSize as i } from "../../../utils/common.js";
5
- import { usePlacement as S } from "../../../hooks/use-placement.js";
6
- import { useZIndex as _ } from "../../../hooks/use-z-index.js";
7
- const z = /* @__PURE__ */ y({
2
+ import { defineComponent as x, ref as o, computed as r } from "vue";
3
+ import { usePlacement as y } from "../../../hooks/use-placement.js";
4
+ import { useZIndex as S } from "../../../hooks/use-z-index.js";
5
+ import { useModifiers as _ } from "../../../utils/create-modifiers.js";
6
+ import { createCssSizeVariables as w } from "../../../utils/common.js";
7
+ const z = /* @__PURE__ */ x({
8
8
  __name: "NmorphTooltip",
9
9
  props: {
10
10
  text: { type: String, required: !1, default: "" },
@@ -16,35 +16,37 @@ const z = /* @__PURE__ */ y({
16
16
  maxWidth: { type: [Number, String], required: !1, default: void 0 },
17
17
  height: { type: [Number, String], required: !1, default: void 0 }
18
18
  },
19
- setup(p, { expose: m }) {
20
- const e = p, t = o(e.forceShow), n = o(null), l = o(null), { placement: d } = S({
19
+ setup(f, { expose: p }) {
20
+ const e = f, t = o(e.forceShow), i = o(null), l = o(null), { placement: n } = y({
21
21
  initialPlacement: e.position,
22
- contentDOMElement: n,
22
+ contentDOMElement: i,
23
23
  relativeElement: l
24
24
  }), c = r(
25
- () => w({
25
+ () => _({
26
26
  "nmorph-tooltip": [
27
- d.value,
27
+ n.value,
28
28
  !!e.forceCoordinate?.x && !!e.forceCoordinate?.y && "force-coords"
29
29
  ]
30
30
  })
31
- ), h = () => {
31
+ ), m = () => {
32
32
  t.value = !0;
33
- }, v = () => {
33
+ }, h = () => {
34
34
  e.forceShow || (t.value = !1);
35
- }, a = r(() => e.forceCoordinate ? "100%" : "auto"), u = _(
35
+ }, a = r(() => e.forceCoordinate ? "100%" : "auto"), s = S(
36
36
  () => t.value,
37
37
  () => e.zIndex
38
- ), x = r(() => ({
38
+ ), v = r(() => ({
39
39
  "--nmorph-tooltip-width": a.value,
40
- "--nmorph-tooltip-z-index": u.value,
41
- ...e.width !== void 0 && { "--width": i(e.width) },
42
- ...e.maxWidth !== void 0 && { "--max-width": i(e.maxWidth) },
43
- ...e.height !== void 0 && { "--height": i(e.height) }
44
- })), s = o(null);
45
- m({ tooltipBody: s });
46
- const f = { props: e, showTooltip: t, tooltipDOMRef: n, slotDOMRef: l, placement: d, modifiers: c, handleMouseEnter: h, handleMouseLeave: v, rootWidth: a, zIndex: u, styles: x, tooltipBody: s };
47
- return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
40
+ "--nmorph-tooltip-z-index": s.value,
41
+ ...w({
42
+ "--width": e.width,
43
+ "--max-width": e.maxWidth,
44
+ "--height": e.height
45
+ })
46
+ })), u = o(null);
47
+ p({ tooltipBody: u });
48
+ const d = { props: e, showTooltip: t, tooltipDOMRef: i, slotDOMRef: l, placement: n, modifiers: c, handleMouseEnter: m, handleMouseLeave: h, rootWidth: a, zIndex: s, styles: v, tooltipBody: u };
49
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
48
50
  }
49
51
  });
50
52
  export {
@@ -2,10 +2,10 @@ import './NmorphAutocomplete.css';
2
2
  import { defineComponent as K, ref as s, computed as l, watch as c, nextTick as Q } from "vue";
3
3
  import { useModifiers as M } from "../../../utils/create-modifiers.js";
4
4
  import { getNmorphOptionHeight as W, toCssSize as X, resolveDomElement as Y } from "../../../utils/common.js";
5
- import { NmorphComponentHeight as ee } from "../../../types/index.js";
6
- import { useFormItemModel as te } from "../nmorph-form/use-form-item-input.js";
7
- import { useVirtualList as ae } from "../../../hooks/use-virtual-list.js";
8
- import { useZIndex as le } from "../../../hooks/use-z-index.js";
5
+ import { useZIndex as ee } from "../../../hooks/use-z-index.js";
6
+ import { useVirtualList as te } from "../../../hooks/use-virtual-list.js";
7
+ import { useFormItemModel as ae } from "../nmorph-form/use-form-item-input.js";
8
+ import { NmorphComponentHeight as le } from "../../../types/common.types.js";
9
9
  import re from "../nmorph-text-input/NmorphTextInput.vue.js";
10
10
  import oe from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
11
11
  import ue from "../../basic/nmorph-icon/NmorphIcon.vue.js";
@@ -34,7 +34,7 @@ const Ie = /* @__PURE__ */ K({
34
34
  emits: ["update:model-value", "select"],
35
35
  setup(O, { expose: L, emit: V }) {
36
36
  L();
37
- const t = O, p = V, { modelValue: m, updateModelValue: v } = te(
37
+ const t = O, p = V, { modelValue: m, updateModelValue: v } = ae(
38
38
  t,
39
39
  (e) => p("update:model-value", e),
40
40
  ""
@@ -49,7 +49,7 @@ const Ie = /* @__PURE__ */ K({
49
49
  set: b
50
50
  }), a = s(!1), z = s(null), x = () => {
51
51
  i.value = !0, a.value = !1;
52
- }, r = l(() => t.list.filter((e) => Object.keys(e).some((I) => String(e[I]).toLowerCase().includes(o.value.toLowerCase())))), f = l(() => t.virtual && r.value.length > 0), H = l(() => t.virtualItemHeight || W(t.height)), q = l(() => t.virtualOverscan), N = l(() => t.virtualDynamicHeight), n = ae(r, {
52
+ }, r = l(() => t.list.filter((e) => Object.keys(e).some((I) => String(e[I]).toLowerCase().includes(o.value.toLowerCase())))), f = l(() => t.virtual && r.value.length > 0), H = l(() => t.virtualItemHeight || W(t.height)), q = l(() => t.virtualOverscan), N = l(() => t.virtualDynamicHeight), n = te(r, {
53
53
  enabled: f,
54
54
  itemHeight: H,
55
55
  overscan: q,
@@ -92,11 +92,11 @@ const Ie = /* @__PURE__ */ K({
92
92
  "aria-activedescendant": a.value ? D(u.value) : void 0
93
93
  })), P = (e, I) => {
94
94
  n.measureElement(I, Y(e));
95
- }, C = le(a, () => t.zIndex), G = l(() => ({
95
+ }, C = ee(a, () => t.zIndex), G = l(() => ({
96
96
  "--nmorph-autocomplete-input-z-index": C.value + 1
97
97
  })), J = l(
98
98
  () => M({
99
- nmorph: [ee[t.height]]
99
+ nmorph: [le[t.height]]
100
100
  })
101
101
  ), _ = { props: t, emit: p, modelValue: m, updateModelValue: v, initialValue: o, modifiers: A, userClosed: i, updateValueHandler: b, inputValue: T, open: a, nmorphAutocompleteDOMRef: z, closeHandler: x, filteredList: r, virtualEnabled: f, virtualItemHeight: H, virtualOverscan: q, virtualDynamicHeight: N, virtualList: n, virtualItems: B, virtualSpacerStyle: E, virtualContentStyle: $, virtualMaxHeight: j, currentIndex: u, activeItem: h, listboxId: g, getOptionId: D, selectItem: y, clickHandler: F, focusHandler: R, loader: d, arrowDownHandler: S, arrowUpHandler: w, enterHandler: k, keydownHandler: U, inputAttrs: Z, setVirtualItemRef: P, dropdownZIndex: C, styles: G, optionHeightModifiers: J, get NmorphIcon() {
102
102
  return ue;
@@ -1,8 +1,8 @@
1
1
  import './NmorphCheckbox.css';
2
2
  import { defineComponent as x, inject as i, watch as S, ref as n, computed as d } from "vue";
3
3
  import { useModifiers as q } from "../../../utils/create-modifiers.js";
4
- import { NmorphSelectionControlHeight as V } from "../../../types/index.js";
5
- import { useFormItemModel as C } from "../nmorph-form/use-form-item-input.js";
4
+ import { useFormItemModel as V } from "../nmorph-form/use-form-item-input.js";
5
+ import { NmorphSelectionControlHeight as C } from "../../../types/common.types.js";
6
6
  const H = /* @__PURE__ */ x({
7
7
  __name: "NmorphCheckbox",
8
8
  props: {
@@ -21,7 +21,7 @@ const H = /* @__PURE__ */ x({
21
21
  ), u = i(
22
22
  "change-checkbox-value-handler",
23
23
  void 0
24
- ), s = i("checkbox-group-height", void 0), e = g, c = _, { modelValue: l, updateModelValue: p } = C(
24
+ ), s = i("checkbox-group-height", void 0), e = g, c = _, { modelValue: l, updateModelValue: p } = V(
25
25
  e,
26
26
  (r) => c("update:model-value", r),
27
27
  !1
@@ -41,7 +41,7 @@ const H = /* @__PURE__ */ x({
41
41
  }
42
42
  }, k = d(
43
43
  () => q({
44
- nmorph: [V[m.value]],
44
+ nmorph: [C[m.value]],
45
45
  "nmorph-checkbox": [
46
46
  h.value && "checked",
47
47
  e.disabled && "disabled",
@@ -1,21 +1,21 @@
1
1
  import './NmorphColorPicker.css';
2
- import t from "./NmorphColorPicker.vue2.js";
3
- import { openBlock as n, createElementBlock as i, normalizeClass as a, createElementVNode as e, normalizeStyle as c, toDisplayString as s, createCommentVNode as d } from "vue";
2
+ import a from "./NmorphColorPicker.vue2.js";
3
+ import { openBlock as l, createElementBlock as i, normalizeClass as c, createElementVNode as n, normalizeStyle as t, toDisplayString as d, createCommentVNode as s } from "vue";
4
4
  /* empty css */
5
5
  import m from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const p = { class: "nmorph-color-picker__content" }, _ = ["id", "name", "tabindex", "value", "disabled"], f = {
6
+ const p = { class: "nmorph-color-picker__content" }, _ = ["id", "name", "tabindex", "value", "disabled"], h = {
7
7
  key: 0,
8
8
  class: "nmorph-color-picker__value"
9
9
  };
10
- function u(h, r, k, o, v, b) {
11
- return n(), i(
10
+ function u(f, r, k, o, v, b) {
11
+ return l(), i(
12
12
  "div",
13
13
  {
14
- class: a(o.modifiers)
14
+ class: c(o.modifiers)
15
15
  },
16
16
  [
17
- e("div", p, [
18
- e("input", {
17
+ n("div", p, [
18
+ n("input", {
19
19
  id: o.id,
20
20
  ref: "inputDOMRef",
21
21
  name: o.name,
@@ -25,37 +25,33 @@ function u(h, r, k, o, v, b) {
25
25
  value: o.currentValue,
26
26
  disabled: o.props.disabled,
27
27
  onInput: o.handleInput,
28
- onFocus: r[0] || (r[0] = (l) => {
29
- o.focused = !0, o.emit("focus");
30
- }),
31
- onBlur: r[1] || (r[1] = (l) => {
32
- o.focused = !1, o.emit("blur");
33
- })
28
+ onFocus: r[0] || (r[0] = (...e) => o.handleFocus && o.handleFocus(...e)),
29
+ onBlur: r[1] || (r[1] = (...e) => o.handleBlur && o.handleBlur(...e))
34
30
  }, null, 40, _),
35
- e(
31
+ n(
36
32
  "div",
37
33
  {
38
34
  class: "nmorph-color-picker__swatch",
39
- style: c({ background: o.currentValue })
35
+ style: t({ background: o.currentValue })
40
36
  },
41
37
  null,
42
38
  4
43
39
  /* STYLE */
44
40
  ),
45
- o.props.showValue ? (n(), i(
41
+ o.props.showValue ? (l(), i(
46
42
  "span",
47
- f,
48
- s(o.displayValue),
43
+ h,
44
+ d(o.displayValue),
49
45
  1
50
46
  /* TEXT */
51
- )) : d("v-if", !0)
47
+ )) : s("v-if", !0)
52
48
  ])
53
49
  ],
54
50
  2
55
51
  /* CLASS */
56
52
  );
57
53
  }
58
- const N = /* @__PURE__ */ m(t, [["render", u], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-color-picker/NmorphColorPicker.vue"]]);
54
+ const C = /* @__PURE__ */ m(a, [["render", u], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-color-picker/NmorphColorPicker.vue"]]);
59
55
  export {
60
- N as default
56
+ C as default
61
57
  };
@@ -1,9 +1,10 @@
1
1
  import './NmorphColorPicker.css';
2
- import { defineComponent as k, ref as g, watch as B, onMounted as H, computed as _ } from "vue";
3
- import { NmorphComponentHeight as L } from "../../../types/index.js";
4
- import { useModifiers as O } from "../../../utils/create-modifiers.js";
5
- import { useFormItemInput as z, useFormItemModel as A } from "../nmorph-form/use-form-item-input.js";
6
- const G = /* @__PURE__ */ k({
2
+ import { defineComponent as k, ref as H, watch as L, onMounted as O, computed as C } from "vue";
3
+ import { useModifiers as z } from "../../../utils/create-modifiers.js";
4
+ import { useFocusableInput as A } from "../../../hooks/use-focusable-input.js";
5
+ import { useFormItemInput as D, useFormItemModel as E } from "../nmorph-form/use-form-item-input.js";
6
+ import { NmorphComponentHeight as T } from "../../../types/common.types.js";
7
+ const W = /* @__PURE__ */ k({
7
8
  __name: "NmorphColorPicker",
8
9
  props: {
9
10
  modelValue: { type: String, required: !1, default: "" },
@@ -17,52 +18,60 @@ const G = /* @__PURE__ */ k({
17
18
  tabindex: { type: Number, required: !1 }
18
19
  },
19
20
  emits: ["update:model-value", "focus", "blur"],
20
- setup(q, { expose: S, emit: V }) {
21
- const n = q, b = V, { id: x, name: I, tabindex: F } = z(n), { modelValue: d, updateModelValue: y } = A(
21
+ setup(_, { expose: q, emit: F }) {
22
+ const n = _, d = F, { id: I, name: S, tabindex: V } = D(n), { modelValue: c, updateModelValue: g } = E(
22
23
  n,
23
- (e) => b("update:model-value", e),
24
+ (e) => d("update:model-value", e),
24
25
  ""
25
26
  ), l = (e, r = "#000000") => {
26
27
  const t = e?.trim() || "";
27
28
  return /^#[\da-f]{6}$/i.test(t) ? t.toLowerCase() : /^#[\da-f]{3}$/i.test(t) ? `#${t.slice(1).split("").map((o) => `${o}${o}`).join("").toLowerCase()}` : r;
28
- }, p = g(null), m = () => {
29
+ }, {
30
+ elementRef: p,
31
+ focused: y,
32
+ handleFocus: x,
33
+ handleBlur: B
34
+ } = A({
35
+ onFocus: () => d("focus"),
36
+ onBlur: () => d("blur")
37
+ }), f = () => {
29
38
  if (typeof document > "u") return "#006cb6";
30
39
  const e = p.value || document.documentElement, r = getComputedStyle(e).getPropertyValue("--nmorph-accent-color").trim();
31
40
  return l(r, "#006cb6");
32
- }, a = g(l(d.value)), v = g(!1);
33
- B(d, (e) => {
34
- a.value = e ? l(e) : m();
41
+ }, a = H(l(c.value));
42
+ L(c, (e) => {
43
+ a.value = e ? l(e) : f();
35
44
  });
36
- const w = (e) => {
45
+ const R = (e) => {
37
46
  const r = e.target, t = l(r.value);
38
- a.value = t, y(t);
39
- }, f = (e) => [
47
+ a.value = t, g(t);
48
+ }, h = (e) => [
40
49
  parseInt(e.slice(1, 3), 16),
41
50
  parseInt(e.slice(3, 5), 16),
42
51
  parseInt(e.slice(5, 7), 16)
43
- ], $ = (e) => {
44
- const [r, t, o] = f(e);
52
+ ], v = (e) => {
53
+ const [r, t, o] = h(e);
45
54
  return `rgb(${r}, ${t}, ${o})`;
46
- }, M = (e) => {
47
- const [r, t, o] = f(e).map((j) => j / 255), s = Math.max(r, t, o), u = Math.min(r, t, o), h = (s + u) / 2;
48
- if (s === u)
49
- return `hsl(0, 0%, ${Math.round(h * 100)}%)`;
50
- const i = s - u, R = h > 0.5 ? i / (2 - s - u) : i / (s + u);
51
- let c = 0;
52
- return s === r ? c = (t - o) / i + (t < o ? 6 : 0) : s === t ? c = (o - r) / i + 2 : c = (r - t) / i + 4, `hsl(${Math.round(c * 60)}, ${Math.round(R * 100)}%, ${Math.round(h * 100)}%)`;
55
+ }, $ = (e) => {
56
+ const [r, t, o] = h(e).map((j) => j / 255), u = Math.max(r, t, o), s = Math.min(r, t, o), b = (u + s) / 2;
57
+ if (u === s)
58
+ return `hsl(0, 0%, ${Math.round(b * 100)}%)`;
59
+ const i = u - s, P = b > 0.5 ? i / (2 - u - s) : i / (u + s);
60
+ let m = 0;
61
+ return u === r ? m = (t - o) / i + (t < o ? 6 : 0) : u === t ? m = (o - r) / i + 2 : m = (r - t) / i + 4, `hsl(${Math.round(m * 60)}, ${Math.round(P * 100)}%, ${Math.round(b * 100)}%)`;
53
62
  };
54
- H(() => {
55
- d.value || (a.value = m());
56
- }), S({ inputDOMRef: p });
57
- const N = _(
58
- () => O({
59
- nmorph: [L[n.height], v.value && "focused"],
63
+ O(() => {
64
+ c.value || (a.value = f());
65
+ }), q({ inputDOMRef: p });
66
+ const w = C(
67
+ () => z({
68
+ nmorph: [T[n.height], y.value && "focused"],
60
69
  "nmorph-color-picker": [n.disabled && "disabled", n.displayFormat]
61
70
  })
62
- ), P = _(() => n.displayFormat === "rgb" ? $(a.value) : n.displayFormat === "hsl" ? M(a.value) : a.value.toUpperCase()), C = { props: n, emit: b, id: x, name: I, tabindex: F, modelValue: d, updateModelValue: y, normalizeColor: l, inputDOMRef: p, resolveAccentColor: m, currentValue: a, focused: v, handleInput: w, hexToRgb: f, formatRgb: $, formatHsl: M, modifiers: N, displayValue: P };
63
- return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
71
+ ), N = C(() => n.displayFormat === "rgb" ? v(a.value) : n.displayFormat === "hsl" ? $(a.value) : a.value.toUpperCase()), M = { props: n, emit: d, id: I, name: S, tabindex: V, modelValue: c, updateModelValue: g, normalizeColor: l, inputDOMRef: p, focused: y, handleFocus: x, handleBlur: B, resolveAccentColor: f, currentValue: a, handleInput: R, hexToRgb: h, formatRgb: v, formatHsl: $, modifiers: w, displayValue: N };
72
+ return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
64
73
  }
65
74
  });
66
75
  export {
67
- G as default
76
+ W as default
68
77
  };
@@ -1,17 +1,17 @@
1
1
  import './NmorphDatePicker.css';
2
- import { defineComponent as B, computed as a, ref as u, watch as M } from "vue";
3
- import { useModifiers as V } from "../../../utils/create-modifiers.js";
4
- import { toCssSize as m } from "../../../utils/common.js";
5
- import { NmorphComponentHeight as P } from "../../../types/index.js";
6
- import j from "./inner-components/nmorph-clear-button/NmorphClearButton.vue.js";
7
- import z from "./inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js";
8
- import { useI18n as L } from "vue-i18n";
9
- import { useFormItemInput as R, useFormItemModel as T } from "../nmorph-form/use-form-item-input.js";
10
- import { formatDate as c } from "../../data/nmorph-calendar/utils.js";
2
+ import { defineComponent as k, computed as a, ref as u, watch as V } from "vue";
3
+ import { useModifiers as B } from "../../../utils/create-modifiers.js";
4
+ import { createCssSizeVariables as M } from "../../../utils/common.js";
5
+ import P from "./inner-components/nmorph-clear-button/NmorphClearButton.vue.js";
6
+ import j from "./inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js";
7
+ import { useI18n as z } from "vue-i18n";
8
+ import { useFormItemInput as L, useFormItemModel as R } from "../nmorph-form/use-form-item-input.js";
9
+ import { NmorphComponentHeight as T } from "../../../types/common.types.js";
10
+ import { formatDate as m } from "../../data/nmorph-calendar/utils.js";
11
11
  import E from "../../../assets/icons/calendar.svg.js";
12
12
  import G from "../../basic/nmorph-icon/NmorphIcon.vue.js";
13
13
  import J from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
14
- const le = /* @__PURE__ */ B({
14
+ const le = /* @__PURE__ */ k({
15
15
  __name: "NmorphDatePicker",
16
16
  props: {
17
17
  placeholder: { type: String, required: !1, default: "" },
@@ -36,29 +36,29 @@ const le = /* @__PURE__ */ B({
36
36
  tabindex: { type: Number, required: !1 }
37
37
  },
38
38
  emits: ["update:model-value"],
39
- setup(v, { expose: h, emit: y }) {
40
- h();
41
- const { t: p } = L(), e = v, { id: g, name: q, autocomplete: S } = R(e), n = a(() => e.placeholder ? e.placeholder : p("pickADate")), s = y, { modelValue: d, updateModelValue: i } = T(
39
+ setup(c, { expose: y, emit: v }) {
40
+ y();
41
+ const { t: s } = z(), e = c, { id: h, name: g, autocomplete: q } = L(e), n = a(() => e.placeholder ? e.placeholder : s("pickADate")), p = v, { modelValue: d, updateModelValue: i } = R(
42
42
  e,
43
- (r) => s("update:model-value", r),
43
+ (r) => p("update:model-value", r),
44
44
  null
45
- ), t = u(d.value), l = u(!1), N = () => {
45
+ ), t = u(d.value), l = u(!1), S = () => {
46
46
  l.value = !0;
47
- }, D = () => {
47
+ }, N = () => {
48
48
  l.value = !1;
49
49
  }, b = a(
50
- () => V({
51
- nmorph: [P[e.height]],
50
+ () => B({
51
+ nmorph: [T[e.height]],
52
52
  "nmorph-date-picker": [e.disabled && "disabled", e.type, l.value && "focus"]
53
53
  })
54
- ), C = a(() => ({
55
- ...e.width !== void 0 && { "--width": m(e.width) },
56
- ...e.calendarCellHeight !== void 0 && {
57
- "--date-picker-calendar-cell-height": m(e.calendarCellHeight)
58
- }
59
- })), o = u(!1), I = u(null), _ = () => {
54
+ ), D = a(
55
+ () => M({
56
+ "--width": e.width,
57
+ "--date-picker-calendar-cell-height": e.calendarCellHeight
58
+ })
59
+ ), o = u(!1), C = u(null), I = () => {
60
60
  o.value = !1;
61
- }, w = () => {
61
+ }, _ = () => {
62
62
  o.value = !o.value;
63
63
  }, A = a(() => {
64
64
  if (!t.value) return n.value;
@@ -70,30 +70,30 @@ const le = /* @__PURE__ */ B({
70
70
  };
71
71
  if (Array.isArray(t.value)) {
72
72
  if (t.value.length === 0) return n.value;
73
- const O = c(t.value, r), k = e.type === "daterange" ? e.rangeSeparator : e.valueSeparator;
74
- return O.join(k);
73
+ const x = m(t.value, r), O = e.type === "daterange" ? e.rangeSeparator : e.valueSeparator;
74
+ return x.join(O);
75
75
  } else
76
- return c(t.value, r);
76
+ return m(t.value, r);
77
77
  }), F = () => {
78
78
  const r = Array.isArray(t.value) ? [] : null;
79
79
  t.value = r, i(t.value);
80
- }, H = (r) => {
80
+ }, w = (r) => {
81
81
  t.value = r, i(t.value);
82
82
  };
83
- M(
83
+ V(
84
84
  d,
85
85
  (r) => {
86
86
  t.value = r;
87
87
  },
88
88
  { deep: !0 }
89
89
  );
90
- const x = a(() => Array.isArray(t.value) ? t.value.length > 0 : !!t.value), f = { t: p, props: e, id: g, name: q, autocomplete: S, placeholderText: n, emit: s, modelValue: d, updateModelValue: i, selectedDate: t, focus: l, focusHandler: N, blurHandler: D, modifiers: b, styles: C, open: o, nmorphInputDOMRef: I, closeHandler: _, toggleOpen: w, displayValue: A, clearHandler: F, updateSelectedDateHandler: H, showClearButton: x, get NmorphDropdown() {
90
+ const H = a(() => Array.isArray(t.value) ? t.value.length > 0 : !!t.value), f = { t: s, props: e, id: h, name: g, autocomplete: q, placeholderText: n, emit: p, modelValue: d, updateModelValue: i, selectedDate: t, focus: l, focusHandler: S, blurHandler: N, modifiers: b, styles: D, open: o, nmorphInputDOMRef: C, closeHandler: I, toggleOpen: _, displayValue: A, clearHandler: F, updateSelectedDateHandler: w, showClearButton: H, get NmorphDropdown() {
91
91
  return J;
92
92
  }, get NmorphIcon() {
93
93
  return G;
94
94
  }, get NmorphIconCalendar() {
95
95
  return E;
96
- }, NmorphClearButton: j, NmorphDatePickerContent: z };
96
+ }, NmorphClearButton: P, NmorphDatePickerContent: j };
97
97
  return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
98
98
  }
99
99
  });
@@ -1 +1 @@
1
- .nmorph-file-upload{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__trigger{position:relative}.nmorph-file-upload input{display:none}.nmorph-file-upload .nmorph-file-upload__list{width:100%;min-width:0;margin-top:var(--indentation-03)}.nmorph-file-upload .nmorph-file-upload__list>div{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__file{display:flex;gap:var(--indentation-02);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin-bottom:var(--indentation-02);padding:var(--indentation-02) var(--indentation-03);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-file-upload .nmorph-file-upload__file>.nmorph-image-preview{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-info{display:flex;flex:1 1 auto;gap:var(--indentation-02);align-items:center;min-width:0;overflow:hidden}.nmorph-file-upload .nmorph-file-upload__file-info>.nmorph-icon{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-name{display:block;flex:1 1 auto;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-upload .nmorph-file-upload__remove-file{flex:0 0 auto}
1
+ .nmorph-file-upload{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__trigger{position:relative;width:100%;min-width:0}.nmorph-file-upload input{display:none}.nmorph-file-upload .nmorph-file-upload__list{width:100%;min-width:0;margin-top:var(--indentation-03)}.nmorph-file-upload .nmorph-file-upload__list>div{box-sizing:border-box;width:100%;min-width:0}.nmorph-file-upload .nmorph-file-upload__file{display:flex;gap:var(--indentation-02);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin-bottom:var(--indentation-02);padding:var(--indentation-02) var(--indentation-03);overflow:hidden;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-file-upload .nmorph-file-upload__file>.nmorph-image-preview{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-info{display:flex;flex:1 1 0;gap:var(--indentation-02);align-items:center;min-width:0;max-width:100%;overflow:hidden}.nmorph-file-upload .nmorph-file-upload__file-info>.nmorph-icon{flex:0 0 auto}.nmorph-file-upload .nmorph-file-upload__file-name{display:block;flex:1 1 0;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-upload .nmorph-file-upload__remove-file{flex:0 0 auto}