mediacube-ui-v2 0.0.8 → 0.0.9

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 (339) hide show
  1. package/dist/App.vue.js +54 -0
  2. package/dist/assets/tokens/json/animations.json +6 -0
  3. package/dist/assets/tokens/json/border-radius.json +24 -0
  4. package/dist/assets/tokens/json/box-shadows.json +24 -0
  5. package/dist/assets/tokens/json/colors.json +71 -0
  6. package/dist/assets/tokens/json/durations.json +10 -0
  7. package/dist/assets/tokens/json/easings.json +3 -0
  8. package/dist/assets/tokens/json/font-families.json +4 -0
  9. package/dist/assets/tokens/json/font-sizes.json +18 -0
  10. package/dist/assets/tokens/json/font-weights.json +12 -0
  11. package/dist/assets/tokens/json/gradients.json +13 -0
  12. package/dist/assets/tokens/json/index.js +18 -0
  13. package/dist/assets/tokens/json/letter-spacings.json +4 -0
  14. package/dist/assets/tokens/json/line-heights.json +18 -0
  15. package/dist/assets/tokens/json/media-queries.json +26 -0
  16. package/dist/assets/tokens/json/opacities.json +5 -0
  17. package/dist/assets/tokens/json/sizes.json +42 -0
  18. package/dist/assets/tokens/json/spacings.json +34 -0
  19. package/dist/assets/tokens/json/z-indexes.json +12 -0
  20. package/dist/components/elements/McAvatar/McAvatar.vue.js +412 -0
  21. package/dist/components/elements/McBadge/McBadge.vue.js +188 -0
  22. package/dist/components/elements/McBottomLoader/McBottomLoader.vue.js +83 -0
  23. package/dist/components/elements/McButton/McButton.vue.js +1037 -0
  24. package/dist/components/elements/McChip/McChip.vue.js +326 -0
  25. package/dist/components/elements/McCropper/McCropper.vue.js +98 -0
  26. package/dist/components/elements/McDatepicker/McDatepicker.vue.js +1255 -0
  27. package/dist/components/elements/McDraggable/McDraggable.vue.js +280 -0
  28. package/dist/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +542 -0
  29. package/dist/components/elements/McFieldRadio/McFieldRadio.vue.js +489 -0
  30. package/dist/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +471 -0
  31. package/dist/components/elements/McFieldRange/McFieldRange.vue.js +547 -0
  32. package/dist/components/elements/McFieldSelect/McFieldSelect.vue.js +1440 -0
  33. package/dist/components/elements/McFieldText/McFieldText.vue.js +1404 -0
  34. package/dist/components/elements/McFieldToggle/McFieldToggle.vue.js +408 -0
  35. package/dist/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +192 -0
  36. package/dist/components/elements/McNodata/McNoData.vue.js +319 -0
  37. package/dist/components/elements/McNotification/McNotification.vue.js +367 -0
  38. package/dist/components/elements/McProgress/McProgress.vue.js +361 -0
  39. package/dist/components/elements/McSeparator/McSeparator.vue.js +325 -0
  40. package/dist/components/elements/McSlideUpDown/McSlideUpDown.vue.js +271 -0
  41. package/dist/components/elements/McStack/McStack.vue.js +180 -0
  42. package/dist/components/elements/McSvgIcon/McSvgIcon.vue.js +289 -0
  43. package/dist/components/elements/McTitle/McTitle.vue.js +468 -0
  44. package/dist/components/elements/McTooltip/McTooltip.vue.js +246 -0
  45. package/dist/components/index.js +73 -0
  46. package/dist/components/patterns/McAccordion/McAccordion.vue.js +120 -0
  47. package/dist/components/patterns/McCell/McCell.vue.js +197 -0
  48. package/dist/components/patterns/McCollapse/McCollapse.vue.js +315 -0
  49. package/dist/components/patterns/McDropdown/McDropdown.vue.js +366 -0
  50. package/dist/components/patterns/McDropdown/McDropdownPanel.vue.js +83 -0
  51. package/dist/components/patterns/McFilter/McFilter.vue.js +1068 -0
  52. package/dist/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +211 -0
  53. package/dist/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +552 -0
  54. package/dist/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +188 -0
  55. package/dist/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +238 -0
  56. package/dist/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +359 -0
  57. package/dist/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +171 -0
  58. package/dist/components/patterns/McGridCol/McGridCol.vue.js +246 -0
  59. package/dist/components/patterns/McGridRow/McGridRow.vue.js +292 -0
  60. package/dist/components/patterns/McOverlay/McOverlay.vue.js +107 -0
  61. package/dist/components/patterns/McPreview/McPreview.vue.js +118 -0
  62. package/dist/components/patterns/McSideBar/McSideBar.vue.js +740 -0
  63. package/dist/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +204 -0
  64. package/dist/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +510 -0
  65. package/dist/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +413 -0
  66. package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +419 -0
  67. package/dist/components/patterns/McTab/McTab.vue.js +518 -0
  68. package/dist/components/patterns/McTabs/McTabs.vue.js +427 -0
  69. package/dist/components/patterns/McWrapScroll/McWrapScroll.vue.js +422 -0
  70. package/dist/components/templates/McDrawer/McDrawer.vue.js +304 -0
  71. package/dist/components/templates/McDrawer/McDrawerContainer.vue.js +133 -0
  72. package/dist/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +134 -0
  73. package/dist/components/templates/McModal/McModal.vue.js +664 -0
  74. package/dist/components/templates/McModal/McModalContainer.vue.js +119 -0
  75. package/dist/components/templates/McTable/McTable/McTable.vue.js +862 -0
  76. package/dist/components/templates/McTable/McTableCard/McTableCard.vue.js +339 -0
  77. package/dist/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +119 -0
  78. package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +118 -0
  79. package/dist/components/templates/McTable/McTableSort/McTableSort.vue.js +136 -0
  80. package/dist/components/templates/McTopBar/McTopBar.vue.js +309 -0
  81. package/dist/components/templates/McVirtualScroll/McVirtualScroll.vue.js +239 -0
  82. package/dist/composables/index.js +8 -0
  83. package/dist/composables/useDrawer.js +72 -0
  84. package/dist/composables/useEncodeDecode.js +25 -0
  85. package/dist/composables/useFieldErrors.js +20 -0
  86. package/dist/composables/useHelper.js +79 -0
  87. package/dist/composables/useModal.js +71 -0
  88. package/dist/composables/useRandomNumber.js +10 -0
  89. package/dist/composables/useTooltip.js +154 -0
  90. package/dist/consts/table.js +6 -0
  91. package/dist/enums/Cell.js +6 -0
  92. package/dist/enums/Chip.js +11 -0
  93. package/dist/enums/Datepicker.js +42 -0
  94. package/dist/enums/Drawer.js +5 -0
  95. package/dist/enums/Dropdown.js +12 -0
  96. package/dist/enums/Filter.js +14 -0
  97. package/dist/enums/Grid.js +24 -0
  98. package/dist/enums/Input.js +20 -0
  99. package/dist/enums/Modal.js +5 -0
  100. package/dist/enums/Preview.js +6 -0
  101. package/dist/enums/Radio.js +5 -0
  102. package/dist/enums/RadioGroup.js +5 -0
  103. package/dist/enums/Select.js +11 -0
  104. package/dist/enums/Sidebar.js +5 -0
  105. package/dist/enums/Tab.js +6 -0
  106. package/dist/enums/Title.js +21 -0
  107. package/dist/enums/Tooltip.js +15 -0
  108. package/dist/enums/index.js +22 -0
  109. package/dist/enums/ui/Alignment.js +6 -0
  110. package/dist/enums/ui/Button.js +24 -0
  111. package/dist/enums/ui/Directions.js +5 -0
  112. package/dist/enums/ui/Weights.js +7 -0
  113. package/dist/index.js +13 -10522
  114. package/dist/main.js +6 -0
  115. package/dist/mocks/authUser.js +162 -0
  116. package/dist/mocks/categories.js +107 -0
  117. package/dist/mocks/filterMocks.js +128 -0
  118. package/dist/mocks/icons.json +1 -0
  119. package/dist/mocks/menuLangs.js +19 -0
  120. package/dist/mocks/sidebar.js +125 -0
  121. package/dist/mocks/tableData.js +8180 -0
  122. package/dist/types/App.vue.d.ts +2 -0
  123. package/dist/types/IButton.js +1 -0
  124. package/dist/types/ICell.js +1 -0
  125. package/dist/types/IChip.js +1 -0
  126. package/dist/types/ICollapse.js +1 -0
  127. package/dist/types/IDatepicker.js +1 -0
  128. package/dist/types/IDirections.js +1 -0
  129. package/dist/types/IDrawer.js +1 -0
  130. package/dist/types/IDropdown.js +1 -0
  131. package/dist/types/IFilter.js +1 -0
  132. package/dist/types/IGrid.js +1 -0
  133. package/dist/types/IInput.js +1 -0
  134. package/dist/types/IModal.js +1 -0
  135. package/dist/types/IPreview.js +1 -0
  136. package/dist/types/IRadio.js +1 -0
  137. package/dist/types/IRadioGroup.js +1 -0
  138. package/dist/types/IRoute.js +1 -0
  139. package/dist/types/ISelect.js +1 -0
  140. package/dist/types/ISideBar.js +1 -0
  141. package/dist/types/ITable.js +1 -0
  142. package/dist/types/ITabs.js +1 -0
  143. package/dist/types/ITitle.js +1 -0
  144. package/dist/types/ITooltip.js +1 -0
  145. package/dist/types/assets/tokens/json/index.d.ts +18 -0
  146. package/dist/{components → types/components}/elements/McAvatar/McAvatar.vue.d.ts +5 -5
  147. package/dist/{components → types/components}/elements/McBadge/McBadge.vue.d.ts +3 -3
  148. package/dist/types/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
  149. package/dist/{components → types/components}/elements/McButton/McButton.vue.d.ts +13 -12
  150. package/dist/{components → types/components}/elements/McChip/McChip.vue.d.ts +7 -6
  151. package/dist/types/components/elements/McCropper/McCropper.vue.d.ts +2 -0
  152. package/dist/{components → types/components}/elements/McDatepicker/McDatepicker.vue.d.ts +2 -1
  153. package/dist/{components → types/components}/elements/McDraggable/McDraggable.vue.d.ts +4 -4
  154. package/dist/{components → types/components}/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
  155. package/dist/{components → types/components}/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
  156. package/dist/{components → types/components}/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
  157. package/dist/{components → types/components}/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
  158. package/dist/{components → types/components}/elements/McFieldSelect/McFieldSelect.vue.d.ts +12 -11
  159. package/dist/{components → types/components}/elements/McFieldText/McFieldText.vue.d.ts +9 -9
  160. package/dist/{components → types/components}/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
  161. package/dist/{components → types/components}/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
  162. package/dist/types/components/elements/McNodata/McNoData.vue.d.ts +110 -0
  163. package/dist/types/components/elements/McNotification/McNotification.vue.d.ts +124 -0
  164. package/dist/{components → types/components}/elements/McProgress/McProgress.vue.d.ts +5 -5
  165. package/dist/{components → types/components}/elements/McSeparator/McSeparator.vue.d.ts +4 -4
  166. package/dist/{components → types/components}/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
  167. package/dist/{components → types/components}/elements/McStack/McStack.vue.d.ts +4 -4
  168. package/dist/{components → types/components}/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
  169. package/dist/{components → types/components}/elements/McTitle/McTitle.vue.d.ts +7 -7
  170. package/dist/{components → types/components}/elements/McTooltip/McTooltip.vue.d.ts +6 -6
  171. package/dist/types/components/index.d.ts +70 -0
  172. package/dist/{components → types/components}/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
  173. package/dist/{components → types/components}/patterns/McCell/McCell.vue.d.ts +6 -6
  174. package/dist/{components → types/components}/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
  175. package/dist/{components → types/components}/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
  176. package/dist/types/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
  177. package/dist/{components → types/components}/patterns/McFilter/McFilter.vue.d.ts +6 -6
  178. package/dist/{components → types/components}/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
  179. package/dist/{components → types/components}/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
  180. package/dist/{components → types/components}/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
  181. package/dist/{components → types/components}/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
  182. package/dist/{components → types/components}/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
  183. package/dist/{components → types/components}/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
  184. package/dist/{components → types/components}/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
  185. package/dist/{components → types/components}/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
  186. package/dist/{components → types/components}/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
  187. package/dist/{components → types/components}/patterns/McPreview/McPreview.vue.d.ts +4 -4
  188. package/dist/types/components/patterns/McSideBar/McSideBar.vue.d.ts +292 -0
  189. package/dist/{components → types/components}/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
  190. package/dist/{components → types/components}/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +6 -6
  191. package/dist/{components → types/components}/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
  192. package/dist/types/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +123 -0
  193. package/dist/types/components/patterns/McTab/McTab.vue.d.ts +224 -0
  194. package/dist/{components → types/components}/patterns/McTabs/McTabs.vue.d.ts +8 -7
  195. package/dist/{components → types/components}/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
  196. package/dist/types/components/templates/McDrawer/McDrawer.vue.d.ts +104 -0
  197. package/dist/{components → types/components}/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
  198. package/dist/{components → types/components}/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
  199. package/dist/{components → types/components}/templates/McModal/McModal.vue.d.ts +7 -7
  200. package/dist/{components → types/components}/templates/McModal/McModalContainer.vue.d.ts +5 -5
  201. package/dist/types/components/templates/McTable/McTable/McTable.vue.d.ts +295 -0
  202. package/dist/{components → types/components}/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
  203. package/dist/{components → types/components}/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
  204. package/dist/types/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
  205. package/dist/{components → types/components}/templates/McTable/McTableSort/McTableSort.vue.d.ts +7 -7
  206. package/dist/{components → types/components}/templates/McTopBar/McTopBar.vue.d.ts +4 -4
  207. package/dist/{components → types/components}/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
  208. package/dist/{composables → types/composables}/index.d.ts +1 -1
  209. package/dist/{composables → types/composables}/useDrawer.d.ts +1 -1
  210. package/dist/types/composables/useFieldErrors.d.ts +5 -0
  211. package/dist/{composables → types/composables}/useTooltip.d.ts +1 -1
  212. package/dist/types/index.d.ts +9 -36
  213. package/dist/types/index.js +38 -0
  214. package/dist/types/main.d.ts +2 -0
  215. package/dist/{mocks → types/mocks}/filterMocks.d.ts +1 -1
  216. package/dist/{mocks → types/mocks}/sidebar.d.ts +1 -1
  217. package/dist/{mocks → types/mocks}/tableData.d.ts +1 -1
  218. package/dist/types/styles/Alignment.js +1 -0
  219. package/dist/types/styles/AvatarSizes.js +3 -0
  220. package/dist/types/styles/Colors.js +3 -0
  221. package/dist/types/styles/Durations.js +3 -0
  222. package/dist/types/styles/FontSizes.js +3 -0
  223. package/dist/types/styles/FontWeights.js +3 -0
  224. package/dist/types/styles/Grid.js +1 -0
  225. package/dist/types/styles/Icons.js +2 -0
  226. package/dist/types/styles/LineHeights.js +3 -0
  227. package/dist/types/styles/MediaQueries.js +3 -0
  228. package/dist/types/styles/Radiuses.js +3 -0
  229. package/dist/types/styles/Sizes.js +3 -0
  230. package/dist/types/styles/Spaces.js +3 -0
  231. package/dist/types/styles/Weights.js +1 -0
  232. package/dist/types/{IButton.d.ts → types/IButton.d.ts} +5 -5
  233. package/dist/types/{ICell.d.ts → types/ICell.d.ts} +1 -1
  234. package/dist/types/{IChip.d.ts → types/IChip.d.ts} +2 -2
  235. package/dist/types/{IDatepicker.d.ts → types/IDatepicker.d.ts} +1 -1
  236. package/dist/types/{IDirections.d.ts → types/IDirections.d.ts} +1 -1
  237. package/dist/types/{IDrawer.d.ts → types/IDrawer.d.ts} +2 -2
  238. package/dist/types/{IDropdown.d.ts → types/IDropdown.d.ts} +1 -1
  239. package/dist/types/{IFilter.d.ts → types/IFilter.d.ts} +1 -1
  240. package/dist/types/{IInput.d.ts → types/IInput.d.ts} +1 -1
  241. package/dist/types/{IModal.d.ts → types/IModal.d.ts} +2 -2
  242. package/dist/types/{IPreview.d.ts → types/IPreview.d.ts} +1 -1
  243. package/dist/types/{IRadio.d.ts → types/IRadio.d.ts} +1 -1
  244. package/dist/types/{IRadioGroup.d.ts → types/IRadioGroup.d.ts} +1 -1
  245. package/dist/types/{ISelect.d.ts → types/ISelect.d.ts} +1 -1
  246. package/dist/types/{ISideBar.d.ts → types/ISideBar.d.ts} +5 -5
  247. package/dist/types/{ITable.d.ts → types/ITable.d.ts} +2 -2
  248. package/dist/types/{ITabs.d.ts → types/ITabs.d.ts} +4 -4
  249. package/dist/types/{ITitle.d.ts → types/ITitle.d.ts} +1 -1
  250. package/dist/types/{ITooltip.d.ts → types/ITooltip.d.ts} +1 -1
  251. package/dist/types/types/index.d.ts +36 -0
  252. package/dist/types/{styles → types/styles}/Alignment.d.ts +1 -1
  253. package/dist/types/{styles → types/styles}/Grid.d.ts +1 -1
  254. package/dist/types/{styles → types/styles}/Weights.d.ts +1 -1
  255. package/dist/{utils → types/utils}/dayjs.d.ts +2 -1
  256. package/dist/{utils → types/utils}/mcGridColAdaptiveProps.d.ts +1 -1
  257. package/dist/{utils → types/utils}/mcTitleAdaptiveProps.d.ts +1 -1
  258. package/dist/utils/dayjs.js +18 -0
  259. package/dist/utils/mcGridColAdaptiveProps.js +10 -0
  260. package/dist/utils/mcTitleAdaptiveProps.js +10 -0
  261. package/package.json +7 -3
  262. package/dist/App.vue.d.ts +0 -2
  263. package/dist/assets/tokens/json/animations.json.d.ts +0 -8
  264. package/dist/assets/tokens/json/border-radius.json.d.ts +0 -26
  265. package/dist/assets/tokens/json/box-shadows.json.d.ts +0 -26
  266. package/dist/assets/tokens/json/colors.json.d.ts +0 -73
  267. package/dist/assets/tokens/json/durations.json.d.ts +0 -12
  268. package/dist/assets/tokens/json/easings.json.d.ts +0 -5
  269. package/dist/assets/tokens/json/font-families.json.d.ts +0 -6
  270. package/dist/assets/tokens/json/font-sizes.json.d.ts +0 -20
  271. package/dist/assets/tokens/json/font-weights.json.d.ts +0 -14
  272. package/dist/assets/tokens/json/gradients.json.d.ts +0 -15
  273. package/dist/assets/tokens/json/index.d.ts +0 -18
  274. package/dist/assets/tokens/json/letter-spacings.json.d.ts +0 -6
  275. package/dist/assets/tokens/json/line-heights.json.d.ts +0 -20
  276. package/dist/assets/tokens/json/media-queries.json.d.ts +0 -28
  277. package/dist/assets/tokens/json/opacities.json.d.ts +0 -7
  278. package/dist/assets/tokens/json/sizes.json.d.ts +0 -44
  279. package/dist/assets/tokens/json/spacings.json.d.ts +0 -36
  280. package/dist/assets/tokens/json/z-indexes.json.d.ts +0 -14
  281. package/dist/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +0 -14
  282. package/dist/components/elements/McNodata/McNoData.vue.d.ts +0 -110
  283. package/dist/components/elements/McNotification/McNotification.vue.d.ts +0 -124
  284. package/dist/components/index.d.ts +0 -61
  285. package/dist/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +0 -22
  286. package/dist/components/patterns/McSideBar/McSideBar.vue.d.ts +0 -292
  287. package/dist/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +0 -123
  288. package/dist/components/patterns/McTab/McTab.vue.d.ts +0 -224
  289. package/dist/components/templates/McDrawer/McDrawer.vue.d.ts +0 -104
  290. package/dist/components/templates/McTable/McTable/McTable.vue.d.ts +0 -295
  291. package/dist/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +0 -18
  292. package/dist/composables/useFieldErrors.d.ts +0 -5
  293. package/dist/index.d.ts +0 -9
  294. package/dist/main.d.ts +0 -0
  295. package/dist/mocks/icons.json.d.ts +0 -3
  296. /package/dist/{composables → types/composables}/useEncodeDecode.d.ts +0 -0
  297. /package/dist/{composables → types/composables}/useHelper.d.ts +0 -0
  298. /package/dist/{composables → types/composables}/useModal.d.ts +0 -0
  299. /package/dist/{composables → types/composables}/useRandomNumber.d.ts +0 -0
  300. /package/dist/{consts → types/consts}/table.d.ts +0 -0
  301. /package/dist/{enums → types/enums}/Cell.d.ts +0 -0
  302. /package/dist/{enums → types/enums}/Chip.d.ts +0 -0
  303. /package/dist/{enums → types/enums}/Datepicker.d.ts +0 -0
  304. /package/dist/{enums → types/enums}/Drawer.d.ts +0 -0
  305. /package/dist/{enums → types/enums}/Dropdown.d.ts +0 -0
  306. /package/dist/{enums → types/enums}/Filter.d.ts +0 -0
  307. /package/dist/{enums → types/enums}/Grid.d.ts +0 -0
  308. /package/dist/{enums → types/enums}/Input.d.ts +0 -0
  309. /package/dist/{enums → types/enums}/Modal.d.ts +0 -0
  310. /package/dist/{enums → types/enums}/Preview.d.ts +0 -0
  311. /package/dist/{enums → types/enums}/Radio.d.ts +0 -0
  312. /package/dist/{enums → types/enums}/RadioGroup.d.ts +0 -0
  313. /package/dist/{enums → types/enums}/Select.d.ts +0 -0
  314. /package/dist/{enums → types/enums}/Sidebar.d.ts +0 -0
  315. /package/dist/{enums → types/enums}/Tab.d.ts +0 -0
  316. /package/dist/{enums → types/enums}/Title.d.ts +0 -0
  317. /package/dist/{enums → types/enums}/Tooltip.d.ts +0 -0
  318. /package/dist/{enums → types/enums}/index.d.ts +0 -0
  319. /package/dist/{enums → types/enums}/ui/Alignment.d.ts +0 -0
  320. /package/dist/{enums → types/enums}/ui/Button.d.ts +0 -0
  321. /package/dist/{enums → types/enums}/ui/Directions.d.ts +0 -0
  322. /package/dist/{enums → types/enums}/ui/Weights.d.ts +0 -0
  323. /package/dist/{mocks → types/mocks}/authUser.d.ts +0 -0
  324. /package/dist/{mocks → types/mocks}/categories.d.ts +0 -0
  325. /package/dist/{mocks → types/mocks}/menuLangs.d.ts +0 -0
  326. /package/dist/types/{ICollapse.d.ts → types/ICollapse.d.ts} +0 -0
  327. /package/dist/types/{IGrid.d.ts → types/IGrid.d.ts} +0 -0
  328. /package/dist/types/{IRoute.d.ts → types/IRoute.d.ts} +0 -0
  329. /package/dist/types/{styles → types/styles}/AvatarSizes.d.ts +0 -0
  330. /package/dist/types/{styles → types/styles}/Colors.d.ts +0 -0
  331. /package/dist/types/{styles → types/styles}/Durations.d.ts +0 -0
  332. /package/dist/types/{styles → types/styles}/FontSizes.d.ts +0 -0
  333. /package/dist/types/{styles → types/styles}/FontWeights.d.ts +0 -0
  334. /package/dist/types/{styles → types/styles}/Icons.d.ts +0 -0
  335. /package/dist/types/{styles → types/styles}/LineHeights.d.ts +0 -0
  336. /package/dist/types/{styles → types/styles}/MediaQueries.d.ts +0 -0
  337. /package/dist/types/{styles → types/styles}/Radiuses.d.ts +0 -0
  338. /package/dist/types/{styles → types/styles}/Sizes.d.ts +0 -0
  339. /package/dist/types/{styles → types/styles}/Spaces.d.ts +0 -0
