mediacube-ui-v2 0.0.38 → 0.0.39

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 (487) hide show
  1. package/dist/assets/iconsSprite.svg +1 -0
  2. package/dist/assets/img/no_table_data.png +0 -0
  3. package/dist/assets/img/no_user.png +0 -0
  4. package/dist/mediacube-ui-v2.js +2479 -2339
  5. package/dist/mediacube-ui-v2.umd.cjs +4 -4
  6. package/dist/types/App.vue.d.ts +2 -0
  7. package/dist/types/assets/tokens/json/animations.json.d.ts +8 -0
  8. package/dist/types/assets/tokens/json/border-radius.json.d.ts +26 -0
  9. package/dist/types/assets/tokens/json/box-shadows.json.d.ts +26 -0
  10. package/dist/types/assets/tokens/json/colors.json.d.ts +73 -0
  11. package/dist/types/assets/tokens/json/durations.json.d.ts +12 -0
  12. package/dist/types/assets/tokens/json/easings.json.d.ts +5 -0
  13. package/dist/types/assets/tokens/json/font-families.json.d.ts +6 -0
  14. package/dist/types/assets/tokens/json/font-sizes.json.d.ts +20 -0
  15. package/dist/types/assets/tokens/json/font-weights.json.d.ts +14 -0
  16. package/dist/types/assets/tokens/json/gradients.json.d.ts +15 -0
  17. package/dist/types/assets/tokens/json/index.d.ts +18 -0
  18. package/dist/types/assets/tokens/json/letter-spacings.json.d.ts +6 -0
  19. package/dist/types/assets/tokens/json/line-heights.json.d.ts +20 -0
  20. package/dist/types/assets/tokens/json/media-queries.json.d.ts +28 -0
  21. package/dist/types/assets/tokens/json/opacities.json.d.ts +7 -0
  22. package/dist/types/assets/tokens/json/sizes.json.d.ts +44 -0
  23. package/dist/types/assets/tokens/json/spacings.json.d.ts +36 -0
  24. package/dist/types/assets/tokens/json/z-indexes.json.d.ts +14 -0
  25. package/dist/{src → types}/components/elements/McAvatar/McAvatar.vue.d.ts +5 -6
  26. package/dist/{src → types}/components/elements/McBadge/McBadge.vue.d.ts +3 -4
  27. package/dist/types/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +14 -0
  28. package/dist/{src → types}/components/elements/McButton/McButton.vue.d.ts +9 -11
  29. package/dist/{src → types}/components/elements/McChip/McChip.vue.d.ts +6 -8
  30. package/dist/{src → types}/components/elements/McDatepicker/McDatepicker.vue.d.ts +1 -3
  31. package/dist/{src → types}/components/elements/McDraggable/McDraggable.vue.d.ts +4 -5
  32. package/dist/{src → types}/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts +1 -2
  33. package/dist/{src → types}/components/elements/McFieldRadio/McFieldRadio.vue.d.ts +8 -9
  34. package/dist/{src → types}/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts +1 -2
  35. package/dist/{src → types}/components/elements/McFieldRange/McFieldRange.vue.d.ts +6 -7
  36. package/dist/{src → types}/components/elements/McFieldSelect/McFieldSelect.vue.d.ts +8 -10
  37. package/dist/{src → types}/components/elements/McFieldText/McFieldText.vue.d.ts +9 -10
  38. package/dist/{src → types}/components/elements/McFieldToggle/McFieldToggle.vue.d.ts +6 -7
  39. package/dist/{src → types}/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts +4 -5
  40. package/dist/{src → types}/components/elements/McNodata/McNoData.vue.d.ts +5 -6
  41. package/dist/{src → types}/components/elements/McNotification/McNotification.vue.d.ts +5 -6
  42. package/dist/{src → types}/components/elements/McProgress/McProgress.vue.d.ts +5 -6
  43. package/dist/{src → types}/components/elements/McSeparator/McSeparator.vue.d.ts +4 -5
  44. package/dist/{src → types}/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts +5 -6
  45. package/dist/{src → types}/components/elements/McStack/McStack.vue.d.ts +4 -5
  46. package/dist/{src → types}/components/elements/McSvgIcon/McSvgIcon.vue.d.ts +9 -10
  47. package/dist/{src → types}/components/elements/McTitle/McTitle.vue.d.ts +7 -8
  48. package/dist/{src → types}/components/elements/McTooltip/McTooltip.vue.d.ts +6 -7
  49. package/dist/{src → types}/components/patterns/McAccordion/McAccordion.vue.d.ts +4 -5
  50. package/dist/{src → types}/components/patterns/McCell/McCell.vue.d.ts +6 -7
  51. package/dist/{src → types}/components/patterns/McCollapse/McCollapse.vue.d.ts +6 -7
  52. package/dist/{src → types}/components/patterns/McDropdown/McDropdown.vue.d.ts +7 -8
  53. package/dist/types/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +22 -0
  54. package/dist/{src → types}/components/patterns/McFilter/McFilter.vue.d.ts +6 -7
  55. package/dist/{src → types}/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts +6 -7
  56. package/dist/{src → types}/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts +6 -7
  57. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts +6 -7
  58. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts +6 -7
  59. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts +6 -7
  60. package/dist/{src → types}/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts +6 -7
  61. package/dist/{src → types}/components/patterns/McGridCol/McGridCol.vue.d.ts +4 -5
  62. package/dist/{src → types}/components/patterns/McGridRow/McGridRow.vue.d.ts +5 -6
  63. package/dist/{src → types}/components/patterns/McOverlay/McOverlay.vue.d.ts +4 -5
  64. package/dist/{src → types}/components/patterns/McPreview/McPreview.vue.d.ts +4 -5
  65. package/dist/{src → types}/components/patterns/McSideBar/McSideBar.vue.d.ts +7 -8
  66. package/dist/{src → types}/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts +5 -6
  67. package/dist/{src → types}/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts +5 -6
  68. package/dist/{src → types}/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts +6 -7
  69. package/dist/{src → types}/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts +6 -7
  70. package/dist/{src → types}/components/patterns/McTab/McTab.vue.d.ts +5 -6
  71. package/dist/{src → types}/components/patterns/McTabs/McTabs.vue.d.ts +7 -9
  72. package/dist/{src → types}/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts +7 -8
  73. package/dist/{src → types}/components/templates/McDrawer/McDrawer.vue.d.ts +7 -8
  74. package/dist/{src → types}/components/templates/McDrawer/McDrawerContainer.vue.d.ts +5 -6
  75. package/dist/{src → types}/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts +4 -5
  76. package/dist/{src → types}/components/templates/McModal/McModal.vue.d.ts +7 -8
  77. package/dist/{src → types}/components/templates/McModal/McModalContainer.vue.d.ts +5 -6
  78. package/dist/{src → types}/components/templates/McTable/McTable/McTable.vue.d.ts +7 -8
  79. package/dist/{src → types}/components/templates/McTable/McTableCard/McTableCard.vue.d.ts +6 -7
  80. package/dist/{src → types}/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts +4 -5
  81. package/dist/types/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +18 -0
  82. package/dist/{src → types}/components/templates/McTable/McTableSort/McTableSort.vue.d.ts +6 -7
  83. package/dist/{src → types}/components/templates/McTopBar/McTopBar.vue.d.ts +4 -5
  84. package/dist/{src → types}/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts +4 -5
  85. package/dist/{src/composables/index.js → types/composables/index.d.ts} +1 -1
  86. package/dist/{src → types}/composables/useDrawer.d.ts +1 -2
  87. package/dist/{src → types}/composables/useEncodeDecode.d.ts +0 -1
  88. package/dist/types/composables/useFieldErrors.d.ts +5 -0
  89. package/dist/{src → types}/composables/useHelper.d.ts +0 -1
  90. package/dist/{src → types}/composables/useModal.d.ts +0 -1
  91. package/dist/{src → types}/composables/useRandomNumber.d.ts +0 -1
  92. package/dist/{src → types}/composables/useTooltip.d.ts +1 -2
  93. package/dist/{src → types}/consts/table.d.ts +0 -1
  94. package/dist/{src → types}/enums/Cell.d.ts +0 -1
  95. package/dist/{src → types}/enums/Chip.d.ts +0 -1
  96. package/dist/{src → types}/enums/Datepicker.d.ts +0 -1
  97. package/dist/{src → types}/enums/Drawer.d.ts +0 -1
  98. package/dist/{src → types}/enums/Dropdown.d.ts +0 -1
  99. package/dist/{src → types}/enums/Filter.d.ts +0 -1
  100. package/dist/{src → types}/enums/Grid.d.ts +0 -1
  101. package/dist/{src → types}/enums/Input.d.ts +0 -1
  102. package/dist/{src → types}/enums/Modal.d.ts +0 -1
  103. package/dist/{src → types}/enums/Preview.d.ts +0 -1
  104. package/dist/{src → types}/enums/Radio.d.ts +0 -1
  105. package/dist/{src → types}/enums/RadioGroup.d.ts +0 -1
  106. package/dist/{src → types}/enums/Select.d.ts +0 -1
  107. package/dist/{src → types}/enums/Sidebar.d.ts +0 -1
  108. package/dist/{src → types}/enums/Tab.d.ts +0 -1
  109. package/dist/{src → types}/enums/Title.d.ts +0 -1
  110. package/dist/{src → types}/enums/Tooltip.d.ts +0 -1
  111. package/dist/{src/enums/index.js → types/enums/index.d.ts} +0 -1
  112. package/dist/{src → types}/enums/ui/Alignment.d.ts +0 -1
  113. package/dist/{src → types}/enums/ui/Button.d.ts +0 -1
  114. package/dist/{src → types}/enums/ui/Directions.d.ts +0 -1
  115. package/dist/{src → types}/enums/ui/Weights.d.ts +0 -1
  116. package/dist/{src → types}/index.d.ts +0 -2
  117. package/dist/types/main.d.ts +0 -0
  118. package/dist/{src → types}/mocks/authUser.d.ts +0 -1
  119. package/dist/{src → types}/mocks/categories.d.ts +0 -1
  120. package/dist/{src → types}/mocks/filterMocks.d.ts +1 -2
  121. package/dist/types/mocks/icons.json.d.ts +3 -0
  122. package/dist/{src → types}/mocks/menuLangs.d.ts +0 -1
  123. package/dist/{src → types}/mocks/sidebar.d.ts +1 -2
  124. package/dist/{src → types}/mocks/tableData.d.ts +1 -2
  125. package/dist/{src → types}/types/IButton.d.ts +5 -6
  126. package/dist/{src → types}/types/ICell.d.ts +1 -2
  127. package/dist/{src → types}/types/IChip.d.ts +2 -3
  128. package/dist/{src → types}/types/ICollapse.d.ts +0 -1
  129. package/dist/{src → types}/types/IDatepicker.d.ts +1 -2
  130. package/dist/{src → types}/types/IDirections.d.ts +1 -2
  131. package/dist/{src → types}/types/IDrawer.d.ts +2 -3
  132. package/dist/{src → types}/types/IDropdown.d.ts +1 -2
  133. package/dist/{src → types}/types/IFilter.d.ts +1 -2
  134. package/dist/{src → types}/types/IGrid.d.ts +0 -1
  135. package/dist/{src → types}/types/IInput.d.ts +1 -2
  136. package/dist/{src → types}/types/IModal.d.ts +2 -3
  137. package/dist/{src → types}/types/IPreview.d.ts +1 -2
  138. package/dist/{src → types}/types/IRadio.d.ts +1 -2
  139. package/dist/{src → types}/types/IRadioGroup.d.ts +1 -2
  140. package/dist/{src → types}/types/IRoute.d.ts +0 -1
  141. package/dist/{src → types}/types/ISelect.d.ts +1 -2
  142. package/dist/{src → types}/types/ISideBar.d.ts +5 -6
  143. package/dist/{src → types}/types/ITable.d.ts +2 -3
  144. package/dist/{src → types}/types/ITabs.d.ts +4 -5
  145. package/dist/{src → types}/types/ITitle.d.ts +1 -2
  146. package/dist/{src → types}/types/ITooltip.d.ts +1 -2
  147. package/dist/{src/types/index.js → types/types/index.d.ts} +0 -2
  148. package/dist/{src → types}/types/styles/Alignment.d.ts +1 -2
  149. package/dist/{src → types}/types/styles/AvatarSizes.d.ts +0 -1
  150. package/dist/{src → types}/types/styles/Colors.d.ts +0 -1
  151. package/dist/{src → types}/types/styles/Durations.d.ts +0 -1
  152. package/dist/{src → types}/types/styles/FontSizes.d.ts +0 -1
  153. package/dist/{src → types}/types/styles/FontWeights.d.ts +0 -1
  154. package/dist/{src → types}/types/styles/Grid.d.ts +1 -2
  155. package/dist/{src → types}/types/styles/Icons.d.ts +0 -1
  156. package/dist/{src → types}/types/styles/LineHeights.d.ts +0 -1
  157. package/dist/{src → types}/types/styles/MediaQueries.d.ts +0 -1
  158. package/dist/{src → types}/types/styles/Radiuses.d.ts +0 -1
  159. package/dist/{src → types}/types/styles/Sizes.d.ts +0 -1
  160. package/dist/{src → types}/types/styles/Spaces.d.ts +0 -1
  161. package/dist/types/types/styles/Weights.d.ts +2 -0
  162. package/dist/{src → types}/utils/dayjs.d.ts +0 -1
  163. package/dist/{src → types}/utils/mcGridColAdaptiveProps.d.ts +1 -2
  164. package/dist/{src → types}/utils/mcTitleAdaptiveProps.d.ts +1 -2
  165. package/package.json +12 -13
  166. package/dist/src/App.vue.d.ts +0 -3
  167. package/dist/src/App.vue.d.ts.map +0 -1
  168. package/dist/src/App.vue.js +0 -54
  169. package/dist/src/assets/tokens/json/animations.json +0 -6
  170. package/dist/src/assets/tokens/json/border-radius.json +0 -24
  171. package/dist/src/assets/tokens/json/box-shadows.json +0 -24
  172. package/dist/src/assets/tokens/json/colors.json +0 -71
  173. package/dist/src/assets/tokens/json/durations.json +0 -10
  174. package/dist/src/assets/tokens/json/easings.json +0 -3
  175. package/dist/src/assets/tokens/json/font-families.json +0 -4
  176. package/dist/src/assets/tokens/json/font-sizes.json +0 -18
  177. package/dist/src/assets/tokens/json/font-weights.json +0 -12
  178. package/dist/src/assets/tokens/json/gradients.json +0 -13
  179. package/dist/src/assets/tokens/json/index.d.ts +0 -19
  180. package/dist/src/assets/tokens/json/index.d.ts.map +0 -1
  181. package/dist/src/assets/tokens/json/index.js +0 -18
  182. package/dist/src/assets/tokens/json/letter-spacings.json +0 -4
  183. package/dist/src/assets/tokens/json/line-heights.json +0 -18
  184. package/dist/src/assets/tokens/json/media-queries.json +0 -26
  185. package/dist/src/assets/tokens/json/opacities.json +0 -5
  186. package/dist/src/assets/tokens/json/sizes.json +0 -42
  187. package/dist/src/assets/tokens/json/spacings.json +0 -34
  188. package/dist/src/assets/tokens/json/z-indexes.json +0 -12
  189. package/dist/src/components/elements/McAvatar/McAvatar.vue.d.ts.map +0 -1
  190. package/dist/src/components/elements/McAvatar/McAvatar.vue.js +0 -412
  191. package/dist/src/components/elements/McBadge/McBadge.vue.d.ts.map +0 -1
  192. package/dist/src/components/elements/McBadge/McBadge.vue.js +0 -188
  193. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts +0 -15
  194. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.d.ts.map +0 -1
  195. package/dist/src/components/elements/McBottomLoader/McBottomLoader.vue.js +0 -83
  196. package/dist/src/components/elements/McButton/McButton.vue.d.ts.map +0 -1
  197. package/dist/src/components/elements/McButton/McButton.vue.js +0 -1037
  198. package/dist/src/components/elements/McChip/McChip.vue.d.ts.map +0 -1
  199. package/dist/src/components/elements/McChip/McChip.vue.js +0 -326
  200. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts +0 -30
  201. package/dist/src/components/elements/McCropper/McCropper.vue.d.ts.map +0 -1
  202. package/dist/src/components/elements/McCropper/McCropper.vue.js +0 -155
  203. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.d.ts.map +0 -1
  204. package/dist/src/components/elements/McDatepicker/McDatepicker.vue.js +0 -1251
  205. package/dist/src/components/elements/McDraggable/McDraggable.vue.d.ts.map +0 -1
  206. package/dist/src/components/elements/McDraggable/McDraggable.vue.js +0 -280
  207. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.d.ts.map +0 -1
  208. package/dist/src/components/elements/McFieldCheckbox/McFieldCheckbox.vue.js +0 -541
  209. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.d.ts.map +0 -1
  210. package/dist/src/components/elements/McFieldRadio/McFieldRadio.vue.js +0 -488
  211. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.d.ts.map +0 -1
  212. package/dist/src/components/elements/McFieldRadioGroup/McFieldRadioGroup.vue.js +0 -470
  213. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.d.ts.map +0 -1
  214. package/dist/src/components/elements/McFieldRange/McFieldRange.vue.js +0 -547
  215. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.d.ts.map +0 -1
  216. package/dist/src/components/elements/McFieldSelect/McFieldSelect.vue.js +0 -1436
  217. package/dist/src/components/elements/McFieldText/McFieldText.vue.d.ts.map +0 -1
  218. package/dist/src/components/elements/McFieldText/McFieldText.vue.js +0 -1401
  219. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.d.ts.map +0 -1
  220. package/dist/src/components/elements/McFieldToggle/McFieldToggle.vue.js +0 -408
  221. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.d.ts.map +0 -1
  222. package/dist/src/components/elements/McInfinityLoadingTrigger/McInfinityLoadingTrigger.vue.js +0 -192
  223. package/dist/src/components/elements/McNodata/McNoData.vue.d.ts.map +0 -1
  224. package/dist/src/components/elements/McNodata/McNoData.vue.js +0 -316
  225. package/dist/src/components/elements/McNotification/McNotification.vue.d.ts.map +0 -1
  226. package/dist/src/components/elements/McNotification/McNotification.vue.js +0 -364
  227. package/dist/src/components/elements/McProgress/McProgress.vue.d.ts.map +0 -1
  228. package/dist/src/components/elements/McProgress/McProgress.vue.js +0 -361
  229. package/dist/src/components/elements/McSeparator/McSeparator.vue.d.ts.map +0 -1
  230. package/dist/src/components/elements/McSeparator/McSeparator.vue.js +0 -325
  231. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.d.ts.map +0 -1
  232. package/dist/src/components/elements/McSlideUpDown/McSlideUpDown.vue.js +0 -271
  233. package/dist/src/components/elements/McStack/McStack.vue.d.ts.map +0 -1
  234. package/dist/src/components/elements/McStack/McStack.vue.js +0 -180
  235. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.d.ts.map +0 -1
  236. package/dist/src/components/elements/McSvgIcon/McSvgIcon.vue.js +0 -286
  237. package/dist/src/components/elements/McTitle/McTitle.vue.d.ts.map +0 -1
  238. package/dist/src/components/elements/McTitle/McTitle.vue.js +0 -466
  239. package/dist/src/components/elements/McTooltip/McTooltip.vue.d.ts.map +0 -1
  240. package/dist/src/components/elements/McTooltip/McTooltip.vue.js +0 -246
  241. package/dist/src/components/index.d.ts +0 -70
  242. package/dist/src/components/index.d.ts.map +0 -1
  243. package/dist/src/components/patterns/McAccordion/McAccordion.vue.d.ts.map +0 -1
  244. package/dist/src/components/patterns/McAccordion/McAccordion.vue.js +0 -120
  245. package/dist/src/components/patterns/McCell/McCell.vue.d.ts.map +0 -1
  246. package/dist/src/components/patterns/McCell/McCell.vue.js +0 -197
  247. package/dist/src/components/patterns/McCollapse/McCollapse.vue.d.ts.map +0 -1
  248. package/dist/src/components/patterns/McCollapse/McCollapse.vue.js +0 -314
  249. package/dist/src/components/patterns/McDropdown/McDropdown.vue.d.ts.map +0 -1
  250. package/dist/src/components/patterns/McDropdown/McDropdown.vue.js +0 -366
  251. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts +0 -23
  252. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.d.ts.map +0 -1
  253. package/dist/src/components/patterns/McDropdown/McDropdownPanel.vue.js +0 -83
  254. package/dist/src/components/patterns/McFilter/McFilter.vue.d.ts.map +0 -1
  255. package/dist/src/components/patterns/McFilter/McFilter.vue.js +0 -1056
  256. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.d.ts.map +0 -1
  257. package/dist/src/components/patterns/McFilter/McFilterChip/McFilterChip.vue.js +0 -210
  258. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.d.ts.map +0 -1
  259. package/dist/src/components/patterns/McFilter/McFilterTags/McFilterTags.vue.js +0 -546
  260. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.d.ts.map +0 -1
  261. package/dist/src/components/patterns/McFilter/McFilterTypeDate/McFilterTypeDate.vue.js +0 -188
  262. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.d.ts.map +0 -1
  263. package/dist/src/components/patterns/McFilter/McFilterTypeRange/McFilterTypeRange.vue.js +0 -238
  264. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.d.ts.map +0 -1
  265. package/dist/src/components/patterns/McFilter/McFilterTypeRelation/McFilterTypeRelation.vue.js +0 -356
  266. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.d.ts.map +0 -1
  267. package/dist/src/components/patterns/McFilter/McFilterTypeText/McFilterTypeText.vue.js +0 -171
  268. package/dist/src/components/patterns/McGridCol/McGridCol.vue.d.ts.map +0 -1
  269. package/dist/src/components/patterns/McGridCol/McGridCol.vue.js +0 -246
  270. package/dist/src/components/patterns/McGridRow/McGridRow.vue.d.ts.map +0 -1
  271. package/dist/src/components/patterns/McGridRow/McGridRow.vue.js +0 -292
  272. package/dist/src/components/patterns/McOverlay/McOverlay.vue.d.ts.map +0 -1
  273. package/dist/src/components/patterns/McOverlay/McOverlay.vue.js +0 -107
  274. package/dist/src/components/patterns/McPreview/McPreview.vue.d.ts.map +0 -1
  275. package/dist/src/components/patterns/McPreview/McPreview.vue.js +0 -118
  276. package/dist/src/components/patterns/McSideBar/McSideBar.vue.d.ts.map +0 -1
  277. package/dist/src/components/patterns/McSideBar/McSideBar.vue.js +0 -738
  278. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.d.ts.map +0 -1
  279. package/dist/src/components/patterns/McSideBar/McSideBarBottom/McSideBarBottom.vue.js +0 -204
  280. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.d.ts.map +0 -1
  281. package/dist/src/components/patterns/McSideBar/McSideBarButton/McSideBarButton.vue.js +0 -508
  282. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.d.ts.map +0 -1
  283. package/dist/src/components/patterns/McSideBar/McSideBarCenter/McSideBarCenter.vue.js +0 -409
  284. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.d.ts.map +0 -1
  285. package/dist/src/components/patterns/McSideBar/McSideBarTop/McSideBarTop.vue.js +0 -415
  286. package/dist/src/components/patterns/McTab/McTab.vue.d.ts.map +0 -1
  287. package/dist/src/components/patterns/McTab/McTab.vue.js +0 -518
  288. package/dist/src/components/patterns/McTabs/McTabs.vue.d.ts.map +0 -1
  289. package/dist/src/components/patterns/McTabs/McTabs.vue.js +0 -427
  290. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.d.ts.map +0 -1
  291. package/dist/src/components/patterns/McWrapScroll/McWrapScroll.vue.js +0 -422
  292. package/dist/src/components/templates/McDrawer/McDrawer.vue.d.ts.map +0 -1
  293. package/dist/src/components/templates/McDrawer/McDrawer.vue.js +0 -304
  294. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.d.ts.map +0 -1
  295. package/dist/src/components/templates/McDrawer/McDrawerContainer.vue.js +0 -133
  296. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.d.ts.map +0 -1
  297. package/dist/src/components/templates/McDrawer/McDrawerContentTemplate/McDrawerContentTemplate.vue.js +0 -134
  298. package/dist/src/components/templates/McModal/McModal.vue.d.ts.map +0 -1
  299. package/dist/src/components/templates/McModal/McModal.vue.js +0 -664
  300. package/dist/src/components/templates/McModal/McModalContainer.vue.d.ts.map +0 -1
  301. package/dist/src/components/templates/McModal/McModalContainer.vue.js +0 -119
  302. package/dist/src/components/templates/McTable/McTable/McTable.vue.d.ts.map +0 -1
  303. package/dist/src/components/templates/McTable/McTable/McTable.vue.js +0 -854
  304. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.d.ts.map +0 -1
  305. package/dist/src/components/templates/McTable/McTableCard/McTableCard.vue.js +0 -339
  306. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.d.ts.map +0 -1
  307. package/dist/src/components/templates/McTable/McTableCard/McTableCardHeader/McTableCardHeader.vue.js +0 -118
  308. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts +0 -19
  309. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.d.ts.map +0 -1
  310. package/dist/src/components/templates/McTable/McTableSkeletonLoading/McTableSkeletonLoading.vue.js +0 -118
  311. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.d.ts.map +0 -1
  312. package/dist/src/components/templates/McTable/McTableSort/McTableSort.vue.js +0 -136
  313. package/dist/src/components/templates/McTopBar/McTopBar.vue.d.ts.map +0 -1
  314. package/dist/src/components/templates/McTopBar/McTopBar.vue.js +0 -305
  315. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.d.ts.map +0 -1
  316. package/dist/src/components/templates/McVirtualScroll/McVirtualScroll.vue.js +0 -239
  317. package/dist/src/composables/index.d.ts +0 -8
  318. package/dist/src/composables/index.d.ts.map +0 -1
  319. package/dist/src/composables/useDrawer.d.ts.map +0 -1
  320. package/dist/src/composables/useDrawer.js +0 -72
  321. package/dist/src/composables/useEncodeDecode.d.ts.map +0 -1
  322. package/dist/src/composables/useEncodeDecode.js +0 -25
  323. package/dist/src/composables/useFieldErrors.d.ts +0 -6
  324. package/dist/src/composables/useFieldErrors.d.ts.map +0 -1
  325. package/dist/src/composables/useFieldErrors.js +0 -20
  326. package/dist/src/composables/useHelper.d.ts.map +0 -1
  327. package/dist/src/composables/useHelper.js +0 -79
  328. package/dist/src/composables/useModal.d.ts.map +0 -1
  329. package/dist/src/composables/useModal.js +0 -71
  330. package/dist/src/composables/useRandomNumber.d.ts.map +0 -1
  331. package/dist/src/composables/useRandomNumber.js +0 -10
  332. package/dist/src/composables/useTooltip.d.ts.map +0 -1
  333. package/dist/src/composables/useTooltip.js +0 -154
  334. package/dist/src/consts/index.d.ts +0 -2
  335. package/dist/src/consts/index.d.ts.map +0 -1
  336. package/dist/src/consts/table.d.ts.map +0 -1
  337. package/dist/src/consts/table.js +0 -6
  338. package/dist/src/enums/Cell.d.ts.map +0 -1
  339. package/dist/src/enums/Cell.js +0 -6
  340. package/dist/src/enums/Chip.d.ts.map +0 -1
  341. package/dist/src/enums/Chip.js +0 -11
  342. package/dist/src/enums/Datepicker.d.ts.map +0 -1
  343. package/dist/src/enums/Datepicker.js +0 -42
  344. package/dist/src/enums/Drawer.d.ts.map +0 -1
  345. package/dist/src/enums/Drawer.js +0 -5
  346. package/dist/src/enums/Dropdown.d.ts.map +0 -1
  347. package/dist/src/enums/Dropdown.js +0 -12
  348. package/dist/src/enums/Filter.d.ts.map +0 -1
  349. package/dist/src/enums/Filter.js +0 -14
  350. package/dist/src/enums/Grid.d.ts.map +0 -1
  351. package/dist/src/enums/Grid.js +0 -24
  352. package/dist/src/enums/Input.d.ts.map +0 -1
  353. package/dist/src/enums/Input.js +0 -20
  354. package/dist/src/enums/Modal.d.ts.map +0 -1
  355. package/dist/src/enums/Modal.js +0 -5
  356. package/dist/src/enums/Preview.d.ts.map +0 -1
  357. package/dist/src/enums/Preview.js +0 -6
  358. package/dist/src/enums/Radio.d.ts.map +0 -1
  359. package/dist/src/enums/Radio.js +0 -5
  360. package/dist/src/enums/RadioGroup.d.ts.map +0 -1
  361. package/dist/src/enums/RadioGroup.js +0 -5
  362. package/dist/src/enums/Select.d.ts.map +0 -1
  363. package/dist/src/enums/Select.js +0 -11
  364. package/dist/src/enums/Sidebar.d.ts.map +0 -1
  365. package/dist/src/enums/Sidebar.js +0 -5
  366. package/dist/src/enums/Tab.d.ts.map +0 -1
  367. package/dist/src/enums/Tab.js +0 -6
  368. package/dist/src/enums/Title.d.ts.map +0 -1
  369. package/dist/src/enums/Title.js +0 -21
  370. package/dist/src/enums/Tooltip.d.ts.map +0 -1
  371. package/dist/src/enums/Tooltip.js +0 -15
  372. package/dist/src/enums/index.d.ts +0 -22
  373. package/dist/src/enums/index.d.ts.map +0 -1
  374. package/dist/src/enums/ui/Alignment.d.ts.map +0 -1
  375. package/dist/src/enums/ui/Alignment.js +0 -6
  376. package/dist/src/enums/ui/Button.d.ts.map +0 -1
  377. package/dist/src/enums/ui/Button.js +0 -24
  378. package/dist/src/enums/ui/Directions.d.ts.map +0 -1
  379. package/dist/src/enums/ui/Directions.js +0 -5
  380. package/dist/src/enums/ui/Weights.d.ts.map +0 -1
  381. package/dist/src/enums/ui/Weights.js +0 -7
  382. package/dist/src/index.d.ts.map +0 -1
  383. package/dist/src/index.js +0 -17
  384. package/dist/src/main.d.ts +0 -3
  385. package/dist/src/main.d.ts.map +0 -1
  386. package/dist/src/main.js +0 -8
  387. package/dist/src/mocks/authUser.d.ts.map +0 -1
  388. package/dist/src/mocks/authUser.js +0 -162
  389. package/dist/src/mocks/categories.d.ts.map +0 -1
  390. package/dist/src/mocks/categories.js +0 -108
  391. package/dist/src/mocks/filterMocks.d.ts.map +0 -1
  392. package/dist/src/mocks/filterMocks.js +0 -128
  393. package/dist/src/mocks/icons.json +0 -1
  394. package/dist/src/mocks/menuLangs.d.ts.map +0 -1
  395. package/dist/src/mocks/menuLangs.js +0 -19
  396. package/dist/src/mocks/selectOptions.json +0 -111
  397. package/dist/src/mocks/sidebar.d.ts.map +0 -1
  398. package/dist/src/mocks/sidebar.js +0 -125
  399. package/dist/src/mocks/tableData.d.ts.map +0 -1
  400. package/dist/src/mocks/tableData.js +0 -8180
  401. package/dist/src/types/IButton.d.ts.map +0 -1
  402. package/dist/src/types/IButton.js +0 -1
  403. package/dist/src/types/ICell.d.ts.map +0 -1
  404. package/dist/src/types/ICell.js +0 -1
  405. package/dist/src/types/IChip.d.ts.map +0 -1
  406. package/dist/src/types/IChip.js +0 -1
  407. package/dist/src/types/ICollapse.d.ts.map +0 -1
  408. package/dist/src/types/ICollapse.js +0 -1
  409. package/dist/src/types/IDatepicker.d.ts.map +0 -1
  410. package/dist/src/types/IDatepicker.js +0 -1
  411. package/dist/src/types/IDirections.d.ts.map +0 -1
  412. package/dist/src/types/IDirections.js +0 -1
  413. package/dist/src/types/IDrawer.d.ts.map +0 -1
  414. package/dist/src/types/IDrawer.js +0 -1
  415. package/dist/src/types/IDropdown.d.ts.map +0 -1
  416. package/dist/src/types/IDropdown.js +0 -1
  417. package/dist/src/types/IFilter.d.ts.map +0 -1
  418. package/dist/src/types/IFilter.js +0 -1
  419. package/dist/src/types/IGrid.d.ts.map +0 -1
  420. package/dist/src/types/IGrid.js +0 -1
  421. package/dist/src/types/IInput.d.ts.map +0 -1
  422. package/dist/src/types/IInput.js +0 -1
  423. package/dist/src/types/IModal.d.ts.map +0 -1
  424. package/dist/src/types/IModal.js +0 -1
  425. package/dist/src/types/IPreview.d.ts.map +0 -1
  426. package/dist/src/types/IPreview.js +0 -1
  427. package/dist/src/types/IRadio.d.ts.map +0 -1
  428. package/dist/src/types/IRadio.js +0 -1
  429. package/dist/src/types/IRadioGroup.d.ts.map +0 -1
  430. package/dist/src/types/IRadioGroup.js +0 -1
  431. package/dist/src/types/IRoute.d.ts.map +0 -1
  432. package/dist/src/types/IRoute.js +0 -1
  433. package/dist/src/types/ISelect.d.ts.map +0 -1
  434. package/dist/src/types/ISelect.js +0 -1
  435. package/dist/src/types/ISideBar.d.ts.map +0 -1
  436. package/dist/src/types/ISideBar.js +0 -1
  437. package/dist/src/types/ITable.d.ts.map +0 -1
  438. package/dist/src/types/ITable.js +0 -1
  439. package/dist/src/types/ITabs.d.ts.map +0 -1
  440. package/dist/src/types/ITabs.js +0 -1
  441. package/dist/src/types/ITitle.d.ts.map +0 -1
  442. package/dist/src/types/ITitle.js +0 -1
  443. package/dist/src/types/ITooltip.d.ts.map +0 -1
  444. package/dist/src/types/ITooltip.js +0 -1
  445. package/dist/src/types/index.d.ts +0 -37
  446. package/dist/src/types/index.d.ts.map +0 -1
  447. package/dist/src/types/styles/Alignment.d.ts.map +0 -1
  448. package/dist/src/types/styles/Alignment.js +0 -1
  449. package/dist/src/types/styles/AvatarSizes.d.ts.map +0 -1
  450. package/dist/src/types/styles/AvatarSizes.js +0 -3
  451. package/dist/src/types/styles/Colors.d.ts.map +0 -1
  452. package/dist/src/types/styles/Colors.js +0 -3
  453. package/dist/src/types/styles/Durations.d.ts.map +0 -1
  454. package/dist/src/types/styles/Durations.js +0 -3
  455. package/dist/src/types/styles/FontSizes.d.ts.map +0 -1
  456. package/dist/src/types/styles/FontSizes.js +0 -3
  457. package/dist/src/types/styles/FontWeights.d.ts.map +0 -1
  458. package/dist/src/types/styles/FontWeights.js +0 -3
  459. package/dist/src/types/styles/Grid.d.ts.map +0 -1
  460. package/dist/src/types/styles/Grid.js +0 -1
  461. package/dist/src/types/styles/Icons.d.ts.map +0 -1
  462. package/dist/src/types/styles/Icons.js +0 -2
  463. package/dist/src/types/styles/LineHeights.d.ts.map +0 -1
  464. package/dist/src/types/styles/LineHeights.js +0 -3
  465. package/dist/src/types/styles/MediaQueries.d.ts.map +0 -1
  466. package/dist/src/types/styles/MediaQueries.js +0 -3
  467. package/dist/src/types/styles/Radiuses.d.ts.map +0 -1
  468. package/dist/src/types/styles/Radiuses.js +0 -3
  469. package/dist/src/types/styles/Sizes.d.ts.map +0 -1
  470. package/dist/src/types/styles/Sizes.js +0 -3
  471. package/dist/src/types/styles/Spaces.d.ts.map +0 -1
  472. package/dist/src/types/styles/Spaces.js +0 -3
  473. package/dist/src/types/styles/Weights.d.ts +0 -3
  474. package/dist/src/types/styles/Weights.d.ts.map +0 -1
  475. package/dist/src/types/styles/Weights.js +0 -1
  476. package/dist/src/utils/dayjs.d.ts.map +0 -1
  477. package/dist/src/utils/dayjs.js +0 -22
  478. package/dist/src/utils/index.d.ts +0 -3
  479. package/dist/src/utils/index.d.ts.map +0 -1
  480. package/dist/src/utils/mcGridColAdaptiveProps.d.ts.map +0 -1
  481. package/dist/src/utils/mcGridColAdaptiveProps.js +0 -10
  482. package/dist/src/utils/mcTitleAdaptiveProps.d.ts.map +0 -1
  483. package/dist/src/utils/mcTitleAdaptiveProps.js +0 -10
  484. package/dist/tsconfig.tsbuildinfo +0 -1
  485. /package/dist/{src/components/index.js → types/components/index.d.ts} +0 -0
  486. /package/dist/{src/consts/index.js → types/consts/index.d.ts} +0 -0
  487. /package/dist/{src/utils/index.js → types/utils/index.d.ts} +0 -0
