mediacube-ui-v2 0.0.32 → 0.0.34

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 (348) hide show
  1. package/dist/mediacube-ui-v2.cjs.js +7 -0
  2. package/dist/mediacube-ui-v2.es.js +23887 -0
  3. package/dist/src/App.vue.d.ts +1 -1
  4. package/dist/src/App.vue.d.ts.map +1 -1
  5. package/dist/src/assets/tokens/json/animations.json.d.ts +8 -0
  6. package/dist/src/assets/tokens/json/border-radius.json.d.ts +26 -0
  7. package/dist/src/assets/tokens/json/box-shadows.json.d.ts +26 -0
  8. package/dist/src/assets/tokens/json/colors.json.d.ts +73 -0
  9. package/dist/src/assets/tokens/json/durations.json.d.ts +12 -0
  10. package/dist/src/assets/tokens/json/easings.json.d.ts +5 -0
  11. package/dist/src/assets/tokens/json/font-families.json.d.ts +6 -0
  12. package/dist/src/assets/tokens/json/font-sizes.json.d.ts +20 -0
  13. package/dist/src/assets/tokens/json/font-weights.json.d.ts +14 -0
  14. package/dist/src/assets/tokens/json/gradients.json.d.ts +15 -0
  15. package/dist/src/assets/tokens/json/index.d.ts +17 -17
  16. package/dist/src/assets/tokens/json/letter-spacings.json.d.ts +6 -0
  17. package/dist/src/assets/tokens/json/line-heights.json.d.ts +20 -0
  18. package/dist/src/assets/tokens/json/media-queries.json.d.ts +28 -0
  19. package/dist/src/assets/tokens/json/opacities.json.d.ts +7 -0
  20. package/dist/src/assets/tokens/json/sizes.json.d.ts +44 -0
  21. package/dist/src/assets/tokens/json/spacings.json.d.ts +36 -0
  22. package/dist/src/assets/tokens/json/z-indexes.json.d.ts +14 -0
  23. package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts +5 -5
  24. package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts.map +1 -1
  25. package/dist/src/components/elements/McBadge/McBadge.vue.d.ts +3 -3
  26. package/dist/src/components/elements/McBadge/McBadge.vue.d.ts.map +1 -1
  27. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +3 -3
  28. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts.map +1 -1
  29. package/dist/src/components/elements/McButton/McButton.vue.d.ts +9 -10
  30. package/dist/src/components/elements/McButton/McButton.vue.d.ts.map +1 -1
  31. package/dist/src/components/elements/McChip/McChip.vue.d.ts +6 -7
  32. package/dist/src/components/elements/McChip/McChip.vue.d.ts.map +1 -1
  33. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts +1 -2
  34. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts.map +1 -1
  35. package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts +4 -4
  36. package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts.map +1 -1
  37. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -1
  38. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts.map +1 -1
  39. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -8
  40. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts.map +1 -1
  41. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -1
  42. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts.map +1 -1
  43. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts +6 -6
  44. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts.map +1 -1
  45. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +8 -9
  46. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts.map +1 -1
  47. package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts +9 -9
  48. package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts.map +1 -1
  49. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -6
  50. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts.map +1 -1
  51. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -4
  52. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts.map +1 -1
  53. package/dist/src/components/elements/McNodata/McNoData.vue.d.ts +5 -5
  54. package/dist/src/components/elements/McNodata/McNoData.vue.d.ts.map +1 -1
  55. package/dist/src/components/elements/McNotification/McNotification.vue.d.ts +5 -5
  56. package/dist/src/components/elements/McNotification/McNotification.vue.d.ts.map +1 -1
  57. package/dist/src/components/elements/McProgress/McProgress.vue.d.ts +5 -5
  58. package/dist/src/components/elements/McProgress/McProgress.vue.d.ts.map +1 -1
  59. package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts +4 -4
  60. package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts.map +1 -1
  61. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -5
  62. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts.map +1 -1
  63. package/dist/src/components/elements/McStack/McStack.vue.d.ts +4 -4
  64. package/dist/src/components/elements/McStack/McStack.vue.d.ts.map +1 -1
  65. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -9
  66. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts.map +1 -1
  67. package/dist/src/components/elements/McTitle/McTitle.vue.d.ts +7 -7
  68. package/dist/src/components/elements/McTitle/McTitle.vue.d.ts.map +1 -1
  69. package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts +6 -6
  70. package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts.map +1 -1
  71. package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts +4 -4
  72. package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts.map +1 -1
  73. package/dist/src/components/patterns/McCell/McCell.vue.d.ts +6 -6
  74. package/dist/src/components/patterns/McCell/McCell.vue.d.ts.map +1 -1
  75. package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts +6 -6
  76. package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts.map +1 -1
  77. package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts +7 -7
  78. package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts.map +1 -1
  79. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +4 -4
  80. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts.map +1 -1
  81. package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts +6 -6
  82. package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts.map +1 -1
  83. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -6
  84. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts.map +1 -1
  85. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -6
  86. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts.map +1 -1
  87. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -6
  88. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts.map +1 -1
  89. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -6
  90. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts.map +1 -1
  91. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -6
  92. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts.map +1 -1
  93. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -6
  94. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts.map +1 -1
  95. package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts +4 -4
  96. package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts.map +1 -1
  97. package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts +5 -5
  98. package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts.map +1 -1
  99. package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts +4 -4
  100. package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts.map +1 -1
  101. package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts +4 -4
  102. package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts.map +1 -1
  103. package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts +7 -7
  104. package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts.map +1 -1
  105. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -5
  106. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts.map +1 -1
  107. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +5 -5
  108. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts.map +1 -1
  109. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -6
  110. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts.map +1 -1
  111. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +6 -6
  112. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts.map +1 -1
  113. package/dist/src/components/patterns/McTab/McTab.vue.d.ts +5 -5
  114. package/dist/src/components/patterns/McTab/McTab.vue.d.ts.map +1 -1
  115. package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts +7 -8
  116. package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts.map +1 -1
  117. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -7
  118. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts.map +1 -1
  119. package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts +7 -7
  120. package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts.map +1 -1
  121. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -5
  122. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts.map +1 -1
  123. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -4
  124. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts.map +1 -1
  125. package/dist/src/components/templates/McModal/McModal.vue.d.ts +7 -7
  126. package/dist/src/components/templates/McModal/McModal.vue.d.ts.map +1 -1
  127. package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts +5 -5
  128. package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts.map +1 -1
  129. package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts +7 -7
  130. package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts.map +1 -1
  131. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -6
  132. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts.map +1 -1
  133. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -4
  134. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts.map +1 -1
  135. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +5 -5
  136. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts.map +1 -1
  137. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +6 -6
  138. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts.map +1 -1
  139. package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts +4 -4
  140. package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts.map +1 -1
  141. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -4
  142. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts.map +1 -1
  143. package/dist/src/composables/index.d.ts +1 -1
  144. package/dist/src/composables/useDrawer.d.ts +1 -1
  145. package/dist/src/composables/useFieldErrors.d.ts +2 -2
  146. package/dist/src/composables/useTooltip.d.ts +1 -1
  147. package/dist/src/index.d.ts +2 -2
  148. package/dist/src/index.d.ts.map +1 -1
  149. package/dist/src/main.d.ts +0 -2
  150. package/dist/src/mocks/filterMocks.d.ts +1 -1
  151. package/dist/src/mocks/icons.json.d.ts +3 -0
  152. package/dist/src/mocks/sidebar.d.ts +1 -1
  153. package/dist/src/mocks/tableData.d.ts +1 -1
  154. package/dist/src/types/IButton.d.ts +5 -5
  155. package/dist/src/types/ICell.d.ts +1 -1
  156. package/dist/src/types/IChip.d.ts +2 -2
  157. package/dist/src/types/IDatepicker.d.ts +1 -1
  158. package/dist/src/types/IDirections.d.ts +1 -1
  159. package/dist/src/types/IDrawer.d.ts +2 -2
  160. package/dist/src/types/IDropdown.d.ts +1 -1
  161. package/dist/src/types/IFilter.d.ts +1 -1
  162. package/dist/src/types/IInput.d.ts +1 -1
  163. package/dist/src/types/IModal.d.ts +2 -2
  164. package/dist/src/types/IPreview.d.ts +1 -1
  165. package/dist/src/types/IRadio.d.ts +1 -1
  166. package/dist/src/types/IRadioGroup.d.ts +1 -1
  167. package/dist/src/types/ISelect.d.ts +1 -1
  168. package/dist/src/types/ISideBar.d.ts +5 -5
  169. package/dist/src/types/ITable.d.ts +2 -2
  170. package/dist/src/types/ITabs.d.ts +4 -4
  171. package/dist/src/types/ITitle.d.ts +1 -1
  172. package/dist/src/types/ITooltip.d.ts +1 -1
  173. package/dist/src/types/styles/Alignment.d.ts +1 -1
  174. package/dist/src/types/styles/Grid.d.ts +1 -1
  175. package/dist/src/types/styles/Weights.d.ts +1 -1
  176. package/dist/src/utils/mcGridColAdaptiveProps.d.ts +1 -1
  177. package/dist/src/utils/mcTitleAdaptiveProps.d.ts +1 -1
  178. package/dist/style.css +1 -11696
  179. package/package.json +6 -4
  180. package/dist/index.cjs +0 -13694
  181. package/dist/index.js +0 -13687
  182. package/dist/src/App.vue.js +0 -54
  183. package/dist/src/assets/tokens/json/animations.json +0 -6
  184. package/dist/src/assets/tokens/json/border-radius.json +0 -24
  185. package/dist/src/assets/tokens/json/box-shadows.json +0 -24
  186. package/dist/src/assets/tokens/json/colors.json +0 -71
  187. package/dist/src/assets/tokens/json/durations.json +0 -10
  188. package/dist/src/assets/tokens/json/easings.json +0 -3
  189. package/dist/src/assets/tokens/json/font-families.json +0 -4
  190. package/dist/src/assets/tokens/json/font-sizes.json +0 -18
  191. package/dist/src/assets/tokens/json/font-weights.json +0 -12
  192. package/dist/src/assets/tokens/json/gradients.json +0 -13
  193. package/dist/src/assets/tokens/json/index.js +0 -18
  194. package/dist/src/assets/tokens/json/letter-spacings.json +0 -4
  195. package/dist/src/assets/tokens/json/line-heights.json +0 -18
  196. package/dist/src/assets/tokens/json/media-queries.json +0 -26
  197. package/dist/src/assets/tokens/json/opacities.json +0 -5
  198. package/dist/src/assets/tokens/json/sizes.json +0 -42
  199. package/dist/src/assets/tokens/json/spacings.json +0 -34
  200. package/dist/src/assets/tokens/json/z-indexes.json +0 -12
  201. package/dist/src/components/elements/McAvatar/McAvatar.vue.js +0 -412
  202. package/dist/src/components/elements/McBadge/McBadge.vue.js +0 -188
  203. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.js +0 -83
  204. package/dist/src/components/elements/McButton/McButton.vue.js +0 -1037
  205. package/dist/src/components/elements/McChip/McChip.vue.js +0 -326
  206. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts +0 -30
  207. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts.map +0 -1
  208. package/dist/src/components/elements/McCropper/McCropper.vue.js +0 -155
  209. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.js +0 -1251
  210. package/dist/src/components/elements/McDraggable/McDraggable.vue.js +0 -280
  211. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +0 -541
  212. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.js +0 -488
  213. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +0 -470
  214. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.js +0 -547
  215. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.js +0 -1436
  216. package/dist/src/components/elements/McFieldText/McFieldText.vue.js +0 -1401
  217. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.js +0 -408
  218. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +0 -192
  219. package/dist/src/components/elements/McNodata/McNoData.vue.js +0 -316
  220. package/dist/src/components/elements/McNotification/McNotification.vue.js +0 -364
  221. package/dist/src/components/elements/McProgress/McProgress.vue.js +0 -361
  222. package/dist/src/components/elements/McSeparator/McSeparator.vue.js +0 -325
  223. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.js +0 -271
  224. package/dist/src/components/elements/McStack/McStack.vue.js +0 -180
  225. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.js +0 -286
  226. package/dist/src/components/elements/McTitle/McTitle.vue.js +0 -466
  227. package/dist/src/components/elements/McTooltip/McTooltip.vue.js +0 -246
  228. package/dist/src/components/index.js +0 -69
  229. package/dist/src/components/patterns/McAccordion/McAccordion.vue.js +0 -120
  230. package/dist/src/components/patterns/McCell/McCell.vue.js +0 -197
  231. package/dist/src/components/patterns/McCollapse/McCollapse.vue.js +0 -314
  232. package/dist/src/components/patterns/McDropdown/McDropdown.vue.js +0 -366
  233. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.js +0 -83
  234. package/dist/src/components/patterns/McFilter/McFilter.vue.js +0 -1056
  235. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +0 -210
  236. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +0 -546
  237. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +0 -188
  238. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +0 -238
  239. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +0 -356
  240. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +0 -171
  241. package/dist/src/components/patterns/McGridCol/McGridCol.vue.js +0 -246
  242. package/dist/src/components/patterns/McGridRow/McGridRow.vue.js +0 -292
  243. package/dist/src/components/patterns/McOverlay/McOverlay.vue.js +0 -107
  244. package/dist/src/components/patterns/McPreview/McPreview.vue.js +0 -118
  245. package/dist/src/components/patterns/McSideBar/McSideBar.vue.js +0 -738
  246. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +0 -204
  247. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +0 -508
  248. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +0 -409
  249. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +0 -415
  250. package/dist/src/components/patterns/McTab/McTab.vue.js +0 -518
  251. package/dist/src/components/patterns/McTabs/McTabs.vue.js +0 -427
  252. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.js +0 -422
  253. package/dist/src/components/templates/McDrawer/McDrawer.vue.js +0 -304
  254. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.js +0 -133
  255. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +0 -134
  256. package/dist/src/components/templates/McModal/McModal.vue.js +0 -664
  257. package/dist/src/components/templates/McModal/McModalContainer.vue.js +0 -119
  258. package/dist/src/components/templates/McTable/McTable/McTable.vue.js +0 -854
  259. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.js +0 -339
  260. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +0 -118
  261. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +0 -118
  262. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.js +0 -136
  263. package/dist/src/components/templates/McTopBar/McTopBar.vue.js +0 -305
  264. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.js +0 -239
  265. package/dist/src/composables/index.js +0 -7
  266. package/dist/src/composables/useDrawer.js +0 -72
  267. package/dist/src/composables/useEncodeDecode.js +0 -25
  268. package/dist/src/composables/useFieldErrors.js +0 -20
  269. package/dist/src/composables/useHelper.js +0 -79
  270. package/dist/src/composables/useModal.js +0 -71
  271. package/dist/src/composables/useRandomNumber.js +0 -10
  272. package/dist/src/composables/useTooltip.js +0 -154
  273. package/dist/src/consts/index.js +0 -1
  274. package/dist/src/consts/table.js +0 -6
  275. package/dist/src/enums/Cell.js +0 -6
  276. package/dist/src/enums/Chip.js +0 -11
  277. package/dist/src/enums/Datepicker.js +0 -42
  278. package/dist/src/enums/Drawer.js +0 -5
  279. package/dist/src/enums/Dropdown.js +0 -12
  280. package/dist/src/enums/Filter.js +0 -14
  281. package/dist/src/enums/Grid.js +0 -24
  282. package/dist/src/enums/Input.js +0 -20
  283. package/dist/src/enums/Modal.js +0 -5
  284. package/dist/src/enums/Preview.js +0 -6
  285. package/dist/src/enums/Radio.js +0 -5
  286. package/dist/src/enums/RadioGroup.js +0 -5
  287. package/dist/src/enums/Select.js +0 -11
  288. package/dist/src/enums/Sidebar.js +0 -5
  289. package/dist/src/enums/Tab.js +0 -6
  290. package/dist/src/enums/Title.js +0 -21
  291. package/dist/src/enums/Tooltip.js +0 -15
  292. package/dist/src/enums/index.js +0 -22
  293. package/dist/src/enums/ui/Alignment.js +0 -6
  294. package/dist/src/enums/ui/Button.js +0 -24
  295. package/dist/src/enums/ui/Directions.js +0 -5
  296. package/dist/src/enums/ui/Weights.js +0 -7
  297. package/dist/src/index.js +0 -17
  298. package/dist/src/main.js +0 -8
  299. package/dist/src/mocks/authUser.js +0 -162
  300. package/dist/src/mocks/categories.js +0 -108
  301. package/dist/src/mocks/filterMocks.js +0 -128
  302. package/dist/src/mocks/icons.json +0 -1
  303. package/dist/src/mocks/menuLangs.js +0 -19
  304. package/dist/src/mocks/selectOptions.json +0 -111
  305. package/dist/src/mocks/sidebar.js +0 -125
  306. package/dist/src/mocks/tableData.js +0 -8180
  307. package/dist/src/types/IButton.js +0 -1
  308. package/dist/src/types/ICell.js +0 -1
  309. package/dist/src/types/IChip.js +0 -1
  310. package/dist/src/types/ICollapse.js +0 -1
  311. package/dist/src/types/IDatepicker.js +0 -1
  312. package/dist/src/types/IDirections.js +0 -1
  313. package/dist/src/types/IDrawer.js +0 -1
  314. package/dist/src/types/IDropdown.js +0 -1
  315. package/dist/src/types/IFilter.js +0 -1
  316. package/dist/src/types/IGrid.js +0 -1
  317. package/dist/src/types/IInput.js +0 -1
  318. package/dist/src/types/IModal.js +0 -1
  319. package/dist/src/types/IPreview.js +0 -1
  320. package/dist/src/types/IRadio.js +0 -1
  321. package/dist/src/types/IRadioGroup.js +0 -1
  322. package/dist/src/types/IRoute.js +0 -1
  323. package/dist/src/types/ISelect.js +0 -1
  324. package/dist/src/types/ISideBar.js +0 -1
  325. package/dist/src/types/ITable.js +0 -1
  326. package/dist/src/types/ITabs.js +0 -1
  327. package/dist/src/types/ITitle.js +0 -1
  328. package/dist/src/types/ITooltip.js +0 -1
  329. package/dist/src/types/index.js +0 -38
  330. package/dist/src/types/styles/Alignment.js +0 -1
  331. package/dist/src/types/styles/AvatarSizes.js +0 -3
  332. package/dist/src/types/styles/Colors.js +0 -3
  333. package/dist/src/types/styles/Durations.js +0 -3
  334. package/dist/src/types/styles/FontSizes.js +0 -3
  335. package/dist/src/types/styles/FontWeights.js +0 -3
  336. package/dist/src/types/styles/Grid.js +0 -1
  337. package/dist/src/types/styles/Icons.js +0 -2
  338. package/dist/src/types/styles/LineHeights.js +0 -3
  339. package/dist/src/types/styles/MediaQueries.js +0 -3
  340. package/dist/src/types/styles/Radiuses.js +0 -3
  341. package/dist/src/types/styles/Sizes.js +0 -3
  342. package/dist/src/types/styles/Spaces.js +0 -3
  343. package/dist/src/types/styles/Weights.js +0 -1
  344. package/dist/src/utils/dayjs.js +0 -22
  345. package/dist/src/utils/index.js +0 -2
  346. package/dist/src/utils/mcGridColAdaptiveProps.js +0 -10
  347. package/dist/src/utils/mcTitleAdaptiveProps.js +0 -10
  348. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,1251 +0,0 @@
