origam 2.40.1 → 2.41.1

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 (330) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/src/components/Alert/OrigamAlert.vue +1 -2
  3. package/dist/src/components/Audio/OrigamAudio.vue +15 -14
  4. package/dist/src/components/Badge/OrigamBadge.vue +6 -1
  5. package/dist/src/components/Bracket/OrigamBracket.vue +5 -5
  6. package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +2 -1
  7. package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +1 -2
  8. package/dist/src/components/Btn/OrigamBtn.vue +14 -15
  9. package/dist/src/components/Card/OrigamCard.vue +2 -1
  10. package/dist/src/components/Carousel/OrigamCarousel.vue +14 -13
  11. package/dist/src/components/Chart/OrigamChartBullet.vue +4 -1
  12. package/dist/src/components/Chart/OrigamChartCartesian.vue +1 -2
  13. package/dist/src/components/Chart/OrigamChartPictorial.vue +3 -6
  14. package/dist/src/components/Chart/OrigamChartPolar.vue +2 -1
  15. package/dist/src/components/Chart/OrigamChartPolarBar.vue +3 -1
  16. package/dist/src/components/Chart/OrigamChartSankey.vue +9 -167
  17. package/dist/src/components/Chart/OrigamChartStreamgraph.vue +14 -12
  18. package/dist/src/components/Chart/OrigamChartSunburst.vue +10 -2
  19. package/dist/src/components/Chart/OrigamChartWordCloud.vue +39 -36
  20. package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +3 -4
  21. package/dist/src/components/Chip/OrigamChip.vue +2 -3
  22. package/dist/src/components/Chip/OrigamChipGroup.vue +2 -3
  23. package/dist/src/components/Clipboard/OrigamClipboard.vue +1 -1
  24. package/dist/src/components/Code/OrigamCode.vue +9 -18
  25. package/dist/src/components/ColorPicker/OrigamColorPicker.vue +5 -1
  26. package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +1 -2
  27. package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +1 -2
  28. package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +1 -2
  29. package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +6 -2
  30. package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +2 -4
  31. package/dist/src/components/Counter/OrigamCounter.vue +1 -0
  32. package/dist/src/components/DataTable/OrigamDataTable.vue +6 -8
  33. package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +1 -2
  34. package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +3 -2
  35. package/dist/src/components/DataTable/OrigamDataTableRow.vue +2 -3
  36. package/dist/src/components/DataTable/OrigamDataTableRows.vue +43 -39
  37. package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +3 -4
  38. package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +1 -1
  39. package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1 -2
  40. package/dist/src/components/Dialog/OrigamDialog.vue +4 -12
  41. package/dist/src/components/Drawer/OrigamDrawer.vue +4 -2
  42. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +2 -3
  43. package/dist/src/components/Field/OrigamField.vue +2 -6
  44. package/dist/src/components/FileField/OrigamFileField.vue +23 -6
  45. package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +3 -4
  46. package/dist/src/components/FileField/OrigamFileFieldListItem.vue +3 -4
  47. package/dist/src/components/Form/OrigamForm.vue +0 -2
  48. package/dist/src/components/Grids/OrigamRow.vue +8 -11
  49. package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +7 -7
  50. package/dist/src/components/Input/OrigamInput.vue +3 -11
  51. package/dist/src/components/List/OrigamListGroup.vue +2 -3
  52. package/dist/src/components/List/OrigamListItem.vue +4 -5
  53. package/dist/src/components/Media/OrigamMediaController.vue +15 -15
  54. package/dist/src/components/Media/OrigamMediaScrubber.vue +15 -12
  55. package/dist/src/components/Media/OrigamMediaVolumeControl.vue +4 -5
  56. package/dist/src/components/Menu/OrigamMenu.vue +1 -2
  57. package/dist/src/components/NumberField/OrigamNumberField.vue +7 -10
  58. package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +7 -1
  59. package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +1 -1
  60. package/dist/src/components/Overlay/OrigamOverlay.vue +3 -4
  61. package/dist/src/components/Pagination/OrigamPagination.vue +4 -5
  62. package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -4
  63. package/dist/src/components/PasswordField/OrigamPasswordField.vue +9 -7
  64. package/dist/src/components/Radio/OrigamRadioBtn.vue +2 -3
  65. package/dist/src/components/RatingField/OrigamRatingField.vue +1 -2
  66. package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +2 -3
  67. package/dist/src/components/Select/OrigamSelect.vue +135 -105
  68. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +7 -2
  69. package/dist/src/components/Slide/OrigamSlideGroup.vue +7 -10
  70. package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +9 -10
  71. package/dist/src/components/Stepper/OrigamStepper.vue +7 -11
  72. package/dist/src/components/Stepper/OrigamStepperItem.vue +2 -3
  73. package/dist/src/components/Switch/OrigamSwitch.vue +0 -9
  74. package/dist/src/components/Tabs/OrigamTabs.vue +1 -1
  75. package/dist/src/components/TextField/OrigamTextField.vue +2 -5
  76. package/dist/src/components/TextareaField/OrigamTextareaField.vue +3 -2
  77. package/dist/src/components/TextareaField/OrigamTextareaFieldRichToolbar.vue +13 -14
  78. package/dist/src/components/Transition/OrigamExpandX.vue +4 -10
  79. package/dist/src/components/Transition/OrigamExpandY.vue +4 -10
  80. package/dist/src/components/Transition/OrigamSnack.vue +2 -8
  81. package/dist/src/components/Transition/OrigamTranslateScale.vue +4 -1
  82. package/dist/src/components/Treeview/OrigamTreeviewNode.vue +24 -18
  83. package/dist/src/components/Video/OrigamVideo.vue +14 -19
  84. package/dist/src/components/Window/OrigamWindow.vue +4 -6
  85. package/dist/src/composables/Audio/use-waveform.composable.cjs +24 -19
  86. package/dist/src/composables/Audio/use-waveform.composable.js +24 -19
  87. package/dist/src/composables/Calendar/calendar.composable.cjs +11 -11
  88. package/dist/src/composables/Calendar/calendar.composable.js +1 -1
  89. package/dist/src/composables/Chart/chart.composable.cjs +541 -415
  90. package/dist/src/composables/Chart/chart.composable.d.ts +2 -5
  91. package/dist/src/composables/Chart/chart.composable.js +392 -338
  92. package/dist/src/composables/Code/code.composable.cjs +4 -4
  93. package/dist/src/composables/Code/code.composable.js +1 -1
  94. package/dist/src/composables/Commons/accessibleCommand.composable.cjs +2 -1
  95. package/dist/src/composables/Commons/accessibleCommand.composable.js +2 -1
  96. package/dist/src/composables/Commons/backButton.composable.cjs +14 -18
  97. package/dist/src/composables/Commons/backButton.composable.d.ts +4 -2
  98. package/dist/src/composables/Commons/backButton.composable.js +14 -18
  99. package/dist/src/composables/Commons/backgroundColor.composable.cjs +7 -3
  100. package/dist/src/composables/Commons/backgroundColor.composable.js +6 -3
  101. package/dist/src/composables/Commons/bothColor.composable.cjs +6 -2
  102. package/dist/src/composables/Commons/bothColor.composable.js +7 -4
  103. package/dist/src/composables/Commons/color.composable.cjs +106 -48
  104. package/dist/src/composables/Commons/color.composable.js +55 -48
  105. package/dist/src/composables/Commons/colorEffect.composable.cjs +2 -1
  106. package/dist/src/composables/Commons/colorEffect.composable.js +3 -1
  107. package/dist/src/composables/Commons/createLayout.composable.cjs +3 -2
  108. package/dist/src/composables/Commons/createLayout.composable.js +3 -2
  109. package/dist/src/composables/Commons/cssSupportClient.composable.d.ts +2 -1
  110. package/dist/src/composables/Commons/display.composable.cjs +7 -1
  111. package/dist/src/composables/Commons/display.composable.js +2 -2
  112. package/dist/src/composables/Commons/dragResizer.composable.cjs +16 -18
  113. package/dist/src/composables/Commons/dragResizer.composable.d.ts +2 -2
  114. package/dist/src/composables/Commons/dragResizer.composable.js +9 -11
  115. package/dist/src/composables/Commons/elevation.composable.cjs +2 -1
  116. package/dist/src/composables/Commons/elevation.composable.js +2 -1
  117. package/dist/src/composables/Commons/group.composable.cjs +17 -14
  118. package/dist/src/composables/Commons/group.composable.js +19 -15
  119. package/dist/src/composables/Commons/locationStrategies.composable.d.ts +1 -1
  120. package/dist/src/composables/Commons/nested.composable.cjs +16 -16
  121. package/dist/src/composables/Commons/nested.composable.d.ts +1 -1
  122. package/dist/src/composables/Commons/nested.composable.js +1 -1
  123. package/dist/src/composables/Commons/nestedItem.composable.cjs +3 -3
  124. package/dist/src/composables/Commons/nestedItem.composable.d.ts +1 -1
  125. package/dist/src/composables/Commons/nestedItem.composable.js +1 -1
  126. package/dist/src/composables/Commons/passedProps.composable.cjs +1 -1
  127. package/dist/src/composables/Commons/passedProps.composable.js +1 -1
  128. package/dist/src/composables/Commons/size.composable.cjs +1 -1
  129. package/dist/src/composables/Commons/size.composable.js +1 -1
  130. package/dist/src/composables/Commons/stateEffect.composable.cjs +54 -32
  131. package/dist/src/composables/Commons/stateEffect.composable.js +43 -33
  132. package/dist/src/composables/Commons/teleport.composable.cjs +2 -1
  133. package/dist/src/composables/Commons/teleport.composable.js +4 -1
  134. package/dist/src/composables/Commons/textColor.composable.cjs +7 -3
  135. package/dist/src/composables/Commons/textColor.composable.js +6 -3
  136. package/dist/src/composables/Commons/touch.composable.cjs +80 -20
  137. package/dist/src/composables/Commons/touch.composable.js +80 -20
  138. package/dist/src/composables/Commons/vModel.composable.cjs +1 -1
  139. package/dist/src/composables/Commons/vModel.composable.js +1 -1
  140. package/dist/src/composables/Commons/validation.composable.cjs +1 -1
  141. package/dist/src/composables/Commons/validation.composable.js +1 -1
  142. package/dist/src/composables/Commons/velocity.composable.cjs +5 -1
  143. package/dist/src/composables/Commons/velocity.composable.js +5 -1
  144. package/dist/src/composables/DataTable/headers.composable.cjs +36 -30
  145. package/dist/src/composables/DataTable/headers.composable.d.ts +1 -1
  146. package/dist/src/composables/DataTable/headers.composable.js +29 -23
  147. package/dist/src/composables/DataTable/headersCell.composable.cjs +2 -2
  148. package/dist/src/composables/DataTable/headersCell.composable.js +1 -1
  149. package/dist/src/composables/DataTable/select.composable.cjs +4 -4
  150. package/dist/src/composables/DataTable/select.composable.js +1 -1
  151. package/dist/src/composables/DataTable/sort.composable.cjs +6 -6
  152. package/dist/src/composables/DataTable/sort.composable.js +1 -1
  153. package/dist/src/composables/Form/form.composable.cjs +1 -1
  154. package/dist/src/composables/Form/form.composable.js +3 -1
  155. package/dist/src/composables/Masonry/masonry.composable.cjs +29 -20
  156. package/dist/src/composables/Masonry/masonry.composable.d.ts +0 -14
  157. package/dist/src/composables/Masonry/masonry.composable.js +29 -20
  158. package/dist/src/composables/NumberFormat/number-format.composable.cjs +28 -23
  159. package/dist/src/composables/NumberFormat/number-format.composable.js +28 -23
  160. package/dist/src/composables/Parallax/parallax.composable.cjs +11 -19
  161. package/dist/src/composables/Parallax/parallax.composable.js +5 -13
  162. package/dist/src/composables/Parallax/transform.composable.cjs +14 -13
  163. package/dist/src/composables/Parallax/transform.composable.js +2 -1
  164. package/dist/src/composables/PasswordField/passwordStrength.composable.cjs +2 -2
  165. package/dist/src/composables/PasswordField/passwordStrength.composable.js +1 -1
  166. package/dist/src/composables/QrCode/qr-code.composable.cjs +1 -1
  167. package/dist/src/composables/QrCode/qr-code.composable.js +1 -1
  168. package/dist/src/composables/Sheet/sheetSwipe.composable.cjs +3 -4
  169. package/dist/src/composables/Sheet/sheetSwipe.composable.js +4 -4
  170. package/dist/src/composables/TextareaField/textarea-field-rich.composable.cjs +31 -31
  171. package/dist/src/composables/TextareaField/textarea-field-rich.composable.js +1 -1
  172. package/dist/src/composables/Watermark/watermark.composable.cjs +1 -1
  173. package/dist/src/composables/Watermark/watermark.composable.js +1 -1
  174. package/dist/src/consts/Audio/audio.const.cjs +5 -4
  175. package/dist/src/consts/Audio/audio.const.d.ts +2 -1
  176. package/dist/src/consts/Audio/audio.const.js +2 -1
  177. package/dist/src/consts/Blockquote/blockquote.const.cjs +3 -3
  178. package/dist/src/consts/Blockquote/blockquote.const.js +1 -1
  179. package/dist/src/consts/Bracket/bracket.const.cjs +4 -3
  180. package/dist/src/consts/Bracket/bracket.const.js +2 -1
  181. package/dist/src/consts/Code/code.const.cjs +3 -3
  182. package/dist/src/consts/Code/code.const.d.ts +1 -1
  183. package/dist/src/consts/Code/code.const.js +1 -1
  184. package/dist/src/consts/Commons/autocomplete.const.cjs +2 -2
  185. package/dist/src/consts/Commons/autocomplete.const.d.ts +1 -1
  186. package/dist/src/consts/Commons/autocomplete.const.js +1 -1
  187. package/dist/src/consts/Commons/border.const.cjs +5 -1
  188. package/dist/src/consts/Commons/border.const.js +5 -1
  189. package/dist/src/consts/Commons/display.const.cjs +2 -2
  190. package/dist/src/consts/Commons/display.const.js +1 -1
  191. package/dist/src/consts/Commons/hotkey.const.cjs +2 -2
  192. package/dist/src/consts/Commons/hotkey.const.js +1 -1
  193. package/dist/src/consts/Commons/margin.const.cjs +1 -1
  194. package/dist/src/consts/Commons/margin.const.js +1 -1
  195. package/dist/src/consts/Commons/padding.const.cjs +1 -1
  196. package/dist/src/consts/Commons/padding.const.js +1 -1
  197. package/dist/src/consts/Commons/rounded.const.cjs +6 -2
  198. package/dist/src/consts/Commons/rounded.const.js +6 -2
  199. package/dist/src/consts/EmptyState/empty-state.const.cjs +12 -12
  200. package/dist/src/consts/EmptyState/empty-state.const.js +6 -6
  201. package/dist/src/consts/PasswordField/password-field.const.cjs +1 -1
  202. package/dist/src/consts/PasswordField/password-field.const.js +1 -1
  203. package/dist/src/consts/QrCode/qr-code.const.cjs +2 -2
  204. package/dist/src/consts/QrCode/qr-code.const.js +1 -1
  205. package/dist/src/consts/TextField/text-field.const.cjs +21 -21
  206. package/dist/src/consts/TextField/text-field.const.d.ts +1 -2
  207. package/dist/src/consts/TextField/text-field.const.js +1 -2
  208. package/dist/src/consts/TextareaField/textarea-field.const.cjs +32 -4
  209. package/dist/src/consts/TextareaField/textarea-field.const.d.ts +1 -0
  210. package/dist/src/consts/TextareaField/textarea-field.const.js +29 -1
  211. package/dist/src/directives/Contrast/contrast.directive.cjs +6 -4
  212. package/dist/src/directives/Contrast/contrast.directive.js +6 -4
  213. package/dist/src/directives/Intersect/intersect.directive.cjs +2 -1
  214. package/dist/src/directives/Intersect/intersect.directive.js +2 -1
  215. package/dist/src/enums/BottomNav/bottom-nav.enum.cjs +4 -5
  216. package/dist/src/enums/BottomNav/bottom-nav.enum.js +4 -5
  217. package/dist/src/interfaces/Blockquote/blockquote.interface.d.ts +1 -1
  218. package/dist/src/interfaces/Chart/chart-map.interface.d.ts +5 -4
  219. package/dist/src/interfaces/Chart/chart.interface.d.ts +70 -1
  220. package/dist/src/interfaces/ColorPicker/color-picker.interface.d.ts +1 -1
  221. package/dist/src/interfaces/Commons/activator.interface.d.ts +1 -1
  222. package/dist/src/interfaces/Commons/border.interface.d.ts +11 -10
  223. package/dist/src/interfaces/Commons/filters.interface.d.ts +7 -0
  224. package/dist/src/interfaces/Commons/margin.interface.d.ts +12 -11
  225. package/dist/src/interfaces/Commons/padding.interface.d.ts +12 -11
  226. package/dist/src/interfaces/Commons/ripple.interface.d.ts +1 -3
  227. package/dist/src/interfaces/Commons/rounded.interface.d.ts +10 -9
  228. package/dist/src/interfaces/DataTable/sort.interface.d.ts +6 -0
  229. package/dist/src/interfaces/Grid/grid.interface.d.ts +4 -4
  230. package/dist/src/interfaces/Parallax/parallax.interface.d.ts +3 -2
  231. package/dist/src/interfaces/SliderField/slider-field.interface.d.ts +4 -4
  232. package/dist/src/origam-core.cjs +52 -34
  233. package/dist/src/origam-core.js +22 -28
  234. package/dist/src/types/Commons/box-value.type.cjs +1 -0
  235. package/dist/src/types/Commons/box-value.type.d.ts +1 -0
  236. package/dist/src/types/Commons/box-value.type.js +0 -0
  237. package/dist/src/types/Commons/location.type.d.ts +13 -0
  238. package/dist/src/types/Commons/point.type.d.ts +1 -1
  239. package/dist/src/types/DataTable/data-table.type.d.ts +1 -0
  240. package/dist/src/types/Grid/grid.type.d.ts +7 -0
  241. package/dist/src/types/Grids/row.type.d.ts +2 -1
  242. package/dist/src/types/Parallax/parallax.type.d.ts +1 -2
  243. package/dist/src/types/SliderField/slider-field.type.d.ts +8 -0
  244. package/dist/src/types/TextField/text-field.type.d.ts +2 -1
  245. package/dist/src/utils/Bracket/bracket-surface.util.cjs +9 -2
  246. package/dist/src/utils/Bracket/bracket-surface.util.js +9 -2
  247. package/dist/src/utils/Calendar/rrule.util.cjs +12 -7
  248. package/dist/src/utils/Calendar/rrule.util.js +12 -7
  249. package/dist/src/utils/Chart/chart-point.util.cjs +15 -0
  250. package/dist/src/utils/Chart/chart-point.util.d.ts +11 -0
  251. package/dist/src/utils/Chart/chart-point.util.js +8 -0
  252. package/dist/src/utils/Chart/sankey-layout.util.cjs +144 -0
  253. package/dist/src/utils/Chart/sankey-layout.util.d.ts +27 -0
  254. package/dist/src/utils/Chart/sankey-layout.util.js +130 -0
  255. package/dist/src/utils/Code/parse-highlight-lines.util.cjs +17 -14
  256. package/dist/src/utils/Code/parse-highlight-lines.util.js +17 -14
  257. package/dist/src/utils/CommandPalette/fuzzy-match.util.cjs +13 -9
  258. package/dist/src/utils/CommandPalette/fuzzy-match.util.js +13 -9
  259. package/dist/src/utils/Commons/anchor.util.cjs +6 -1
  260. package/dist/src/utils/Commons/anchor.util.js +6 -1
  261. package/dist/src/utils/Commons/animation.util.cjs +7 -4
  262. package/dist/src/utils/Commons/animation.util.js +4 -1
  263. package/dist/src/utils/Commons/apply-mask.util.cjs +11 -14
  264. package/dist/src/utils/Commons/apply-mask.util.js +7 -10
  265. package/dist/src/utils/Commons/apply-theme.util.cjs +6 -4
  266. package/dist/src/utils/Commons/apply-theme.util.js +6 -4
  267. package/dist/src/utils/Commons/bindProps.util.cjs +3 -5
  268. package/dist/src/utils/Commons/bindProps.util.js +3 -5
  269. package/dist/src/utils/Commons/color.util.cjs +43 -36
  270. package/dist/src/utils/Commons/color.util.js +44 -31
  271. package/dist/src/utils/Commons/commons.util.cjs +3 -3
  272. package/dist/src/utils/Commons/commons.util.js +3 -3
  273. package/dist/src/utils/Commons/console.util.cjs +6 -0
  274. package/dist/src/utils/Commons/console.util.d.ts +11 -0
  275. package/dist/src/utils/Commons/console.util.js +5 -0
  276. package/dist/src/utils/Commons/date.util.cjs +2 -27
  277. package/dist/src/utils/Commons/date.util.js +2 -27
  278. package/dist/src/utils/Commons/display.util.cjs +10 -1
  279. package/dist/src/utils/Commons/display.util.d.ts +8 -1
  280. package/dist/src/utils/Commons/display.util.js +9 -1
  281. package/dist/src/utils/Commons/eventListener.util.cjs +1 -2
  282. package/dist/src/utils/Commons/eventListener.util.js +1 -2
  283. package/dist/src/utils/Commons/filters.util.cjs +48 -34
  284. package/dist/src/utils/Commons/filters.util.d.ts +3 -8
  285. package/dist/src/utils/Commons/filters.util.js +47 -34
  286. package/dist/src/utils/Commons/forwardRefs.util.cjs +44 -40
  287. package/dist/src/utils/Commons/forwardRefs.util.js +44 -40
  288. package/dist/src/utils/Commons/group.util.cjs +1 -1
  289. package/dist/src/utils/Commons/group.util.js +1 -1
  290. package/dist/src/utils/Commons/hotkey.util.cjs +65 -61
  291. package/dist/src/utils/Commons/hotkey.util.js +56 -53
  292. package/dist/src/utils/Commons/hover.util.cjs +2 -2
  293. package/dist/src/utils/Commons/hover.util.js +2 -2
  294. package/dist/src/utils/Commons/locale.util.cjs +1 -1
  295. package/dist/src/utils/Commons/locale.util.js +1 -1
  296. package/dist/src/utils/Commons/location.util.cjs +87 -92
  297. package/dist/src/utils/Commons/location.util.js +75 -83
  298. package/dist/src/utils/Commons/nested.util.cjs +12 -10
  299. package/dist/src/utils/Commons/nested.util.js +5 -2
  300. package/dist/src/utils/Commons/point.util.cjs +16 -14
  301. package/dist/src/utils/Commons/point.util.js +13 -8
  302. package/dist/src/utils/Commons/ripple.util.cjs +4 -4
  303. package/dist/src/utils/Commons/ripple.util.js +4 -4
  304. package/dist/src/utils/Commons/scroll.util.cjs +9 -6
  305. package/dist/src/utils/Commons/scroll.util.js +9 -6
  306. package/dist/src/utils/Commons/spacing.util.cjs +1 -1
  307. package/dist/src/utils/Commons/spacing.util.js +1 -1
  308. package/dist/src/utils/Commons/token-name.util.cjs +31 -27
  309. package/dist/src/utils/Commons/token-name.util.js +31 -27
  310. package/dist/src/utils/Commons/validate-pattern.util.cjs +6 -6
  311. package/dist/src/utils/Commons/validate-pattern.util.js +1 -1
  312. package/dist/src/utils/DataTable/headers.util.cjs +20 -26
  313. package/dist/src/utils/DataTable/headers.util.js +18 -26
  314. package/dist/src/utils/DataTable/sort.util.cjs +41 -47
  315. package/dist/src/utils/DataTable/sort.util.d.ts +2 -7
  316. package/dist/src/utils/DataTable/sort.util.js +49 -47
  317. package/dist/src/utils/List/list-item.util.cjs +6 -1
  318. package/dist/src/utils/List/list-item.util.js +6 -1
  319. package/dist/src/utils/Parallax/parallax-element.util.cjs +13 -14
  320. package/dist/src/utils/Parallax/parallax-element.util.js +10 -11
  321. package/dist/src/utils/Slide/slide-group.util.cjs +4 -4
  322. package/dist/src/utils/Slide/slide-group.util.js +4 -4
  323. package/dist/src/utils/TextareaField/html-to-markdown.util.cjs +5 -36
  324. package/dist/src/utils/TextareaField/html-to-markdown.util.js +5 -36
  325. package/dist/src/utils/TextareaField/sanitize-html.util.cjs +18 -22
  326. package/dist/src/utils/TextareaField/sanitize-html.util.js +19 -23
  327. package/dist/src/utils/index.cjs +11 -0
  328. package/dist/src/utils/index.d.ts +1 -0
  329. package/dist/src/utils/index.js +1 -0
  330. package/package.json +1 -1