@@ -1,1436 +0,0 @@
1
- import { computed, ref, watch } from 'vue';
2
- import { default as MultiSelect } from 'vue-multiselect';
3
- import { McTitle, McSvgIcon, McAvatar, McTooltip, McPreview } from '@/components';
4
- import { Directions } from '@/enums/ui/Directions';
5
- import { Colors } from '@/types/styles/Colors';
6
- import { useFieldErrors } from '@/composables';
7
- import { SelectGroupKeys } from '@/enums/Select';
8
- import { PreviewSizes, TitleVariations, TooltipPositions, Weights } from '@/enums';
9
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
10
- const emit = defineEmits();
11
- const props = defineProps({
12
- /**
13
- * Значение
14
- */
15
- modelValue: {
16
- type: [Array, String, Number]
17
- },
18
- /**
19
- * Заголовок поля:
20
- *
21
- */
22
- title: {
23
- type: String,
24
- default: null
25
- },
26
- /**
27
- * Вспомогательный текст под инпутом:
28
- *
29
- */
30
- helpText: {
31
- type: String,
32
- default: null
33
- },
34
- /**
35
- * Массив элементов
36
- * выпадающего списка
37
- * [
38
- * {
39
- * name: String,
40
- * value: String | Number,
41
- * text: String - доступен, если optionWithPreview=true
42
- * icon: String - доступен, если optionWithPreview=true
43
- * }
44
- * ]
45
- */
46
- options: {
47
- type: Array,
48
- default: () => []
49
- },
50
- /**
51
- * Выполняется ли поиск из списка
52
- * при вводе в инпут
53
- */
54
- searchable: {
55
- type: Boolean,
56
- default: true
57
- },
58
- /**
59
- * Множественный выбор
60
- */
61
- multiple: {
62
- type: Boolean,
63
- default: false
64
- },
65
- /**
66
- * Скрывать из списка
67
- * выбранные элементы
68
- */
69
- hideSelected: {
70
- type: Boolean,
71
- default: true
72
- },
73
- /**
74
- * Допустимо ли
75
- * пустое значение
76
- */
77
- allowEmpty: {
78
- type: Boolean,
79
- default: true
80
- },
81
- /**
82
- * Отключенное состояние
83
- */
84
- disabled: {
85
- type: Boolean,
86
- default: false
87
- },
88
- /**
89
- * Ссылка на аватар/картинку
90
- * в начале label
91
- */
92
- avatar: {
93
- type: String,
94
- default: null
95
- },
96
- /**
97
- * Имя иконки
98
- * в начале label
99
- */
100
- icon: {
101
- type: String,
102
- default: null
103
- },
104
- /**
105
- * Цвет фона
106
- */
107
- backgroundColor: {
108
- type: String,
109
- default: null
110
- },
111
- /**
112
- * placeholder
113
- */
114
- placeholder: {
115
- type: String,
116
- default: ''
117
- },
118
- /**
119
- * Направление открытия списка:
120
- * `above (top), below (bottom), auto`
121
- */
122
- openDirection: {
123
- type: String,
124
- default: 'auto'
125
- },
126
- /**
127
- * Селект в режиме тэгирования, когда можно вводить свои значения и добавлять их в опции
128
- * */
129
- taggable: {
130
- type: Boolean,
131
- default: false
132
- },
133
- /**
134
- * Помечать в списке выбранные
135
- * элементы
136
- */
137
- showLabels: {
138
- type: Boolean,
139
- default: false
140
- },
141
- /**
142
- * Поиск по опциям
143
- * */
144
- internalSearch: {
145
- type: Boolean,
146
- default: true
147
- },
148
- /**
149
- * Ошибки
150
- */
151
- errors: {
152
- type: Array,
153
- default: null
154
- },
155
- /**
156
- * Name
157
- */
158
- name: {
159
- type: String,
160
- required: true
161
- },
162
- /**
163
- * Если нужен тултип
164
- * над элементами списка
165
- */
166
- optionsTooltip: {
167
- type: Boolean,
168
- default: false
169
- },
170
- /**
171
- * При группировке опций, дает возвожность выбрать сразу группу
172
- * */
173
- groupSelect: {
174
- type: Boolean,
175
- default: false
176
- },
177
- required: {
178
- type: Boolean,
179
- default: false
180
- },
181
- /**
182
- * Если айтемам в селекте нужны превью с иконками и описанием
183
- */
184
- optionWithPreview: {
185
- type: Boolean,
186
- default: false
187
- },
188
- tabindex: {
189
- type: [String, Number],
190
- default: null
191
- },
192
- /**
193
- * Если нужно ограничить максимальную высоту блока с выбранными элементами
194
- */
195
- maxHeight: {
196
- type: String,
197
- default: null
198
- },
199
- /**
200
- * Рендерить ли выпадающий список абсолютно, что бы помещался в ограниченном пространстве
201
- * */
202
- renderAbsoluteList: {
203
- type: Boolean,
204
- default: false
205
- },
206
- /**
207
- * Для какого языка селект
208
- */
209
- locale: {
210
- type: String,
211
- default: null
212
- },
213
- /**
214
- * Текст для пустого селекта, когда неичего не найдено
215
- */
216
- noResultsText: {
217
- type: String,
218
- default: 'No results'
219
- },
220
- /**
221
- * Показывать ли состояние лоадинга
222
- */
223
- loading: {
224
- type: Boolean,
225
- default: false
226
- },
227
- dir: {
228
- type: String,
229
- default: Directions.Ltr
230
- },
231
- /**
232
- * На какое после смотреть что бы считать его заголовком строки
233
- * */
234
- titleField: {
235
- type: String,
236
- default: 'name'
237
- },
238
- /**
239
- * На какое после смотреть что бы считать его значением строки
240
- * */
241
- valueField: {
242
- type: String,
243
- default: 'value'
244
- }
245
- });
246
- const fieldErrors = useFieldErrors(props.errors);
247
- const searchValue = ref(null);
248
- const field_select_ref = ref(null);
249
- const field_select_wrapper_ref = ref(null);
250
- const local_options = ref([]);
251
- const isGroupedOptions = computed(() => {
252
- return props.options.some((o) => Object.prototype.hasOwnProperty.call(o, SelectGroupKeys.Label) &&
253
- Object.prototype.hasOwnProperty.call(o, SelectGroupKeys.Values) &&
254
- //@ts-ignore
255
- Array.isArray(o[SelectGroupKeys.Values]));
256
- });
257
- const hasTitle = computed(() => {
258
- return !!props.title;
259
- });
260
- const hasPrepend = computed(() => {
261
- return props.avatar || props.icon;
262
- });
263
- const isValueMustBeArray = computed(() => {
264
- return props.multiple;
265
- });
266
- const tagBind = computed(() => {
267
- return {
268
- label: props.titleField,
269
- trackBy: props.valueField,
270
- loading: props.loading,
271
- options: computedOptions.value,
272
- searchable: props.searchable,
273
- showLabels: props.showLabels,
274
- multiple: props.multiple,
275
- hideSelected: props.hideSelected,
276
- allowEmpty: props.allowEmpty,
277
- openDirection: props.openDirection,
278
- id: props.name,
279
- taggable: props.taggable,
280
- tagPlaceholder: '',
281
- placeholder: props.placeholder,
282
- disabled: props.disabled,
283
- internalSearch: props.internalSearch,
284
- tabindex: +props.tabindex,
285
- groupSelect: props.groupSelect && props.multiple,
286
- ...(isGroupedOptions.value ? { groupLabel: SelectGroupKeys.Label } : {}),
287
- ...(isGroupedOptions.value ? { groupValues: SelectGroupKeys.Values } : {})
288
- };
289
- });
290
- const computedOptions = computed(() => {
291
- //@ts-ignore
292
- return !isGroupedOptions.value
293
- ? [...props.options, ...local_options.value].filter(
294
- //@ts-ignore
295
- (v, i, a) => a.findIndex((afi) => afi[props.valueField] === v[props.valueField]) === i)
296
- : props.options;
297
- });
298
- const rtl = computed(() => {
299
- return props.dir === Directions.Rtl;
300
- });
301
- const classes = computed(() => {
302
- return {
303
- 'mc-field-select': true,
304
- 'mc-field-select--error': !!fieldErrors.errorText.value,
305
- 'mc-field-select--disabled': props.disabled,
306
- [`mc-field-select--bg-${props.backgroundColor}`]: !!props.backgroundColor,
307
- 'mc-field-select--is-empty-options-list': isEmptyOptionsList.value || props.loading,
308
- 'mc-field-select--with-preview': props.optionWithPreview,
309
- 'mc-field-select--max-height': !!props.maxHeight,
310
- 'mc-field-select--rtl': rtl.value
311
- };
312
- });
313
- const computedTitle = computed(() => {
314
- return `${props.title}${props.required ? ' *' : ''}`;
315
- });
316
- const styles = computed(() => {
317
- const darkColors = ['gray', 'dark-gray', 'black'];
318
- const lightColors = ['white'];
319
- let placeHolderColor = 'gray';
320
- let borderColor = props.backgroundColor;
321
- let backgroundColor = props.backgroundColor;
322
- let labelColor = 'black';
323
- if (!props.backgroundColor || lightColors.includes(props.backgroundColor)) {
324
- borderColor = 'purple';
325
- }
326
- if (darkColors.includes(props.backgroundColor)) {
327
- labelColor = 'white';
328
- placeHolderColor = 'white';
329
- borderColor = 'black';
330
- }
331
- if (props.disabled && !props.backgroundColor) {
332
- backgroundColor = 'hover-gray';
333
- }
334
- return {
335
- '--mc-field-select-max-height': props.maxHeight,
336
- '--mc-field-select-color': backgroundColor && Colors[backgroundColor],
337
- '--mc-field-select-border-color': borderColor && Colors[borderColor],
338
- '--mc-field-select-label-color': Colors[labelColor],
339
- '--mc-field-select-placeholder-color': Colors[placeHolderColor]
340
- };
341
- });
342
- const isEmptyOptionsList = computed(() => {
343
- if ((props.hideSelected && !searchValue.value) || !props.options.length) {
344
- if (props.multiple) {
345
- if (isGroupedOptions.value)
346
- return false;
347
- return Array.isArray(props.modelValue) && props.options.length === props.modelValue.length;
348
- }
349
- else {
350
- return !!props.modelValue && computedOptions.value?.length === 1 && !searchValue.value;
351
- }
352
- }
353
- else if (props.options.length === 0)
354
- return !props.options.length;
355
- return false;
356
- });
357
- const computedModelValue = computed({
358
- get() {
359
- let preparedValue = isValueMustBeArray.value ? props.modelValue || [] : [props.modelValue].filter(Boolean);
360
- preparedValue = preparedValue.map((pv) => {
361
- //@ts-ignore
362
- const options = isGroupedOptions.value
363
- ? computedOptions.value.map((co) => co[SelectGroupKeys.Values]).flat()
364
- : computedOptions.value;
365
- const item = options.find((co) => String(co[props.valueField]) === String(pv));
366
- return {
367
- [props.titleField]: item?.[props.titleField],
368
- [props.valueField]: item?.[props.valueField],
369
- text: item?.text,
370
- icon: item?.icon
371
- };
372
- });
373
- const [first] = preparedValue;
374
- return isValueMustBeArray.value ? preparedValue : first;
375
- },
376
- set(value) {
377
- let preparedValue = isValueMustBeArray.value ? (Array.isArray(value) ? value : []) : [value];
378
- preparedValue = preparedValue.filter(Boolean).map((v) => v[props.valueField]);
379
- const [first] = preparedValue;
380
- emitOriginalInput(value);
381
- emitInput(isValueMustBeArray.value ? preparedValue : first);
382
- }
383
- });
384
- const actualizeSavedOptions = () => {
385
- //Фильтруем локальные опции и оставляем только те, значения которых выбраны в селекте
386
- local_options.value = local_options.value.filter((lo) => props.modelValue?.constructor === Array
387
- ? props.modelValue.map((v) => String(v)).includes(String(lo[props.valueField]))
388
- : String(lo[props.valueField]) === String(props.modelValue));
389
- //Делаем Юник, что бы опции не повторялись
390
- local_options.value = local_options.value.filter((v, i, a) => a.findIndex((afi) => String(afi[props.valueField]) === String(v[props.valueField])) === i);
391
- };
392
- const handleTag = (value) => {
393
- const preparedValue = { [props.titleField]: value, [props.valueField]: value };
394
- local_options.value.push(preparedValue);
395
- computedModelValue.value = isValueMustBeArray.value ? [...computedModelValue.value, preparedValue] : preparedValue;
396
- /**
397
- * Событие по добавлению
398
- * тега в опции (по Enter)
399
- */
400
- emit('tag', value);
401
- };
402
- const handleSearchChange = (value) => {
403
- searchValue.value = value;
404
- /**
405
- * Событие по вводу данных в инпут
406
- */
407
- emit('search-change', value);
408
- };
409
- const emitInput = (value) => {
410
- fieldErrors.toggleErrorVisible();
411
- /**
412
- * Событие инпута (выбранное значение)
413
- */
414
- emit('update:modelValue', value);
415
- };
416
- const emitOriginalInput = (value) => {
417
- /**
418
- * Истинное значение инпута
419
- */
420
- emit('original-input', value);
421
- };
422
- const handleOpen = () => {
423
- emit('handle-open');
424
- };
425
- const handleClose = () => {
426
- emit('handle-close');
427
- };
428
- watch(() => props.options, (val) => {
429
- //Пушим все входящие опции в локальные опции
430
- local_options.value.push(...val);
431
- actualizeSavedOptions();
432
- }, { immediate: true });
433
- watch(() => props.modelValue, () => {
434
- actualizeSavedOptions();
435
- }, { immediate: true, deep: true }); /* PartiallyEnd: #3632/scriptSetup.vue */
436
- const __VLS_fnComponent = (await import('vue')).defineComponent({
437
- props: {
438
- /**
439
- * Значение
440
- */
441
- modelValue: {
442
- type: [Array, String, Number]
443
- },
444
- /**
445
- * Заголовок поля:
446
- *
447
- */
448
- title: {
449
- type: String,
450
- default: null
451
- },
452
- /**
453
- * Вспомогательный текст под инпутом:
454
- *
455
- */
456
- helpText: {
457
- type: String,
458
- default: null
459
- },
460
- /**
461
- * Массив элементов
462
- * выпадающего списка
463
- * [
464
- * {
465
- * name: String,
466
- * value: String | Number,
467
- * text: String - доступен, если optionWithPreview=true
468
- * icon: String - доступен, если optionWithPreview=true
469
- * }
470
- * ]
471
- */
472
- options: {
473
- type: Array,
474
- default: () => []
475
- },
476
- /**
477
- * Выполняется ли поиск из списка
478
- * при вводе в инпут
479
- */
480
- searchable: {
481
- type: Boolean,
482
- default: true
483
- },
484
- /**
485
- * Множественный выбор
486
- */
487
- multiple: {
488
- type: Boolean,
489
- default: false
490
- },
491
- /**
492
- * Скрывать из списка
493
- * выбранные элементы
494
- */
495
- hideSelected: {
496
- type: Boolean,
497
- default: true
498
- },
499
- /**
500
- * Допустимо ли
501
- * пустое значение
502
- */
503
- allowEmpty: {
504
- type: Boolean,
505
- default: true
506
- },
507
- /**
508
- * Отключенное состояние
509
- */
510
- disabled: {
511
- type: Boolean,
512
- default: false
513
- },
514
- /**
515
- * Ссылка на аватар/картинку
516
- * в начале label
517
- */
518
- avatar: {
519
- type: String,
520
- default: null
521
- },
522
- /**
523
- * Имя иконки
524
- * в начале label
525
- */
526
- icon: {
527
- type: String,
528
- default: null
529
- },
530
- /**
531
- * Цвет фона
532
- */
533
- backgroundColor: {
534
- type: String,
535
- default: null
536
- },
537
- /**
538
- * placeholder
539
- */
540
- placeholder: {
541
- type: String,
542
- default: ''
543
- },
544
- /**
545
- * Направление открытия списка:
546
- * `above (top), below (bottom), auto`
547
- */
548
- openDirection: {
549
- type: String,
550
- default: 'auto'
551
- },
552
- /**
553
- * Селект в режиме тэгирования, когда можно вводить свои значения и добавлять их в опции
554
- * */
555
- taggable: {
556
- type: Boolean,
557
- default: false
558
- },
559
- /**
560
- * Помечать в списке выбранные
561
- * элементы
562
- */
563
- showLabels: {
564
- type: Boolean,
565
- default: false
566
- },
567
- /**
568
- * Поиск по опциям
569
- * */
570
- internalSearch: {
571
- type: Boolean,
572
- default: true
573
- },
574
- /**
575
- * Ошибки
576
- */
577
- errors: {
578
- type: Array,
579
- default: null
580
- },
581
- /**
582
- * Name
583
- */
584
- name: {
585
- type: String,
586
- required: true
587
- },
588
- /**
589
- * Если нужен тултип
590
- * над элементами списка
591
- */
592
- optionsTooltip: {
593
- type: Boolean,
594
- default: false
595
- },
596
- /**
597
- * При группировке опций, дает возвожность выбрать сразу группу
598
- * */
599
- groupSelect: {
600
- type: Boolean,
601
- default: false
602
- },
603
- required: {
604
- type: Boolean,
605
- default: false
606
- },
607
- /**
608
- * Если айтемам в селекте нужны превью с иконками и описанием
609
- */
610
- optionWithPreview: {
611
- type: Boolean,
612
- default: false
613
- },
614
- tabindex: {
615
- type: [String, Number],
616
- default: null
617
- },
618
- /**
619
- * Если нужно ограничить максимальную высоту блока с выбранными элементами
620
- */
621
- maxHeight: {
622
- type: String,
623
- default: null
624
- },
625
- /**
626
- * Рендерить ли выпадающий список абсолютно, что бы помещался в ограниченном пространстве
627
- * */
628
- renderAbsoluteList: {
629
- type: Boolean,
630
- default: false
631
- },
632
- /**
633
- * Для какого языка селект
634
- */
635
- locale: {
636
- type: String,
637
- default: null
638
- },
639
- /**
640
- * Текст для пустого селекта, когда неичего не найдено
641
- */
642
- noResultsText: {
643
- type: String,
644
- default: 'No results'
645
- },
646
- /**
647
- * Показывать ли состояние лоадинга
648
- */
649
- loading: {
650
- type: Boolean,
651
- default: false
652
- },
653
- dir: {
654
- type: String,
655
- default: Directions.Ltr
656
- },
657
- /**
658
- * На какое после смотреть что бы считать его заголовком строки
659
- * */
660
- titleField: {
661
- type: String,
662
- default: 'name'
663
- },
664
- /**
665
- * На какое после смотреть что бы считать его значением строки
666
- * */
667
- valueField: {
668
- type: String,
669
- default: 'value'
670
- }
671
- },
672
- __typeEmits: {},
673
- });
674
- ;
675
- let __VLS_functionalComponentProps;
676
- function __VLS_template() {
677
- const __VLS_ctx = {};
678
- const __VLS_localComponents = {
679
- ...{},
680
- ...{},
681
- ...__VLS_ctx,
682
- };
683
- let __VLS_components;
684
- const __VLS_localDirectives = {
685
- ...{},
686
- ...__VLS_ctx,
687
- };
688
- let __VLS_directives;
689
- let __VLS_styleScopedClasses;
690
- // CSS variable injection
691
- // CSS variable injection end
692
- let __VLS_resolvedLocalAndGlobalComponents;
693
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ref: ("field_select_wrapper_ref"), dir: ((__VLS_ctx.dir)), ...{ class: ((__VLS_ctx.classes)) }, ...{ style: ((__VLS_ctx.styles)) }, });
694
- // @ts-ignore navigation for `const field_select_wrapper_ref = ref()`
695
- __VLS_ctx.field_select_wrapper_ref;
696
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-field-select__header") }, });
697
- var __VLS_0 = {};
698
- if (__VLS_ctx.hasTitle) {
699
- const __VLS_1 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
700
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
701
- // @ts-ignore
702
- const __VLS_2 = __VLS_asFunctionalComponent(__VLS_1, new __VLS_1({ maxWidth: ("100%"), weight: ((__VLS_ctx.Weights.Medium)), }));
703
- const __VLS_3 = __VLS_2({ maxWidth: ("100%"), weight: ((__VLS_ctx.Weights.Medium)), }, ...__VLS_functionalComponentArgsRest(__VLS_2));
704
- (__VLS_ctx.computedTitle);
705
- __VLS_nonNullable(__VLS_6.slots).default;
706
- var __VLS_6;
707
- }
708
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-field-select__main") }, });
709
- const __VLS_7 = __VLS_resolvedLocalAndGlobalComponents.MultiSelect;
710
- /** @type { [typeof __VLS_components.MultiSelect, typeof __VLS_components.multiSelect, typeof __VLS_components.MultiSelect, typeof __VLS_components.multiSelect, ] } */
711
- // @ts-ignore
712
- const __VLS_8 = __VLS_asFunctionalComponent(__VLS_7, new __VLS_7({ ...{ 'onTag': {} }, ...{ 'onSearchChange': {} }, ...{ 'onOpen': {} }, ...{ 'onClose': {} }, ref: ("field_select_ref"), modelValue: ((__VLS_ctx.computedModelValue)), ...(__VLS_ctx.tagBind), }));
713
- const __VLS_9 = __VLS_8({ ...{ 'onTag': {} }, ...{ 'onSearchChange': {} }, ...{ 'onOpen': {} }, ...{ 'onClose': {} }, ref: ("field_select_ref"), modelValue: ((__VLS_ctx.computedModelValue)), ...(__VLS_ctx.tagBind), }, ...__VLS_functionalComponentArgsRest(__VLS_8));
714
- // @ts-ignore navigation for `const field_select_ref = ref()`
715
- __VLS_ctx.field_select_ref;
716
- var __VLS_13 = {};
717
- let __VLS_14;
718
- const __VLS_15 = {
719
- onTag: (__VLS_ctx.handleTag)
720
- };
721
- const __VLS_16 = {
722
- onSearchChange: (__VLS_ctx.handleSearchChange)
723
- };
724
- const __VLS_17 = {
725
- onOpen: (__VLS_ctx.handleOpen)
726
- };
727
- const __VLS_18 = {
728
- onClose: (__VLS_ctx.handleClose)
729
- };
730
- let __VLS_10;
731
- let __VLS_11;
732
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
733
- {
734
- const { singleLabel: __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
735
- const [{ option }] = __VLS_getSlotParams(__VLS_thisSlot);
736
- if (props.optionWithPreview) {
737
- const __VLS_19 = __VLS_resolvedLocalAndGlobalComponents.McPreview;
738
- /** @type { [typeof __VLS_components.McPreview, typeof __VLS_components.mcPreview, typeof __VLS_components.McPreview, typeof __VLS_components.mcPreview, ] } */
739
- // @ts-ignore
740
- const __VLS_20 = __VLS_asFunctionalComponent(__VLS_19, new __VLS_19({ ...{ class: ("option__desc") }, size: ((__VLS_ctx.PreviewSizes.L)), }));
741
- const __VLS_21 = __VLS_20({ ...{ class: ("option__desc") }, size: ((__VLS_ctx.PreviewSizes.L)), }, ...__VLS_functionalComponentArgsRest(__VLS_20));
742
- if (!!option.icon) {
743
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
744
- {
745
- const { left: __VLS_thisSlot } = __VLS_nonNullable(__VLS_24.slots);
746
- const __VLS_25 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
747
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
748
- // @ts-ignore
749
- const __VLS_26 = __VLS_asFunctionalComponent(__VLS_25, new __VLS_25({ name: ((option.icon)), size: ("400"), }));
750
- const __VLS_27 = __VLS_26({ name: ((option.icon)), size: ("400"), }, ...__VLS_functionalComponentArgsRest(__VLS_26));
751
- }
752
- }
753
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
754
- {
755
- const { top: __VLS_thisSlot } = __VLS_nonNullable(__VLS_24.slots);
756
- const __VLS_31 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
757
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
758
- // @ts-ignore
759
- const __VLS_32 = __VLS_asFunctionalComponent(__VLS_31, new __VLS_31({ weight: ((__VLS_ctx.Weights.SemiBold)), htmlData: ((option[props.titleField])), }));
760
- const __VLS_33 = __VLS_32({ weight: ((__VLS_ctx.Weights.SemiBold)), htmlData: ((option[props.titleField])), }, ...__VLS_functionalComponentArgsRest(__VLS_32));
761
- }
762
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
763
- {
764
- const { right: __VLS_thisSlot } = __VLS_nonNullable(__VLS_24.slots);
765
- var __VLS_37 = {};
766
- }
767
- if (!!option.text) {
768
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
769
- {
770
- const { bottom: __VLS_thisSlot } = __VLS_nonNullable(__VLS_24.slots);
771
- const __VLS_38 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
772
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
773
- // @ts-ignore
774
- const __VLS_39 = __VLS_asFunctionalComponent(__VLS_38, new __VLS_38({ color: ("gray"), }));
775
- const __VLS_40 = __VLS_39({ color: ("gray"), }, ...__VLS_functionalComponentArgsRest(__VLS_39));
776
- (option.text);
777
- __VLS_nonNullable(__VLS_43.slots).default;
778
- var __VLS_43;
779
- }
780
- }
781
- var __VLS_24;
782
- }
783
- else {
784
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-field-select__single-label") }, });
785
- if (__VLS_ctx.hasPrepend) {
786
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-field-select__prepend") }, });
787
- if (__VLS_ctx.avatar) {
788
- const __VLS_44 = __VLS_resolvedLocalAndGlobalComponents.McAvatar;
789
- /** @type { [typeof __VLS_components.McAvatar, typeof __VLS_components.mcAvatar, ] } */
790
- // @ts-ignore
791
- const __VLS_45 = __VLS_asFunctionalComponent(__VLS_44, new __VLS_44({ src: ((__VLS_ctx.avatar)), }));
792
- const __VLS_46 = __VLS_45({ src: ((__VLS_ctx.avatar)), }, ...__VLS_functionalComponentArgsRest(__VLS_45));
793
- }
794
- else {
795
- const __VLS_50 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
796
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
797
- // @ts-ignore
798
- const __VLS_51 = __VLS_asFunctionalComponent(__VLS_50, new __VLS_50({ name: ((props.icon)), }));
799
- const __VLS_52 = __VLS_51({ name: ((props.icon)), }, ...__VLS_functionalComponentArgsRest(__VLS_51));
800
- }
801
- }
802
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-field-select__label-text") }, ...{ class: ((__VLS_ctx.hasPrepend ? 'mc-field-select__label-text--indent-left' : '')) }, });
803
- (option ? option[props.titleField] : __VLS_ctx.placeholder);
804
- }
805
- }
806
- if (__VLS_ctx.optionsTooltip || props.optionWithPreview) {
807
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
808
- {
809
- const { option: __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
810
- const [{ option }] = __VLS_getSlotParams(__VLS_thisSlot);
811
- if (props.optionWithPreview) {
812
- const __VLS_56 = __VLS_resolvedLocalAndGlobalComponents.McPreview;
813
- /** @type { [typeof __VLS_components.McPreview, typeof __VLS_components.mcPreview, typeof __VLS_components.McPreview, typeof __VLS_components.mcPreview, ] } */
814
- // @ts-ignore
815
- const __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({ ...{ class: ("option__desc") }, size: ((__VLS_ctx.PreviewSizes.L)), }));
816
- const __VLS_58 = __VLS_57({ ...{ class: ("option__desc") }, size: ((__VLS_ctx.PreviewSizes.L)), }, ...__VLS_functionalComponentArgsRest(__VLS_57));
817
- if (!!option.icon) {
818
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
819
- {
820
- const { left: __VLS_thisSlot } = __VLS_nonNullable(__VLS_61.slots);
821
- const __VLS_62 = __VLS_resolvedLocalAndGlobalComponents.McSvgIcon;
822
- /** @type { [typeof __VLS_components.McSvgIcon, typeof __VLS_components.mcSvgIcon, ] } */
823
- // @ts-ignore
824
- const __VLS_63 = __VLS_asFunctionalComponent(__VLS_62, new __VLS_62({ name: ((option.icon)), size: ("400"), }));
825
- const __VLS_64 = __VLS_63({ name: ((option.icon)), size: ("400"), }, ...__VLS_functionalComponentArgsRest(__VLS_63));
826
- }
827
- }
828
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
829
- {
830
- const { top: __VLS_thisSlot } = __VLS_nonNullable(__VLS_61.slots);
831
- const __VLS_68 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
832
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
833
- // @ts-ignore
834
- const __VLS_69 = __VLS_asFunctionalComponent(__VLS_68, new __VLS_68({ weight: ((__VLS_ctx.Weights.SemiBold)), htmlData: ((option[props.titleField])), }));
835
- const __VLS_70 = __VLS_69({ weight: ((__VLS_ctx.Weights.SemiBold)), htmlData: ((option[props.titleField])), }, ...__VLS_functionalComponentArgsRest(__VLS_69));
836
- }
837
- if (!!option.text) {
838
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
839
- {
840
- const { bottom: __VLS_thisSlot } = __VLS_nonNullable(__VLS_61.slots);
841
- const __VLS_74 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
842
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
843
- // @ts-ignore
844
- const __VLS_75 = __VLS_asFunctionalComponent(__VLS_74, new __VLS_74({ color: ("gray"), }));
845
- const __VLS_76 = __VLS_75({ color: ("gray"), }, ...__VLS_functionalComponentArgsRest(__VLS_75));
846
- (option.text);
847
- __VLS_nonNullable(__VLS_79.slots).default;
848
- var __VLS_79;
849
- }
850
- }
851
- var __VLS_61;
852
- }
853
- else {
854
- const __VLS_80 = __VLS_resolvedLocalAndGlobalComponents.McTooltip;
855
- /** @type { [typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, typeof __VLS_components.McTooltip, typeof __VLS_components.mcTooltip, ] } */
856
- // @ts-ignore
857
- const __VLS_81 = __VLS_asFunctionalComponent(__VLS_80, new __VLS_80({ ...{ class: ("mc-field-select__options-tooltip-target") }, maxWidth: ("m"), color: ("black"), placement: ((__VLS_ctx.TooltipPositions.Top)), content: ((option[props.titleField])), }));
858
- const __VLS_82 = __VLS_81({ ...{ class: ("mc-field-select__options-tooltip-target") }, maxWidth: ("m"), color: ("black"), placement: ((__VLS_ctx.TooltipPositions.Top)), content: ((option[props.titleField])), }, ...__VLS_functionalComponentArgsRest(__VLS_81));
859
- __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
860
- (option[props.titleField]);
861
- __VLS_nonNullable(__VLS_85.slots).default;
862
- var __VLS_85;
863
- }
864
- }
865
- }
866
- __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
867
- {
868
- const { noResult: __VLS_thisSlot } = __VLS_nonNullable(__VLS_12.slots);
869
- var __VLS_86 = {};
870
- __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
871
- (props.noResultsText);
872
- __VLS_nonNullable(__VLS_12.slots).default;
873
- }
874
- var __VLS_12;
875
- if (__VLS_ctx.fieldErrors.errorText.value || props.helpText || __VLS_ctx.$slots.footer) {
876
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("mc-field-select__footer") }, });
877
- if (__VLS_ctx.fieldErrors.errorText.value) {
878
- const __VLS_87 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
879
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
880
- // @ts-ignore
881
- const __VLS_88 = __VLS_asFunctionalComponent(__VLS_87, new __VLS_87({ tagName: ("div"), color: ("red"), variation: ((__VLS_ctx.TitleVariations.Overline)), maxWidth: ("100%"), }));
882
- const __VLS_89 = __VLS_88({ tagName: ("div"), color: ("red"), variation: ((__VLS_ctx.TitleVariations.Overline)), maxWidth: ("100%"), }, ...__VLS_functionalComponentArgsRest(__VLS_88));
883
- (__VLS_ctx.fieldErrors.errorText.value);
884
- __VLS_nonNullable(__VLS_92.slots).default;
885
- var __VLS_92;
886
- }
887
- if (__VLS_ctx.fieldErrors.errorText.value) {
888
- __VLS_elementAsFunction(__VLS_intrinsicElements.br)({});
889
- }
890
- var __VLS_93 = {};
891
- if (props.helpText) {
892
- const __VLS_94 = __VLS_resolvedLocalAndGlobalComponents.McTitle;
893
- /** @type { [typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, typeof __VLS_components.McTitle, typeof __VLS_components.mcTitle, ] } */
894
- // @ts-ignore
895
- const __VLS_95 = __VLS_asFunctionalComponent(__VLS_94, new __VLS_94({ tagName: ("div"), variation: ((__VLS_ctx.TitleVariations.Overline)), color: ("gray"), maxWidth: ("100%"), }));
896
- const __VLS_96 = __VLS_95({ tagName: ("div"), variation: ((__VLS_ctx.TitleVariations.Overline)), color: ("gray"), maxWidth: ("100%"), }, ...__VLS_functionalComponentArgsRest(__VLS_95));
897
- (props.helpText);
898
- __VLS_nonNullable(__VLS_99.slots).default;
899
- var __VLS_99;
900
- }
901
- }
902
- __VLS_styleScopedClasses['mc-field-select__header'];
903
- __VLS_styleScopedClasses['mc-field-select__main'];
904
- __VLS_styleScopedClasses['option__desc'];
905
- __VLS_styleScopedClasses['mc-field-select__single-label'];
906
- __VLS_styleScopedClasses['mc-field-select__prepend'];
907
- __VLS_styleScopedClasses['mc-field-select__label-text'];
908
- __VLS_styleScopedClasses['option__desc'];
909
- __VLS_styleScopedClasses['mc-field-select__options-tooltip-target'];
910
- __VLS_styleScopedClasses['mc-field-select__footer'];
911
- var __VLS_slots;
912
- var __VLS_inheritedAttrs;
913
- const __VLS_refs = {
914
- "field_select_wrapper_ref": __VLS_nativeElements['div'],
915
- "field_select_ref": __VLS_13,
916
- };
917
- var $refs;
918
- var $el;
919
- return {
920
- attrs: {},
921
- slots: __VLS_slots,
922
- refs: $refs,
923
- rootEl: $el,
924
- };
925
- }
926
- ;
927
- const __VLS_self = (await import('vue')).defineComponent({
928
- setup() {
929
- return {
930
- MultiSelect: MultiSelect,
931
- McTitle: McTitle,
932
- McSvgIcon: McSvgIcon,
933
- McAvatar: McAvatar,
934
- McTooltip: McTooltip,
935
- McPreview: McPreview,
936
- PreviewSizes: PreviewSizes,
937
- TitleVariations: TitleVariations,
938
- TooltipPositions: TooltipPositions,
939
- Weights: Weights,
940
- fieldErrors: fieldErrors,
941
- field_select_ref: field_select_ref,
942
- field_select_wrapper_ref: field_select_wrapper_ref,
943
- hasTitle: hasTitle,
944
- hasPrepend: hasPrepend,
945
- tagBind: tagBind,
946
- classes: classes,
947
- computedTitle: computedTitle,
948
- styles: styles,
949
- computedModelValue: computedModelValue,
950
- handleTag: handleTag,
951
- handleSearchChange: handleSearchChange,
952
- handleOpen: handleOpen,
953
- handleClose: handleClose,
954
- };
955
- },
956
- __typeEmits: {},
957
- props: {
958
- /**
959
- * Значение
960
- */
961
- modelValue: {
962
- type: [Array, String, Number]
963
- },
964
- /**
965
- * Заголовок поля:
966
- *
967
- */
968
- title: {
969
- type: String,
970
- default: null
971
- },
972
- /**
973
- * Вспомогательный текст под инпутом:
974
- *
975
- */
976
- helpText: {
977
- type: String,
978
- default: null
979
- },
980
- /**
981
- * Массив элементов
982
- * выпадающего списка
983
- * [
984
- * {
985
- * name: String,
986
- * value: String | Number,
987
- * text: String - доступен, если optionWithPreview=true
988
- * icon: String - доступен, если optionWithPreview=true
989
- * }
990
- * ]
991
- */
992
- options: {
993
- type: Array,
994
- default: () => []
995
- },
996
- /**
997
- * Выполняется ли поиск из списка
998
- * при вводе в инпут
999
- */
1000
- searchable: {
1001
- type: Boolean,
1002
- default: true
1003
- },
1004
- /**
1005
- * Множественный выбор
1006
- */
1007
- multiple: {
1008
- type: Boolean,
1009
- default: false
1010
- },
1011
- /**
1012
- * Скрывать из списка
1013
- * выбранные элементы
1014
- */
1015
- hideSelected: {
1016
- type: Boolean,
1017
- default: true
1018
- },
1019
- /**
1020
- * Допустимо ли
1021
- * пустое значение
1022
- */
1023
- allowEmpty: {
1024
- type: Boolean,
1025
- default: true
1026
- },
1027
- /**
1028
- * Отключенное состояние
1029
- */
1030
- disabled: {
1031
- type: Boolean,
1032
- default: false
1033
- },
1034
- /**
1035
- * Ссылка на аватар/картинку
1036
- * в начале label
1037
- */
1038
- avatar: {
1039
- type: String,
1040
- default: null
1041
- },
1042
- /**
1043
- * Имя иконки
1044
- * в начале label
1045
- */
1046
- icon: {
1047
- type: String,
1048
- default: null
1049
- },
1050
- /**
1051
- * Цвет фона
1052
- */
1053
- backgroundColor: {
1054
- type: String,
1055
- default: null
1056
- },
1057
- /**
1058
- * placeholder
1059
- */
1060
- placeholder: {
1061
- type: String,
1062
- default: ''
1063
- },
1064
- /**
1065
- * Направление открытия списка:
1066
- * `above (top), below (bottom), auto`
1067
- */
1068
- openDirection: {
1069
- type: String,
1070
- default: 'auto'
1071
- },
1072
- /**
1073
- * Селект в режиме тэгирования, когда можно вводить свои значения и добавлять их в опции
1074
- * */
1075
- taggable: {
1076
- type: Boolean,
1077
- default: false
1078
- },
1079
- /**
1080
- * Помечать в списке выбранные
1081
- * элементы
1082
- */
1083
- showLabels: {
1084
- type: Boolean,
1085
- default: false
1086
- },
1087
- /**
1088
- * Поиск по опциям
1089
- * */
1090
- internalSearch: {
1091
- type: Boolean,
1092
- default: true
1093
- },
1094
- /**
1095
- * Ошибки
1096
- */
1097
- errors: {
1098
- type: Array,
1099
- default: null
1100
- },
1101
- /**
1102
- * Name
1103
- */
1104
- name: {
1105
- type: String,
1106
- required: true
1107
- },
1108
- /**
1109
- * Если нужен тултип
1110
- * над элементами списка
1111
- */
1112
- optionsTooltip: {
1113
- type: Boolean,
1114
- default: false
1115
- },
1116
- /**
1117
- * При группировке опций, дает возвожность выбрать сразу группу
1118
- * */
1119
- groupSelect: {
1120
- type: Boolean,
1121
- default: false
1122
- },
1123
- required: {
1124
- type: Boolean,
1125
- default: false
1126
- },
1127
- /**
1128
- * Если айтемам в селекте нужны превью с иконками и описанием
1129
- */
1130
- optionWithPreview: {
1131
- type: Boolean,
1132
- default: false
1133
- },
1134
- tabindex: {
1135
- type: [String, Number],
1136
- default: null
1137
- },
1138
- /**
1139
- * Если нужно ограничить максимальную высоту блока с выбранными элементами
1140
- */
1141
- maxHeight: {
1142
- type: String,
1143
- default: null
1144
- },
1145
- /**
1146
- * Рендерить ли выпадающий список абсолютно, что бы помещался в ограниченном пространстве
1147
- * */
1148
- renderAbsoluteList: {
1149
- type: Boolean,
1150
- default: false
1151
- },
1152
- /**
1153
- * Для какого языка селект
1154
- */
1155
- locale: {
1156
- type: String,
1157
- default: null
1158
- },
1159
- /**
1160
- * Текст для пустого селекта, когда неичего не найдено
1161
- */
1162
- noResultsText: {
1163
- type: String,
1164
- default: 'No results'
1165
- },
1166
- /**
1167
- * Показывать ли состояние лоадинга
1168
- */
1169
- loading: {
1170
- type: Boolean,
1171
- default: false
1172
- },
1173
- dir: {
1174
- type: String,
1175
- default: Directions.Ltr
1176
- },
1177
- /**
1178
- * На какое после смотреть что бы считать его заголовком строки
1179
- * */
1180
- titleField: {
1181
- type: String,
1182
- default: 'name'
1183
- },
1184
- /**
1185
- * На какое после смотреть что бы считать его значением строки
1186
- * */
1187
- valueField: {
1188
- type: String,
1189
- default: 'value'
1190
- }
1191
- },
1192
- });
1193
- const __VLS_component = (await import('vue')).defineComponent({
1194
- setup() {
1195
- return {};
1196
- },
1197
- __typeEmits: {},
1198
- props: {
1199
- /**
1200
- * Значение
1201
- */
1202
- modelValue: {
1203
- type: [Array, String, Number]
1204
- },
1205
- /**
1206
- * Заголовок поля:
1207
- *
1208
- */
1209
- title: {
1210
- type: String,
1211
- default: null
1212
- },
1213
- /**
1214
- * Вспомогательный текст под инпутом:
1215
- *
1216
- */
1217
- helpText: {
1218
- type: String,
1219
- default: null
1220
- },
1221
- /**
1222
- * Массив элементов
1223
- * выпадающего списка
1224
- * [
1225
- * {
1226
- * name: String,
1227
- * value: String | Number,
1228
- * text: String - доступен, если optionWithPreview=true
1229
- * icon: String - доступен, если optionWithPreview=true
1230
- * }
1231
- * ]
1232
- */
1233
- options: {
1234
- type: Array,
1235
- default: () => []
1236
- },
1237
- /**
1238
- * Выполняется ли поиск из списка
1239
- * при вводе в инпут
1240
- */
1241
- searchable: {
1242
- type: Boolean,
1243
- default: true
1244
- },
1245
- /**
1246
- * Множественный выбор
1247
- */
1248
- multiple: {
1249
- type: Boolean,
1250
- default: false
1251
- },
1252
- /**
1253
- * Скрывать из списка
1254
- * выбранные элементы
1255
- */
1256
- hideSelected: {
1257
- type: Boolean,
1258
- default: true
1259
- },
1260
- /**
1261
- * Допустимо ли
1262
- * пустое значение
1263
- */
1264
- allowEmpty: {
1265
- type: Boolean,
1266
- default: true
1267
- },
1268
- /**
1269
- * Отключенное состояние
1270
- */
1271
- disabled: {
1272
- type: Boolean,
1273
- default: false
1274
- },
1275
- /**
1276
- * Ссылка на аватар/картинку
1277
- * в начале label
1278
- */
1279
- avatar: {
1280
- type: String,
1281
- default: null
1282
- },
1283
- /**
1284
- * Имя иконки
1285
- * в начале label
1286
- */
1287
- icon: {
1288
- type: String,
1289
- default: null
1290
- },
1291
- /**
1292
- * Цвет фона
1293
- */
1294
- backgroundColor: {
1295
- type: String,
1296
- default: null
1297
- },
1298
- /**
1299
- * placeholder
1300
- */
1301
- placeholder: {
1302
- type: String,
1303
- default: ''
1304
- },
1305
- /**
1306
- * Направление открытия списка:
1307
- * `above (top), below (bottom), auto`
1308
- */
1309
- openDirection: {
1310
- type: String,
1311
- default: 'auto'
1312
- },
1313
- /**
1314
- * Селект в режиме тэгирования, когда можно вводить свои значения и добавлять их в опции
1315
- * */
1316
- taggable: {
1317
- type: Boolean,
1318
- default: false
1319
- },
1320
- /**
1321
- * Помечать в списке выбранные
1322
- * элементы
1323
- */
1324
- showLabels: {
1325
- type: Boolean,
1326
- default: false
1327
- },
1328
- /**
1329
- * Поиск по опциям
1330
- * */
1331
- internalSearch: {
1332
- type: Boolean,
1333
- default: true
1334
- },
1335
- /**
1336
- * Ошибки
1337
- */
1338
- errors: {
1339
- type: Array,
1340
- default: null
1341
- },
1342
- /**
1343
- * Name
1344
- */
1345
- name: {
1346
- type: String,
1347
- required: true
1348
- },
1349
- /**
1350
- * Если нужен тултип
1351
- * над элементами списка
1352
- */
1353
- optionsTooltip: {
1354
- type: Boolean,
1355
- default: false
1356
- },
1357
- /**
1358
- * При группировке опций, дает возвожность выбрать сразу группу
1359
- * */
1360
- groupSelect: {
1361
- type: Boolean,
1362
- default: false
1363
- },
1364
- required: {
1365
- type: Boolean,
1366
- default: false
1367
- },
1368
- /**
1369
- * Если айтемам в селекте нужны превью с иконками и описанием
1370
- */
1371
- optionWithPreview: {
1372
- type: Boolean,
1373
- default: false
1374
- },
1375
- tabindex: {
1376
- type: [String, Number],
1377
- default: null
1378
- },
1379
- /**
1380
- * Если нужно ограничить максимальную высоту блока с выбранными элементами
1381
- */
1382
- maxHeight: {
1383
- type: String,
1384
- default: null
1385
- },
1386
- /**
1387
- * Рендерить ли выпадающий список абсолютно, что бы помещался в ограниченном пространстве
1388
- * */
1389
- renderAbsoluteList: {
1390
- type: Boolean,
1391
- default: false
1392
- },
1393
- /**
1394
- * Для какого языка селект
1395
- */
1396
- locale: {
1397
- type: String,
1398
- default: null
1399
- },
1400
- /**
1401
- * Текст для пустого селекта, когда неичего не найдено
1402
- */
1403
- noResultsText: {
1404
- type: String,
1405
- default: 'No results'
1406
- },
1407
- /**
1408
- * Показывать ли состояние лоадинга
1409
- */
1410
- loading: {
1411
- type: Boolean,
1412
- default: false
1413
- },
1414
- dir: {
1415
- type: String,
1416
- default: Directions.Ltr
1417
- },
1418
- /**
1419
- * На какое после смотреть что бы считать его заголовком строки
1420
- * */
1421
- titleField: {
1422
- type: String,
1423
- default: 'name'
1424
- },
1425
- /**
1426
- * На какое после смотреть что бы считать его значением строки
1427
- * */
1428
- valueField: {
1429
- type: String,
1430
- default: 'value'
1431
- }
1432
- },
1433
- __typeEl: {},
1434
- });
1435
- export default {};
1436
- ; /* PartiallyEnd: #4569/main.vue */