origam 2.41.0 → 2.42.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 (298) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/dist/src/assets/locales/en.json +10 -1
  3. package/dist/src/assets/locales/fr.json +10 -1
  4. package/dist/src/components/Alert/OrigamAlert.vue +1 -2
  5. package/dist/src/components/Audio/OrigamAudio.vue +15 -14
  6. package/dist/src/components/Badge/OrigamBadge.vue +6 -1
  7. package/dist/src/components/Bracket/OrigamBracket.vue +5 -5
  8. package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +1 -2
  9. package/dist/src/components/Btn/OrigamBtn.vue +71 -27
  10. package/dist/src/components/Card/OrigamCard.vue +2 -1
  11. package/dist/src/components/Carousel/OrigamCarousel.vue +14 -13
  12. package/dist/src/components/Chart/OrigamChartBullet.vue +4 -1
  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 +14 -15
  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 +4 -2
  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 +2 -3
  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 +1 -2
  41. package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +2 -3
  42. package/dist/src/components/Field/OrigamField.vue +2 -6
  43. package/dist/src/components/FileField/OrigamFileField.vue +23 -6
  44. package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +3 -4
  45. package/dist/src/components/FileField/OrigamFileFieldListItem.vue +3 -4
  46. package/dist/src/components/Form/OrigamForm.vue +0 -2
  47. package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +7 -7
  48. package/dist/src/components/Input/OrigamInput.vue +3 -11
  49. package/dist/src/components/List/OrigamListGroup.vue +2 -3
  50. package/dist/src/components/List/OrigamListItem.vue +11 -5
  51. package/dist/src/components/Media/OrigamMediaController.vue +12 -13
  52. package/dist/src/components/Media/OrigamMediaScrubber.vue +15 -12
  53. package/dist/src/components/Media/OrigamMediaVolumeControl.vue +4 -5
  54. package/dist/src/components/Menu/OrigamMenu.vue +1 -2
  55. package/dist/src/components/NumberField/OrigamNumberField.vue +7 -10
  56. package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +7 -1
  57. package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +1 -1
  58. package/dist/src/components/Pagination/OrigamPagination.vue +4 -5
  59. package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -4
  60. package/dist/src/components/PasswordField/OrigamPasswordField.vue +37 -15
  61. package/dist/src/components/Progress/OrigamProgressLinear.vue +7 -6
  62. package/dist/src/components/Radio/OrigamRadio.vue +5 -2
  63. package/dist/src/components/Radio/OrigamRadioBtn.vue +7 -5
  64. package/dist/src/components/RatingField/OrigamRatingField.vue +1 -2
  65. package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +2 -3
  66. package/dist/src/components/Select/OrigamSelect.vue +174 -107
  67. package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +7 -2
  68. package/dist/src/components/Slide/OrigamSlideGroup.vue +7 -10
  69. package/dist/src/components/SliderField/OrigamSliderField.vue +1 -2
  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/Treeview/OrigamTreeviewNode.vue +24 -18
  82. package/dist/src/components/Video/OrigamVideo.vue +14 -19
  83. package/dist/src/components/Window/OrigamWindow.vue +2 -3
  84. package/dist/src/composables/Audio/use-waveform.composable.cjs +24 -19
  85. package/dist/src/composables/Audio/use-waveform.composable.js +24 -19
  86. package/dist/src/composables/Calendar/calendar.composable.cjs +11 -11
  87. package/dist/src/composables/Calendar/calendar.composable.js +1 -1
  88. package/dist/src/composables/Chart/chart.composable.cjs +541 -415
  89. package/dist/src/composables/Chart/chart.composable.d.ts +2 -5
  90. package/dist/src/composables/Chart/chart.composable.js +392 -338
  91. package/dist/src/composables/Code/code.composable.cjs +4 -4
  92. package/dist/src/composables/Code/code.composable.js +1 -1
  93. package/dist/src/composables/Commons/color.composable.cjs +106 -48
  94. package/dist/src/composables/Commons/color.composable.js +55 -48
  95. package/dist/src/composables/Commons/display.composable.cjs +7 -1
  96. package/dist/src/composables/Commons/display.composable.js +2 -2
  97. package/dist/src/composables/Commons/dragResizer.composable.cjs +11 -10
  98. package/dist/src/composables/Commons/dragResizer.composable.js +2 -1
  99. package/dist/src/composables/Commons/group.composable.cjs +17 -14
  100. package/dist/src/composables/Commons/group.composable.js +19 -15
  101. package/dist/src/composables/Commons/nested.composable.cjs +16 -16
  102. package/dist/src/composables/Commons/nested.composable.d.ts +1 -1
  103. package/dist/src/composables/Commons/nested.composable.js +1 -1
  104. package/dist/src/composables/Commons/nestedItem.composable.cjs +3 -3
  105. package/dist/src/composables/Commons/nestedItem.composable.d.ts +1 -1
  106. package/dist/src/composables/Commons/nestedItem.composable.js +1 -1
  107. package/dist/src/composables/Commons/size.composable.cjs +1 -1
  108. package/dist/src/composables/Commons/size.composable.js +1 -1
  109. package/dist/src/composables/Commons/stateEffect.composable.cjs +54 -32
  110. package/dist/src/composables/Commons/stateEffect.composable.js +43 -33
  111. package/dist/src/composables/Commons/teleport.composable.cjs +2 -1
  112. package/dist/src/composables/Commons/teleport.composable.js +4 -1
  113. package/dist/src/composables/Commons/touch.composable.cjs +77 -33
  114. package/dist/src/composables/Commons/touch.composable.js +77 -33
  115. package/dist/src/composables/Commons/vModel.composable.cjs +1 -1
  116. package/dist/src/composables/Commons/vModel.composable.js +1 -1
  117. package/dist/src/composables/Commons/validation.composable.cjs +1 -1
  118. package/dist/src/composables/Commons/validation.composable.js +1 -1
  119. package/dist/src/composables/Commons/velocity.composable.cjs +5 -1
  120. package/dist/src/composables/Commons/velocity.composable.js +5 -1
  121. package/dist/src/composables/DataTable/headers.composable.cjs +36 -30
  122. package/dist/src/composables/DataTable/headers.composable.d.ts +1 -1
  123. package/dist/src/composables/DataTable/headers.composable.js +29 -23
  124. package/dist/src/composables/DataTable/headersCell.composable.cjs +2 -2
  125. package/dist/src/composables/DataTable/headersCell.composable.js +1 -1
  126. package/dist/src/composables/DataTable/select.composable.cjs +4 -4
  127. package/dist/src/composables/DataTable/select.composable.js +1 -1
  128. package/dist/src/composables/DataTable/sort.composable.cjs +6 -6
  129. package/dist/src/composables/DataTable/sort.composable.js +1 -1
  130. package/dist/src/composables/Form/form.composable.cjs +1 -1
  131. package/dist/src/composables/Form/form.composable.js +3 -1
  132. package/dist/src/composables/Masonry/masonry.composable.cjs +29 -20
  133. package/dist/src/composables/Masonry/masonry.composable.d.ts +0 -14
  134. package/dist/src/composables/Masonry/masonry.composable.js +29 -20
  135. package/dist/src/composables/NumberFormat/number-format.composable.cjs +28 -23
  136. package/dist/src/composables/NumberFormat/number-format.composable.js +28 -23
  137. package/dist/src/composables/Parallax/parallax.composable.cjs +9 -9
  138. package/dist/src/composables/Parallax/parallax.composable.js +3 -3
  139. package/dist/src/composables/Parallax/transform.composable.cjs +14 -13
  140. package/dist/src/composables/Parallax/transform.composable.js +2 -1
  141. package/dist/src/composables/PasswordField/passwordStrength.composable.cjs +2 -2
  142. package/dist/src/composables/PasswordField/passwordStrength.composable.js +1 -1
  143. package/dist/src/composables/QrCode/qr-code.composable.cjs +1 -1
  144. package/dist/src/composables/QrCode/qr-code.composable.js +1 -1
  145. package/dist/src/composables/Sheet/sheetSwipe.composable.cjs +3 -4
  146. package/dist/src/composables/Sheet/sheetSwipe.composable.js +4 -4
  147. package/dist/src/composables/TextareaField/textarea-field-rich.composable.cjs +31 -31
  148. package/dist/src/composables/TextareaField/textarea-field-rich.composable.js +1 -1
  149. package/dist/src/composables/Watermark/watermark.composable.cjs +1 -1
  150. package/dist/src/composables/Watermark/watermark.composable.js +1 -1
  151. package/dist/src/consts/Audio/audio.const.cjs +5 -4
  152. package/dist/src/consts/Audio/audio.const.d.ts +2 -1
  153. package/dist/src/consts/Audio/audio.const.js +2 -1
  154. package/dist/src/consts/Blockquote/blockquote.const.cjs +3 -3
  155. package/dist/src/consts/Blockquote/blockquote.const.js +1 -1
  156. package/dist/src/consts/Bracket/bracket.const.cjs +4 -3
  157. package/dist/src/consts/Bracket/bracket.const.js +2 -1
  158. package/dist/src/consts/Code/code.const.cjs +3 -3
  159. package/dist/src/consts/Code/code.const.d.ts +1 -1
  160. package/dist/src/consts/Code/code.const.js +1 -1
  161. package/dist/src/consts/Commons/autocomplete.const.cjs +2 -2
  162. package/dist/src/consts/Commons/autocomplete.const.d.ts +1 -1
  163. package/dist/src/consts/Commons/autocomplete.const.js +1 -1
  164. package/dist/src/consts/Commons/display.const.cjs +2 -2
  165. package/dist/src/consts/Commons/display.const.js +1 -1
  166. package/dist/src/consts/Commons/hotkey.const.cjs +2 -2
  167. package/dist/src/consts/Commons/hotkey.const.js +1 -1
  168. package/dist/src/consts/Commons/margin.const.cjs +1 -1
  169. package/dist/src/consts/Commons/margin.const.js +1 -1
  170. package/dist/src/consts/Commons/padding.const.cjs +1 -1
  171. package/dist/src/consts/Commons/padding.const.js +1 -1
  172. package/dist/src/consts/Commons/rounded.const.cjs +6 -2
  173. package/dist/src/consts/Commons/rounded.const.js +6 -2
  174. package/dist/src/consts/EmptyState/empty-state.const.cjs +12 -12
  175. package/dist/src/consts/EmptyState/empty-state.const.js +6 -6
  176. package/dist/src/consts/PasswordField/password-field.const.cjs +20 -11
  177. package/dist/src/consts/PasswordField/password-field.const.d.ts +10 -5
  178. package/dist/src/consts/PasswordField/password-field.const.js +17 -10
  179. package/dist/src/consts/QrCode/qr-code.const.cjs +2 -2
  180. package/dist/src/consts/QrCode/qr-code.const.js +1 -1
  181. package/dist/src/consts/TextField/text-field.const.cjs +21 -21
  182. package/dist/src/consts/TextField/text-field.const.js +1 -1
  183. package/dist/src/consts/TextareaField/textarea-field.const.cjs +32 -4
  184. package/dist/src/consts/TextareaField/textarea-field.const.d.ts +1 -0
  185. package/dist/src/consts/TextareaField/textarea-field.const.js +29 -1
  186. package/dist/src/directives/Contrast/contrast.directive.cjs +5 -3
  187. package/dist/src/directives/Contrast/contrast.directive.js +5 -3
  188. package/dist/src/directives/Intersect/intersect.directive.cjs +2 -1
  189. package/dist/src/directives/Intersect/intersect.directive.js +2 -1
  190. package/dist/src/interfaces/Chart/chart.interface.d.ts +70 -1
  191. package/dist/src/interfaces/ColorPicker/color-picker.interface.d.ts +1 -1
  192. package/dist/src/interfaces/Commons/border.interface.d.ts +11 -10
  193. package/dist/src/interfaces/Commons/filters.interface.d.ts +7 -0
  194. package/dist/src/interfaces/Commons/margin.interface.d.ts +12 -11
  195. package/dist/src/interfaces/Commons/padding.interface.d.ts +12 -11
  196. package/dist/src/interfaces/Commons/ripple.interface.d.ts +1 -3
  197. package/dist/src/interfaces/Commons/rounded.interface.d.ts +10 -9
  198. package/dist/src/interfaces/DataTable/sort.interface.d.ts +6 -0
  199. package/dist/src/interfaces/Grid/grid.interface.d.ts +4 -4
  200. package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +5 -1
  201. package/dist/src/interfaces/PasswordField/password-requirement.interface.d.ts +8 -0
  202. package/dist/src/interfaces/Radio/radio-btn.interface.d.ts +2 -2
  203. package/dist/src/interfaces/Radio/radio.interface.d.ts +2 -1
  204. package/dist/src/interfaces/Select/select.interface.d.ts +1 -0
  205. package/dist/src/interfaces/SelectionControl/selection-control.interface.d.ts +5 -1
  206. package/dist/src/interfaces/SliderField/slider-field.interface.d.ts +4 -4
  207. package/dist/src/origam-core.cjs +51 -33
  208. package/dist/src/origam-core.js +21 -27
  209. package/dist/src/types/Commons/box-value.type.cjs +1 -0
  210. package/dist/src/types/Commons/box-value.type.d.ts +1 -0
  211. package/dist/src/types/Commons/box-value.type.js +0 -0
  212. package/dist/src/types/Commons/location.type.d.ts +13 -0
  213. package/dist/src/types/Commons/point.type.d.ts +1 -1
  214. package/dist/src/types/DataTable/data-table.type.d.ts +1 -0
  215. package/dist/src/types/Grid/grid.type.d.ts +7 -0
  216. package/dist/src/types/SliderField/slider-field.type.d.ts +8 -0
  217. package/dist/src/utils/Bracket/bracket-surface.util.cjs +9 -2
  218. package/dist/src/utils/Bracket/bracket-surface.util.js +9 -2
  219. package/dist/src/utils/Calendar/rrule.util.cjs +12 -7
  220. package/dist/src/utils/Calendar/rrule.util.js +12 -7
  221. package/dist/src/utils/Chart/chart-point.util.cjs +15 -0
  222. package/dist/src/utils/Chart/chart-point.util.d.ts +11 -0
  223. package/dist/src/utils/Chart/chart-point.util.js +8 -0
  224. package/dist/src/utils/Chart/sankey-layout.util.cjs +144 -0
  225. package/dist/src/utils/Chart/sankey-layout.util.d.ts +27 -0
  226. package/dist/src/utils/Chart/sankey-layout.util.js +130 -0
  227. package/dist/src/utils/Code/parse-highlight-lines.util.cjs +17 -14
  228. package/dist/src/utils/Code/parse-highlight-lines.util.js +17 -14
  229. package/dist/src/utils/CommandPalette/fuzzy-match.util.cjs +13 -9
  230. package/dist/src/utils/CommandPalette/fuzzy-match.util.js +13 -9
  231. package/dist/src/utils/Commons/anchor.util.cjs +6 -1
  232. package/dist/src/utils/Commons/anchor.util.js +6 -1
  233. package/dist/src/utils/Commons/apply-mask.util.cjs +11 -14
  234. package/dist/src/utils/Commons/apply-mask.util.js +7 -10
  235. package/dist/src/utils/Commons/apply-theme.util.cjs +6 -4
  236. package/dist/src/utils/Commons/apply-theme.util.js +6 -4
  237. package/dist/src/utils/Commons/bindProps.util.cjs +3 -5
  238. package/dist/src/utils/Commons/bindProps.util.js +3 -5
  239. package/dist/src/utils/Commons/color.util.cjs +43 -36
  240. package/dist/src/utils/Commons/color.util.js +44 -31
  241. package/dist/src/utils/Commons/commons.util.cjs +3 -3
  242. package/dist/src/utils/Commons/commons.util.js +3 -3
  243. package/dist/src/utils/Commons/console.util.cjs +6 -0
  244. package/dist/src/utils/Commons/console.util.d.ts +11 -0
  245. package/dist/src/utils/Commons/console.util.js +5 -0
  246. package/dist/src/utils/Commons/date.util.cjs +2 -27
  247. package/dist/src/utils/Commons/date.util.js +2 -27
  248. package/dist/src/utils/Commons/display.util.cjs +10 -1
  249. package/dist/src/utils/Commons/display.util.d.ts +8 -1
  250. package/dist/src/utils/Commons/display.util.js +9 -1
  251. package/dist/src/utils/Commons/eventListener.util.cjs +1 -2
  252. package/dist/src/utils/Commons/eventListener.util.js +1 -2
  253. package/dist/src/utils/Commons/filters.util.cjs +48 -34
  254. package/dist/src/utils/Commons/filters.util.d.ts +3 -8
  255. package/dist/src/utils/Commons/filters.util.js +47 -34
  256. package/dist/src/utils/Commons/forwardRefs.util.cjs +44 -40
  257. package/dist/src/utils/Commons/forwardRefs.util.js +44 -40
  258. package/dist/src/utils/Commons/group.util.cjs +1 -1
  259. package/dist/src/utils/Commons/group.util.js +1 -1
  260. package/dist/src/utils/Commons/hotkey.util.cjs +65 -61
  261. package/dist/src/utils/Commons/hotkey.util.js +56 -53
  262. package/dist/src/utils/Commons/hover.util.cjs +2 -2
  263. package/dist/src/utils/Commons/hover.util.js +2 -2
  264. package/dist/src/utils/Commons/locale.util.cjs +1 -1
  265. package/dist/src/utils/Commons/locale.util.js +1 -1
  266. package/dist/src/utils/Commons/location.util.cjs +87 -92
  267. package/dist/src/utils/Commons/location.util.js +75 -83
  268. package/dist/src/utils/Commons/nested.util.cjs +11 -11
  269. package/dist/src/utils/Commons/nested.util.js +1 -1
  270. package/dist/src/utils/Commons/point.util.cjs +16 -14
  271. package/dist/src/utils/Commons/point.util.js +13 -8
  272. package/dist/src/utils/Commons/ripple.util.cjs +4 -4
  273. package/dist/src/utils/Commons/ripple.util.js +4 -4
  274. package/dist/src/utils/Commons/scroll.util.cjs +9 -6
  275. package/dist/src/utils/Commons/scroll.util.js +9 -6
  276. package/dist/src/utils/Commons/token-name.util.cjs +22 -21
  277. package/dist/src/utils/Commons/token-name.util.js +22 -21
  278. package/dist/src/utils/Commons/validate-pattern.util.cjs +6 -6
  279. package/dist/src/utils/Commons/validate-pattern.util.js +1 -1
  280. package/dist/src/utils/DataTable/headers.util.cjs +20 -26
  281. package/dist/src/utils/DataTable/headers.util.js +18 -26
  282. package/dist/src/utils/DataTable/sort.util.cjs +41 -47
  283. package/dist/src/utils/DataTable/sort.util.d.ts +2 -7
  284. package/dist/src/utils/DataTable/sort.util.js +49 -47
  285. package/dist/src/utils/List/list-item.util.cjs +6 -1
  286. package/dist/src/utils/List/list-item.util.js +6 -1
  287. package/dist/src/utils/Parallax/parallax-element.util.cjs +13 -14
  288. package/dist/src/utils/Parallax/parallax-element.util.js +10 -11
  289. package/dist/src/utils/Slide/slide-group.util.cjs +4 -4
  290. package/dist/src/utils/Slide/slide-group.util.js +4 -4
  291. package/dist/src/utils/TextareaField/html-to-markdown.util.cjs +5 -36
  292. package/dist/src/utils/TextareaField/html-to-markdown.util.js +5 -36
  293. package/dist/src/utils/TextareaField/sanitize-html.util.cjs +18 -22
  294. package/dist/src/utils/TextareaField/sanitize-html.util.js +19 -23
  295. package/dist/src/utils/index.cjs +11 -0
  296. package/dist/src/utils/index.d.ts +1 -0
  297. package/dist/src/utils/index.js +1 -0
  298. package/package.json +1 -1
