@nmorph/nmorph-ui-kit 2.2.37 → 2.2.39

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 (239) hide show
  1. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +4 -4
  2. package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +12 -10
  3. package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +19 -16
  4. package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
  5. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +30 -26
  6. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +42 -40
  7. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +16 -13
  8. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +24 -21
  9. package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +23 -21
  10. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +43 -42
  11. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +47 -45
  12. package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +18 -14
  13. package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +15 -11
  14. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +15 -12
  15. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +44 -40
  16. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +1 -1
  17. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +21 -19
  18. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +27 -24
  19. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +19 -15
  20. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +10 -8
  21. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +25 -23
  22. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +66 -64
  23. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
  24. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +28 -26
  25. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +25 -20
  26. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +18 -22
  27. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +52 -42
  28. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +52 -40
  29. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  30. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +20 -16
  31. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +96 -98
  32. package/dist/components/form/nmorph-form/NmorphForm.vue2.js +9 -9
  33. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
  34. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +33 -24
  35. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +4 -4
  36. package/dist/components/form/nmorph-form/use-form-item-input.js +29 -8
  37. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +41 -35
  38. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +65 -61
  39. package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
  40. package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +1 -1
  41. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +24 -22
  42. package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
  43. package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +90 -78
  44. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -18
  45. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +31 -25
  46. package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +50 -49
  47. package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +35 -32
  48. package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
  49. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +17 -17
  50. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +41 -35
  51. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +13 -13
  52. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +38 -32
  53. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +17 -17
  54. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +79 -71
  55. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +25 -23
  56. package/dist/hooks/use-field-validation.js +56 -43
  57. package/dist/hooks/use-focusable-input.js +27 -0
  58. package/dist/hooks/use-form-validation.js +62 -24
  59. package/dist/hooks/use-nmorph-translation.js +4 -4
  60. package/dist/index.es.js +842 -837
  61. package/dist/index.umd.js +36 -36
  62. package/dist/package.json.js +1 -1
  63. package/dist/plugin.js +47 -42
  64. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +4 -17
  65. package/dist/src/components/basic/nmorph-button/types.d.ts +13 -0
  66. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +3 -9
  67. package/dist/src/components/basic/nmorph-icon/types.d.ts +6 -0
  68. package/dist/src/components/basic/nmorph-layout/NmorphLayout.vue.d.ts +2 -9
  69. package/dist/src/components/basic/nmorph-layout/types.d.ts +8 -0
  70. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +2 -13
  71. package/dist/src/components/basic/nmorph-link/types.d.ts +11 -0
  72. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +2 -2
  73. package/dist/src/components/basic/nmorph-scroll/types.d.ts +5 -0
  74. package/dist/src/components/basic/nmorph-space/NmorphSpace.vue.d.ts +2 -15
  75. package/dist/src/components/basic/nmorph-space/types.d.ts +14 -0
  76. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +6 -21
  77. package/dist/src/components/data/nmorph-avatar/types.d.ts +21 -0
  78. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +4 -39
  79. package/dist/src/components/data/nmorph-badge/types.d.ts +34 -0
  80. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +4 -12
  81. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -9
  82. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +12 -0
  83. package/dist/src/components/data/nmorph-calendar/types.d.ts +13 -0
  84. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +2 -10
  85. package/dist/src/components/data/nmorph-card/types.d.ts +9 -0
  86. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -5
  87. package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +2 -4
  88. package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/types.d.ts +3 -0
  89. package/dist/src/components/data/nmorph-carousel/types.d.ts +6 -0
  90. package/dist/src/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +3 -7
  91. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +4 -10
  92. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +13 -0
  93. package/dist/src/components/data/nmorph-collapse/types.d.ts +7 -0
  94. package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +4 -13
  95. package/dist/src/components/data/nmorph-empty/types.d.ts +11 -0
  96. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -8
  97. package/dist/src/components/data/nmorph-image/types.d.ts +10 -0
  98. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -18
  99. package/dist/src/components/data/nmorph-image-preview/types.d.ts +19 -0
  100. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -13
  101. package/dist/src/components/data/nmorph-pagination/types.d.ts +14 -0
  102. package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +2 -14
  103. package/dist/src/components/data/nmorph-progress/types.d.ts +12 -0
  104. package/dist/src/components/data/nmorph-qr-code/NmorphQRCode.vue.d.ts +5 -15
  105. package/dist/src/components/data/nmorph-qr-code/types.d.ts +12 -0
  106. package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +2 -7
  107. package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +3 -9
  108. package/dist/src/components/data/nmorph-skeleton/components/types.d.ts +8 -0
  109. package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -0
  110. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +3 -17
  111. package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +2 -4
  112. package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/types.d.ts +3 -0
  113. package/dist/src/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +4 -5
  114. package/dist/src/components/data/nmorph-table/components/nmorph-table-column/types.d.ts +3 -0
  115. package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +4 -6
  116. package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/types.d.ts +7 -0
  117. package/dist/src/components/data/nmorph-table/types.d.ts +15 -0
  118. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +5 -8
  119. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +3 -5
  120. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/types.d.ts +6 -0
  121. package/dist/src/components/data/nmorph-tag-list/types.d.ts +7 -0
  122. package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +3 -14
  123. package/dist/src/components/data/nmorph-virtual-list/types.d.ts +15 -0
  124. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +5 -7
  125. package/dist/src/components/feedback/nmorph-alert/types.d.ts +5 -0
  126. package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +3 -15
  127. package/dist/src/components/feedback/nmorph-callout/types.d.ts +12 -0
  128. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +4 -19
  129. package/dist/src/components/feedback/nmorph-dialog/types.d.ts +20 -0
  130. package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +4 -17
  131. package/dist/src/components/feedback/nmorph-drawer/types.d.ts +18 -0
  132. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +5 -14
  133. package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +11 -0
  134. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +6 -19
  135. package/dist/src/components/form/nmorph-autocomplete/types.d.ts +18 -0
  136. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -1
  137. package/dist/src/components/form/nmorph-checkbox/types.d.ts +3 -0
  138. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +5 -11
  139. package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +11 -0
  140. package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +6 -11
  141. package/dist/src/components/form/nmorph-color-picker/types.d.ts +11 -0
  142. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +5 -21
  143. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/types.d.ts +3 -0
  144. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +3 -8
  145. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/types.d.ts +10 -0
  146. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +3 -6
  147. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/types.d.ts +12 -0
  148. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +3 -6
  149. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/types.d.ts +9 -0
  150. package/dist/src/components/form/nmorph-date-picker/types.d.ts +21 -0
  151. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +7 -12
  152. package/dist/src/components/form/nmorph-file-upload/types.d.ts +21 -0
  153. package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +4 -8
  154. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +3 -12
  155. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +3 -8
  156. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +7 -0
  157. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +3 -6
  158. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/types.d.ts +5 -0
  159. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +10 -0
  160. package/dist/src/components/form/nmorph-form/types.d.ts +21 -6
  161. package/dist/src/components/form/nmorph-form/use-form-item-input.d.ts +10 -0
  162. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +3 -10
  163. package/dist/src/components/form/nmorph-number-input/types.d.ts +11 -0
  164. package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +5 -13
  165. package/dist/src/components/form/nmorph-otp-input/types.d.ts +21 -0
  166. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +4 -9
  167. package/dist/src/components/form/nmorph-radio/types.d.ts +6 -0
  168. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +4 -12
  169. package/dist/src/components/form/nmorph-radio-group/types.d.ts +12 -0
  170. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +3 -21
  171. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
  172. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/types.d.ts +3 -0
  173. package/dist/src/components/form/nmorph-select/types.d.ts +21 -0
  174. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +4 -12
  175. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +3 -6
  176. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +4 -0
  177. package/dist/src/components/form/nmorph-select-button/types.d.ts +12 -0
  178. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +111 -0
  179. package/dist/src/components/form/nmorph-slider/types.d.ts +3 -0
  180. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +3 -14
  181. package/dist/src/components/form/nmorph-switch/types.d.ts +15 -0
  182. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +6 -14
  183. package/dist/src/components/form/nmorph-text-input/types.d.ts +16 -0
  184. package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +6 -18
  185. package/dist/src/components/form/nmorph-textarea/types.d.ts +20 -0
  186. package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +6 -20
  187. package/dist/src/components/form/nmorph-time-picker/types.d.ts +24 -0
  188. package/dist/src/components/navigation/index.d.ts +1 -1
  189. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +4 -12
  190. package/dist/src/components/navigation/nmorph-backtop/types.d.ts +14 -0
  191. package/dist/src/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +2 -4
  192. package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +2 -4
  193. package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/types.d.ts +3 -0
  194. package/dist/src/components/navigation/nmorph-breadcrumb/types.d.ts +3 -0
  195. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +10 -31
  196. package/dist/src/components/navigation/nmorph-context-menu/types.d.ts +42 -0
  197. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +6 -24
  198. package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +24 -0
  199. package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +4 -8
  200. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +4 -5
  201. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/types.d.ts +3 -0
  202. package/dist/src/components/navigation/nmorph-tabs/{type.d.ts → types.d.ts} +9 -0
  203. package/dist/src/components/navigation/nmorph-tabs/utils.d.ts +1 -1
  204. package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +2 -5
  205. package/dist/src/components/others/nmorph-divider/types.d.ts +3 -0
  206. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +3 -12
  207. package/dist/src/components/others/nmorph-overlay/types.d.ts +14 -0
  208. package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +2 -8
  209. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +9 -0
  210. package/dist/src/hooks/use-field-validation.d.ts +15 -0
  211. package/dist/src/hooks/use-focusable-input.d.ts +16 -0
  212. package/dist/src/hooks/use-form-validation.d.ts +4 -0
  213. package/dist/src/plugin.d.ts +4 -1
  214. package/dist/src/types/app.types.d.ts +21 -0
  215. package/dist/src/types/common.types.d.ts +62 -0
  216. package/dist/src/types/date.types.d.ts +7 -0
  217. package/dist/src/types/image.types.d.ts +17 -0
  218. package/dist/src/types/index.d.ts +8 -206
  219. package/dist/src/types/selection.types.d.ts +26 -0
  220. package/dist/src/types/table.types.d.ts +5 -0
  221. package/dist/src/types/theme.types.d.ts +55 -0
  222. package/dist/src/types/translation.types.d.ts +20 -0
  223. package/dist/src/utils/common.d.ts +3 -0
  224. package/dist/src/utils/file-types.d.ts +8 -0
  225. package/dist/src/utils/index.d.ts +1 -0
  226. package/dist/style.css +1 -1
  227. package/dist/types/common.types.js +14 -0
  228. package/dist/types/date.types.js +4 -0
  229. package/dist/types/image.types.js +5 -0
  230. package/dist/types/selection.types.js +4 -0
  231. package/dist/types/table.types.js +4 -0
  232. package/dist/types/translation.types.js +4 -0
  233. package/dist/utils/common.js +16 -7
  234. package/dist/utils/file-types.js +41 -0
  235. package/package.json +1 -1
  236. package/dist/src/components/data/nmorph-calendar/hooks/index.d.ts +0 -2
  237. package/dist/src/hooks/index.d.ts +0 -9
  238. package/dist/src/outside-hooks/index.d.ts +0 -5
  239. package/dist/types/index.js +0 -20