@@ -53,7 +53,9 @@ export function useForm(props) {
53
53
  } else if (item.isValid === true) valid++;
54
54
  }
55
55
  errors.value = results;
56
- model.value = invalid > 0 ? false : valid === items.value.length ? true : null;
56
+ if (invalid > 0) model.value = false;
57
+ else if (valid === items.value.length) model.value = true;
58
+ else model.value = null;
57
59
  }, { deep: true, flush: "post" });
58
60
  provide(ORIGAM_FORM_KEY, {
59
61
  register: ({ id, vm, validate: validate2, reset: reset2, resetValidation: resetValidation2 }) => {
@@ -16,6 +16,29 @@ function pickColumnsForWidth(width, breakpoints, defaultColumns) {
16
16
  }
17
17
  return resolved;
18
18
  }
19
+ function shortestColumn(columnHeights) {
20
+ let col = 0;
21
+ let min = columnHeights[0];
22
+ for (let c = 1; c < columnHeights.length; c++) {
23
+ if (columnHeights[c] < min) {
24
+ min = columnHeights[c];
25
+ col = c;
26
+ }
27
+ }
28
+ return col;
29
+ }
30
+ function columnContentHeight(columnHeight, gap) {
31
+ return columnHeight > 0 ? columnHeight - gap : 0;
32
+ }
33
+ function centerColumns(items, columnHeights, gap, maxHeight) {
34
+ const columnUsed = new Array(columnHeights.length).fill(0);
35
+ for (const item of items) {
36
+ const colHeight = columnContentHeight(columnHeights[item.column], gap);
37
+ const shift = Math.max(0, (maxHeight - colHeight) / 2);
38
+ if (columnUsed[item.column] === 0) columnUsed[item.column] = shift;
39
+ item.top += columnUsed[item.column];
40
+ }
41
+ }
19
42
  function bucketFill(heights, containerWidth, gap, columns, align = "top") {
20
43
  const cols = Math.max(1, Math.floor(columns));
21
44
  const totalGap = (cols - 1) * gap;
@@ -23,14 +46,7 @@ function bucketFill(heights, containerWidth, gap, columns, align = "top") {
23
46
  const columnHeights = new Array(cols).fill(0);
24
47
  const items = [];
25
48
  for (let i = 0; i < heights.length; i++) {
26
- let col = 0;
27
- let min = columnHeights[0];
28
- for (let c = 1; c < cols; c++) {
29
- if (columnHeights[c] < min) {
30
- min = columnHeights[c];
31
- col = c;
32
- }
33
- }
49
+ const col = shortestColumn(columnHeights);
34
50
  const left = col * (itemWidth + gap);
35
51
  const top = columnHeights[col];
36
52
  const height = Math.max(0, heights[i]);
@@ -44,19 +60,12 @@ function bucketFill(heights, containerWidth, gap, columns, align = "top") {
44
60
  });
45
61
  columnHeights[col] = top + height + gap;
46
62
  }
47
- let maxHeight = 0;
48
- for (let c = 0; c < cols; c++) {
49
- const h = columnHeights[c] > 0 ? columnHeights[c] - gap : 0;
50
- if (h > maxHeight) maxHeight = h;
51
- }
63
+ const maxHeight = columnHeights.reduce((max, h) => {
64
+ const content = columnContentHeight(h, gap);
65
+ return content > max ? content : max;
66
+ }, 0);
52
67
  if (align === "center" && maxHeight > 0) {
53
- const columnUsed = new Array(cols).fill(0);
54
- for (const item of items) {
55
- const colHeight = columnHeights[item.column] > 0 ? columnHeights[item.column] - gap : 0;
56
- const shift = Math.max(0, (maxHeight - colHeight) / 2);
57
- if (columnUsed[item.column] === 0) columnUsed[item.column] = shift;
58
- item.top += columnUsed[item.column];
59
- }
68
+ centerColumns(items, columnHeights, gap, maxHeight);
60
69
  }
61
70
  return {
62
71
  containerHeight: maxHeight,
@@ -15,20 +15,6 @@ export type { IMasonryItemRect, IMasonryLayoutResult, IUseMasonryOptions } from
15
15
  * pickColumnsForWidth(400, { 600: 2, 900: 3, 1200: 4 }, 1) → 1
16
16
  */
17
17
  export declare function pickColumnsForWidth(width: number, breakpoints: TMasonryColumnBreakpoints | undefined, defaultColumns: number): number;
18
- /**
19
- * Pure bucket-fill algorithm. Given an ordered list of item heights, a
20
- * container width, a gap in px, and a column count, returns the layout
21
- * coordinates of every item and the final container height.
22
- *
23
- * Algorithm:
24
- * 1. Compute item width = (containerWidth - (cols - 1) * gap) / cols.
25
- * 2. Track `columnHeights[i]` — running sum of item heights + gaps.
26
- * 3. For each item, place it in the column with the SMALLEST current
27
- * height (ties → leftmost column). Update that column's height.
28
- * 4. `containerHeight` = max(columnHeights).
29
- *
30
- * No DOM access. Fully deterministic. Easy to unit-test.
31
- */
32
18
  export declare function bucketFill(heights: ReadonlyArray<number>, containerWidth: number, gap: number, columns: number, align?: TMasonryAlign): IMasonryLayoutResult;
33
19
  /**
34
20
  * Public composable used by `<OrigamMasonry>` when the CSS-native
@@ -8,6 +8,29 @@ export function pickColumnsForWidth(width, breakpoints, defaultColumns) {
8
8
  }
9
9
  return resolved;
10
10
  }
11
+ function shortestColumn(columnHeights) {
12
+ let col = 0;
13
+ let min = columnHeights[0];
14
+ for (let c = 1; c < columnHeights.length; c++) {
15
+ if (columnHeights[c] < min) {
16
+ min = columnHeights[c];
17
+ col = c;
18
+ }
19
+ }
20
+ return col;
21
+ }
22
+ function columnContentHeight(columnHeight, gap) {
23
+ return columnHeight > 0 ? columnHeight - gap : 0;
24
+ }
25
+ function centerColumns(items, columnHeights, gap, maxHeight) {
26
+ const columnUsed = new Array(columnHeights.length).fill(0);
27
+ for (const item of items) {
28
+ const colHeight = columnContentHeight(columnHeights[item.column], gap);
29
+ const shift = Math.max(0, (maxHeight - colHeight) / 2);
30
+ if (columnUsed[item.column] === 0) columnUsed[item.column] = shift;
31
+ item.top += columnUsed[item.column];
32
+ }
33
+ }
11
34
  export function bucketFill(heights, containerWidth, gap, columns, align = "top") {
12
35
  const cols = Math.max(1, Math.floor(columns));
13
36
  const totalGap = (cols - 1) * gap;
@@ -15,14 +38,7 @@ export function bucketFill(heights, containerWidth, gap, columns, align = "top")
15
38
  const columnHeights = new Array(cols).fill(0);
16
39
  const items = [];
17
40
  for (let i = 0; i < heights.length; i++) {
18
- let col = 0;
19
- let min = columnHeights[0];
20
- for (let c = 1; c < cols; c++) {
21
- if (columnHeights[c] < min) {
22
- min = columnHeights[c];
23
- col = c;
24
- }
25
- }
41
+ const col = shortestColumn(columnHeights);
26
42
  const left = col * (itemWidth + gap);
27
43
  const top = columnHeights[col];
28
44
  const height = Math.max(0, heights[i]);
@@ -36,19 +52,12 @@ export function bucketFill(heights, containerWidth, gap, columns, align = "top")
36
52
  });
37
53
  columnHeights[col] = top + height + gap;
38
54
  }
39
- let maxHeight = 0;
40
- for (let c = 0; c < cols; c++) {
41
- const h = columnHeights[c] > 0 ? columnHeights[c] - gap : 0;
42
- if (h > maxHeight) maxHeight = h;
43
- }
55
+ const maxHeight = columnHeights.reduce((max, h) => {
56
+ const content = columnContentHeight(h, gap);
57
+ return content > max ? content : max;
58
+ }, 0);
44
59
  if (align === "center" && maxHeight > 0) {
45
- const columnUsed = new Array(cols).fill(0);
46
- for (const item of items) {
47
- const colHeight = columnHeights[item.column] > 0 ? columnHeights[item.column] - gap : 0;
48
- const shift = Math.max(0, (maxHeight - colHeight) / 2);
49
- if (columnUsed[item.column] === 0) columnUsed[item.column] = shift;
50
- item.top += columnUsed[item.column];
51
- }
60
+ centerColumns(items, columnHeights, gap, maxHeight);
52
61
  }
53
62
  return {
54
63
  containerHeight: maxHeight,
@@ -69,32 +69,12 @@ function buildIntlOptions(options) {
69
69
  if (options.notation !== void 0) {
70
70
  intl.notation = options.notation;
71
71
  }
72
- if (intl.style === "currency") {
73
- intl.currency = options.currency || _numberFormat.NUMBER_FORMAT_DEFAULT_CURRENCY;
74
- if (options.currencyDisplay !== void 0) {
75
- intl.currencyDisplay = options.currencyDisplay;
76
- }
77
- }
78
- if (intl.style === "unit") {
79
- if (options.unit) {
80
- intl.unit = options.unit;
81
- if (options.unitDisplay !== void 0) {
82
- intl.unitDisplay = options.unitDisplay;
83
- }
84
- } else {
85
- if (typeof console !== "undefined") {
86
- console.warn('[origam] useNumberFormat: format="unit" requires a `unit` option (e.g. "kilometer-per-hour"). Falling back to decimal.');
87
- }
88
- intl.style = "decimal";
89
- }
90
- }
72
+ if (intl.style === "currency") applyCurrency(intl, options);
73
+ if (intl.style === "unit") applyUnit(intl, options);
91
74
  if (intl.notation === "compact" && options.compactDisplay !== void 0) {
92
75
  intl.compactDisplay = options.compactDisplay;
93
76
  }
94
- if (options.minimumFractionDigits !== void 0) intl.minimumFractionDigits = options.minimumFractionDigits;
95
- if (options.maximumFractionDigits !== void 0) intl.maximumFractionDigits = options.maximumFractionDigits;
96
- if (options.minimumSignificantDigits !== void 0) intl.minimumSignificantDigits = options.minimumSignificantDigits;
97
- if (options.maximumSignificantDigits !== void 0) intl.maximumSignificantDigits = options.maximumSignificantDigits;
77
+ applyDigits(intl, options);
98
78
  const grouping = resolveUseGrouping(options.useGrouping);
99
79
  if (grouping !== void 0) {
100
80
  intl.useGrouping = grouping;
@@ -104,6 +84,31 @@ function buildIntlOptions(options) {
104
84
  }
105
85
  return intl;
106
86
  }
87
+ function applyCurrency(intl, options) {
88
+ intl.currency = options.currency || _numberFormat.NUMBER_FORMAT_DEFAULT_CURRENCY;
89
+ if (options.currencyDisplay !== void 0) {
90
+ intl.currencyDisplay = options.currencyDisplay;
91
+ }
92
+ }
93
+ function applyUnit(intl, options) {
94
+ if (options.unit) {
95
+ intl.unit = options.unit;
96
+ if (options.unitDisplay !== void 0) {
97
+ intl.unitDisplay = options.unitDisplay;
98
+ }
99
+ return;
100
+ }
101
+ if (typeof console !== "undefined") {
102
+ console.warn('[origam] useNumberFormat: format="unit" requires a `unit` option (e.g. "kilometer-per-hour"). Falling back to decimal.');
103
+ }
104
+ intl.style = "decimal";
105
+ }
106
+ function applyDigits(intl, options) {
107
+ if (options.minimumFractionDigits !== void 0) intl.minimumFractionDigits = options.minimumFractionDigits;
108
+ if (options.maximumFractionDigits !== void 0) intl.maximumFractionDigits = options.maximumFractionDigits;
109
+ if (options.minimumSignificantDigits !== void 0) intl.minimumSignificantDigits = options.minimumSignificantDigits;
110
+ if (options.maximumSignificantDigits !== void 0) intl.maximumSignificantDigits = options.maximumSignificantDigits;
111
+ }
107
112
  function getIntl(locale, options) {
108
113
  const cacheKey = JSON.stringify({
109
114
  l: locale,
@@ -53,32 +53,12 @@ function buildIntlOptions(options) {
53
53
  if (options.notation !== void 0) {
54
54
  intl.notation = options.notation;
55
55
  }
56
- if (intl.style === "currency") {
57
- intl.currency = options.currency || NUMBER_FORMAT_DEFAULT_CURRENCY;
58
- if (options.currencyDisplay !== void 0) {
59
- intl.currencyDisplay = options.currencyDisplay;
60
- }
61
- }
62
- if (intl.style === "unit") {
63
- if (options.unit) {
64
- intl.unit = options.unit;
65
- if (options.unitDisplay !== void 0) {
66
- intl.unitDisplay = options.unitDisplay;
67
- }
68
- } else {
69
- if (typeof console !== "undefined") {
70
- console.warn('[origam] useNumberFormat: format="unit" requires a `unit` option (e.g. "kilometer-per-hour"). Falling back to decimal.');
71
- }
72
- intl.style = "decimal";
73
- }
74
- }
56
+ if (intl.style === "currency") applyCurrency(intl, options);
57
+ if (intl.style === "unit") applyUnit(intl, options);
75
58
  if (intl.notation === "compact" && options.compactDisplay !== void 0) {
76
59
  intl.compactDisplay = options.compactDisplay;
77
60
  }
78
- if (options.minimumFractionDigits !== void 0) intl.minimumFractionDigits = options.minimumFractionDigits;
79
- if (options.maximumFractionDigits !== void 0) intl.maximumFractionDigits = options.maximumFractionDigits;
80
- if (options.minimumSignificantDigits !== void 0) intl.minimumSignificantDigits = options.minimumSignificantDigits;
81
- if (options.maximumSignificantDigits !== void 0) intl.maximumSignificantDigits = options.maximumSignificantDigits;
61
+ applyDigits(intl, options);
82
62
  const grouping = resolveUseGrouping(options.useGrouping);
83
63
  if (grouping !== void 0) {
84
64
  intl.useGrouping = grouping;
@@ -88,6 +68,31 @@ function buildIntlOptions(options) {
88
68
  }
89
69
  return intl;
90
70
  }
71
+ function applyCurrency(intl, options) {
72
+ intl.currency = options.currency || NUMBER_FORMAT_DEFAULT_CURRENCY;
73
+ if (options.currencyDisplay !== void 0) {
74
+ intl.currencyDisplay = options.currencyDisplay;
75
+ }
76
+ }
77
+ function applyUnit(intl, options) {
78
+ if (options.unit) {
79
+ intl.unit = options.unit;
80
+ if (options.unitDisplay !== void 0) {
81
+ intl.unitDisplay = options.unitDisplay;
82
+ }
83
+ return;
84
+ }
85
+ if (typeof console !== "undefined") {
86
+ console.warn('[origam] useNumberFormat: format="unit" requires a `unit` option (e.g. "kilometer-per-hour"). Falling back to decimal.');
87
+ }
88
+ intl.style = "decimal";
89
+ }
90
+ function applyDigits(intl, options) {
91
+ if (options.minimumFractionDigits !== void 0) intl.minimumFractionDigits = options.minimumFractionDigits;
92
+ if (options.maximumFractionDigits !== void 0) intl.maximumFractionDigits = options.maximumFractionDigits;
93
+ if (options.minimumSignificantDigits !== void 0) intl.minimumSignificantDigits = options.minimumSignificantDigits;
94
+ if (options.maximumSignificantDigits !== void 0) intl.maximumSignificantDigits = options.maximumSignificantDigits;
95
+ }
91
96
  function getIntl(locale, options) {
92
97
  const cacheKey = JSON.stringify({ l: locale, o: options });
93
98
  const hit = intlCache.get(cacheKey);
@@ -8,7 +8,7 @@ var _vue = require("vue");
8
8
  var _cssSupport = require("../Commons/cssSupport.composable.cjs");
9
9
  var _parallax = require("../../consts/Parallax/parallax.const.cjs");
10
10
  var _parallaxLayer = require("../../consts/Parallax/parallax-layer.const.cjs");
11
- var _enums = require("../../enums/index.cjs");
11
+ var _parallax2 = require("../../enums/Parallax/parallax.enum.cjs");
12
12
  function usePrefersReducedMotion() {
13
13
  const flag = (0, _vue.ref)(false);
14
14
  if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
@@ -19,17 +19,9 @@ function usePrefersReducedMotion() {
19
19
  const onChange = ev => {
20
20
  flag.value = ev.matches;
21
21
  };
22
- if (typeof mql.addEventListener === "function") {
23
- mql.addEventListener("change", onChange);
24
- } else if (typeof mql.addListener === "function") {
25
- mql.addListener(onChange);
26
- }
22
+ mql.addEventListener("change", onChange);
27
23
  (0, _vue.onBeforeUnmount)(() => {
28
- if (typeof mql.removeEventListener === "function") {
29
- mql.removeEventListener("change", onChange);
30
- } else if (typeof mql.removeListener === "function") {
31
- mql.removeListener(onChange);
32
- }
24
+ mql.removeEventListener("change", onChange);
33
25
  });
34
26
  return flag;
35
27
  }
@@ -38,14 +30,14 @@ function composeLayerTransform(progress, mouseRatio, direction, layer, hostHeigh
38
30
  let tx = layer.offsetX;
39
31
  let ty = layer.offsetY;
40
32
  switch (direction) {
41
- case _enums.PARALLAX_DIRECTION.HORIZONTAL:
33
+ case _parallax2.PARALLAX_DIRECTION.HORIZONTAL:
42
34
  tx += centred * hostWidth * layer.speed;
43
35
  break;
44
- case _enums.PARALLAX_DIRECTION.BOTH:
36
+ case _parallax2.PARALLAX_DIRECTION.BOTH:
45
37
  tx += mouseRatio.x * hostWidth * _parallax.PARALLAX_MOUSE_AMPLITUDE_FACTOR * layer.speed;
46
38
  ty += centred * hostHeight * layer.speed;
47
39
  break;
48
- case _enums.PARALLAX_DIRECTION.VERTICAL:
40
+ case _parallax2.PARALLAX_DIRECTION.VERTICAL:
49
41
  default:
50
42
  ty += centred * hostHeight * layer.speed;
51
43
  break;
@@ -56,7 +48,7 @@ function useParallaxRuntime(options) {
56
48
  const {
57
49
  supports
58
50
  } = (0, _cssSupport.useCssSupport)();
59
- const cssScrollDriven = (0, _vue.computed)(() => supports("animation-timeline: scroll()") && options.easing.value === _enums.PARALLAX_EASING.LINEAR);
51
+ const cssScrollDriven = (0, _vue.computed)(() => supports("animation-timeline: scroll()") && options.easing.value === _parallax2.PARALLAX_EASING.LINEAR);
60
52
  const reducedMotion = usePrefersReducedMotion();
61
53
  const layers = (0, _vue.ref)([]);
62
54
  const progress = (0, _vue.ref)(0);
@@ -115,7 +107,7 @@ function useParallaxRuntime(options) {
115
107
  const rect = host.getBoundingClientRect();
116
108
  const dir = options.direction.value;
117
109
  const easing = options.easing.value;
118
- const isSpring = easing === _enums.PARALLAX_EASING.SPRING;
110
+ const isSpring = easing === _parallax2.PARALLAX_EASING.SPRING;
119
111
  for (const layer of layers.value) {
120
112
  if (options.disabled.value || reducedMotion.value) {
121
113
  layer.target.style.transform = `translate3d(${layer.offsetX}px, ${layer.offsetY}px, 0)`;
@@ -166,7 +158,7 @@ function useParallaxRuntime(options) {
166
158
  }
167
159
  };
168
160
  const onMouseMove = event => {
169
- if (options.direction.value !== _enums.PARALLAX_DIRECTION.BOTH) return;
161
+ if (options.direction.value !== _parallax2.PARALLAX_DIRECTION.BOTH) return;
170
162
  const host = options.target.value;
171
163
  if (!host) return;
172
164
  const rect = host.getBoundingClientRect();
@@ -237,8 +229,8 @@ function useParallaxRuntime(options) {
237
229
  const host = options.target.value;
238
230
  host?.removeEventListener("mousemove", onMouseMove);
239
231
  });
240
- (0, _vue.watch)(cssScrollDriven, v => {
241
- if (v) {
232
+ (0, _vue.watch)(cssScrollDriven, () => {
233
+ if (cssScrollDriven.value) {
242
234
  if (rafId != null) {
243
235
  cancelAnimationFrame(rafId);
244
236
  rafId = null;
@@ -10,7 +10,7 @@ import {
10
10
  PARALLAX_LAYER_VAR_OFFSET_Y,
11
11
  PARALLAX_LAYER_VAR_SPEED
12
12
  } from "../../consts/Parallax/parallax-layer.const.js";
13
- import { PARALLAX_DIRECTION, PARALLAX_EASING } from "../../enums/index.js";
13
+ import { PARALLAX_DIRECTION, PARALLAX_EASING } from "../../enums/Parallax/parallax.enum.js";
14
14
  function usePrefersReducedMotion() {
15
15
  const flag = ref(false);
16
16
  if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
@@ -21,17 +21,9 @@ function usePrefersReducedMotion() {
21
21
  const onChange = (ev) => {
22
22
  flag.value = ev.matches;
23
23
  };
24
- if (typeof mql.addEventListener === "function") {
25
- mql.addEventListener("change", onChange);
26
- } else if (typeof mql.addListener === "function") {
27
- mql.addListener(onChange);
28
- }
24
+ mql.addEventListener("change", onChange);
29
25
  onBeforeUnmount(() => {
30
- if (typeof mql.removeEventListener === "function") {
31
- mql.removeEventListener("change", onChange);
32
- } else if (typeof mql.removeListener === "function") {
33
- mql.removeListener(onChange);
34
- }
26
+ mql.removeEventListener("change", onChange);
35
27
  });
36
28
  return flag;
37
29
  }
@@ -232,8 +224,8 @@ export function useParallaxRuntime(options) {
232
224
  const host = options.target.value;
233
225
  host?.removeEventListener("mousemove", onMouseMove);
234
226
  });
235
- watch(cssScrollDriven, (v) => {
236
- if (v) {
227
+ watch(cssScrollDriven, () => {
228
+ if (cssScrollDriven.value) {
237
229
  if (rafId != null) {
238
230
  cancelAnimationFrame(rafId);
239
231
  rafId = null;
@@ -5,31 +5,32 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useParallaxTransform = useParallaxTransform;
7
7
  var _parallaxElement = require("../../consts/Parallax/parallax-element.const.cjs");
8
- var _enums = require("../../enums/index.cjs");
8
+ var _drag = require("../../enums/Commons/drag.enum.cjs");
9
+ var _parallaxElement2 = require("../../enums/Parallax/parallax-element.enum.cjs");
9
10
  var _vue = require("vue");
10
11
  function useParallaxTransform(props) {
11
12
  const strength = (0, _vue.computed)(() => {
12
13
  const str = props.strength ?? _parallaxElement.PARALLAX_ELEMENT_DEFAULT_STRENGTH;
13
- return props.type === _enums.PARALLAX_ELEMENT_TYPE.DEPTH || props.type === _enums.PARALLAX_ELEMENT_TYPE.DEPTH_INV ? Math.abs(str) : str;
14
+ return props.type === _parallaxElement2.PARALLAX_ELEMENT_TYPE.DEPTH || props.type === _parallaxElement2.PARALLAX_ELEMENT_TYPE.DEPTH_INV ? Math.abs(str) : str;
14
15
  });
15
16
  const transformStyles = (x, y) => {
16
17
  let transform;
17
18
  switch (props.type) {
18
- case _enums.PARALLAX_ELEMENT_TYPE.TRANSLATE:
19
+ case _parallaxElement2.PARALLAX_ELEMENT_TYPE.TRANSLATE:
19
20
  transform = translateMovement(x, y);
20
21
  break;
21
- case _enums.PARALLAX_ELEMENT_TYPE.ROTATE:
22
+ case _parallaxElement2.PARALLAX_ELEMENT_TYPE.ROTATE:
22
23
  transform = rotateMovement(x, y);
23
24
  break;
24
- case _enums.PARALLAX_ELEMENT_TYPE.DEPTH:
25
+ case _parallaxElement2.PARALLAX_ELEMENT_TYPE.DEPTH:
25
26
  transform = depthMovement(x, y);
26
27
  break;
27
- case _enums.PARALLAX_ELEMENT_TYPE.DEPTH_INV:
28
+ case _parallaxElement2.PARALLAX_ELEMENT_TYPE.DEPTH_INV:
28
29
  transform = depthMovement(-x, -y);
29
30
  break;
30
- case _enums.PARALLAX_ELEMENT_TYPE.SCALE:
31
- case _enums.PARALLAX_ELEMENT_TYPE.SCALE_X:
32
- case _enums.PARALLAX_ELEMENT_TYPE.SCALE_Y:
31
+ case _parallaxElement2.PARALLAX_ELEMENT_TYPE.SCALE:
32
+ case _parallaxElement2.PARALLAX_ELEMENT_TYPE.SCALE_X:
33
+ case _parallaxElement2.PARALLAX_ELEMENT_TYPE.SCALE_Y:
33
34
  transform = scaleMovement(x, y);
34
35
  break;
35
36
  }
@@ -47,9 +48,9 @@ function useParallaxTransform(props) {
47
48
  let movement = 0;
48
49
  if (!props.axis) {
49
50
  movement = toMovement(x + y);
50
- } else if (props.axis === _enums.AXIS.X) {
51
+ } else if (props.axis === _drag.AXIS.X) {
51
52
  movement = toMovement(x);
52
- } else if (props.axis === _enums.AXIS.Y) {
53
+ } else if (props.axis === _drag.AXIS.Y) {
53
54
  movement = toMovement(y);
54
55
  }
55
56
  return `rotate3d(0,0,1,${movement}deg)`;
@@ -60,8 +61,8 @@ function useParallaxTransform(props) {
60
61
  };
61
62
  const scaleMovement = (x, y) => {
62
63
  const movement = toMovement(Math.abs(x) + Math.abs(y));
63
- return `scale3d(${props.type === _enums.PARALLAX_ELEMENT_TYPE.SCALE_X || props.type === _enums.PARALLAX_ELEMENT_TYPE.SCALE ? movement : 1},
64
- ${props.type === _enums.PARALLAX_ELEMENT_TYPE.SCALE_Y || props.type === _enums.PARALLAX_ELEMENT_TYPE.SCALE ? movement : 1},
64
+ return `scale3d(${props.type === _parallaxElement2.PARALLAX_ELEMENT_TYPE.SCALE_X || props.type === _parallaxElement2.PARALLAX_ELEMENT_TYPE.SCALE ? movement : 1},
65
+ ${props.type === _parallaxElement2.PARALLAX_ELEMENT_TYPE.SCALE_Y || props.type === _parallaxElement2.PARALLAX_ELEMENT_TYPE.SCALE ? movement : 1},
65
66
  1)`;
66
67
  };
67
68
  const customMovement = (x, y) => {
@@ -4,7 +4,8 @@ import {
4
4
  PARALLAX_ELEMENT_MOVEMENT_BASE,
5
5
  PARALLAX_ELEMENT_MOVEMENT_DIVISOR
6
6
  } from "../../consts/Parallax/parallax-element.const.js";
7
- import { AXIS, PARALLAX_ELEMENT_TYPE } from "../../enums/index.js";
7
+ import { AXIS } from "../../enums/Commons/drag.enum.js";
8
+ import { PARALLAX_ELEMENT_TYPE } from "../../enums/Parallax/parallax-element.enum.js";
8
9
  import { computed } from "vue";
9
10
  export function useParallaxTransform(props) {
10
11
  const strength = computed(() => {
@@ -11,13 +11,13 @@ Object.defineProperty(exports, "DEFAULT_PASSWORD_REQUIREMENTS", {
11
11
  });
12
12
  exports.computeStrength = computeStrength;
13
13
  var _passwordField = require("../../consts/PasswordField/password-field.const.cjs");
14
- var _enums = require("../../enums/index.cjs");
14
+ var _passwordField2 = require("../../enums/PasswordField/password-field.enum.cjs");
15
15
  function computeStrength(value) {
16
16
  const v = (value ?? "").toString();
17
17
  if (v.length === 0) {
18
18
  return {
19
19
  score: 0,
20
- level: _enums.PASSWORD_STRENGTH_LEVEL.WEAK
20
+ level: _passwordField2.PASSWORD_STRENGTH_LEVEL.WEAK
21
21
  };
22
22
  }
23
23
  let raw = 0;
@@ -8,7 +8,7 @@ import {
8
8
  PASSWORD_STRENGTH_MAX_SCORE,
9
9
  PASSWORD_STRONG_LENGTH
10
10
  } from "../../consts/PasswordField/password-field.const.js";
11
- import { PASSWORD_STRENGTH_LEVEL } from "../../enums/index.js";
11
+ import { PASSWORD_STRENGTH_LEVEL } from "../../enums/PasswordField/password-field.enum.js";
12
12
  export function computeStrength(value) {
13
13
  const v = (value ?? "").toString();
14
14
  if (v.length === 0) {
@@ -60,7 +60,7 @@ function buildSvg(matrix, options) {
60
60
  }
61
61
  const backgroundRect = bg && bg !== _qrCode.QR_CODE_DEFAULT_BACKGROUND ? `<rect x="0" y="0" width="${viewSize}" height="${viewSize}" fill="${escapeXmlAttr(bg)}"/>` : "";
62
62
  let logoMarkup = "";
63
- if (options.logo && options.logo.src) {
63
+ if (options.logo?.src) {
64
64
  const ratio = options.logo.size ?? _qrCode.QR_CODE_DEFAULT_LOGO_SIZE;
65
65
  const padding = options.logo.padding ?? _qrCode.QR_CODE_DEFAULT_LOGO_PADDING;
66
66
  const logoBg = options.logo.background ?? (bg && bg !== _qrCode.QR_CODE_DEFAULT_BACKGROUND ? bg : _qrCode.QR_CODE_DEFAULT_LOGO_BACKGROUND);
@@ -68,7 +68,7 @@ function buildSvg(matrix, options) {
68
68
  }
69
69
  const backgroundRect = bg && bg !== QR_CODE_DEFAULT_BACKGROUND ? `<rect x="0" y="0" width="${viewSize}" height="${viewSize}" fill="${escapeXmlAttr(bg)}"/>` : "";
70
70
  let logoMarkup = "";
71
- if (options.logo && options.logo.src) {
71
+ if (options.logo?.src) {
72
72
  const ratio = options.logo.size ?? QR_CODE_DEFAULT_LOGO_SIZE;
73
73
  const padding = options.logo.padding ?? QR_CODE_DEFAULT_LOGO_PADDING;
74
74
  const logoBg = options.logo.background ?? (bg && bg !== QR_CODE_DEFAULT_BACKGROUND ? bg : QR_CODE_DEFAULT_LOGO_BACKGROUND);
@@ -17,7 +17,7 @@ function resolveHeightPx(height) {
17
17
  if (typeof height === "number") return height;
18
18
  if (typeof window === "undefined") return 0;
19
19
  const value = String(height).trim();
20
- const match = value.match(/^([\d.]+)(px|vh|vw|%|rem|em)?$/i);
20
+ const match = /^([\d.]+)(px|vh|vw|%|rem|em)?$/i.exec(value);
21
21
  if (!match) return 0;
22
22
  const num = parseFloat(match[1]);
23
23
  const unit = (match[2] ?? "px").toLowerCase();
@@ -46,7 +46,6 @@ function resolveHeightPx(height) {
46
46
  }
47
47
  function useSheetSwipe(options) {
48
48
  const {
49
- el,
50
49
  handle,
51
50
  snapPoints,
52
51
  defaultSnap,
@@ -79,7 +78,8 @@ function useSheetSwipe(options) {
79
78
  const goingDown = velocity < 0;
80
79
  const speed = Math.abs(velocity);
81
80
  if (speed >= _sheet.SHEET_FAST_FLICK_THRESHOLD) {
82
- const nextIdx = goingUp ? Math.min(snaps.length - 1, currentIdx + 1) : goingDown ? Math.max(0, currentIdx - 1) : currentIdx;
81
+ let nextIdx = currentIdx;
82
+ if (goingUp) nextIdx = Math.min(snaps.length - 1, currentIdx + 1);else if (goingDown) nextIdx = Math.max(0, currentIdx - 1);
83
83
  const candidate = snaps[nextIdx];
84
84
  return enforcePersistent(candidate.id, snaps);
85
85
  }
@@ -195,7 +195,6 @@ function useSheetSwipe(options) {
195
195
  (0, _vue.onBeforeUnmount)(() => {
196
196
  unbind();
197
197
  });
198
- void el;
199
198
  return {
200
199
  currentSnap,
201
200
  dragOffset,
@@ -12,7 +12,7 @@ export function resolveHeightPx(height) {
12
12
  if (typeof height === "number") return height;
13
13
  if (typeof window === "undefined") return 0;
14
14
  const value = String(height).trim();
15
- const match = value.match(/^([\d.]+)(px|vh|vw|%|rem|em)?$/i);
15
+ const match = /^([\d.]+)(px|vh|vw|%|rem|em)?$/i.exec(value);
16
16
  if (!match) return 0;
17
17
  const num = parseFloat(match[1]);
18
18
  const unit = (match[2] ?? "px").toLowerCase();
@@ -40,7 +40,6 @@ export function resolveHeightPx(height) {
40
40
  }
41
41
  export function useSheetSwipe(options) {
42
42
  const {
43
- el,
44
43
  handle,
45
44
  snapPoints,
46
45
  defaultSnap,
@@ -73,7 +72,9 @@ export function useSheetSwipe(options) {
73
72
  const goingDown = velocity < 0;
74
73
  const speed = Math.abs(velocity);
75
74
  if (speed >= FAST_FLICK_THRESHOLD) {
76
- const nextIdx = goingUp ? Math.min(snaps.length - 1, currentIdx + 1) : goingDown ? Math.max(0, currentIdx - 1) : currentIdx;
75
+ let nextIdx = currentIdx;
76
+ if (goingUp) nextIdx = Math.min(snaps.length - 1, currentIdx + 1);
77
+ else if (goingDown) nextIdx = Math.max(0, currentIdx - 1);
77
78
  const candidate = snaps[nextIdx];
78
79
  return enforcePersistent(candidate.id, snaps);
79
80
  }
@@ -181,7 +182,6 @@ export function useSheetSwipe(options) {
181
182
  onBeforeUnmount(() => {
182
183
  unbind();
183
184
  });
184
- void el;
185
185
  return {
186
186
  currentSnap,
187
187
  dragOffset,