@@ -32,7 +32,7 @@ export interface IColorPickerProps extends ICommonsComponentProps, IBorderProps,
32
32
  hideInputs?: boolean;
33
33
  showSwatches?: boolean;
34
34
  swatchesMaxHeight?: string | number;
35
- modelValue?: Record<string, unknown> | string | undefined | null;
35
+ modelValue?: Record<string, unknown> | string | null;
36
36
  }
37
37
  export interface IColorPickerMode {
38
38
  inputProps: Record<string, unknown>;
@@ -1,11 +1,12 @@
1
+ import type { TBoxValue } from '../../types/Commons/box-value.type';
1
2
  import { TColor } from '../../types/Commons/color.type';
2
3
  import { TDirectionBoth } from '../../types/Commons/anchor.type';
3
4
  export interface IBorderProps {
4
5
  border?: boolean | number | string | TDirectionBoth | Array<TDirectionBoth>;
5
- borderTop?: boolean | number | string;
6
- borderLeft?: boolean | number | string;
7
- borderBottom?: boolean | number | string;
8
- borderRight?: boolean | number | string;
6
+ borderTop?: TBoxValue;
7
+ borderLeft?: TBoxValue;
8
+ borderBottom?: TBoxValue;
9
+ borderRight?: TBoxValue;
9
10
  /**
10
11
  * Logical-axis shorthand for the block-start + block-end edges (top +
11
12
  * bottom in the default horizontal-tb writing mode). Resolves to the
@@ -17,13 +18,13 @@ export interface IBorderProps {
17
18
  * `borderBottom` still wins over it for that specific edge — see
18
19
  * `useBorder` JSDoc for the full precedence table.
19
20
  */
20
- borderBlock?: boolean | number | string;
21
+ borderBlock?: TBoxValue;
21
22
  /**
22
23
  * Logical-axis shorthand for the inline-start + inline-end edges (left
23
24
  * + right in LTR). Same grammar and precedence rules as `borderBlock`,
24
25
  * mapped onto `border-inline-{width,style,color}`.
25
26
  */
26
- borderInline?: boolean | number | string;
27
+ borderInline?: TBoxValue;
27
28
  /*********************************************************
28
29
  * borderInlineStart
29
30
  *
@@ -57,7 +58,7 @@ export interface IBorderProps {
57
58
  * une largeur fractionnaire (`"0.5rem solid red"`) ne parse pas et
58
59
  * n'emet RIEN — mesure dans `BORDER_LOGICAL_SIDE_MAP`.
59
60
  ********************************************************/
60
- borderInlineStart?: boolean | number | string;
61
+ borderInlineStart?: TBoxValue;
61
62
  /*********************************************************
62
63
  * borderInlineEnd
63
64
  *
@@ -67,7 +68,7 @@ export interface IBorderProps {
67
68
  * `border-inline-end-{width,style,color}`. Meme grammaire, memes
68
69
  * regles de precedence (un `borderRight` physique l'emporte en LTR).
69
70
  ********************************************************/
70
- borderInlineEnd?: boolean | number | string;
71
+ borderInlineEnd?: TBoxValue;
71
72
  /*********************************************************
72
73
  * borderBlockStart
73
74
  *
@@ -78,7 +79,7 @@ export interface IBorderProps {
78
79
  * grammaire, memes regles de precedence (un `borderTop` physique
79
80
  * l'emporte).
80
81
  ********************************************************/
81
- borderBlockStart?: boolean | number | string;
82
+ borderBlockStart?: TBoxValue;
82
83
  /*********************************************************
83
84
  * borderBlockEnd
84
85
  *
@@ -89,7 +90,7 @@ export interface IBorderProps {
89
90
  * grammaire, memes regles de precedence (un `borderBottom` physique
90
91
  * l'emporte).
91
92
  ********************************************************/
92
- borderBlockEnd?: boolean | number | string;
93
+ borderBlockEnd?: TBoxValue;
93
94
  borderColor?: string;
94
95
  borderStyle?: string;
95
96
  /**
@@ -6,3 +6,10 @@ export interface IFiltersProps {
6
6
  filterMode?: TFilterMode;
7
7
  noFilter?: boolean;
8
8
  }
9
+ export interface IFilterItemsOptions {
10
+ customKeyFilter?: TFilterKeyFunctions;
11
+ default?: TFilterFunction;
12
+ filterKeys?: TFilterKeys;
13
+ filterMode?: TFilterMode;
14
+ noFilter?: boolean;
15
+ }
@@ -1,3 +1,4 @@
1
+ import type { TBoxValue } from '../../types/Commons/box-value.type';
1
2
  /**
2
3
  * Outer-spacing surface.
3
4
  *
@@ -29,19 +30,19 @@ export interface IMarginProps {
29
30
  * design rung; `"8px 16px"` → block / inline; `true` → the legacy
30
31
  * `--marged` class.
31
32
  */
32
- margin?: boolean | number | string;
33
+ margin?: TBoxValue;
33
34
  /** Overrides `margin` and `marginBlock` for the top edge. */
34
- marginTop?: boolean | number | string;
35
+ marginTop?: TBoxValue;
35
36
  /** Overrides `margin` and `marginInline` for the left edge. */
36
- marginLeft?: boolean | number | string;
37
+ marginLeft?: TBoxValue;
37
38
  /** Overrides `margin` and `marginBlock` for the bottom edge. */
38
- marginBottom?: boolean | number | string;
39
+ marginBottom?: TBoxValue;
39
40
  /** Overrides `margin` and `marginInline` for the right edge. */
40
- marginRight?: boolean | number | string;
41
+ marginRight?: TBoxValue;
41
42
  /** Top + bottom. Overrides `margin`; beaten by `marginTop` / `marginBottom`. */
42
- marginBlock?: boolean | number | string;
43
+ marginBlock?: TBoxValue;
43
44
  /** Left + right. Overrides `margin`; beaten by `marginLeft` / `marginRight`. */
44
- marginInline?: boolean | number | string;
45
+ marginInline?: TBoxValue;
45
46
  /*********************************************************
46
47
  * Logical per-side margin — rung 3 (issue #1013)
47
48
  *
@@ -66,8 +67,8 @@ export interface IMarginProps {
66
67
  * Each overrides `margin` and its axis prop for the one edge it
67
68
  * targets, and is beaten by the matching PHYSICAL prop.
68
69
  ********************************************************/
69
- marginInlineStart?: boolean | number | string;
70
- marginInlineEnd?: boolean | number | string;
71
- marginBlockStart?: boolean | number | string;
72
- marginBlockEnd?: boolean | number | string;
70
+ marginInlineStart?: TBoxValue;
71
+ marginInlineEnd?: TBoxValue;
72
+ marginBlockStart?: TBoxValue;
73
+ marginBlockEnd?: TBoxValue;
73
74
  }
@@ -1,3 +1,4 @@
1
+ import type { TBoxValue } from '../../types/Commons/box-value.type';
1
2
  /**
2
3
  * Inner-spacing surface.
3
4
  *
@@ -33,19 +34,19 @@ export interface IPaddingProps {
33
34
  * design rung; `"8px 16px"` → block / inline; `true` → the legacy
34
35
  * `--padded` class.
35
36
  */
36
- padding?: boolean | number | string;
37
+ padding?: TBoxValue;
37
38
  /** Overrides `padding` and `paddingBlock` for the top edge. */
38
- paddingTop?: boolean | number | string;
39
+ paddingTop?: TBoxValue;
39
40
  /** Overrides `padding` and `paddingInline` for the left edge. */
40
- paddingLeft?: boolean | number | string;
41
+ paddingLeft?: TBoxValue;
41
42
  /** Overrides `padding` and `paddingBlock` for the bottom edge. */
42
- paddingBottom?: boolean | number | string;
43
+ paddingBottom?: TBoxValue;
43
44
  /** Overrides `padding` and `paddingInline` for the right edge. */
44
- paddingRight?: boolean | number | string;
45
+ paddingRight?: TBoxValue;
45
46
  /** Top + bottom. Overrides `padding`; beaten by `paddingTop` / `paddingBottom`. */
46
- paddingBlock?: boolean | number | string;
47
+ paddingBlock?: TBoxValue;
47
48
  /** Left + right. Overrides `padding`; beaten by `paddingLeft` / `paddingRight`. */
48
- paddingInline?: boolean | number | string;
49
+ paddingInline?: TBoxValue;
49
50
  /*********************************************************
50
51
  * Logical per-side padding — rung 3 (issue #1013)
51
52
  *
@@ -71,8 +72,8 @@ export interface IPaddingProps {
71
72
  * reading-order offset — an indent, a gutter beside an accent rule —
72
73
  * rather than a genuinely physical one.
73
74
  ********************************************************/
74
- paddingInlineStart?: boolean | number | string;
75
- paddingInlineEnd?: boolean | number | string;
76
- paddingBlockStart?: boolean | number | string;
77
- paddingBlockEnd?: boolean | number | string;
75
+ paddingInlineStart?: TBoxValue;
76
+ paddingInlineEnd?: TBoxValue;
77
+ paddingBlockStart?: TBoxValue;
78
+ paddingBlockEnd?: TBoxValue;
78
79
  }