@@ -1,11 +1,12 @@
1
1
  import './NmorphCheckboxGroup.css';
2
- import { defineComponent as m, ref as h, watch as g, computed as d, provide as o } from "vue";
3
- import { useModifiers as b } from "../../../utils/create-modifiers.js";
4
- import y from "../nmorph-checkbox/NmorphCheckbox.vue.js";
5
- const _ = /* @__PURE__ */ m({
2
+ import { defineComponent as g, ref as b, watch as v, computed as p, provide as u } from "vue";
3
+ import { useModifiers as y } from "../../../utils/create-modifiers.js";
4
+ import { useFormItemModel as q } from "../nmorph-form/use-form-item-input.js";
5
+ import x from "../nmorph-checkbox/NmorphCheckbox.vue.js";
6
+ const N = /* @__PURE__ */ g({
6
7
  __name: "NmorphCheckboxGroup",
7
8
  props: {
8
- modelValue: { type: Array, required: !0, default: () => [] },
9
+ modelValue: { type: Array, required: !1, default: () => [] },
9
10
  options: { type: Array, required: !1, default: () => [] },
10
11
  design: { type: String, required: !1, default: "button" },
11
12
  direction: { type: null, required: !1, default: "row" },
@@ -17,30 +18,34 @@ const _ = /* @__PURE__ */ m({
17
18
  tabindex: { type: Number, required: !1 }
18
19
  },
19
20
  emits: ["update:model-value"],
20
- setup(n, { expose: p, emit: s }) {
21
- p();
22
- const r = n, e = h([...r.modelValue]);
23
- g(
24
- () => r.modelValue,
21
+ setup(s, { expose: c, emit: f }) {
22
+ c();
23
+ const r = s, a = f, { modelValue: o, updateModelValue: l } = q(
24
+ r,
25
+ (t) => a("update:model-value", t),
26
+ []
27
+ ), e = b([...o.value]);
28
+ v(
29
+ o,
25
30
  (t) => {
26
31
  e.value = [...t];
27
32
  },
28
33
  { deep: !0 }
29
34
  );
30
- const u = s, a = (t) => {
31
- e.value = e.value.includes(t) ? e.value.filter((f) => f !== t) : [...e.value, t], u("update:model-value", e.value);
32
- }, c = d(
33
- () => b({
35
+ const i = (t) => {
36
+ e.value = e.value.includes(t) ? e.value.filter((h) => h !== t) : [...e.value, t], l(e.value);
37
+ }, m = p(
38
+ () => y({
34
39
  "nmorph-checkbox-group": [r.design, r.direction]
35
40
  })
36
- ), l = d(() => r.height);
37
- o("checkbox-group-selected-value", e), o("change-checkbox-value-handler", a), o("checkbox-group-height", l);
38
- const i = { props: r, initialValue: e, emit: u, changeHandler: a, modifiers: c, height: l, get NmorphCheckbox() {
39
- return y;
41
+ ), d = p(() => r.height);
42
+ u("checkbox-group-selected-value", e), u("change-checkbox-value-handler", i), u("checkbox-group-height", d);
43
+ const n = { props: r, emit: a, modelValue: o, updateModelValue: l, initialValue: e, changeHandler: i, modifiers: m, height: d, get NmorphCheckbox() {
44
+ return x;
40
45
  } };
41
- return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
46
+ return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
42
47
  }
43
48
  });
44
49
  export {
45
- _ as default
50
+ N as default
46
51
  };
@@ -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 R, ref as h, watch as j, onMounted as k, computed as C } from "vue";
3
- import { NmorphComponentHeight as B } from "../../../types/index.js";
4
- import { useModifiers as H } from "../../../utils/create-modifiers.js";
5
- import { useFormItemInput as L } from "../nmorph-form/use-form-item-input.js";
6
- const E = /* @__PURE__ */ R({
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,51 +18,60 @@ const E = /* @__PURE__ */ R({
17
18
  tabindex: { type: Number, required: !1 }
18
19
  },
19
20
  emits: ["update:model-value", "focus", "blur"],
20
- setup(_, { expose: q, emit: M }) {
21
- const o = _, g = M, { id: V, name: S, tabindex: x } = L(o), s = (e, r = "#000000") => {
21
+ setup(_, { expose: q, emit: F }) {
22
+ const n = _, d = F, { id: I, name: S, tabindex: V } = D(n), { modelValue: c, updateModelValue: g } = E(
23
+ n,
24
+ (e) => d("update:model-value", e),
25
+ ""
26
+ ), l = (e, r = "#000000") => {
22
27
  const t = e?.trim() || "";
23
- return /^#[\da-f]{6}$/i.test(t) ? t.toLowerCase() : /^#[\da-f]{3}$/i.test(t) ? `#${t.slice(1).split("").map((n) => `${n}${n}`).join("").toLowerCase()}` : r;
24
- }, c = h(null), m = () => {
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;
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 = () => {
25
38
  if (typeof document > "u") return "#006cb6";
26
- const e = c.value || document.documentElement, r = getComputedStyle(e).getPropertyValue("--nmorph-accent-color").trim();
27
- return s(r, "#006cb6");
28
- }, a = h(s(o.modelValue)), b = h(!1);
29
- j(
30
- () => o.modelValue,
31
- (e) => {
32
- a.value = e ? s(e) : m();
33
- }
34
- );
35
- const I = (e) => {
36
- const r = e.target, t = s(r.value);
37
- a.value = t, g("update:model-value", t);
38
- }, p = (e) => [
39
+ const e = p.value || document.documentElement, r = getComputedStyle(e).getPropertyValue("--nmorph-accent-color").trim();
40
+ return l(r, "#006cb6");
41
+ }, a = H(l(c.value));
42
+ L(c, (e) => {
43
+ a.value = e ? l(e) : f();
44
+ });
45
+ const R = (e) => {
46
+ const r = e.target, t = l(r.value);
47
+ a.value = t, g(t);
48
+ }, h = (e) => [
39
49
  parseInt(e.slice(1, 3), 16),
40
50
  parseInt(e.slice(3, 5), 16),
41
51
  parseInt(e.slice(5, 7), 16)
42
- ], y = (e) => {
43
- const [r, t, n] = p(e);
44
- return `rgb(${r}, ${t}, ${n})`;
45
- }, v = (e) => {
46
- const [r, t, n] = p(e).map((P) => P / 255), l = Math.max(r, t, n), u = Math.min(r, t, n), f = (l + u) / 2;
47
- if (l === u)
48
- return `hsl(0, 0%, ${Math.round(f * 100)}%)`;
49
- const i = l - u, N = f > 0.5 ? i / (2 - l - u) : i / (l + u);
50
- let d = 0;
51
- return l === r ? d = (t - n) / i + (t < n ? 6 : 0) : l === t ? d = (n - r) / i + 2 : d = (r - t) / i + 4, `hsl(${Math.round(d * 60)}, ${Math.round(N * 100)}%, ${Math.round(f * 100)}%)`;
52
+ ], v = (e) => {
53
+ const [r, t, o] = h(e);
54
+ return `rgb(${r}, ${t}, ${o})`;
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)}%)`;
52
62
  };
53
- k(() => {
54
- o.modelValue || (a.value = m());
55
- }), q({ inputDOMRef: c });
56
- const F = C(
57
- () => H({
58
- nmorph: [B[o.height], b.value && "focused"],
59
- "nmorph-color-picker": [o.disabled && "disabled", o.displayFormat]
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"],
69
+ "nmorph-color-picker": [n.disabled && "disabled", n.displayFormat]
60
70
  })
61
- ), w = C(() => o.displayFormat === "rgb" ? y(a.value) : o.displayFormat === "hsl" ? v(a.value) : a.value.toUpperCase()), $ = { props: o, emit: g, id: V, name: S, tabindex: x, normalizeColor: s, inputDOMRef: c, resolveAccentColor: m, currentValue: a, focused: b, handleInput: I, hexToRgb: p, formatRgb: y, formatHsl: v, modifiers: F, displayValue: w };
62
- return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
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;
63
73
  }
64
74
  });
65
75
  export {
66
- E as default
76
+ W as default
67
77
  };
@@ -1,21 +1,21 @@
1
1
  import './NmorphDatePicker.css';
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 { toCssSize as s } from "../../../utils/common.js";
5
- import { NmorphComponentHeight as B } from "../../../types/index.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";
6
5
  import P from "./inner-components/nmorph-clear-button/NmorphClearButton.vue.js";
7
- import V from "./inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js";
8
- import { useI18n as j } from "vue-i18n";
9
- import { useFormItemInput as z } from "../nmorph-form/use-form-item-input.js";
10
- import { formatDate as f } from "../../data/nmorph-calendar/utils.js";
11
- import L from "../../../assets/icons/calendar.svg.js";
12
- import M from "../../basic/nmorph-icon/NmorphIcon.vue.js";
13
- import R from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
14
- const ee = /* @__PURE__ */ O({
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
+ import E from "../../../assets/icons/calendar.svg.js";
12
+ import G from "../../basic/nmorph-icon/NmorphIcon.vue.js";
13
+ import J from "../../navigation/nmorph-dropdown/NmorphDropdown.vue.js";
14
+ const le = /* @__PURE__ */ k({
15
15
  __name: "NmorphDatePicker",
16
16
  props: {
17
17
  placeholder: { type: String, required: !1, default: "" },
18
- modelValue: { type: [Date, Array, null], required: !0, default: null },
18
+ modelValue: { type: [Date, Array, null], required: !1, default: null },
19
19
  type: { type: null, required: !1, default: "date" },
20
20
  textSeparator: { type: String, required: !1, default: "-" },
21
21
  initialDate: { type: Date, required: !1, default: () => /* @__PURE__ */ new Date() },
@@ -36,23 +36,27 @@ const ee = /* @__PURE__ */ O({
36
36
  tabindex: { type: Number, required: !1 }
37
37
  },
38
38
  emits: ["update:model-value"],
39
- setup(m, { expose: c, emit: v }) {
40
- c();
41
- const { t: i } = j(), e = m, { id: y, name: h, autocomplete: g } = z(e), n = a(() => e.placeholder ? e.placeholder : i("pickADate")), t = u(e.modelValue), d = v, l = u(!1), q = () => {
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
+ e,
43
+ (r) => p("update:model-value", r),
44
+ null
45
+ ), t = u(d.value), l = u(!1), S = () => {
42
46
  l.value = !0;
43
- }, S = () => {
47
+ }, N = () => {
44
48
  l.value = !1;
45
- }, N = a(
46
- () => k({
47
- nmorph: [B[e.height]],
49
+ }, b = a(
50
+ () => B({
51
+ nmorph: [T[e.height]],
48
52
  "nmorph-date-picker": [e.disabled && "disabled", e.type, l.value && "focus"]
49
53
  })
50
- ), D = a(() => ({
51
- ...e.width !== void 0 && { "--width": s(e.width) },
52
- ...e.calendarCellHeight !== void 0 && {
53
- "--date-picker-calendar-cell-height": s(e.calendarCellHeight)
54
- }
55
- })), o = u(!1), b = u(null), C = () => {
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 = () => {
56
60
  o.value = !1;
57
61
  }, _ = () => {
58
62
  o.value = !o.value;
@@ -66,25 +70,33 @@ const ee = /* @__PURE__ */ O({
66
70
  };
67
71
  if (Array.isArray(t.value)) {
68
72
  if (t.value.length === 0) return n.value;
69
- const F = f(t.value, r), x = e.type === "daterange" ? e.rangeSeparator : e.valueSeparator;
70
- return F.join(x);
73
+ const x = m(t.value, r), O = e.type === "daterange" ? e.rangeSeparator : e.valueSeparator;
74
+ return x.join(O);
71
75
  } else
72
- return f(t.value, r);
73
- }), H = () => {
76
+ return m(t.value, r);
77
+ }), F = () => {
74
78
  const r = Array.isArray(t.value) ? [] : null;
75
- t.value = r, d("update:model-value", t.value);
76
- }, I = (r) => {
77
- t.value = r, d("update:model-value", t.value);
78
- }, w = a(() => Array.isArray(t.value) ? t.value.length > 0 : !!t.value), p = { t: i, props: e, id: y, name: h, autocomplete: g, placeholderText: n, selectedDate: t, emit: d, focus: l, focusHandler: q, blurHandler: S, modifiers: N, styles: D, open: o, nmorphInputDOMRef: b, closeHandler: C, toggleOpen: _, displayValue: A, clearHandler: H, updateSelectedDateHandler: I, showClearButton: w, get NmorphDropdown() {
79
- return R;
79
+ t.value = r, i(t.value);
80
+ }, w = (r) => {
81
+ t.value = r, i(t.value);
82
+ };
83
+ V(
84
+ d,
85
+ (r) => {
86
+ t.value = r;
87
+ },
88
+ { deep: !0 }
89
+ );
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
+ return J;
80
92
  }, get NmorphIcon() {
81
- return M;
93
+ return G;
82
94
  }, get NmorphIconCalendar() {
83
- return L;
84
- }, NmorphClearButton: P, NmorphDatePickerContent: V };
85
- return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
95
+ return E;
96
+ }, NmorphClearButton: P, NmorphDatePickerContent: j };
97
+ return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
86
98
  }
87
99
  });
88
100
  export {
89
- ee as default
101
+ le as default
90
102
  };
@@ -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}
@@ -1,30 +1,34 @@
1
1
  import './NmorphFileUpload.css';
2
- import m from "./NmorphFileUpload.vue2.js";
3
- import { openBlock as o, createElementBlock as r, normalizeClass as d, createElementVNode as l, renderSlot as _, createVNode as n, TransitionGroup as h, withCtx as t, Fragment as f, renderList as v, createBlock as a, createCommentVNode as p, resolveDynamicComponent as u, toDisplayString as g } from "vue";
2
+ import p from "./NmorphFileUpload.vue2.js";
3
+ import { openBlock as o, createElementBlock as r, normalizeClass as s, createElementVNode as l, renderSlot as _, createVNode as n, TransitionGroup as h, withCtx as t, Fragment as f, renderList as v, createBlock as a, createCommentVNode as m, resolveDynamicComponent as u, toDisplayString as g } from "vue";
4
4
  /* empty css */
5
- import y from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const k = { class: "nmorph-file-upload__trigger" }, N = ["multiple", "disabled", "accept"], C = {
5
+ import b from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ const x = { class: "nmorph-file-upload__trigger" }, y = ["id", "name", "autocomplete", "tabindex", "multiple", "disabled", "accept"], k = {
7
7
  key: 0,
8
8
  class: "nmorph-file-upload__list"
9
- }, b = { class: "nmorph-file-upload__file-info" }, x = { class: "nmorph-file-upload__file-name" }, F = { class: "nmorph-file-upload__remove-file" };
10
- function B(s, I, w, e, D, S) {
9
+ }, N = { class: "nmorph-file-upload__file-info" }, C = { class: "nmorph-file-upload__file-name" }, F = { class: "nmorph-file-upload__remove-file" };
10
+ function B(d, I, w, e, D, S) {
11
11
  return o(), r(
12
12
  "div",
13
13
  {
14
- class: d(e.modifiers)
14
+ class: s(e.modifiers)
15
15
  },
16
16
  [
17
- l("div", k, [
17
+ l("div", x, [
18
18
  l("input", {
19
+ id: e.id,
19
20
  ref: "inputDOMRef",
21
+ name: e.name,
22
+ autocomplete: e.autocomplete,
23
+ tabindex: e.tabindex,
20
24
  type: "file",
21
25
  multiple: e.props.multiple,
22
26
  disabled: e.props.disabled,
23
27
  accept: e.inputAccept,
24
28
  class: "nmorph-native-input",
25
29
  onChange: e.handleFileUpload
26
- }, null, 40, N),
27
- _(s.$slots, "trigger", {}, () => [
30
+ }, null, 40, y),
31
+ _(d.$slots, "trigger", {}, () => [
28
32
  n(e.NmorphButton, {
29
33
  text: e.computedButtonText,
30
34
  fill: "",
@@ -33,7 +37,7 @@ function B(s, I, w, e, D, S) {
33
37
  }, null, 8, ["text", "disabled"])
34
38
  ])
35
39
  ]),
36
- e.files.length > 0 ? (o(), r("div", C, [
40
+ e.files.length > 0 ? (o(), r("div", k, [
37
41
  n(h, {
38
42
  name: "list",
39
43
  tag: "div"
@@ -49,8 +53,8 @@ function B(s, I, w, e, D, S) {
49
53
  e.props.photoWithPreview && e.isImageFile(i) ? (o(), a(e.NmorphImagePreview, {
50
54
  key: 0,
51
55
  src: c
52
- }, null, 8, ["src"])) : p("v-if", !0),
53
- l("div", b, [
56
+ }, null, 8, ["src"])) : m("v-if", !0),
57
+ l("div", N, [
54
58
  n(
55
59
  e.NmorphIcon,
56
60
  {
@@ -69,7 +73,7 @@ function B(s, I, w, e, D, S) {
69
73
  ),
70
74
  l(
71
75
  "span",
72
- x,
76
+ C,
73
77
  g(i.name),
74
78
  1
75
79
  /* TEXT */
@@ -96,13 +100,13 @@ function B(s, I, w, e, D, S) {
96
100
  _: 1
97
101
  /* STABLE */
98
102
  })
99
- ])) : p("v-if", !0)
103
+ ])) : m("v-if", !0)
100
104
  ],
101
105
  2
102
106
  /* CLASS */
103
107
  );
104
108
  }
105
- const T = /* @__PURE__ */ y(m, [["render", B], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-file-upload/NmorphFileUpload.vue"]]);
109
+ const T = /* @__PURE__ */ b(p, [["render", B], ["__file", "/builds/ketjo/nmorph/library/src/components/form/nmorph-file-upload/NmorphFileUpload.vue"]]);
106
110
  export {
107
111
  T as default
108
112
  };