@topvisor/ui 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1019) hide show
  1. package/.chunks/core-CXqQSo9c.amd.js +2 -0
  2. package/.chunks/core-CXqQSo9c.amd.js.map +1 -0
  3. package/.chunks/core-CY6RkZz2.es.js +197 -0
  4. package/.chunks/core-CY6RkZz2.es.js.map +1 -0
  5. package/.chunks/datepicker-BiaXdEIn.es.js +44 -0
  6. package/.chunks/datepicker-BiaXdEIn.es.js.map +1 -0
  7. package/.chunks/datepicker-DUoArkDy.amd.js +2 -0
  8. package/.chunks/datepicker-DUoArkDy.amd.js.map +1 -0
  9. package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js +2 -0
  10. package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js.map +1 -0
  11. package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js +188 -0
  12. package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js.map +1 -0
  13. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js +322 -0
  14. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js.map +1 -0
  15. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js +2 -0
  16. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js.map +1 -0
  17. package/.chunks/field-Cvv0SRcJ.amd.js +2 -0
  18. package/.chunks/field-Cvv0SRcJ.amd.js.map +1 -0
  19. package/.chunks/field-CyyFzM-Y.es.js +16 -0
  20. package/.chunks/field-CyyFzM-Y.es.js.map +1 -0
  21. package/.chunks/forms-CgtkdwgA.amd.js +3 -0
  22. package/.chunks/forms-CgtkdwgA.amd.js.map +1 -0
  23. package/.chunks/forms-DarRVke_.es.js +2045 -0
  24. package/.chunks/forms-DarRVke_.es.js.map +1 -0
  25. package/.chunks/index-BEI7XZmU.amd.js +2 -0
  26. package/.chunks/index-BEI7XZmU.amd.js.map +1 -0
  27. package/.chunks/index-igPkes8X.es.js +48 -0
  28. package/.chunks/index-igPkes8X.es.js.map +1 -0
  29. package/.chunks/lazy-40pjr8cZ.es.js +71 -0
  30. package/.chunks/lazy-40pjr8cZ.es.js.map +1 -0
  31. package/.chunks/lazy-DSFLxvj4.amd.js +2 -0
  32. package/.chunks/lazy-DSFLxvj4.amd.js.map +1 -0
  33. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js +2 -0
  34. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js.map +1 -0
  35. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js +184 -0
  36. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js.map +1 -0
  37. package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js +2 -0
  38. package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js.map +1 -0
  39. package/.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js +110 -0
  40. package/.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js.map +1 -0
  41. package/.chunks/notice-CPtAnc7p.amd.js +4 -0
  42. package/.chunks/notice-CPtAnc7p.amd.js.map +1 -0
  43. package/.chunks/notice-fno9saBY.es.js +175 -0
  44. package/.chunks/notice-fno9saBY.es.js.map +1 -0
  45. package/.chunks/page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js +143 -0
  46. package/.chunks/page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js.map +1 -0
  47. package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js +2 -0
  48. package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js.map +1 -0
  49. package/.chunks/popup-AG94kehM.es.js +459 -0
  50. package/.chunks/popup-AG94kehM.es.js.map +1 -0
  51. package/.chunks/popup-CtvJLWn3.amd.js +2 -0
  52. package/.chunks/popup-CtvJLWn3.amd.js.map +1 -0
  53. package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
  54. package/.chunks/punycode.es6-CNOnFR2-.amd.js.map +1 -0
  55. package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
  56. package/.chunks/punycode.es6-CgGegfA_.es.js.map +1 -0
  57. package/.chunks/store-CX_6ZXhO.es.js +29 -0
  58. package/.chunks/store-CX_6ZXhO.es.js.map +1 -0
  59. package/.chunks/store-YRW59xEF.amd.js +2 -0
  60. package/.chunks/store-YRW59xEF.amd.js.map +1 -0
  61. package/.chunks/utils-3M9LC_L_.es.js +79 -0
  62. package/.chunks/utils-3M9LC_L_.es.js.map +1 -0
  63. package/.chunks/utils-BitKP31L.es.js +302 -0
  64. package/.chunks/utils-BitKP31L.es.js.map +1 -0
  65. package/.chunks/utils-D9D3zzjc.amd.js +2 -0
  66. package/.chunks/utils-D9D3zzjc.amd.js.map +1 -0
  67. package/.chunks/utils-DcP4RFmH.amd.js +2 -0
  68. package/.chunks/utils-DcP4RFmH.amd.js.map +1 -0
  69. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js +2 -0
  70. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js.map +1 -0
  71. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js +39 -0
  72. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js.map +1 -0
  73. package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +2 -0
  74. package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +1 -0
  75. package/README.md +82 -33
  76. package/api/additional.amd.js +2 -0
  77. package/api/additional.amd.js.map +1 -0
  78. package/api/additional.d.ts +2 -0
  79. package/api/additional.js +66 -0
  80. package/api/additional.js.map +1 -0
  81. package/api/index.amd.js +2 -0
  82. package/api/index.amd.js.map +1 -0
  83. package/api/index.d.ts +2 -0
  84. package/api/index.js +280 -0
  85. package/api/index.js.map +1 -0
  86. package/assets/charts.css +1 -0
  87. package/assets/core.css +1 -0
  88. package/assets/dialog_selectorRegions.css +1 -0
  89. package/assets/extra.css +1 -0
  90. package/assets/forms.css +1 -0
  91. package/assets/formsExt.css +1 -0
  92. package/assets/layout.css +1 -0
  93. package/assets/listItem.css +1 -0
  94. package/assets/menu.css +1 -0
  95. package/assets/notice.css +1 -0
  96. package/assets/project.css +1 -0
  97. package/assets/tabs.css +1 -0
  98. package/assets/tabsView.css +1 -0
  99. package/assets/themes/dark-th.css +1 -0
  100. package/assets/themes/dark.css +1 -0
  101. package/assets/themes/light.css +1 -0
  102. package/assets/widgetInput.css +1 -0
  103. package/charts/charts.amd.js +2 -0
  104. package/charts/charts.amd.js.map +1 -0
  105. package/charts/charts.d.ts +2 -0
  106. package/charts/charts.js +178 -0
  107. package/charts/charts.js.map +1 -0
  108. package/core/app.amd.js +2 -0
  109. package/core/app.amd.js.map +1 -0
  110. package/core/app.d.ts +2 -0
  111. package/core/app.js +216 -0
  112. package/core/app.js.map +1 -0
  113. package/dialog/dialog.amd.js +2 -0
  114. package/dialog/dialog.amd.js.map +1 -0
  115. package/dialog/dialog.d.ts +2 -0
  116. package/dialog/dialog.js +60 -0
  117. package/dialog/dialog.js.map +1 -0
  118. package/extra/extra.amd.js +2 -0
  119. package/extra/extra.amd.js.map +1 -0
  120. package/extra/extra.d.ts +2 -0
  121. package/extra/extra.js +72 -0
  122. package/extra/extra.js.map +1 -0
  123. package/forms/forms.amd.js +2 -0
  124. package/forms/forms.amd.js.map +1 -0
  125. package/forms/forms.d.ts +2 -0
  126. package/forms/forms.js +19 -0
  127. package/forms/forms.js.map +1 -0
  128. package/forms/helpers.amd.js +2 -0
  129. package/forms/helpers.amd.js.map +1 -0
  130. package/forms/helpers.d.ts +1 -0
  131. package/forms/helpers.js +2 -0
  132. package/forms/helpers.js.map +1 -0
  133. package/formsExt/formsExt.amd.js +2 -0
  134. package/formsExt/formsExt.amd.js.map +1 -0
  135. package/formsExt/formsExt.d.ts +2 -0
  136. package/formsExt/formsExt.js +697 -0
  137. package/formsExt/formsExt.js.map +1 -0
  138. package/icomoon/Read Me.txt +7 -0
  139. package/icomoon/demo-files/demo.css +158 -0
  140. package/icomoon/demo-files/demo.js +30 -0
  141. package/icomoon/demo.css +158 -0
  142. package/icomoon/demo.html +3782 -0
  143. package/icomoon/demo.js +30 -0
  144. package/icomoon/fonts/Topvisor-2.eot +0 -0
  145. package/icomoon/fonts/Topvisor-2.svg +293 -0
  146. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  147. package/icomoon/fonts/Topvisor-2.woff +0 -0
  148. package/icomoon/selection.json +1 -0
  149. package/icomoon/style.css +828 -0
  150. package/jquery-ui.min.css +6 -0
  151. package/layout/layout.amd.js +2 -0
  152. package/layout/layout.amd.js.map +1 -0
  153. package/layout/layout.d.ts +2 -0
  154. package/layout/layout.js +62 -0
  155. package/layout/layout.js.map +1 -0
  156. package/package.json +36 -88
  157. package/popup/popup.amd.js +2 -0
  158. package/popup/popup.amd.js.map +1 -0
  159. package/popup/popup.d.ts +2 -0
  160. package/popup/popup.js +228 -0
  161. package/popup/popup.js.map +1 -0
  162. package/popup/worker.amd.js +2 -0
  163. package/popup/worker.amd.js.map +1 -0
  164. package/popup/worker.d.ts +2 -0
  165. package/popup/worker.js +138 -0
  166. package/popup/worker.js.map +1 -0
  167. package/project/project.amd.js +2 -0
  168. package/project/project.amd.js.map +1 -0
  169. package/project/project.d.ts +2 -0
  170. package/project/project.js +986 -0
  171. package/project/project.js.map +1 -0
  172. package/require/css.amd.js +12 -0
  173. package/src/api/api/additional.d.ts +1 -0
  174. package/src/api/api/client/client.d.ts +55 -0
  175. package/src/api/api/client/request-options.d.ts +1 -0
  176. package/src/api/api/client/request.d.ts +2 -0
  177. package/src/api/api/index.d.ts +12 -0
  178. package/src/api/api/mocker/index.d.ts +9 -0
  179. package/src/api/api/tests/types.test-d.d.ts +1 -0
  180. package/src/api/api/types/api.d.ts +144 -0
  181. package/src/api/api/types/client/client.d.ts +8 -0
  182. package/src/api/api/types/client/middleware.d.ts +65 -0
  183. package/src/api/api/types/client/options.d.ts +60 -0
  184. package/src/api/api/types/client/request-context.d.ts +35 -0
  185. package/src/api/api/types/client/request-options.d.ts +73 -0
  186. package/src/api/api/types/client/request.d.ts +91 -0
  187. package/src/api/api/types/ext.d.ts +51 -0
  188. package/src/api/api/types/field.d.ts +33 -0
  189. package/src/api/api/types/index.d.ts +13 -0
  190. package/src/api/api/types/mocker.d.ts +106 -0
  191. package/src/api/api/types/schema.d.ts +50 -0
  192. package/src/api/api/types/tv.d.ts +59 -0
  193. package/src/api/api/types/utils.d.ts +51 -0
  194. package/src/api/api/utils/common.d.ts +16 -0
  195. package/src/api/api/utils/field.d.ts +8 -0
  196. package/src/api/api/utils/filters.d.ts +48 -0
  197. package/src/api/api/utils/lazy.d.ts +26 -0
  198. package/src/components/charts/charts.d.ts +2 -0
  199. package/src/components/charts/miniChart/miniChart.vue.d.ts +15 -0
  200. package/src/components/charts/miniChart/types.d.ts +92 -0
  201. package/src/components/charts/miniChart/utils/consts.d.ts +8 -0
  202. package/src/components/charts/miniCharts/miniCharts.d.ts +20 -0
  203. package/src/components/charts/miniCharts/miniCharts.vue.d.ts +32 -0
  204. package/src/components/core/notice/item/item.vue.d.ts +10 -0
  205. package/src/components/core/notice/item/types.d.ts +63 -0
  206. package/src/components/core/notice/notice.vue.d.ts +5 -0
  207. package/src/components/core/notice/types.d.ts +1 -0
  208. package/src/components/core/notice/utils.d.ts +27 -0
  209. package/src/components/dialog/dialog/composables/asyncDialogHandle.d.ts +51 -0
  210. package/src/components/dialog/dialog/composables/dialogHandle.d.ts +108 -0
  211. package/src/components/dialog/dialog/composables/types.d.ts +11 -0
  212. package/src/components/dialog/dialog/composables/utils.d.ts +21 -0
  213. package/src/components/dialog/dialog/dialog.vue.d.ts +28 -0
  214. package/src/components/dialog/dialog/dialogs/dialogs.vue.d.ts +13 -0
  215. package/src/components/dialog/dialog/page/page.vue.d.ts +19 -0
  216. package/src/components/dialog/dialog/page/types.d.ts +72 -0
  217. package/src/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +6 -0
  218. package/src/components/dialog/dialog/pageComponent/types.d.ts +18 -0
  219. package/src/components/dialog/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
  220. package/src/components/dialog/dialog/types.d.ts +58 -0
  221. package/src/components/dialog/dialog.d.ts +6 -0
  222. package/src/components/dialog/lib/types.d.ts +44 -0
  223. package/src/components/dialog/lib/utils.d.ts +14 -0
  224. package/src/components/dialog/lib/utils.globalEvents.d.ts +8 -0
  225. package/src/components/dialog/lib/worker.d.ts +76 -0
  226. package/src/components/extra/extra.d.ts +1 -0
  227. package/src/components/extra/rive/rive.vue.d.ts +11 -0
  228. package/src/components/extra/rive/types.d.ts +7 -0
  229. package/src/components/forms/avatar/avatar.vue.d.ts +10 -0
  230. package/src/components/forms/avatar/types.d.ts +32 -0
  231. package/src/components/forms/button/button.vue.d.ts +21 -0
  232. package/src/components/forms/button/types.d.ts +49 -0
  233. package/src/components/forms/caption/caption.vue.d.ts +17 -0
  234. package/src/components/forms/caption/types.d.ts +9 -0
  235. package/src/components/forms/checkbox/checkbox.vue.d.ts +27 -0
  236. package/src/components/forms/checkbox/types.d.ts +21 -0
  237. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +19 -0
  238. package/src/components/forms/controlLabel/types.d.ts +4 -0
  239. package/src/components/forms/forms.d.ts +15 -0
  240. package/src/components/forms/helpers.d.ts +1 -0
  241. package/src/components/forms/hint/hint.vue.d.ts +4 -0
  242. package/src/components/forms/hint/types.d.ts +8 -0
  243. package/src/components/forms/input/input.vue.d.ts +27 -0
  244. package/src/components/forms/input/types.d.ts +23 -0
  245. package/src/components/forms/inputDate/datepicker.d.ts +5 -0
  246. package/src/components/forms/inputDate/inputDate.vue.d.ts +12 -0
  247. package/src/components/forms/inputDate/types.d.ts +1 -0
  248. package/src/components/forms/inputRange/inputRange.vue.d.ts +19 -0
  249. package/src/components/forms/inputRange/types.d.ts +2 -0
  250. package/src/components/forms/loadbar/loadbar.vue.d.ts +3 -0
  251. package/src/components/forms/preloader/preloader.vue.d.ts +4 -0
  252. package/src/components/forms/preloader/types.d.ts +3 -0
  253. package/src/components/forms/radio/radio.vue.d.ts +23 -0
  254. package/src/components/forms/radio/types.d.ts +14 -0
  255. package/src/components/forms/select/select.vue.d.ts +17 -0
  256. package/src/components/forms/select/types.d.ts +58 -0
  257. package/src/components/forms/switcher/switcher.vue.d.ts +23 -0
  258. package/src/components/forms/switcher/types.d.ts +21 -0
  259. package/src/components/forms/textarea/textarea.vue.d.ts +12 -0
  260. package/src/components/forms/textarea/types.d.ts +44 -0
  261. package/src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +16 -0
  262. package/src/components/formsExt/checkboxGroup/types.d.ts +19 -0
  263. package/src/components/formsExt/editArea/editArea.vue.d.ts +18 -0
  264. package/src/components/formsExt/editArea/types.d.ts +33 -0
  265. package/src/components/formsExt/editInput/editInput.vue.d.ts +8 -0
  266. package/src/components/formsExt/editInput/types.d.ts +16 -0
  267. package/src/components/formsExt/formsExt.d.ts +8 -0
  268. package/src/components/formsExt/info/info.vue.d.ts +20 -0
  269. package/src/components/formsExt/info/types.d.ts +21 -0
  270. package/src/components/formsExt/menu/menu.vue.d.ts +16 -0
  271. package/src/components/formsExt/menu/types.d.ts +37 -0
  272. package/src/components/formsExt/policy/policy.vue.d.ts +8 -0
  273. package/src/components/formsExt/policy/types.d.ts +20 -0
  274. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +16 -0
  275. package/src/components/formsExt/radioGroup/types.d.ts +21 -0
  276. package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
  277. package/src/components/formsExt/selector2/composables/useMenu.d.ts +16 -0
  278. package/src/components/formsExt/selector2/itemMulti.vue.d.ts +8 -0
  279. package/src/components/formsExt/selector2/selector2.vue.d.ts +43 -0
  280. package/src/components/formsExt/selector2/types.d.ts +162 -0
  281. package/src/components/formsExt/selector2/utils.d.ts +6 -0
  282. package/src/components/layout/islandRows/islandRows.vue.d.ts +17 -0
  283. package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +18 -0
  284. package/src/components/layout/islandRows/islandRowsRow/types.d.ts +2 -0
  285. package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +18 -0
  286. package/src/components/layout/islandRows/types.d.ts +10 -0
  287. package/src/components/layout/layout.d.ts +4 -0
  288. package/src/components/layout/rows/rows.vue.d.ts +21 -0
  289. package/src/components/layout/rows/types.d.ts +6 -0
  290. package/src/components/popup/alert/alert.vue.d.ts +25 -0
  291. package/src/components/popup/alert/types.d.ts +8 -0
  292. package/src/components/popup/confirm/confirm.vue.d.ts +26 -0
  293. package/src/components/popup/confirm/types.d.ts +21 -0
  294. package/src/components/popup/lib/popup.d.ts +87 -0
  295. package/src/components/popup/lib/popup.globalEvents.d.ts +32 -0
  296. package/src/components/popup/lib/worker.d.ts +77 -0
  297. package/src/components/popup/lib/worker.globalEvents.d.ts +19 -0
  298. package/src/components/popup/popup/listItem.vue.d.ts +22 -0
  299. package/src/components/popup/popup/opener.vue.d.ts +17 -0
  300. package/src/components/popup/popup/popup.vue.d.ts +38 -0
  301. package/src/components/popup/popup/types.d.ts +110 -0
  302. package/src/components/popup/popup/widgetInput.vue.d.ts +17 -0
  303. package/src/components/popup/popup.d.ts +7 -0
  304. package/src/components/popup/prompt/prompt.vue.d.ts +26 -0
  305. package/src/components/popup/prompt/types.d.ts +21 -0
  306. package/src/components/popup/worker.d.ts +1 -0
  307. package/src/components/project/project.d.ts +9 -0
  308. package/src/components/project/selectorCompetitors/composables.d.ts +3 -0
  309. package/src/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +14 -0
  310. package/src/components/project/selectorCompetitors/types.d.ts +30 -0
  311. package/src/components/project/selectorRegion/composables/compare.d.ts +12 -0
  312. package/src/components/project/selectorRegion/composables/selectRegion.d.ts +13 -0
  313. package/src/components/project/selectorRegion/composables/selectSearcher.d.ts +13 -0
  314. package/src/components/project/selectorRegion/composables/selectorRegion.d.ts +25 -0
  315. package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +6 -0
  316. package/src/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +26 -0
  317. package/src/components/project/selectorRegion/selectorRegion.vue.d.ts +23 -0
  318. package/src/components/project/selectorRegion/types.d.ts +172 -0
  319. package/src/components/project/selectorRegion/utils/consts.d.ts +31 -0
  320. package/src/components/project/selectorRegion/utils/utils.d.ts +34 -0
  321. package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +20 -0
  322. package/src/components/project/tagSelector/popupListItem/types.d.ts +33 -0
  323. package/src/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +27 -0
  324. package/src/components/project/tagSelector/popupOpener/types.d.ts +64 -0
  325. package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +4 -0
  326. package/src/components/project/tagSelector/tagIcon/types.d.ts +21 -0
  327. package/src/components/project/tagSelector/tagSelector.vue.d.ts +37 -0
  328. package/src/components/project/tagSelector/tagsDefaults.d.ts +3 -0
  329. package/src/components/project/tagSelector/types.d.ts +140 -0
  330. package/src/components/project/tagSelector/utils/el.d.ts +19 -0
  331. package/src/components/project/tagSelector/utils/utils.d.ts +14 -0
  332. package/src/components/tabs/tabs/content.vue.d.ts +19 -0
  333. package/src/components/tabs/tabs/tab.vue.d.ts +19 -0
  334. package/src/components/tabs/tabs/tabs.vue.d.ts +21 -0
  335. package/src/components/tabs/tabs/types.d.ts +19 -0
  336. package/src/components/tabs/tabs.d.ts +3 -0
  337. package/src/components/tabsView/tabsView/menu.vue.d.ts +32 -0
  338. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +3 -0
  339. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +23 -0
  340. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +20 -0
  341. package/src/components/tabsView/tabsView/store.d.ts +12 -0
  342. package/src/components/tabsView/tabsView/tabsView.vue.d.ts +34 -0
  343. package/src/components/tabsView/tabsView/types.d.ts +98 -0
  344. package/src/components/tabsView/tabsView/utils.d.ts +11 -0
  345. package/src/components/tabsView/tabsView.d.ts +3 -0
  346. package/src/core/app.d.ts +8 -0
  347. package/src/core/core/core.d.ts +113 -0
  348. package/src/core/core/events/resize.d.ts +16 -0
  349. package/src/core/core/events.d.ts +15 -0
  350. package/src/core/core/options.d.ts +47 -0
  351. package/src/core/core/preloaders.d.ts +19 -0
  352. package/src/core/core/state.d.ts +49 -0
  353. package/src/core/directives/data.d.ts +10 -0
  354. package/src/core/directives/focus.d.ts +10 -0
  355. package/src/core/directives/preloader.d.ts +8 -0
  356. package/src/core/directives/scrollIntoView.d.ts +3 -0
  357. package/src/core/directives/scrollShadow.d.ts +15 -0
  358. package/src/core/directives/sticky.d.ts +10 -0
  359. package/src/core/directives/swimUp.d.ts +15 -0
  360. package/src/core/directives/tooltip.d.ts +10 -0
  361. package/src/core/plugins/core.d.ts +60 -0
  362. package/src/core/plugins/i18n.d.ts +97 -0
  363. package/src/core/plugins/piniaTPA.d.ts +17 -0
  364. package/src/core/utils/check.d.ts +26 -0
  365. package/src/core/utils/clipboard.d.ts +12 -0
  366. package/src/core/utils/date.d.ts +70 -0
  367. package/src/core/utils/device.d.ts +50 -0
  368. package/src/core/utils/dom.d.ts +104 -0
  369. package/src/core/utils/image.d.ts +16 -0
  370. package/src/core/utils/keyboard.d.ts +8 -0
  371. package/src/core/utils/lodash.d.ts +6 -0
  372. package/src/core/utils/number.d.ts +17 -0
  373. package/src/core/utils/price.d.ts +10 -0
  374. package/src/core/utils/route.d.ts +33 -0
  375. package/src/core/utils/scroll.d.ts +32 -0
  376. package/src/core/utils/searchers.d.ts +38 -0
  377. package/src/core/utils/store/localStorage.d.ts +6 -0
  378. package/src/core/utils/store/plugin.d.ts +24 -0
  379. package/src/core/utils/store/store.d.ts +34 -0
  380. package/src/core/utils/store.d.ts +6 -0
  381. package/src/core/utils/string.d.ts +100 -0
  382. package/src/core/utils/system.d.ts +25 -0
  383. package/src/core/utils/url.d.ts +36 -0
  384. package/tabs/tabs.amd.js +2 -0
  385. package/tabs/tabs.amd.js.map +1 -0
  386. package/tabs/tabs.d.ts +2 -0
  387. package/tabs/tabs.js +81 -0
  388. package/tabs/tabs.js.map +1 -0
  389. package/tabsView/tabsView.amd.js +2 -0
  390. package/tabsView/tabsView.amd.js.map +1 -0
  391. package/tabsView/tabsView.d.ts +2 -0
  392. package/tabsView/tabsView.js +307 -0
  393. package/tabsView/tabsView.js.map +1 -0
  394. package/utils/check.amd.js +2 -0
  395. package/utils/check.amd.js.map +1 -0
  396. package/utils/check.d.ts +2 -0
  397. package/utils/check.js +26 -0
  398. package/utils/check.js.map +1 -0
  399. package/utils/clipboard.amd.js +6 -0
  400. package/utils/clipboard.amd.js.map +1 -0
  401. package/utils/clipboard.d.ts +2 -0
  402. package/utils/clipboard.js +33 -0
  403. package/utils/clipboard.js.map +1 -0
  404. package/utils/date.amd.js +2 -0
  405. package/utils/date.amd.js.map +1 -0
  406. package/utils/date.d.ts +2 -0
  407. package/utils/date.js +12 -0
  408. package/utils/date.js.map +1 -0
  409. package/utils/device.amd.js +2 -0
  410. package/utils/device.amd.js.map +1 -0
  411. package/utils/device.d.ts +2 -0
  412. package/utils/device.js +15 -0
  413. package/utils/device.js.map +1 -0
  414. package/utils/dom.amd.js +2 -0
  415. package/utils/dom.amd.js.map +1 -0
  416. package/utils/dom.d.ts +6 -0
  417. package/utils/dom.js +80 -0
  418. package/utils/dom.js.map +1 -0
  419. package/utils/image.amd.js +12 -0
  420. package/utils/image.amd.js.map +1 -0
  421. package/utils/image.d.ts +2 -0
  422. package/utils/image.js +23 -0
  423. package/utils/image.js.map +1 -0
  424. package/utils/keyboard.amd.js +2 -0
  425. package/utils/keyboard.amd.js.map +1 -0
  426. package/utils/keyboard.d.ts +2 -0
  427. package/utils/keyboard.js +12 -0
  428. package/utils/keyboard.js.map +1 -0
  429. package/utils/lodash.amd.js +2 -0
  430. package/utils/lodash.amd.js.map +1 -0
  431. package/utils/lodash.d.ts +2 -0
  432. package/utils/lodash.js +9 -0
  433. package/utils/lodash.js.map +1 -0
  434. package/utils/number.amd.js +2 -0
  435. package/utils/number.amd.js.map +1 -0
  436. package/utils/number.d.ts +2 -0
  437. package/utils/number.js +13 -0
  438. package/utils/number.js.map +1 -0
  439. package/utils/price.amd.js +2 -0
  440. package/utils/price.amd.js.map +1 -0
  441. package/utils/price.d.ts +2 -0
  442. package/utils/price.js +10 -0
  443. package/utils/price.js.map +1 -0
  444. package/utils/route.amd.js +2 -0
  445. package/utils/route.amd.js.map +1 -0
  446. package/utils/route.d.ts +2 -0
  447. package/utils/route.js +38 -0
  448. package/utils/route.js.map +1 -0
  449. package/utils/scroll.amd.js +2 -0
  450. package/utils/scroll.amd.js.map +1 -0
  451. package/utils/scroll.d.ts +2 -0
  452. package/utils/scroll.js +45 -0
  453. package/utils/scroll.js.map +1 -0
  454. package/utils/searchers.amd.js +2 -0
  455. package/utils/searchers.amd.js.map +1 -0
  456. package/utils/searchers.d.ts +2 -0
  457. package/utils/searchers.js +134 -0
  458. package/utils/searchers.js.map +1 -0
  459. package/utils/store.amd.js +2 -0
  460. package/utils/store.amd.js.map +1 -0
  461. package/utils/store.d.ts +2 -0
  462. package/utils/store.js +7 -0
  463. package/utils/store.js.map +1 -0
  464. package/utils/string.amd.js +2 -0
  465. package/utils/string.amd.js.map +1 -0
  466. package/utils/string.d.ts +2 -0
  467. package/utils/string.js +152 -0
  468. package/utils/string.js.map +1 -0
  469. package/utils/system.amd.js +2 -0
  470. package/utils/system.amd.js.map +1 -0
  471. package/utils/system.d.ts +2 -0
  472. package/utils/system.js +29 -0
  473. package/utils/system.js.map +1 -0
  474. package/utils/url.amd.js +3 -0
  475. package/utils/url.amd.js.map +1 -0
  476. package/utils/url.d.ts +2 -0
  477. package/utils/url.js +48 -0
  478. package/utils/url.js.map +1 -0
  479. package/web-types.json +130 -130
  480. package/.gitlab-ci/.gitlab-ci.yml +0 -26
  481. package/.gitlab-ci/common/install.yml +0 -21
  482. package/.gitlab-ci/common/lint.yml +0 -14
  483. package/.gitlab-ci/common/version.yml +0 -23
  484. package/.gitlab-ci/storybook/build.yml +0 -20
  485. package/.gitlab-ci/storybook/deploy.yml +0 -49
  486. package/.gitlab-ci/ui/build.yml +0 -13
  487. package/.gitlab-ci/ui/deploy.yml +0 -23
  488. package/.idea/.gitignore +0 -11
  489. package/.idea/codeStyles/Project.xml +0 -205
  490. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  491. package/.idea/externalDependencies.xml +0 -6
  492. package/.idea/inspectionProfiles/Disabled.xml +0 -824
  493. package/.idea/inspectionProfiles/Project_Default.xml +0 -33
  494. package/.idea/php.xml +0 -19
  495. package/.idea/vcs.xml +0 -6
  496. package/.storybook/TopTheme.ts +0 -115
  497. package/.storybook/TopThemeManager.ts +0 -53
  498. package/.storybook/main.ts +0 -51
  499. package/.storybook/manager.ts +0 -25
  500. package/.storybook/preview-head.html +0 -21
  501. package/.storybook/preview.ts +0 -47
  502. package/.storybook/vue/coreDecorator.ts +0 -77
  503. package/.storybook/vue/vModelDecorator.ts +0 -46
  504. package/.versionrc.json +0 -16
  505. package/.vscode/extensions.json +0 -11
  506. package/.vscode/keybindings.example.json +0 -121
  507. package/.vscode/settings.json +0 -45
  508. package/CHANGELOG.md +0 -223
  509. package/NPM.md +0 -25
  510. package/PUBLISH.md +0 -63
  511. package/STORYBOOK.md +0 -48
  512. package/USE_IN_PROJECT.md +0 -32
  513. package/build/afterBuild.sh +0 -11
  514. package/build/cssModules.ts +0 -39
  515. package/build/genDocs.sh +0 -19
  516. package/build/plugin/amdFix.ts +0 -83
  517. package/build/plugin/autoloadCSS.ts +0 -155
  518. package/build/rollup.config.ts +0 -37
  519. package/public/README.md +0 -82
  520. package/public/icomoon/Read Me.txt +0 -7
  521. package/public/icomoon/Topvisor icons.json +0 -6260
  522. package/public/icomoon/demo-files/demo.css +0 -158
  523. package/public/icomoon/demo-files/demo.js +0 -30
  524. package/public/icomoon/demo.html +0 -3558
  525. package/public/icomoon/fonts/Topvisor-2.eot +0 -0
  526. package/public/icomoon/fonts/Topvisor-2.svg +0 -277
  527. package/public/icomoon/fonts/Topvisor-2.ttf +0 -0
  528. package/public/icomoon/fonts/Topvisor-2.woff +0 -0
  529. package/public/icomoon/selection.json +0 -1
  530. package/public/icomoon/style.css +0 -780
  531. package/public/jquery-ui.min.css +0 -6
  532. package/public/require/css.amd.js +0 -12
  533. package/src/components/charts/charts.ts +0 -8
  534. package/src/components/charts/miniChart/miniChart.stories.ts +0 -67
  535. package/src/components/charts/miniChart/miniChart.ts +0 -110
  536. package/src/components/charts/miniChart/miniChart.vue +0 -158
  537. package/src/components/charts/miniChart/stories/README.md +0 -9
  538. package/src/components/charts/miniChart/stories/dummy.ts +0 -25
  539. package/src/components/charts/miniChart/styles/miniChart.css +0 -87
  540. package/src/components/charts/miniChart/utils/consts.ts +0 -9
  541. package/src/components/charts/miniCharts/miniCharts.stories.ts +0 -76
  542. package/src/components/charts/miniCharts/miniCharts.ts +0 -24
  543. package/src/components/charts/miniCharts/miniCharts.vue +0 -128
  544. package/src/components/charts/miniCharts/stories/README.md +0 -18
  545. package/src/components/charts/miniCharts/stories/dummy.ts +0 -70
  546. package/src/components/charts/miniCharts/stories/overview.vue +0 -139
  547. package/src/components/charts/miniCharts/styles/miniCharts.css +0 -32
  548. package/src/components/component.ts +0 -130
  549. package/src/components/core/core.mdx +0 -7
  550. package/src/components/core/notice/item/item.vue +0 -145
  551. package/src/components/core/notice/item/style.css +0 -70
  552. package/src/components/core/notice/item/types.ts +0 -71
  553. package/src/components/core/notice/notice.stories.ts +0 -105
  554. package/src/components/core/notice/notice.vue +0 -69
  555. package/src/components/core/notice/stories/README.md +0 -34
  556. package/src/components/core/notice/types.ts +0 -1
  557. package/src/components/core/notice/utils.ts +0 -115
  558. package/src/components/dialog/dialog/Dialog (code).mdx +0 -61
  559. package/src/components/dialog/dialog/composables/asyncDialogHandle.ts +0 -99
  560. package/src/components/dialog/dialog/composables/dialogHandle.ts +0 -176
  561. package/src/components/dialog/dialog/composables/types.ts +0 -12
  562. package/src/components/dialog/dialog/composables/utils.ts +0 -39
  563. package/src/components/dialog/dialog/dialog.stories.ts +0 -83
  564. package/src/components/dialog/dialog/dialog.vue +0 -74
  565. package/src/components/dialog/dialog/dialogs/dialogs.vue +0 -58
  566. package/src/components/dialog/dialog/page/page.vue +0 -86
  567. package/src/components/dialog/dialog/page/types.ts +0 -84
  568. package/src/components/dialog/dialog/page.stories.ts +0 -27
  569. package/src/components/dialog/dialog/pageComponent/pageComponent.vue +0 -57
  570. package/src/components/dialog/dialog/pageComponent/types.ts +0 -21
  571. package/src/components/dialog/dialog/pageComponent.stories.ts +0 -27
  572. package/src/components/dialog/dialog/stories/README.md +0 -117
  573. package/src/components/dialog/dialog/stories/autoload.ts +0 -12
  574. package/src/components/dialog/dialog/stories/dialog_example/dialog_example.vue +0 -73
  575. package/src/components/dialog/dialog/stories/dialog_example/pages/async.vue +0 -57
  576. package/src/components/dialog/dialog/stories/dialog_example/pages/default.vue +0 -64
  577. package/src/components/dialog/dialog/stories/dialog_example/pages/headerButtons.vue +0 -56
  578. package/src/components/dialog/dialog/stories/dialog_example/pages/utils.ts +0 -26
  579. package/src/components/dialog/dialog/stories/dialog_example/pages/withoutCache.vue +0 -64
  580. package/src/components/dialog/dialog/stories/page/README.md +0 -24
  581. package/src/components/dialog/dialog/stories/pageComponent/README.md +0 -12
  582. package/src/components/dialog/dialog/style/dialog.css +0 -316
  583. package/src/components/dialog/dialog/style/dialog.m.css +0 -40
  584. package/src/components/dialog/dialog/style/dialog.pc.css +0 -73
  585. package/src/components/dialog/dialog/style/modern/dialog.css +0 -12
  586. package/src/components/dialog/dialog/style/modern/dialog.pc.css +0 -3
  587. package/src/components/dialog/dialog/types.ts +0 -69
  588. package/src/components/dialog/dialog.ts +0 -7
  589. package/src/components/dialog/lib/types.ts +0 -26
  590. package/src/components/dialog/lib/utils.globalEvents.ts +0 -175
  591. package/src/components/dialog/lib/utils.ts +0 -525
  592. package/src/components/dialog/lib/worker.ts +0 -273
  593. package/src/components/forms/README.mdx +0 -10
  594. package/src/components/forms/avatar/avatar.stories.ts +0 -38
  595. package/src/components/forms/avatar/avatar.ts +0 -40
  596. package/src/components/forms/avatar/avatar.vue +0 -77
  597. package/src/components/forms/avatar/stories/overview.vue +0 -28
  598. package/src/components/forms/button/button.stories.ts +0 -118
  599. package/src/components/forms/button/button.vue +0 -111
  600. package/src/components/forms/button/stories/README.md +0 -9
  601. package/src/components/forms/button/stories/overview.vue +0 -33
  602. package/src/components/forms/button/style/button.css +0 -139
  603. package/src/components/forms/button/style/style-outline.css +0 -129
  604. package/src/components/forms/button/style/style-soft.css +0 -89
  605. package/src/components/forms/button/style/style-transparent.css +0 -39
  606. package/src/components/forms/button/types.ts +0 -66
  607. package/src/components/forms/checkbox/checkbox.stories.ts +0 -33
  608. package/src/components/forms/checkbox/checkbox.ts +0 -21
  609. package/src/components/forms/checkbox/checkbox.vue +0 -114
  610. package/src/components/forms/checkbox/stories/overview.vue +0 -171
  611. package/src/components/forms/controlLabel/controlLabel.stories.ts +0 -32
  612. package/src/components/forms/controlLabel/controlLabel.ts +0 -4
  613. package/src/components/forms/controlLabel/controlLabel.vue +0 -54
  614. package/src/components/forms/forms.ts +0 -40
  615. package/src/components/forms/helpers.ts +0 -11
  616. package/src/components/forms/hint/hint.stories.ts +0 -41
  617. package/src/components/forms/hint/hint.ts +0 -8
  618. package/src/components/forms/hint/hint.vue +0 -32
  619. package/src/components/forms/input/input.stories.ts +0 -32
  620. package/src/components/forms/input/input.ts +0 -47
  621. package/src/components/forms/input/input.vue +0 -189
  622. package/src/components/forms/input/stories/overview.vue +0 -61
  623. package/src/components/forms/inputDate/datepicker.css +0 -246
  624. package/src/components/forms/inputDate/datepicker.ts +0 -101
  625. package/src/components/forms/inputDate/inputDate.stories.ts +0 -41
  626. package/src/components/forms/inputDate/inputDate.ts +0 -5
  627. package/src/components/forms/inputDate/inputDate.vue +0 -133
  628. package/src/components/forms/inputDate/stories/overview.vue +0 -35
  629. package/src/components/forms/inputRange/inputRange.stories.ts +0 -53
  630. package/src/components/forms/inputRange/inputRange.ts +0 -3
  631. package/src/components/forms/inputRange/inputRange.vue +0 -39
  632. package/src/components/forms/inputRange/stories/overview.vue +0 -129
  633. package/src/components/forms/loadbar/loadbar.stories.ts +0 -17
  634. package/src/components/forms/loadbar/loadbar.vue +0 -37
  635. package/src/components/forms/radio/radio.stories.ts +0 -34
  636. package/src/components/forms/radio/radio.ts +0 -15
  637. package/src/components/forms/radio/radio.vue +0 -97
  638. package/src/components/forms/radio/stories/overview.vue +0 -79
  639. package/src/components/forms/select/select.stories.ts +0 -69
  640. package/src/components/forms/select/select.ts +0 -69
  641. package/src/components/forms/select/select.vue +0 -300
  642. package/src/components/forms/select/stories/exampleOptions.ts +0 -61
  643. package/src/components/forms/select/stories/overview.vue +0 -72
  644. package/src/components/forms/switcher/stories/overview.vue +0 -139
  645. package/src/components/forms/switcher/switcher.stories.ts +0 -33
  646. package/src/components/forms/switcher/switcher.ts +0 -22
  647. package/src/components/forms/switcher/switcher.vue +0 -118
  648. package/src/components/forms/textarea/stories/overview.vue +0 -62
  649. package/src/components/forms/textarea/textarea.stories.ts +0 -34
  650. package/src/components/forms/textarea/textarea.ts +0 -47
  651. package/src/components/forms/textarea/textarea.vue +0 -123
  652. package/src/components/formsExt/README.mdx +0 -5
  653. package/src/components/formsExt/editArea/editArea.stories.ts +0 -41
  654. package/src/components/formsExt/editArea/editArea.ts +0 -41
  655. package/src/components/formsExt/editArea/editArea.vue +0 -198
  656. package/src/components/formsExt/editArea/stories/README.md +0 -21
  657. package/src/components/formsExt/editArea/stories/overview.vue +0 -67
  658. package/src/components/formsExt/editInput/editInput.stories.ts +0 -36
  659. package/src/components/formsExt/editInput/editInput.ts +0 -20
  660. package/src/components/formsExt/editInput/editInput.vue +0 -54
  661. package/src/components/formsExt/editInput/stories/overview.vue +0 -54
  662. package/src/components/formsExt/formsExt.ts +0 -15
  663. package/src/components/formsExt/info/info.stories.ts +0 -35
  664. package/src/components/formsExt/info/info.vue +0 -84
  665. package/src/components/formsExt/info/stories/overview.vue +0 -29
  666. package/src/components/formsExt/info/types.ts +0 -25
  667. package/src/components/formsExt/menu/menu.stories.ts +0 -59
  668. package/src/components/formsExt/menu/menu.ts +0 -45
  669. package/src/components/formsExt/menu/menu.vue +0 -321
  670. package/src/components/formsExt/menu/stories/items.ts +0 -18
  671. package/src/components/formsExt/menu/stories/overview.vue +0 -52
  672. package/src/components/formsExt/navigationMenu/item.vue +0 -186
  673. package/src/components/formsExt/navigationMenu/navigationMenu.stories.ts +0 -37
  674. package/src/components/formsExt/navigationMenu/navigationMenu.ts +0 -28
  675. package/src/components/formsExt/navigationMenu/navigationMenu.vue +0 -40
  676. package/src/components/formsExt/navigationMenu/stories/items.ts +0 -116
  677. package/src/components/formsExt/radioGroup/radioGroup.stories.ts +0 -51
  678. package/src/components/formsExt/radioGroup/radioGroup.ts +0 -28
  679. package/src/components/formsExt/radioGroup/radioGroup.vue +0 -146
  680. package/src/components/formsExt/radioGroup/stories/overview.vue +0 -78
  681. package/src/components/formsExt/radioGroup/styles/top-scrollBar.css +0 -52
  682. package/src/components/formsExt/selector2/api.ts +0 -148
  683. package/src/components/formsExt/selector2/itemMulti.vue +0 -57
  684. package/src/components/formsExt/selector2/selector2.stories.ts +0 -48
  685. package/src/components/formsExt/selector2/selector2.ts +0 -145
  686. package/src/components/formsExt/selector2/selector2.vue +0 -389
  687. package/src/components/formsExt/selector2/stories/dummyAPIRequest.ts +0 -58
  688. package/src/components/formsExt/selector2/stories/overview.vue +0 -93
  689. package/src/components/helper.js +0 -10
  690. package/src/components/helpersStories.ts +0 -205
  691. package/src/components/layout/islandRows/islandRows.stories.ts +0 -139
  692. package/src/components/layout/islandRows/islandRows.vue +0 -53
  693. package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue +0 -36
  694. package/src/components/layout/islandRows/islandRowsRow/types.ts +0 -1
  695. package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue +0 -16
  696. package/src/components/layout/islandRows/stories/README.md +0 -8
  697. package/src/components/layout/islandRows/types.ts +0 -11
  698. package/src/components/layout/layout.ts +0 -11
  699. package/src/components/layout/rows/rows.stories.ts +0 -48
  700. package/src/components/layout/rows/rows.vue +0 -46
  701. package/src/components/layout/rows/stories/README.md +0 -10
  702. package/src/components/layout/rows/types.ts +0 -6
  703. package/src/components/popup/alert/alert.stories.ts +0 -71
  704. package/src/components/popup/alert/alert.ts +0 -11
  705. package/src/components/popup/alert/alert.vue +0 -46
  706. package/src/components/popup/alert/stories/overview.vue +0 -40
  707. package/src/components/popup/confirm/confirm.stories.ts +0 -75
  708. package/src/components/popup/confirm/confirm.ts +0 -26
  709. package/src/components/popup/confirm/confirm.vue +0 -75
  710. package/src/components/popup/confirm/stories/overview.vue +0 -62
  711. package/src/components/popup/lib/popup.globalEvents.ts +0 -239
  712. package/src/components/popup/lib/popup.ts +0 -790
  713. package/src/components/popup/lib/worker.globalEvents.ts +0 -97
  714. package/src/components/popup/lib/worker.ts +0 -286
  715. package/src/components/popup/popup/listItem.vue +0 -35
  716. package/src/components/popup/popup/opener.vue +0 -81
  717. package/src/components/popup/popup/popup.stories.ts +0 -74
  718. package/src/components/popup/popup/popup.ts +0 -120
  719. package/src/components/popup/popup/popup.vue +0 -168
  720. package/src/components/popup/popup/stories/README.md +0 -55
  721. package/src/components/popup/popup/stories/listItems.vue +0 -44
  722. package/src/components/popup/popup/stories/listSubItems.vue +0 -47
  723. package/src/components/popup/popup/stories/overview.vue +0 -210
  724. package/src/components/popup/popup/style/popup.css +0 -345
  725. package/src/components/popup/popup/style/popup.m.css +0 -72
  726. package/src/components/popup/popup/style/popup.pc.css +0 -26
  727. package/src/components/popup/popup/widgetInput.vue +0 -43
  728. package/src/components/popup/popup.ts +0 -17
  729. package/src/components/popup/prompt/prompt.stories.ts +0 -78
  730. package/src/components/popup/prompt/prompt.ts +0 -26
  731. package/src/components/popup/prompt/prompt.vue +0 -84
  732. package/src/components/popup/prompt/stories/overview.vue +0 -50
  733. package/src/components/popup/worker.ts +0 -1
  734. package/src/components/project/project.ts +0 -23
  735. package/src/components/project/selectorCompetitors/composables.ts +0 -21
  736. package/src/components/project/selectorCompetitors/selectorCompetitors.stories.ts +0 -33
  737. package/src/components/project/selectorCompetitors/selectorCompetitors.ts +0 -27
  738. package/src/components/project/selectorCompetitors/selectorCompetitors.vue +0 -75
  739. package/src/components/project/selectorCompetitors/stories/README.md +0 -20
  740. package/src/components/project/selectorCompetitors/stories/items.ts +0 -30
  741. package/src/components/project/selectorCompetitors/types/competitor.ts +0 -7
  742. package/src/components/project/selectorRegion/composables/compare.ts +0 -87
  743. package/src/components/project/selectorRegion/composables/selectRegion.ts +0 -147
  744. package/src/components/project/selectorRegion/composables/selectSearcher.ts +0 -64
  745. package/src/components/project/selectorRegion/composables/selectorRegion.ts +0 -167
  746. package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue +0 -190
  747. package/src/components/project/selectorRegion/dialog_selectorRegions/style.css +0 -49
  748. package/src/components/project/selectorRegion/dialog_selectorRegions/types.ts +0 -31
  749. package/src/components/project/selectorRegion/selectorRegion.stories.ts +0 -85
  750. package/src/components/project/selectorRegion/selectorRegion.ts +0 -204
  751. package/src/components/project/selectorRegion/selectorRegion.vue +0 -335
  752. package/src/components/project/selectorRegion/stories/README.md +0 -36
  753. package/src/components/project/selectorRegion/stories/searchers.ts +0 -77
  754. package/src/components/project/selectorRegion/styles/searcherColors.css +0 -41
  755. package/src/components/project/selectorRegion/utils/consts.ts +0 -73
  756. package/src/components/project/selectorRegion/utils/utils.ts +0 -167
  757. package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue +0 -209
  758. package/src/components/project/tagSelector/popupListItem/types.ts +0 -40
  759. package/src/components/project/tagSelector/popupOpener/popupOpener.vue +0 -145
  760. package/src/components/project/tagSelector/popupOpener/types.ts +0 -71
  761. package/src/components/project/tagSelector/stories/README.md +0 -62
  762. package/src/components/project/tagSelector/stories/overview.vue +0 -152
  763. package/src/components/project/tagSelector/tagIcon/tagIcon.vue +0 -97
  764. package/src/components/project/tagSelector/tagIcon/types.ts +0 -25
  765. package/src/components/project/tagSelector/tagSelector.stories.ts +0 -51
  766. package/src/components/project/tagSelector/tagSelector.vue +0 -359
  767. package/src/components/project/tagSelector/tagsDefaults.ts +0 -54
  768. package/src/components/project/tagSelector/types.ts +0 -159
  769. package/src/components/project/tagSelector/utils/el.ts +0 -151
  770. package/src/components/project/tagSelector/utils/utils.ts +0 -30
  771. package/src/components/tabs/tabs/content.vue +0 -24
  772. package/src/components/tabs/tabs/stories/README.md +0 -12
  773. package/src/components/tabs/tabs/tab.vue +0 -49
  774. package/src/components/tabs/tabs/tabs.stories.ts +0 -171
  775. package/src/components/tabs/tabs/tabs.ts +0 -22
  776. package/src/components/tabs/tabs/tabs.vue +0 -64
  777. package/src/components/tabs/tabs.ts +0 -9
  778. package/src/components/tabsView/tabsView/menu.vue +0 -291
  779. package/src/components/tabsView/tabsView/menuDelimeter.vue +0 -26
  780. package/src/components/tabsView/tabsView/menuItem.vue +0 -125
  781. package/src/components/tabsView/tabsView/menuTitle.vue +0 -46
  782. package/src/components/tabsView/tabsView/store.ts +0 -60
  783. package/src/components/tabsView/tabsView/stories/README.md +0 -22
  784. package/src/components/tabsView/tabsView/tabsView.stories.ts +0 -170
  785. package/src/components/tabsView/tabsView/tabsView.ts +0 -118
  786. package/src/components/tabsView/tabsView/tabsView.vue +0 -120
  787. package/src/components/tabsView/tabsView/utils.ts +0 -27
  788. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuItem.stories.ts +0 -47
  789. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuTitle.stories.ts +0 -43
  790. package/src/components/tabsView/tabsView.ts +0 -9
  791. package/src/components/types.ts +0 -3
  792. package/src/core/app.ts +0 -22
  793. package/src/core/core/core.mdx +0 -36
  794. package/src/core/core/core.ts +0 -287
  795. package/src/core/core/events/resize.ts +0 -47
  796. package/src/core/core/events.ts +0 -6
  797. package/src/core/core/jQuery.mdx +0 -41
  798. package/src/core/core/options.ts +0 -51
  799. package/src/core/core/preloaders.ts +0 -31
  800. package/src/core/core/state.ts +0 -61
  801. package/src/core/directives/data.mdx +0 -24
  802. package/src/core/directives/data.ts +0 -25
  803. package/src/core/directives/focus.mdx +0 -28
  804. package/src/core/directives/focus.ts +0 -73
  805. package/src/core/directives/scrollIntoView.mdx +0 -41
  806. package/src/core/directives/scrollIntoView.ts +0 -123
  807. package/src/core/directives/scrollShadow.mdx +0 -23
  808. package/src/core/directives/scrollShadow.ts +0 -27
  809. package/src/core/directives/sticky.mdx +0 -29
  810. package/src/core/directives/sticky.ts +0 -32
  811. package/src/core/directives/swimUp.mdx +0 -27
  812. package/src/core/directives/swimUp.ts +0 -95
  813. package/src/core/directives/tooltip.mdx +0 -13
  814. package/src/core/directives/tooltip.ts +0 -57
  815. package/src/core/icons/gallery.vue +0 -70
  816. package/src/core/icons/icons.mdx +0 -24
  817. package/src/core/icons/icons.stories.ts +0 -14
  818. package/src/core/plugins/core.ts +0 -131
  819. package/src/core/plugins/i18n.ts +0 -184
  820. package/src/core/plugins/piniaTPA.ts +0 -431
  821. package/src/core/plugins/plugins.mdx +0 -82
  822. package/src/core/styles/CSS Variables.stories.ts +0 -17
  823. package/src/core/styles/styles.mdx +0 -26
  824. package/src/core/theme/Variables.stories.ts +0 -16
  825. package/src/core/theme/theme.mdx +0 -117
  826. package/src/core/utils/References/Docs.mdx +0 -23
  827. package/src/core/utils/References/check/Docs.mdx +0 -15
  828. package/src/core/utils/References/check/functions/getDomainRegexp.mdx +0 -15
  829. package/src/core/utils/References/check/functions/isDomain.mdx +0 -21
  830. package/src/core/utils/References/check/functions/isEmail.mdx +0 -22
  831. package/src/core/utils/References/check/functions/isIp.mdx +0 -21
  832. package/src/core/utils/References/check/functions/validUrl.mdx +0 -22
  833. package/src/core/utils/References/clipboard/Docs.mdx +0 -11
  834. package/src/core/utils/References/clipboard/functions/setClipboard.mdx +0 -23
  835. package/src/core/utils/References/date/Docs.mdx +0 -17
  836. package/src/core/utils/References/date/functions/dateFormat.mdx +0 -28
  837. package/src/core/utils/References/date/functions/dateToString.mdx +0 -26
  838. package/src/core/utils/References/date/functions/dateUnformat.mdx +0 -22
  839. package/src/core/utils/References/date/functions/genDate.mdx +0 -26
  840. package/src/core/utils/References/date/functions/genDateMoscow.mdx +0 -22
  841. package/src/core/utils/References/date/functions/getDayOfWeek.mdx +0 -26
  842. package/src/core/utils/References/date/functions/stringToDate.mdx +0 -21
  843. package/src/core/utils/References/device/Docs.mdx +0 -21
  844. package/src/core/utils/References/device/functions/get$scroll.mdx +0 -15
  845. package/src/core/utils/References/device/functions/getCommandKeyLabel.mdx +0 -15
  846. package/src/core/utils/References/device/functions/getElsScroll.mdx +0 -15
  847. package/src/core/utils/References/device/functions/getOS.mdx +0 -17
  848. package/src/core/utils/References/device/functions/getOSAsync.mdx +0 -15
  849. package/src/core/utils/References/device/functions/getScrollTop.mdx +0 -15
  850. package/src/core/utils/References/device/functions/isApp.mdx +0 -15
  851. package/src/core/utils/References/device/functions/isMacOS.mdx +0 -15
  852. package/src/core/utils/References/device/functions/isMobile.mdx +0 -15
  853. package/src/core/utils/References/device/functions/isRetina.mdx +0 -15
  854. package/src/core/utils/References/device/functions/isSafari.mdx +0 -15
  855. package/src/core/utils/References/dom/Docs.mdx +0 -27
  856. package/src/core/utils/References/dom/functions/css.mdx +0 -24
  857. package/src/core/utils/References/dom/functions/genEl.mdx +0 -28
  858. package/src/core/utils/References/dom/functions/isVisible.mdx +0 -23
  859. package/src/core/utils/References/dom/functions/offset.mdx +0 -35
  860. package/src/core/utils/References/dom/functions/querySelectorAllArray.mdx +0 -22
  861. package/src/core/utils/References/dom/functions/querySelectorAllVisible.mdx +0 -22
  862. package/src/core/utils/References/dom/functions/querySelectorVisible.mdx +0 -22
  863. package/src/core/utils/References/dom/functions/querySelectorVisibleLast.mdx +0 -22
  864. package/src/core/utils/References/dom/functions/storage.mdx +0 -28
  865. package/src/core/utils/References/dom/functions/storageClear.mdx +0 -21
  866. package/src/core/utils/References/dom/functions/wrap.mdx +0 -22
  867. package/src/core/utils/References/dom/variables/default.mdx +0 -241
  868. package/src/core/utils/References/image/Docs.mdx +0 -12
  869. package/src/core/utils/References/image/functions/downloadImageFromString.mdx +0 -22
  870. package/src/core/utils/References/image/functions/genFaviconImgHtml.mdx +0 -22
  871. package/src/core/utils/References/keyboard/Docs.mdx +0 -11
  872. package/src/core/utils/References/keyboard/functions/invertKeyboardLayout.mdx +0 -21
  873. package/src/core/utils/References/lodash/Docs.mdx +0 -20
  874. package/src/core/utils/References/lodash/functions/cloneDeep.mdx +0 -29
  875. package/src/core/utils/References/lodash/functions/debounce.mdx +0 -76
  876. package/src/core/utils/References/lodash/functions/memoize.mdx +0 -26
  877. package/src/core/utils/References/lodash/functions/merge.mdx +0 -200
  878. package/src/core/utils/References/lodash/functions/throttle.mdx +0 -73
  879. package/src/core/utils/References/number/Docs.mdx +0 -11
  880. package/src/core/utils/References/number/functions/percentOfNumber.mdx +0 -26
  881. package/src/core/utils/References/price/Docs.mdx +0 -11
  882. package/src/core/utils/References/price/functions/genPrice.mdx +0 -28
  883. package/src/core/utils/References/route/Docs.mdx +0 -16
  884. package/src/core/utils/References/route/functions/delHash.mdx +0 -26
  885. package/src/core/utils/References/route/functions/genHash.mdx +0 -26
  886. package/src/core/utils/References/route/functions/getHash.mdx +0 -22
  887. package/src/core/utils/References/route/functions/historySetState.mdx +0 -31
  888. package/src/core/utils/References/route/functions/setHash.mdx +0 -26
  889. package/src/core/utils/References/route/functions/setHashs.mdx +0 -22
  890. package/src/core/utils/References/scroll/Docs.mdx +0 -14
  891. package/src/core/utils/References/scroll/functions/amountScrolled.mdx +0 -17
  892. package/src/core/utils/References/scroll/functions/connectScrollShadow.mdx +0 -28
  893. package/src/core/utils/References/scroll/functions/genHasScroll.mdx +0 -25
  894. package/src/core/utils/References/scroll/functions/getScrollPercent.mdx +0 -21
  895. package/src/core/utils/References/searchers/Docs.mdx +0 -19
  896. package/src/core/utils/References/searchers/functions/genVolumeLabel.mdx +0 -26
  897. package/src/core/utils/References/searchers/functions/getDeviceGIcon.mdx +0 -21
  898. package/src/core/utils/References/searchers/functions/getLangLabel.mdx +0 -22
  899. package/src/core/utils/References/searchers/functions/getSearcherGIcon.mdx +0 -21
  900. package/src/core/utils/References/searchers/functions/prepareVolumeType.mdx +0 -22
  901. package/src/core/utils/References/searchers/variables/searchersNames.mdx +0 -97
  902. package/src/core/utils/References/store/Docs.mdx +0 -18
  903. package/src/core/utils/References/store/functions/defineStore.mdx +0 -36
  904. package/src/core/utils/References/store/functions/useStore.mdx +0 -29
  905. package/src/core/utils/References/store/variables/plugin.mdx +0 -66
  906. package/src/core/utils/References/string/Docs.mdx +0 -26
  907. package/src/core/utils/References/string/functions/addCommasWhite.mdx +0 -21
  908. package/src/core/utils/References/string/functions/addLinkTags.mdx +0 -23
  909. package/src/core/utils/References/string/functions/camelToSnakeCase.mdx +0 -21
  910. package/src/core/utils/References/string/functions/ellipsis.mdx +0 -26
  911. package/src/core/utils/References/string/functions/genFlagLinkByCountryCode.mdx +0 -21
  912. package/src/core/utils/References/string/functions/genIntHash.mdx +0 -21
  913. package/src/core/utils/References/string/functions/getRandomHash.mdx +0 -21
  914. package/src/core/utils/References/string/functions/highlightHtml.mdx +0 -25
  915. package/src/core/utils/References/string/functions/htmlspecialchars.mdx +0 -21
  916. package/src/core/utils/References/string/functions/isUrl.mdx +0 -21
  917. package/src/core/utils/References/string/functions/nl2br.mdx +0 -21
  918. package/src/core/utils/References/string/functions/numberEnding.mdx +0 -28
  919. package/src/core/utils/References/string/functions/numberWithWord.mdx +0 -28
  920. package/src/core/utils/References/string/functions/rusToLatin.mdx +0 -21
  921. package/src/core/utils/References/string/functions/toCapitalize.mdx +0 -21
  922. package/src/core/utils/References/string/functions/toRoditPadej.mdx +0 -21
  923. package/src/core/utils/References/system/Docs.mdx +0 -13
  924. package/src/core/utils/References/system/functions/sleep.mdx +0 -21
  925. package/src/core/utils/References/system/functions/sleepWhile.mdx +0 -26
  926. package/src/core/utils/References/system/functions/waitWhile.mdx +0 -26
  927. package/src/core/utils/References/url/Docs.mdx +0 -17
  928. package/src/core/utils/References/url/functions/decode.mdx +0 -21
  929. package/src/core/utils/References/url/functions/encode.mdx +0 -21
  930. package/src/core/utils/References/url/functions/fromPuny.mdx +0 -23
  931. package/src/core/utils/References/url/functions/getHost.mdx +0 -21
  932. package/src/core/utils/References/url/functions/hostToLowerCase.mdx +0 -21
  933. package/src/core/utils/References/url/functions/normalize.mdx +0 -21
  934. package/src/core/utils/References/url/functions/toPuny.mdx +0 -23
  935. package/src/core/utils/check.ts +0 -88
  936. package/src/core/utils/clipboard.ts +0 -51
  937. package/src/core/utils/date.ts +0 -291
  938. package/src/core/utils/device.ts +0 -139
  939. package/src/core/utils/dom.ts +0 -182
  940. package/src/core/utils/image.ts +0 -46
  941. package/src/core/utils/keyboard.ts +0 -29
  942. package/src/core/utils/lodash.ts +0 -18
  943. package/src/core/utils/number.ts +0 -37
  944. package/src/core/utils/price.ts +0 -24
  945. package/src/core/utils/route.ts +0 -115
  946. package/src/core/utils/scroll.ts +0 -120
  947. package/src/core/utils/searchers.ts +0 -191
  948. package/src/core/utils/store/localStorage.ts +0 -56
  949. package/src/core/utils/store/plugin.ts +0 -50
  950. package/src/core/utils/store/store.ts +0 -77
  951. package/src/core/utils/store.ts +0 -7
  952. package/src/core/utils/string.ts +0 -317
  953. package/src/core/utils/system.ts +0 -72
  954. package/src/core/utils/url.ts +0 -138
  955. package/src/core/utils/utils.mdx +0 -6
  956. package/src/d.ts +0 -12
  957. package/src/icomoon.d.ts +0 -98
  958. package/src/resources/styles/core/components.css +0 -111
  959. package/src/resources/styles/core/core.ts +0 -11
  960. package/src/resources/styles/core/forms/clear.css +0 -20
  961. package/src/resources/styles/core/forms/controls.css +0 -20
  962. package/src/resources/styles/core/forms/focusable.css +0 -26
  963. package/src/resources/styles/core/forms/forms.css +0 -156
  964. package/src/resources/styles/core/icon.css +0 -58
  965. package/src/resources/styles/core/jquery.css +0 -1
  966. package/src/resources/styles/core/layout.css +0 -59
  967. package/src/resources/styles/core/modifiers/as.css +0 -9
  968. package/src/resources/styles/core/modifiers/ellipsis.css +0 -26
  969. package/src/resources/styles/core/modifiers/modifiers.css +0 -120
  970. package/src/resources/styles/core/modifiers/only.css +0 -19
  971. package/src/resources/styles/core/modifiers/scrollShadow.css +0 -50
  972. package/src/resources/styles/core/select.css +0 -15
  973. package/src/resources/styles/storybook.css +0 -11
  974. package/src/resources/styles/themes/dark/dark-layout.css +0 -47
  975. package/src/resources/styles/themes/dark/dark-positions.css +0 -66
  976. package/src/resources/styles/themes/dark/dark.css +0 -400
  977. package/src/resources/styles/themes/dark-positions.ts +0 -1
  978. package/src/resources/styles/themes/dark-th/dark-th-layout.css +0 -47
  979. package/src/resources/styles/themes/dark-th/dark-th-positions.css +0 -67
  980. package/src/resources/styles/themes/dark-th/dark-th.css +0 -400
  981. package/src/resources/styles/themes/dark-th-positions.ts +0 -1
  982. package/src/resources/styles/themes/dark-th.ts +0 -3
  983. package/src/resources/styles/themes/dark.ts +0 -3
  984. package/src/resources/styles/themes/light/light-layout.css +0 -47
  985. package/src/resources/styles/themes/light/light-positions.css +0 -66
  986. package/src/resources/styles/themes/light/light.css +0 -400
  987. package/src/resources/styles/themes/light-positions.ts +0 -1
  988. package/src/resources/styles/themes/light.ts +0 -3
  989. package/src/storybook/components/color.vue +0 -47
  990. package/src/storybook/components/cssVariables.vue +0 -195
  991. package/src/storybook/components/icomoon.ts +0 -40
  992. package/src/storybook/jquery.ts +0 -4
  993. 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" +0 -181
  994. 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" +0 -12
  995. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CHANGELOG.md.mdx" +0 -4
  996. 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" +0 -43
  997. 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" +0 -155
  998. 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" +0 -35
  999. 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" +0 -15
  1000. 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" +0 -56
  1001. 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" +0 -53
  1002. 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" +0 -55
  1003. 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" +0 -4
  1004. 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" +0 -4
  1005. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/STORYBOOK.md.mdx" +0 -4
  1006. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/USE_IN_PROJECT.md.mdx" +0 -3
  1007. 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" +0 -4
  1008. 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" +0 -15
  1009. 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" +0 -45
  1010. 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" +0 -31
  1011. 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" +0 -29
  1012. 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" +0 -41
  1013. 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" +0 -58
  1014. 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" +0 -11
  1015. 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" +0 -5
  1016. package/storybook-dev.sh +0 -14
  1017. package/tsconfig.json +0 -91
  1018. package/typedoc.json +0 -20
  1019. package/vite.config.ts +0 -148
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js","sources":["../../src/components/formsExt/menu/menu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { onMounted, onUpdated, ref } from 'vue';\nimport type { Item, Props } from './types';\nimport Core from '@/core/core/core';\nimport { isSafari } from '@/core/utils/device';\nimport TopButton from '@/components/forms/button/button.vue';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tstyling: 'default',\n});\n\nconst model = defineModel({\n\trequired: true,\n});\n\nconst el = ref();\n\n// валидация типа modelValue без возможности выбора нескольких значений (ожидается строка или число)\nif (!props.isMultiple && typeof (model.value) !== 'string' && typeof (model.value) !== 'number') {\n\tconsole.warn('Type check failed for prop \"modelValue\". Expected String: ' + typeof (model.value));\n}\n\n// валидация типа modelValue с возможностью выбора нескольких значений (ожидается массив)\nif (props.isMultiple && !Array.isArray(model.value)) {\n\tconsole.warn('Type check failed for prop \"modelValue\". Expected Array: ' + typeof (model.value));\n}\n\n/**\n * Для множественного выбора без пустого множества\n *\n * Если ничего не выбрано, присваиваем 1-ое значение\n */\nif (props.isMultiple && !props.canBeEmptyMultiple && Array.isArray(model.value) && !model.value.length && props.items[0]) {\n\tmodel.value = [props.items[0]?.href ?? props.items[0]?.value];\n}\n\nconst itemIsActive = (item: Item) => {\n\tif (!Array.isArray(model.value)) {\n\t\treturn item.value === model.value;\n\t}\n\n\treturn model.value.includes(item.value);\n};\n\n/**\n * Выбрать элемент\n * @param item\n * @param toggle - добавить или исключить элемент, для isMultiple\n */\nconst select = (item: Item, toggle = false) => {\n\tif (Array.isArray(model.value)) {\n\t\tlet modelNew = model.value.slice();\n\n\t\tif (toggle) {\n\t\t\tif (!modelNew.length) modelNew = props.items.map(item => item.value);\n\n\t\t\tconst index = modelNew.indexOf(item.value);\n\t\t\tif (index === -1) {\n\t\t\t\tmodelNew.push(item.value);\n\t\t\t} else {\n\t\t\t\tmodelNew.splice(index, 1);\n\t\t\t}\n\t\t} else {\n\t\t\tif (modelNew.length === 1 && modelNew[0] === item.value) {\n\t\t\t\tmodelNew = [];\n\t\t\t} else {\n\t\t\t\tmodelNew = [item.value];\n\t\t\t}\n\t\t}\n\n\t\tif (!props.canBeEmptyMultiple && !modelNew.length) modelNew = [item.value];\n\n\t\tmodel.value = modelNew;\n\n\t\treturn;\n\t}\n\n\tmodel.value = item.value;\n};\n\n// вертикальный скролл в горизонтальный скролл\nconst onWheel = (event: WheelEvent) => {\n\tif (el.value.scrollWidth <= el.value.offsetWidth) return;\n\tif (event.shiftKey) return;\n\tif (Math.abs(event.deltaY) < 50) return; // устройство с высокой точностью, например тачпад\n\n\tevent.preventDefault();\n\n\tconst delta = event.deltaY > 0 ? 30 : -30;\n\tel.value.scrollLeft = el.value.scrollLeft + delta;\n};\n\n/**\n * Замена стандартному scrollIntoView, который меняет скролл документа\n *\n * Выравнивание по ближнему краю элемента\n *\n * Выравнивается таким образом, чтобы был виден соседний элемент\n */\nconst scrollIntoView = (isSmooth = true) => {\n\tconst elBtn = el.value.querySelector('.top-active');\n\tif (!elBtn) return;\n\n\tconst gap = 24;\n\n\t// левая и правая координаты элемента\n\tconst leftMargin = elBtn.offsetLeft - el.value.offsetLeft - gap;\n\tconst rightMargin = elBtn.offsetLeft - el.value.offsetLeft + elBtn.clientWidth + gap;\n\n\t// левая и правая границы видимой части меню\n\tconst leftMarginParent = el.value.scrollLeft;\n\tconst rightMarginParent = el.value.clientWidth + el.value.scrollLeft;\n\n\tlet scrollLeft: number | undefined = undefined;\n\n\t// левую границу элемента к левой границе меню\n\tif (leftMargin < leftMarginParent) scrollLeft = leftMargin;\n\n\t// правую границу элемента к правой границе меню\n\tif (rightMargin > rightMarginParent) scrollLeft = rightMargin - el.value.clientWidth;\n\n\tif (scrollLeft !== undefined) {\n\t\tif (isSafari()) {\n\t\t\tCore.$?.(el.value).animate({ scrollLeft: scrollLeft }, isSmooth ? 200 : 0);\n\t\t} else {\n\t\t\tel.value.scrollTo({ left: scrollLeft, behavior: isSmooth ? 'smooth' : 'auto' });\n\t\t}\n\t}\n};\n\n/**\n * Выбрать все элементы в меню\n */\nconst selectAll = () => {\n\tif (!Array.isArray(model.value)) return;\n\n\tif (model.value.length === props.items.length) {\n\t\tmodel.value = [props.items[0].href ?? props.items[0].value];\n\t\treturn;\n\t}\n\n\tmodel.value = props.items.map(item => item.href ?? item.value);\n};\n\nonMounted(() => scrollIntoView(false));\nonUpdated(() => scrollIntoView(true));\n\n</script>\n\n<template>\n\t<div\n\t\tref=\"el\"\n\t\t:class=\"{\n\t\t\t'top-menu': true,\n\t\t\t['top-style_' + styling]: true,\n\t\t\t// ['top-unwrap-x']: styling === 'default',\n\t\t}\"\n\t\t@wheel=\"onWheel\"\n\t>\n\t\t<TopButton\n\t\t\tv-for=\"item in items\"\n\t\t\t:=\"item\"\n\t\t\tclass=\"top-menu_item\"\n\t\t\tcolor=\"theme\"\n\t\t\t@click=\"select(item, $event.ctrlKey || $event.metaKey)\"\n\t\t\t:isActive=\"itemIsActive(item)\"\n\t\t>\n\t\t\t<template #default v-if=\"item.content\">\n\t\t\t\t{{ item.content }}\n\t\t\t</template>\n\t\t</TopButton>\n\n\t\t<div\n\t\t\tv-if=\"Array.isArray(model) && selectAllItem\"\n\t\t\tclass=\"top-menu_selectAll\"\n\t\t>\n\t\t\t<TopButton\n\t\t\t\t:=\"selectAllItem\"\n\t\t\t\tclass=\"top-menu_item\"\n\t\t\t\tcolor=\"theme\"\n\t\t\t\tstyling=\"\"\n\t\t\t\t@click=\"selectAll()\"\n\t\t\t\t:isActive=\"model.length === items.length\"\n\t\t\t>\n\t\t\t\t<template #default v-if=\"selectAllItem.content\">\n\t\t\t\t\t{{ selectAllItem.content }}\n\t\t\t\t</template>\n\t\t\t</TopButton>\n\t\t</div>\n\t</div>\n</template>\n\n<style>\n.top-menu {\n\t--scroll-thumb-color: var(--color-line-1);\n\t--scroll-thumb-color-hover: var(--color-line-2);\n\t--scroll-thumb-color-active: var(--color-line-3);\n\n\tmax-width: 100%;\n\tdisplay: flex;\n\talign-items: flex-start;\n\tgap: var(--top-gap-2);\n\toverflow-x: auto;\n\tscrollbar-width: none; /* firefox */\n\n\t/* предотвратить натинвые события браузера (назад / вперед) */\n\toverscroll-behavior-x: contain;\n}\n\n.top-menu::-webkit-scrollbar { display: none; }\n\n.top-menu .top-menu_item {\n\t--top-button-color: var(--color-text-2);\n\n\toutline-offset: -2px !important;\n\tmin-width: 0;\n\tmax-width: 200px;\n\tmargin: 0;\n\tflex-shrink: 0;\n}\n\n.top-menu .top-menu_item[data-top-icon] {\n\t--top-icon-color: var(--color-text-2);\n}\n\n.top-menu_selectAll {\n\tposition: sticky;\n\tright: 0;\n\tbackground: var(--color-layout-front-1);\n\tborder-left: 1px solid var(--color-line-1);\n\tpadding-left: var(--top-padding-1);\n\tbox-shadow: var(--color-layout-front-1) var(--top-padding-2) 0px;\n}\n\n/* style default */\n.top-menu.top-style_default .top-menu_item {\n\t--top-forms-radius: 0;\n\t--top-forms-border-color: transparent;\n\t--top-forms-border-width: 2px;\n\n\tfilter: none;\n\tbox-shadow: none;\n\tborder: none;\n\tborder-bottom: var(--top-forms-border-width) solid var(--top-forms-border-color);\n\tbackground: none;\n}\n\n.top-style_default > .top-menu_item > [data-top-badge] {\n\tmargin-top: 0;\n}\n\n.top-menu.top-style_default .top-menu_item:hover {\n\t--top-icon-color: var(--color-text-1);\n\t--top-button-color: var(--color-text-1);\n\t--top-forms-border-color: var(--color-line-2);\n}\n\n.top-menu.top-style_default .top-menu_item:active,\n.top-menu.top-style_default .top-menu_item.top-active {\n\t--top-icon-color: var(--color-text-primary);\n\t--top-button-color: var(--color-text-1);\n\t--top-forms-border-color: var(--color-line-primary-1);\n}\n\n.top-menu.top-style_default .top-menu_selectAll {\n\tpadding-left: var(--top-padding-2);\n}\n\n/* style bar */\n.top-menu.top-style_bar {\n\tborder-radius: var(--top-radius-3);\n\tborder: 1px solid var(--color-line-2);\n\tpadding: var(--top-padding-1);\n\tgap: 3px;\n}\n.top-menu.top-style_bar .top-menu_item {\n\t--top-button-background-color-hover: var(--color-layer-1);\n\t--top-button-background-color-active: var(--color-layer-2);\n\t--top-button-background-color-selected: var(--color-layer-primary-1);\n\n\tposition: relative;\n}\n\n.top-menu.top-style_bar .top-menu_item:hover {\n\t--top-icon-color: var(--color-text-1);\n\t--top-button-color: var(--color-text-1);\n}\n\n.top-menu.top-style_bar .top-menu_item.top-active {\n\t--top-icon-color: var(--color-text-primary);\n\t--top-button-color: var(--color-text-primary);\n}\n\n/* разделители кнопок в баре */\n.top-menu.top-style_bar .top-menu_item:not(:first-child):not(.top-active):not(:hover):after {\n\tcontent: \"\";\n\tbackground: var(--color-line-1-opacity);\n\twidth: 1px;\n\theight: 60%;\n\tdisplay: block;\n\tposition: absolute;\n\tleft: -2px;\n}\n.top-menu.top-style_bar .top-menu_item.top-active + .top-menu_item:after,\n.top-menu.top-style_bar .top-menu_item:hover + .top-menu_item:after {\n\tcontent: none !important;\n}\n\n/*\n.top-style_bar > .top-menu_item > [data-top-badge] {\n\tmargin-top: -3px;\n}\n*/\n\n/** TODO: .top-unwrap-x надо вынести глобально в UI или добавить в стили для storybook */\n/*\n.top-menu.top-unwrap-x {\n\tpadding-right: var(--top-unwrap-x);\n\tpadding-left: var(--top-unwrap-x);\n\tmargin-right: calc(0px - var(--top-unwrap-x));\n\tmargin-left: calc(0px - var(--top-unwrap-x));\n}\n*/\n</style>\n"],"names":["props","__props","model","useModel","el","ref","_a","_b","itemIsActive","item","select","toggle","modelNew","item2","index","onWheel","event","delta","scrollIntoView","isSmooth","elBtn","gap","leftMargin","rightMargin","leftMarginParent","rightMarginParent","scrollLeft","isSafari","Core","selectAll","onMounted","onUpdated","normalizeClass","$event","createSlots","withCtx","createTextVNode","toDisplayString","createVNode","_sfc_main$1","mergeProps","_ctx","_cache"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,UAAAA,IAAAC,GAIAC,IAAAC,EAAAF,GAAA,YAAA,GAIAG,IAAAC,EAAA;AAGA,IAAA,CAAAL,EAAA,cAAA,OAAAE,EAAA,SAAA,YAAA,OAAAA,EAAA,SAAA,YACC,QAAA,KAAA,+DAAA,OAAAA,EAAA,KAAA,GAIDF,EAAA,cAAA,CAAA,MAAA,QAAAE,EAAA,KAAA,KACC,QAAA,KAAA,8DAAA,OAAAA,EAAA,KAAA,G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AAA,QACA,SAAA,CAAAC,MAAAvB,EAAAD,GAAAwB,EAAA,WAAAA,EAAA,OAAA;AAAA,QAC+C,UAAAzB,EAAAC,CAAA;AAAA,MACzB,CAAA,GAAAyB,EAAA,EAAA,GAAA,EAAA,GAAA;AAAA;;UAEjB,IAAAC,EAAA,MAAA;AAAA,YACQC,EAAAC,EAAA5B,EAAA,OAAA,GAAA,CAAA;AAAA,UAAH,CAAA;AAAA;;;;QAoBX6B,EAAAC,GAAAC,EAAAC,EAAA,eAAA;AAAA,UAXY,OAAA;AAAA,UACV,OAAA;AAAA,UACA,SAAA;AAAA,UACE,SAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAAT,MAAAJ,EAAA;AAAA,UACS,UAAA3B,EAAA,MAAA,WAAAuC,EAAA,MAAA;AAAA,QACiB,CAAA,GAAAP,EAAA,EAAA,GAAA,EAAA,GAAA;AAAA;;YAEvB,IAAAC,EAAA,MAAA;AAAA,cACiBC,EAAAC,EAAAI,EAAA,cAAA,OAAA,GAAA,CAAA;AAAA,YAAH,CAAA;AAAA;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ define(["require","exports","vue","./forms-CgtkdwgA.amd","../utils/string.amd","../require/css.amd!../assets/notice.css"],(function(j,p,e,f,T){"use strict";if(typeof e>"u")var e=window.Vue;const h=300,c=e.reactive(new Map),y=(o,r,t)=>"top-notice_"+T.genIntHash(o+r+JSON.stringify(t)),M=(o,r="info",t)=>{let i="";o=String(o);const d=y(o,r,t);if(t!=null&&t.title)i=t.title;else{const u=o.split(`
2
+ `);u.length&&(i=String(u.shift()),o=u.join(`
3
+ `))}const n=c.get(d);if(n){b(n);return}const a={id:d,title:i,text:o,style:r,buttonProps:t==null?void 0:t.buttonProps,metaText:t==null?void 0:t.metaText,isSafeHTML:t==null?void 0:t.isSafeHTML,selectToClose:t==null?void 0:t.selectToClose,onClose:t==null?void 0:t.onClose};if(c.set(a.id,a),c.size>5){const[u,m]=[...c].at(0)||[];m&&C(m)}f.Core.state.isMobile&&$("input").one("click",()=>C(a))},b=o=>{o.hightlight=!0,setTimeout(()=>o.hightlight=!1,h)},C=o=>{o.forceClosed=!0,setTimeout(()=>{var r;(r=o.onClose)==null||r.call(o),c.delete(o.id)},h)},_=o=>{const r="hacking was detected";return o=o.replace(/<script/g,r),o=o.replace(/<img/g,r),o=o.replace(/<iframe/g,r),o=o.replace(/javascript:/g,r),o=o.replace(/<[^>]+ (@|on)\w+=[^>]+>?/g,r),o},H={class:"top-notice_itemTextWrapper"},L=["innerHTML"],S=["innerHTML"],P=["innerHTML"],w=["title"],N=e.defineComponent({__name:"item",props:{id:{},title:{},text:{},style:{},metaText:{},buttonProps:{},isSafeHTML:{type:Boolean},hightlight:{type:Boolean},selectToClose:{type:Boolean,default:!0},forceClosed:{type:Boolean}},emits:["close"],setup(o,{emit:r}){const t=o,i=r,d=e.ref(!1);setTimeout(()=>d.value=!0,10);const n=e.ref(!1),a=e.ref("right"),u=e.computed(()=>{let l=t.title.replace(/ {2}/g,"&nbsp;");return t.isSafeHTML||(l=_(l)),l}),m=e.computed(()=>{let l=T.nl2br(t.text);return l=l.replace(/ {2}/g,"&nbsp;"),t.isSafeHTML||(l=_(l)),l}),g=l=>{n.value=!0,l&&(a.value=l),setTimeout(()=>i("close"),h)},I=l=>{if(!t.selectToClose)return;const{tagName:s}=l.target;s==="A"&&g(),s==="BUTTON"&&g()},z={mounted:l=>{if(!f.Core.state.isMobile||!f.Core.$||!f.Core.$.ui.draggable)return;let s="right";f.Core.$(l).draggable({revert:!1,axis:"x",drag:(k,B)=>{s=B.position.left>0?"right":"left"},stop:(k,B)=>{g(s)}})}};return(l,s)=>{const v=e.resolveComponent("TopButton");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["top-notice_item",{["top-notice_item-"+l.style]:!0,"top-notice_item-hightlight":l.hightlight,"top-notice_item-showed":d.value,"top-notice_item-closed":n.value||l.forceClosed,["top-notice_item-closed_"+a.value]:n.value}]),onClick:I},[e.createElementVNode("div",H,[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-notice_itemTitle",innerHTML:u.value},null,8,L)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"top-notice_itemText",innerHTML:m.value},null,8,S)):e.createCommentVNode("",!0)]),l.buttonProps?(e.openBlock(),e.createBlock(v,e.mergeProps({key:0,class:"top-notice_itemButton",size:"s"},l.buttonProps,{title:l.buttonProps.title,innerHTML:l.buttonProps.default,onClick:s[0]||(s[0]=k=>g())}),null,16,["title","innerHTML"])):e.createCommentVNode("",!0),l.metaText?(e.openBlock(),e.createElementBlock("div",{key:1,class:"top-notice_itemMetaText",innerHTML:l.metaText},null,8,P)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-notice_itemClose","data-top-icon":"",title:l.$i18n.Common.Close,onClick:s[1]||(s[1]=()=>g())},null,8,w)],2)),[[z]])}}}),E={class:"top-notice"},V=e.defineComponent({__name:"notice",setup(o){const r=t=>{var i;(i=t.onClose)==null||i.call(t),c.delete(t.id)};return(t,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),([d,n])=>(e.openBlock(),e.createBlock(N,{key:n.id,id:n.id,title:n.title,text:n.text,style:e.normalizeStyle(n.style),buttonProps:n.buttonProps,metaText:n.metaText,isSafeHTML:n.isSafeHTML,forceClosed:n.forceClosed,hightlight:n.hightlight,onClose:a=>r(n)},null,8,["id","title","text","style","buttonProps","metaText","isSafeHTML","forceClosed","hightlight","onClose"]))),128))])]))}});p.default=V,p.show=M,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
4
+ //# sourceMappingURL=notice-CPtAnc7p.amd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notice-CPtAnc7p.amd.js","sources":["../../src/components/core/notice/utils.ts","../../src/components/core/notice/item/item.vue","../../src/components/core/notice/notice.vue"],"sourcesContent":["import { reactive } from 'vue';\nimport type { Props as ItemProps, Props, Style } from '@/components/core/notice/item/types';\nimport Core from '@/core/core/core';\nimport { genIntHash } from '@/core/utils/string';\n\nexport const transitionDuration = 300;\n\nexport type Item = Props & { onClose?: Function };\n\nexport const itemById = reactive(new Map<string, Item>());\n\nconst genItemId = (text: ItemProps['text'], style: ItemProps['style'], options?: Options) => {\n\treturn 'top-notice_' + genIntHash(text + style + JSON.stringify(options));\n};\n\nexport type Options = {\n\ttitle?: ItemProps['title'],\n\tmetaText?: ItemProps['metaText'],\n\tbuttonProps?: ItemProps['buttonProps'],\n\tisSafeHTML?: ItemProps['isSafeHTML'],\n\tselectToClose?: ItemProps['selectToClose'],\n\tonClose?: Function\n}\n\n/**\n * Показать сообщением в стиле push уведомления\n *\n * title будет получен из первой строки text\n *\n * Если в options указан title, он будет взят оттуда\n */\nexport const show = (text: string, style: Style = 'info', options?: Options) => {\n\tlet title = '';\n\n\ttext = String(text);\n\n\tconst id = genItemId(text, style, options);\n\n\tif (options?.title) {\n\t\ttitle = options.title;\n\t} else {\n\t\tconst chunks = text.split('\\n');\n\n\t\tif (chunks.length) {\n\t\t\ttitle = String(chunks.shift());\n\t\t\ttext = chunks.join('\\n');\n\t\t}\n\t}\n\n\tconst itemExists = itemById.get(id);\n\tif (itemExists) {\n\t\thightlight(itemExists);\n\n\t\treturn;\n\t}\n\n\tconst item: Item = {\n\t\tid,\n\t\ttitle,\n\t\ttext,\n\t\tstyle,\n\t\tbuttonProps: options?.buttonProps,\n\t\tmetaText: options?.metaText,\n\t\tisSafeHTML: options?.isSafeHTML,\n\t\tselectToClose: options?.selectToClose,\n\t\tonClose: options?.onClose,\n\t};\n\n\titemById.set(item.id, item);\n\n\tif (itemById.size > 5) {\n\t\tconst [_firstId, firstItem] = [...itemById].at(0) || [];\n\t\tif (firstItem) close(firstItem);\n\t}\n\n\t/**\n\t * Автозакрытие ошибок форм\n\t *\n\t * Добавляет\n\t */\n\tif (Core.state.isMobile) {\n\t\t$('input').one('click', () => close(item));\n\t}\n};\n\nconst hightlight = (item: Item) => {\n\titem.hightlight = true;\n\n\tsetTimeout(() => item.hightlight = false, transitionDuration);\n};\n\nconst close = (item: Item) => {\n\titem.forceClosed = true;\n\n\tsetTimeout(() => {\n\t\titem.onClose?.();\n\n\t\titemById.delete(item.id);\n\t}, transitionDuration);\n};\n\n/**\n * Убрать подозрительный html код\n */\nexport const prepareText = (text: string) => {\n\tconst textNoSafety = 'hacking was detected';\n\n\ttext = text.replace(/<script/g, textNoSafety);\n\ttext = text.replace(/<img/g, textNoSafety);\n\ttext = text.replace(/<iframe/g, textNoSafety);\n\ttext = text.replace(/javascript:/g, textNoSafety);\n\ttext = text.replace(/<[^>]+ (@|on)\\w+=[^>]+>?/g, textNoSafety);\n\n\treturn text;\n};\n","<script setup lang=\"ts\">\nimport { computed, ref, withDefaults } from 'vue';\n\nimport Core from '@/core/core/core';\nimport { nl2br } from '@/core/utils/string';\n\nimport type { Emits, Props } from './types';\nimport { prepareText, transitionDuration } from '@/components/core/notice/utils';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tselectToClose: true,\n});\n\nconst emit = defineEmits<Emits>();\n\n// анимация появления\nconst showed = ref(false);\nsetTimeout(() => showed.value = true, 10);\n\n// анимация закрытия\nconst closed = ref(false);\nconst closedDirection = ref<'top' | 'right' | 'bottom' | 'left'>('right');\n\nconst title = computed(() => {\n\tlet res = props.title.replace(/ {2}/g, '&nbsp;');\n\n\tif (!props.isSafeHTML) res = prepareText(res);\n\n\treturn res;\n});\n\nconst text = computed(() => {\n\tlet res = nl2br(props.text);\n\n\tres = res.replace(/ {2}/g, '&nbsp;');\n\n\tif (!props.isSafeHTML) res = prepareText(res);\n\n\treturn res;\n});\n\nconst close = (direction?: typeof closedDirection.value) => {\n\tclosed.value = true;\n\n\tif (direction) {\n\t\tclosedDirection.value = direction;\n\t}\n\n\tsetTimeout(() => emit('close'), transitionDuration);\n};\n\nconst onClick = (e: MouseEvent) => {\n\tif (!props.selectToClose) return;\n\n\tconst { tagName } = e.target as HTMLElement;\n\n\tif (tagName === 'A') close();\n\tif (tagName === 'BUTTON') close();\n};\n\nconst vSwipe = {\n\tmounted: (el: HTMLElement) => {\n\t\tif (!Core.state.isMobile) return;\n\n\t\tif (!Core.$ || !Core.$.ui['draggable']) return;\n\n\t\tlet direction: typeof closedDirection.value = 'right';\n\n\t\tlet axis = 'x';\n\t\t// if (getOS() === 'iOS') axis = 'y';\n\n\t\tCore.$(el).draggable({\n\t\t\trevert: false,\n\t\t\taxis,\n\t\t\tdrag: (_e, ui) => {\n\t\t\t\tif (axis == 'x') {\n\t\t\t\t\tdirection = ui.position.left > 0 ? 'right' : 'left';\n\t\t\t\t} else {\n\t\t\t\t\tdirection = ui.position.top > 0 ? 'bottom' : 'top';\n\t\t\t\t}\n\t\t\t},\n\t\t\tstop: (_e, _ui) => {\n\t\t\t\tclose(direction);\n\t\t\t},\n\t\t});\n\t},\n};\n\n// const vSwipe = {\n// \tmounted: (el: HTMLElement) => {\n// \t\tconst { distanceX, direction } = usePointerSwipe(el, {\n// \t\t\tdisableTextSelect: true,\n// \t\t\tonSwipe(e: PointerEvent) {\n// \t\t\t\tleft.value = -distanceX.value + 'px';\n// \t\t\t},\n// \t\t\tonSwipeEnd: (_e, direction) => {\n// \t\t\t\tclose(direction);\n// \t\t\t},\n// \t\t});\n// \t},\n// };\n</script>\n\n<template>\n\t<div\n\t\tclass=\"top-notice_item\"\n\t\t:class=\"{\n\t\t\t['top-notice_item-' + style]: true,\n\t\t\t'top-notice_item-hightlight': hightlight,\n\t\t\t'top-notice_item-showed': showed,\n\t\t\t'top-notice_item-closed': closed || forceClosed,\n\t\t\t['top-notice_item-closed_' + closedDirection]: closed,\n\t\t}\"\n\t\t@click=\"onClick\"\n\t\tv-swipe\n\t>\n\t\t<div class=\"top-notice_itemTextWrapper\">\n\t\t\t<div v-if=\"title\" class=\"top-notice_itemTitle\" v-html=\"title\"></div>\n\t\t\t<div v-if=\"text\" class=\"top-notice_itemText\" v-html=\"text\"></div>\n\t\t</div>\n\n\t\t<TopButton\n\t\t\tv-if=\"buttonProps\"\n\t\t\tclass=\"top-notice_itemButton\"\n\t\t\tsize=\"s\"\n\t\t\t:=\"buttonProps\"\n\t\t\t:title=\"buttonProps.title\"\n\t\t\tv-html=\"buttonProps.default\"\n\t\t\t@click=\"close()\"\n\t\t/>\n\n\t\t<div v-if=\"metaText\" class=\"top-notice_itemMetaText\" v-html=\"metaText\"></div>\n\n\t\t<div\n\t\t\tclass=\"top-notice_itemClose\"\n\t\t\tdata-top-icon=\"\"\n\t\t\t:title=\"$i18n.Common.Close\"\n\t\t\t@click=\"() => close()\"\n\t\t></div>\n\t</div>\n</template>\n\n<style>\n@import \"style.css\";\n</style>\n","<!-- performance all in one file component, для Core.notice() -->\n<script lang=\"ts\">\nexport { show } from './utils';\n</script>\n\n<script setup lang=\"ts\">\nimport type { Item } from './utils';\nimport { itemById } from './utils';\n\nimport type { Props } from './types';\nimport TopNoticeItem from './item/item.vue';\n\ndefineProps<Props>();\n\nconst onCloseItem = (item: Item) => {\n\titem.onClose?.();\n\n\titemById.delete(item.id);\n};\n</script>\n\n<template>\n\t<teleport to=\"body\">\n\t\t<div class=\"top-notice\">\n\t\t\t<TopNoticeItem\n\t\t\t\tv-for=\"[_index, item] in itemById\"\n\t\t\t\t:key=\"item.id\"\n\t\t\t\t:id=\"item.id\"\n\t\t\t\t:title=\"item.title\"\n\t\t\t\t:text=\"item.text\"\n\t\t\t\t:style=\"item.style\"\n\t\t\t\t:buttonProps=\"item.buttonProps\"\n\t\t\t\t:metaText=\"item.metaText\"\n\t\t\t\t:isSafeHTML=\"item.isSafeHTML\"\n\t\t\t\t:forceClosed=\"item.forceClosed\"\n\t\t\t\t:hightlight=\"item.hightlight\"\n\t\t\t\t@close=\"onCloseItem(item)\"\n\t\t\t/>\n\t\t</div>\n\t</teleport>\n</template>\n\n<style>\n:root {\n\t--top-notice-top: var(--top-padding-4);\n\t--top-notice-right: var(--top-padding-4);\n}\n\n.top-notice {\n\twidth: 400px;\n\tfont-size: 14px;\n\tposition: fixed; top: var(--top-notice-top); right: var(--top-notice-right);\n\tz-index: 1000010;\n\tdisplay: flex; flex-direction: column-reverse; gap: var(--top-gap-2);\n}\n\n.top-notice ul {\n\tpadding: 0 0 0 var(--top-padding-5);\n}\n\n@media only screen and (max-width: 600px) {\n\t:root {\n\t\t--top-notice-top: var(--top-padding-4);\n\t\t--top-notice-right: var(--top-padding-4);\n\t}\n\n\t.top-notice { width: auto; left: var(--top-notice-right); }\n}\n</style>\n"],"names":["itemById","vue","utils_string","text","style","options","show","title","chunks","id","_firstId","firstItem","close","forms","item","hightlight","prepareText","showed","closed","closedDirection","res","props","direction","onClick","e","tagName","el","_e","ui","_ui","_ctx","_hoisted_2","_hoisted_3","_cache","$event","metaText","_hoisted_5","onCloseItem","_hoisted_1"],"mappings":"yMASOA,EAAAC,EAAA,SAAA,IAAA,GAAA,aAGN,cAAAC,EAAA,WAAAC,EAAAC,EAAA,KAAA,UAAAC,CAAA,CAAA,EAmBMC,EAAA,CAAAH,EAAAC,EAAA,OAAAC,IAAA,UAGNF,EAAA,OAAAA,CAAA,mBAIA,GAAAE,GAAA,MAAAA,EAAA,MACCE,EAAAF,EAAA,UAAgB;GAIhBG,EAAA,6BAECL,EAAAK,EAAA,KAAA;AAAA,CAAA,+CAWiB,GAAAC,EAClB,MAAAF,EACA,KAAAJ,EACA,MAAAC,EACA,YAAAC,GAAA,YAAAA,EAAA,YACsB,SAAAA,GAAA,YAAAA,EAAA,SACH,WAAAA,GAAA,YAAAA,EAAA,WACE,cAAAA,GAAA,YAAAA,EAAA,gDAOtB,iBAAAL,EAAA,KAAA,EAAA,CACC,KAAA,CAAAU,EAAAC,CAAA,EAAA,CAAA,GAAAX,CAAA,EAAA,GAAA,CAAA,GAAA,CAAA,EACAW,GAAAC,EAAAD,CAAA,EAQDE,EAAA,KAAA,MAAA,UACC,EAAA,OAAA,EAAA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EAAA,mGAK/C,KAAA,GACD,EAAA6B,EAAA,YAAA,CACS,MAAAA,EAAA,YAAA,MACM,UAAAA,EAAA,YAAA,QACA,QAAAG,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAAC,GAAAtB,EAAA,EACP,CAAA,EAAA,KAAA,GAAA,CAAA,QAAA,WAAA,CAAA,GAAAX,EAAA,mBAAA,GAAA,EAAA,kHAG+CkC,EAAAA,KAAAA,EAAAA,CAAAA,GAAAA,EAAAA,mBAAAA,GAAAA,EAAAA,0GAKvC,QAAAF,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,IAAArB,EAAA,EACF,EAAA,KAAA,EAAAwB,CAAA,uFC3HtB,MAAAC,EAAAvB,GAAA,sCAGCd,EAAA,OAAAc,EAAA,EAAA,CAAuB,oEAKJb,EAAA,mBAAA,MAAAqC,EAAA,wHAef,IAAAxB,EAAA,GAXU,GAAAA,EAAA,GACD,MAAAA,EAAA,MACG,KAAAA,EAAA,KACD,MAAAb,EAAA,eAAAa,EAAA,KAAA,EACM,YAAAA,EAAA,YACC,SAAAA,EAAA,SACH,WAAAA,EAAA,WACE,YAAAA,EAAA,YACC,WAAAA,EAAA,WACD,QAAAoB,GAAAG,EAAAvB,CAAA"}
@@ -0,0 +1,175 @@
1
+ import { Core as w } from "../core/app.js";
2
+ import { reactive as N, defineComponent as k, ref as T, computed as L, resolveComponent as z, withDirectives as D, createElementBlock as m, openBlock as r, normalizeClass as E, createElementVNode as _, createBlock as C, createCommentVNode as p, mergeProps as j, Teleport as x, Fragment as O, renderList as V, unref as A, normalizeStyle as F } from "vue";
3
+ import { C as h } from "./forms-DarRVke_.es.js";
4
+ import { genIntHash as J, nl2br as U } from "../utils/string.js";
5
+ const I = ["../assets/notice.css"].map((e) => import.meta.resolve(e));
6
+ w.insertCSSLinkToPage(I, !0);
7
+ const v = 300, u = N(/* @__PURE__ */ new Map()), W = (e, s, t) => "top-notice_" + J(e + s + JSON.stringify(t)), se = (e, s = "info", t) => {
8
+ let i = "";
9
+ e = String(e);
10
+ const d = W(e, s, t);
11
+ if (t != null && t.title)
12
+ i = t.title;
13
+ else {
14
+ const c = e.split(`
15
+ `);
16
+ c.length && (i = String(c.shift()), e = c.join(`
17
+ `));
18
+ }
19
+ const l = u.get(d);
20
+ if (l) {
21
+ q(l);
22
+ return;
23
+ }
24
+ const a = {
25
+ id: d,
26
+ title: i,
27
+ text: e,
28
+ style: s,
29
+ buttonProps: t == null ? void 0 : t.buttonProps,
30
+ metaText: t == null ? void 0 : t.metaText,
31
+ isSafeHTML: t == null ? void 0 : t.isSafeHTML,
32
+ selectToClose: t == null ? void 0 : t.selectToClose,
33
+ onClose: t == null ? void 0 : t.onClose
34
+ };
35
+ if (u.set(a.id, a), u.size > 5) {
36
+ const [c, f] = [...u].at(0) || [];
37
+ f && S(f);
38
+ }
39
+ h.state.isMobile && $("input").one("click", () => S(a));
40
+ }, q = (e) => {
41
+ e.hightlight = !0, setTimeout(() => e.hightlight = !1, v);
42
+ }, S = (e) => {
43
+ e.forceClosed = !0, setTimeout(() => {
44
+ var s;
45
+ (s = e.onClose) == null || s.call(e), u.delete(e.id);
46
+ }, v);
47
+ }, H = (e) => {
48
+ const s = "hacking was detected";
49
+ return e = e.replace(/<script/g, s), e = e.replace(/<img/g, s), e = e.replace(/<iframe/g, s), e = e.replace(/javascript:/g, s), e = e.replace(/<[^>]+ (@|on)\w+=[^>]+>?/g, s), e;
50
+ }, G = { class: "top-notice_itemTextWrapper" }, K = ["innerHTML"], Q = ["innerHTML"], R = ["innerHTML"], X = ["title"], Y = /* @__PURE__ */ k({
51
+ __name: "item",
52
+ props: {
53
+ id: {},
54
+ title: {},
55
+ text: {},
56
+ style: {},
57
+ metaText: {},
58
+ buttonProps: {},
59
+ isSafeHTML: { type: Boolean },
60
+ hightlight: { type: Boolean },
61
+ selectToClose: { type: Boolean, default: !0 },
62
+ forceClosed: { type: Boolean }
63
+ },
64
+ emits: ["close"],
65
+ setup(e, { emit: s }) {
66
+ const t = e, i = s, d = T(!1);
67
+ setTimeout(() => d.value = !0, 10);
68
+ const l = T(!1), a = T("right"), c = L(() => {
69
+ let o = t.title.replace(/ {2}/g, "&nbsp;");
70
+ return t.isSafeHTML || (o = H(o)), o;
71
+ }), f = L(() => {
72
+ let o = U(t.text);
73
+ return o = o.replace(/ {2}/g, "&nbsp;"), t.isSafeHTML || (o = H(o)), o;
74
+ }), g = (o) => {
75
+ l.value = !0, o && (a.value = o), setTimeout(() => i("close"), v);
76
+ }, B = (o) => {
77
+ if (!t.selectToClose) return;
78
+ const { tagName: n } = o.target;
79
+ n === "A" && g(), n === "BUTTON" && g();
80
+ }, P = {
81
+ mounted: (o) => {
82
+ if (!h.state.isMobile || !h.$ || !h.$.ui.draggable) return;
83
+ let n = "right";
84
+ h.$(o).draggable({
85
+ revert: !1,
86
+ axis: "x",
87
+ drag: (b, y) => {
88
+ n = y.position.left > 0 ? "right" : "left";
89
+ },
90
+ stop: (b, y) => {
91
+ g(n);
92
+ }
93
+ });
94
+ }
95
+ };
96
+ return (o, n) => {
97
+ const M = z("TopButton");
98
+ return D((r(), m("div", {
99
+ class: E(["top-notice_item", {
100
+ ["top-notice_item-" + o.style]: !0,
101
+ "top-notice_item-hightlight": o.hightlight,
102
+ "top-notice_item-showed": d.value,
103
+ "top-notice_item-closed": l.value || o.forceClosed,
104
+ ["top-notice_item-closed_" + a.value]: l.value
105
+ }]),
106
+ onClick: B
107
+ }, [
108
+ _("div", G, [
109
+ c.value ? (r(), m("div", {
110
+ key: 0,
111
+ class: "top-notice_itemTitle",
112
+ innerHTML: c.value
113
+ }, null, 8, K)) : p("", !0),
114
+ f.value ? (r(), m("div", {
115
+ key: 1,
116
+ class: "top-notice_itemText",
117
+ innerHTML: f.value
118
+ }, null, 8, Q)) : p("", !0)
119
+ ]),
120
+ o.buttonProps ? (r(), C(M, j({
121
+ key: 0,
122
+ class: "top-notice_itemButton",
123
+ size: "s"
124
+ }, o.buttonProps, {
125
+ title: o.buttonProps.title,
126
+ innerHTML: o.buttonProps.default,
127
+ onClick: n[0] || (n[0] = (b) => g())
128
+ }), null, 16, ["title", "innerHTML"])) : p("", !0),
129
+ o.metaText ? (r(), m("div", {
130
+ key: 1,
131
+ class: "top-notice_itemMetaText",
132
+ innerHTML: o.metaText
133
+ }, null, 8, R)) : p("", !0),
134
+ _("div", {
135
+ class: "top-notice_itemClose",
136
+ "data-top-icon": "",
137
+ title: o.$i18n.Common.Close,
138
+ onClick: n[1] || (n[1] = () => g())
139
+ }, null, 8, X)
140
+ ], 2)), [
141
+ [P]
142
+ ]);
143
+ };
144
+ }
145
+ }), Z = { class: "top-notice" }, ne = /* @__PURE__ */ k({
146
+ __name: "notice",
147
+ setup(e) {
148
+ const s = (t) => {
149
+ var i;
150
+ (i = t.onClose) == null || i.call(t), u.delete(t.id);
151
+ };
152
+ return (t, i) => (r(), C(x, { to: "body" }, [
153
+ _("div", Z, [
154
+ (r(!0), m(O, null, V(A(u), ([d, l]) => (r(), C(Y, {
155
+ key: l.id,
156
+ id: l.id,
157
+ title: l.title,
158
+ text: l.text,
159
+ style: F(l.style),
160
+ buttonProps: l.buttonProps,
161
+ metaText: l.metaText,
162
+ isSafeHTML: l.isSafeHTML,
163
+ forceClosed: l.forceClosed,
164
+ hightlight: l.hightlight,
165
+ onClose: (a) => s(l)
166
+ }, null, 8, ["id", "title", "text", "style", "buttonProps", "metaText", "isSafeHTML", "forceClosed", "hightlight", "onClose"]))), 128))
167
+ ])
168
+ ]));
169
+ }
170
+ });
171
+ export {
172
+ ne as default,
173
+ se as show
174
+ };
175
+ //# sourceMappingURL=notice-fno9saBY.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notice-fno9saBY.es.js","sources":["../../src/components/core/notice/utils.ts","../../src/components/core/notice/item/item.vue","../../src/components/core/notice/notice.vue"],"sourcesContent":["import { reactive } from 'vue';\nimport type { Props as ItemProps, Props, Style } from '@/components/core/notice/item/types';\nimport Core from '@/core/core/core';\nimport { genIntHash } from '@/core/utils/string';\n\nexport const transitionDuration = 300;\n\nexport type Item = Props & { onClose?: Function };\n\nexport const itemById = reactive(new Map<string, Item>());\n\nconst genItemId = (text: ItemProps['text'], style: ItemProps['style'], options?: Options) => {\n\treturn 'top-notice_' + genIntHash(text + style + JSON.stringify(options));\n};\n\nexport type Options = {\n\ttitle?: ItemProps['title'],\n\tmetaText?: ItemProps['metaText'],\n\tbuttonProps?: ItemProps['buttonProps'],\n\tisSafeHTML?: ItemProps['isSafeHTML'],\n\tselectToClose?: ItemProps['selectToClose'],\n\tonClose?: Function\n}\n\n/**\n * Показать сообщением в стиле push уведомления\n *\n * title будет получен из первой строки text\n *\n * Если в options указан title, он будет взят оттуда\n */\nexport const show = (text: string, style: Style = 'info', options?: Options) => {\n\tlet title = '';\n\n\ttext = String(text);\n\n\tconst id = genItemId(text, style, options);\n\n\tif (options?.title) {\n\t\ttitle = options.title;\n\t} else {\n\t\tconst chunks = text.split('\\n');\n\n\t\tif (chunks.length) {\n\t\t\ttitle = String(chunks.shift());\n\t\t\ttext = chunks.join('\\n');\n\t\t}\n\t}\n\n\tconst itemExists = itemById.get(id);\n\tif (itemExists) {\n\t\thightlight(itemExists);\n\n\t\treturn;\n\t}\n\n\tconst item: Item = {\n\t\tid,\n\t\ttitle,\n\t\ttext,\n\t\tstyle,\n\t\tbuttonProps: options?.buttonProps,\n\t\tmetaText: options?.metaText,\n\t\tisSafeHTML: options?.isSafeHTML,\n\t\tselectToClose: options?.selectToClose,\n\t\tonClose: options?.onClose,\n\t};\n\n\titemById.set(item.id, item);\n\n\tif (itemById.size > 5) {\n\t\tconst [_firstId, firstItem] = [...itemById].at(0) || [];\n\t\tif (firstItem) close(firstItem);\n\t}\n\n\t/**\n\t * Автозакрытие ошибок форм\n\t *\n\t * Добавляет\n\t */\n\tif (Core.state.isMobile) {\n\t\t$('input').one('click', () => close(item));\n\t}\n};\n\nconst hightlight = (item: Item) => {\n\titem.hightlight = true;\n\n\tsetTimeout(() => item.hightlight = false, transitionDuration);\n};\n\nconst close = (item: Item) => {\n\titem.forceClosed = true;\n\n\tsetTimeout(() => {\n\t\titem.onClose?.();\n\n\t\titemById.delete(item.id);\n\t}, transitionDuration);\n};\n\n/**\n * Убрать подозрительный html код\n */\nexport const prepareText = (text: string) => {\n\tconst textNoSafety = 'hacking was detected';\n\n\ttext = text.replace(/<script/g, textNoSafety);\n\ttext = text.replace(/<img/g, textNoSafety);\n\ttext = text.replace(/<iframe/g, textNoSafety);\n\ttext = text.replace(/javascript:/g, textNoSafety);\n\ttext = text.replace(/<[^>]+ (@|on)\\w+=[^>]+>?/g, textNoSafety);\n\n\treturn text;\n};\n","<script setup lang=\"ts\">\nimport { computed, ref, withDefaults } from 'vue';\n\nimport Core from '@/core/core/core';\nimport { nl2br } from '@/core/utils/string';\n\nimport type { Emits, Props } from './types';\nimport { prepareText, transitionDuration } from '@/components/core/notice/utils';\n\nconst props = withDefaults(defineProps<Props>(), {\n\tselectToClose: true,\n});\n\nconst emit = defineEmits<Emits>();\n\n// анимация появления\nconst showed = ref(false);\nsetTimeout(() => showed.value = true, 10);\n\n// анимация закрытия\nconst closed = ref(false);\nconst closedDirection = ref<'top' | 'right' | 'bottom' | 'left'>('right');\n\nconst title = computed(() => {\n\tlet res = props.title.replace(/ {2}/g, '&nbsp;');\n\n\tif (!props.isSafeHTML) res = prepareText(res);\n\n\treturn res;\n});\n\nconst text = computed(() => {\n\tlet res = nl2br(props.text);\n\n\tres = res.replace(/ {2}/g, '&nbsp;');\n\n\tif (!props.isSafeHTML) res = prepareText(res);\n\n\treturn res;\n});\n\nconst close = (direction?: typeof closedDirection.value) => {\n\tclosed.value = true;\n\n\tif (direction) {\n\t\tclosedDirection.value = direction;\n\t}\n\n\tsetTimeout(() => emit('close'), transitionDuration);\n};\n\nconst onClick = (e: MouseEvent) => {\n\tif (!props.selectToClose) return;\n\n\tconst { tagName } = e.target as HTMLElement;\n\n\tif (tagName === 'A') close();\n\tif (tagName === 'BUTTON') close();\n};\n\nconst vSwipe = {\n\tmounted: (el: HTMLElement) => {\n\t\tif (!Core.state.isMobile) return;\n\n\t\tif (!Core.$ || !Core.$.ui['draggable']) return;\n\n\t\tlet direction: typeof closedDirection.value = 'right';\n\n\t\tlet axis = 'x';\n\t\t// if (getOS() === 'iOS') axis = 'y';\n\n\t\tCore.$(el).draggable({\n\t\t\trevert: false,\n\t\t\taxis,\n\t\t\tdrag: (_e, ui) => {\n\t\t\t\tif (axis == 'x') {\n\t\t\t\t\tdirection = ui.position.left > 0 ? 'right' : 'left';\n\t\t\t\t} else {\n\t\t\t\t\tdirection = ui.position.top > 0 ? 'bottom' : 'top';\n\t\t\t\t}\n\t\t\t},\n\t\t\tstop: (_e, _ui) => {\n\t\t\t\tclose(direction);\n\t\t\t},\n\t\t});\n\t},\n};\n\n// const vSwipe = {\n// \tmounted: (el: HTMLElement) => {\n// \t\tconst { distanceX, direction } = usePointerSwipe(el, {\n// \t\t\tdisableTextSelect: true,\n// \t\t\tonSwipe(e: PointerEvent) {\n// \t\t\t\tleft.value = -distanceX.value + 'px';\n// \t\t\t},\n// \t\t\tonSwipeEnd: (_e, direction) => {\n// \t\t\t\tclose(direction);\n// \t\t\t},\n// \t\t});\n// \t},\n// };\n</script>\n\n<template>\n\t<div\n\t\tclass=\"top-notice_item\"\n\t\t:class=\"{\n\t\t\t['top-notice_item-' + style]: true,\n\t\t\t'top-notice_item-hightlight': hightlight,\n\t\t\t'top-notice_item-showed': showed,\n\t\t\t'top-notice_item-closed': closed || forceClosed,\n\t\t\t['top-notice_item-closed_' + closedDirection]: closed,\n\t\t}\"\n\t\t@click=\"onClick\"\n\t\tv-swipe\n\t>\n\t\t<div class=\"top-notice_itemTextWrapper\">\n\t\t\t<div v-if=\"title\" class=\"top-notice_itemTitle\" v-html=\"title\"></div>\n\t\t\t<div v-if=\"text\" class=\"top-notice_itemText\" v-html=\"text\"></div>\n\t\t</div>\n\n\t\t<TopButton\n\t\t\tv-if=\"buttonProps\"\n\t\t\tclass=\"top-notice_itemButton\"\n\t\t\tsize=\"s\"\n\t\t\t:=\"buttonProps\"\n\t\t\t:title=\"buttonProps.title\"\n\t\t\tv-html=\"buttonProps.default\"\n\t\t\t@click=\"close()\"\n\t\t/>\n\n\t\t<div v-if=\"metaText\" class=\"top-notice_itemMetaText\" v-html=\"metaText\"></div>\n\n\t\t<div\n\t\t\tclass=\"top-notice_itemClose\"\n\t\t\tdata-top-icon=\"\"\n\t\t\t:title=\"$i18n.Common.Close\"\n\t\t\t@click=\"() => close()\"\n\t\t></div>\n\t</div>\n</template>\n\n<style>\n@import \"style.css\";\n</style>\n","<!-- performance all in one file component, для Core.notice() -->\n<script lang=\"ts\">\nexport { show } from './utils';\n</script>\n\n<script setup lang=\"ts\">\nimport type { Item } from './utils';\nimport { itemById } from './utils';\n\nimport type { Props } from './types';\nimport TopNoticeItem from './item/item.vue';\n\ndefineProps<Props>();\n\nconst onCloseItem = (item: Item) => {\n\titem.onClose?.();\n\n\titemById.delete(item.id);\n};\n</script>\n\n<template>\n\t<teleport to=\"body\">\n\t\t<div class=\"top-notice\">\n\t\t\t<TopNoticeItem\n\t\t\t\tv-for=\"[_index, item] in itemById\"\n\t\t\t\t:key=\"item.id\"\n\t\t\t\t:id=\"item.id\"\n\t\t\t\t:title=\"item.title\"\n\t\t\t\t:text=\"item.text\"\n\t\t\t\t:style=\"item.style\"\n\t\t\t\t:buttonProps=\"item.buttonProps\"\n\t\t\t\t:metaText=\"item.metaText\"\n\t\t\t\t:isSafeHTML=\"item.isSafeHTML\"\n\t\t\t\t:forceClosed=\"item.forceClosed\"\n\t\t\t\t:hightlight=\"item.hightlight\"\n\t\t\t\t@close=\"onCloseItem(item)\"\n\t\t\t/>\n\t\t</div>\n\t</teleport>\n</template>\n\n<style>\n:root {\n\t--top-notice-top: var(--top-padding-4);\n\t--top-notice-right: var(--top-padding-4);\n}\n\n.top-notice {\n\twidth: 400px;\n\tfont-size: 14px;\n\tposition: fixed; top: var(--top-notice-top); right: var(--top-notice-right);\n\tz-index: 1000010;\n\tdisplay: flex; flex-direction: column-reverse; gap: var(--top-gap-2);\n}\n\n.top-notice ul {\n\tpadding: 0 0 0 var(--top-padding-5);\n}\n\n@media only screen and (max-width: 600px) {\n\t:root {\n\t\t--top-notice-top: var(--top-padding-4);\n\t\t--top-notice-right: var(--top-padding-4);\n\t}\n\n\t.top-notice { width: auto; left: var(--top-notice-right); }\n}\n</style>\n"],"names":["transitionDuration","itemById","reactive","genItemId","text","style","options","genIntHash","show","title","id","chunks","itemExists","hightlight","item","_firstId","firstItem","close","Core","_a","prepareText","textNoSafety","props","__props","emit","__emit","showed","ref","closed","closedDirection","computed","res","nl2br","direction","onClick","e","tagName","vSwipe","el","_e","ui","_ui","normalizeClass","_ctx","forceClosed","openBlock","createElementBlock","_hoisted_2","createCommentVNode","_hoisted_3","_cache","$event","metaText","_hoisted_5","onCloseItem","createElementVNode","_hoisted_1","Fragment","renderList","unref","_index","normalizeStyle"],"mappings":";;;;;;AAKO,MAAAA,IAAA,KAIAC,IAAAC,EAAA,oBAAA,IAAA,CAAA,GAEPC,IAAA,CAAAC,GAAAC,GAAAC,MACC,gBAAAC,EAAAH,IAAAC,IAAA,KAAA,UAAAC,CAAA,CAAA,GAmBME,KAAA,CAAAJ,GAAAC,IAAA,QAAAC,MAAA;AACN,MAAAG,IAAA;AAEA,EAAAL,IAAA,OAAAA,CAAA;AAEA,QAAAM,IAAAP,EAAAC,GAAAC,GAAAC,CAAA;AAEA,MAAAA,KAAA,QAAAA,EAAA;AACC,IAAAG,IAAAH,EAAA;AAAA,OAAgB;AAEhB,UAAAK,IAAAP,EAAA,MAAA;AAAA,CAAA;AAEA,IAAAO,EAAA,WACCF,IAAA,OAAAE,EAAA,MAAA,CAAA,GACAP,IAAAO,EAAA,KAAA;AAAA,CAAA;AAAA,EACD;AAGD,QAAAC,IAAAX,EAAA,IAAAS,CAAA;AACA,MAAAE,GAAA;AACC,IAAAC,EAAAD,CAAA;AAEA;AAAA,EAAA;AAGD,QA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,IAEAb,EAAA,OAAAa,EAAA,EAAA;AAAA,IAAuB;;MAKJyC,EAAA,OAAAC,GAAA;AAAA,SAgBZX,EAAA,EAAA,GAAAC,EAAAW,GAAA,MAAAC,EAAAC,EAAA1D,CAAA,GAAA,CAAA,CAAA2D,GAAA9C,CAAA;UADH,KAAAA,EAAA;AAAA,UAXU,IAAAA,EAAA;AAAA,UACD,OAAAA,EAAA;AAAA,UACG,MAAAA,EAAA;AAAA,UACD,OAAA+C,EAAA/C,EAAA,KAAA;AAAA,UACM,aAAAA,EAAA;AAAA,UACC,UAAAA,EAAA;AAAA,UACH,YAAAA,EAAA;AAAA,UACE,aAAAA,EAAA;AAAA,UACC,YAAAA,EAAA;AAAA,UACD,SAAA,CAAAqC,MAAAG,EAAAxC,CAAA;AAAA,QACM,GAAA,MAAA,GAAA,CAAA,MAAA,SAAA,QAAA,SAAA,eAAA,YAAA,cAAA,eAAA,cAAA,SAAA,CAAA;;;;;"}
@@ -0,0 +1,143 @@
1
+ import { defineComponent as v, provide as f, onMounted as w, getCurrentInstance as b, watch as $, createElementBlock as l, openBlock as s, unref as t, normalizeStyle as u, normalizeClass as n, createElementVNode as i, renderSlot as r, computed as k, resolveDirective as D, createCommentVNode as c, createBlock as h, Teleport as g, withDirectives as T } from "vue";
2
+ import { g as _ } from "./dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js";
3
+ import { C } from "./forms-DarRVke_.es.js";
4
+ import { b as A } from "./utils-3M9LC_L_.es.js";
5
+ const B = ["id", "data-view-page-active", "data-modal", "data-position"], q = /* @__PURE__ */ v({
6
+ __name: "dialog",
7
+ props: {
8
+ id: {},
9
+ pageActive: {},
10
+ width: { default: "600px" },
11
+ height: { default: "auto" },
12
+ modal: { type: Boolean, default: !0 },
13
+ position: {},
14
+ historyType: { default: "push" },
15
+ classes: {}
16
+ },
17
+ emits: ["open", "close"],
18
+ setup(p) {
19
+ const o = _(p.id);
20
+ if (!o)
21
+ throw new Error("TopDialog cannot be used in a template, use useTopDialog() / useAsyncTopDialog()");
22
+ return f("dialogWorker", o), w(() => {
23
+ var d;
24
+ const a = b(), e = a.parent;
25
+ if (((d = e == null ? void 0 : e.parent) == null ? void 0 : d.type.name) !== "DialogWrapper")
26
+ throw new Error("TopDialog cannot be used in a template, use useTopDialog()");
27
+ if (Array.isArray(e.subTree.children) && e.subTree.children.length !== 1)
28
+ throw new Error("TopDialog can has only one root element");
29
+ o.onMounted(e, a);
30
+ }), $(o.isOpened, () => {
31
+ o.isReady.value = !0;
32
+ }, {
33
+ flush: "post",
34
+ once: !0
35
+ }), (a, e) => (s(), l("div", {
36
+ id: t(o).idAttr,
37
+ class: n(["top-dialog", a.classes]),
38
+ style: u({
39
+ "--top-dialog-width": a.width,
40
+ "--top-dialog-height": a.height
41
+ }),
42
+ tabindex: "-1",
43
+ "data-view-page-active": t(o).pageActive.value,
44
+ "data-modal": a.modal,
45
+ "data-position": a.position
46
+ }, [
47
+ e[0] || (e[0] = i("div", { class: "modal-layer modal-layer-header" }, null, -1)),
48
+ i("div", {
49
+ class: "modal-layer modal-layer-body",
50
+ style: u({ "min-height": a.height + "px" })
51
+ }, null, 4),
52
+ r(a.$slots, "default")
53
+ ], 14, B));
54
+ }
55
+ }), W = {
56
+ key: 0,
57
+ style: { display: "none" }
58
+ }, E = ["data-order", "data-view-page"], N = { class: "modal-header" }, S = { class: "top-title" }, L = { class: "buttons" }, M = ["title"], P = ["title"], z = ["data-order", "data-view-page"], F = { class: "modal-body" }, G = /* @__PURE__ */ v({
59
+ __name: "page",
60
+ props: {
61
+ isLoading: { type: Boolean },
62
+ name: {},
63
+ order: { default: 0 },
64
+ prevName: {},
65
+ footerFullWith: { type: Boolean }
66
+ },
67
+ setup(p) {
68
+ const m = p, o = A(), a = k(() => {
69
+ var e;
70
+ return {
71
+ active: ((e = o.pageActive) == null ? void 0 : e.value) === m.name,
72
+ "i-load-data": m.isLoading || o.isLoadingPage.value
73
+ };
74
+ });
75
+ return (e, d) => {
76
+ const y = D("top-scroll-shadow");
77
+ return t(o).isReady.value ? (s(), l("div", W, [
78
+ (s(), h(g, {
79
+ to: "#" + t(o).idAttr + " .modal-layer-header",
80
+ disabled: !t(o).needShowPage(e.name)
81
+ }, [
82
+ i("div", {
83
+ "data-order": e.order,
84
+ "data-view-page": e.name,
85
+ class: n(a.value)
86
+ }, [
87
+ i("div", N, [
88
+ i("div", S, [
89
+ r(e.$slots, "header")
90
+ ]),
91
+ i("div", L, [
92
+ r(e.$slots, "headerButtons")
93
+ ]),
94
+ t(C).state.isMobile && e.prevName ? (s(), l("div", {
95
+ key: 0,
96
+ class: "close",
97
+ title: e.$i18n.Common.Back,
98
+ "data-top-icon": "",
99
+ onClick: d[0] || (d[0] = (R) => t(o).open(e.prevName))
100
+ }, null, 8, M)) : (s(), l("div", {
101
+ key: 1,
102
+ class: "close",
103
+ title: e.$i18n.Common.Close,
104
+ "data-top-icon": "",
105
+ "data-action": "top-dialog-close"
106
+ }, null, 8, P))
107
+ ])
108
+ ], 10, E)
109
+ ], 8, ["to", "disabled"])),
110
+ (s(), h(g, {
111
+ to: "#" + t(o).idAttr + " .modal-layer-body",
112
+ disabled: !t(o).needShowPage(e.name)
113
+ }, [
114
+ i("div", {
115
+ "data-order": e.order,
116
+ "data-view-page": e.name,
117
+ class: n(["has_scroll_container", a.value]),
118
+ style: u({ "--top-dialog-footer-height": e.$slots.footer ? void 0 : "0px" })
119
+ }, [
120
+ T((s(), l("div", F, [
121
+ r(e.$slots, "body")
122
+ ])), [
123
+ [y]
124
+ ]),
125
+ e.$slots.footer ? (s(), l("div", {
126
+ key: 0,
127
+ class: n(["modal-footer", {
128
+ "modal-footer-fullWith": e.footerFullWith
129
+ }])
130
+ }, [
131
+ r(e.$slots, "footer")
132
+ ], 2)) : c("", !0)
133
+ ], 14, z)
134
+ ], 8, ["to", "disabled"]))
135
+ ])) : c("", !0);
136
+ };
137
+ }
138
+ });
139
+ export {
140
+ q as _,
141
+ G as a
142
+ };
143
+ //# sourceMappingURL=page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js","sources":["../../src/components/dialog/dialog/dialog.vue","../../src/components/dialog/dialog/page/page.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { ComponentInternalInstance } from 'vue';\nimport { getCurrentInstance, onMounted, provide, watch } from 'vue';\nimport { getDialogWorker } from './dialogs/dialogs.vue';\nimport type { Emits, Props, Slots } from './types';\n\nconst props = withDefaults(defineProps<Props>(), {\n\twidth: '600px',\n\theight: 'auto',\n\tmodal: true,\n\thistoryType: 'push',\n});\n\ndefineEmits<Emits>();\n\ndefineSlots<Slots>();\n\nconst dialog = getDialogWorker(props.id);\nif (!dialog) {\n\tthrow new Error('TopDialog cannot be used in a template, use useTopDialog() / useAsyncTopDialog()');\n}\n\n/**\n * Для useTopDialogSelf()\n */\nprovide('dialogWorker', dialog);\n\n/**\n * Инициализация начального состояния TopDialogHandle\n */\nonMounted(() => {\n\tconst topDialogBaseComponent = getCurrentInstance() as ComponentInternalInstance;\n\tconst topDialogComponent = topDialogBaseComponent.parent;\n\n\tif (topDialogComponent?.parent?.type.name !== 'DialogWrapper') {\n\t\tthrow new Error('TopDialog cannot be used in a template, use useTopDialog()');\n\t}\n\n\tif (Array.isArray(topDialogComponent.subTree.children) && topDialogComponent.subTree.children.length !== 1) {\n\t\tthrow new Error('TopDialog can has only one root element');\n\t}\n\n\tdialog.onMounted(topDialogComponent, topDialogBaseComponent);\n});\n\nwatch(dialog.isOpened, () => {\n\tdialog.isReady.value = true;\n}, {\n\tflush: 'post',\n\tonce: true,\n});\n</script>\n\n<template>\n\t<div\n\t\t:id=\"dialog.idAttr\"\n\t\tclass=\"top-dialog\"\n\t\t:class=\"classes\"\n\t\t:style=\"{\n\t\t\t'--top-dialog-width': width,\n\t\t\t'--top-dialog-height': height,\n\t\t}\"\n\t\ttabindex=\"-1\"\n\t\t:data-view-page-active=\"dialog.pageActive.value\"\n\t\t:data-modal=\"modal\"\n\t\t:data-position=\"position\"\n\t>\n\t\t<div class=\"modal-layer modal-layer-header\"></div>\n\n\t\t<div class=\"modal-layer modal-layer-body\" :style=\"{'min-height': height + 'px'}\"></div>\n\n\t\t<slot name=\"default\"></slot>\n\t</div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport Core from '@/core/core/core';\nimport { useTopDialogSelf } from '@/components/dialog/dialog/composables/utils';\nimport type { Props, Slots } from './types';\n\nconst props = withDefaults(defineProps<Props>(), {\n\torder: 0,\n});\n\ndefineSlots<Slots>();\n\nconst dialog = useTopDialogSelf();\n\nconst classes = computed(() => {\n\treturn {\n\t\tactive: dialog.pageActive?.value === props.name,\n\t\t'i-load-data': props.isLoading || dialog.isLoadingPage.value,\n\t};\n});\n</script>\n\n<template>\n\t<div\n\t\tstyle=\"display: none\"\n\t\tv-if=\"dialog.isReady.value\"\n\t>\n\t\t<Teleport :to=\"'#' + dialog.idAttr + ' .modal-layer-header'\" :disabled=\"!dialog.needShowPage(name)\">\n\t\t\t<div\n\t\t\t\t:data-order=\"order\"\n\t\t\t\t:data-view-page=\"name\"\n\t\t\t\t:class=\"classes\"\n\t\t\t>\n\t\t\t\t<div class=\"modal-header\">\n\t\t\t\t\t<div class=\"top-title\">\n\t\t\t\t\t\t<slot name=\"header\"></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"buttons\">\n\t\t\t\t\t\t<slot name=\"headerButtons\"></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tv-if=\"Core.state.isMobile && prevName\"\n\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t:title=\"$i18n.Common.Back\"\n\t\t\t\t\t\tdata-top-icon=\"\"\n\t\t\t\t\t\t@click=\"dialog.open(prevName)\"\n\t\t\t\t\t></div>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tv-else\n\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t:title=\"$i18n.Common.Close\"\n\t\t\t\t\t\tdata-top-icon=\"\"\n\t\t\t\t\t\tdata-action=\"top-dialog-close\"\n\t\t\t\t\t></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</Teleport>\n\n\t\t<Teleport :to=\"'#' + dialog.idAttr + ' .modal-layer-body'\" :disabled=\"!dialog.needShowPage(name)\">\n\t\t\t<div\n\t\t\t\t:data-order=\"order\"\n\t\t\t\t:data-view-page=\"name\"\n\t\t\t\tclass=\"has_scroll_container\"\n\t\t\t\t:class=\"classes\"\n\t\t\t\t:style=\"{'--top-dialog-footer-height': $slots.footer ? undefined : '0px'}\"\n\t\t\t>\n\t\t\t\t<div class=\"modal-body\" v-top-scroll-shadow>\n\t\t\t\t\t<slot name=\"body\"></slot>\n\t\t\t\t</div>\n\n\t\t\t\t<div\n\t\t\t\t\tclass=\"modal-footer\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t'modal-footer-fullWith': footerFullWith\n\t\t\t\t\t}\"\n\t\t\t\t\tv-if=\"$slots.footer\"\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"footer\"></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</Teleport>\n\t</div>\n</template>\n"],"names":["dialog","getDialogWorker","__props","provide","onMounted","topDialogBaseComponent","getCurrentInstance","topDialogComponent","_a","watch","_createElementBlock","_unref","_normalizeClass","classes","_normalizeStyle","width","height","modal","position","_createElementVNode","_renderSlot","_ctx","props","useTopDialogSelf","computed","_openBlock","_hoisted_1","_createBlock","_Teleport","name","order","_hoisted_3","_hoisted_4","_hoisted_5","Core","prevName","$i18n","_cache","$event","$slots","_withDirectives","_hoisted_9","footerFullWith"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,UAAMA,IAASC,EAXDC,EAWuB,EAAE;AACvC,QAAI,CAACF;AACJ,YAAM,IAAI,MAAM,kFAAkF;AAMnG,WAAAG,EAAQ,gBAAgBH,CAAM,GAK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AAAA,YACZ,kBAAgBD,EAAAA;AAAAA,YACjB,OAAKjB,EAAA,CAAC,wBACEC,EAAA,KAAO,CAAA;AAAA,YACd,OAAKC,EAAA,EAAA,8BAAiCyB,EAAAA,OAAO,SAAS,SAAS,MAAA,CAAA;AAAA,UAAA;YAEhEC,GAAAf,EAAA,GAAAf,EAEM,OAFN+B,GAEM;AAAA,cADLrB,EAAyBC,EAAA,QAAA,MAAA;AAAA,YAAA;;;YAQnBkB,EAAAA,OAAO,eALd7B,EAQM,OAAA;AAAA;cAPL,UAAM,gBAAc;AAAA,yCACqBgC,EAAAA;AAAAA,cAAAA;;cAKzCtB,EAA2BC,EAAA,QAAA,QAAA;AAAA,YAAA;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ define(["require","exports","vue","./dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd","./forms-CgtkdwgA.amd","./utils-D9D3zzjc.amd"],(function(b,i,e,r,d,p){"use strict";if(typeof e>"u")var e=window.Vue;const c=["id","data-view-page-active","data-modal","data-position"],u=e.defineComponent({__name:"dialog",props:{id:{},pageActive:{},width:{default:"600px"},height:{default:"auto"},modal:{type:Boolean,default:!0},position:{},historyType:{default:"push"},classes:{}},emits:["open","close"],setup(s){const n=s,t=r.getDialogWorker(n.id);if(!t)throw new Error("TopDialog cannot be used in a template, use useTopDialog() / useAsyncTopDialog()");return e.provide("dialogWorker",t),e.onMounted(()=>{var l;const a=e.getCurrentInstance(),o=a.parent;if(((l=o==null?void 0:o.parent)==null?void 0:l.type.name)!=="DialogWrapper")throw new Error("TopDialog cannot be used in a template, use useTopDialog()");if(Array.isArray(o.subTree.children)&&o.subTree.children.length!==1)throw new Error("TopDialog can has only one root element");t.onMounted(o,a)}),e.watch(t.isOpened,()=>{t.isReady.value=!0},{flush:"post",once:!0}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(t).idAttr,class:e.normalizeClass(["top-dialog",a.classes]),style:e.normalizeStyle({"--top-dialog-width":a.width,"--top-dialog-height":a.height}),tabindex:"-1","data-view-page-active":e.unref(t).pageActive.value,"data-modal":a.modal,"data-position":a.position},[o[0]||(o[0]=e.createElementVNode("div",{class:"modal-layer modal-layer-header"},null,-1)),e.createElementVNode("div",{class:"modal-layer modal-layer-body",style:e.normalizeStyle({"min-height":a.height+"px"})},null,4),e.renderSlot(a.$slots,"default")],14,c))}}),m={key:0,style:{display:"none"}},h=["data-order","data-view-page"],v={class:"modal-header"},g={class:"top-title"},f={class:"buttons"},y=["title"],k=["title"],w=["data-order","data-view-page"],B={class:"modal-body"},_=e.defineComponent({__name:"page",props:{isLoading:{type:Boolean},name:{},order:{default:0},prevName:{},footerFullWith:{type:Boolean}},setup(s){const n=s,t=p.useTopDialogSelf(),a=e.computed(()=>{var o;return{active:((o=t.pageActive)==null?void 0:o.value)===n.name,"i-load-data":n.isLoading||t.isLoadingPage.value}});return(o,l)=>{const E=e.resolveDirective("top-scroll-shadow");return e.unref(t).isReady.value?(e.openBlock(),e.createElementBlock("div",m,[(e.openBlock(),e.createBlock(e.Teleport,{to:"#"+e.unref(t).idAttr+" .modal-layer-header",disabled:!e.unref(t).needShowPage(o.name)},[e.createElementVNode("div",{"data-order":o.order,"data-view-page":o.name,class:e.normalizeClass(a.value)},[e.createElementVNode("div",v,[e.createElementVNode("div",g,[e.renderSlot(o.$slots,"header")]),e.createElementVNode("div",f,[e.renderSlot(o.$slots,"headerButtons")]),e.unref(d.Core).state.isMobile&&o.prevName?(e.openBlock(),e.createElementBlock("div",{key:0,class:"close",title:o.$i18n.Common.Back,"data-top-icon":"",onClick:l[0]||(l[0]=C=>e.unref(t).open(o.prevName))},null,8,y)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"close",title:o.$i18n.Common.Close,"data-top-icon":"","data-action":"top-dialog-close"},null,8,k))])],10,h)],8,["to","disabled"])),(e.openBlock(),e.createBlock(e.Teleport,{to:"#"+e.unref(t).idAttr+" .modal-layer-body",disabled:!e.unref(t).needShowPage(o.name)},[e.createElementVNode("div",{"data-order":o.order,"data-view-page":o.name,class:e.normalizeClass(["has_scroll_container",a.value]),style:e.normalizeStyle({"--top-dialog-footer-height":o.$slots.footer?void 0:"0px"})},[e.withDirectives((e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(o.$slots,"body")])),[[E]]),o.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["modal-footer",{"modal-footer-fullWith":o.footerFullWith}])},[e.renderSlot(o.$slots,"footer")],2)):e.createCommentVNode("",!0)],14,w)],8,["to","disabled"]))])):e.createCommentVNode("",!0)}}});i._sfc_main=u,i._sfc_main$1=_}));
2
+ //# sourceMappingURL=page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js","sources":["../../src/components/dialog/dialog/dialog.vue","../../src/components/dialog/dialog/page/page.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { ComponentInternalInstance } from 'vue';\nimport { getCurrentInstance, onMounted, provide, watch } from 'vue';\nimport { getDialogWorker } from './dialogs/dialogs.vue';\nimport type { Emits, Props, Slots } from './types';\n\nconst props = withDefaults(defineProps<Props>(), {\n\twidth: '600px',\n\theight: 'auto',\n\tmodal: true,\n\thistoryType: 'push',\n});\n\ndefineEmits<Emits>();\n\ndefineSlots<Slots>();\n\nconst dialog = getDialogWorker(props.id);\nif (!dialog) {\n\tthrow new Error('TopDialog cannot be used in a template, use useTopDialog() / useAsyncTopDialog()');\n}\n\n/**\n * Для useTopDialogSelf()\n */\nprovide('dialogWorker', dialog);\n\n/**\n * Инициализация начального состояния TopDialogHandle\n */\nonMounted(() => {\n\tconst topDialogBaseComponent = getCurrentInstance() as ComponentInternalInstance;\n\tconst topDialogComponent = topDialogBaseComponent.parent;\n\n\tif (topDialogComponent?.parent?.type.name !== 'DialogWrapper') {\n\t\tthrow new Error('TopDialog cannot be used in a template, use useTopDialog()');\n\t}\n\n\tif (Array.isArray(topDialogComponent.subTree.children) && topDialogComponent.subTree.children.length !== 1) {\n\t\tthrow new Error('TopDialog can has only one root element');\n\t}\n\n\tdialog.onMounted(topDialogComponent, topDialogBaseComponent);\n});\n\nwatch(dialog.isOpened, () => {\n\tdialog.isReady.value = true;\n}, {\n\tflush: 'post',\n\tonce: true,\n});\n</script>\n\n<template>\n\t<div\n\t\t:id=\"dialog.idAttr\"\n\t\tclass=\"top-dialog\"\n\t\t:class=\"classes\"\n\t\t:style=\"{\n\t\t\t'--top-dialog-width': width,\n\t\t\t'--top-dialog-height': height,\n\t\t}\"\n\t\ttabindex=\"-1\"\n\t\t:data-view-page-active=\"dialog.pageActive.value\"\n\t\t:data-modal=\"modal\"\n\t\t:data-position=\"position\"\n\t>\n\t\t<div class=\"modal-layer modal-layer-header\"></div>\n\n\t\t<div class=\"modal-layer modal-layer-body\" :style=\"{'min-height': height + 'px'}\"></div>\n\n\t\t<slot name=\"default\"></slot>\n\t</div>\n</template>\n","<script setup lang=\"ts\">\nimport { computed } from 'vue';\nimport Core from '@/core/core/core';\nimport { useTopDialogSelf } from '@/components/dialog/dialog/composables/utils';\nimport type { Props, Slots } from './types';\n\nconst props = withDefaults(defineProps<Props>(), {\n\torder: 0,\n});\n\ndefineSlots<Slots>();\n\nconst dialog = useTopDialogSelf();\n\nconst classes = computed(() => {\n\treturn {\n\t\tactive: dialog.pageActive?.value === props.name,\n\t\t'i-load-data': props.isLoading || dialog.isLoadingPage.value,\n\t};\n});\n</script>\n\n<template>\n\t<div\n\t\tstyle=\"display: none\"\n\t\tv-if=\"dialog.isReady.value\"\n\t>\n\t\t<Teleport :to=\"'#' + dialog.idAttr + ' .modal-layer-header'\" :disabled=\"!dialog.needShowPage(name)\">\n\t\t\t<div\n\t\t\t\t:data-order=\"order\"\n\t\t\t\t:data-view-page=\"name\"\n\t\t\t\t:class=\"classes\"\n\t\t\t>\n\t\t\t\t<div class=\"modal-header\">\n\t\t\t\t\t<div class=\"top-title\">\n\t\t\t\t\t\t<slot name=\"header\"></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"buttons\">\n\t\t\t\t\t\t<slot name=\"headerButtons\"></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tv-if=\"Core.state.isMobile && prevName\"\n\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t:title=\"$i18n.Common.Back\"\n\t\t\t\t\t\tdata-top-icon=\"\"\n\t\t\t\t\t\t@click=\"dialog.open(prevName)\"\n\t\t\t\t\t></div>\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tv-else\n\t\t\t\t\t\tclass=\"close\"\n\t\t\t\t\t\t:title=\"$i18n.Common.Close\"\n\t\t\t\t\t\tdata-top-icon=\"\"\n\t\t\t\t\t\tdata-action=\"top-dialog-close\"\n\t\t\t\t\t></div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</Teleport>\n\n\t\t<Teleport :to=\"'#' + dialog.idAttr + ' .modal-layer-body'\" :disabled=\"!dialog.needShowPage(name)\">\n\t\t\t<div\n\t\t\t\t:data-order=\"order\"\n\t\t\t\t:data-view-page=\"name\"\n\t\t\t\tclass=\"has_scroll_container\"\n\t\t\t\t:class=\"classes\"\n\t\t\t\t:style=\"{'--top-dialog-footer-height': $slots.footer ? undefined : '0px'}\"\n\t\t\t>\n\t\t\t\t<div class=\"modal-body\" v-top-scroll-shadow>\n\t\t\t\t\t<slot name=\"body\"></slot>\n\t\t\t\t</div>\n\n\t\t\t\t<div\n\t\t\t\t\tclass=\"modal-footer\"\n\t\t\t\t\t:class=\"{\n\t\t\t\t\t\t'modal-footer-fullWith': footerFullWith\n\t\t\t\t\t}\"\n\t\t\t\t\tv-if=\"$slots.footer\"\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"footer\"></slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</Teleport>\n\t</div>\n</template>\n"],"names":["vue","dialog","topDialogBaseComponent","topDialogComponent","_ctx","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