@@ -5,9 +5,7 @@ export interface IRippleProps {
5
5
  };
6
6
  }
7
7
  export interface IRippleDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
8
- value?: boolean | {
9
- class: string;
10
- };
8
+ value?: boolean | IRippleOptions;
11
9
  modifiers: {
12
10
  center?: boolean;
13
11
  circle?: boolean;
@@ -1,3 +1,4 @@
1
+ import type { TBoxValue } from '../../types/Commons/box-value.type';
1
2
  import type { TRounded } from '../../types/Commons/rounded.type';
2
3
  /**
3
4
  * Corner-radius surface.
@@ -36,19 +37,19 @@ export interface IRoundedProps {
36
37
  * - **CSS value** (`'4px'`, `'4px 0 4px 0'`, `100`) → emits inline
37
38
  * `border-radius` declarations via `useRounded.roundedStyles`.
38
39
  */
39
- rounded?: boolean | number | string | TRounded | null | undefined;
40
+ rounded?: TBoxValue | TRounded | null;
40
41
  /**
41
42
  * Top-right corner only. Takes the same vocabulary as `rounded`
42
43
  * (`8`, `'8px'`, `'md'`, `'large'`, `'var(…)'`), minus `shaped` /
43
44
  * `shaped-invert` which are asymmetric by definition.
44
45
  */
45
- roundedTopRight?: boolean | number | string;
46
+ roundedTopRight?: TBoxValue;
46
47
  /** Top-left corner only. Same vocabulary as `roundedTopRight`. */
47
- roundedTopLeft?: boolean | number | string;
48
+ roundedTopLeft?: TBoxValue;
48
49
  /** Bottom-left corner only. Same vocabulary as `roundedTopRight`. */
49
- roundedBottomLeft?: boolean | number | string;
50
+ roundedBottomLeft?: TBoxValue;
50
51
  /** Bottom-right corner only. Same vocabulary as `roundedTopRight`. */
51
- roundedBottomRight?: boolean | number | string;
52
+ roundedBottomRight?: TBoxValue;
52
53
  /*********************************************************
53
54
  * Logical per-corner radius — rung 2 (issue #1013)
54
55
  *
@@ -79,8 +80,8 @@ export interface IRoundedProps {
79
80
  * overrides `rounded` for its corner and is beaten by the matching
80
81
  * PHYSICAL corner prop.
81
82
  ********************************************************/
82
- roundedStartStart?: boolean | number | string;
83
- roundedStartEnd?: boolean | number | string;
84
- roundedEndStart?: boolean | number | string;
85
- roundedEndEnd?: boolean | number | string;
83
+ roundedStartStart?: TBoxValue;
84
+ roundedStartEnd?: TBoxValue;
85
+ roundedEndStart?: TBoxValue;
86
+ roundedEndEnd?: TBoxValue;
86
87
  }
