@nmorph/nmorph-ui-kit 2.2.59 → 3.0.0

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 (315) hide show
  1. package/dist/assets/icons/expand.svg.js +13 -6
  2. package/dist/assets/icons/hand.svg.js +21 -0
  3. package/dist/assets/icons/list-simple.svg.js +21 -0
  4. package/dist/assets/icons/pagination.svg.js +18 -5
  5. package/dist/assets/icons/speaker-off.svg.js +28 -0
  6. package/dist/assets/icons/speaker.svg.js +21 -0
  7. package/dist/assets/icons/triangle-down.svg.js +6 -6
  8. package/dist/assets/icons/video-camera-off.svg.js +28 -0
  9. package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
  10. package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +20 -20
  11. package/dist/components/basic/nmorph-button/types.js +12 -4
  12. package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
  13. package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +10 -10
  14. package/dist/components/basic/nmorph-icon/NmorphIcons.js +405 -395
  15. package/dist/components/basic/nmorph-icon/types.js +6 -2
  16. package/dist/components/basic/nmorph-layout/NmorphLayout.css +1 -1
  17. package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +7 -7
  18. package/dist/components/basic/nmorph-link/NmorphLink.css +1 -1
  19. package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +7 -7
  20. package/dist/components/basic/nmorph-link/types.js +7 -2
  21. package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
  22. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -3
  23. package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +123 -112
  24. package/dist/components/basic/nmorph-scroll/types.js +13 -3
  25. package/dist/components/basic/nmorph-space/NmorphSpace.css +1 -1
  26. package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +9 -9
  27. package/dist/components/basic/nmorph-text/NmorphText.vue.js +19 -0
  28. package/dist/components/basic/nmorph-text/NmorphText.vue2.js +50 -0
  29. package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.css +1 -1
  30. package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +22 -12
  31. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
  32. package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +8 -6
  33. package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
  34. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +54 -51
  35. package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +41 -36
  36. package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
  37. package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +47 -51
  38. package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -1
  39. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -32
  40. package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +35 -34
  41. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -1
  42. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +25 -22
  43. package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +10 -9
  44. package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
  45. package/dist/components/data/nmorph-card/NmorphCard.vue2.js +20 -19
  46. package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -0
  47. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +12 -10
  48. package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
  49. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
  50. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +29 -17
  51. package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +35 -29
  52. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
  53. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +12 -12
  54. package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue2.js +103 -89
  55. package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
  56. package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +12 -12
  57. package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
  58. package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +2 -2
  59. package/dist/components/data/nmorph-image/NmorphImage.css +1 -1
  60. package/dist/components/data/nmorph-image/NmorphImage.vue2.js +32 -20
  61. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
  62. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +66 -62
  63. package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +53 -51
  64. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
  65. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +17 -15
  66. package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +56 -54
  67. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
  68. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +21 -21
  69. package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +9 -8
  70. package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
  71. package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +50 -50
  72. package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +23 -23
  73. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
  74. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +14 -12
  75. package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +22 -18
  76. package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -1
  77. package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +22 -22
  78. package/dist/components/data/nmorph-qr-code/NmorphQRCode.css +1 -1
  79. package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +18 -19
  80. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -1
  81. package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +5 -5
  82. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -1
  83. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
  84. package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +4 -4
  85. package/dist/components/data/nmorph-skeleton/types.js +6 -2
  86. package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
  87. package/dist/components/data/nmorph-table/NmorphTable.vue2.js +13 -13
  88. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -1
  89. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +36 -40
  90. package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +14 -23
  91. package/dist/components/data/nmorph-tag-list/NmorphTagList.css +1 -1
  92. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +38 -44
  93. package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +14 -29
  94. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
  95. package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +34 -34
  96. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
  97. package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +26 -22
  98. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.css +1 -1
  99. package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +6 -6
  100. package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -1
  101. package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +10 -10
  102. package/dist/components/feedback/nmorph-alert/types.js +6 -1
  103. package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
  104. package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +16 -16
  105. package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
  106. package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +36 -35
  107. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.css +1 -1
  108. package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +9 -9
  109. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
  110. package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +33 -33
  111. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
  112. package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +21 -21
  113. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
  114. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +21 -18
  115. package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +20 -20
  116. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
  117. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +15 -15
  118. package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +30 -31
  119. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +20 -21
  120. package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +28 -28
  121. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -1
  122. package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +27 -27
  123. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
  124. package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +40 -38
  125. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +94 -108
  126. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +14 -19
  127. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +55 -64
  128. package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +32 -37
  129. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
  130. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +10 -10
  131. package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +1 -1
  132. package/dist/components/form/nmorph-file-upload/types.js +34 -16
  133. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
  134. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +12 -12
  135. package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +7 -7
  136. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +6 -6
  137. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -1
  138. package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +12 -13
  139. package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
  140. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +41 -37
  141. package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +28 -28
  142. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -1
  143. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +19 -19
  144. package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +37 -37
  145. package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
  146. package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +4 -4
  147. package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +21 -21
  148. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +18 -18
  149. package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +21 -21
  150. package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
  151. package/dist/components/form/nmorph-select/NmorphSelect.vue.js +86 -77
  152. package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +52 -52
  153. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
  154. package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -21
  155. package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
  156. package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +27 -23
  157. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
  158. package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +13 -11
  159. package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -1
  160. package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +52 -47
  161. package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
  162. package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +26 -26
  163. package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
  164. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +35 -36
  165. package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +49 -36
  166. package/dist/components/form/nmorph-textarea/NmorphTextarea.css +1 -1
  167. package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +18 -18
  168. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
  169. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +1 -1
  170. package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +44 -44
  171. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -1
  172. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +11 -11
  173. package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +15 -15
  174. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
  175. package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +9 -9
  176. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
  177. package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +6 -5
  178. package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue2.js +20 -20
  179. package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -1
  180. package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +9 -8
  181. package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -1
  182. package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
  183. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
  184. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +35 -25
  185. package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +22 -25
  186. package/dist/components/providers/nmorph-notification-provider/types.js +9 -2
  187. package/dist/emoji/base.js +571 -20
  188. package/dist/hooks/use-common-styles.js +228 -49
  189. package/dist/hooks/use-field-validation.js +42 -45
  190. package/dist/hooks/use-virtual-list.js +65 -57
  191. package/dist/icons.js +405 -395
  192. package/dist/index.es.js +854 -840
  193. package/dist/index.umd.js +245 -75
  194. package/dist/package.json.js +1 -1
  195. package/dist/plugin.js +37 -34
  196. package/dist/src/components/basic/index.d.ts +2 -0
  197. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +2 -2
  198. package/dist/src/components/basic/nmorph-button/types.d.ts +17 -19
  199. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
  200. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +5 -0
  201. package/dist/src/components/basic/nmorph-icon/types.d.ts +7 -6
  202. package/dist/src/components/basic/nmorph-link/types.d.ts +9 -8
  203. package/dist/src/components/basic/nmorph-scroll/types.d.ts +16 -14
  204. package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +20 -0
  205. package/dist/src/components/basic/nmorph-text/types.d.ts +12 -0
  206. package/dist/src/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.d.ts +5 -1
  207. package/dist/src/components/data/nmorph-audio-meter/types.d.ts +4 -0
  208. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
  209. package/dist/src/components/data/nmorph-avatar/types.d.ts +3 -2
  210. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +3 -2
  211. package/dist/src/components/data/nmorph-badge/types.d.ts +3 -8
  212. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -0
  213. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -1
  214. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +2 -0
  215. package/dist/src/components/data/nmorph-calendar/types.d.ts +2 -1
  216. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
  217. package/dist/src/components/data/nmorph-card/types.d.ts +2 -1
  218. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -0
  219. package/dist/src/components/data/nmorph-carousel/types.d.ts +2 -0
  220. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
  221. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +2 -2
  222. package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +7 -1
  223. package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +6 -0
  224. package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -2
  225. package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +1 -1
  226. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -0
  227. package/dist/src/components/data/nmorph-image/types.d.ts +2 -1
  228. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -1
  229. package/dist/src/components/data/nmorph-image-preview/types.d.ts +2 -0
  230. package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +2 -0
  231. package/dist/src/components/data/nmorph-media-gallery/types.d.ts +2 -0
  232. package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -0
  233. package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -0
  234. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
  235. package/dist/src/components/data/nmorph-pagination/types.d.ts +2 -2
  236. package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +4 -0
  237. package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +2 -3
  238. package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -5
  239. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +1 -1
  240. package/dist/src/components/data/nmorph-table/types.d.ts +2 -2
  241. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +3 -4
  242. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +2 -3
  243. package/dist/src/components/data/nmorph-tag-list/types.d.ts +2 -2
  244. package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +3 -1
  245. package/dist/src/components/data/nmorph-video-preview/types.d.ts +2 -0
  246. package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +1 -1
  247. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
  248. package/dist/src/components/feedback/nmorph-alert/types.d.ts +8 -7
  249. package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +1 -1
  250. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +1 -1
  251. package/dist/src/components/feedback/nmorph-dialog/types.d.ts +1 -4
  252. package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +1 -1
  253. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
  254. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
  255. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +2 -17
  256. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +2 -15
  257. package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +4 -6
  258. package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
  259. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +2 -1
  260. package/dist/src/components/form/nmorph-date-picker/types.d.ts +1 -0
  261. package/dist/src/components/form/nmorph-file-upload/types.d.ts +55 -55
  262. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
  263. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
  264. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +2 -2
  265. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +2 -2
  266. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
  267. package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
  268. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +2 -14
  269. package/dist/src/components/form/nmorph-radio/types.d.ts +6 -4
  270. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +2 -14
  271. package/dist/src/components/form/nmorph-radio-group/types.d.ts +4 -6
  272. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
  273. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
  274. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +2 -1
  275. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +1 -1
  276. package/dist/src/components/form/nmorph-select-button/types.d.ts +1 -0
  277. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -10
  278. package/dist/src/components/form/nmorph-slider/types.d.ts +1 -1
  279. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
  280. package/dist/src/components/form/nmorph-switch/types.d.ts +1 -1
  281. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +4 -1
  282. package/dist/src/components/form/nmorph-text-input/types.d.ts +3 -0
  283. package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
  284. package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
  285. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -2
  286. package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +1 -1
  287. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -1
  288. package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +2 -1
  289. package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +1 -0
  290. package/dist/src/components/others/nmorph-divider/types.d.ts +2 -0
  291. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
  292. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +8 -8
  293. package/dist/src/hooks/use-field-validation.d.ts +21 -24
  294. package/dist/src/hooks/use-nmorph-translation.d.ts +2 -2
  295. package/dist/src/types/app.types.d.ts +0 -5
  296. package/dist/src/types/common.types.d.ts +91 -35
  297. package/dist/src/types/date.types.d.ts +6 -5
  298. package/dist/src/types/image.types.d.ts +16 -12
  299. package/dist/src/types/selection.types.d.ts +19 -14
  300. package/dist/src/types/table.types.d.ts +6 -5
  301. package/dist/src/types/translation.types.d.ts +7 -6
  302. package/dist/src/utils/common.d.ts +2 -2
  303. package/dist/src/utils/file-types.d.ts +1 -1
  304. package/dist/src/utils/theme-style.d.ts +2 -0
  305. package/dist/style.css +1 -1
  306. package/dist/types/common.types.js +73 -8
  307. package/dist/types/date.types.js +6 -2
  308. package/dist/types/image.types.js +12 -3
  309. package/dist/types/table.types.js +5 -2
  310. package/dist/types/translation.types.js +6 -2
  311. package/dist/utils/common.js +3 -3
  312. package/dist/utils/file-types.js +6 -7
  313. package/dist/utils/theme-style.js +42 -48
  314. package/package.json +1 -1
  315. package/dist/types/selection.types.js +0 -4
