@topvisor/ui 1.0.42-date.2 → 1.0.42-dev.2

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 (992) hide show
  1. package/.env_example +1 -0
  2. package/.gitlab-ci/.gitlab-ci.yml +27 -0
  3. package/.gitlab-ci/README.md +59 -0
  4. package/.gitlab-ci/common/install.yml +21 -0
  5. package/.gitlab-ci/common/lint.yml +11 -0
  6. package/.gitlab-ci/common/redmine.yml +12 -0
  7. package/.gitlab-ci/common/version.yml +34 -0
  8. package/.gitlab-ci/storybook/build.yml +18 -0
  9. package/.gitlab-ci/storybook/deploy.yml +50 -0
  10. package/.gitlab-ci/ui/build.yml +12 -0
  11. package/.gitlab-ci/ui/deploy-dist.yml +89 -0
  12. package/.gitlab-ci/ui/deploy.yml +19 -0
  13. package/.idea/.gitignore +11 -0
  14. package/.idea/codeStyles/Project.xml +205 -0
  15. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  16. package/.idea/externalDependencies.xml +6 -0
  17. package/.idea/icon.svg +5 -0
  18. package/.idea/inspectionProfiles/Disabled.xml +824 -0
  19. package/.idea/inspectionProfiles/Project_Default.xml +33 -0
  20. package/.idea/modules.xml +8 -0
  21. package/.idea/php.xml +19 -0
  22. package/.idea/ui.iml +8 -0
  23. package/.idea/vcs.xml +6 -0
  24. package/.storybook/TopTheme.ts +115 -0
  25. package/.storybook/TopThemeManager.ts +53 -0
  26. package/.storybook/argsArrayDecorator.ts +120 -0
  27. package/.storybook/main.ts +78 -0
  28. package/.storybook/manager.ts +25 -0
  29. package/.storybook/preview-head.html +21 -0
  30. package/.storybook/preview.ts +50 -0
  31. package/.storybook/vue/coreDecorator.ts +86 -0
  32. package/.storybook/vue/vModelDecorator.ts +46 -0
  33. package/.versionrc.json +16 -0
  34. package/.vscode/extensions.json +11 -0
  35. package/.vscode/keybindings.example.json +121 -0
  36. package/.vscode/settings.json +45 -0
  37. package/CHANGELOG.md +428 -0
  38. package/NPM.md +25 -0
  39. package/PUBLISH.md +88 -0
  40. package/README.md +37 -59
  41. package/STORYBOOK.md +41 -0
  42. package/USE_IN_PROJECT.md +32 -0
  43. package/package.json +63 -2
  44. package/public/README.md +82 -0
  45. package/rollup.config.ts +38 -0
  46. package/scripts/afterBuild.sh +13 -0
  47. package/scripts/cssModules.ts +39 -0
  48. package/scripts/genDocs.sh +20 -0
  49. package/scripts/plugin/amdFix.ts +83 -0
  50. package/scripts/plugin/autoloadCSS.ts +155 -0
  51. package/src/CHANGELOG.md.mdx +4 -0
  52. package/src/components/charts/charts.ts +8 -0
  53. package/src/components/charts/miniChart/miniChart.stories.ts +66 -0
  54. package/src/components/charts/miniChart/miniChart.vue +158 -0
  55. package/src/components/charts/miniChart/stories/README.md +9 -0
  56. package/src/components/charts/miniChart/stories/dummy.ts +25 -0
  57. package/src/components/charts/miniChart/styles/miniChart.css +87 -0
  58. package/src/components/charts/miniChart/types.ts +110 -0
  59. package/src/components/charts/miniChart/utils/consts.ts +9 -0
  60. package/src/components/charts/miniCharts/miniCharts.stories.ts +75 -0
  61. package/src/components/charts/miniCharts/miniCharts.ts +24 -0
  62. package/src/components/charts/miniCharts/miniCharts.vue +124 -0
  63. package/src/components/charts/miniCharts/stories/README.md +18 -0
  64. package/src/components/charts/miniCharts/stories/dummy.ts +70 -0
  65. package/src/components/charts/miniCharts/stories/overview.vue +139 -0
  66. package/src/components/charts/miniCharts/styles/miniCharts.css +32 -0
  67. package/src/components/component.ts +130 -0
  68. package/src/components/core/core.mdx +7 -0
  69. package/src/components/core/notice/item/item.vue +145 -0
  70. package/src/components/core/notice/item/style.css +70 -0
  71. package/src/components/core/notice/item/types.ts +74 -0
  72. package/src/components/core/notice/notice.stories.ts +104 -0
  73. package/src/components/core/notice/notice.vue +69 -0
  74. package/src/components/core/notice/stories/README.md +34 -0
  75. package/src/components/core/notice/utils.ts +115 -0
  76. package/src/components/dialog/dialog/Dialog (code).mdx +61 -0
  77. package/src/components/dialog/dialog/composables/asyncDialogHandle.ts +99 -0
  78. package/src/components/dialog/dialog/composables/dialogHandle.ts +178 -0
  79. package/src/components/dialog/dialog/composables/types.ts +12 -0
  80. package/src/components/dialog/dialog/composables/utils.ts +39 -0
  81. package/src/components/dialog/dialog/dialog.stories.ts +82 -0
  82. package/src/components/dialog/dialog/dialog.vue +74 -0
  83. package/src/components/dialog/dialog/dialogs/dialogs.vue +61 -0
  84. package/src/components/dialog/dialog/page/page.vue +86 -0
  85. package/src/components/dialog/dialog/page/types.ts +84 -0
  86. package/src/components/dialog/dialog/page.stories.ts +26 -0
  87. package/src/components/dialog/dialog/pageComponent/pageComponent.vue +57 -0
  88. package/src/components/dialog/dialog/pageComponent/types.ts +21 -0
  89. package/src/components/dialog/dialog/pageComponent.stories.ts +26 -0
  90. package/src/components/dialog/dialog/stories/README.md +117 -0
  91. package/src/components/dialog/dialog/stories/autoload.ts +12 -0
  92. package/src/components/dialog/dialog/stories/dialog_example/dialog_example.vue +77 -0
  93. package/src/components/dialog/dialog/stories/dialog_example/pages/async.vue +57 -0
  94. package/src/components/dialog/dialog/stories/dialog_example/pages/default.vue +56 -0
  95. package/src/components/dialog/dialog/stories/dialog_example/pages/headerButtons.vue +56 -0
  96. package/src/components/dialog/dialog/stories/dialog_example/pages/utils.ts +26 -0
  97. package/src/components/dialog/dialog/stories/dialog_example/pages/withoutCache.vue +56 -0
  98. package/src/components/dialog/dialog/stories/page/README.md +24 -0
  99. package/src/components/dialog/dialog/stories/pageComponent/README.md +12 -0
  100. package/src/components/dialog/dialog/style/dialog.css +319 -0
  101. package/src/components/dialog/dialog/style/dialog.m.css +40 -0
  102. package/src/components/dialog/dialog/style/dialog.pc.css +73 -0
  103. package/src/components/dialog/dialog/style/modern/dialog.css +12 -0
  104. package/src/components/dialog/dialog/style/modern/dialog.pc.css +3 -0
  105. package/src/components/dialog/dialog/types.ts +69 -0
  106. package/src/components/dialog/dialog.ts +7 -0
  107. package/src/components/dialog/lib/types.ts +42 -0
  108. package/src/components/dialog/lib/utils.globalEvents.ts +214 -0
  109. package/src/components/dialog/lib/utils.ts +656 -0
  110. package/src/components/dialog/lib/worker.ts +362 -0
  111. package/src/components/extra/extra.ts +5 -0
  112. package/src/components/extra/rive/rive.vue +56 -0
  113. package/src/components/extra/rive/rives.stories.ts +65 -0
  114. package/src/components/extra/rive/stories/README.md +40 -0
  115. package/src/components/extra/rive/stories/nope.riv +0 -0
  116. package/src/components/extra/rive/stories/sadness.riv +0 -0
  117. package/src/components/extra/rive/types.ts +8 -0
  118. package/src/components/forms/README.mdx +10 -0
  119. package/src/components/forms/avatar/avatar.stories.ts +37 -0
  120. package/src/components/forms/avatar/avatar.vue +77 -0
  121. package/src/components/forms/avatar/stories/overview.vue +30 -0
  122. package/src/components/forms/avatar/types.ts +38 -0
  123. package/src/components/forms/button/button.stories.ts +117 -0
  124. package/src/components/forms/button/button.vue +111 -0
  125. package/src/components/forms/button/stories/README.md +9 -0
  126. package/src/components/forms/button/stories/overview.vue +36 -0
  127. package/src/components/forms/button/style/button.css +146 -0
  128. package/src/components/forms/button/style/style-outline.css +129 -0
  129. package/src/components/forms/button/style/style-soft.css +89 -0
  130. package/src/components/forms/button/style/style-transparent.css +39 -0
  131. package/src/components/forms/button/types.ts +59 -0
  132. package/src/components/forms/caption/caption.stories.ts +108 -0
  133. package/src/components/forms/caption/caption.vue +29 -0
  134. package/src/components/forms/caption/types.ts +10 -0
  135. package/src/components/forms/checkbox/checkbox.stories.ts +32 -0
  136. package/src/components/forms/checkbox/checkbox.vue +115 -0
  137. package/src/components/forms/checkbox/stories/overview.vue +171 -0
  138. package/src/components/forms/checkbox/types.ts +21 -0
  139. package/src/components/forms/controlLabel/controlLabel.stories.ts +31 -0
  140. package/src/components/forms/controlLabel/controlLabel.vue +54 -0
  141. package/src/components/forms/controlLabel/types.ts +4 -0
  142. package/src/components/forms/forms.ts +44 -0
  143. package/src/components/forms/hint/hint.stories.ts +40 -0
  144. package/src/components/forms/hint/hint.vue +32 -0
  145. package/src/components/forms/hint/types.ts +8 -0
  146. package/src/components/forms/input/input.stories.ts +31 -0
  147. package/src/components/forms/input/input.vue +178 -0
  148. package/src/components/forms/input/stories/overview.vue +63 -0
  149. package/src/components/forms/input/types.ts +31 -0
  150. package/src/components/forms/inputDate/datepicker.css +246 -0
  151. package/src/components/forms/inputDate/datepicker.ts +101 -0
  152. package/src/components/forms/inputDate/inputDate.stories.ts +40 -0
  153. package/src/components/forms/inputDate/inputDate.vue +133 -0
  154. package/src/components/forms/inputDate/stories/overview.vue +35 -0
  155. package/src/components/forms/inputDate/types.ts +1 -0
  156. package/src/components/forms/inputRange/inputRange.stories.ts +52 -0
  157. package/src/components/forms/inputRange/inputRange.vue +39 -0
  158. package/src/components/forms/inputRange/stories/overview.vue +129 -0
  159. package/src/components/forms/inputRange/types.ts +3 -0
  160. package/src/components/forms/loadbar/loadbar.stories.ts +22 -0
  161. package/src/components/forms/loadbar/loadbar.vue +37 -0
  162. package/src/components/forms/loadbar/stories/README.md +6 -0
  163. package/src/components/forms/preloader/preloader.stories.ts +46 -0
  164. package/src/components/forms/preloader/preloader.vue +103 -0
  165. package/src/components/forms/preloader/stories/README.md +26 -0
  166. package/src/components/forms/preloader/types.ts +3 -0
  167. package/src/components/forms/radio/radio.stories.ts +33 -0
  168. package/src/components/forms/radio/radio.vue +97 -0
  169. package/src/components/forms/radio/stories/overview.vue +79 -0
  170. package/src/components/forms/radio/types.ts +15 -0
  171. package/src/components/forms/select/select.stories.ts +68 -0
  172. package/src/components/forms/select/select.vue +299 -0
  173. package/src/components/forms/select/stories/exampleOptions.ts +61 -0
  174. package/src/components/forms/select/stories/overview.vue +72 -0
  175. package/src/components/forms/select/types.ts +68 -0
  176. package/src/components/forms/switcher/stories/overview.vue +139 -0
  177. package/src/components/forms/switcher/switcher.stories.ts +32 -0
  178. package/src/components/forms/switcher/switcher.vue +118 -0
  179. package/src/components/forms/switcher/types.ts +22 -0
  180. package/src/components/forms/textarea/stories/overview.vue +89 -0
  181. package/src/components/forms/textarea/textarea.stories.ts +33 -0
  182. package/src/components/forms/textarea/textarea.vue +143 -0
  183. package/src/components/forms/textarea/types.ts +52 -0
  184. package/src/components/formsExt/README.mdx +5 -0
  185. package/src/components/formsExt/checkboxGroup/checkboxGroup.stories.ts +36 -0
  186. package/src/components/formsExt/checkboxGroup/checkboxGroup.vue +159 -0
  187. package/src/components/formsExt/checkboxGroup/stories/example.ts +42 -0
  188. package/src/components/formsExt/checkboxGroup/stories/overview.vue +36 -0
  189. package/src/components/formsExt/checkboxGroup/types.ts +23 -0
  190. package/src/components/formsExt/editArea/editArea.stories.ts +40 -0
  191. package/src/components/formsExt/editArea/editArea.vue +194 -0
  192. package/src/components/formsExt/editArea/stories/README.md +21 -0
  193. package/src/components/formsExt/editArea/stories/overview.vue +67 -0
  194. package/src/components/formsExt/editArea/types.ts +41 -0
  195. package/src/components/formsExt/editInput/editInput.stories.ts +35 -0
  196. package/src/components/formsExt/editInput/editInput.vue +54 -0
  197. package/src/components/formsExt/editInput/stories/overview.vue +54 -0
  198. package/src/components/formsExt/editInput/types.ts +20 -0
  199. package/src/components/formsExt/formsExt.ts +19 -0
  200. package/src/components/formsExt/info/info.stories.ts +34 -0
  201. package/src/components/formsExt/info/info.vue +84 -0
  202. package/src/components/formsExt/info/stories/overview.vue +29 -0
  203. package/src/components/formsExt/info/types.ts +25 -0
  204. package/src/components/formsExt/menu/menu.stories.ts +58 -0
  205. package/src/components/formsExt/menu/menu.vue +324 -0
  206. package/src/components/formsExt/menu/stories/items.ts +18 -0
  207. package/src/components/formsExt/menu/stories/overview.vue +52 -0
  208. package/src/components/formsExt/menu/types.ts +45 -0
  209. package/src/components/formsExt/policy/policy.stories.ts +66 -0
  210. package/src/components/formsExt/policy/policy.vue +75 -0
  211. package/src/components/formsExt/policy/types.ts +11 -0
  212. package/src/components/formsExt/radioGroup/radioGroup.stories.ts +35 -0
  213. package/src/components/formsExt/radioGroup/radioGroup.vue +142 -0
  214. package/src/components/formsExt/radioGroup/stories/example.ts +43 -0
  215. package/src/components/formsExt/radioGroup/stories/overview.vue +35 -0
  216. package/src/components/formsExt/radioGroup/types.ts +27 -0
  217. package/src/components/formsExt/selector2/composables/useAPI.ts +151 -0
  218. package/src/components/formsExt/selector2/composables/useMenu.ts +165 -0
  219. package/src/components/formsExt/selector2/itemMulti.vue +57 -0
  220. package/src/components/formsExt/selector2/selector2.stories.ts +123 -0
  221. package/src/components/formsExt/selector2/selector2.vue +448 -0
  222. package/src/components/formsExt/selector2/stories/README.md +146 -0
  223. package/src/components/formsExt/selector2/stories/dummyAPIRequest.ts +57 -0
  224. package/src/components/formsExt/selector2/stories/overview.vue +95 -0
  225. package/src/components/formsExt/selector2/types.ts +184 -0
  226. package/src/components/formsExt/selector2/utils.ts +22 -0
  227. package/src/components/helpersStories.ts +331 -0
  228. package/src/components/layout/islandRows/islandRows.stories.ts +138 -0
  229. package/src/components/layout/islandRows/islandRows.vue +53 -0
  230. package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue +36 -0
  231. package/src/components/layout/islandRows/islandRowsRow/types.ts +1 -0
  232. package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue +16 -0
  233. package/src/components/layout/islandRows/stories/README.md +8 -0
  234. package/src/components/layout/islandRows/types.ts +11 -0
  235. package/src/components/layout/layout.ts +11 -0
  236. package/src/components/layout/rows/rows.stories.ts +47 -0
  237. package/src/components/layout/rows/rows.vue +46 -0
  238. package/src/components/layout/rows/stories/README.md +10 -0
  239. package/src/components/layout/rows/types.ts +6 -0
  240. package/src/components/popup/alert/alert.stories.ts +70 -0
  241. package/src/components/popup/alert/alert.vue +49 -0
  242. package/src/components/popup/alert/stories/overview.vue +40 -0
  243. package/src/components/popup/alert/types.ts +11 -0
  244. package/src/components/popup/confirm/confirm.stories.ts +74 -0
  245. package/src/components/popup/confirm/confirm.vue +78 -0
  246. package/src/components/popup/confirm/stories/overview.vue +62 -0
  247. package/src/components/popup/confirm/types.ts +26 -0
  248. package/src/components/popup/lib/popup.globalEvents.ts +271 -0
  249. package/src/components/popup/lib/popup.ts +858 -0
  250. package/src/components/popup/lib/worker.globalEvents.ts +101 -0
  251. package/src/components/popup/lib/worker.ts +305 -0
  252. package/src/components/popup/popup/listItem.vue +35 -0
  253. package/src/components/popup/popup/opener.vue +82 -0
  254. package/src/components/popup/popup/popup.stories.ts +73 -0
  255. package/src/components/popup/popup/popup.vue +176 -0
  256. package/src/components/popup/popup/stories/README.md +145 -0
  257. package/src/components/popup/popup/stories/listItems.vue +69 -0
  258. package/src/components/popup/popup/stories/listSubItems.vue +47 -0
  259. package/src/components/popup/popup/stories/overview.vue +224 -0
  260. package/src/components/popup/popup/style/popup.css +355 -0
  261. package/src/components/popup/popup/style/popup.m.css +70 -0
  262. package/src/components/popup/popup/style/popup.pc.css +26 -0
  263. package/src/components/popup/popup/types.ts +131 -0
  264. package/src/components/popup/popup/widgetInput.vue +43 -0
  265. package/src/components/popup/popup.ts +17 -0
  266. package/src/components/popup/prompt/prompt.stories.ts +76 -0
  267. package/src/components/popup/prompt/prompt.vue +87 -0
  268. package/src/components/popup/prompt/stories/overview.vue +50 -0
  269. package/src/components/popup/prompt/types.ts +26 -0
  270. package/src/components/project/project.ts +23 -0
  271. package/src/components/project/selectorCompetitors/composables.ts +20 -0
  272. package/src/components/project/selectorCompetitors/selectorCompetitors.stories.ts +32 -0
  273. package/src/components/project/selectorCompetitors/selectorCompetitors.vue +75 -0
  274. package/src/components/project/selectorCompetitors/stories/README.md +20 -0
  275. package/src/components/project/selectorCompetitors/stories/items.ts +30 -0
  276. package/src/components/project/selectorCompetitors/types.ts +35 -0
  277. package/src/components/project/selectorRegion/composables/compare.ts +87 -0
  278. package/src/components/project/selectorRegion/composables/selectRegion.ts +146 -0
  279. package/src/components/project/selectorRegion/composables/selectSearcher.ts +64 -0
  280. package/src/components/project/selectorRegion/composables/selectorRegion.ts +167 -0
  281. package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue +252 -0
  282. package/src/components/project/selectorRegion/dialog_selectorRegions/style.css +49 -0
  283. package/src/components/project/selectorRegion/dialog_selectorRegions/types.ts +31 -0
  284. package/src/components/project/selectorRegion/selectorRegion.stories.ts +84 -0
  285. package/src/components/project/selectorRegion/selectorRegion.vue +365 -0
  286. package/src/components/project/selectorRegion/stories/README.md +36 -0
  287. package/src/components/project/selectorRegion/stories/searchers.ts +77 -0
  288. package/src/components/project/selectorRegion/styles/searcherColors.css +41 -0
  289. package/src/components/project/selectorRegion/types.ts +206 -0
  290. package/src/components/project/selectorRegion/utils/consts.ts +88 -0
  291. package/src/components/project/selectorRegion/utils/utils.ts +178 -0
  292. package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue +209 -0
  293. package/src/components/project/tagSelector/popupListItem/types.ts +40 -0
  294. package/src/components/project/tagSelector/popupOpener/popupOpener.vue +140 -0
  295. package/src/components/project/tagSelector/popupOpener/types.ts +74 -0
  296. package/src/components/project/tagSelector/stories/README.md +62 -0
  297. package/src/components/project/tagSelector/stories/overview.vue +152 -0
  298. package/src/components/project/tagSelector/tagIcon/tagIcon.vue +96 -0
  299. package/src/components/project/tagSelector/tagIcon/types.ts +25 -0
  300. package/src/components/project/tagSelector/tagSelector.stories.ts +50 -0
  301. package/src/components/project/tagSelector/tagSelector.vue +360 -0
  302. package/src/components/project/tagSelector/tagsDefaults.ts +54 -0
  303. package/src/components/project/tagSelector/types.ts +162 -0
  304. package/src/components/project/tagSelector/utils/el.ts +151 -0
  305. package/src/components/project/tagSelector/utils/utils.ts +30 -0
  306. package/src/components/tabs/tabs/content.vue +24 -0
  307. package/src/components/tabs/tabs/stories/README.md +12 -0
  308. package/src/components/tabs/tabs/tab.vue +49 -0
  309. package/src/components/tabs/tabs/tabs.stories.ts +170 -0
  310. package/src/components/tabs/tabs/tabs.vue +64 -0
  311. package/src/components/tabs/tabs/types.ts +22 -0
  312. package/src/components/tabs/tabs.ts +9 -0
  313. package/src/components/tabsView/tabsView/menu.vue +291 -0
  314. package/src/components/tabsView/tabsView/menuDelimeter.vue +26 -0
  315. package/src/components/tabsView/tabsView/menuItem.vue +125 -0
  316. package/src/components/tabsView/tabsView/menuTitle.vue +46 -0
  317. package/src/components/tabsView/tabsView/store.ts +60 -0
  318. package/src/components/tabsView/tabsView/stories/README.md +22 -0
  319. package/src/components/tabsView/tabsView/tabsView.stories.ts +169 -0
  320. package/src/components/tabsView/tabsView/tabsView.vue +120 -0
  321. package/src/components/tabsView/tabsView/types.ts +118 -0
  322. package/src/components/tabsView/tabsView/utils.ts +27 -0
  323. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuItem.stories.ts +46 -0
  324. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuTitle.stories.ts +42 -0
  325. package/src/components/tabsView/tabsView.ts +9 -0
  326. package/src/components/types.ts +6 -0
  327. package/src/core/app.ts +22 -0
  328. package/src/core/core/core.mdx +36 -0
  329. package/src/core/core/core.ts +287 -0
  330. package/src/core/core/events/resize.ts +47 -0
  331. package/src/core/core/events.ts +6 -0
  332. package/src/core/core/jQuery.mdx +41 -0
  333. package/src/core/core/options.ts +52 -0
  334. package/src/core/core/preloaders.ts +31 -0
  335. package/src/core/core/state.ts +61 -0
  336. package/src/core/directives/data.mdx +24 -0
  337. package/src/core/directives/data.ts +25 -0
  338. package/src/core/directives/focus.mdx +28 -0
  339. package/src/core/directives/focus.ts +73 -0
  340. package/src/core/directives/preloader.ts +23 -0
  341. package/src/core/directives/scrollIntoView.mdx +41 -0
  342. package/src/core/directives/scrollIntoView.ts +123 -0
  343. package/src/core/directives/scrollShadow.mdx +23 -0
  344. package/src/core/directives/scrollShadow.ts +27 -0
  345. package/src/core/directives/sticky.mdx +29 -0
  346. package/src/core/directives/sticky.ts +32 -0
  347. package/src/core/directives/swimUp.mdx +27 -0
  348. package/src/core/directives/swimUp.ts +95 -0
  349. package/src/core/directives/tooltip.mdx +13 -0
  350. package/src/core/directives/tooltip.ts +57 -0
  351. package/src/core/icons/gallery.vue +70 -0
  352. package/src/core/icons/icons.mdx +24 -0
  353. package/src/core/icons/icons.stories.ts +14 -0
  354. package/src/core/plugins/core.ts +131 -0
  355. package/src/core/plugins/i18n.ts +189 -0
  356. package/src/core/plugins/piniaTPA.ts +432 -0
  357. package/src/core/plugins/plugins.mdx +82 -0
  358. package/src/core/styles/CSS Variables.stories.ts +17 -0
  359. package/src/core/styles/styles.mdx +26 -0
  360. package/src/core/theme/Variables.stories.ts +16 -0
  361. package/src/core/theme/theme.mdx +117 -0
  362. package/src/core/utils/References/Docs.mdx +23 -0
  363. package/src/core/utils/References/check/Docs.mdx +13 -0
  364. package/src/core/utils/References/check/functions/getDomainRegexp.mdx +13 -0
  365. package/src/core/utils/References/check/functions/isDomain.mdx +19 -0
  366. package/src/core/utils/References/check/functions/isEmail.mdx +20 -0
  367. package/src/core/utils/References/check/functions/isIp.mdx +19 -0
  368. package/src/core/utils/References/check/functions/validUrl.mdx +20 -0
  369. package/src/core/utils/References/clipboard/Docs.mdx +8 -0
  370. package/src/core/utils/References/clipboard/functions/guestLinkToClipboard.mdx +19 -0
  371. package/src/core/utils/References/clipboard/functions/setClipboard.mdx +20 -0
  372. package/src/core/utils/References/date/Docs.mdx +15 -0
  373. package/src/core/utils/References/date/functions/dateFormat.mdx +26 -0
  374. package/src/core/utils/References/date/functions/dateToString.mdx +24 -0
  375. package/src/core/utils/References/date/functions/dateUnformat.mdx +20 -0
  376. package/src/core/utils/References/date/functions/genDate.mdx +24 -0
  377. package/src/core/utils/References/date/functions/genDateMoscow.mdx +20 -0
  378. package/src/core/utils/References/date/functions/getDayOfWeek.mdx +24 -0
  379. package/src/core/utils/References/date/functions/stringToDate.mdx +19 -0
  380. package/src/core/utils/References/device/Docs.mdx +19 -0
  381. package/src/core/utils/References/device/functions/get$scroll.mdx +13 -0
  382. package/src/core/utils/References/device/functions/getCommandKeyLabel.mdx +13 -0
  383. package/src/core/utils/References/device/functions/getElsScroll.mdx +13 -0
  384. package/src/core/utils/References/device/functions/getOS.mdx +15 -0
  385. package/src/core/utils/References/device/functions/getOSAsync.mdx +13 -0
  386. package/src/core/utils/References/device/functions/getScrollTop.mdx +13 -0
  387. package/src/core/utils/References/device/functions/isApp.mdx +13 -0
  388. package/src/core/utils/References/device/functions/isMacOS.mdx +13 -0
  389. package/src/core/utils/References/device/functions/isMobile.mdx +13 -0
  390. package/src/core/utils/References/device/functions/isRetina.mdx +13 -0
  391. package/src/core/utils/References/device/functions/isSafari.mdx +13 -0
  392. package/src/core/utils/References/dom/Docs.mdx +25 -0
  393. package/src/core/utils/References/dom/functions/css.mdx +22 -0
  394. package/src/core/utils/References/dom/functions/genEl.mdx +26 -0
  395. package/src/core/utils/References/dom/functions/isVisible.mdx +21 -0
  396. package/src/core/utils/References/dom/functions/offset.mdx +33 -0
  397. package/src/core/utils/References/dom/functions/querySelectorAllArray.mdx +20 -0
  398. package/src/core/utils/References/dom/functions/querySelectorAllVisible.mdx +20 -0
  399. package/src/core/utils/References/dom/functions/querySelectorVisible.mdx +23 -0
  400. package/src/core/utils/References/dom/functions/querySelectorVisibleLast.mdx +23 -0
  401. package/src/core/utils/References/dom/functions/storage.mdx +26 -0
  402. package/src/core/utils/References/dom/functions/storageClear.mdx +19 -0
  403. package/src/core/utils/References/dom/functions/wrap.mdx +20 -0
  404. package/src/core/utils/References/dom/variables/default.mdx +245 -0
  405. package/src/core/utils/References/image/Docs.mdx +10 -0
  406. package/src/core/utils/References/image/functions/downloadImageFromString.mdx +20 -0
  407. package/src/core/utils/References/image/functions/genFaviconImgHtml.mdx +20 -0
  408. package/src/core/utils/References/keyboard/Docs.mdx +9 -0
  409. package/src/core/utils/References/keyboard/functions/invertKeyboardLayout.mdx +19 -0
  410. package/src/core/utils/References/lodash/Docs.mdx +18 -0
  411. package/src/core/utils/References/lodash/functions/cloneDeep.mdx +27 -0
  412. package/src/core/utils/References/lodash/functions/debounce.mdx +72 -0
  413. package/src/core/utils/References/lodash/functions/merge.mdx +190 -0
  414. package/src/core/utils/References/lodash/functions/throttle.mdx +69 -0
  415. package/src/core/utils/References/lodash/variables/memoize.mdx +42 -0
  416. package/src/core/utils/References/number/Docs.mdx +10 -0
  417. package/src/core/utils/References/number/functions/percentOfNumber.mdx +24 -0
  418. package/src/core/utils/References/number/functions/randomBySeed.mdx +21 -0
  419. package/src/core/utils/References/price/Docs.mdx +9 -0
  420. package/src/core/utils/References/price/functions/genPrice.mdx +26 -0
  421. package/src/core/utils/References/route/Docs.mdx +14 -0
  422. package/src/core/utils/References/route/functions/delHash.mdx +24 -0
  423. package/src/core/utils/References/route/functions/genHash.mdx +24 -0
  424. package/src/core/utils/References/route/functions/getHash.mdx +20 -0
  425. package/src/core/utils/References/route/functions/historySetState.mdx +29 -0
  426. package/src/core/utils/References/route/functions/setHash.mdx +24 -0
  427. package/src/core/utils/References/route/functions/setHashs.mdx +20 -0
  428. package/src/core/utils/References/scroll/Docs.mdx +13 -0
  429. package/src/core/utils/References/scroll/functions/amountScrolled.mdx +15 -0
  430. package/src/core/utils/References/scroll/functions/connectScrollShadow.mdx +26 -0
  431. package/src/core/utils/References/scroll/functions/genHasScroll.mdx +23 -0
  432. package/src/core/utils/References/scroll/functions/getScrollPercent.mdx +19 -0
  433. package/src/core/utils/References/scroll/functions/unconnectScrollShadow.mdx +17 -0
  434. package/src/core/utils/References/searchers/Docs.mdx +17 -0
  435. package/src/core/utils/References/searchers/functions/genVolumeLabel.mdx +24 -0
  436. package/src/core/utils/References/searchers/functions/getDeviceGIcon.mdx +19 -0
  437. package/src/core/utils/References/searchers/functions/getLangLabel.mdx +20 -0
  438. package/src/core/utils/References/searchers/functions/getSearcherGIcon.mdx +19 -0
  439. package/src/core/utils/References/searchers/functions/prepareVolumeType.mdx +20 -0
  440. package/src/core/utils/References/searchers/variables/searchersNames.mdx +83 -0
  441. package/src/core/utils/References/store/Docs.mdx +22 -0
  442. package/src/core/utils/References/store/functions/defineStore.mdx +34 -0
  443. package/src/core/utils/References/store/functions/useStore.mdx +27 -0
  444. package/src/core/utils/References/store/interfaces/Store.mdx +29 -0
  445. package/src/core/utils/References/store/variables/plugin.mdx +64 -0
  446. package/src/core/utils/References/string/Docs.mdx +24 -0
  447. package/src/core/utils/References/string/functions/addCommasWhite.mdx +19 -0
  448. package/src/core/utils/References/string/functions/addLinkTags.mdx +21 -0
  449. package/src/core/utils/References/string/functions/camelToSnakeCase.mdx +19 -0
  450. package/src/core/utils/References/string/functions/ellipsis.mdx +24 -0
  451. package/src/core/utils/References/string/functions/genFlagLinkByCountryCode.mdx +23 -0
  452. package/src/core/utils/References/string/functions/genIntHash.mdx +19 -0
  453. package/src/core/utils/References/string/functions/getRandomHash.mdx +19 -0
  454. package/src/core/utils/References/string/functions/highlightHtml.mdx +23 -0
  455. package/src/core/utils/References/string/functions/htmlspecialchars.mdx +19 -0
  456. package/src/core/utils/References/string/functions/isUrl.mdx +19 -0
  457. package/src/core/utils/References/string/functions/nl2br.mdx +19 -0
  458. package/src/core/utils/References/string/functions/numberEnding.mdx +26 -0
  459. package/src/core/utils/References/string/functions/numberWithWord.mdx +26 -0
  460. package/src/core/utils/References/string/functions/rusToLatin.mdx +19 -0
  461. package/src/core/utils/References/string/functions/toCapitalize.mdx +19 -0
  462. package/src/core/utils/References/string/functions/toRoditPadej.mdx +19 -0
  463. package/src/core/utils/References/system/Docs.mdx +11 -0
  464. package/src/core/utils/References/system/functions/sleep.mdx +19 -0
  465. package/src/core/utils/References/system/functions/sleepWhile.mdx +27 -0
  466. package/src/core/utils/References/system/functions/waitWhile.mdx +27 -0
  467. package/src/core/utils/References/url/Docs.mdx +15 -0
  468. package/src/core/utils/References/url/functions/decode.mdx +19 -0
  469. package/src/core/utils/References/url/functions/encode.mdx +19 -0
  470. package/src/core/utils/References/url/functions/fromPuny.mdx +21 -0
  471. package/src/core/utils/References/url/functions/getHost.mdx +19 -0
  472. package/src/core/utils/References/url/functions/hostToLowerCase.mdx +19 -0
  473. package/src/core/utils/References/url/functions/normalize.mdx +19 -0
  474. package/src/core/utils/References/url/functions/toPuny.mdx +21 -0
  475. package/src/core/utils/check.ts +88 -0
  476. package/src/core/utils/clipboard.ts +51 -0
  477. package/src/core/utils/date.ts +334 -0
  478. package/src/core/utils/device.ts +139 -0
  479. package/src/core/utils/dom.ts +195 -0
  480. package/src/core/utils/image.ts +46 -0
  481. package/src/core/utils/keyboard.ts +29 -0
  482. package/src/core/utils/lodash.ts +18 -0
  483. package/src/core/utils/number.ts +37 -0
  484. package/src/core/utils/price.ts +24 -0
  485. package/src/core/utils/route.ts +130 -0
  486. package/src/core/utils/scroll.ts +120 -0
  487. package/src/core/utils/searchers.ts +191 -0
  488. package/src/core/utils/store/localStorage.ts +56 -0
  489. package/src/core/utils/store/plugin.ts +50 -0
  490. package/src/core/utils/store/store.ts +77 -0
  491. package/src/core/utils/store.ts +7 -0
  492. package/src/core/utils/string.ts +349 -0
  493. package/src/core/utils/system.ts +72 -0
  494. package/src/core/utils/url.ts +138 -0
  495. package/src/core/utils/utils.mdx +6 -0
  496. package/src/d.ts +12 -0
  497. package/src/icomoon.d.ts +98 -0
  498. package/src/resources/styles/core/components/bage.css +16 -0
  499. package/src/resources/styles/core/components/components.css +94 -0
  500. package/src/resources/styles/core/components/formsCaption.css +43 -0
  501. package/src/resources/styles/core/components/jquery.css +19 -0
  502. package/src/resources/styles/core/core.ts +14 -0
  503. package/src/resources/styles/core/forms/clear.css +20 -0
  504. package/src/resources/styles/core/forms/controls.css +20 -0
  505. package/src/resources/styles/core/forms/focusable.css +27 -0
  506. package/src/resources/styles/core/forms/forms.css +178 -0
  507. package/src/resources/styles/core/icon.css +58 -0
  508. package/src/resources/styles/core/jquery.css +1 -0
  509. package/src/resources/styles/core/layout.css +59 -0
  510. package/src/resources/styles/core/modifiers/as.css +33 -0
  511. package/src/resources/styles/core/modifiers/ellipsis.css +26 -0
  512. package/src/resources/styles/core/modifiers/modifiers.css +120 -0
  513. package/src/resources/styles/core/modifiers/only.css +23 -0
  514. package/src/resources/styles/core/modifiers/scrollBar.css +52 -0
  515. package/src/resources/styles/core/modifiers/scrollShadow.css +50 -0
  516. package/src/resources/styles/storybook.css +11 -0
  517. package/src/resources/styles/themes/dark/dark-layout.css +47 -0
  518. package/src/resources/styles/themes/dark/dark-positions.css +66 -0
  519. package/src/resources/styles/themes/dark/dark.css +405 -0
  520. package/src/resources/styles/themes/dark-positions.ts +1 -0
  521. package/src/resources/styles/themes/dark-th/dark-th-layout.css +47 -0
  522. package/src/resources/styles/themes/dark-th/dark-th-positions.css +67 -0
  523. package/src/resources/styles/themes/dark-th/dark-th.css +405 -0
  524. package/src/resources/styles/themes/dark-th-positions.ts +1 -0
  525. package/src/resources/styles/themes/dark-th.ts +3 -0
  526. package/src/resources/styles/themes/dark.ts +3 -0
  527. package/src/resources/styles/themes/light/light-layout.css +47 -0
  528. package/src/resources/styles/themes/light/light-positions.css +66 -0
  529. package/src/resources/styles/themes/light/light.css +405 -0
  530. package/src/resources/styles/themes/light-positions.ts +1 -0
  531. package/src/resources/styles/themes/light.ts +3 -0
  532. package/src/storybook/components/color.vue +47 -0
  533. package/src/storybook/components/cssVariables.vue +195 -0
  534. package/src/storybook/components/icomoon.ts +40 -0
  535. package/src/storybook/jquery.ts +4 -0
  536. package/src//320/221/321/213/321/201/321/202/321/200/321/213/320/271 /321/201/321/202/320/260/321/200/321/202.mdx" +181 -0
  537. package/src//320/223/320/260/320/271/320/264/320/273/320/260/320/271/320/275.mdx +120 -0
  538. package/src//320/230/320/275/321/204/320/276/321/200/320/274/320/260/321/206/320/270/321/217 /320/276 /321/201/320/261/320/276/321/200/320/272/320/265.mdx" +14 -0
  539. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS/FAQ.mdx" +43 -0
  540. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/236/320/261/321/211/320/270/320/265 /320/274/320/276/320/264/320/270/321/204/320/270/320/272/320/260/321/202/320/276/321/200/321/213.mdx" +155 -0
  541. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/237/320/265/321/200/320/265/320/274/320/265/320/275/320/275/321/213/320/265.mdx" +35 -0
  542. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/237/321/200/320/265/320/264/320/277/321/200/320/276/321/206/320/265/321/201/321/201/320/276/321/200/321/213.mdx" +15 -0
  543. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/240/320/265/320/272/320/276/320/274/320/265/320/275/320/264/320/260/321/206/320/270/320/270 /320/221/320/255/320/234.mdx" +56 -0
  544. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/241/321/202/320/270/320/273/320/270.mdx" +53 -0
  545. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/247/321/202/320/276 /321/202/320/260/320/272/320/276/320/265 css /320/274/320/276/320/264/321/203/320/273/321/214.mdx" +55 -0
  546. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/PUBLISH.md.mdx" +4 -0
  547. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/README.md.mdx" +4 -0
  548. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/222/320/262/320/265/320/264/320/265/320/275/320/270/320/265 /320/262 NPM.md.mdx" +4 -0
  549. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/224/320/276/320/277/320/276/320/273/320/275/320/270/321/202/320/265/320/273/321/214/320/275/320/260/321/217 /320/273/320/270/321/202/320/265/321/200/320/260/321/202/321/203/321/200/320/260.mdx" +15 -0
  550. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/230/321/201/320/277/320/276/320/273/321/214/320/267/320/276/320/262/320/260/320/275/320/270/320/265 /320/262 /320/277/321/200/320/276/320/265/320/272/321/202/320/260/321/205.mdx" +3 -0
  551. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/235/320/260/321/201/321/202/321/200/320/276/320/271/320/272/320/260 IDE.mdx" +45 -0
  552. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/236/321/204/320/276/321/200/320/274/320/273/320/265/320/275/320/270/320/265 /320/272/320/276/320/264/320/260.mdx" +33 -0
  553. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260.mdx" +29 -0
  554. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213.mdx" +66 -0
  555. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213//320/241/321/202/320/270/320/273/320/270 /320/272/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213.mdx" +58 -0
  556. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI.mdx" +11 -0
  557. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/243/321/202/320/270/320/273/320/270/321/202/321/213.mdx" +5 -0
  558. package/storybook-dev.sh +14 -0
  559. package/tsconfig.json +91 -0
  560. package/typedoc.json +20 -0
  561. package/vite.config.ts +150 -0
  562. package/.chunks/core-BDx1sI2y.amd.js +0 -2
  563. package/.chunks/core-BDx1sI2y.amd.js.map +0 -1
  564. package/.chunks/core-CTWfwyjq.es.js +0 -197
  565. package/.chunks/core-CTWfwyjq.es.js.map +0 -1
  566. package/.chunks/datepicker-Esxy0UQA.amd.js +0 -2
  567. package/.chunks/datepicker-Esxy0UQA.amd.js.map +0 -1
  568. package/.chunks/datepicker-iaUT_eSc.es.js +0 -44
  569. package/.chunks/datepicker-iaUT_eSc.es.js.map +0 -1
  570. package/.chunks/dialog_selectorRegions-B-4xalwM.es.js +0 -188
  571. package/.chunks/dialog_selectorRegions-B-4xalwM.es.js.map +0 -1
  572. package/.chunks/dialog_selectorRegions-C7tvNWJk.amd.js +0 -2
  573. package/.chunks/dialog_selectorRegions-C7tvNWJk.amd.js.map +0 -1
  574. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CqYKaqcT.amd.js +0 -2
  575. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CqYKaqcT.amd.js.map +0 -1
  576. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DBzDS_l7.es.js +0 -322
  577. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DBzDS_l7.es.js.map +0 -1
  578. package/.chunks/forms-BZlFXc5U.es.js +0 -2052
  579. package/.chunks/forms-BZlFXc5U.es.js.map +0 -1
  580. package/.chunks/forms-DMI0BqCj.amd.js +0 -3
  581. package/.chunks/forms-DMI0BqCj.amd.js.map +0 -1
  582. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CACzwZ0A.amd.js +0 -2
  583. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CACzwZ0A.amd.js.map +0 -1
  584. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-KxTfgv5Z.es.js +0 -181
  585. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-KxTfgv5Z.es.js.map +0 -1
  586. package/.chunks/menu.vue_vue_type_style_index_0_lang-BMpVs3Du.es.js +0 -109
  587. package/.chunks/menu.vue_vue_type_style_index_0_lang-BMpVs3Du.es.js.map +0 -1
  588. package/.chunks/menu.vue_vue_type_style_index_0_lang-CIdaxq15.amd.js +0 -2
  589. package/.chunks/menu.vue_vue_type_style_index_0_lang-CIdaxq15.amd.js.map +0 -1
  590. package/.chunks/notice-C0QQCxdI.es.js +0 -175
  591. package/.chunks/notice-C0QQCxdI.es.js.map +0 -1
  592. package/.chunks/notice-ULAk8EKs.amd.js +0 -4
  593. package/.chunks/notice-ULAk8EKs.amd.js.map +0 -1
  594. package/.chunks/page.vue_vue_type_script_setup_true_lang-BjGqYm-r.es.js +0 -143
  595. package/.chunks/page.vue_vue_type_script_setup_true_lang-BjGqYm-r.es.js.map +0 -1
  596. package/.chunks/page.vue_vue_type_script_setup_true_lang-f557_PUb.amd.js +0 -2
  597. package/.chunks/page.vue_vue_type_script_setup_true_lang-f557_PUb.amd.js.map +0 -1
  598. package/.chunks/popup-BDm3_TJy.amd.js +0 -2
  599. package/.chunks/popup-BDm3_TJy.amd.js.map +0 -1
  600. package/.chunks/popup-Cl0Rac26.es.js +0 -426
  601. package/.chunks/popup-Cl0Rac26.es.js.map +0 -1
  602. package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
  603. package/.chunks/punycode.es6-C2yitnNb.amd.js.map +0 -1
  604. package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
  605. package/.chunks/punycode.es6-CNI-zL6U.es.js.map +0 -1
  606. package/.chunks/store-CX_6ZXhO.es.js +0 -29
  607. package/.chunks/store-CX_6ZXhO.es.js.map +0 -1
  608. package/.chunks/store-esTid5oI.amd.js +0 -2
  609. package/.chunks/store-esTid5oI.amd.js.map +0 -1
  610. package/.chunks/utils-BV1bu3yj.amd.js +0 -2
  611. package/.chunks/utils-BV1bu3yj.amd.js.map +0 -1
  612. package/.chunks/utils-BfXpHkpA.es.js +0 -304
  613. package/.chunks/utils-BfXpHkpA.es.js.map +0 -1
  614. package/.chunks/utils-C4bTrMJX.amd.js +0 -2
  615. package/.chunks/utils-C4bTrMJX.amd.js.map +0 -1
  616. package/.chunks/utils-D9KqMkio.es.js +0 -79
  617. package/.chunks/utils-D9KqMkio.es.js.map +0 -1
  618. package/assets/charts.css +0 -1
  619. package/assets/core.css +0 -1
  620. package/assets/dialog_selectorRegions.css +0 -1
  621. package/assets/extra.css +0 -1
  622. package/assets/forms.css +0 -1
  623. package/assets/formsExt.css +0 -1
  624. package/assets/layout.css +0 -1
  625. package/assets/listItem.css +0 -1
  626. package/assets/menu.css +0 -1
  627. package/assets/notice.css +0 -1
  628. package/assets/popup.css +0 -1
  629. package/assets/project.css +0 -1
  630. package/assets/tabs.css +0 -1
  631. package/assets/tabsView.css +0 -1
  632. package/assets/themes/dark-th.css +0 -1
  633. package/assets/themes/dark.css +0 -1
  634. package/assets/themes/light.css +0 -1
  635. package/charts/charts.amd.js +0 -2
  636. package/charts/charts.amd.js.map +0 -1
  637. package/charts/charts.d.ts +0 -2
  638. package/charts/charts.js +0 -178
  639. package/charts/charts.js.map +0 -1
  640. package/components/charts/charts.d.ts +0 -5
  641. package/components/charts/miniChart/miniChart.vue.d.ts +0 -15
  642. package/components/charts/miniChart/stories/dummy.d.ts +0 -13
  643. package/components/charts/miniChart/types.d.ts +0 -92
  644. package/components/charts/miniChart/utils/consts.d.ts +0 -8
  645. package/components/charts/miniCharts/miniCharts.d.ts +0 -20
  646. package/components/charts/miniCharts/miniCharts.vue.d.ts +0 -32
  647. package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
  648. package/components/core/notice/item/item.vue.d.ts +0 -10
  649. package/components/core/notice/item/types.d.ts +0 -63
  650. package/components/core/notice/notice.vue.d.ts +0 -5
  651. package/components/core/notice/utils.d.ts +0 -27
  652. package/components/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -51
  653. package/components/dialog/dialog/composables/dialogHandle.d.ts +0 -108
  654. package/components/dialog/dialog/composables/types.d.ts +0 -11
  655. package/components/dialog/dialog/composables/utils.d.ts +0 -21
  656. package/components/dialog/dialog/dialog.vue.d.ts +0 -28
  657. package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -13
  658. package/components/dialog/dialog/page/page.vue.d.ts +0 -19
  659. package/components/dialog/dialog/page/types.d.ts +0 -72
  660. package/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -6
  661. package/components/dialog/dialog/pageComponent/types.d.ts +0 -18
  662. package/components/dialog/dialog/stories/autoload.d.ts +0 -2
  663. package/components/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -7
  664. package/components/dialog/dialog/types.d.ts +0 -58
  665. package/components/dialog/dialog.d.ts +0 -6
  666. package/components/dialog/lib/types.d.ts +0 -44
  667. package/components/dialog/lib/utils.d.ts +0 -14
  668. package/components/dialog/lib/utils.globalEvents.d.ts +0 -8
  669. package/components/dialog/lib/worker.d.ts +0 -76
  670. package/components/extra/extra.d.ts +0 -3
  671. package/components/extra/rive/rive.vue.d.ts +0 -11
  672. package/components/extra/rive/types.d.ts +0 -7
  673. package/components/forms/avatar/avatar.vue.d.ts +0 -10
  674. package/components/forms/avatar/types.d.ts +0 -32
  675. package/components/forms/button/button.vue.d.ts +0 -24
  676. package/components/forms/button/types.d.ts +0 -39
  677. package/components/forms/caption/caption.vue.d.ts +0 -17
  678. package/components/forms/caption/types.d.ts +0 -9
  679. package/components/forms/checkbox/checkbox.vue.d.ts +0 -27
  680. package/components/forms/checkbox/types.d.ts +0 -21
  681. package/components/forms/controlLabel/controlLabel.vue.d.ts +0 -19
  682. package/components/forms/controlLabel/types.d.ts +0 -4
  683. package/components/forms/forms.d.ts +0 -31
  684. package/components/forms/hint/hint.vue.d.ts +0 -4
  685. package/components/forms/hint/types.d.ts +0 -8
  686. package/components/forms/input/input.vue.d.ts +0 -27
  687. package/components/forms/input/types.d.ts +0 -23
  688. package/components/forms/inputDate/datepicker.d.ts +0 -5
  689. package/components/forms/inputDate/inputDate.vue.d.ts +0 -12
  690. package/components/forms/inputDate/types.d.ts +0 -1
  691. package/components/forms/inputRange/inputRange.vue.d.ts +0 -19
  692. package/components/forms/inputRange/types.d.ts +0 -2
  693. package/components/forms/loadbar/loadbar.vue.d.ts +0 -3
  694. package/components/forms/preloader/preloader.vue.d.ts +0 -4
  695. package/components/forms/preloader/types.d.ts +0 -3
  696. package/components/forms/radio/radio.vue.d.ts +0 -23
  697. package/components/forms/radio/types.d.ts +0 -14
  698. package/components/forms/select/select.vue.d.ts +0 -17
  699. package/components/forms/select/stories/exampleOptions.d.ts +0 -5
  700. package/components/forms/select/types.d.ts +0 -58
  701. package/components/forms/switcher/switcher.vue.d.ts +0 -23
  702. package/components/forms/switcher/types.d.ts +0 -21
  703. package/components/forms/textarea/textarea.vue.d.ts +0 -12
  704. package/components/forms/textarea/types.d.ts +0 -44
  705. package/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -16
  706. package/components/formsExt/checkboxGroup/stories/example.d.ts +0 -15
  707. package/components/formsExt/checkboxGroup/types.d.ts +0 -19
  708. package/components/formsExt/editArea/editArea.vue.d.ts +0 -18
  709. package/components/formsExt/editArea/types.d.ts +0 -33
  710. package/components/formsExt/editInput/editInput.vue.d.ts +0 -8
  711. package/components/formsExt/editInput/types.d.ts +0 -16
  712. package/components/formsExt/formsExt.d.ts +0 -15
  713. package/components/formsExt/info/info.vue.d.ts +0 -20
  714. package/components/formsExt/info/types.d.ts +0 -21
  715. package/components/formsExt/menu/menu.vue.d.ts +0 -16
  716. package/components/formsExt/menu/stories/items.d.ts +0 -3
  717. package/components/formsExt/menu/types.d.ts +0 -37
  718. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +0 -16
  719. package/components/formsExt/radioGroup/stories/example.d.ts +0 -20
  720. package/components/formsExt/radioGroup/types.d.ts +0 -21
  721. package/components/formsExt/selector2/composables/useAPI.d.ts +0 -30
  722. package/components/formsExt/selector2/composables/useMenu.d.ts +0 -14
  723. package/components/formsExt/selector2/itemMulti.vue.d.ts +0 -8
  724. package/components/formsExt/selector2/selector2.vue.d.ts +0 -35
  725. package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
  726. package/components/formsExt/selector2/types.d.ts +0 -143
  727. package/components/formsExt/selector2/utils.d.ts +0 -6
  728. package/components/layout/islandRows/islandRows.vue.d.ts +0 -17
  729. package/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -18
  730. package/components/layout/islandRows/islandRowsRow/types.d.ts +0 -2
  731. package/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -18
  732. package/components/layout/islandRows/types.d.ts +0 -10
  733. package/components/layout/layout.d.ts +0 -9
  734. package/components/layout/rows/rows.vue.d.ts +0 -21
  735. package/components/layout/rows/types.d.ts +0 -6
  736. package/components/popup/alert/alert.vue.d.ts +0 -31
  737. package/components/popup/alert/types.d.ts +0 -8
  738. package/components/popup/confirm/confirm.vue.d.ts +0 -33
  739. package/components/popup/confirm/types.d.ts +0 -21
  740. package/components/popup/lib/popup.d.ts +0 -83
  741. package/components/popup/lib/popup.globalEvents.d.ts +0 -32
  742. package/components/popup/lib/worker.d.ts +0 -75
  743. package/components/popup/lib/worker.globalEvents.d.ts +0 -19
  744. package/components/popup/popup/listItem.vue.d.ts +0 -22
  745. package/components/popup/popup/opener.vue.d.ts +0 -23
  746. package/components/popup/popup/popup.vue.d.ts +0 -40
  747. package/components/popup/popup/types.d.ts +0 -101
  748. package/components/popup/popup/widgetInput.vue.d.ts +0 -17
  749. package/components/popup/popup.d.ts +0 -15
  750. package/components/popup/prompt/prompt.vue.d.ts +0 -33
  751. package/components/popup/prompt/types.d.ts +0 -21
  752. package/components/project/project.d.ts +0 -15
  753. package/components/project/selectorCompetitors/composables.d.ts +0 -3
  754. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -14
  755. package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
  756. package/components/project/selectorCompetitors/types.d.ts +0 -30
  757. package/components/project/selectorRegion/composables/compare.d.ts +0 -12
  758. package/components/project/selectorRegion/composables/selectRegion.d.ts +0 -13
  759. package/components/project/selectorRegion/composables/selectSearcher.d.ts +0 -13
  760. package/components/project/selectorRegion/composables/selectorRegion.d.ts +0 -25
  761. package/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +0 -6
  762. package/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +0 -26
  763. package/components/project/selectorRegion/selectorRegion.vue.d.ts +0 -23
  764. package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
  765. package/components/project/selectorRegion/types.d.ts +0 -172
  766. package/components/project/selectorRegion/utils/consts.d.ts +0 -31
  767. package/components/project/selectorRegion/utils/utils.d.ts +0 -34
  768. package/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -20
  769. package/components/project/tagSelector/popupListItem/types.d.ts +0 -33
  770. package/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -27
  771. package/components/project/tagSelector/popupOpener/types.d.ts +0 -64
  772. package/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -4
  773. package/components/project/tagSelector/tagIcon/types.d.ts +0 -21
  774. package/components/project/tagSelector/tagSelector.vue.d.ts +0 -37
  775. package/components/project/tagSelector/tagsDefaults.d.ts +0 -3
  776. package/components/project/tagSelector/types.d.ts +0 -140
  777. package/components/project/tagSelector/utils/el.d.ts +0 -19
  778. package/components/project/tagSelector/utils/utils.d.ts +0 -14
  779. package/components/tabs/tabs/content.vue.d.ts +0 -19
  780. package/components/tabs/tabs/tab.vue.d.ts +0 -19
  781. package/components/tabs/tabs/tabs.vue.d.ts +0 -21
  782. package/components/tabs/tabs/types.d.ts +0 -19
  783. package/components/tabs/tabs.d.ts +0 -7
  784. package/components/tabsView/tabsView/menu.vue.d.ts +0 -32
  785. package/components/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -3
  786. package/components/tabsView/tabsView/menuItem.vue.d.ts +0 -23
  787. package/components/tabsView/tabsView/menuTitle.vue.d.ts +0 -20
  788. package/components/tabsView/tabsView/store.d.ts +0 -12
  789. package/components/tabsView/tabsView/tabsView.vue.d.ts +0 -34
  790. package/components/tabsView/tabsView/types.d.ts +0 -98
  791. package/components/tabsView/tabsView/utils.d.ts +0 -11
  792. package/components/tabsView/tabsView.d.ts +0 -7
  793. package/core/app.amd.js +0 -2
  794. package/core/app.amd.js.map +0 -1
  795. package/core/app.d.ts +0 -8
  796. package/core/app.js +0 -214
  797. package/core/app.js.map +0 -1
  798. package/core/core/core.d.ts +0 -113
  799. package/core/core/events/resize.d.ts +0 -16
  800. package/core/core/events.d.ts +0 -15
  801. package/core/core/options.d.ts +0 -47
  802. package/core/core/preloaders.d.ts +0 -19
  803. package/core/core/state.d.ts +0 -49
  804. package/core/directives/data.d.ts +0 -10
  805. package/core/directives/focus.d.ts +0 -10
  806. package/core/directives/preloader.d.ts +0 -8
  807. package/core/directives/scrollIntoView.d.ts +0 -3
  808. package/core/directives/scrollShadow.d.ts +0 -15
  809. package/core/directives/sticky.d.ts +0 -10
  810. package/core/directives/swimUp.d.ts +0 -15
  811. package/core/directives/tooltip.d.ts +0 -10
  812. package/core/plugins/core.d.ts +0 -60
  813. package/core/plugins/i18n.d.ts +0 -97
  814. package/core/plugins/piniaTPA.d.ts +0 -17
  815. package/core/utils/check.d.ts +0 -26
  816. package/core/utils/clipboard.d.ts +0 -12
  817. package/core/utils/date.d.ts +0 -69
  818. package/core/utils/device.d.ts +0 -50
  819. package/core/utils/dom.d.ts +0 -94
  820. package/core/utils/image.d.ts +0 -16
  821. package/core/utils/keyboard.d.ts +0 -8
  822. package/core/utils/lodash.d.ts +0 -6
  823. package/core/utils/number.d.ts +0 -17
  824. package/core/utils/price.d.ts +0 -10
  825. package/core/utils/route.d.ts +0 -33
  826. package/core/utils/scroll.d.ts +0 -32
  827. package/core/utils/searchers.d.ts +0 -38
  828. package/core/utils/store/localStorage.d.ts +0 -6
  829. package/core/utils/store/plugin.d.ts +0 -24
  830. package/core/utils/store/store.d.ts +0 -34
  831. package/core/utils/store.d.ts +0 -6
  832. package/core/utils/string.d.ts +0 -100
  833. package/core/utils/system.d.ts +0 -25
  834. package/core/utils/url.d.ts +0 -36
  835. package/dialog/dialog.amd.js +0 -2
  836. package/dialog/dialog.amd.js.map +0 -1
  837. package/dialog/dialog.d.ts +0 -2
  838. package/dialog/dialog.js +0 -60
  839. package/dialog/dialog.js.map +0 -1
  840. package/extra/extra.amd.js +0 -2
  841. package/extra/extra.amd.js.map +0 -1
  842. package/extra/extra.d.ts +0 -2
  843. package/extra/extra.js +0 -72
  844. package/extra/extra.js.map +0 -1
  845. package/forms/forms.amd.js +0 -2
  846. package/forms/forms.amd.js.map +0 -1
  847. package/forms/forms.d.ts +0 -2
  848. package/forms/forms.js +0 -19
  849. package/forms/forms.js.map +0 -1
  850. package/forms/helpers.amd.js +0 -2
  851. package/forms/helpers.amd.js.map +0 -1
  852. package/forms/helpers.d.ts +0 -1
  853. package/forms/helpers.js +0 -2
  854. package/forms/helpers.js.map +0 -1
  855. package/formsExt/formsExt.amd.js +0 -2
  856. package/formsExt/formsExt.amd.js.map +0 -1
  857. package/formsExt/formsExt.d.ts +0 -2
  858. package/formsExt/formsExt.js +0 -567
  859. package/formsExt/formsExt.js.map +0 -1
  860. package/icomoon/Topvisor icons.json +0 -6635
  861. package/layout/layout.amd.js +0 -2
  862. package/layout/layout.amd.js.map +0 -1
  863. package/layout/layout.d.ts +0 -2
  864. package/layout/layout.js +0 -62
  865. package/layout/layout.js.map +0 -1
  866. package/popup/popup.amd.js +0 -2
  867. package/popup/popup.amd.js.map +0 -1
  868. package/popup/popup.d.ts +0 -2
  869. package/popup/popup.js +0 -244
  870. package/popup/popup.js.map +0 -1
  871. package/popup/worker.amd.js +0 -2
  872. package/popup/worker.amd.js.map +0 -1
  873. package/popup/worker.d.ts +0 -2
  874. package/popup/worker.js +0 -129
  875. package/popup/worker.js.map +0 -1
  876. package/project/project.amd.js +0 -2
  877. package/project/project.amd.js.map +0 -1
  878. package/project/project.d.ts +0 -2
  879. package/project/project.js +0 -986
  880. package/project/project.js.map +0 -1
  881. package/tabs/tabs.amd.js +0 -2
  882. package/tabs/tabs.amd.js.map +0 -1
  883. package/tabs/tabs.d.ts +0 -2
  884. package/tabs/tabs.js +0 -81
  885. package/tabs/tabs.js.map +0 -1
  886. package/tabsView/tabsView.amd.js +0 -2
  887. package/tabsView/tabsView.amd.js.map +0 -1
  888. package/tabsView/tabsView.d.ts +0 -2
  889. package/tabsView/tabsView.js +0 -306
  890. package/tabsView/tabsView.js.map +0 -1
  891. package/utils/check.amd.js +0 -2
  892. package/utils/check.amd.js.map +0 -1
  893. package/utils/check.d.ts +0 -2
  894. package/utils/check.js +0 -26
  895. package/utils/check.js.map +0 -1
  896. package/utils/clipboard.amd.js +0 -6
  897. package/utils/clipboard.amd.js.map +0 -1
  898. package/utils/clipboard.d.ts +0 -2
  899. package/utils/clipboard.js +0 -33
  900. package/utils/clipboard.js.map +0 -1
  901. package/utils/date.amd.js +0 -2
  902. package/utils/date.amd.js.map +0 -1
  903. package/utils/date.d.ts +0 -2
  904. package/utils/date.js +0 -12
  905. package/utils/date.js.map +0 -1
  906. package/utils/device.amd.js +0 -2
  907. package/utils/device.amd.js.map +0 -1
  908. package/utils/device.d.ts +0 -2
  909. package/utils/device.js +0 -15
  910. package/utils/device.js.map +0 -1
  911. package/utils/dom.amd.js +0 -2
  912. package/utils/dom.amd.js.map +0 -1
  913. package/utils/dom.d.ts +0 -6
  914. package/utils/dom.js +0 -75
  915. package/utils/dom.js.map +0 -1
  916. package/utils/image.amd.js +0 -12
  917. package/utils/image.amd.js.map +0 -1
  918. package/utils/image.d.ts +0 -2
  919. package/utils/image.js +0 -23
  920. package/utils/image.js.map +0 -1
  921. package/utils/keyboard.amd.js +0 -2
  922. package/utils/keyboard.amd.js.map +0 -1
  923. package/utils/keyboard.d.ts +0 -2
  924. package/utils/keyboard.js +0 -12
  925. package/utils/keyboard.js.map +0 -1
  926. package/utils/lodash.amd.js +0 -2
  927. package/utils/lodash.amd.js.map +0 -1
  928. package/utils/lodash.d.ts +0 -2
  929. package/utils/lodash.js +0 -9
  930. package/utils/lodash.js.map +0 -1
  931. package/utils/number.amd.js +0 -2
  932. package/utils/number.amd.js.map +0 -1
  933. package/utils/number.d.ts +0 -2
  934. package/utils/number.js +0 -13
  935. package/utils/number.js.map +0 -1
  936. package/utils/price.amd.js +0 -2
  937. package/utils/price.amd.js.map +0 -1
  938. package/utils/price.d.ts +0 -2
  939. package/utils/price.js +0 -10
  940. package/utils/price.js.map +0 -1
  941. package/utils/route.amd.js +0 -2
  942. package/utils/route.amd.js.map +0 -1
  943. package/utils/route.d.ts +0 -2
  944. package/utils/route.js +0 -38
  945. package/utils/route.js.map +0 -1
  946. package/utils/scroll.amd.js +0 -2
  947. package/utils/scroll.amd.js.map +0 -1
  948. package/utils/scroll.d.ts +0 -2
  949. package/utils/scroll.js +0 -45
  950. package/utils/scroll.js.map +0 -1
  951. package/utils/searchers.amd.js +0 -2
  952. package/utils/searchers.amd.js.map +0 -1
  953. package/utils/searchers.d.ts +0 -2
  954. package/utils/searchers.js +0 -134
  955. package/utils/searchers.js.map +0 -1
  956. package/utils/store.amd.js +0 -2
  957. package/utils/store.amd.js.map +0 -1
  958. package/utils/store.d.ts +0 -2
  959. package/utils/store.js +0 -7
  960. package/utils/store.js.map +0 -1
  961. package/utils/string.amd.js +0 -2
  962. package/utils/string.amd.js.map +0 -1
  963. package/utils/string.d.ts +0 -2
  964. package/utils/string.js +0 -148
  965. package/utils/string.js.map +0 -1
  966. package/utils/system.amd.js +0 -2
  967. package/utils/system.amd.js.map +0 -1
  968. package/utils/system.d.ts +0 -2
  969. package/utils/system.js +0 -29
  970. package/utils/system.js.map +0 -1
  971. package/utils/url.amd.js +0 -3
  972. package/utils/url.amd.js.map +0 -1
  973. package/utils/url.d.ts +0 -2
  974. package/utils/url.js +0 -48
  975. package/utils/url.js.map +0 -1
  976. /package/{icomoon → public/icomoon}/Read Me.txt +0 -0
  977. /package/{icomoon → public/icomoon}/demo-files/demo.css +0 -0
  978. /package/{icomoon → public/icomoon}/demo-files/demo.js +0 -0
  979. /package/{icomoon → public/icomoon}/demo.css +0 -0
  980. /package/{icomoon → public/icomoon}/demo.html +0 -0
  981. /package/{icomoon → public/icomoon}/demo.js +0 -0
  982. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.eot +0 -0
  983. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.svg +0 -0
  984. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.ttf +0 -0
  985. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.woff +0 -0
  986. /package/{icomoon → public/icomoon}/selection.json +0 -0
  987. /package/{icomoon → public/icomoon}/style.css +0 -0
  988. /package/{jquery-ui.min.css → public/jquery-ui.min.css} +0 -0
  989. /package/{require → public/require}/css.amd.js +0 -0
  990. /package/{components/core/notice/types.d.ts → src/components/core/notice/types.ts} +0 -0
  991. /package/{components/forms/helpers.d.ts → src/components/forms/helpers.ts} +0 -0
  992. /package/{components/popup/worker.d.ts → src/components/popup/worker.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"formsExt.amd.js","sources":["../../src/components/formsExt/editArea/editArea.vue","../../src/components/formsExt/editInput/editInput.vue","../../src/components/formsExt/radioGroup/radioGroup.vue","../../src/components/formsExt/checkboxGroup/checkboxGroup.vue","../../src/components/formsExt/selector2/composables/useAPI.ts","../../src/components/formsExt/selector2/utils.ts","../../src/components/formsExt/selector2/composables/useMenu.ts","../../src/components/formsExt/selector2/selector2.vue","../../src/components/formsExt/formsExt.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref } from 'vue';\nimport Button from '@/components/forms/button/button.vue';\nimport type { Emits, Props } from './types';\nimport Textarea from '@/components/forms/textarea/textarea.vue';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tdefaultValue: '',\n\tcancelText: 'Cancel',\n\tsubmitText: 'Send',\n\tcloseText: 'Close',\n\texpandable: true,\n});\n\nconst emit = defineEmits<Emits>();\n\nconst localValue = ref(props.defaultValue);\n\nconst isFocused = ref(props.isFocused);\n\nconst isChanged = computed(() => localValue.value !== props.defaultValue);\n\nconst submit = (value: string) => {\n\temit('submit', value);\n\n\tlocalValue.value = props.defaultValue;\n};\n\nconst cancel = () => {\n\tif (props.forceShowCloseBtn && !isChanged.value) {\n\t\temit('close');\n\n\t\treturn;\n\t}\n\n\tlocalValue.value = props.defaultValue;\n};\n\nconst clickOnTitle = () => {\n\tif (props.attachToKeyboard) emit('clickOnTitle');\n};\n</script>\n\n<template>\n\t<div\n\t\t:class=\"{\n\t\t\t'top-editArea': true,\n\t\t\t'top-editArea-attachedToKeyboard': attachToKeyboard,\n\t\t}\"\n\t>\n\t\t<div\n\t\t\tv-if=\"title\"\n\t\t\tclass=\"top-editArea_title\"\n\t\t\t@click=\"clickOnTitle()\"\n\t\t>\n\t\t\t{{ title }}\n\t\t</div>\n\n\t\t<div\n\t\t\t:class=\"{\n\t\t\t\t'top-editArea_form': true,\n\t\t\t\t'top-error': isError,\n\t\t\t\t'top-focus': isFocused,\n\t\t\t}\"\n\t\t>\n\t\t\t<Textarea\n\t\t\t\tv-model=\"localValue\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t:rows=\"rows\"\n\t\t\t\t:minHeight=\"minHeight\"\n\t\t\t\t:expandable=\"expandable\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t:readonly=\"readonly\"\n\t\t\t\t:isError=\"isError\"\n\t\t\t\t:hint=\"hint\"\n\t\t\t\tclass=\"top-editArea_element\"\n\t\t\t\t@focus=\"() => isFocused = true\"\n\t\t\t\t@blur=\"() => isFocused = false\"\n\t\t\t\t@keyup.esc=\"cancel\"\n\t\t\t\t@keyup.ctrl.enter=\"submit(localValue)\"\n\t\t\t/>\n\n\t\t\t<div class=\"top-editArea_footer\">\n\t\t\t\t<Button\n\t\t\t\t\tv-if=\"isChanged || forceShowCloseBtn\"\n\t\t\t\t\t:icon=\"$core.state.isMobile ? '': ''\"\n\t\t\t\t\tclass=\"top-editArea_button\"\n\t\t\t\t\tcolor=\"theme\"\n\t\t\t\t\tstyling=\"soft\"\n\t\t\t\t\t@click=\"cancel\"\n\t\t\t\t>\n\t\t\t\t\t<template\n\t\t\t\t\t\t#default\n\t\t\t\t\t\tv-if=\"!$core.state.isMobile\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ cancelText }}\n\t\t\t\t\t</template>\n\t\t\t\t</Button>\n\n\t\t\t\t<Button\n\t\t\t\t\tclass=\"top-editArea_button\"\n\t\t\t\t\tv-if=\"isChanged\"\n\t\t\t\t\t:icon=\"$core.state.isMobile ? '': ''\"\n\t\t\t\t\t@click=\"submit(localValue)\"\n\t\t\t\t>\n\t\t\t\t\t<template\n\t\t\t\t\t\t#default\n\t\t\t\t\t\tv-if=\"!$core.state.isMobile\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ submitText }}\n\t\t\t\t\t</template>\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<style>\n.top-editArea {\n\t--top-editArea-bottom: env(keyboard-inset-height, 0px);\n\t--top-editArea-offset-bottom: 0px;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 6px;\n}\n\n.top-editArea_title {\n\tfont-size: 12px;\n}\n\n.top-editArea_form {\n\tflex-direction: column;\n\toutline: none;\n}\n\n.top-editArea_form:not(.top-error):hover,\n.top-editArea_form:not(.top-error).top-focus {\n\tborder-color: var(--top-forms-border-color-hover);\n}\n\n/* textarea в EditArea */\n.top-textarea {\n\twidth: 100%;\n}\n\n.top-editArea_element.top-textarea_textarea {\n\t--top-forms-border-width: 0px;\n\n\toutline: none;\n\tanimation: none;\n}\n\n/* footer */\n.top-editArea_footer {\n\tpadding: var(--top-forms-padding);\n\tdisplay: flex;\n\tmin-height: 32px;\n\talign-self: flex-end;\n\tjustify-content: flex-end;\n\tgap: var(--top-forms-padding);\n}\n\n/* attachedToKeyboard */\n.top-editArea-attachedToKeyboard {\n\tbackground: var(--top-forms-background-color);\n\tposition: fixed;\n\tbottom: calc(var(--top-editArea-offset-bottom) + var(--top-editArea-bottom));\n\tright: 0;\n\tleft: 0;\n\tz-index: 2;\n\tgap: 0;\n\ttransition: bottom var(--transition-fast);\n}\n\n.top-editArea-attachedToKeyboard .top-editArea_form {\n\tborder-radius: 0;\n\tborder: none;\n\tborder-top: 1px solid var(--top-forms-border-color);\n}\n\n.top-editArea-attachedToKeyboard .top-editArea_title {\n\tcursor: pointer;\n\tborder-top: 1px solid var(--color-line-2-opacity);\n\tpadding: var(--top-forms-padding);\n}\n\n.top-editArea-attachedToKeyboard .top-editArea_footer > [data-top-icon] {\n\tborder-radius: 100%;\n}\n\n@media screen and (max-width: 900px) {\n\t.top-editArea_form{\n\t\tflex-direction: row;\n\t}\n}\n</style>\n","<script setup lang=\"ts\">\nimport { ref, toRef, watch } from 'vue';\nimport type { Emits, Props } from './types';\nimport TopInput from '@/components/forms/input/input.vue';\nimport TopButton from '@/components/forms/button/button.vue';\n\nconst props = defineProps<Props>();\n\nconst intermediateValue = ref(props.modelValue);\n\nwatch(toRef(props.modelValue), () => {\n\tintermediateValue.value = props.modelValue;\n});\n\nconst emit = defineEmits<Emits>();\n\nconst submit = () => {\n\temit('update:modelValue', intermediateValue.value);\n};\n</script>\n\n<template>\n\t<div class=\"top-editInput\">\n\t\t<TopInput\n\t\t\t:=\"input\"\n\t\t\t@keydown.esc.capture.stop=\"intermediateValue = modelValue\"\n\t\t\t@keydown.enter.stop=\"submit\"\n\t\t\tv-model=\"intermediateValue\"\n\t\t/>\n\n\t\t<TopButton\n\t\t\tv-if=\"intermediateValue !== modelValue\"\n\t\t\ticon=\"\"\n\t\t\tstyling=\"soft\"\n\t\t\t:=\"button\"\n\t\t\t@click=\"submit\"\n\t\t/>\n\t</div>\n</template>\n\n<style>\n.top-editInput {\n\twidth: 220px;\n\tflex-grow: 1;\n\tdisplay: flex;\n\talign-items: flex-end;\n\tgap: var(--top-gap-1);\n}\n\n.top-editInput .top-input {\n\twidth: unset;\n\tflex-grow: 1;\n}\n</style>\n","<script setup lang=\"ts\">\nimport type { Ref } from '@vue/reactivity';\nimport { ref, watch } from 'vue';\nimport type { Props } from './types';\n\nconst model = defineModel<Props['modelValue']>({\n\trequired: true,\n});\n\nconst props = withDefaults(defineProps<Props>(), {\n\tsize: 's',\n});\n\nconst elRef: Ref<HTMLElement | null> = ref(null);\n\nwatch(model, () => {\n\tif (!props.radiosProps?.some(item => item.value === model.value)) {\n\t\tmodel.value = props.radiosProps?.[0]?.value ?? '';\n\t}\n\n\telRef.value?.querySelector('.radioGroup_item-selected')?.scrollIntoView();\n}, { immediate: true });\n\nconst uid = 'radioGroup-' + Math.random();\n</script>\n\n<template>\n\t<div\n\t\tref=\"elRef\"\n\t\t:class=\"{\n\t\t\t['top-radioGroup']: true,\n\t\t\t['top-scrollBarXHidding']: true,\n\t\t\t['top-size_' + size]: !!size,\n\t\t\t['top-error']: isError,\n\t\t}\"\n\t>\n\t\t<label\n\t\t\tv-for=\"item of radiosProps\"\n\t\t\t:class=\"{\n\t\t\t\t['top-radioGroup_item-selected']: item.value === model,\n\t\t\t\t['top-radioGroup_item']: true,\n\t\t\t\t['top-forms-focusable']: true,\n\t\t\t\t['top-disabled']: item.disabled,\n\t\t\t}\"\n\t\t\t:data-top-icon=\"item.icon\"\n\t\t\t@click=\"model = item.value\"\n\t\t>\n\t\t\t{{ item.title }}\n\n\t\t\t<span\n\t\t\t\tv-if=\"showIndicator\"\n\t\t\t\tclass=\"top-radioGroup_circle\"\n\t\t\t></span>\n\n\t\t\t<!-- Для нативной навигации -->\n\t\t\t<input\n\t\t\t\tv-model=\"model\"\n\t\t\t\t:name=\"uid\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t['top-unvisible']: true,\n\t\t\t\t}\"\n\t\t\t\t:value=\"item.value\"\n\t\t\t\t:disabled=\"item.disabled\"\n\t\t\t/>\n\t\t</label>\n\t</div>\n</template>\n\n<style>\n.top-radioGroup {\n\tuser-select: none;\n\tbox-sizing: border-box;\n\tborder-radius: 8px;\n\tbackground-color: var(--color-layout-middle);\n\theight: var(--top-forms-base-height);\n\tpadding: 2px;\n\tgap: 2px;\n\tdisplay: flex;\n\talign-items: flex-start;\n}\n\n.top-radioGroup_item {\n\tcolor: var(--color-text-2);\n\tcursor: pointer;\n\tbox-sizing: border-box;\n\tborder-radius: 6px;\n\theight: calc(var(--top-forms-base-height) - 4px);\n\tpadding: 0 16px;\n\tfont-weight: 400;\n\twhite-space: nowrap;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tflex-grow: 1;\n\tgap: 4px;\n}\n\n.top-radioGroup_item:hover {\n\tbackground-color: var(--color-layout-front-1);\n\tbox-shadow: 0px 4px 32px 0px rgba(4, 9, 84, 0.10), 0px 0px 4px 0px rgba(4, 9, 84, 0.08);\n}\n\n/* selected */\n.top-radioGroup_item-selected {\n\tcolor: var(--color-text-1);\n\tpointer-events: none;\n\tbackground-color: var(--color-bg-lightning-1);\n\tbox-shadow: 0px 4px 32px 0px rgba(4, 9, 84, 0.10), 0px 0px 4px 0px rgba(4, 9, 84, 0.08);\n}\n\n/* circle */\n.top-radioGroup_circle {\n\tcontent: \"\";\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--color-line-3-opacity);\n\tborder-radius: 50%;\n\tpadding: 3px;\n\tmargin-left: auto;\n\twidth: calc(var(--top-forms-option-height) - 3px * 2);\n\theight: calc(var(--top-forms-option-height) - 3px * 2);\n}\n\n.top-radioGroup_item:hover .top-radioGroup_circle:before {\n\tborder-color: var(--color-line-primary-1);\n}\n\n/* circle selected */\n.top-radioGroup_item-selected .top-radioGroup_circle {\n\tborder-color: var(--color-line-primary-1);\n\tborder-width: 5px;\n}\n\n.top-radioGroup_item-selected:hover .top-radioGroup_circle {\n\tborder-color: var(--color-line-primary-1);\n}\n\n/* top-error */\n.top-radioGroup.top-error .top-radioGroup_item:not(.top-disabled) .top-radioGroup_circle {\n\tborder-color: var(--color-line-negative-1);\n}\n</style>\n","<script setup lang=\"ts\">\nimport type { Props } from './types';\n\nconst model = defineModel<Props['modelValue']>({\n\trequired: true,\n});\n\nwithDefaults(defineProps<Props>(), {\n\tsize: 's',\n\tstyling: 'outline',\n});\n\nconst onChange = (id: Props['modelValue'][number]) => {\n\tconst newModel = [...model.value];\n\tconst index = newModel.indexOf(id);\n\n\tif (index === -1) {\n\t\tnewModel.push(id);\n\t} else {\n\t\tnewModel.splice(index, 1);\n\t}\n\n\tmodel.value = newModel;\n};\n</script>\n\n<template>\n\t<div\n\t\t:class=\"{\n \t\t['top-checkboxGroup']: true,\n \t\t['top-checkboxGroup-' + styling]: true,\n \t\t['top-scrollBarXHidding']: true,\n \t\t['top-size_' + size]: !!size,\n \t\t['top-error']: isError,\n \t}\"\n\t>\n\t\t<label\n\t\t\tv-for=\"item in items\"\n\t\t\t:key=\"item.id\"\n\t\t\t:class=\"{\n\t\t\t\t['top-checkboxGroup_item']: true,\n\t\t\t\t['top-checkboxGroup_item-selected']: model.includes(item.id),\n\t\t\t\t['top-forms-focusable']: true,\n\t\t\t\t['top-disabled']: item.disabled,\n\t\t\t}\"\n\t\t\t:data-top-icon=\"item.icon\"\n\t\t>\n\t\t\t<input\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\tclass=\"top-unvisible\"\n\t\t\t\t:value=\"item.id\"\n\t\t\t\t:checked=\"model.includes(item.id)\"\n\t\t\t\t:disabled=\"item.disabled\"\n\t\t\t\t@change=\"onChange(item.id)\"\n\t\t\t/>\n\n\t\t\t{{ item.title }}\n\t\t</label>\n\t</div>\n</template>\n\n<style>\n.top-checkboxGroup {\n\tuser-select: none;\n\tborder-radius: 8px;\n\theight: var(--top-forms-base-height);\n\tbox-sizing: border-box;\n\tdisplay: flex;\n}\n\n.top-checkboxGroup_item {\n\tbox-sizing: border-box;\n\tpadding: 1px var(--top-padding-4);\n\tcursor: pointer;\n\tfont-weight: 600;\n\twhite-space: nowrap;\n\tdisplay: flex;\n\tflex-grow: 1;\n\tjustify-content: center;\n\talign-items: center;\n\tgap: var(--top-gap-1);\n}\n\n/* outline */\n.top-checkboxGroup-outline {\n\tborder: 1px solid var(--color-line-1);\n\tbackground: var(--color-layout-front-1);\n}\n\n.top-checkboxGroup-outline .top-checkboxGroup_item {\n\theight: calc(var(--top-forms-base-height) - 2px);\n\tmin-height: 100%;\n}\n\n.top-checkboxGroup-outline .top-checkboxGroup_item:hover {\n\tbackground: var(--color-layer-primary-1);\n}\n\n.top-checkboxGroup-outline .top-checkboxGroup_item-selected {\n\tbackground: var(--color-bg-primary-1);\n\tcolor: var(--color-text-white);\n\t--top-icon-color: var(--color-text-white);\n}\n\n.top-checkboxGroup-outline .top-checkboxGroup_item-selected:hover {\n\tbackground: var(--color-bg-primary-2);\n}\n\n.top-checkboxGroup-outline.top-error .top-checkboxGroup_item:hover {\n\tbackground: var(--color-layer-negative-1);\n}\n\n.top-checkboxGroup-outline.top-error .top-checkboxGroup_item-selected {\n\tbackground: var(--color-bg-negative-1);\n}\n\n.top-checkboxGroup-outline.top-error .top-checkboxGroup_item-selected:hover {\n\tbackground: var(--color-bg-negative-2);\n}\n\n/* borderless */\n.top-checkboxGroup-borderless {\n\tpadding: 2px;\n\tbackground: var(--color-bg-shading-2);\n\tgap: 2px;\n}\n\n.top-checkboxGroup-borderless .top-checkboxGroup_item {\n\tborder-radius: 6px;\n\theight: calc(var(--top-forms-base-height) - 4px);\n}\n\n.top-checkboxGroup-borderless .top-checkboxGroup_item:hover {\n\tbox-shadow: var(--top-shadow-s);\n\tbackground: var(--color-bg-lightning-1);\n}\n\n.top-checkboxGroup-borderless .top-checkboxGroup_item-selected {\n\tbackground: var(--color-bg-primary-1);\n\tcolor: var(--color-text-white);\n\t--top-icon-color: var(--color-text-white);\n}\n\n.top-checkboxGroup-borderless .top-checkboxGroup_item-selected:hover {\n\tbackground: var(--color-bg-primary-2);\n}\n\n.top-checkboxGroup-borderless.top-error .top-checkboxGroup_item:hover {\n\tbackground: var(--color-bg-lightning-1);\n}\n\n.top-checkboxGroup-borderless.top-error .top-checkboxGroup_item-selected {\n\tbackground: var(--color-bg-negative-1);\n}\n\n.top-checkboxGroup-borderless.top-error .top-checkboxGroup_item-selected:hover {\n\tbackground: var(--color-bg-negative-2);\n}\n</style>\n","import { ref } from 'vue';\nimport { debounce } from '../../../../core/utils/lodash';\nimport type { Item, Props } from '../types';\n\nexport type API = ReturnType<typeof useAPI>;\n\nexport const useAPI = (apiRequest: Props['apiRequest'], minLength: number, useCache: Props['useCache']) => {\n\t/**\n\t * Список, полученный через API\n\t */\n\tconst items = ref<Item[]>([]);\n\n\t/**\n\t * Флаг - идет загрузка\n\t */\n\tconst isLoading = ref(false);\n\n\tlet _searchText = '';\n\tlet _nextOffset: number | undefined;\n\n\tif (apiRequest && !apiRequest.params.limit) {\n\t\tapiRequest.params.limit = 100;\n\t}\n\n\t/**\n\t * Выполнить обращение к API\n\t *\n\t * При ошибке вернет undefined\n\t */\n\tconst callAPIRequest = async (): Promise<{ nextOffset?: number, result: Item[] } | undefined> => {\n\t\tif (!apiRequest) return;\n\n\t\tlet res;\n\t\tlet cacheKey;\n\n\t\tif (useCache) {\n\t\t\t// кэш для полученных ответов через apiRequest\n\t\t\t// общий для всех компонентов, использующих apiRequest\n\t\t\tapiRequest.cache ??= new Map();\n\n\t\t\tcacheKey = JSON.stringify(apiRequest.params);\n\t\t\tres = apiRequest.cache.get(cacheKey);\n\n\t\t\tif (res) {\n\t\t\t\treturn res;\n\t\t\t}\n\t\t}\n\n\t\tisLoading.value = true;\n\t\tres = await apiRequest.call();\n\t\tisLoading.value = false;\n\n\t\tif (res.errors) return;\n\n\t\tif (!Array.isArray(res.result)) {\n\t\t\tconsole.warn(`В result ожидался массив`);\n\n\t\t\treturn;\n\t\t}\n\n\t\tconst indexWithError = (res.result as Array<Item | any>).findIndex(item => item.id === undefined || item.name === undefined);\n\t\tif (indexWithError !== -1) {\n\t\t\tconsole.warn(`В result[${indexWithError}] нет id или name`);\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (useCache) {\n\t\t\tapiRequest.cache.set(cacheKey as string, res);\n\t\t}\n\n\t\treturn res;\n\t};\n\n\t/**\n\t * Загрузить items\n\t */\n\tconst load = async () => {\n\t\tif (!apiRequest) return;\n\n\t\tapiRequest.params.offset = 0;\n\t\tapiRequest.params.search = _searchText;\n\n\t\tconst res = await callAPIRequest();\n\t\tif (!res) return;\n\n\t\t_nextOffset = res.nextOffset;\n\n\t\titems.value = res.result;\n\t};\n\n\t/**\n\t * Загрузить следующую страницу items\n\t */\n\tconst loadAppend = async () => {\n\t\tif (!apiRequest) return;\n\n\t\t// данных о следующих страницах не обнаружено\n\t\tif (!_nextOffset) return;\n\n\t\t// дозагружать нельзя, если не завершена предыдущшая загрузка\n\t\tif (isLoading.value) return;\n\n\t\tapiRequest.params.offset = _nextOffset;\n\t\tapiRequest.params.search = _searchText;\n\n\t\tconst res = await callAPIRequest();\n\t\tif (!res) return;\n\n\t\t_nextOffset = res.nextOffset;\n\n\t\titems.value = items.value.concat(res.result);\n\t};\n\n\tconst loadDebounce = debounce(() => load(), 200);\n\n\t/**\n\t * Выполнить поиск по указанному тексту\n\t *\n\t * Если длина текста меньше minLength, поиск не будет проивзеден\n\t *\n\t * Если текст не изменился, поиск не будет проивзеден\n\t * @param searchText - текст поиска\n\t * @param useDebounce - дедупликация загрузки списка\n\t */\n\tconst setSearchTextAndLoad = (searchText: string, useDebounce = true) => {\n\t\tif (!apiRequest) return;\n\n\t\tif (searchText.length < minLength) return;\n\n\t\t// условия поиска не поменялись, данные загружены\n\t\tif (searchText === _searchText && items.value.length) return;\n\n\t\t_searchText = searchText;\n\n\t\tif (useDebounce) {\n\t\t\tvoid loadDebounce();\n\t\t} else {\n\t\t\tvoid load();\n\t\t}\n\t};\n\n\treturn {\n\t\tapiRequest,\n\t\titems,\n\t\tisLoading,\n\t\tloadAppend,\n\t\tsetSearchTextAndLoad,\n\t};\n};\n","import type { Item, Props } from './types';\n\nexport const ITEM_ID_ALL = 0;\n\n/**\n * Выбран ли элемент\n */\nexport const isSelected = (modelValue: Props['modelValue'], item: Item, checkNameForNullId = true) => {\n\tif (checkNameForNullId && item.id === null) {\n\t\tif (Array.isArray(modelValue)) {\n\t\t\treturn modelValue.some(itemSelected => itemSelected.id === item.id && itemSelected.name === item.name);\n\t\t} else {\n\t\t\treturn item.name === modelValue.name;\n\t\t}\n\t}\n\n\tif (Array.isArray(modelValue)) {\n\t\treturn modelValue.some(itemSelected => itemSelected.id === item.id);\n\t} else {\n\t\treturn item.id === modelValue.id;\n\t}\n};\n","import { computed, ref, type ComputedRef, type Ref } from 'vue';\nimport { invertKeyboardLayout } from '@/core/utils/keyboard';\nimport type { Item, Props } from '../types';\nimport { type API } from './useAPI';\nimport { isSelected, ITEM_ID_ALL } from '../utils';\nimport { useI18n } from '@/core/plugins/i18n';\n\n/**\n * Функционал поиска\n */\nexport const useMenu = (\n\tmodel: Ref<Props['modelValue']>,\n\titems: Ref<Props['items']>,\n\tmultiselect: Props['multiselect'],\n\tappendAllValue: Ref<Props['appendAllValue']>,\n\tappendSearchToResult: Ref<Props['appendSearchToResult']>,\n\tapi: API,\n) => {\n\t/**\n\t * Текст поиска по результатам\n\t */\n\tconst searchText = ref('');\n\n\t/**\n\t * Объект, представляющий опцию \"Все\"\n\t */\n\tconst itemAll = {\n\t\tid: ITEM_ID_ALL,\n\t\tname: useI18n().Common.All,\n\t};\n\n\t/**\n\t * Сброс поиска\n\t */\n\tconst resetSearch = () => {\n\t\tsearchText.value = '';\n\t\tapi.items.value = [];\n\t};\n\n\t/**\n\t * Варианты выбора: props.items + \"Выбрать все\"\n\t */\n\tconst localItems: ComputedRef<Item[]> = computed(() => {\n\t\tconst localItems: Item[] = [];\n\n\t\tif (!multiselect && appendAllValue.value) {\n\t\t\tlocalItems.push(itemAll);\n\t\t}\n\n\t\titems.value?.forEach(item => localItems.push({ ...item }));\n\n\t\treturn localItems;\n\t});\n\n\t/**\n\t * Подготовленный список меню, который содержит в сумме:\n\t * - prop.items: указанный список с учетом фильтра и опций компонента\n\t * - api.items: результаты api запроса, если используется api\n\t *\n\t * @returns Отфильтрованный массив элементов для отображения\n\t */\n\tconst itemsForShow = computed(() => {\n\t\tconst searchString = searchText.value.toLowerCase();\n\t\tconst searchStringInvertKeyboard = invertKeyboardLayout(searchString);\n\n\t\tlet items: NonNullable<Props['items']> = [];\n\n\t\tlocalItems.value.forEach((item) => {\n\t\t\tconst itemName = item.name.toLowerCase();\n\n\t\t\tif (\n\t\t\t\titem.id === Number(searchString) ||\n\t\t\t\titemName.includes(searchString) ||\n\t\t\t\titemName.includes(searchStringInvertKeyboard)\n\t\t\t) {\n\t\t\t\tif (itemName === searchString || itemName === searchStringInvertKeyboard) {\n\t\t\t\t\titems.unshift(item);\n\t\t\t\t} else {\n\t\t\t\t\titems.push(item);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\titems.push(...api.items.value);\n\n\t\t// ввод произвольного значения\n\t\tif (\n\t\t\tappendSearchToResult.value &&\n\t\t\t!!searchText.value &&\n\t\t\t(!items.length || items[0].name.toLowerCase() !== searchString)\n\t\t) {\n\t\t\titems.push({\n\t\t\t\tid: null,\n\t\t\t\tname: searchText.value,\n\t\t\t});\n\t\t}\n\n\t\tif (multiselect) {\n\t\t\titems = items.filter(item => !isSelected(model.value, item));\n\t\t}\n\n\t\treturn items;\n\t});\n\n\t/**\n\t * Выбрать следующее значение\n\t */\n\tconst selectNextItem = () => {\n\t\tif (!Array.isArray(model.value)) {\n\t\t\tconst currentIndex = itemsForShow.value.findIndex(item => item.id === (model.value as Item).id);\n\t\t\tconst nextIndex = (currentIndex + 1) % itemsForShow.value.length;\n\t\t\tmodel.value = { ...itemsForShow.value[nextIndex] };\n\t\t}\n\t};\n\n\t/**\n\t * Удалить выбранное значение по id\n\t *\n\t * @param id Идентификатор элемента для удаления\n\t */\n\tconst deleteItemById = async (id: Item['id']) => {\n\t\tif (Array.isArray(model.value)) {\n\t\t\tmodel.value = model.value.filter(item => item.id !== id);\n\t\t}\n\t};\n\n\treturn {\n\t\tsearchText,\n\t\tresetSearch,\n\t\titems: localItems,\n\t\titemsForShow,\n\t\tselectNextItem,\n\t\tdeleteItemById,\n\t};\n};\n","<script setup lang=\"ts\">\nimport { computed, ref, toRef, watch } from 'vue';\nimport Core from '@/core/core/core';\nimport { TopPopup, TopPopupListItem, TopPopupWidgetInput } from '@/components/popup/popup';\nimport { TopInput, TopPreloader } from '@/components/forms/forms';\nimport type { Item, Props, Slots } from './types';\nimport Selector2ItemMulti from './itemMulti.vue';\nimport { useAPI } from './composables/useAPI';\nimport { useMenu } from './composables/useMenu';\nimport { isSelected } from './utils';\n\nconst props = withDefaults(defineProps<Props>(), {\n\titems: () => [] as Array<Item>,\n\tsize: 's',\n\tminLength: 0,\n\tselectedAsPlaceholder: true,\n\tsearchType: 'popup',\n});\n\nconst model = defineModel<Props['modelValue']>({ required: true });\n\ndefineSlots<Slots>();\n\n/**\n * Основной элемент селектора\n */\nconst topInput = ref<InstanceType<typeof TopInput> | null>(null);\n\n/**\n * Объект для работы с API\n */\nconst api = useAPI(props.apiRequest, props.minLength || 0, props.useCache);\n\n/**\n * Объект для работы с меню\n */\nconst menu = useMenu(model, toRef(props, 'items'), props.multiselect, toRef(props, 'appendAllValue'), toRef(props, 'appendSearchToResult'), api);\n\nconst searchTypeLocal = computed(() => {\n\t// multiselect не поддерживает inline ввода\n\tif (props.searchType === 'inline' && props.multiselect) return 'popup';\n\n\t// В мобильной версии popup работает в полноэкранном режиме\n\tif (props.searchType === 'inline' && Core.state.isMobile) return 'popup';\n\n\treturn props.searchType;\n});\n\nconst component = computed(() => {\n\tif (searchTypeLocal.value === 'inline') return 'TopInput';\n\n\treturn 'div';\n});\n\n// /**\n// * Экземпляр компонента Popup\n// */\n// const popupRef = ref<any>(null);\n\n// /**\n// * Получить доступ к объекту popup\n// *\n// * @returns Объект popup или undefined, если popup не инициализирован\n// */\n// const getPopup = (): TopLibPopup | undefined => {\n// \treturn popupRef.value?.popup;\n// };\n\nif (api.apiRequest) {\n\t// отложенный поиск при вводе текста\n\twatch(menu.searchText, () => api.setSearchTextAndLoad(menu.searchText.value));\n}\n\n/**\n * Выбрать элемент\n *\n * @param item Элемент для выбора\n */\nconst selectItem = (item: Item) => {\n\tif (props.multiselect && Array.isArray(model.value)) {\n\t\tif (!isSelected(model.value, item)) {\n\t\t\tmodel.value = [...model.value, item];\n\t\t}\n\t} else {\n\t\tmodel.value = item;\n\t}\n};\n\nconst placeholder = computed(() => {\n\tif (Array.isArray(model.value) || props.multiselect || !props.selectedAsPlaceholder) {\n\t\treturn props.placeholder;\n\t}\n\n\treturn model.value.name || props.placeholder;\n});\n\n/**\n * Обработчик открытия попапа\n */\nconst onOpen = () => {\n\tif (api.apiRequest) {\n\t\t// при открытии сразу выполнить поиск\n\t\tapi.setSearchTextAndLoad(menu.searchText.value, false);\n\t}\n};\n\n/**\n * Обработчик закрытия попапа\n */\nconst onClose = () => {\n\ttopInput.value?.focus();\n\n\tif (menu.searchText.value) menu.resetSearch();\n};\n\n/**\n * Обработчик прокрутки списка контента\n *\n * Для дозагрузки элеменов через api\n *\n * @param {Event} e - Событие прокрутки\n */\nconst onScrollContentList = (e: Event) => {\n\tconst el = e.target as HTMLElement;\n\n\tif (el.scrollTop / (el.scrollHeight - el.offsetHeight) > 0.8) {\n\t\tapi.loadAppend();\n\t}\n};\n\n// для storybook\nif ((window as any).__STORYBOOK_PREVIEW__) {\n\twatch(\n\t\t() => props.multiselect,\n\t\t() => {\n\t\t\tmodel.value = props.multiselect ? [] : { id: null, name: '' };\n\t\t},\n\t\t{ immediate: true },\n\t);\n\n\twatch(\n\t\t() => props.searchType,\n\t\t() => {\n\t\t\t// пауза для установки props в адресной строке\n\t\t\tsetTimeout(() => {\n\t\t\t\tlocation.reload();\n\t\t\t}, 300);\n\t\t},\n\t);\n}\n</script>\n\n<template>\n\t<TopPopup\n\t\t@open=\"onOpen()\"\n\t\t@close=\"onClose()\"\n\t\t@scrollContentList=\"apiRequest ? onScrollContentList($event) : undefined\"\n\t\t:notch=\"false\"\n\t\t:transitionDuration=\"0\"\n\t>\n\t\t<template #opener>\n\t\t\t<component\n\t\t\t\t:is=\"component\"\n\t\t\t\tref=\"subcomponentSelector\"\n\t\t\t\tv-top-focus.onupdate=\"isError\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'top-selector2' : true,\n\t\t\t\t\t'top-selector2-multiselect': multiselect,\n\t\t\t\t\t['top-size_' + size]: true,\n\t\t\t\t\t['top-disabled']: disabled,\n\t\t\t\t\t['top-forms-focusable']: !disabled,\n\t\t\t\t\t['top-error']: isError,\n\t\t\t\t}\"\n\t\t\t\t@keydown.up.down.enter.space.stop.prevent=\"($event.currentTarget as HTMLElement).click()\"\n\t\t\t\t@keydown.delete=\"model = []\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<template v-if=\"multiselect\">\n\t\t\t\t\t<div class=\"top-selector2_activeItems\">\n\t\t\t\t\t\t<Selector2ItemMulti\n\t\t\t\t\t\t\tv-for=\"item of model as Item[]\"\n\t\t\t\t\t\t\t:id=\"item.id\"\n\t\t\t\t\t\t\t:name=\"item.name\"\n\t\t\t\t\t\t\t@delete=\"menu.deleteItemById\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\n\t\t\t\t<span v-if=\"!multiselect\" class=\"top-selector2_activeName top-ellipsis\">\n\t\t\t\t\t{{ !Array.isArray(model) ? model.name : '' }}\n\t\t\t\t</span>\n\n\t\t\t\t<span\n\t\t\t\t\tv-if=\"addChanger && !multiselect && menu.items.value.length > 1 && !disabled\"\n\t\t\t\t\tclass=\"top-changer top-changer-selector\"\n\t\t\t\t\tdata-top-popup-disabled=\"true\"\n\t\t\t\t\t@click=\"menu.selectNextItem\"\n\t\t\t\t></span>\n\t\t\t</component>\n\t\t</template>\n\n\t\t<template #widget v-if=\"searchType === 'popup'\">\n\t\t\t<TopPopupWidgetInput\n\t\t\t\ttitle=\"Поиск\"\n\t\t\t\ticon=\"\"\n\t\t\t\tv-model=\"menu.searchText.value\"\n\t\t\t\t:isLoading=\"api.isLoading.value && !apiRequest?.params.offset\"\n\t\t\t\t:placeholder\n\t\t\t/>\n\t\t</template>\n\n\t\t<template #contentList>\n\t\t\t<TopPopupListItem\n\t\t\t\tv-for=\"item of menu.itemsForShow.value\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'top-active': !Array.isArray(model) && !multiselect && model.id === item.id && model.name === item.name,\n\t\t\t\t}\"\n\t\t\t\t:key=\"item.id ?? undefined\"\n\t\t\t\t:closeByClick=\"!multiselect || Core.state.isMobile\"\n\t\t\t\t@click=\"selectItem(item)\"\n\t\t\t>\n\t\t\t\t<slot\n\t\t\t\t\tv-if=\"$slots.item\"\n\t\t\t\t\tname=\"item\"\n\t\t\t\t\t:item\n\t\t\t\t></slot>\n\n\t\t\t\t<template\n\t\t\t\t\tv-else\n\t\t\t\t>\n\t\t\t\t\t{{ item.name }}\n\t\t\t\t</template>\n\t\t\t</TopPopupListItem>\n\n\t\t\t<TopPopupListItem\n\t\t\t\tv-if=\"!api.isLoading.value && !menu.itemsForShow.value.length\"\n\t\t\t\ttype=\"regular\"\n\t\t\t>\n\t\t\t\t{{ $i18n.Common.No_results }}\n\t\t\t</TopPopupListItem>\n\n\t\t\t<!-- Индикатор загрузки, первичная дозагрузка отображается в поле поиска, если оно отображено -->\n\t\t\t<TopPopupListItem\n\t\t\t\tv-if=\"api.isLoading.value && (searchType !== 'popup' || apiRequest?.params.offset)\"\n\t\t\t\ttype=\"regular\"\n\t\t\t>\n\t\t\t\t<TopPreloader type=\"circles\"/>\n\t\t\t</TopPopupListItem>\n\t\t</template>\n\t</TopPopup>\n</template>\n\n<style>\n.top-selector2 {\n\twidth: 180px;\n\tmin-height: var(--top-forms-base-height);\n\tbox-sizing: border-box;\n\tposition: relative;\n\tdisplay: flex;\n\toverflow: hidden;\n\tpadding: var(--top-padding-1) var(--top-forms-padding);\n\n\tborder-radius: var(--top-radius-2);\n\tborder: 1px solid var(--top-forms-border-color);\n\tbackground: var(--top-forms-background-color);\n}\n\n.top-selector2::placeholder {\n\tcolor: var(--color-text-1);\n}\n\n.top-selector2-multiselect {\n\twidth: unset;\n\tmin-width: 180px;\n\tpadding: var(--top-padding-1);\n}\n\n.top-selector2.top-active {\n\t--top-forms-border-color: var(--top-forms-border-color-hover);\n}\n\n.top-selector2_activeItems {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: var(--top-padding-1);\n\tmax-width: 100%;\n}\n\n.top-selector2_activeName {\n\twhite-space: nowrap;\n}\n\n.top-changer-selector {\n\ttransform: translateX(-16px);\n}\n</style>\n","import type { ComponentCustomProps } from 'vue';\n\nimport EditArea from './editArea/editArea.vue';\nimport EditInput from './editInput/editInput.vue';\nimport RadioGroup from './radioGroup/radioGroup.vue';\nimport CheckboxGroup from './checkboxGroup/checkboxGroup.vue';\nimport Selector2 from './selector2/selector2.vue';\nimport Menu from './menu/menu.vue';\nimport Info from './info/info.vue';\n\nexport const TopEditArea = EditArea as typeof EditArea & ComponentCustomProps;\nexport const TopEditInput = EditInput as typeof EditInput & ComponentCustomProps;\nexport const TopRadioGroup = RadioGroup as typeof RadioGroup & ComponentCustomProps;\nexport const TopCheckboxGroup = CheckboxGroup as typeof CheckboxGroup & ComponentCustomProps;\nexport const TopSelector2 = Selector2 as typeof Selector2 & ComponentCustomProps;\nexport const TopMenu = Menu as typeof Menu & ComponentCustomProps;\nexport const TopInfo = Info as typeof Info & ComponentCustomProps;\n"],"names":["isChanged","vue","localValue","props","submit","value","emit","intermediateValue","elRef","model","_a","item","_c","_b","onChange","id","index","newModel","items","isLoading","_nextOffset","apiRequest","res","cacheKey","indexWithError","_searchText","callAPIRequest","loadAppend","searchText","minLength","modelValue","itemSelected","useMenu","multiselect","appendAllValue","appendSearchToResult","api","forms","localItems","localItems2","itemAll","itemsForShow","searchStringInvertKeyboard","utils_keyboard","searchString","items2","isSelected","resetSearch","nextIndex","topInput","useAPI","menu","searchTypeLocal","component","selectItem","placeholder","onScrollContentList","e","el","TopEditArea","_sfc_main$6","TopEditInput","_sfc_main$5","TopRadioGroup","_sfc_main$4","TopCheckboxGroup","_sfc_main$3","TopSelector2","_sfc_main$1","TopMenu","menu_vue_vue_type_style_index_0_lang","TopInfo","_sfc_main"],"mappings":"q4BAoBAA,EAAAC,EAAA,SAAA,IAAAC,EAAA,QAAAC,EAAA,YAAA,EAEAC,EAAAC,GAAA,CACCC,EAAA,SAAAD,CAAA,EAEAH,EAAA,MAAAC,EAAA,wEAOC,CAGDD,EAAA,MAAAC,EAAA,kiECxBAI,EAAA,MAAAJ,EAAA,UAAgC,CAAA,mBAMhCG,EAAA,oBAAAC,EAAA,KAAA,i6BCJDC,EAAAP,EAAA,IAAA,IAAA,EAEAA,EAAA,MAAAQ,EAAA,IAAA,gBACCC,EAAAP,EAAA,cAAA,MAAAO,EAAA,KAAAC,GAAAA,EAAA,QAAAF,EAAA,SACCA,EAAA,QAAAG,GAAAC,EAAAV,EAAA,cAAA,YAAAU,EAAA,KAAA,YAAAD,EAAA,QAAA,uGAGuE,EAAA,CAAA,UAAA,EAAA,CAAA,kyCCRzEE,EAAAC,GAAA,qCAICC,IAAA,GACCC,EAAA,KAAAF,CAAA,EAEAE,EAAA,OAAAD,EAAA,CAAA,EAGDP,EAAA,MAAAQ,+tCCZA,MAAAC,EAAAjB,EAAA,IAAA,CAAA,CAAA,EAKAkB,EAAAlB,EAAA,IAAA,EAAA,WAGAmB,uBAGCC,EAAA,OAAA,MAAA,oCAWA,IAAAC,EACAC,SAKCF,EAAA,QAAA,IAAA,mDAMC,OAAAC,EAQF,GAJAH,EAAA,MAAA,GACAG,EAAA,MAAAD,EAAA,KAAA,EACAF,EAAA,MAAA,GAEAG,EAAA,OAAA,oCAGC,QAAA,KAAA,0BAAA,QAEA,+DAID,GAAAE,IAAA,GAAA,sDAGC,4BAODF,4BASAD,EAAA,OAAA,OAAA,EACAA,EAAA,OAAA,OAAAI,EAEA,MAAAH,EAAA,MAAAI,EAAA,MAGAN,EAAAE,EAAA,WAEAJ,EAAA,MAAAI,EAAA,qBAaA,WAAAH,EAAA,MAAA,OAEAE,EAAA,OAAA,OAAAD,EACAC,EAAA,OAAA,OAAAI,EAEA,MAAAH,EAAA,MAAAI,EAAA,MAGAN,EAAAE,EAAA,WAEAJ,EAAA,MAAAA,EAAA,MAAA,OAAAI,EAAA,MAAA,8BA+BD,MAAA,CAAO,WAAAD,EACN,MAAAH,EACA,UAAAC,EACA,WAAAQ,sCAjBAC,EAAA,OAAAC,+ECvHA,MAAA,QAAAC,CAAA,0CAGCnB,EAAA,OAAAmB,EAAA,KAIF,MAAA,QAAAA,CAAA,EACCA,EAAA,KAAAC,GAAAA,EAAA,KAAApB,EAAA,EAAA,EAEAA,EAAA,KAAAmB,EAAA,GCTKE,EAAA,CAAAvB,EAAAS,EAAAe,EAAAC,EAAAC,EAAAC,IAAA,CAWN,MAAAR,EAAA3B,EAAA,IAAA,EAAA,UAMK,KAAAoC,EAAA,QAAA,EAAA,OAAA,YAQJT,EAAA,MAAA,GACAQ,EAAA,MAAA,MAAA,CAAA,GAMDE,EAAArC,EAAA,SAAA,IAAA,kBAGC,MAAA,CAAAgC,GAAAC,EAAA,OACCK,EAAA,KAAAC,CAAA,GAGD9B,EAAAQ,EAAA,QAAA,MAAAR,EAAA,QAAAC,GAAA4B,EAAA,KAAA,CAAA,GAAA5B,CAAA,CAAA,GAEA4B,CAAO,CAAA,EAURE,EAAAxC,EAAA,SAAA,IAAA,+BAECyC,EAAAC,EAAA,qBAAAC,CAAA,mIAaGC,EAAA,QAAAlC,CAAA,EAEAkC,EAAA,KAAAlC,CAAA,EAEF,CAAA,2BAMDwB,EAAA,OAAAP,EAAA,QAAA,CAAAiB,EAAA,QAAAA,EAAA,CAAA,EAAA,KAAA,YAAA,IAAAD,gCAOmB,CAAA,MAKlBC,EAAAA,EAAA,OAAAlC,GAAA,CAAAmC,EAAArC,EAAA,MAAAE,CAAA,CAAA,GAGDkC,CAAO,CAAA,EAyBR,MAAA,CAAO,WAAAjB,EACN,YAAAmB,UAEO,aAAAN,EACP,gDApBC,MAAAO,2CAAA,GAAAP,EAAA,MAAA,OACAhC,EAAA,MAAA,CAAA,GAAAgC,EAAA,MAAAO,CAAA,CAAA,CAAiD,kBASnD,MAAAjC,GAAA,0BAEEN,EAAA,MAAAA,EAAA,MAAA,OAAAE,GAAAA,EAAA,KAAAI,CAAA,iqBChGHkC,EAAAhD,EAAA,IAAA,IAAA,EAKAmC,EAAAc,EAAA/C,EAAA,WAAAA,EAAA,WAAA,EAAAA,EAAA,QAAA,EAKAgD,EAAAnB,EAAAvB,EAAAR,EAAA,MAAAE,EAAA,OAAA,EAAAA,EAAA,YAAAF,EAAA,MAAAE,EAAA,gBAAA,EAAAF,EAAA,MAAAE,EAAA,sBAAA,EAAAiC,CAAA,EAEAgB,EAAAnD,EAAA,SAAA,IAECE,EAAA,aAAA,UAAAA,EAAA,aAGAA,EAAA,aAAA,UAAAkC,EAAA,KAAA,MAAA,SAAA,oBAEa,EAGdgB,EAAApD,EAAA,SAAA,kCAGC,KAAO,EAiBRmC,EAAA,YAECnC,EAAA,MAAAkD,EAAA,WAAA,IAAAf,EAAA,qBAAAe,EAAA,WAAA,KAAA,CAAA,EAQD,MAAAG,EAAA3C,GAAA,CACCR,EAAA,aAAA,MAAA,QAAAM,EAAA,KAAA,yCAKCA,EAAA,MAAAE,GAIF4C,EAAAtD,EAAA,SAAA,IACC,MAAA,QAAAQ,EAAA,KAAA,GAAAN,EAAA,aAAA,CAAAA,EAAA,+DAIiC,SAOjCiC,EAAA,yEAUA1B,EAAAuC,EAAA,QAAA,MAAAvC,EAAA,6CAYD8C,EAAAC,GAAA,CACC,MAAAC,EAAAD,EAAA,OAEAC,EAAA,WAAAA,EAAA,aAAAA,EAAA,cAAA,oBAMD,OAAA,OAAA,wBACCzD,EAAA,wBACa,IAAA,CAEXQ,EAAA,MAAAN,EAAA,YAAA,CAAA,EAAA,CAAA,GAAA,KAAA,KAAA,EAAA,mBAKFF,EAAA,uBACa,IAAA,wCAKL,0yHCxIF0D,EAAAC,EACAC,EAAAC,EACAC,EAAAC,EACAC,EAAAC,EACAC,EAAAC,EACAC,EAAAC,EAAA,UACAC,GAAAC"}