@@ -1,4 +1,5 @@
1
1
  import type { IInternalDataTableHeader } from './data-table-header.interface';
2
+ import type { IInternalItem } from '../List/list-children.interface';
2
3
  import type { TDataTableCompareFunction } from '../../types/DataTable/data-table.type';
3
4
  import type { TSortDirection } from '../../types/Commons/sort.type';
4
5
  import type { Ref } from 'vue';
@@ -17,3 +18,8 @@ export interface IDataTableProvideSort {
17
18
  toggleSort: (column: IInternalDataTableHeader) => void;
18
19
  isSorted: (column: IInternalDataTableHeader) => boolean;
19
20
  }
21
+ export interface IDataTableSortItemsOptions<T extends IInternalItem = IInternalItem> {
22
+ transform?: (item: T) => Record<string, any>;
23
+ sortFunctions?: Record<string, TDataTableCompareFunction>;
24
+ sortRawFunctions?: Record<string, TDataTableCompareFunction>;
25
+ }
@@ -6,7 +6,7 @@ import type { IElevationProps } from '../Commons/elevation.interface';
6
6
  import type { IMarginProps } from '../Commons/margin.interface';
7
7
  import type { IPaddingProps } from '../Commons/padding.interface';
8
8
  import type { IRoundedProps } from '../Commons/rounded.interface';