1
- import { computed, onMounted, reactive, ref, useAttrs, watch } from 'vue';
2
- import { DatepickerFormat, DatepickerTypes, DayjsFormat, DatepickerOutputFormat, DatepickerFormatsVariations } from '@/enums/Datepicker';
3
- //@ts-ignore
4
- import { dayjs, dayjsLocales } from '../../../utils/dayjs.js';
5
- import { default as DatePicker } from '@vuepic/vue-datepicker';
6
- import '@vuepic/vue-datepicker/dist/main.css';
7
- import { McTitle, McSvgIcon, McButton } from '@/components';
8
- import { useFieldErrors } from '@/composables';
9
- import { ButtonSize, TitleVariations, Weights } from '@/enums';
10
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
11
- const attrs = useAttrs();
12
- const emit = defineEmits(['update:modelValue']);
13
- const props = defineProps({
14
- //@ts-ignore
15
- modelValue: {
16
- type: [String, Array]
17
- },
18
- /**
19
- * Тип датапикера
20
- */
21
- type: {
22
- type: String,
23
- default: DatepickerTypes.DatePicker
24
- },
25
- /**
26
- * Заголовок поля:
27
- */
28
- title: {
29
- type: String,
30
- default: ''
31
- },
32
- /**
33
- * Вспомогательный текст под инпутом:
34
- */
35
- helpText: {
36
- type: String,
37
- default: ''
38
- },
39
- /**
40
- * Редактируемый инпут
41
- */
42
- editable: {
43
- type: Boolean,
44
- default: false
45
- },
46
- disabled: {
47
- type: Boolean,
48
- default: false
49
- },
50
- placeholder: {
51
- type: String,
52
- default: null
53
- },
54
- /**
55
- * Name
56
- */
57
- name: {
58
- type: String,
59
- required: true
60
- },
61
- /**
62
- * Локаль The locale code (ISO 639-1 + optional country code)
63
- */
64
- lang: {
65
- type: String,
66
- default: 'en'
67
- },
68
- /**
69
- * Ошибки
70
- */
71
- errors: {
72
- type: Array,
73
- default: () => []
74
- },
75
- /**
76
- * Отдаваемая дата будет в формате ISO String
77
- */
78
- toIsoFormat: {
79
- type: Boolean,
80
- default: false
81
- },
82
- /**
83
- * Формат отдаваемой даты
84
- */
85
- placeholders: {
86
- type: Object,
87
- default: () => ({
88
- week: 'Week',
89
- month: 'Month',
90
- quarter: 'Quarter',
91
- year: 'Year',
92
- confirm: 'Confirm'
93
- })
94
- },
95
- /**
96
- * Пресеты для быстрых периодов
97
- **/
98
- customPresets: {
99
- type: Array,
100
- default: () => []
101
- },
102
- range: {
103
- type: Boolean,
104
- default: false
105
- },
106
- /**
107
- * Если значение true, то датапикер отображается в открытом виде
108
- */
109
- inline: {
110
- type: Boolean,
111
- default: false
112
- },
113
- /**
114
- * Дата, до которой все будет задизэйблено
115
- **/
116
- minDate: {
117
- type: [Date, String]
118
- },
119
- /**
120
- * Дата, после которой все будет задизэйблено
121
- **/
122
- maxDate: {
123
- type: [String, Date]
124
- },
125
- /**
126
- * Массив дат запрещенных к выбору / Метод которые проверяет каждую дату
127
- **/
128
- disabledDates: {
129
- type: [Array, Function]
130
- },
131
- /**
132
- * Массив дат разрешенных к выбору / Метод которые проверяет каждую дату
133
- * **/
134
- allowedDates: {
135
- type: [Array, Function]
136
- },
137
- /**
138
- * Функция проверяющая и устанавливающая доступно ли время для выбора
139
- * Params [String] date - текущая дата
140
- * return Boolean, где true - время заблокировано для выбора
141
- * **/
142
- disabledTime: {
143
- type: [Array, Function]
144
- },
145
- minWidth: {
146
- type: String,
147
- default: '240px'
148
- },
149
- hours: {
150
- type: Array,
151
- default: () => []
152
- },
153
- minutes: {
154
- type: Array,
155
- default: () => []
156
- },
157
- seconds: {
158
- type: Array,
159
- default: () => []
160
- },
161
- timezone: {
162
- type: String,
163
- default: dayjs.tz.guess()
164
- },
165
- useTimezone: {
166
- type: Boolean,
167
- default: false
168
- },
169
- /**
170
- * Показывать ли крестик очищения поля
171
- * */
172
- clearable: {
173
- type: Boolean,
174
- default: true
175
- },
176
- loading: {
177
- type: Boolean,
178
- default: false
179
- },
180
- setDefaultToday: {
181
- type: Boolean,
182
- default: true
183
- },
184
- markers: {
185
- type: Array,
186
- default: () => []
187
- }
188
- });
189
- const fieldErrors = useFieldErrors(props.errors);
190
- const pickDate = ref(null);
191
- const input = ref(null);
192
- const classes = computed(() => {
193
- return {
194
- 'mc-date-picker--error': !!fieldErrors.errorText.value,
195
- 'mc-date-picker--disabled': props.disabled
196
- };
197
- });
198
- const formats = reactive({
199
- [DatepickerTypes.TimePicker]: {
200
- [DatepickerFormatsVariations.Picker]: DatepickerFormat.TimePicker,
201
- [DatepickerFormatsVariations.Dayjs]: DayjsFormat.TimePicker,
202
- [DatepickerFormatsVariations.Output]: DatepickerOutputFormat.TimePicker
203
- },
204
- [DatepickerTypes.DatePicker]: {
205
- [DatepickerFormatsVariations.Picker]: DatepickerFormat.DatePicker,
206
- [DatepickerFormatsVariations.Dayjs]: DayjsFormat.DatePicker,
207
- [DatepickerFormatsVariations.Output]: DatepickerOutputFormat.DatePicker
208
- },
209
- [DatepickerTypes.DateTimePicker]: {
210
- [DatepickerFormatsVariations.Picker]: DatepickerFormat.DateTimePicker,
211
- [DatepickerFormatsVariations.Dayjs]: DayjsFormat.DateTimePicker,
212
- [DatepickerFormatsVariations.Output]: DatepickerOutputFormat.DateTimePicker
213
- },
214
- [DatepickerTypes.WeekPicker]: {
215
- [DatepickerFormatsVariations.Picker]: DatepickerFormat.WeekPicker,
216
- [DatepickerFormatsVariations.Dayjs]: DayjsFormat.WeekPicker,
217
- [DatepickerFormatsVariations.Output]: DatepickerOutputFormat.WeekPicker
218
- },
219
- [DatepickerTypes.MonthPicker]: {
220
- [DatepickerFormatsVariations.Picker]: DatepickerFormat.MonthPicker,
221
- [DatepickerFormatsVariations.Dayjs]: DayjsFormat.MonthPicker,
222
- [DatepickerFormatsVariations.Output]: DatepickerOutputFormat.MonthPicker
223
- },
224
- [DatepickerTypes.YearPicker]: {
225
- [DatepickerFormatsVariations.Picker]: DatepickerFormat.YearPicker,
226
- [DatepickerFormatsVariations.Dayjs]: DayjsFormat.YearPicker,
227
- [DatepickerFormatsVariations.Output]: DatepickerOutputFormat.YearPicker
228
- }
229
- });
230
- const computedType = computed(() => {
231
- return props.type || DatepickerTypes.DatePicker;
232
- });
233
- const dateFormat = reactive(formats[computedType.value]);
234
- const isTimePicker = computed(() => {
235
- return computedType.value === DatepickerTypes.TimePicker;
236
- });
237
- const isDateTimePicker = computed(() => {
238
- return computedType.value === DatepickerTypes.DateTimePicker;
239
- });
240
- const isWeekPicker = computed(() => {
241
- return computedType.value === DatepickerTypes.WeekPicker;
242
- });
243
- const isMonthPicker = computed(() => {
244
- return computedType.value === DatepickerTypes.MonthPicker;
245
- });
246
- const isYearPicker = computed(() => {
247
- return computedType.value === DatepickerTypes.YearPicker;
248
- });
249
- const pickerType = computed(() => {
250
- return {
251
- [DatepickerTypes.TimePicker]: computedType.value === DatepickerTypes.TimePicker,
252
- [DatepickerTypes.WeekPicker]: computedType.value === DatepickerTypes.WeekPicker,
253
- [DatepickerTypes.MonthPicker]: computedType.value === DatepickerTypes.MonthPicker,
254
- [DatepickerTypes.YearPicker]: computedType.value === DatepickerTypes.YearPicker
255
- };
256
- });
257
- const isAutoApply = computed(() => {
258
- return !isTimePicker.value && !isDateTimePicker.value && !isFooterVisible.value;
259
- });
260
- const weekNumbers = computed(() => {
261
- return isWeekPicker.value ? 'local' : null;
262
- });
263
- const modelType = computed(() => {
264
- return props.toIsoFormat && !props.useTimezone ? 'iso' : 'format';
265
- });
266
- const hoursOptions = computed(() => {
267
- return props.hours && props.hours.length ? { 'hour-options': props.hours } : {};
268
- });
269
- const minutesOptions = computed(() => {
270
- return props.minutes && props.minutes.length ? { 'minute-options': props.minutes } : {};
271
- });
272
- const secondsOptions = computed(() => {
273
- return props.seconds && props.seconds.length ? { 'second-options': props.seconds } : {};
274
- });
275
- const isFooterVisible = computed(() => {
276
- return (props.range &&
277
- (props.customPresets?.length || !!props.placeholders) &&
278
- !isTimePicker.value &&
279
- !isYearPicker.value &&
280
- !isMonthPicker.value);
281
- });
282
- onMounted(() => {
283
- init();
284
- });
285
- const localValue = computed({
286
- get() {
287
- return getFormattedPickerDate(props.modelValue);
288
- },
289
- set(value) {
290
- if (!value)
291
- value = props.range ? [] : null;
292
- const date = getFormattedOutputDate(value);
293
- fieldErrors.toggleErrorVisible();
294
- emit('update:modelValue', date);
295
- }
296
- });
297
- const init = () => {
298
- props.setDefaultToday && handlePreselectToday();
299
- };
300
- const handlerPreselectRange = (period) => {
301
- const [start, end] = period;
302
- input.value && (input.value.currentValue = dayjs ? [dayjs(start).toDate(), dayjs(end).toDate()] : period);
303
- };
304
- /**
305
- * Преселект при setDefaultToday = true
306
- * */
307
- const handlePreselectToday = () => {
308
- if (isWeekPicker.value)
309
- return;
310
- const hasValue = props.range
311
- ? localValue.value?.length && Array.isArray(localValue.value) && localValue.value.every((v) => dayjs(v).isValid())
312
- : //@ts-ignore
313
- dayjs(localValue.value).isValid();
314
- if (!hasValue) {
315
- let today = props.toIsoFormat
316
- ? dayjs().toISOString()
317
- : dayjs().format(dateFormat[DatepickerFormatsVariations.Output]);
318
- localValue.value = props.range ? getFormattedPickerDate([today, today]) : getFormattedPickerDate(today);
319
- }
320
- };
321
- /**
322
- * Prepare dates for datepicker
323
- * */
324
- const getFormattedPickerDate = (value) => {
325
- if (isWeekPicker.value)
326
- return value;
327
- let preparedValue = props.range ? (Array.isArray(value) ? value : []) : [value];
328
- if (!props.toIsoFormat) {
329
- preparedValue = preparedValue.map((pv) => dayjs(pv, dateFormat.output).format(dateFormat.dayjs));
330
- }
331
- const [start, end] = preparedValue;
332
- return props.range ? [start, end].filter(Boolean) : start;
333
- };
334
- /**
335
- * Prepare dates for output
336
- * */
337
- const getFormattedOutputDate = (value) => {
338
- if (isWeekPicker.value)
339
- return value;
340
- let preparedValue = props.range ? (Array.isArray(value) ? value.map((pv) => String(pv)) : []) : [String(value)];
341
- if (!props.toIsoFormat) {
342
- preparedValue = preparedValue.map((pv) => dayjs(pv, dateFormat.dayjs).format(dateFormat.output));
343
- }
344
- const [start, end] = preparedValue.map((pv) => (pv === 'Invalid Date' ? null : pv));
345
- return props.range ? [start, end].filter(Boolean) : start;
346
- };
347
- const setLocale = async () => {
348
- const locale = props.lang !== 'ar' && Object.keys(dayjsLocales).includes(props.lang) ? props.lang : 'en';
349
- dayjs.locale(locale);
350
- };
351
- const selectPeriod = (key) => {
352
- let start = dayjs();
353
- //@ts-ignore
354
- const end = pickDate.value ? dayjs(pickDate.value) : dayjs();
355
- switch (key) {
356
- case 'week':
357
- start = dayjs(end).subtract(7, 'days');
358
- break;
359
- case 'month':
360
- start = dayjs(end).subtract(1, 'months');
361
- break;
362
- case 'quarter':
363
- start = dayjs(end).subtract(3, 'months');
364
- break;
365
- case 'year':
366
- start = dayjs(end).subtract(1, 'years');
367
- break;
368
- }
369
- input.value.updateInternalModelValue([start.toDate(), end.toDate()]);
370
- };
371
- const handlePickDate = (date) => {
372
- pickDate.value = date;
373
- };
374
- const handleSubmit = () => {
375
- input.value.selectDate();
376
- input.value.closeMenu();
377
- };
378
- watch(() => props.lang, () => {
379
- setLocale();
380
- }, { immediate: true }); /* PartiallyEnd: #3632/scriptSetup.vue */
381
- const __VLS_fnComponent = (await import('vue')).defineComponent({
382
- props: {
383
- //@ts-ignore
384
- modelValue: {
385
- type: [String, Array]
386
- },
387
- /**
388
- * Тип датапикера
389
- */
390
- type: {
391
- type: String,
392
- default: DatepickerTypes.DatePicker
393
- },
394
- /**
395
- * Заголовок поля:
396
- */
397
- title: {
398
- type: String,
399
- default: ''
400
- },
401
- /**
402
- * Вспомогательный текст под инпутом:
403
- */
404
- helpText: {
405
- type: String,
406
- default: ''
407
- },
408
- /**
409
- * Редактируемый инпут
410
- */
411
- editable: {
412
- type: Boolean,
413
- default: false
414
- },
415
- disabled: {
416
- type: Boolean,
417
- default: false
418
- },
419
- placeholder: {
420
- type: String,
421
- default: null
422
- },
423
- /**
424
- * Name
425
- */
426
- name: {
427
- type: String,
428
- required: true
429
- },
430
- /**
431
- * Локаль The locale code (ISO 639-1 + optional country code)
432
- */
433
- lang: {
434
- type: String,
435
- default: 'en'
436
- },
437
- /**
438
- * Ошибки
439
- */
440
- errors: {
441
- type: Array,
442
- default: () => []
443
- },
444
- /**
445
- * Отдаваемая дата будет в формате ISO String
446
- */
447
- toIsoFormat: {
448
- type: Boolean,
449
- default: false
450
- },
451
- /**
452
- * Формат отдаваемой даты
453
- */
454
- placeholders: {
455
- type: Object,
456
- default: () => ({
457
- week: 'Week',
458
- month: 'Month',
459
- quarter: 'Quarter',
460
- year: 'Year',
461
- confirm: 'Confirm'
462
- })
463
- },
464
- /**
465
- * Пресеты для быстрых периодов
466
- **/
467
- customPresets: {
468
- type: Array,
469
- default: () => []
470
- },
471
- range: {
472
- type: Boolean,
473
- default: false
474
- },
475
- /**
476
- * Если значение true, то датапикер отображается в открытом виде
477
- */
478
- inline: {
479
- type: Boolean,
480
- default: false
481
- },
482
- /**
483
- * Дата, до которой все будет задизэйблено
484
- **/
485
- minDate: {
486
- type: [Date, String]
487
- },
488
- /**
489
- * Дата, после которой все будет задизэйблено
490
- **/
491
- maxDate: {
492
- type: [String, Date]
493
- },
494
- /**
495
- * Массив дат запрещенных к выбору / Метод которые проверяет каждую дату
496
- **/
497
- disabledDates: {
498
- type: [Array, Function]
499
- },
500
- /**
501
- * Массив дат разрешенных к выбору / Метод которые проверяет каждую дату
502
- * **/
503
- allowedDates: {
504
- type: [Array, Function]
505
- },
506
- /**
507
- * Функция проверяющая и устанавливающая доступно ли время для выбора
508
- * Params [String] date - текущая дата
509
- * return Boolean, где true - время заблокировано для выбора
510
- * **/
511
- disabledTime: {
512
- type: [Array, Function]
513
- },
514
- minWidth: {
515
- type: String,
516
- default: '240px'
517
- },
518
- hours: {
519
- type: Array,
520
- default: () => []
521
- },
522
- minutes: {
523
- type: Array,
524
- default: () => []
525
- },
526
- seconds: {
527
- type: Array,
528
- default: () => []
529
- },
530
- timezone: {
531
- type: String,
532
- default: dayjs.tz.guess()
533
- },
534
- useTimezone: {
535
- type: Boolean,
536
- default: false
537
- },
538
- /**
539
- * Показывать ли крестик очищения поля
540
- * */
541
- clearable: {
542
- type: Boolean,
543
- default: true
544
- },
545
- loading: {
546
- type: Boolean,
547
- default: false
548
- },
549
- setDefaultToday: {
550
- type: Boolean,
551
- default: true
552
- },
553
- markers: {
554
- type: Array,
555
- default: () => []
556
- }
557
- },
558
- emits: {},
559
- });
560
- ;
561
- let __VLS_functionalComponentProps;
562
- function __VLS_template() {
563
- const __VLS_ctx = {};
564
- const __VLS_localComponents = {
565
- ...{},
566
- ...{},
567
- ...__VLS_ctx,
568
- };
569
- let __VLS_components;
570
- const __VLS_localDirectives = {
571
- ...{},
572
- ...__VLS_ctx,
573
- };
574
- let __VLS_directives;
575
- let __VLS_styleScopedClasses;
576
- // CSS variable injection
577
- // CSS variable injection end
578
- let __VLS_resolvedLocalAndGlobalComponents;
579
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ref: ("field"), ...{ class: ("mc-date-picker") }, ...{ class: ((__VLS_ctx.classes)) }, });
580
- // @ts-ignore navigation for `const field = ref()`
581
- __VLS_ctx.field;
582
- if (__VLS_ctx.$slots.header || !!props.title) {
583
- __VLS_elementAsFunction(__VLS_intrinsicElements.label, __VLS_intrinsicElements.label)({ for: ((__VLS_ctx.name)), ...{ class: ("mc-date-picker__header") }, });
584
- var __VLS_0 = {};
585
- if (props.title) {
586
- const __VLS_1 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
587
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
588
- // @ts-ignore
589
- const __VLS_2 = __VLS_asFunctionalComponent(__VLS_1, new __VLS_1({ weight: ((__VLS_ctx.Weights.Medium)), }));
590
- const __VLS_3 = __VLS_2({ weight: ((__VLS_ctx.Weights.Medium)), }, ...__VLS_functionalComponentArgsRest(__VLS_2));
591
- (props.title);
592
- __VLS_nonNullable(__VLS_6.slots).default;
593
- var __VLS_6;
594
- }
595
- }
596
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-date-picker__inner") }, });
597
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-date-picker__input-wrapper") }, ...{ style: (({ minWidth: __VLS_ctx.minWidth })) }, });
598
- const __VLS_7 = __VLS_resolvedLocalAndGlobalComponents.DatePicker;
599
- /** @type { [typeof __VLS_components.DatePicker, typeof __VLS_components.datePicker, typeof __VLS_components.DatePicker, typeof __VLS_components.datePicker, ] } */
600
- // @ts-ignore
601
- const __VLS_8 = __VLS_asFunctionalComponent(__VLS_7, new __VLS_7({ ...{ 'onRangeStart': {} }, modelValue: ((__VLS_ctx.localValue)), ref: ("input"), type: ((__VLS_ctx.type)), ...({
602
- ...__VLS_ctx.attrs,
603
- ...__VLS_ctx.pickerType,
604
- ...__VLS_ctx.hoursOptions,
605
- ...__VLS_ctx.minutesOptions,
606
- ...__VLS_ctx.secondsOptions
607
- }), ...{ class: ("mc-date-picker__date-picker") }, range: ((props.range)), multiCalendars: ((props.range)), monthChangeOnScroll: ((false)), timezone: ((__VLS_ctx.timezone)), format: ((__VLS_ctx.dateFormat.picker)), modelType: ((__VLS_ctx.modelType)), autoApply: ((__VLS_ctx.isAutoApply)), partialFlow: ((__VLS_ctx.isTimePicker || __VLS_ctx.isDateTimePicker)), enableTimePicker: ((__VLS_ctx.isTimePicker || __VLS_ctx.isDateTimePicker)), clearable: ((__VLS_ctx.clearable)), inline: ((__VLS_ctx.inline)), locale: ((__VLS_ctx.lang)), markers: ((__VLS_ctx.markers)), actionRow: (({})), loading: ((__VLS_ctx.loading)), weekNumbers: ((__VLS_ctx.weekNumbers)), placeholder: ((__VLS_ctx.placeholder)), editable: ((__VLS_ctx.editable)), disabled: ((__VLS_ctx.disabled)), disabledDates: ((__VLS_ctx.disabledDates)), allowedDates: ((__VLS_ctx.allowedDates)), minDate: ((__VLS_ctx.minDate)), maxDate: ((__VLS_ctx.maxDate)), disabledTimes: ((__VLS_ctx.disabledTime)), }));
608
- const __VLS_9 = __VLS_8({ ...{ 'onRangeStart': {} }, modelValue: ((__VLS_ctx.localValue)), ref: ("input"), type: ((__VLS_ctx.type)), ...({
609
- ...__VLS_ctx.attrs,
610
- ...__VLS_ctx.pickerType,
611
- ...__VLS_ctx.hoursOptions,
612
- ...__VLS_ctx.minutesOptions,
613
- ...__VLS_ctx.secondsOptions
614
- }), ...{ class: ("mc-date-picker__date-picker") }, range: ((props.range)), multiCalendars: ((props.range)), monthChangeOnScroll: ((false)), timezone: ((__VLS_ctx.timezone)), format: ((__VLS_ctx.dateFormat.picker)), modelType: ((__VLS_ctx.modelType)), autoApply: ((__VLS_ctx.isAutoApply)), partialFlow: ((__VLS_ctx.isTimePicker || __VLS_ctx.isDateTimePicker)), enableTimePicker: ((__VLS_ctx.isTimePicker || __VLS_ctx.isDateTimePicker)), clearable: ((__VLS_ctx.clearable)), inline: ((__VLS_ctx.inline)), locale: ((__VLS_ctx.lang)), markers: ((__VLS_ctx.markers)), actionRow: (({})), loading: ((__VLS_ctx.loading)), weekNumbers: ((__VLS_ctx.weekNumbers)), placeholder: ((__VLS_ctx.placeholder)), editable: ((__VLS_ctx.editable)), disabled: ((__VLS_ctx.disabled)), disabledDates: ((__VLS_ctx.disabledDates)), allowedDates: ((__VLS_ctx.allowedDates)), minDate: ((__VLS_ctx.minDate)), maxDate: ((__VLS_ctx.maxDate)), disabledTimes: ((__VLS_ctx.disabledTime)), }, ...__VLS_functionalComponentArgsRest(__VLS_8));
615
- // @ts-ignore navigation for `const input = ref()`
616
- __VLS_ctx.input;
617
- var __VLS_13 = {};
618
- let __VLS_14;
619
- const __VLS_15 = {
620
- onRangeStart: (__VLS_ctx.handlePickDate)
621
- };
622
- let __VLS_10;
623
- let __VLS_11;
624
- if (__VLS_ctx.isFooterVisible) {
625
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
626
- {
627
- const { "action-row": __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
628
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-datepicker__footer-popup") }, });
629
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-datepicker__footer-popup-periods") }, });
630
- if (__VLS_ctx.customPresets && __VLS_ctx.customPresets.length) {
631
- for (const [preset] of __VLS_getVForSourceType((__VLS_ctx.customPresets))) {
632
- const __VLS_16 = __VLS_resolvedLocalAndGlobalComponents.McButton;
633
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
634
- // @ts-ignore
635
- const __VLS_17 = __VLS_asFunctionalComponent(__VLS_16, new __VLS_16({ ...{ 'onClick': {} }, key: ((preset.title)), variation: ("black-link"), secondaryColor: ("purple"), }));
636
- const __VLS_18 = __VLS_17({ ...{ 'onClick': {} }, key: ((preset.title)), variation: ("black-link"), secondaryColor: ("purple"), }, ...__VLS_functionalComponentArgsRest(__VLS_17));
637
- let __VLS_22;
638
- const __VLS_23 = {
639
- onClick: (...[$event]) => {
640
- if (!((__VLS_ctx.isFooterVisible)))
641
- return;
642
- if (!((__VLS_ctx.customPresets && __VLS_ctx.customPresets.length)))
643
- return;
644
- __VLS_ctx.handlerPreselectRange(preset.period);
645
- }
646
- };
647
- let __VLS_19;
648
- let __VLS_20;
649
- (preset.title);
650
- __VLS_nonNullable(__VLS_21.slots).default;
651
- var __VLS_21;
652
- }
653
- }
654
- else {
655
- if (__VLS_ctx.placeholders.week) {
656
- const __VLS_24 = __VLS_resolvedLocalAndGlobalComponents.McButton;
657
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
658
- // @ts-ignore
659
- const __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }));
660
- const __VLS_26 = __VLS_25({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }, ...__VLS_functionalComponentArgsRest(__VLS_25));
661
- let __VLS_30;
662
- const __VLS_31 = {
663
- onClick: (...[$event]) => {
664
- if (!((__VLS_ctx.isFooterVisible)))
665
- return;
666
- if (!(!((__VLS_ctx.customPresets && __VLS_ctx.customPresets.length))))
667
- return;
668
- if (!((__VLS_ctx.placeholders.week)))
669
- return;
670
- __VLS_ctx.selectPeriod('week');
671
- }
672
- };
673
- let __VLS_27;
674
- let __VLS_28;
675
- (__VLS_ctx.placeholders.week);
676
- __VLS_nonNullable(__VLS_29.slots).default;
677
- var __VLS_29;
678
- }
679
- if (__VLS_ctx.placeholders.month) {
680
- const __VLS_32 = __VLS_resolvedLocalAndGlobalComponents.McButton;
681
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
682
- // @ts-ignore
683
- const __VLS_33 = __VLS_asFunctionalComponent(__VLS_32, new __VLS_32({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }));
684
- const __VLS_34 = __VLS_33({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }, ...__VLS_functionalComponentArgsRest(__VLS_33));
685
- let __VLS_38;
686
- const __VLS_39 = {
687
- onClick: (...[$event]) => {
688
- if (!((__VLS_ctx.isFooterVisible)))
689
- return;
690
- if (!(!((__VLS_ctx.customPresets && __VLS_ctx.customPresets.length))))
691
- return;
692
- if (!((__VLS_ctx.placeholders.month)))
693
- return;
694
- __VLS_ctx.selectPeriod('month');
695
- }
696
- };
697
- let __VLS_35;
698
- let __VLS_36;
699
- (__VLS_ctx.placeholders.month);
700
- __VLS_nonNullable(__VLS_37.slots).default;
701
- var __VLS_37;
702
- }
703
- if (__VLS_ctx.placeholders.quarter) {
704
- const __VLS_40 = __VLS_resolvedLocalAndGlobalComponents.McButton;
705
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
706
- // @ts-ignore
707
- const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }));
708
- const __VLS_42 = __VLS_41({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }, ...__VLS_functionalComponentArgsRest(__VLS_41));
709
- let __VLS_46;
710
- const __VLS_47 = {
711
- onClick: (...[$event]) => {
712
- if (!((__VLS_ctx.isFooterVisible)))
713
- return;
714
- if (!(!((__VLS_ctx.customPresets && __VLS_ctx.customPresets.length))))
715
- return;
716
- if (!((__VLS_ctx.placeholders.quarter)))
717
- return;
718
- __VLS_ctx.selectPeriod('quarter');
719
- }
720
- };
721
- let __VLS_43;
722
- let __VLS_44;
723
- (__VLS_ctx.placeholders.quarter);
724
- __VLS_nonNullable(__VLS_45.slots).default;
725
- var __VLS_45;
726
- }
727
- if (__VLS_ctx.placeholders.year) {
728
- const __VLS_48 = __VLS_resolvedLocalAndGlobalComponents.McButton;
729
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
730
- // @ts-ignore
731
- const __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }));
732
- const __VLS_50 = __VLS_49({ ...{ 'onClick': {} }, variation: ("black-link"), secondaryColor: ("purple"), }, ...__VLS_functionalComponentArgsRest(__VLS_49));
733
- let __VLS_54;
734
- const __VLS_55 = {
735
- onClick: (...[$event]) => {
736
- if (!((__VLS_ctx.isFooterVisible)))
737
- return;
738
- if (!(!((__VLS_ctx.customPresets && __VLS_ctx.customPresets.length))))
739
- return;
740
- if (!((__VLS_ctx.placeholders.year)))
741
- return;
742
- __VLS_ctx.selectPeriod('year');
743
- }
744
- };
745
- let __VLS_51;
746
- let __VLS_52;
747
- (__VLS_ctx.placeholders.year);
748
- __VLS_nonNullable(__VLS_53.slots).default;
749
- var __VLS_53;
750
- }
751
- }
752
- if (__VLS_ctx.placeholders.confirm) {
753
- const __VLS_56 = __VLS_resolvedLocalAndGlobalComponents.McButton;
754
- /** @type { [typeof __VLS_components.McButton, typeof __VLS_components.mcButton, typeof __VLS_components.McButton, typeof __VLS_components.mcButton, ] } */
755
- // @ts-ignore
756
- const __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({ ...{ 'onClick': {} }, variation: ("purple-outline"), size: ((__VLS_ctx.ButtonSize.Xs)), }));
757
- const __VLS_58 = __VLS_57({ ...{ 'onClick': {} }, variation: ("purple-outline"), size: ((__VLS_ctx.ButtonSize.Xs)), }, ...__VLS_functionalComponentArgsRest(__VLS_57));
758
- let __VLS_62;
759
- const __VLS_63 = {
760
- onClick: (__VLS_ctx.handleSubmit)
761
- };
762
- let __VLS_59;
763
- let __VLS_60;
764
- (__VLS_ctx.placeholders.confirm);
765
- __VLS_nonNullable(__VLS_61.slots).default;
766
- var __VLS_61;
767
- }
768
- }
769
- }
770
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
771
- {
772
- const { "input-icon": __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
773
- const __VLS_64 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
774
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
775
- // @ts-ignore
776
- const __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({ name: ("calendar"), size: ("300"), color: ((props.disabled ? 'outline-gray' : 'black')), }));
777
- const __VLS_66 = __VLS_65({ name: ("calendar"), size: ("300"), color: ((props.disabled ? 'outline-gray' : 'black')), }, ...__VLS_functionalComponentArgsRest(__VLS_65));
778
- }
779
- if (__VLS_ctx.$slots.header) {
780
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
781
- {
782
- const { header: __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
783
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
784
- var __VLS_70 = {};
785
- }
786
- }
787
- if (__VLS_ctx.$slots.sidebar) {
788
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
789
- {
790
- const { sidebar: __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
791
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
792
- var __VLS_71 = {};
793
- }
794
- }
795
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
796
- {
797
- const { "icon-calendar": __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
798
- const __VLS_72 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
799
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
800
- // @ts-ignore
801
- const __VLS_73 = __VLS_asFunctionalComponent(__VLS_72, new __VLS_72({ ...{ class: ("mc-date-picker__icon") }, name: ("calendar"), }));
802
- const __VLS_74 = __VLS_73({ ...{ class: ("mc-date-picker__icon") }, name: ("calendar"), }, ...__VLS_functionalComponentArgsRest(__VLS_73));
803
- }
804
- var __VLS_12;
805
- if (!!__VLS_ctx.fieldErrors.errorText.value || !!props.helpText || !!__VLS_ctx.$slots.bottom) {
806
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-date-picker__footer") }, });
807
- if (!!__VLS_ctx.fieldErrors.errorText.value) {
808
- const __VLS_78 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
809
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
810
- // @ts-ignore
811
- const __VLS_79 = __VLS_asFunctionalComponent(__VLS_78, new __VLS_78({ tagName: ("div"), color: ("red"), variation: ((__VLS_ctx.TitleVariations.Overline)), }));
812
- const __VLS_80 = __VLS_79({ tagName: ("div"), color: ("red"), variation: ((__VLS_ctx.TitleVariations.Overline)), }, ...__VLS_functionalComponentArgsRest(__VLS_79));
813
- (__VLS_ctx.fieldErrors.errorText.value);
814
- __VLS_nonNullable(__VLS_83.slots).default;
815
- var __VLS_83;
816
- }
817
- if (!!__VLS_ctx.fieldErrors.errorText.value && (!!props.helpText || !!__VLS_ctx.$slots.bottom)) {
818
- __VLS_elementAsFunction(__VLS_intrinsicElements.br)({});
819
- }
820
- var __VLS_84 = {};
821
- if (!!props.helpText) {
822
- const __VLS_85 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
823
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
824
- // @ts-ignore
825
- const __VLS_86 = __VLS_asFunctionalComponent(__VLS_85, new __VLS_85({ tagName: ("div"), variation: ((__VLS_ctx.TitleVariations.Overline)), }));
826
- const __VLS_87 = __VLS_86({ tagName: ("div"), variation: ((__VLS_ctx.TitleVariations.Overline)), }, ...__VLS_functionalComponentArgsRest(__VLS_86));
827
- (props.helpText);
828
- __VLS_nonNullable(__VLS_90.slots).default;
829
- var __VLS_90;
830
- }
831
- }
832
- __VLS_styleScopedClasses['mc-date-picker'];
833
- __VLS_styleScopedClasses['mc-date-picker__header'];
834
- __VLS_styleScopedClasses['mc-date-picker__inner'];
835
- __VLS_styleScopedClasses['mc-date-picker__input-wrapper'];
836
- __VLS_styleScopedClasses['mc-date-picker__date-picker'];
837
- __VLS_styleScopedClasses['mc-datepicker__footer-popup'];
838
- __VLS_styleScopedClasses['mc-datepicker__footer-popup-periods'];
839
- __VLS_styleScopedClasses['mc-date-picker__icon'];
840
- __VLS_styleScopedClasses['mc-date-picker__footer'];
841
- var __VLS_slots;
842
- var __VLS_inheritedAttrs;
843
- const __VLS_refs = {
844
- "field": __VLS_nativeElements['div'],
845
- "input": __VLS_13,
846
- };
847
- var $refs;
848
- var $el;
849
- return {
850
- attrs: {},
851
- slots: __VLS_slots,
852
- refs: $refs,
853
- rootEl: $el,
854
- };
855
- }
856
- ;
857
- const __VLS_self = (await import('vue')).defineComponent({
858
- setup() {
859
- return {
860
- DatePicker: DatePicker,
861
- McTitle: McTitle,
862
- McSvgIcon: McSvgIcon,
863
- McButton: McButton,
864
- ButtonSize: ButtonSize,
865
- TitleVariations: TitleVariations,
866
- Weights: Weights,
867
- attrs: attrs,
868
- fieldErrors: fieldErrors,
869
- input: input,
870
- classes: classes,
871
- dateFormat: dateFormat,
872
- isTimePicker: isTimePicker,
873
- isDateTimePicker: isDateTimePicker,
874
- pickerType: pickerType,
875
- isAutoApply: isAutoApply,
876
- weekNumbers: weekNumbers,
877
- modelType: modelType,
878
- hoursOptions: hoursOptions,
879
- minutesOptions: minutesOptions,
880
- secondsOptions: secondsOptions,
881
- isFooterVisible: isFooterVisible,
882
- localValue: localValue,
883
- handlerPreselectRange: handlerPreselectRange,
884
- selectPeriod: selectPeriod,
885
- handlePickDate: handlePickDate,
886
- handleSubmit: handleSubmit,
887
- };
888
- },
889
- emits: {},
890
- props: {
891
- //@ts-ignore
892
- modelValue: {
893
- type: [String, Array]
894
- },
895
- /**
896
- * Тип датапикера
897
- */
898
- type: {
899
- type: String,
900
- default: DatepickerTypes.DatePicker
901
- },
902
- /**
903
- * Заголовок поля:
904
- */
905
- title: {
906
- type: String,
907
- default: ''
908
- },
909
- /**
910
- * Вспомогательный текст под инпутом:
911
- */
912
- helpText: {
913
- type: String,
914
- default: ''
915
- },
916
- /**
917
- * Редактируемый инпут
918
- */
919
- editable: {
920
- type: Boolean,
921
- default: false
922
- },
923
- disabled: {
924
- type: Boolean,
925
- default: false
926
- },
927
- placeholder: {
928
- type: String,
929
- default: null
930
- },
931
- /**
932
- * Name
933
- */
934
- name: {
935
- type: String,
936
- required: true
937
- },
938
- /**
939
- * Локаль The locale code (ISO 639-1 + optional country code)
940
- */
941
- lang: {
942
- type: String,
943
- default: 'en'
944
- },
945
- /**
946
- * Ошибки
947
- */
948
- errors: {
949
- type: Array,
950
- default: () => []
951
- },
952
- /**
953
- * Отдаваемая дата будет в формате ISO String
954
- */
955
- toIsoFormat: {
956
- type: Boolean,
957
- default: false
958
- },
959
- /**
960
- * Формат отдаваемой даты
961
- */
962
- placeholders: {
963
- type: Object,
964
- default: () => ({
965
- week: 'Week',
966
- month: 'Month',
967
- quarter: 'Quarter',
968
- year: 'Year',
969
- confirm: 'Confirm'
970
- })
971
- },
972
- /**
973
- * Пресеты для быстрых периодов
974
- **/
975
- customPresets: {
976
- type: Array,
977
- default: () => []
978
- },
979
- range: {
980
- type: Boolean,
981
- default: false
982
- },
983
- /**
984
- * Если значение true, то датапикер отображается в открытом виде
985
- */
986
- inline: {
987
- type: Boolean,
988
- default: false
989
- },
990
- /**
991
- * Дата, до которой все будет задизэйблено
992
- **/
993
- minDate: {
994
- type: [Date, String]
995
- },
996
- /**
997
- * Дата, после которой все будет задизэйблено
998
- **/
999
- maxDate: {
1000
- type: [String, Date]
1001
- },
1002
- /**
1003
- * Массив дат запрещенных к выбору / Метод которые проверяет каждую дату
1004
- **/
1005
- disabledDates: {
1006
- type: [Array, Function]
1007
- },
1008
- /**
1009
- * Массив дат разрешенных к выбору / Метод которые проверяет каждую дату
1010
- * **/
1011
- allowedDates: {
1012
- type: [Array, Function]
1013
- },
1014
- /**
1015
- * Функция проверяющая и устанавливающая доступно ли время для выбора
1016
- * Params [String] date - текущая дата
1017
- * return Boolean, где true - время заблокировано для выбора
1018
- * **/
1019
- disabledTime: {
1020
- type: [Array, Function]
1021
- },
1022
- minWidth: {
1023
- type: String,
1024
- default: '240px'
1025
- },
1026
- hours: {
1027
- type: Array,
1028
- default: () => []
1029
- },
1030
- minutes: {
1031
- type: Array,
1032
- default: () => []
1033
- },
1034
- seconds: {
1035
- type: Array,
1036
- default: () => []
1037
- },
1038
- timezone: {
1039
- type: String,
1040
- default: dayjs.tz.guess()
1041
- },
1042
- useTimezone: {
1043
- type: Boolean,
1044
- default: false
1045
- },
1046
- /**
1047
- * Показывать ли крестик очищения поля
1048
- * */
1049
- clearable: {
1050
- type: Boolean,
1051
- default: true
1052
- },
1053
- loading: {
1054
- type: Boolean,
1055
- default: false
1056
- },
1057
- setDefaultToday: {
1058
- type: Boolean,
1059
- default: true
1060
- },
1061
- markers: {
1062
- type: Array,
1063
- default: () => []
1064
- }
1065
- },
1066
- });
1067
- const __VLS_component = (await import('vue')).defineComponent({
1068
- setup() {
1069
- return {};
1070
- },
1071
- emits: {},
1072
- props: {
1073
- //@ts-ignore
1074
- modelValue: {
1075
- type: [String, Array]
1076
- },
1077
- /**
1078
- * Тип датапикера
1079
- */
1080
- type: {
1081
- type: String,
1082
- default: DatepickerTypes.DatePicker
1083
- },
1084
- /**
1085
- * Заголовок поля:
1086
- */
1087
- title: {
1088
- type: String,
1089
- default: ''
1090
- },
1091
- /**
1092
- * Вспомогательный текст под инпутом:
1093
- */
1094
- helpText: {
1095
- type: String,
1096
- default: ''
1097
- },
1098
- /**
1099
- * Редактируемый инпут
1100
- */
1101
- editable: {
1102
- type: Boolean,
1103
- default: false
1104
- },
1105
- disabled: {
1106
- type: Boolean,
1107
- default: false
1108
- },
1109
- placeholder: {
1110
- type: String,
1111
- default: null
1112
- },
1113
- /**
1114
- * Name
1115
- */
1116
- name: {
1117
- type: String,
1118
- required: true
1119
- },
1120
- /**
1121
- * Локаль The locale code (ISO 639-1 + optional country code)
1122
- */
1123
- lang: {
1124
- type: String,
1125
- default: 'en'
1126
- },
1127
- /**
1128
- * Ошибки
1129
- */
1130
- errors: {
1131
- type: Array,
1132
- default: () => []
1133
- },
1134
- /**
1135
- * Отдаваемая дата будет в формате ISO String
1136
- */
1137
- toIsoFormat: {
1138
- type: Boolean,
1139
- default: false
1140
- },
1141
- /**
1142
- * Формат отдаваемой даты
1143
- */
1144
- placeholders: {
1145
- type: Object,
1146
- default: () => ({
1147
- week: 'Week',
1148
- month: 'Month',
1149
- quarter: 'Quarter',
1150
- year: 'Year',
1151
- confirm: 'Confirm'
1152
- })
1153
- },
1154
- /**
1155
- * Пресеты для быстрых периодов
1156
- **/
1157
- customPresets: {
1158
- type: Array,
1159
- default: () => []
1160
- },
1161
- range: {
1162
- type: Boolean,
1163
- default: false
1164
- },
1165
- /**
1166
- * Если значение true, то датапикер отображается в открытом виде
1167
- */
1168
- inline: {
1169
- type: Boolean,
1170
- default: false
1171
- },
1172
- /**
1173
- * Дата, до которой все будет задизэйблено
1174
- **/
1175
- minDate: {
1176
- type: [Date, String]
1177
- },
1178
- /**
1179
- * Дата, после которой все будет задизэйблено
1180
- **/
1181
- maxDate: {
1182
- type: [String, Date]
1183
- },
1184
- /**
1185
- * Массив дат запрещенных к выбору / Метод которые проверяет каждую дату
1186
- **/
1187
- disabledDates: {
1188
- type: [Array, Function]
1189
- },
1190
- /**
1191
- * Массив дат разрешенных к выбору / Метод которые проверяет каждую дату
1192
- * **/
1193
- allowedDates: {
1194
- type: [Array, Function]
1195
- },
1196
- /**
1197
- * Функция проверяющая и устанавливающая доступно ли время для выбора
1198
- * Params [String] date - текущая дата
1199
- * return Boolean, где true - время заблокировано для выбора
1200
- * **/
1201
- disabledTime: {
1202
- type: [Array, Function]
1203
- },
1204
- minWidth: {
1205
- type: String,
1206
- default: '240px'
1207
- },
1208
- hours: {
1209
- type: Array,
1210
- default: () => []
1211
- },
1212
- minutes: {
1213
- type: Array,
1214
- default: () => []
1215
- },
1216
- seconds: {
1217
- type: Array,
1218
- default: () => []
1219
- },
1220
- timezone: {
1221
- type: String,
1222
- default: dayjs.tz.guess()
1223
- },
1224
- useTimezone: {
1225
- type: Boolean,
1226
- default: false
1227
- },
1228
- /**
1229
- * Показывать ли крестик очищения поля
1230
- * */
1231
- clearable: {
1232
- type: Boolean,
1233
- default: true
1234
- },
1235
- loading: {
1236
- type: Boolean,
1237
- default: false
1238
- },
1239
- setDefaultToday: {
1240
- type: Boolean,
1241
- default: true
1242
- },
1243
- markers: {
1244
- type: Array,
1245
- default: () => []
1246
- }
1247
- },
1248
- __typeEl: {},
1249
- });
1250
- export default {};
1251
- ; /* PartiallyEnd: #4569/main.vue */