@@ -1,80 +1,88 @@
1
- import { ref as m, computed as a, onMounted as V, nextTick as M, onUnmounted as $, watch as k } from "vue";
2
- const C = (n, h) => {
3
- const x = m(null), c = m(0), d = m(0), s = a(() => h.enabled?.value ?? !0), i = a(() => Math.max(h.overscan?.value ?? 0, 0)), u = a(() => h.dynamic?.value ?? !1), o = a(() => Math.max(h.itemHeight.value, 1)), g = m({}), w = (e) => u.value && g.value[e] || o.value, f = a(() => {
1
+ import { ref as p, computed as a, onMounted as $, nextTick as w, onUnmounted as k, watch as I } from "vue";
2
+ const C = (n, g) => {
3
+ const s = p(null), f = p(0), x = p(0);
4
+ let i = null;
5
+ const c = a(() => g.enabled?.value ?? !0), h = a(() => Math.max(g.overscan?.value ?? 0, 0)), r = a(() => g.dynamic?.value ?? !1), o = a(() => Math.max(g.itemHeight.value, 1)), m = p({}), H = (e) => r.value && m.value[e] || o.value, d = a(() => {
4
6
  const e = [];
5
7
  let t = 0;
6
8
  for (let l = 0; l < n.value.length; l++)
7
- e[l] = t, t += w(l);
9
+ e[l] = t, t += H(l);
8
10
  return { offsets: e, total: t };
9
- }), p = a(() => s.value ? u.value ? f.value.total : n.value.length * o.value : 0), r = () => {
10
- const e = x.value;
11
+ }), M = a(() => c.value ? r.value ? d.value.total : n.value.length * o.value : 0), u = () => {
12
+ const e = s.value;
11
13
  if (!e) return;
12
- const t = Math.max(p.value - e.clientHeight, 0);
13
- e.scrollTop > t && (e.scrollTop = t), c.value = e.scrollTop, d.value = e.clientHeight;
14
+ const t = Math.max(M.value - e.clientHeight, 0);
15
+ e.scrollTop > t && (e.scrollTop = t), f.value = e.scrollTop, x.value = e.clientHeight;
14
16
  }, y = () => {
15
- r();
17
+ u();
16
18
  }, v = a(() => {
17
- if (!s.value) return 0;
18
- if (u.value) {
19
- const e = f.value.offsets.findIndex((t, l) => t + w(l) >= c.value);
20
- return Math.max(e === -1 ? 0 : e - i.value, 0);
19
+ if (!c.value) return 0;
20
+ if (r.value) {
21
+ const e = d.value.offsets.findIndex((t, l) => t + H(l) >= f.value);
22
+ return Math.max(e === -1 ? 0 : e - h.value, 0);
21
23
  }
22
- return Math.max(Math.floor(c.value / o.value) - i.value, 0);
23
- }), H = a(() => {
24
- if (!s.value) return n.value.length;
25
- if (u.value) {
26
- const t = c.value + d.value;
24
+ return Math.max(Math.floor(f.value / o.value) - h.value, 0);
25
+ }), T = a(() => {
26
+ if (!c.value) return n.value.length;
27
+ if (r.value) {
28
+ const t = f.value + x.value;
27
29
  let l = v.value;
28
- for (; l < n.value.length && f.value.offsets[l] <= t; )
30
+ for (; l < n.value.length && d.value.offsets[l] <= t; )
29
31
  l++;
30
- return Math.min(l + i.value, n.value.length);
32
+ return Math.min(l + h.value, n.value.length);
31
33
  }
32
- const e = Math.ceil((c.value + d.value) / o.value) + i.value;
33
- return Math.min(Math.max(e, v.value + i.value), n.value.length);
34
- }), T = a(
35
- () => u.value ? f.value.offsets[v.value] || 0 : v.value * o.value
36
- ), z = a(() => s.value ? n.value.slice(v.value, H.value).map((e, t) => ({
34
+ const e = Math.ceil((f.value + x.value) / o.value) + h.value;
35
+ return Math.min(Math.max(e, v.value + h.value), n.value.length);
36
+ }), b = a(
37
+ () => r.value ? d.value.offsets[v.value] || 0 : v.value * o.value
38
+ ), O = a(() => c.value ? n.value.slice(v.value, T.value).map((e, t) => ({
37
39
  item: e,
38
40
  index: v.value + t
39
- })) : n.value.map((e, t) => ({ item: e, index: t }))), E = a(() => ({
40
- height: `${p.value}px`
41
- })), L = a(() => ({
42
- transform: `translateY(${T.value}px)`
43
- })), S = (e) => {
44
- const t = x.value;
45
- if (!t || !s.value) return;
46
- const l = Math.min(Math.max(e, 0), Math.max(n.value.length - 1, 0)), R = u.value ? f.value.offsets[l] || 0 : l * o.value;
47
- t.scrollTop = R, r();
48
- }, b = (e, t) => {
49
- if (!u.value || !t) return;
41
+ })) : n.value.map((e, t) => ({ item: e, index: t }))), R = a(() => ({
42
+ height: `${M.value}px`
43
+ })), E = a(() => ({
44
+ transform: `translateY(${b.value}px)`
45
+ })), L = (e) => {
46
+ const t = s.value;
47
+ if (!t || !c.value) return;
48
+ const l = Math.min(Math.max(e, 0), Math.max(n.value.length - 1, 0)), V = r.value ? d.value.offsets[l] || 0 : l * o.value;
49
+ t.scrollTop = V, u();
50
+ }, S = (e, t) => {
51
+ if (!r.value || !t) return;
50
52
  const l = Math.ceil(t.getBoundingClientRect().height || t.offsetHeight);
51
- !l || g.value[e] === l || (g.value = { ...g.value, [e]: l }, M(r));
52
- }, I = () => {
53
- r();
53
+ !l || m.value[e] === l || (m.value = { ...m.value, [e]: l }, w(u));
54
+ }, z = () => {
55
+ u();
54
56
  };
55
- return V(() => {
56
- M(r), typeof window < "u" && window.addEventListener("resize", I);
57
- }), $(() => {
58
- typeof window < "u" && window.removeEventListener("resize", I);
59
- }), k(
60
- () => [n.value.length, s.value, o.value, u.value],
57
+ return $(() => {
58
+ w(u), typeof window < "u" && (window.addEventListener("resize", z), "ResizeObserver" in window && (i = new ResizeObserver(u), s.value && i.observe(s.value)));
59
+ }), k(() => {
60
+ typeof window < "u" && window.removeEventListener("resize", z), i?.disconnect(), i = null;
61
+ }), I(
62
+ s,
63
+ (e, t) => {
64
+ t && i?.unobserve(t), e && i?.observe(e), w(u);
65
+ },
66
+ { flush: "post" }
67
+ ), I(
68
+ () => [n.value.length, c.value, o.value, r.value],
61
69
  () => {
62
- M(r);
70
+ w(u);
63
71
  }
64
72
  ), {
65
- containerRef: x,
66
- contentStyle: L,
67
- endIndex: H,
68
- offsetTop: T,
69
- refresh: r,
70
- measureElement: b,
73
+ containerRef: s,
74
+ contentStyle: E,
75
+ endIndex: T,
76
+ offsetTop: b,
77
+ refresh: u,
78
+ measureElement: S,
71
79
  scrollHandler: y,
72
- scrollToIndex: S,
73
- spacerStyle: E,
80
+ scrollToIndex: L,
81
+ spacerStyle: R,
74
82
  startIndex: v,
75
- totalHeight: p,
76
- viewportHeight: d,
77
- virtualItems: z
83
+ totalHeight: M,
84
+ viewportHeight: x,
85
+ virtualItems: O
78
86
  };
79
87
  };
80
88
  export {