9
- import type { TGridAutoFlow, TGridGapSize, TGridPlaceContent, TGridPlaceItems } from '../../types/Grid/grid.type';
9
+ import type { TGridAutoFlow, TGridGap, TGridPlaceContent, TGridPlaceItems } from '../../types/Grid/grid.type';
10
10
  /**
11
11
  * Tracks definition accepted by `columns` / `rows` / `autoColumns` /
12
12
  * `autoRows`. The three accepted shapes are intentionally permissive
@@ -60,15 +60,15 @@ export interface IGridProps extends ICommonsComponentProps, ITagProps, IDimensio
60
60
  *
61
61
  * @default 'md'
62
62
  */
63
- gap?: TGridGapSize | string | number;
63
+ gap?: TGridGap;
64
64
  /**
65
65
  * Inline-axis-only gap override. Same accepted shapes as `gap`.
66
66
  */
67
- columnGap?: TGridGapSize | string | number;
67
+ columnGap?: TGridGap;
68
68
  /**
69
69
  * Block-axis-only gap override. Same accepted shapes as `gap`.
70
70
  */
71
- rowGap?: TGridGapSize | string | number;
71
+ rowGap?: TGridGap;
72
72
  /**
73
73
  * `grid-template-areas`. Two accepted shapes:
74
74
  *
@@ -38,8 +38,12 @@ export interface IPasswordFieldProps extends ITextFieldProps {
38
38
  * Useful for forms that want the requirements always visible.
39
39
  */
40
40
  persistentRequirements?: boolean;
41
- /** Minimum password length (default 8) — drives the `minLength` rule. */
41
+ /** Minimum length. Enforced only when set explicitly, or with `requirements` / `strengthBar` (default 8 there). */
42
42
  minLength?: number;
43
+ /*********************************************************
44
+ * Replaces the default (translated) message of the length rule for this field.
45
+ ********************************************************/
46
+ minLengthMessage?: string;
43
47
  /** Require at least one lowercase letter. */
44
48
  needTiny?: boolean;
45
49
  /** Require at least one uppercase letter. */