@@ -0,0 +1,72 @@
1
+ import { reactive, h, render, getCurrentInstance, shallowRef, markRaw } from 'vue';
2
+ import DrawerContainer from '@/components/templates/McDrawer/McDrawerContainer.vue';
3
+ const closeServiceState = () => {
4
+ drawerServiceState.isOpen = false;
5
+ reactiveProps.drawers = [];
6
+ };
7
+ const drawerServiceState = reactive({
8
+ isOpen: false,
9
+ closeServiceState: closeServiceState
10
+ });
11
+ const drawerComponents = shallowRef({});
12
+ const reactiveProps = reactive({ drawers: [] });
13
+ const createDrawerContainer = () => {
14
+ const drawerContainerElement = document.createElement('div');
15
+ drawerContainerElement.id = 'drawer-container';
16
+ document.body.appendChild(drawerContainerElement);
17
+ const vnode = h(DrawerContainer, { drawerServiceState, reactiveProps });
18
+ render(vnode, drawerContainerElement);
19
+ };
20
+ // Если компонент DrawerContainer ещё не был добавлен в DOM, создаем его
21
+ const ensureDrawerContainerExists = () => {
22
+ if (!document.getElementById('drawer-container')) {
23
+ createDrawerContainer();
24
+ }
25
+ };
26
+ const showDrawer = (componentName, // Component name from drawerComponents: {...}
27
+ drawerProps = {}, componentProps = {}) => {
28
+ //@ts-ignore
29
+ if (!drawerComponents.value[componentName]) {
30
+ return console.warn('The component is not provided in Mediacube-ui DS\n' +
31
+ 'Check and add to app.use(MediacubeUI, { drawerComponents: {...} })');
32
+ }
33
+ ensureDrawerContainerExists();
34
+ const id = Date.now();
35
+ const newDrawer = {
36
+ //@ts-ignore
37
+ component: markRaw(drawerComponents.value[componentName]),
38
+ componentName: componentName,
39
+ drawerProps: drawerProps,
40
+ componentProps: componentProps,
41
+ modelValue: true,
42
+ id,
43
+ close: () => {
44
+ //@ts-ignore
45
+ const drawerToClose = reactiveProps.drawers.findLast((d) => d.id === id);
46
+ drawerToClose && (drawerToClose.modelValue = false);
47
+ setTimeout(() => {
48
+ reactiveProps.drawers = reactiveProps.drawers.filter((d) => d.id !== drawerToClose?.id);
49
+ }, drawerProps?.duration || 300);
50
+ }
51
+ };
52
+ reactiveProps.drawers.push(newDrawer);
53
+ drawerServiceState.isOpen = true;
54
+ };
55
+ const closeDrawer = (componentName) => {
56
+ //@ts-ignore
57
+ const drawerToClose = reactiveProps.drawers.findLast((d) => d.componentName === componentName);
58
+ drawerToClose && drawerToClose.close();
59
+ };
60
+ const closeAllDrawers = () => {
61
+ reactiveProps.drawers.forEach((d) => {
62
+ d.close();
63
+ });
64
+ };
65
+ export function useDrawer() {
66
+ //@ts-ignore
67
+ const { proxy } = getCurrentInstance();
68
+ if (proxy.$dsOptions?.drawerComponents) {
69
+ drawerComponents.value = proxy.$dsOptions.drawerComponents;
70
+ }
71
+ return { showDrawer, closeDrawer, closeAllDrawers };
72
+ }
@@ -0,0 +1,25 @@
1
+ class UseEncodeDecode {
2
+ static encode(value) {
3
+ if (value.constructor !== Object)
4
+ return value;
5
+ try {
6
+ return btoa(encodeURI(JSON.stringify(value)));
7
+ }
8
+ catch (e) {
9
+ console.error(e);
10
+ return value;
11
+ }
12
+ }
13
+ static decode(value) {
14
+ if (!value)
15
+ return value;
16
+ try {
17
+ return JSON.parse(decodeURI(atob(value)));
18
+ }
19
+ catch (e) {
20
+ console.error(e);
21
+ return value;
22
+ }
23
+ }
24
+ }
25
+ export { UseEncodeDecode };
@@ -0,0 +1,20 @@
1
+ import { computed, ref, watch } from 'vue';
2
+ export function useFieldErrors(errors) {
3
+ const is_error_visible = ref(true);
4
+ const errorText = computed(() => {
5
+ if (errors === null || !errors?.length || !is_error_visible.value)
6
+ return null;
7
+ return errors.join(', ')?.replace(/-/gm, '‑');
8
+ });
9
+ watch(() => errors, () => {
10
+ is_error_visible.value = false;
11
+ });
12
+ const toggleErrorVisible = () => {
13
+ is_error_visible.value = false;
14
+ };
15
+ return {
16
+ is_error_visible,
17
+ errorText,
18
+ toggleErrorVisible
19
+ };
20
+ }
@@ -0,0 +1,79 @@
1
+ function isEmpty(value) {
2
+ if (value == null)
3
+ return true;
4
+ if (Array.isArray(value) || typeof value === 'string') {
5
+ return value.length === 0;
6
+ }
7
+ if (typeof value === 'object') {
8
+ return Object.keys(value).length === 0;
9
+ }
10
+ return false;
11
+ }
12
+ function isEqual(value1, value2) {
13
+ if (value1 === value2) {
14
+ return true;
15
+ }
16
+ if (typeof value1 !== 'object' || typeof value2 !== 'object' || value1 === null || value2 === null) {
17
+ return false;
18
+ }
19
+ if (Array.isArray(value1) !== Array.isArray(value2)) {
20
+ return false;
21
+ }
22
+ const keys1 = Object.keys(value1);
23
+ const keys2 = Object.keys(value2);
24
+ if (keys1.length !== keys2.length) {
25
+ return false;
26
+ }
27
+ for (const key of keys1) {
28
+ if (!isEqual(value1[key], value2[key])) {
29
+ return false;
30
+ }
31
+ }
32
+ return true;
33
+ }
34
+ function cloneDeep(value) {
35
+ if (value === null || typeof value !== 'object') {
36
+ return value;
37
+ }
38
+ if (Array.isArray(value)) {
39
+ return value.map(cloneDeep);
40
+ }
41
+ const clonedObj = {};
42
+ for (const key in value) {
43
+ if (hasProperty(value, key)) {
44
+ clonedObj[key] = cloneDeep(value[key]);
45
+ }
46
+ }
47
+ return clonedObj;
48
+ }
49
+ function uniqWith(array, comparator) {
50
+ return array.reduce((acc, current) => {
51
+ if (!acc.some((item) => comparator(item, current))) {
52
+ acc.push(current);
53
+ }
54
+ return acc;
55
+ }, []);
56
+ }
57
+ function deepMerge(target, source) {
58
+ for (const key in source) {
59
+ if (source[key] instanceof Object && key in target) {
60
+ Object.assign(source[key], deepMerge(target[key], source[key]));
61
+ }
62
+ }
63
+ Object.assign(target || {}, source);
64
+ return target;
65
+ }
66
+ function hasProperty(object, prop) {
67
+ return Object.prototype.hasOwnProperty.call(object, prop);
68
+ }
69
+ function isNumber(payload) {
70
+ return typeof payload === 'number';
71
+ }
72
+ function upperFirst(str) {
73
+ if (!str)
74
+ return str;
75
+ return str.charAt(0).toUpperCase() + str.slice(1);
76
+ }
77
+ export function useHelper() {
78
+ return { isEmpty, isEqual, cloneDeep, uniqWith, deepMerge, hasProperty, isNumber, upperFirst };
79
+ }
@@ -0,0 +1,71 @@
1
+ import { reactive, h, render, getCurrentInstance, shallowRef, markRaw } from 'vue';
2
+ import ModalContainer from '@/components/templates/McModal/McModalContainer.vue';
3
+ const closeServiceState = () => {
4
+ modalServiceState.isOpen = false;
5
+ reactiveProps.modals = [];
6
+ };
7
+ const modalServiceState = reactive({
8
+ isOpen: false,
9
+ closeServiceState: closeServiceState
10
+ });
11
+ const modalComponents = shallowRef({});
12
+ const reactiveProps = reactive({ modals: [] });
13
+ const createModalContainer = () => {
14
+ const modalContainerElement = document.createElement('div');
15
+ modalContainerElement.id = 'modal-container';
16
+ document.body.appendChild(modalContainerElement);
17
+ const vnode = h(ModalContainer, { modalServiceState, reactiveProps });
18
+ render(vnode, modalContainerElement);
19
+ };
20
+ // Если компонент ModalContainer ещё не был добавлен в DOM, создаем его
21
+ const ensureModalContainerExists = () => {
22
+ if (!document.getElementById('modal-container')) {
23
+ createModalContainer();
24
+ }
25
+ };
26
+ const showModal = (componentName, // Component name from modalComponents: {...}
27
+ componentProps = {}) => {
28
+ //@ts-ignore
29
+ if (!modalComponents.value[componentName]) {
30
+ return console.warn('The component is not provided in Mediacube-ui DS\n' +
31
+ 'Check and add to app.use(MediacubeUI, { modalComponents: {...} })');
32
+ }
33
+ ensureModalContainerExists();
34
+ const id = Date.now();
35
+ const newModal = {
36
+ //@ts-ignore
37
+ component: markRaw(modalComponents.value[componentName]),
38
+ componentName: componentName,
39
+ componentProps: componentProps,
40
+ modelValue: true,
41
+ id,
42
+ close: () => {
43
+ //@ts-ignore
44
+ const modalToClose = reactiveProps.modals.findLast((d) => d.id === id);
45
+ modalToClose && (modalToClose.modelValue = false);
46
+ setTimeout(() => {
47
+ reactiveProps.modals = reactiveProps.modals.filter((d) => d.id !== modalToClose?.id);
48
+ }, 300);
49
+ }
50
+ };
51
+ reactiveProps.modals.push(newModal);
52
+ modalServiceState.isOpen = true;
53
+ };
54
+ const closeModal = (componentName) => {
55
+ //@ts-ignore
56
+ const modalToClose = reactiveProps.modals.findLast((d) => d.componentName === componentName);
57
+ modalToClose && modalToClose.close();
58
+ };
59
+ const closeAllModals = () => {
60
+ reactiveProps.modals.forEach((d) => {
61
+ d.close();
62
+ });
63
+ };
64
+ export function useModal() {
65
+ //@ts-ignore
66
+ const { proxy } = getCurrentInstance();
67
+ if (proxy.$dsOptions?.modalComponents) {
68
+ modalComponents.value = proxy.$dsOptions.modalComponents;
69
+ }
70
+ return { showModal, closeModal, closeAllModals };
71
+ }
@@ -0,0 +1,10 @@
1
+ export function timestamp(postfixLength = 0) {
2
+ if (!postfixLength)
3
+ return Date.now();
4
+ const min = Math.pow(10, postfixLength - 1);
5
+ const max = Math.pow(10, postfixLength) - 1;
6
+ return +(String(Date.now()) + String(Math.floor(Math.random() * (max - min + 1)) + min));
7
+ }
8
+ export function useRandomNumber() {
9
+ return { timestamp };
10
+ }
@@ -0,0 +1,154 @@
1
+ import { useDebounceFn } from '@vueuse/core';
2
+ import { useRandomNumber } from '@/composables/useRandomNumber';
3
+ import { onBeforeUnmount, onMounted, ref } from 'vue';
4
+ import { TooltipPositions, TooltipSizes } from '@/enums';
5
+ import { Colors } from '@/types';
6
+ import { useHelper } from '@/composables/useHelper';
7
+ const debounce = useDebounceFn((method) => {
8
+ method();
9
+ }, 150);
10
+ const tooltipInstances = ref([]);
11
+ const helper = useHelper();
12
+ class TooltipInstance {
13
+ id;
14
+ target;
15
+ content;
16
+ visible = ref(false);
17
+ position = ref({ top: null, left: null, translate: 'translate(0, 0)' });
18
+ placement;
19
+ size;
20
+ arrow;
21
+ color;
22
+ textColor;
23
+ constructor(el, value) {
24
+ this.target = el;
25
+ this.content = value.content;
26
+ this.placement = value.placement || TooltipPositions.Top;
27
+ this.size = value.size || TooltipSizes.M;
28
+ this.id = useRandomNumber().timestamp(5);
29
+ this.arrow = helper.hasProperty(value, 'arrow') ? !!value.arrow : true;
30
+ this.color = value.color || Colors.black;
31
+ this.textColor = value.textColor || Colors.white;
32
+ this.target.addEventListener('mouseenter', this.showTooltip);
33
+ this.target.addEventListener('mouseleave', this.hideTooltip);
34
+ //@ts-ignore
35
+ tooltipInstances.value.push(this);
36
+ }
37
+ showTooltip = () => {
38
+ this.updateTooltipPosition();
39
+ this.visible.value = true;
40
+ let tooltipElement = document.getElementById(String(this.id));
41
+ if (!tooltipElement) {
42
+ const tooltipDiv = document.createElement('div');
43
+ tooltipDiv.classList.add('mc-tooltip');
44
+ tooltipDiv.id = String(this.id);
45
+ tooltipDiv.innerText = this.content || '';
46
+ tooltipDiv.style.setProperty('--tooltip-color', this.color);
47
+ tooltipDiv.style.setProperty('--tooltip-text-color', this.textColor);
48
+ tooltipDiv.setAttribute('tooltip-placement', this.placement);
49
+ tooltipDiv.setAttribute('tooltip-size', this.size);
50
+ tooltipDiv.setAttribute('tooltip-arrow', String(this.arrow));
51
+ document.getElementById('tooltip-container')?.appendChild(tooltipDiv);
52
+ }
53
+ tooltipElement = document.getElementById(String(this.id));
54
+ if (tooltipElement) {
55
+ tooltipElement.style.visibility = 'visible';
56
+ for (const key in this.position.value) {
57
+ if (key && helper.hasProperty(this.position.value, key)) {
58
+ //@ts-ignore
59
+ tooltipElement.style[key] = `${this.position.value[key]}px`;
60
+ }
61
+ }
62
+ tooltipElement.style.transform = this.position.value.translate;
63
+ }
64
+ };
65
+ hideTooltip = () => {
66
+ this.visible.value = false;
67
+ const tooltipElement = document.getElementById(String(this.id));
68
+ if (tooltipElement) {
69
+ tooltipElement.style.visibility = 'hidden';
70
+ }
71
+ };
72
+ updateTooltipPosition = () => {
73
+ const { top, left, width, height } = this.target.getBoundingClientRect();
74
+ const requiredTop = top + window.scrollY;
75
+ const requiredLeft = left + window.scrollX;
76
+ const space = 4;
77
+ const arrow = this.arrow ? 4 : 0;
78
+ switch (this.placement) {
79
+ case TooltipPositions.Right:
80
+ this.position.value = {
81
+ top: requiredTop,
82
+ left: requiredLeft + width + (space + arrow),
83
+ translate: `translate(0, calc(-50% + ${height / 2}px))`
84
+ };
85
+ break;
86
+ case TooltipPositions.Left:
87
+ this.position.value = {
88
+ top: requiredTop,
89
+ left: requiredLeft - (space + arrow),
90
+ translate: `translate(-100%, calc(-50% + ${height / 2}px))`
91
+ };
92
+ break;
93
+ case TooltipPositions.Top:
94
+ this.position.value = {
95
+ top: requiredTop - (space + arrow),
96
+ left: requiredLeft + width / 2,
97
+ translate: 'translate(-50%, -100%)'
98
+ };
99
+ break;
100
+ case TooltipPositions.Bottom:
101
+ this.position.value = {
102
+ top: requiredTop + height + (space + arrow),
103
+ left: requiredLeft + width / 2,
104
+ translate: 'translate(-50%, 0%)'
105
+ };
106
+ break;
107
+ }
108
+ };
109
+ destroy = () => {
110
+ this.target.removeEventListener('mouseenter', this.showTooltip);
111
+ this.target.removeEventListener('mouseleave', this.hideTooltip);
112
+ tooltipInstances.value = tooltipInstances.value.filter((instance) => instance.id !== this.id);
113
+ const tooltipToDestroy = document.getElementById(String(this.id));
114
+ tooltipToDestroy && tooltipToDestroy.remove();
115
+ };
116
+ }
117
+ const updateAllTooltips = debounce(() => {
118
+ tooltipInstances.value.forEach((instance) => instance.updateTooltipPosition());
119
+ });
120
+ const createTooltipContainer = () => {
121
+ const modalContainerElement = document.createElement('div');
122
+ modalContainerElement.id = 'tooltip-container';
123
+ document.body.appendChild(modalContainerElement);
124
+ };
125
+ const ensureTooltipContainerExists = () => {
126
+ if (!document.getElementById('tooltip-container')) {
127
+ createTooltipContainer();
128
+ }
129
+ };
130
+ onMounted(() => {
131
+ window.addEventListener('scroll', () => updateAllTooltips);
132
+ window.addEventListener('resize', () => updateAllTooltips);
133
+ });
134
+ onBeforeUnmount(() => {
135
+ window.removeEventListener('scroll', () => updateAllTooltips);
136
+ window.removeEventListener('resize', () => updateAllTooltips);
137
+ });
138
+ export function useTooltip() {
139
+ const tooltip = ref(null);
140
+ return {
141
+ mounted(el, binding) {
142
+ ensureTooltipContainerExists();
143
+ const content = binding.value.content;
144
+ if (!content)
145
+ return;
146
+ //@ts-ignore
147
+ tooltip.value = new TooltipInstance(el, binding.value);
148
+ },
149
+ updated() { },
150
+ beforeUnmount() {
151
+ tooltip.value?.destroy();
152
+ }
153
+ };
154
+ }
@@ -0,0 +1,6 @@
1
+ export const TABLE = {
2
+ defaultHeaderHeight: 40,
3
+ defaultRowHeight: 40,
4
+ defaultFooterRowHeight: 40,
5
+ defaultTableFirstColWidth: 251,
6
+ };
@@ -0,0 +1,6 @@
1
+ export var CellSizes;
2
+ (function (CellSizes) {
3
+ CellSizes["S"] = "s";
4
+ CellSizes["M"] = "m";
5
+ CellSizes["L"] = "l";
6
+ })(CellSizes || (CellSizes = {}));
@@ -0,0 +1,11 @@
1
+ export var ChipSize;
2
+ (function (ChipSize) {
3
+ ChipSize["Xs"] = "xs";
4
+ ChipSize["S"] = "s";
5
+ ChipSize["M"] = "m";
6
+ })(ChipSize || (ChipSize = {}));
7
+ export var ChipModifiers;
8
+ (function (ChipModifiers) {
9
+ ChipModifiers["Invert"] = "invert";
10
+ ChipModifiers["Outline"] = "outline";
11
+ })(ChipModifiers || (ChipModifiers = {}));
@@ -0,0 +1,42 @@
1
+ export var DatepickerTypes;
2
+ (function (DatepickerTypes) {
3
+ DatepickerTypes["TimePicker"] = "time-picker";
4
+ DatepickerTypes["DatePicker"] = "date-picker";
5
+ DatepickerTypes["DateTimePicker"] = "date-time-picker";
6
+ DatepickerTypes["WeekPicker"] = "week-picker";
7
+ DatepickerTypes["MonthPicker"] = "month-picker";
8
+ DatepickerTypes["YearPicker"] = "year-picker";
9
+ })(DatepickerTypes || (DatepickerTypes = {}));
10
+ export var DatepickerFormatsVariations;
11
+ (function (DatepickerFormatsVariations) {
12
+ DatepickerFormatsVariations["Picker"] = "picker";
13
+ DatepickerFormatsVariations["Dayjs"] = "dayjs";
14
+ DatepickerFormatsVariations["Output"] = "output";
15
+ })(DatepickerFormatsVariations || (DatepickerFormatsVariations = {}));
16
+ export var DatepickerFormat;
17
+ (function (DatepickerFormat) {
18
+ DatepickerFormat["TimePicker"] = "HH:mm";
19
+ DatepickerFormat["DateTimePicker"] = "dd.MM.yyyy HH:mm";
20
+ DatepickerFormat["DatePicker"] = "dd.MM.yyyy";
21
+ DatepickerFormat["WeekPicker"] = "ww.yyyy";
22
+ DatepickerFormat["MonthPicker"] = "MM.yyyy";
23
+ DatepickerFormat["YearPicker"] = "yyyy";
24
+ })(DatepickerFormat || (DatepickerFormat = {}));
25
+ export var DayjsFormat;
26
+ (function (DayjsFormat) {
27
+ DayjsFormat["TimePicker"] = "HH:mm";
28
+ DayjsFormat["DateTimePicker"] = "DD.MM.YYYY HH:mm";
29
+ DayjsFormat["DatePicker"] = "DD.MM.YYYY";
30
+ DayjsFormat["WeekPicker"] = "WW.YYYY";
31
+ DayjsFormat["MonthPicker"] = "MM.YYYY";
32
+ DayjsFormat["YearPicker"] = "YYYY";
33
+ })(DayjsFormat || (DayjsFormat = {}));
34
+ export var DatepickerOutputFormat;
35
+ (function (DatepickerOutputFormat) {
36
+ DatepickerOutputFormat["TimePicker"] = "HH:mm";
37
+ DatepickerOutputFormat["DateTimePicker"] = "YYYY-MM-DD HH:mm";
38
+ DatepickerOutputFormat["DatePicker"] = "YYYY-MM-DD";
39
+ DatepickerOutputFormat["WeekPicker"] = "YYYY-WW";
40
+ DatepickerOutputFormat["MonthPicker"] = "YYYY-MM-DD";
41
+ DatepickerOutputFormat["YearPicker"] = "YYYY";
42
+ })(DatepickerOutputFormat || (DatepickerOutputFormat = {}));
@@ -0,0 +1,5 @@
1
+ export var DrawerPositions;
2
+ (function (DrawerPositions) {
3
+ DrawerPositions["Left"] = "left";
4
+ DrawerPositions["Right"] = "right";
5
+ })(DrawerPositions || (DrawerPositions = {}));
@@ -0,0 +1,12 @@
1
+ export var DropdownListPositions;
2
+ (function (DropdownListPositions) {
3
+ DropdownListPositions["Top"] = "top";
4
+ DropdownListPositions["Bottom"] = "bottom";
5
+ DropdownListPositions["Auto"] = "auto";
6
+ })(DropdownListPositions || (DropdownListPositions = {}));
7
+ export var DropdownPositions;
8
+ (function (DropdownPositions) {
9
+ DropdownPositions["Left"] = "left";
10
+ DropdownPositions["Right"] = "right";
11
+ DropdownPositions["Auto"] = "auto";
12
+ })(DropdownPositions || (DropdownPositions = {}));
@@ -0,0 +1,14 @@
1
+ export var FilterRelations;
2
+ (function (FilterRelations) {
3
+ FilterRelations["Exists"] = "exists";
4
+ FilterRelations["Is"] = "is";
5
+ FilterRelations["IsNot"] = "is_not";
6
+ })(FilterRelations || (FilterRelations = {}));
7
+ export var FilterTypes;
8
+ (function (FilterTypes) {
9
+ FilterTypes["Relation"] = "relation";
10
+ FilterTypes["Date"] = "date";
11
+ FilterTypes["Text"] = "text";
12
+ FilterTypes["Range"] = "range";
13
+ FilterTypes["Fast"] = "fast";
14
+ })(FilterTypes || (FilterTypes = {}));
@@ -0,0 +1,24 @@
1
+ export var ColumnSizes;
2
+ (function (ColumnSizes) {
3
+ ColumnSizes["Xs"] = "xs";
4
+ ColumnSizes["S"] = "s";
5
+ ColumnSizes["M"] = "m";
6
+ ColumnSizes["L"] = "l";
7
+ ColumnSizes["Xl"] = "xl";
8
+ ColumnSizes["Xxl"] = "xxl";
9
+ })(ColumnSizes || (ColumnSizes = {}));
10
+ export var ColumnJustifyAlignment;
11
+ (function (ColumnJustifyAlignment) {
12
+ ColumnJustifyAlignment["Left"] = "left";
13
+ ColumnJustifyAlignment["Right"] = "right";
14
+ ColumnJustifyAlignment["Center"] = "center";
15
+ ColumnJustifyAlignment["Around"] = "around";
16
+ ColumnJustifyAlignment["Between"] = "between";
17
+ })(ColumnJustifyAlignment || (ColumnJustifyAlignment = {}));
18
+ export var ColumnAlignment;
19
+ (function (ColumnAlignment) {
20
+ ColumnAlignment["Top"] = "top";
21
+ ColumnAlignment["Middle"] = "middle";
22
+ ColumnAlignment["Bottom"] = "bottom";
23
+ ColumnAlignment["Stretch"] = "stretch";
24
+ })(ColumnAlignment || (ColumnAlignment = {}));
@@ -0,0 +1,20 @@
1
+ export var InputTypes;
2
+ (function (InputTypes) {
3
+ InputTypes["Text"] = "text";
4
+ InputTypes["Password"] = "password";
5
+ InputTypes["Email"] = "email";
6
+ InputTypes["Date"] = "date";
7
+ InputTypes["Textarea"] = "textarea";
8
+ InputTypes["TextareaAutosize"] = "textarea-autosize";
9
+ InputTypes["Num"] = "num";
10
+ InputTypes["Int"] = "int";
11
+ InputTypes["AmountFormat"] = "amount_format";
12
+ InputTypes["Uppercase"] = "uppercase";
13
+ InputTypes["Lowercase"] = "lowercase";
14
+ InputTypes["PhoneNumber"] = "phone_number";
15
+ })(InputTypes || (InputTypes = {}));
16
+ export var Autocomplete;
17
+ (function (Autocomplete) {
18
+ Autocomplete["On"] = "on";
19
+ Autocomplete["Off"] = "off";
20
+ })(Autocomplete || (Autocomplete = {}));
@@ -0,0 +1,5 @@
1
+ export var ModalVariation;
2
+ (function (ModalVariation) {
3
+ ModalVariation["Default"] = "default";
4
+ ModalVariation["Info"] = "info";
5
+ })(ModalVariation || (ModalVariation = {}));
@@ -0,0 +1,6 @@
1
+ export var PreviewSizes;
2
+ (function (PreviewSizes) {
3
+ PreviewSizes["S"] = "s";
4
+ PreviewSizes["M"] = "m";
5
+ PreviewSizes["L"] = "l";
6
+ })(PreviewSizes || (PreviewSizes = {}));
@@ -0,0 +1,5 @@
1
+ export var RadioVariation;
2
+ (function (RadioVariation) {
3
+ RadioVariation["Circle"] = "circle";
4
+ RadioVariation["Checkmark"] = "checkmark";
5
+ })(RadioVariation || (RadioVariation = {}));
@@ -0,0 +1,5 @@
1
+ export var RadioGroupDirection;
2
+ (function (RadioGroupDirection) {
3
+ RadioGroupDirection["Column"] = "column";
4
+ RadioGroupDirection["Row"] = "row";
5
+ })(RadioGroupDirection || (RadioGroupDirection = {}));
@@ -0,0 +1,11 @@
1
+ export var SelectGroupKeys;
2
+ (function (SelectGroupKeys) {
3
+ SelectGroupKeys["Label"] = "label";
4
+ SelectGroupKeys["Values"] = "values";
5
+ })(SelectGroupKeys || (SelectGroupKeys = {}));
6
+ export var SelectListDirections;
7
+ (function (SelectListDirections) {
8
+ SelectListDirections["Top"] = "above";
9
+ SelectListDirections["Bottom"] = "below";
10
+ SelectListDirections["Auto"] = "auto";
11
+ })(SelectListDirections || (SelectListDirections = {}));
@@ -0,0 +1,5 @@
1
+ export var SidebarTheme;
2
+ (function (SidebarTheme) {
3
+ SidebarTheme["Black"] = "black";
4
+ SidebarTheme["White"] = "white";
5
+ })(SidebarTheme || (SidebarTheme = {}));
@@ -0,0 +1,6 @@
1
+ export var TabVariations;
2
+ (function (TabVariations) {
3
+ TabVariations["Body"] = "body";
4
+ TabVariations["Captions"] = "caption";
5
+ TabVariations["Overline"] = "overline";
6
+ })(TabVariations || (TabVariations = {}));
@@ -0,0 +1,21 @@
1
+ export var TitleSizes;
2
+ (function (TitleSizes) {
3
+ TitleSizes["Xs"] = "xs";
4
+ TitleSizes["S"] = "s";
5
+ TitleSizes["M"] = "m";
6
+ TitleSizes["L"] = "l";
7
+ TitleSizes["Xl"] = "xl";
8
+ TitleSizes["Xxl"] = "xxl";
9
+ })(TitleSizes || (TitleSizes = {}));
10
+ export var TitleVariations;
11
+ (function (TitleVariations) {
12
+ TitleVariations["H1"] = "h1";
13
+ TitleVariations["H2"] = "h2";
14
+ TitleVariations["H3"] = "h3";
15
+ TitleVariations["H4"] = "h4";
16
+ TitleVariations["Subtitle"] = "subtitle";
17
+ TitleVariations["Body"] = "body";
18
+ TitleVariations["Overline"] = "overline";
19
+ TitleVariations["Article"] = "article";
20
+ TitleVariations["Info"] = "info";
21
+ })(TitleVariations || (TitleVariations = {}));