@@ -1,2 +0,0 @@
1
- export * from '../components/formsExt/formsExt'
2
- export {}
@@ -1,567 +0,0 @@
1
- import { Core as Y } from "../core/app.js";
2
- import { defineComponent as B, ref as w, computed as S, createElementBlock as f, openBlock as p, normalizeClass as C, createCommentVNode as k, createElementVNode as L, toDisplayString as V, createVNode as G, withKeys as E, withModifiers as z, createBlock as $, createSlots as O, withCtx as A, createTextVNode as I, watch as M, toRef as P, mergeProps as W, mergeModels as H, useModel as U, Fragment as _, renderList as K, withDirectives as J, vModelRadio as Q, resolveDirective as Z, unref as h, renderSlot as D, resolveDynamicComponent as q } from "vue";
3
- import { w as x, _ as F, f as ee, d as te, u as oe, C as X, x as le } from "../.chunks/forms-BZlFXc5U.es.js";
4
- import { TopPopup as se, TopPopupListItem as N, TopPopupWidgetInput as ae } from "../popup/popup.js";
5
- import { invertKeyboardLayout as re } from "../utils/keyboard.js";
6
- import { _ as ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-BMpVs3Du.es.js";
7
- const j = ["../assets/formsExt.css"].map((l) => import.meta.resolve(l));
8
- Y.insertCSSLinkToPage(j, !0);
9
- const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
10
- __name: "editArea",
11
- props: {
12
- defaultValue: { default: "" },
13
- title: {},
14
- cancelText: { default: "Cancel" },
15
- submitText: { default: "Send" },
16
- closeText: { default: "Close" },
17
- isFocused: { type: Boolean },
18
- forceShowCloseBtn: { type: Boolean },
19
- attachToKeyboard: { type: Boolean },
20
- modelValue: {},
21
- name: {},
22
- placeholder: {},
23
- styling: {},
24
- rows: {},
25
- minHeight: {},
26
- expandable: { type: Boolean, default: !0 },
27
- disabled: { type: Boolean },
28
- readonly: { type: Boolean },
29
- isError: { type: Boolean },
30
- hint: {},
31
- maxLength: {}
32
- },
33
- emits: ["submit", "close", "clickOnTitle"],
34
- setup(l, { emit: e }) {
35
- const s = l, a = e, r = w(s.defaultValue), t = w(s.isFocused), d = S(() => r.value !== s.defaultValue), c = (n) => {
36
- a("submit", n), r.value = s.defaultValue;
37
- }, v = () => {
38
- if (s.forceShowCloseBtn && !d.value) {
39
- a("close");
40
- return;
41
- }
42
- r.value = s.defaultValue;
43
- }, T = () => {
44
- s.attachToKeyboard && a("clickOnTitle");
45
- };
46
- return (n, b) => (p(), f("div", {
47
- class: C({
48
- "top-editArea": !0,
49
- "top-editArea-attachedToKeyboard": n.attachToKeyboard
50
- })
51
- }, [
52
- n.title ? (p(), f("div", {
53
- key: 0,
54
- class: "top-editArea_title",
55
- onClick: b[0] || (b[0] = (u) => T())
56
- }, V(n.title), 1)) : k("", !0),
57
- L("div", {
58
- class: C({
59
- "top-editArea_form": !0,
60
- "top-error": n.isError,
61
- "top-focus": t.value
62
- })
63
- }, [
64
- G(x, {
65
- modelValue: r.value,
66
- "onUpdate:modelValue": b[1] || (b[1] = (u) => r.value = u),
67
- name: n.name,
68
- placeholder: n.placeholder,
69
- rows: n.rows,
70
- minHeight: n.minHeight,
71
- expandable: n.expandable,
72
- disabled: n.disabled,
73
- readonly: n.readonly,
74
- isError: n.isError,
75
- hint: n.hint,
76
- class: "top-editArea_element",
77
- onFocus: b[2] || (b[2] = () => t.value = !0),
78
- onBlur: b[3] || (b[3] = () => t.value = !1),
79
- onKeyup: [
80
- E(v, ["esc"]),
81
- b[4] || (b[4] = E(z((u) => c(r.value), ["ctrl"]), ["enter"]))
82
- ]
83
- }, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
84
- L("div", ie, [
85
- d.value || n.forceShowCloseBtn ? (p(), $(F, {
86
- key: 0,
87
- icon: n.$core.state.isMobile ? "" : "",
88
- class: "top-editArea_button",
89
- color: "theme",
90
- styling: "soft",
91
- onClick: v
92
- }, O({ _: 2 }, [
93
- n.$core.state.isMobile ? void 0 : {
94
- name: "default",
95
- fn: A(() => [
96
- I(V(n.cancelText), 1)
97
- ]),
98
- key: "0"
99
- }
100
- ]), 1032, ["icon"])) : k("", !0),
101
- d.value ? (p(), $(F, {
102
- key: 1,
103
- class: "top-editArea_button",
104
- icon: n.$core.state.isMobile ? "" : "",
105
- onClick: b[5] || (b[5] = (u) => c(r.value))
106
- }, O({ _: 2 }, [
107
- n.$core.state.isMobile ? void 0 : {
108
- name: "default",
109
- fn: A(() => [
110
- I(V(n.submitText), 1)
111
- ]),
112
- key: "0"
113
- }
114
- ]), 1032, ["icon"])) : k("", !0)
115
- ])
116
- ], 2)
117
- ], 2));
118
- }
119
- }), de = { class: "top-editInput" }, pe = /* @__PURE__ */ B({
120
- __name: "editInput",
121
- props: {
122
- modelValue: {},
123
- input: {},
124
- button: {}
125
- },
126
- emits: ["update:modelValue"],
127
- setup(l, { emit: e }) {
128
- const s = l, a = w(s.modelValue);
129
- M(P(s.modelValue), () => {
130
- a.value = s.modelValue;
131
- });
132
- const r = e, t = () => {
133
- r("update:modelValue", a.value);
134
- };
135
- return (d, c) => (p(), f("div", de, [
136
- G(ee, W(d.input, {
137
- onKeydownCapture: c[0] || (c[0] = E(z((v) => a.value = d.modelValue, ["stop"]), ["esc"])),
138
- onKeydown: E(z(t, ["stop"]), ["enter"]),
139
- modelValue: a.value,
140
- "onUpdate:modelValue": c[1] || (c[1] = (v) => a.value = v)
141
- }), null, 16, ["onKeydown", "modelValue"]),
142
- a.value !== d.modelValue ? (p(), $(F, W({
143
- key: 0,
144
- icon: "",
145
- styling: "soft"
146
- }, d.button, { onClick: t }), null, 16)) : k("", !0)
147
- ]));
148
- }
149
- }), ce = ["data-top-icon", "onClick"], me = {
150
- key: 0,
151
- class: "top-radioGroup_circle"
152
- }, fe = ["value", "disabled"], ve = /* @__PURE__ */ B({
153
- __name: "radioGroup",
154
- props: /* @__PURE__ */ H({
155
- modelValue: {},
156
- radiosProps: {},
157
- showIndicator: { type: Boolean },
158
- size: { default: "s" },
159
- isError: { type: Boolean }
160
- }, {
161
- modelValue: {
162
- required: !0
163
- },
164
- modelModifiers: {}
165
- }),
166
- emits: ["update:modelValue"],
167
- setup(l) {
168
- const e = U(l, "modelValue"), s = l, a = w(null);
169
- M(e, () => {
170
- var t, d, c, v, T;
171
- (t = s.radiosProps) != null && t.some((n) => n.value === e.value) || (e.value = ((c = (d = s.radiosProps) == null ? void 0 : d[0]) == null ? void 0 : c.value) ?? ""), (T = (v = a.value) == null ? void 0 : v.querySelector(".radioGroup_item-selected")) == null || T.scrollIntoView();
172
- }, { immediate: !0 });
173
- const r = "radioGroup-" + Math.random();
174
- return (t, d) => (p(), f("div", {
175
- ref_key: "elRef",
176
- ref: a,
177
- class: C({
178
- "top-radioGroup": !0,
179
- "top-scrollBarXHidding": !0,
180
- ["top-size_" + t.size]: !!t.size,
181
- "top-error": t.isError
182
- })
183
- }, [
184
- (p(!0), f(_, null, K(t.radiosProps, (c) => (p(), f("label", {
185
- class: C({
186
- "top-radioGroup_item-selected": c.value === e.value,
187
- "top-radioGroup_item": !0,
188
- "top-forms-focusable": !0,
189
- "top-disabled": c.disabled
190
- }),
191
- "data-top-icon": c.icon,
192
- onClick: (v) => e.value = c.value
193
- }, [
194
- I(V(c.title) + " ", 1),
195
- t.showIndicator ? (p(), f("span", me)) : k("", !0),
196
- J(L("input", {
197
- "onUpdate:modelValue": d[0] || (d[0] = (v) => e.value = v),
198
- name: r,
199
- type: "radio",
200
- class: C({
201
- "top-unvisible": !0
202
- }),
203
- value: c.value,
204
- disabled: c.disabled
205
- }, null, 8, fe), [
206
- [Q, e.value]
207
- ])
208
- ], 10, ce))), 256))
209
- ], 2));
210
- }
211
- }), ye = ["data-top-icon"], he = ["value", "checked", "disabled", "onChange"], be = /* @__PURE__ */ B({
212
- __name: "checkboxGroup",
213
- props: /* @__PURE__ */ H({
214
- modelValue: {},
215
- items: {},
216
- size: { default: "s" },
217
- styling: { default: "outline" },
218
- isError: { type: Boolean }
219
- }, {
220
- modelValue: {
221
- required: !0
222
- },
223
- modelModifiers: {}
224
- }),
225
- emits: ["update:modelValue"],
226
- setup(l) {
227
- const e = U(l, "modelValue"), s = (a) => {
228
- const r = [...e.value], t = r.indexOf(a);
229
- t === -1 ? r.push(a) : r.splice(t, 1), e.value = r;
230
- };
231
- return (a, r) => (p(), f("div", {
232
- class: C({
233
- "top-checkboxGroup": !0,
234
- ["top-checkboxGroup-" + a.styling]: !0,
235
- "top-scrollBarXHidding": !0,
236
- ["top-size_" + a.size]: !!a.size,
237
- "top-error": a.isError
238
- })
239
- }, [
240
- (p(!0), f(_, null, K(a.items, (t) => (p(), f("label", {
241
- key: t.id,
242
- class: C({
243
- "top-checkboxGroup_item": !0,
244
- "top-checkboxGroup_item-selected": e.value.includes(t.id),
245
- "top-forms-focusable": !0,
246
- "top-disabled": t.disabled
247
- }),
248
- "data-top-icon": t.icon
249
- }, [
250
- L("input", {
251
- type: "checkbox",
252
- class: "top-unvisible",
253
- value: t.id,
254
- checked: e.value.includes(t.id),
255
- disabled: t.disabled,
256
- onChange: (d) => s(t.id)
257
- }, null, 40, he),
258
- I(" " + V(t.title), 1)
259
- ], 10, ye))), 128))
260
- ], 2));
261
- }
262
- }), ge = { class: "top-selector2_itemMulti top-ellipsis" }, Te = /* @__PURE__ */ B({
263
- __name: "itemMulti",
264
- props: {
265
- id: {},
266
- name: {}
267
- },
268
- emits: ["delete"],
269
- setup(l) {
270
- return (e, s) => (p(), f("div", ge, [
271
- I(V(e.name) + " ", 1),
272
- L("span", {
273
- class: "top-selector2_itemMultiDelete",
274
- "data-top-icon": "",
275
- onClick: s[0] || (s[0] = (a) => e.$emit("delete", e.id)),
276
- onMousedown: s[1] || (s[1] = z(() => {
277
- }, ["stop"]))
278
- }, null, 32)
279
- ]));
280
- }
281
- }), ke = (l, e, s) => {
282
- const a = w([]), r = w(!1);
283
- let t = "", d;
284
- l && !l.params.limit && (l.params.limit = 100);
285
- const c = async () => {
286
- if (!l) return;
287
- let u, o;
288
- if (s && (l.cache ??= /* @__PURE__ */ new Map(), o = JSON.stringify(l.params), u = l.cache.get(o), u))
289
- return u;
290
- if (r.value = !0, u = await l.call(), r.value = !1, u.errors) return;
291
- if (!Array.isArray(u.result)) {
292
- console.warn("В result ожидался массив");
293
- return;
294
- }
295
- const i = u.result.findIndex((y) => y.id === void 0 || y.name === void 0);
296
- if (i !== -1) {
297
- console.warn(`В result[${i}] нет id или name`);
298
- return;
299
- }
300
- return s && l.cache.set(o, u), u;
301
- }, v = async () => {
302
- if (!l) return;
303
- l.params.offset = 0, l.params.search = t;
304
- const u = await c();
305
- u && (d = u.nextOffset, a.value = u.result);
306
- }, T = async () => {
307
- if (!l || !d || r.value) return;
308
- l.params.offset = d, l.params.search = t;
309
- const u = await c();
310
- u && (d = u.nextOffset, a.value = a.value.concat(u.result));
311
- }, n = te(() => v(), 200);
312
- return {
313
- apiRequest: l,
314
- items: a,
315
- isLoading: r,
316
- loadAppend: T,
317
- setSearchTextAndLoad: (u, o = !0) => {
318
- l && (u.length < e || u === t && a.value.length || (t = u, o ? n() : v()));
319
- }
320
- };
321
- }, Ce = 0, R = (l, e, s = !0) => s && e.id === null ? Array.isArray(l) ? l.some((a) => a.id === e.id && a.name === e.name) : e.name === l.name : Array.isArray(l) ? l.some((a) => a.id === e.id) : e.id === l.id, Ae = (l, e, s, a, r, t) => {
322
- const d = w(""), c = {
323
- id: Ce,
324
- name: oe().Common.All
325
- }, v = () => {
326
- d.value = "", t.items.value = [];
327
- }, T = S(() => {
328
- var i;
329
- const o = [];
330
- return !s && a.value && o.push(c), (i = e.value) == null || i.forEach((y) => o.push({ ...y })), o;
331
- }), n = S(() => {
332
- const o = d.value.toLowerCase(), i = re(o);
333
- let y = [];
334
- return T.value.forEach((m) => {
335
- const g = m.name.toLowerCase();
336
- (m.id === Number(o) || g.includes(o) || g.includes(i)) && (g === o || g === i ? y.unshift(m) : y.push(m));
337
- }), y.push(...t.items.value), r.value && d.value && (!y.length || y[0].name.toLowerCase() !== o) && y.push({
338
- id: null,
339
- name: d.value
340
- }), s && (y = y.filter((m) => !R(l.value, m))), y;
341
- });
342
- return {
343
- searchText: d,
344
- resetSearch: v,
345
- items: T,
346
- itemsForShow: n,
347
- selectNextItem: () => {
348
- if (!Array.isArray(l.value)) {
349
- const i = (n.value.findIndex((y) => y.id === l.value.id) + 1) % n.value.length;
350
- l.value = { ...n.value[i] };
351
- }
352
- },
353
- deleteItemById: async (o) => {
354
- Array.isArray(l.value) && (l.value = l.value.filter((i) => i.id !== o));
355
- }
356
- };
357
- }, $e = {
358
- key: 0,
359
- class: "top-selector2_activeItems"
360
- }, Ve = {
361
- key: 1,
362
- class: "top-selector2_activeName top-ellipsis"
363
- }, we = /* @__PURE__ */ B({
364
- __name: "selector2",
365
- props: /* @__PURE__ */ H({
366
- modelValue: {},
367
- items: { default: () => [] },
368
- multiselect: { type: Boolean },
369
- title: {},
370
- disabled: { type: Boolean },
371
- size: { default: "s" },
372
- isError: { type: Boolean },
373
- apiRequest: {},
374
- minLength: { default: 0 },
375
- useCache: { type: Boolean },
376
- appendSearchToResult: { type: Boolean },
377
- appendAllValue: { type: Boolean },
378
- addChanger: { type: Boolean },
379
- searchType: { default: "popup" },
380
- placeholder: {},
381
- selectedAsPlaceholder: { type: Boolean, default: !0 }
382
- }, {
383
- modelValue: { required: !0 },
384
- modelModifiers: {}
385
- }),
386
- emits: ["update:modelValue"],
387
- setup(l) {
388
- const e = l, s = U(l, "modelValue"), a = w(null), r = ke(e.apiRequest, e.minLength || 0, e.useCache), t = Ae(s, P(e, "items"), e.multiselect, P(e, "appendAllValue"), P(e, "appendSearchToResult"), r), d = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType), c = S(() => d.value === "inline" ? "TopInput" : "div");
389
- r.apiRequest && M(t.searchText, () => r.setSearchTextAndLoad(t.searchText.value));
390
- const v = (o) => {
391
- e.multiselect && Array.isArray(s.value) ? R(s.value, o) || (s.value = [...s.value, o]) : s.value = o;
392
- }, T = S(() => Array.isArray(s.value) || e.multiselect || !e.selectedAsPlaceholder ? e.placeholder : s.value.name || e.placeholder), n = () => {
393
- r.apiRequest && r.setSearchTextAndLoad(t.searchText.value, !1);
394
- }, b = () => {
395
- var o;
396
- (o = a.value) == null || o.focus(), t.searchText.value && t.resetSearch();
397
- }, u = (o) => {
398
- const i = o.target;
399
- i.scrollTop / (i.scrollHeight - i.offsetHeight) > 0.8 && r.loadAppend();
400
- };
401
- return window.__STORYBOOK_PREVIEW__ && (M(
402
- () => e.multiselect,
403
- () => {
404
- s.value = e.multiselect ? [] : { id: null, name: "" };
405
- },
406
- { immediate: !0 }
407
- ), M(
408
- () => e.searchType,
409
- () => {
410
- setTimeout(() => {
411
- location.reload();
412
- }, 300);
413
- }
414
- )), (o, i) => {
415
- const y = Z("top-focus");
416
- return p(), $(h(se), {
417
- onOpen: i[4] || (i[4] = (m) => n()),
418
- onClose: i[5] || (i[5] = (m) => b()),
419
- onScrollContentList: i[6] || (i[6] = (m) => o.apiRequest ? u(m) : void 0),
420
- notch: !1,
421
- transitionDuration: 0
422
- }, O({
423
- opener: A(() => [
424
- J((p(), $(q(c.value), {
425
- ref: "subcomponentSelector",
426
- class: C({
427
- "top-selector2": !0,
428
- "top-selector2-multiselect": o.multiselect,
429
- ["top-size_" + o.size]: !0,
430
- "top-disabled": o.disabled,
431
- "top-forms-focusable": !o.disabled,
432
- "top-error": o.isError
433
- }),
434
- onKeydown: [
435
- i[1] || (i[1] = E(z((m) => m.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
436
- i[2] || (i[2] = E((m) => s.value = [], ["delete"]))
437
- ],
438
- tabindex: "0"
439
- }, {
440
- default: A(() => [
441
- o.multiselect ? (p(), f("div", $e, [
442
- (p(!0), f(_, null, K(s.value, (m) => (p(), $(Te, {
443
- id: m.id,
444
- name: m.name,
445
- onDelete: h(t).deleteItemById
446
- }, null, 8, ["id", "name", "onDelete"]))), 256))
447
- ])) : k("", !0),
448
- o.multiselect ? k("", !0) : (p(), f("span", Ve, V(Array.isArray(s.value) ? "" : s.value.name), 1)),
449
- o.addChanger && !o.multiselect && h(t).items.value.length > 1 && !o.disabled ? (p(), f("span", {
450
- key: 2,
451
- class: "top-changer top-changer-selector",
452
- "data-top-popup-disabled": "true",
453
- onClick: i[0] || (i[0] = //@ts-ignore
454
- (...m) => h(t).selectNextItem && h(t).selectNextItem(...m))
455
- })) : k("", !0)
456
- ]),
457
- _: 1
458
- }, 40, ["class"])), [
459
- [
460
- y,
461
- o.isError,
462
- void 0,
463
- { onupdate: !0 }
464
- ]
465
- ])
466
- ]),
467
- contentList: A(() => {
468
- var m;
469
- return [
470
- (p(!0), f(_, null, K(h(t).itemsForShow.value, (g) => (p(), $(h(N), {
471
- class: C({
472
- "top-active": !Array.isArray(s.value) && !o.multiselect && s.value.id === g.id && s.value.name === g.name
473
- }),
474
- key: g.id ?? void 0,
475
- closeByClick: !o.multiselect || h(X).state.isMobile,
476
- onClick: (Ee) => v(g)
477
- }, {
478
- default: A(() => [
479
- o.$slots.item ? D(o.$slots, "item", {
480
- key: 0,
481
- item: g
482
- }) : (p(), f(_, { key: 1 }, [
483
- I(V(g.name), 1)
484
- ], 64))
485
- ]),
486
- _: 2
487
- }, 1032, ["class", "closeByClick", "onClick"]))), 128)),
488
- !h(r).isLoading.value && !h(t).itemsForShow.value.length ? (p(), $(h(N), {
489
- key: 0,
490
- type: "regular"
491
- }, {
492
- default: A(() => [
493
- I(V(o.$i18n.Common.No_results), 1)
494
- ]),
495
- _: 1
496
- })) : k("", !0),
497
- h(r).isLoading.value && (o.searchType !== "popup" || (m = o.apiRequest) != null && m.params.offset) ? (p(), $(h(N), {
498
- key: 1,
499
- type: "regular"
500
- }, {
501
- default: A(() => [
502
- G(h(le), { type: "circles" })
503
- ]),
504
- _: 1
505
- })) : k("", !0)
506
- ];
507
- }),
508
- _: 2
509
- }, [
510
- o.searchType === "popup" ? {
511
- name: "widget",
512
- fn: A(() => {
513
- var m;
514
- return [
515
- G(h(ae), {
516
- title: "Поиск",
517
- icon: "",
518
- modelValue: h(t).searchText.value,
519
- "onUpdate:modelValue": i[3] || (i[3] = (g) => h(t).searchText.value = g),
520
- isLoading: h(r).isLoading.value && !((m = o.apiRequest) != null && m.params.offset),
521
- placeholder: T.value
522
- }, null, 8, ["modelValue", "isLoading", "placeholder"])
523
- ];
524
- }),
525
- key: "0"
526
- } : void 0
527
- ]), 1024);
528
- };
529
- }
530
- }), Ie = ["data-top-icon"], Be = { class: "top-info_text" }, Se = {
531
- key: 0,
532
- class: "top-info_value"
533
- }, Le = /* @__PURE__ */ B({
534
- __name: "info",
535
- props: {
536
- icon: {},
537
- styling: { default: "default" },
538
- size: { default: "default" }
539
- },
540
- setup(l) {
541
- return (e, s) => (p(), f("div", {
542
- class: C({
543
- "top-info": !0,
544
- ["top-size_" + e.size]: !0,
545
- ["top-info-styling_" + e.styling]: !0
546
- }),
547
- "data-top-icon": e.icon
548
- }, [
549
- L("div", Be, [
550
- D(e.$slots, "default")
551
- ]),
552
- e.$slots.additional ? (p(), f("span", Se, [
553
- D(e.$slots, "additional")
554
- ])) : k("", !0)
555
- ], 10, Ie));
556
- }
557
- }), Ne = ue, Oe = pe, De = ve, Fe = be, He = we, Ue = ne, We = Le;
558
- export {
559
- Fe as TopCheckboxGroup,
560
- Ne as TopEditArea,
561
- Oe as TopEditInput,
562
- We as TopInfo,
563
- Ue as TopMenu,
564
- De as TopRadioGroup,
565
- He as TopSelector2
566
- };
567
- //# sourceMappingURL=formsExt.js.map