@@ -21,6 +21,14 @@ export interface IPasswordRequirement {
21
21
  id: string;
22
22
  /** Human-readable label rendered next to the check/cross icon. */
23
23
  label: string;
24
+ /*********************************************************
25
+ * Locale key resolved with `t()` instead of `label` (used by the DS defaults).
26
+ ********************************************************/
27
+ labelKey?: string;
28
+ /*********************************************************
29
+ * Params for `labelKey` (e.g. `{count}`).
30
+ ********************************************************/
31
+ labelParams?: Record<string, string | number>;
24
32
  /**
25
33
  * Predicate evaluated against the current password value.
26
34
  * Return `true` when the rule is satisfied.
@@ -1,5 +1,5 @@
1
1
  import type { IClickLabelEmits, ICommonsComponentEmits, ICommonsComponentProps } from '../Commons/commons.interface';
2
- import type { ISelectionControlProps } from '../SelectionControl/selection-control.interface';
2
+ import type { ISelectionControlProps, ISelectionControlSlots } from '../SelectionControl/selection-control.interface';
3
3
  import type { TColor } from '../../types/Commons/color.type';
4
4
  import type { TIcon } from '../../types/Icon/icon.type';
5
5
  export interface IRadioBtnProps extends ICommonsComponentProps, ISelectionControlProps {
@@ -32,5 +32,5 @@ export interface IRadioBtnSlots {
32
32
  icon?: TIcon;
33
33
  props: any;
34
34
  }) => any;
35
- label?: () => any;
35
+ label?: ISelectionControlSlots['label'];
36
36
  }
@@ -12,6 +12,7 @@ import type { IMarginProps } from '../Commons/margin.interface';
12
12
  import type { IPaddingProps } from '../Commons/padding.interface';
13
13
  import type { IRadioBtnProps } from './radio-btn.interface';
14
14
  import type { IRoundedProps } from '../Commons/rounded.interface';
15
+ import type { ISelectionControlSlots } from '../SelectionControl/selection-control.interface';
15
16
  import type { TIcon } from '../../types/Icon/icon.type';
16
17
  export interface IRadioProps extends ICommonsComponentProps, IInputProps, IRadioBtnProps, IDensityProps, IPaddingProps, IMarginProps, IRoundedProps, IColorProps, IBorderProps, IElevationProps, IActiveProps, IHoverProps {
17
18
  }
@@ -41,7 +42,7 @@ export interface IRadioSlots extends IAdjacentSlots {
41
42
  icon?: TIcon;
42
43
  model: any;
43
44
  }) => any;
44
- label?: () => any;
45
+ label?: ISelectionControlSlots['label'];
45
46
  details?: (props: any) => any;
46
47
  messages?: (data: {
47
48
  hasMessages: boolean;
@@ -26,6 +26,7 @@ export interface ISelectProps extends ICommonsComponentProps, IColorProps, IBgCo
26
26
  hideNoData?: boolean;
27
27
  hideSelected?: boolean;
28
28
  listProps?: IListProps;
29
+ itemType?: string;
29
30
  menu?: boolean;
30
31
  menuIcon?: TIcon;
31
32
  menuProps?: IMenuProps;
@@ -48,7 +48,11 @@ export interface ISelectionControlSlots {
48
48
  icon?: TIcon;
49
49
  props: any;
50
50
  }) => any;
51
- label?: () => any;
51
+ label?: (data: {
52
+ text?: string;
53
+ color?: TColor;
54
+ props: any;
55
+ }) => any;
52
56
  input?: (data: {
53
57
  model: any;
54
58
  color?: TColor;
@@ -12,7 +12,7 @@ import type { IPaddingProps } from '../Commons/padding.interface';
12
12
  import type { IRippleProps } from '../Commons/ripple.interface';
13
13
  import type { IRoundedProps } from '../Commons/rounded.interface';
14
14
  import type { ISliderFieldTrackProps, ISliderFieldTrackSlots } from './slider-field-track.interface';
15
- import type { TAlways, TSliderFieldVariant } from '../../types/SliderField/slider-field.type';
15
+ import type { TAlways, TSliderFieldValue, TSliderFieldVariant } from '../../types/SliderField/slider-field.type';
16
16
  import type { TSize } from '../../types/Commons/size.type';
17
17
  export interface ISliderFieldProps extends ICommonsComponentProps, IDensityProps, IColorProps, IInputProps, IFocusProps, IPaddingProps, IMarginProps, IBorderProps, IRoundedProps, IElevationProps, IRippleProps, IDirectionProps {
18
18
  disabled?: boolean;
@@ -30,7 +30,7 @@ export interface ISliderFieldProps extends ICommonsComponentProps, IDensityProps
30
30
  */
31
31
  trackProps?: ISliderFieldTrackProps;
32
32
  reverse?: boolean;
33
- modelValue?: number | string | Array<number> | Array<string>;
33
+ modelValue?: TSliderFieldValue;
34
34
  range?: boolean;
35
35
  showTicks?: TAlways;
36
36
  ticks?: Array<number> | Record<string, string>;
@@ -103,8 +103,8 @@ export interface ISliderFieldProps extends ICommonsComponentProps, IDensityProps
103
103
  /** Emits fired by `<OrigamSliderField>` — v-model + focus + drag lifecycle
104
104
  * (`start` fires on pointerdown of a thumb, `end` on pointerup). */
105
105
  export interface ISliderFieldEmits extends ICommonsComponentEmits, IFocusEmits {
106
- (e: 'start', value: number | string | Array<number> | Array<string>): void;
107
- (e: 'end', value: number | string | Array<number> | Array<string>): void;
106
+ (e: 'start', value: TSliderFieldValue): void;
107
+ (e: 'end', value: TSliderFieldValue): void;
108
108
  }
109
109
  /**
110
110
  * Slot signatures for `<OrigamSliderField>`. `prepend` / `append` are
@@ -5,10 +5,28 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.activeDefaultsFor = activeDefaultsFor;
7
7
  exports.createOrigamCore = createOrigamCore;
8
- var _composables = require("./composables/index.cjs");
9
- var _consts = require("./consts/index.cjs");
8
+ var _date = require("./composables/Commons/date.composable.cjs");
9
+ var _defaults = require("./composables/Commons/defaults.composable.cjs");
10
+ var _display = require("./composables/Commons/display.composable.cjs");
11
+ var _goTo = require("./composables/Commons/goTo.composable.cjs");
12
+ var _locale = require("./composables/Commons/locale.composable.cjs");
13
+ var _themePropsResolver = require("./composables/Commons/theme-props-resolver.composable.cjs");
14
+ var _icon = require("./composables/Icon/icon.composable.cjs");
15
+ var _code = require("./consts/Code/code.const.cjs");
16
+ var _commons = require("./consts/Commons/commons.const.cjs");
17
+ var _date2 = require("./consts/Commons/date.const.cjs");
18
+ var _defaults2 = require("./consts/Commons/defaults.const.cjs");
19
+ var _display2 = require("./consts/Commons/display.const.cjs");
20
+ var _goTo2 = require("./consts/Commons/goTo.const.cjs");
21
+ var _locale2 = require("./consts/Commons/locale.const.cjs");
22
+ var _ssrStyle = require("./consts/Commons/ssr-style.const.cjs");
23
+ var _theme = require("./consts/Commons/theme.const.cjs");
24
+ var _variantPreset = require("./consts/Commons/variant-preset.const.cjs");
25
+ var _icon2 = require("./consts/Icon/icon.const.cjs");
10
26
  var _contrast = require("./directives/Contrast/contrast.directive.cjs");
11
- var _utils = require("./utils/index.cjs");
27
+ var _applyTheme = require("./utils/Commons/apply-theme.util.cjs");
28
+ var _commons2 = require("./utils/Commons/commons.util.cjs");
29
+ var _ssrStyles = require("./utils/Commons/ssr-styles.util.cjs");
12
30
  var _vue = require("vue");
13
31
  function scheduleDisplayUpdate(app, display) {
14
32
  const nuxt = app.$nuxt;
@@ -28,10 +46,10 @@ function scheduleDisplayUpdate(app, display) {
28
46
  }
29
47
  function origamAccessor() {
30
48
  return (0, _vue.reactive)({
31
- display: inject.call(this, _consts.ORIGAM_DISPLAY_KEY),
32
- icons: inject.call(this, _consts.ORIGAM_ICONS_KEY),
33
- locale: inject.call(this, _consts.ORIGAM_LOCALE_KEY),
34
- date: inject.call(this, _consts.ORIGAM_DATE_ADAPTER_KEY)
49
+ display: inject.call(this, _display2.ORIGAM_DISPLAY_KEY),
50
+ icons: inject.call(this, _icon2.ORIGAM_ICONS_KEY),
51
+ locale: inject.call(this, _locale2.ORIGAM_LOCALE_KEY),
52
+ date: inject.call(this, _date2.ORIGAM_DATE_ADAPTER_KEY)
35
53
  });
36
54
  }
37
55
  function installOptionsApiMixin(app) {
@@ -46,7 +64,7 @@ function createOrigamCore(origam = {}) {
46
64
  blueprint,
47
65
  ...rest
48
66
  } = origam;
49
- const options = (0, _utils.mergeDeep)(blueprint, rest);
67
+ const options = (0, _commons2.mergeDeep)(blueprint, rest);
50
68
  const {
51
69
  aliases = {},
52
70
  components = {},
@@ -54,22 +72,22 @@ function createOrigamCore(origam = {}) {
54
72
  } = options;
55
73
  const suppliedThemes = [...(options.theme ? [options.theme] : []), ...(options.themes ?? [])];
56
74
  const allThemes = [...suppliedThemes];
57
- const installedThemes = (0, _utils.installedThemesFromList)(allThemes);
58
- const defaultsRef = (0, _composables.createDefaults)({});
75
+ const installedThemes = (0, _applyTheme.installedThemesFromList)(allThemes);
76
+ const defaultsRef = (0, _defaults.createDefaults)({});
59
77
  defaultsRef.value = activeDefaultsFor(allThemes, allThemes[0]?.name ?? "");
60
- const themedKeysUnion = (0, _composables.themedPropKeysUnion)(allThemes.map(theme => theme.components).filter(components2 => !!components2));
61
- const variantPresets = (0, _composables.resolveVariantPresetRegistry)(_consts.VARIANT_PRESETS, allThemes.map(theme => theme.variants).filter(variants => !!variants));
78
+ const themedKeysUnion = (0, _themePropsResolver.themedPropKeysUnion)(allThemes.map(theme => theme.components).filter(components2 => !!components2));
79
+ const variantPresets = (0, _themePropsResolver.resolveVariantPresetRegistry)(_variantPreset.VARIANT_PRESETS, allThemes.map(theme => theme.variants).filter(variants => !!variants));
62
80
  const scope = (0, _vue.effectScope)();
63
81
  return scope.run(() => {
64
- const icons = (0, _composables.createIconsCore)(options.icons);
65
- const display = (0, _composables.createDisplay)(options.display, options.ssr);
66
- const locale = (0, _composables.createLocale)(options.locale);
67
- const date = (0, _composables.createDate)(options.date, locale);
68
- const goTo = (0, _composables.createGoTo)(options.goTo, locale);
82
+ const icons = (0, _icon.createIconsCore)(options.icons);
83
+ const display = (0, _display.createDisplay)(options.display, options.ssr);
84
+ const locale = (0, _locale.createLocale)(options.locale);
85
+ const date = (0, _date.createDate)(options.date, locale);
86
+ const goTo = (0, _goTo.createGoTo)(options.goTo, locale);
69
87
  (0, _contrast.setContrastConfig)(options.contrast);
70
88
  const install = app => {
71
89
  if (allThemes.length) {
72
- (0, _utils.applyThemes)(allThemes);
90
+ (0, _applyTheme.applyThemes)(allThemes);
73
91
  }
74
92
  for (const key in directives) {
75
93
  app.directive(key, directives[key]);
@@ -86,21 +104,21 @@ function createOrigamCore(origam = {}) {
86
104
  }
87
105
  const appScope = (0, _vue.effectScope)();
88
106
  app.onUnmount(() => appScope.stop());
89
- app.provide(_consts.ORIGAM_ICONS_KEY, icons);
90
- app.provide(_consts.ORIGAM_CODE_KEY, options.code ?? {});
91
- app.provide(_consts.ORIGAM_DISPLAY_KEY, display);
92
- app.provide(_consts.ORIGAM_LOCALE_KEY, locale);
93
- app.provide(_consts.ORIGAM_DATE_OPTIONS_KEY, date.options);
94
- app.provide(_consts.ORIGAM_DATE_ADAPTER_KEY, date.instance);
95
- app.provide(_consts.ORIGAM_GO_TO_KEY, goTo);
96
- app.provide(_consts.ORIGAM_THEMES_KEY, installedThemes);
97
- app.provide(_consts.ORIGAM_DEFAULTS_KEY, defaultsRef);
98
- if (!_consts.IN_BROWSER) {
99
- app.provide(_consts.ORIGAM_SSR_STYLES_KEY, (0, _utils.registerSsrStyleCollector)(app));
107
+ app.provide(_icon2.ORIGAM_ICONS_KEY, icons);
108
+ app.provide(_code.ORIGAM_CODE_KEY, options.code ?? {});
109
+ app.provide(_display2.ORIGAM_DISPLAY_KEY, display);
110
+ app.provide(_locale2.ORIGAM_LOCALE_KEY, locale);
111
+ app.provide(_date2.ORIGAM_DATE_OPTIONS_KEY, date.options);
112
+ app.provide(_date2.ORIGAM_DATE_ADAPTER_KEY, date.instance);
113
+ app.provide(_goTo2.ORIGAM_GO_TO_KEY, goTo);
114
+ app.provide(_theme.ORIGAM_THEMES_KEY, installedThemes);
115
+ app.provide(_defaults2.ORIGAM_DEFAULTS_KEY, defaultsRef);
116
+ if (!_commons.IN_BROWSER) {
117
+ app.provide(_ssrStyle.ORIGAM_SSR_STYLES_KEY, (0, _ssrStyles.registerSsrStyleCollector)(app));
100
118
  }
101
- (0, _composables.installThemePropsResolver)(app, themedKeysUnion, variantPresets);
102
- app.provide(_consts.ORIGAM_THEME_DEFAULTS_KEY, (brand, mode) => activeDefaultsFor(allThemes, brand, mode));
103
- if (_consts.IN_BROWSER && options.ssr) {
119
+ (0, _themePropsResolver.installThemePropsResolver)(app, themedKeysUnion, variantPresets);
120
+ app.provide(_theme.ORIGAM_THEME_DEFAULTS_KEY, (brand, mode) => activeDefaultsFor(allThemes, brand, mode));
121
+ if (_commons.IN_BROWSER && options.ssr) {
104
122
  scheduleDisplayUpdate(app, display);
105
123
  }
106
124
  if (typeof __VUE_OPTIONS_API__ !== "boolean" || __VUE_OPTIONS_API__) {
@@ -138,7 +156,7 @@ function activeDefaultsFor(themes, brand, mode) {
138
156
  const themeModeAgnostic = theme.mode === void 0 || theme.mode === "auto";
139
157
  const modeMatches = themeModeAgnostic || mode === void 0 || theme.mode === mode;
140
158
  if (brandMatches && modeMatches) {
141
- merged = (0, _utils.mergeDeep)(merged, theme.components);
159
+ merged = (0, _commons2.mergeDeep)(merged, theme.components);
142
160
  }
143
161
  }
144
162
  return merged;
@@ -1,31 +1,25 @@
1
- import {
2
- createDate,
3
- createDefaults,
4
- createDisplay,
5
- createGoTo,
6
- createIconsCore,
7
- createLocale,
8
- installThemePropsResolver,
9
- resolveVariantPresetRegistry,
10
- themedPropKeysUnion
11
- } from "./composables/index.js";
12
- import {
13
- IN_BROWSER,
14
- ORIGAM_CODE_KEY,
15
- ORIGAM_DATE_ADAPTER_KEY,
16
- ORIGAM_DATE_OPTIONS_KEY,
17
- ORIGAM_DEFAULTS_KEY,
18
- ORIGAM_DISPLAY_KEY,
19
- ORIGAM_GO_TO_KEY,
20
- ORIGAM_ICONS_KEY,
21
- ORIGAM_LOCALE_KEY,
22
- ORIGAM_SSR_STYLES_KEY,
23
- ORIGAM_THEME_DEFAULTS_KEY,
24
- ORIGAM_THEMES_KEY,
25
- VARIANT_PRESETS
26
- } from "./consts/index.js";
1
+ import { createDate } from "./composables/Commons/date.composable.js";
2
+ import { createDefaults } from "./composables/Commons/defaults.composable.js";
3
+ import { createDisplay } from "./composables/Commons/display.composable.js";
4
+ import { createGoTo } from "./composables/Commons/goTo.composable.js";
5
+ import { createLocale } from "./composables/Commons/locale.composable.js";
6
+ import { installThemePropsResolver, resolveVariantPresetRegistry, themedPropKeysUnion } from "./composables/Commons/theme-props-resolver.composable.js";
7
+ import { createIconsCore } from "./composables/Icon/icon.composable.js";
8
+ import { ORIGAM_CODE_KEY } from "./consts/Code/code.const.js";
9
+ import { IN_BROWSER } from "./consts/Commons/commons.const.js";
10
+ import { ORIGAM_DATE_ADAPTER_KEY, ORIGAM_DATE_OPTIONS_KEY } from "./consts/Commons/date.const.js";
11
+ import { ORIGAM_DEFAULTS_KEY } from "./consts/Commons/defaults.const.js";
12
+ import { ORIGAM_DISPLAY_KEY } from "./consts/Commons/display.const.js";
13
+ import { ORIGAM_GO_TO_KEY } from "./consts/Commons/goTo.const.js";
14
+ import { ORIGAM_LOCALE_KEY } from "./consts/Commons/locale.const.js";
15
+ import { ORIGAM_SSR_STYLES_KEY } from "./consts/Commons/ssr-style.const.js";
16
+ import { ORIGAM_THEME_DEFAULTS_KEY, ORIGAM_THEMES_KEY } from "./consts/Commons/theme.const.js";
17
+ import { VARIANT_PRESETS } from "./consts/Commons/variant-preset.const.js";
18
+ import { ORIGAM_ICONS_KEY } from "./consts/Icon/icon.const.js";
27
19
  import { setContrastConfig } from "./directives/Contrast/contrast.directive.js";
28
- import { applyThemes, installedThemesFromList, mergeDeep, registerSsrStyleCollector } from "./utils/index.js";
20
+ import { applyThemes, installedThemesFromList } from "./utils/Commons/apply-theme.util.js";
21
+ import { mergeDeep } from "./utils/Commons/commons.util.js";
22
+ import { registerSsrStyleCollector } from "./utils/Commons/ssr-styles.util.js";
29
23
  import { defineComponent, effectScope, nextTick, reactive } from "vue";
30
24
  function scheduleDisplayUpdate(app, display) {
31
25
  const nuxt = app.$nuxt;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export type TBoxValue = boolean | number | string;
File without changes
@@ -1,7 +1,20 @@
1
1
  import { Ref } from 'vue';
2
2
  import { LOCATION_STRATEGIES } from '../../enums/Commons/location.enum';
3
+ import type { TParsedAnchor } from './anchor.type';
3
4
  import type { ILocationStrategyData, ILocationStrategyProps } from '../../interfaces/Commons/location.interface';
4
5
  export type TLocationStrategyFn = (data: ILocationStrategyData, props: ILocationStrategyProps, contentStyles: Ref<Record<string, string>>) => undefined | {
5
6
  updateLocation: (e: Event) => void;
6
7
  };
7
8
  export type TLocationStrategy = `${LOCATION_STRATEGIES}`;
9
+ export type TPlacement = {
10
+ anchor: TParsedAnchor;
11
+ origin: TParsedAnchor;
12
+ };
13
+ export type TAxisOverflow = {
14
+ before: number;
15
+ after: number;
16
+ };
17
+ export type TOverflow = {
18
+ x: TAxisOverflow;
19
+ y: TAxisOverflow;
20
+ };
@@ -1,5 +1,5 @@
1
1
  declare class As<T extends string> {
2
- private as;
2
+ private readonly as;
3
3
  }
4
4
  export type TPoint = {
5
5
  x: number;
@@ -6,6 +6,7 @@ import { DATATABLE_SELECT_STRATEGY } from '../../enums/DataTable/data-table.enum
6
6
  import type { IDataTableItemKey } from '../../interfaces/DataTable/items.interface';
7
7
  import type { TDataTableRowSlotName } from './data-table-rows.type';
8
8
  export type TDataTableCompareFunction<T = any> = (a: T, b: T) => number | null;
9
+ export type TDataTableSortEntry<T> = readonly [T, Record<string, any>];
9
10
  export type TDataTableHeaderCell = Record<string, any> | ((data: Pick<IDataTableItemKey<any>, 'index' | 'item' | 'internalItem' | 'value'>) => Record<string, any>);
10
11
  export type TDataTableRow<T> = Record<string, any> | ((data: Pick<IDataTableItemKey<T>, 'index' | 'item' | 'internalItem'>) => Record<string, any>);
11
12
  export type TDataTableCell<T> = Record<string, any> | ((data: Pick<IDataTableItemKey<T>, 'index' | 'item' | 'internalItem' | 'value' | 'column'>) => Record<string, any>);