@topvisor/ui 1.0.42-popupPosition.0 → 1.1.0-addNativeDialog.7

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 (473) hide show
  1. package/.chunks/core-BJlLrRTO.amd.js +2 -0
  2. package/.chunks/{core-D-etXW3Y.amd.js.map → core-BJlLrRTO.amd.js.map} +1 -1
  3. package/.chunks/{core-BGKb9a73.es.js → core-kIIIPZME.es.js} +4 -4
  4. package/.chunks/{core-BGKb9a73.es.js.map → core-kIIIPZME.es.js.map} +1 -1
  5. package/.chunks/datepicker-DsKl-YZR.amd.js +2 -0
  6. package/.chunks/{datepicker-BWaVsTd0.amd.js.map → datepicker-DsKl-YZR.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-DCDYQmsc.es.js → datepicker-U31BrqE_.es.js} +2 -2
  8. package/.chunks/{datepicker-DCDYQmsc.es.js.map → datepicker-U31BrqE_.es.js.map} +1 -1
  9. package/.chunks/{dialog_selectorRegions-BAK6xG6N.es.js → dialog_selectorRegions-CX2F1Li-.es.js} +4 -4
  10. package/.chunks/{dialog_selectorRegions-BAK6xG6N.es.js.map → dialog_selectorRegions-CX2F1Li-.es.js.map} +1 -1
  11. package/.chunks/dialog_selectorRegions-Dq3V35Xa.amd.js +2 -0
  12. package/.chunks/{dialog_selectorRegions-CMI1gx5d.amd.js.map → dialog_selectorRegions-Dq3V35Xa.amd.js.map} +1 -1
  13. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Cmh_EuHe.amd.js +2 -0
  14. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Cmh_EuHe.amd.js.map +1 -0
  15. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-itEMqnD4.es.js +614 -0
  16. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-itEMqnD4.es.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-DRhpgERJ.amd.js +3 -0
  22. package/.chunks/forms-DRhpgERJ.amd.js.map +1 -0
  23. package/.chunks/{forms-DOGPN_TR.es.js → forms-t2AEUjqg.es.js} +20 -20
  24. package/.chunks/forms-t2AEUjqg.es.js.map +1 -0
  25. package/.chunks/lazy-CiM2Ny-s.amd.js +2 -0
  26. package/.chunks/lazy-CiM2Ny-s.amd.js.map +1 -0
  27. package/.chunks/lazy-Crun7esL.es.js +39 -0
  28. package/.chunks/lazy-Crun7esL.es.js.map +1 -0
  29. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js +184 -0
  30. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js.map +1 -0
  31. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js +2 -0
  32. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js.map +1 -0
  33. package/.chunks/menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js +110 -0
  34. package/.chunks/menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js.map +1 -0
  35. package/.chunks/menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js +2 -0
  36. package/.chunks/menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js.map +1 -0
  37. package/.chunks/{notice-DE88Oe-t.es.js → notice-4bdzRXtl.es.js} +2 -2
  38. package/.chunks/{notice-DE88Oe-t.es.js.map → notice-4bdzRXtl.es.js.map} +1 -1
  39. package/.chunks/{notice-C5sXcBql.amd.js → notice-DQ9qFyQ2.amd.js} +3 -3
  40. package/.chunks/{notice-C5sXcBql.amd.js.map → notice-DQ9qFyQ2.amd.js.map} +1 -1
  41. package/.chunks/page.vue_vue_type_script_setup_true_lang-CUYYklcQ.amd.js +2 -0
  42. package/.chunks/page.vue_vue_type_script_setup_true_lang-CUYYklcQ.amd.js.map +1 -0
  43. package/.chunks/page.vue_vue_type_script_setup_true_lang-D3VmFM-x.es.js +151 -0
  44. package/.chunks/page.vue_vue_type_script_setup_true_lang-D3VmFM-x.es.js.map +1 -0
  45. package/.chunks/{popup-BjsK_pMZ.es.js → popup-DuraSW2f.es.js} +84 -77
  46. package/.chunks/popup-DuraSW2f.es.js.map +1 -0
  47. package/.chunks/popup-IcMnYYXr.amd.js +2 -0
  48. package/.chunks/popup-IcMnYYXr.amd.js.map +1 -0
  49. package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
  50. package/.chunks/{punycode.es6-C2yitnNb.amd.js.map → punycode.es6-CNOnFR2-.amd.js.map} +1 -1
  51. package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
  52. package/.chunks/{punycode.es6-CNI-zL6U.es.js.map → punycode.es6-CgGegfA_.es.js.map} +1 -1
  53. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  54. package/.chunks/store-YRW59xEF.amd.js +2 -0
  55. package/.chunks/{store-esTid5oI.amd.js.map → store-YRW59xEF.amd.js.map} +1 -1
  56. package/.chunks/{utils-CRPkMfKD.es.js → utils-BnYtfWTQ.es.js} +2 -2
  57. package/.chunks/{utils-CRPkMfKD.es.js.map → utils-BnYtfWTQ.es.js.map} +1 -1
  58. package/.chunks/utils-IaE6iz_-.amd.js +2 -0
  59. package/.chunks/{utils-BVdq18mg.amd.js.map → utils-IaE6iz_-.amd.js.map} +1 -1
  60. package/api/additional.amd.js +2 -0
  61. package/api/additional.amd.js.map +1 -0
  62. package/api/additional.js +66 -0
  63. package/api/additional.js.map +1 -0
  64. package/api/index.amd.js +2 -0
  65. package/api/index.amd.js.map +1 -0
  66. package/api/index.js +265 -0
  67. package/api/index.js.map +1 -0
  68. package/assets/core.css +1 -1
  69. package/assets/forms.css +1 -1
  70. package/assets/formsExt.css +1 -1
  71. package/assets/project.css +1 -1
  72. package/assets/themes/dark-th.css +1 -1
  73. package/assets/themes/dark.css +1 -1
  74. package/assets/themes/light.css +1 -1
  75. package/charts/charts.amd.js +1 -1
  76. package/charts/charts.amd.js.map +1 -1
  77. package/charts/charts.js +1 -1
  78. package/charts/charts.js.map +1 -1
  79. package/core/app.amd.js +1 -1
  80. package/core/app.amd.js.map +1 -1
  81. package/core/app.js +18 -16
  82. package/core/app.js.map +1 -1
  83. package/dialog/dialog.amd.js +1 -1
  84. package/dialog/dialog.amd.js.map +1 -1
  85. package/dialog/dialog.js +2 -2
  86. package/dialog/dialog.js.map +1 -1
  87. package/extra/extra.amd.js +1 -1
  88. package/extra/extra.amd.js.map +1 -1
  89. package/extra/extra.js.map +1 -1
  90. package/forms/forms.amd.js +1 -1
  91. package/forms/forms.js +1 -1
  92. package/forms/helpers.amd.js +1 -1
  93. package/formsExt/formsExt.amd.js +1 -1
  94. package/formsExt/formsExt.amd.js.map +1 -1
  95. package/formsExt/formsExt.js +409 -320
  96. package/formsExt/formsExt.js.map +1 -1
  97. package/layout/layout.amd.js +1 -1
  98. package/layout/layout.amd.js.map +1 -1
  99. package/layout/layout.js +1 -1
  100. package/layout/layout.js.map +1 -1
  101. package/package.json +7 -2
  102. package/popup/popup.amd.js +1 -1
  103. package/popup/popup.amd.js.map +1 -1
  104. package/popup/popup.js +125 -109
  105. package/popup/popup.js.map +1 -1
  106. package/popup/worker.amd.js +1 -1
  107. package/popup/worker.amd.js.map +1 -1
  108. package/popup/worker.js +30 -21
  109. package/popup/worker.js.map +1 -1
  110. package/project/project.amd.js +1 -1
  111. package/project/project.amd.js.map +1 -1
  112. package/project/project.js +6 -6
  113. package/project/project.js.map +1 -1
  114. package/tabs/tabs.amd.js +1 -1
  115. package/tabs/tabs.amd.js.map +1 -1
  116. package/tabs/tabs.js.map +1 -1
  117. package/tabsView/tabsView.amd.js +1 -1
  118. package/tabsView/tabsView.amd.js.map +1 -1
  119. package/tabsView/tabsView.js +1 -1
  120. package/tabsView/tabsView.js.map +1 -1
  121. package/types/api/additional.d.ts +2 -0
  122. package/types/api/api/additional.d.ts +1 -0
  123. package/types/api/api/client/client.d.ts +55 -0
  124. package/types/api/api/client/request-options.d.ts +1 -0
  125. package/types/api/api/client/request.d.ts +2 -0
  126. package/types/api/api/index.d.ts +12 -0
  127. package/types/api/api/tests/model.d.ts +0 -0
  128. package/types/api/api/tests/test.d.ts +16 -0
  129. package/types/api/api/types/api.d.ts +139 -0
  130. package/types/api/api/types/client/client.d.ts +8 -0
  131. package/types/api/api/types/client/middleware.d.ts +65 -0
  132. package/types/api/api/types/client/options.d.ts +60 -0
  133. package/types/api/api/types/client/request-context.d.ts +35 -0
  134. package/types/api/api/types/client/request-options.d.ts +73 -0
  135. package/types/api/api/types/client/request.d.ts +85 -0
  136. package/types/api/api/types/ext.d.ts +51 -0
  137. package/types/api/api/types/field.d.ts +33 -0
  138. package/types/api/api/types/index.d.ts +12 -0
  139. package/types/api/api/types/schema.d.ts +50 -0
  140. package/types/api/api/types/tv.d.ts +59 -0
  141. package/types/api/api/types/utils.d.ts +51 -0
  142. package/types/api/api/utils/common.d.ts +16 -0
  143. package/types/api/api/utils/field.d.ts +8 -0
  144. package/types/api/api/utils/filters.d.ts +48 -0
  145. package/types/api/api/utils/lazy.d.ts +17 -0
  146. package/types/api/index.d.ts +2 -0
  147. package/{components → types/components}/dialog/dialog/dialog.vue.d.ts +3 -3
  148. package/{components → types/components}/dialog/lib/types.d.ts +2 -2
  149. package/types/components/dialog/lib/utils.d.ts +45 -0
  150. package/{components → types/components}/dialog/lib/worker.d.ts +2 -2
  151. package/{components → types/components}/forms/button/button.vue.d.ts +2 -5
  152. package/{components → types/components}/forms/button/types.d.ts +10 -0
  153. package/{components → types/components}/forms/checkbox/checkbox.vue.d.ts +2 -2
  154. package/types/components/formsExt/policy/policy.vue.d.ts +8 -0
  155. package/types/components/formsExt/policy/types.d.ts +20 -0
  156. package/{components → types/components}/formsExt/selector2/composables/useAPI.d.ts +1 -1
  157. package/{components → types/components}/formsExt/selector2/composables/useMenu.d.ts +3 -1
  158. package/{components → types/components}/formsExt/selector2/selector2.vue.d.ts +11 -3
  159. package/{components → types/components}/formsExt/selector2/types.d.ts +50 -27
  160. package/types/components/popup/alert/alert.vue.d.ts +25 -0
  161. package/types/components/popup/alert/types.d.ts +8 -0
  162. package/types/components/popup/confirm/confirm.vue.d.ts +26 -0
  163. package/{components → types/components}/popup/confirm/types.d.ts +2 -2
  164. package/{components → types/components}/popup/lib/popup.d.ts +6 -2
  165. package/{components → types/components}/popup/lib/worker.d.ts +6 -4
  166. package/types/components/popup/popup/opener.vue.d.ts +17 -0
  167. package/types/components/popup/popup/popup.vue.d.ts +38 -0
  168. package/{components → types/components}/popup/popup/types.d.ts +20 -11
  169. package/types/components/popup/prompt/prompt.vue.d.ts +26 -0
  170. package/{components → types/components}/popup/prompt/types.d.ts +2 -2
  171. package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +1 -1
  172. package/{components → types/components}/project/selectorRegion/utils/utils.d.ts +1 -1
  173. package/{core → types/core}/utils/string.d.ts +1 -1
  174. package/types/for-delete/dark-positions.d.ts +1 -0
  175. package/types/for-delete/dark-th-positions.d.ts +1 -0
  176. package/types/for-delete/dark-th.d.ts +1 -0
  177. package/types/for-delete/dark.d.ts +1 -0
  178. package/types/for-delete/light-positions.d.ts +1 -0
  179. package/types/for-delete/light.d.ts +1 -0
  180. package/types/forms/helpers.d.ts +1 -0
  181. package/utils/check.amd.js +1 -1
  182. package/utils/check.amd.js.map +1 -1
  183. package/utils/check.js.map +1 -1
  184. package/utils/clipboard.amd.js +2 -2
  185. package/utils/clipboard.amd.js.map +1 -1
  186. package/utils/clipboard.js +1 -1
  187. package/utils/clipboard.js.map +1 -1
  188. package/utils/date.amd.js +1 -1
  189. package/utils/date.js +1 -1
  190. package/utils/device.amd.js +1 -1
  191. package/utils/device.js +1 -1
  192. package/utils/dom.amd.js +1 -1
  193. package/utils/dom.amd.js.map +1 -1
  194. package/utils/dom.js.map +1 -1
  195. package/utils/image.amd.js +2 -2
  196. package/utils/image.amd.js.map +1 -1
  197. package/utils/image.js +1 -1
  198. package/utils/image.js.map +1 -1
  199. package/utils/keyboard.amd.js +1 -1
  200. package/utils/keyboard.amd.js.map +1 -1
  201. package/utils/keyboard.js.map +1 -1
  202. package/utils/lodash.amd.js +1 -1
  203. package/utils/lodash.js +1 -1
  204. package/utils/number.amd.js +1 -1
  205. package/utils/number.amd.js.map +1 -1
  206. package/utils/number.js.map +1 -1
  207. package/utils/price.amd.js +1 -1
  208. package/utils/price.amd.js.map +1 -1
  209. package/utils/price.js +1 -1
  210. package/utils/price.js.map +1 -1
  211. package/utils/route.amd.js +1 -1
  212. package/utils/route.amd.js.map +1 -1
  213. package/utils/route.js.map +1 -1
  214. package/utils/scroll.amd.js +1 -1
  215. package/utils/scroll.amd.js.map +1 -1
  216. package/utils/scroll.js.map +1 -1
  217. package/utils/searchers.amd.js +1 -1
  218. package/utils/searchers.amd.js.map +1 -1
  219. package/utils/searchers.js +3 -3
  220. package/utils/searchers.js.map +1 -1
  221. package/utils/store.amd.js +1 -1
  222. package/utils/string.amd.js +1 -1
  223. package/utils/string.amd.js.map +1 -1
  224. package/utils/string.js +34 -30
  225. package/utils/string.js.map +1 -1
  226. package/utils/system.amd.js +1 -1
  227. package/utils/system.amd.js.map +1 -1
  228. package/utils/system.js.map +1 -1
  229. package/utils/url.amd.js +2 -2
  230. package/utils/url.amd.js.map +1 -1
  231. package/utils/url.js +1 -1
  232. package/utils/url.js.map +1 -1
  233. package/.chunks/core-D-etXW3Y.amd.js +0 -2
  234. package/.chunks/datepicker-BWaVsTd0.amd.js +0 -2
  235. package/.chunks/dialog_selectorRegions-CMI1gx5d.amd.js +0 -2
  236. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BSxHPUWf.amd.js +0 -2
  237. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BSxHPUWf.amd.js.map +0 -1
  238. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CjUHErAY.es.js +0 -322
  239. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CjUHErAY.es.js.map +0 -1
  240. package/.chunks/forms-DOGPN_TR.es.js.map +0 -1
  241. package/.chunks/forms-Gb7ujpmz.amd.js +0 -3
  242. package/.chunks/forms-Gb7ujpmz.amd.js.map +0 -1
  243. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js +0 -2
  244. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js.map +0 -1
  245. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js +0 -181
  246. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js.map +0 -1
  247. package/.chunks/menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js +0 -2
  248. package/.chunks/menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js.map +0 -1
  249. package/.chunks/menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js +0 -109
  250. package/.chunks/menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js.map +0 -1
  251. package/.chunks/page.vue_vue_type_script_setup_true_lang-DFvul4oF.es.js +0 -143
  252. package/.chunks/page.vue_vue_type_script_setup_true_lang-DFvul4oF.es.js.map +0 -1
  253. package/.chunks/page.vue_vue_type_script_setup_true_lang-DJSuza2e.amd.js +0 -2
  254. package/.chunks/page.vue_vue_type_script_setup_true_lang-DJSuza2e.amd.js.map +0 -1
  255. package/.chunks/popup-B_8bvIsF.amd.js +0 -2
  256. package/.chunks/popup-B_8bvIsF.amd.js.map +0 -1
  257. package/.chunks/popup-BjsK_pMZ.es.js.map +0 -1
  258. package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
  259. package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
  260. package/.chunks/store-esTid5oI.amd.js +0 -2
  261. package/.chunks/utils-BVdq18mg.amd.js +0 -2
  262. package/.chunks/utils-CacKxWvO.es.js +0 -303
  263. package/.chunks/utils-CacKxWvO.es.js.map +0 -1
  264. package/.chunks/utils-DiQZv1Ae.amd.js +0 -2
  265. package/.chunks/utils-DiQZv1Ae.amd.js.map +0 -1
  266. package/components/charts/miniChart/stories/dummy.d.ts +0 -13
  267. package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
  268. package/components/dialog/dialog/stories/autoload.d.ts +0 -2
  269. package/components/dialog/lib/utils.d.ts +0 -14
  270. package/components/forms/select/stories/exampleOptions.d.ts +0 -5
  271. package/components/formsExt/checkboxGroup/stories/example.d.ts +0 -15
  272. package/components/formsExt/menu/stories/items.d.ts +0 -3
  273. package/components/formsExt/policy/policy.vue.d.ts +0 -4
  274. package/components/formsExt/policy/types.d.ts +0 -10
  275. package/components/formsExt/radioGroup/stories/example.d.ts +0 -20
  276. package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
  277. package/components/popup/alert/alert.vue.d.ts +0 -31
  278. package/components/popup/alert/types.d.ts +0 -8
  279. package/components/popup/confirm/confirm.vue.d.ts +0 -33
  280. package/components/popup/popup/opener.vue.d.ts +0 -23
  281. package/components/popup/popup/popup.vue.d.ts +0 -40
  282. package/components/popup/prompt/prompt.vue.d.ts +0 -33
  283. package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
  284. package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
  285. package/icomoon/Topvisor icons.json +0 -6635
  286. package/{charts → types/charts}/charts.d.ts +0 -0
  287. package/{components → types/components}/charts/charts.d.ts +0 -0
  288. package/{components → types/components}/charts/miniChart/miniChart.vue.d.ts +0 -0
  289. package/{components → types/components}/charts/miniChart/types.d.ts +0 -0
  290. package/{components → types/components}/charts/miniChart/utils/consts.d.ts +0 -0
  291. package/{components → types/components}/charts/miniCharts/miniCharts.d.ts +0 -0
  292. package/{components → types/components}/charts/miniCharts/miniCharts.vue.d.ts +0 -0
  293. package/{components → types/components}/core/notice/item/item.vue.d.ts +0 -0
  294. package/{components → types/components}/core/notice/item/types.d.ts +0 -0
  295. package/{components → types/components}/core/notice/notice.vue.d.ts +0 -0
  296. package/{components → types/components}/core/notice/types.d.ts +0 -0
  297. package/{components → types/components}/core/notice/utils.d.ts +0 -0
  298. package/{components → types/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
  299. package/{components → types/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
  300. package/{components → types/components}/dialog/dialog/composables/types.d.ts +0 -0
  301. package/{components → types/components}/dialog/dialog/composables/utils.d.ts +0 -0
  302. package/{components → types/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -0
  303. package/{components → types/components}/dialog/dialog/page/page.vue.d.ts +0 -0
  304. package/{components → types/components}/dialog/dialog/page/types.d.ts +0 -0
  305. package/{components → types/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
  306. package/{components → types/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
  307. package/{components → types/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
  308. package/{components → types/components}/dialog/dialog/types.d.ts +0 -0
  309. package/{components → types/components}/dialog/dialog.d.ts +0 -0
  310. package/{components → types/components}/dialog/lib/utils.globalEvents.d.ts +0 -0
  311. package/{components → types/components}/extra/extra.d.ts +0 -0
  312. package/{components → types/components}/extra/rive/rive.vue.d.ts +0 -0
  313. package/{components → types/components}/extra/rive/types.d.ts +0 -0
  314. package/{components → types/components}/forms/avatar/avatar.vue.d.ts +1 -1
  315. /package/{components → types/components}/forms/avatar/types.d.ts +0 -0
  316. /package/{components → types/components}/forms/caption/caption.vue.d.ts +0 -0
  317. /package/{components → types/components}/forms/caption/types.d.ts +0 -0
  318. /package/{components → types/components}/forms/checkbox/types.d.ts +0 -0
  319. /package/{components → types/components}/forms/controlLabel/controlLabel.vue.d.ts +0 -0
  320. /package/{components → types/components}/forms/controlLabel/types.d.ts +0 -0
  321. /package/{components → types/components}/forms/forms.d.ts +0 -0
  322. /package/{components → types/components}/forms/helpers.d.ts +0 -0
  323. /package/{components → types/components}/forms/hint/hint.vue.d.ts +0 -0
  324. /package/{components → types/components}/forms/hint/types.d.ts +0 -0
  325. /package/{components → types/components}/forms/input/input.vue.d.ts +0 -0
  326. /package/{components → types/components}/forms/input/types.d.ts +0 -0
  327. /package/{components → types/components}/forms/inputDate/datepicker.d.ts +0 -0
  328. /package/{components → types/components}/forms/inputDate/inputDate.vue.d.ts +0 -0
  329. /package/{components → types/components}/forms/inputDate/types.d.ts +0 -0
  330. /package/{components → types/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
  331. /package/{components → types/components}/forms/inputRange/types.d.ts +0 -0
  332. /package/{components → types/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
  333. /package/{components → types/components}/forms/preloader/preloader.vue.d.ts +0 -0
  334. /package/{components → types/components}/forms/preloader/types.d.ts +0 -0
  335. /package/{components → types/components}/forms/radio/radio.vue.d.ts +0 -0
  336. /package/{components → types/components}/forms/radio/types.d.ts +0 -0
  337. /package/{components → types/components}/forms/select/select.vue.d.ts +0 -0
  338. /package/{components → types/components}/forms/select/types.d.ts +0 -0
  339. /package/{components → types/components}/forms/switcher/switcher.vue.d.ts +0 -0
  340. /package/{components → types/components}/forms/switcher/types.d.ts +0 -0
  341. /package/{components → types/components}/forms/textarea/textarea.vue.d.ts +0 -0
  342. /package/{components → types/components}/forms/textarea/types.d.ts +0 -0
  343. /package/{components → types/components}/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -0
  344. /package/{components → types/components}/formsExt/checkboxGroup/types.d.ts +0 -0
  345. /package/{components → types/components}/formsExt/editArea/editArea.vue.d.ts +0 -0
  346. /package/{components → types/components}/formsExt/editArea/types.d.ts +0 -0
  347. /package/{components → types/components}/formsExt/editInput/editInput.vue.d.ts +0 -0
  348. /package/{components → types/components}/formsExt/editInput/types.d.ts +0 -0
  349. /package/{components → types/components}/formsExt/formsExt.d.ts +0 -0
  350. /package/{components → types/components}/formsExt/info/info.vue.d.ts +0 -0
  351. /package/{components → types/components}/formsExt/info/types.d.ts +0 -0
  352. /package/{components → types/components}/formsExt/menu/menu.vue.d.ts +0 -0
  353. /package/{components → types/components}/formsExt/menu/types.d.ts +0 -0
  354. /package/{components → types/components}/formsExt/radioGroup/radioGroup.vue.d.ts +0 -0
  355. /package/{components → types/components}/formsExt/radioGroup/types.d.ts +0 -0
  356. /package/{components → types/components}/formsExt/selector2/itemMulti.vue.d.ts +0 -0
  357. /package/{components → types/components}/formsExt/selector2/utils.d.ts +0 -0
  358. /package/{components → types/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
  359. /package/{components → types/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
  360. /package/{components → types/components}/layout/islandRows/islandRowsRow/types.d.ts +0 -0
  361. /package/{components → types/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
  362. /package/{components → types/components}/layout/islandRows/types.d.ts +0 -0
  363. /package/{components → types/components}/layout/layout.d.ts +0 -0
  364. /package/{components → types/components}/layout/rows/rows.vue.d.ts +0 -0
  365. /package/{components → types/components}/layout/rows/types.d.ts +0 -0
  366. /package/{components → types/components}/popup/lib/popup.globalEvents.d.ts +0 -0
  367. /package/{components → types/components}/popup/lib/worker.globalEvents.d.ts +0 -0
  368. /package/{components → types/components}/popup/popup/listItem.vue.d.ts +0 -0
  369. /package/{components → types/components}/popup/popup/widgetInput.vue.d.ts +0 -0
  370. /package/{components → types/components}/popup/popup.d.ts +0 -0
  371. /package/{components → types/components}/popup/worker.d.ts +0 -0
  372. /package/{components → types/components}/project/project.d.ts +0 -0
  373. /package/{components → types/components}/project/selectorCompetitors/composables.d.ts +0 -0
  374. /package/{components → types/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -0
  375. /package/{components → types/components}/project/selectorCompetitors/types.d.ts +0 -0
  376. /package/{components → types/components}/project/selectorRegion/composables/compare.d.ts +0 -0
  377. /package/{components → types/components}/project/selectorRegion/composables/selectRegion.d.ts +0 -0
  378. /package/{components → types/components}/project/selectorRegion/composables/selectSearcher.d.ts +0 -0
  379. /package/{components → types/components}/project/selectorRegion/composables/selectorRegion.d.ts +0 -0
  380. /package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +0 -0
  381. /package/{components → types/components}/project/selectorRegion/selectorRegion.vue.d.ts +0 -0
  382. /package/{components → types/components}/project/selectorRegion/types.d.ts +0 -0
  383. /package/{components → types/components}/project/selectorRegion/utils/consts.d.ts +0 -0
  384. /package/{components → types/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
  385. /package/{components → types/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
  386. /package/{components → types/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
  387. /package/{components → types/components}/project/tagSelector/popupOpener/types.d.ts +0 -0
  388. /package/{components → types/components}/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -0
  389. /package/{components → types/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
  390. /package/{components → types/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
  391. /package/{components → types/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
  392. /package/{components → types/components}/project/tagSelector/types.d.ts +0 -0
  393. /package/{components → types/components}/project/tagSelector/utils/el.d.ts +0 -0
  394. /package/{components → types/components}/project/tagSelector/utils/utils.d.ts +0 -0
  395. /package/{components → types/components}/tabs/tabs/content.vue.d.ts +0 -0
  396. /package/{components → types/components}/tabs/tabs/tab.vue.d.ts +0 -0
  397. /package/{components → types/components}/tabs/tabs/tabs.vue.d.ts +0 -0
  398. /package/{components → types/components}/tabs/tabs/types.d.ts +0 -0
  399. /package/{components → types/components}/tabs/tabs.d.ts +0 -0
  400. /package/{components → types/components}/tabsView/tabsView/menu.vue.d.ts +0 -0
  401. /package/{components → types/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
  402. /package/{components → types/components}/tabsView/tabsView/menuItem.vue.d.ts +0 -0
  403. /package/{components → types/components}/tabsView/tabsView/menuTitle.vue.d.ts +0 -0
  404. /package/{components → types/components}/tabsView/tabsView/store.d.ts +0 -0
  405. /package/{components → types/components}/tabsView/tabsView/tabsView.vue.d.ts +0 -0
  406. /package/{components → types/components}/tabsView/tabsView/types.d.ts +0 -0
  407. /package/{components → types/components}/tabsView/tabsView/utils.d.ts +0 -0
  408. /package/{components → types/components}/tabsView/tabsView.d.ts +0 -0
  409. /package/{core → types/core}/app.d.ts +0 -0
  410. /package/{core → types/core}/core/core.d.ts +0 -0
  411. /package/{core → types/core}/core/events/resize.d.ts +0 -0
  412. /package/{core → types/core}/core/events.d.ts +0 -0
  413. /package/{core → types/core}/core/options.d.ts +0 -0
  414. /package/{core → types/core}/core/preloaders.d.ts +0 -0
  415. /package/{core → types/core}/core/state.d.ts +0 -0
  416. /package/{core → types/core}/directives/data.d.ts +0 -0
  417. /package/{core → types/core}/directives/focus.d.ts +0 -0
  418. /package/{core → types/core}/directives/preloader.d.ts +0 -0
  419. /package/{core → types/core}/directives/scrollIntoView.d.ts +0 -0
  420. /package/{core → types/core}/directives/scrollShadow.d.ts +0 -0
  421. /package/{core → types/core}/directives/sticky.d.ts +0 -0
  422. /package/{core → types/core}/directives/swimUp.d.ts +0 -0
  423. /package/{core → types/core}/directives/tooltip.d.ts +0 -0
  424. /package/{core → types/core}/plugins/core.d.ts +0 -0
  425. /package/{core → types/core}/plugins/i18n.d.ts +0 -0
  426. /package/{core → types/core}/plugins/piniaTPA.d.ts +0 -0
  427. /package/{core → types/core}/utils/check.d.ts +0 -0
  428. /package/{core → types/core}/utils/clipboard.d.ts +0 -0
  429. /package/{core → types/core}/utils/date.d.ts +0 -0
  430. /package/{core → types/core}/utils/device.d.ts +0 -0
  431. /package/{core → types/core}/utils/dom.d.ts +0 -0
  432. /package/{core → types/core}/utils/image.d.ts +0 -0
  433. /package/{core → types/core}/utils/keyboard.d.ts +0 -0
  434. /package/{core → types/core}/utils/lodash.d.ts +0 -0
  435. /package/{core → types/core}/utils/number.d.ts +0 -0
  436. /package/{core → types/core}/utils/price.d.ts +0 -0
  437. /package/{core → types/core}/utils/route.d.ts +0 -0
  438. /package/{core → types/core}/utils/scroll.d.ts +0 -0
  439. /package/{core → types/core}/utils/searchers.d.ts +0 -0
  440. /package/{core → types/core}/utils/store/localStorage.d.ts +0 -0
  441. /package/{core → types/core}/utils/store/plugin.d.ts +0 -0
  442. /package/{core → types/core}/utils/store/store.d.ts +0 -0
  443. /package/{core → types/core}/utils/store.d.ts +0 -0
  444. /package/{core → types/core}/utils/system.d.ts +0 -0
  445. /package/{core → types/core}/utils/url.d.ts +0 -0
  446. /package/{dialog → types/dialog}/dialog.d.ts +0 -0
  447. /package/{extra → types/extra}/extra.d.ts +0 -0
  448. /package/{forms/helpers.d.ts → types/for-delete/core.d.ts} +0 -0
  449. /package/{forms → types/forms}/forms.d.ts +0 -0
  450. /package/{formsExt → types/formsExt}/formsExt.d.ts +0 -0
  451. /package/{layout → types/layout}/layout.d.ts +0 -0
  452. /package/{popup → types/popup}/popup.d.ts +0 -0
  453. /package/{popup → types/popup}/worker.d.ts +0 -0
  454. /package/{project → types/project}/project.d.ts +0 -0
  455. /package/{tabs → types/tabs}/tabs.d.ts +0 -0
  456. /package/{tabsView → types/tabsView}/tabsView.d.ts +0 -0
  457. /package/{utils → types/utils}/check.d.ts +0 -0
  458. /package/{utils → types/utils}/clipboard.d.ts +0 -0
  459. /package/{utils → types/utils}/date.d.ts +0 -0
  460. /package/{utils → types/utils}/device.d.ts +0 -0
  461. /package/{utils → types/utils}/dom.d.ts +0 -0
  462. /package/{utils → types/utils}/image.d.ts +0 -0
  463. /package/{utils → types/utils}/keyboard.d.ts +0 -0
  464. /package/{utils → types/utils}/lodash.d.ts +0 -0
  465. /package/{utils → types/utils}/number.d.ts +0 -0
  466. /package/{utils → types/utils}/price.d.ts +0 -0
  467. /package/{utils → types/utils}/route.d.ts +0 -0
  468. /package/{utils → types/utils}/scroll.d.ts +0 -0
  469. /package/{utils → types/utils}/searchers.d.ts +0 -0
  470. /package/{utils → types/utils}/store.d.ts +0 -0
  471. /package/{utils → types/utils}/string.d.ts +0 -0
  472. /package/{utils → types/utils}/system.d.ts +0 -0
  473. /package/{utils → types/utils}/url.d.ts +0 -0
@@ -0,0 +1,48 @@
1
+ import { components as componentsTagId } from 'topvisor-openapi/src/ts/Tags_2/Types/TagId';
2
+ type TagId = componentsTagId['schemas']['Tags_2.Types.TagId'];
3
+ type TagIdExclude = `-${TagId}`;
4
+ type DataWithModifierOperator<Model> = {
5
+ [K in keyof Model]: Model[K] | Model[K][] | Set<Model[K]> | string;
6
+ };
7
+ /**
8
+ * Модификатор оператора сравнения
9
+ *
10
+ * Используется посредством добавления к строковому значению поля для упрощения синтаксиса указания фильтров
11
+ *
12
+ * @example Поиск вхождения `Иван` в поле `name`
13
+ * genFilters({
14
+ * id: 12345, // без модификатора опертора
15
+ * name: '%:' + 'Иван', // с модификатором опертора
16
+ * });
17
+ */
18
+ type ModifierOperator = '>=' | '<=' | '!=' | '>' | '<' | '%' | '!%' | '^' | '~' | '!~' | 'null' | '!null';
19
+ type ValueWithModifierOperator = `${ModifierOperator}:${string | number}`;
20
+ /**
21
+ * Сгенерировать массив с фильтрами API
22
+ *
23
+ * Ключи - `filedName`, значения - `[ModifierOperator:]fieldValue` / `fieldValues`
24
+ *
25
+ * Значения `undefined` будут пропускаться
26
+ *
27
+ * Додерживает типы:
28
+ *
29
+ * - string, number, boolean - строгое равенство `EQUALS`, если не указан `modifierOperator`
30
+ * - Array - вхождение `IN`
31
+ * - Set<string | number> - вхождение `IN`
32
+ *
33
+ * @see ModifierOperator
34
+ */
35
+ export declare const genFilters: <Model extends Api.Ext.Schemas["Model"]>(dataWithModifierOperator: DataWithModifierOperator<Model>) => Api.Field.Filter<Model>[];
36
+ /**
37
+ * Сгенерировать и добавить API фильтр из списка тегов
38
+ */
39
+ export declare const pushFilterTagsIds: <Model extends Api.Ext.Schemas["Model"] = any, FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, filters: Api.Field.Filter<Model, FieldName>[], tagsIds: Array<TagId | TagIdExclude>) => void;
40
+ /**
41
+ * Сгенерировать API фильтр из простого значения
42
+ */
43
+ export declare const genFilterPrimitive: <Model extends Api.Ext.Schemas["Model"] = any, FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, valueWithModifierOperator: number | string | boolean | ValueWithModifierOperator) => Api.Field.Filter<Model, keyof Model>;
44
+ /**
45
+ * Сгенерировать API фильтр IN
46
+ */
47
+ export declare const genFilterIn: <Model extends Api.Ext.Schemas["Model"] = any, FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, valuesOrSet: Model[FieldName][] | Set<Model[FieldName]>) => Api.Field.Filter<Model, FieldName>;
48
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Общие утилиты, которые должны грузиться в отложенном режиме
3
+ *
4
+ * Все такие утилиты являются асинхронными
5
+ */
6
+ /**
7
+ * Выполнить post запрос в окне браузера
8
+ *
9
+ * @see Api.ClientRequest.callInNewWindow
10
+ * @see Api.ClientRequest.callInSelfWindow
11
+ */
12
+ export declare const postInWindow: (url: string, data: Record<string, any>, target: "_blank" | "_self") => Promise<void>;
13
+ export declare const dataToForm: (elForm: HTMLFormElement, dataName: string, data: Record<string, any>) => Promise<void>;
14
+ /**
15
+ * Сериализация данных для вставки в виде параметров в url
16
+ */
17
+ export declare const querySerializer: (data: Record<string, unknown>) => string;
@@ -0,0 +1,2 @@
1
+ export * from './api/index'
2
+ export {}
@@ -4,7 +4,7 @@ declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: Readonly<Slots> & Slots;
6
6
  refs: {};
7
- rootEl: HTMLDivElement;
7
+ rootEl: any;
8
8
  };
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
10
  declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -14,11 +14,11 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
14
14
  onClose?: ((pageName: string) => any) | undefined;
15
15
  onOpen?: ((pageName: string) => any) | undefined;
16
16
  }>, {
17
+ modal: boolean;
17
18
  width: string;
18
19
  height: string;
19
- modal: boolean;
20
20
  historyType: "push" | "replace";
21
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
23
  export default _default;
24
24
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -24,7 +24,7 @@ export type ElTopDialogOpener<El extends HTMLElement = HTMLElement> = El & {
24
24
  toView: string;
25
25
  };
26
26
  };
27
- export type ElTopDialogWrapper = HTMLElement & {
27
+ export type ElTopDialogWrapper = HTMLDialogElement & {
28
28
  querySelector: (selectors: '.ui-dialog-content') => ElTopDialog;
29
29
  };
30
30
  export type ElTopDialog = HTMLElement & {
@@ -37,7 +37,7 @@ export type ElTopDialog = HTMLElement & {
37
37
  export type ElTopDialogBody = HTMLElement;
38
38
  export type ElTopDialogPage = HTMLElement & {
39
39
  dataset: {
40
- 'view-page': string;
40
+ viewPage: string;
41
41
  order?: string;
42
42
  };
43
43
  };
@@ -0,0 +1,45 @@
1
+ import { ElTopDialog, ElTopDialogPage, MoveDirection, ElTopDialogWrapper } from './types';
2
+ /**
3
+ * Получить id внешнего элемента нативного модального окна
4
+ * @param id - id элемента ElTopDialog
5
+ * @see ElTopDialog
6
+ */
7
+ export declare const getDialogWrapperId: (id: string) => string;
8
+ /**
9
+ * Получить id внутреннего элемента нативного диалогового окна
10
+ * @param id - id элемента ElTopDialogWrapper
11
+ * @see ElTopDialogWrapper
12
+ */
13
+ export declare const getDialogId: (id: string) => string;
14
+ /**
15
+ * Получить внешний элемент нативного диалогового окна
16
+ * @param id - id элемента ElTopDialog
17
+ * @see ElTopDialog
18
+ */
19
+ export declare const getElDialogWrapper: (id: string) => ElTopDialogWrapper;
20
+ /**
21
+ * Получить внутренний элемент нативного диалогового окна
22
+ * @param id - id элемента ElTopDialogWrapper
23
+ * @see ElTopDialogWrapper
24
+ */
25
+ export declare const getElDialog: (id: string) => ElTopDialog;
26
+ /**
27
+ * Создать и монтировать в body нативную оболочку окна
28
+ * @description Используется только для нативного диалогового окна
29
+ * @param innerId - id окна
30
+ * @param pageActive - активная страница
31
+ */
32
+ export declare const createAndMountElDialogWrapper: (innerId: string, pageActive: string) => HTMLDialogElement;
33
+ export declare const TopDialogUtils: {
34
+ getElDialogById: (id: string) => ElTopDialog | null;
35
+ updatePageVue: (dialogId: string, pageName?: string, pageNameNext?: string) => Promise<void>;
36
+ recalcPositions: () => void;
37
+ toViewDirty: (toViewPageName: string, moveDirection?: MoveDirection) => Promise<void>;
38
+ toView: (viewNameOrElDialog: ElTopDialog | JQuery<ElTopDialog> | string, pageName?: string, args?: string[], moveDirection?: MoveDirection, callback?: Function) => Promise<void>;
39
+ toViewPage: (elDialog: ElTopDialog | JQuery<ElTopDialog>, pageName?: string, args?: string[], moveDirection?: MoveDirection) => Promise<void>;
40
+ toPrevPage: (elDialog: ElTopDialog) => void;
41
+ setLoading: (elPages: ElTopDialogPage[] | JQuery<ElTopDialogPage>, isLoading: boolean, duration?: number) => void;
42
+ isLoading: (elPage: ElTopDialogPage | JQuery<ElTopDialogPage>) => boolean;
43
+ inAnimation: (elDialog: ElTopDialog | JQuery<ElTopDialog>) => boolean;
44
+ close: (dialogId: string) => void;
45
+ };
@@ -54,11 +54,11 @@ export declare abstract class TopDialogWorker {
54
54
  static get$pairPage($el: $el): JQuery<HTMLElement>;
55
55
  static getPairPage(el: HTMLElement): HTMLElement[] | undefined;
56
56
  /**
57
- * Закрыть диалоговое окно
57
+ * Закрыть диалоговое окно по его id
58
58
  */
59
59
  static close(dialogId: string): void;
60
60
  /**
61
- * Размонтировать $.dialog
61
+ * Размонтировать диалоговое окно по его id
62
62
  */
63
63
  static destroy(dialogId: string): void;
64
64
  /**
@@ -1,11 +1,8 @@
1
- import { Props, Size, Color, Styling } from './types';
1
+ import { Props, Slots, Size, Color, Styling } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {}): any;
7
- html?(_: {}): any;
8
- };
5
+ slots: Readonly<Slots> & Slots;
9
6
  refs: {};
10
7
  rootEl: any;
11
8
  };
@@ -29,6 +29,16 @@ export interface Props {
29
29
  isActive?: boolean;
30
30
  isProgress?: boolean;
31
31
  }
32
+ export interface Slots {
33
+ /**
34
+ * Текст в кнопке
35
+ */
36
+ default?(props: {}): any;
37
+ /**
38
+ * HTML в кнопке
39
+ */
40
+ html?(props: {}): any;
41
+ }
32
42
  /**
33
43
  * Определение событий
34
44
  */
@@ -14,9 +14,9 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
- "update:modelValue": (value: boolean | string[] | number[] | Set<string> | Set<number> | undefined) => any;
17
+ "update:modelValue": (value: boolean | number[] | string[] | Set<string> | Set<number> | undefined) => any;
18
18
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
- "onUpdate:modelValue"?: ((value: boolean | string[] | number[] | Set<string> | Set<number> | undefined) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: boolean | number[] | string[] | Set<string> | Set<number> | undefined) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
22
  export default _default;
@@ -0,0 +1,8 @@
1
+ import { Props } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4
+ accept: () => any;
5
+ }, string, PublicProps, Readonly<Props> & Readonly<{
6
+ onAccept?: (() => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,20 @@
1
+ export interface Props {
2
+ /**
3
+ * Заголовок
4
+ */
5
+ title: string;
6
+ /**
7
+ * Описание в html
8
+ */
9
+ description: string;
10
+ /**
11
+ * Текст на кнопке
12
+ */
13
+ acceptText: string;
14
+ }
15
+ export interface Emits {
16
+ /**
17
+ * Нажата кнопка подтверждения
18
+ */
19
+ (e: 'accept'): void;
20
+ }
@@ -26,5 +26,5 @@ export declare const useAPI: (apiRequest: Props["apiRequest"], minLength: number
26
26
  }[]>;
27
27
  isLoading: Ref<boolean, boolean>;
28
28
  loadAppend: () => Promise<void>;
29
- setSearchTextAndLoad: (searchText: string, useDebounce?: boolean) => void;
29
+ setSearchTextAndLoad: (newSearchText: string, useDebounce?: boolean) => void;
30
30
  };
@@ -4,11 +4,13 @@ import { API } from './useAPI';
4
4
  /**
5
5
  * Функционал поиска
6
6
  */
7
- export declare const useMenu: (model: Ref<Props["modelValue"]>, items: Ref<Props["items"]>, multiselect: Props["multiselect"], appendAllValue: Ref<Props["appendAllValue"]>, appendSearchToResult: Ref<Props["appendSearchToResult"]>, api: API) => {
7
+ export declare const useMenu: (model: Ref<Props["modelValue"]>, items: Ref<Props["items"]>, multiselect: Props["multiselect"], appendAllValue: Ref<Props["appendAllValue"]>, appendSearchToResult: Ref<Props["appendSearchToResult"]>, searchType: Ref<Props["searchType"]>, minLength: number, api: API) => {
8
8
  searchText: Ref<string, string>;
9
9
  resetSearch: () => void;
10
+ genIsShort: () => boolean;
10
11
  items: ComputedRef<Item[]>;
11
12
  itemsForShow: ComputedRef<Item[]>;
13
+ selectItem: (item: Item) => void;
12
14
  selectNextItem: () => void;
13
15
  deleteItemById: (id: Item["id"]) => Promise<void>;
14
16
  };
@@ -1,5 +1,6 @@
1
1
  import { Item, Props, Slots, Size } from './types';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { TopLibPopup } from '../../popup/lib/popup';
3
+ import { ShallowUnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
4
  type __VLS_Props = Props;
4
5
  type __VLS_PublicProps = {
5
6
  modelValue: Props['modelValue'];
@@ -8,6 +9,10 @@ declare function __VLS_template(): {
8
9
  attrs: Partial<{}>;
9
10
  slots: Readonly<Slots> & Slots;
10
11
  refs: {
12
+ popupRef: ShallowUnwrapRef<{
13
+ id: string;
14
+ popup: TopLibPopup<undefined> | undefined;
15
+ }> | null;
11
16
  subcomponentSelector: unknown;
12
17
  };
13
18
  rootEl: any;
@@ -20,10 +25,13 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
20
25
  }>, {
21
26
  size: Size;
22
27
  items: Item[];
23
- minLength: number;
24
28
  searchType: "none" | "inline" | "popup";
25
- selectedAsPlaceholder: boolean;
29
+ minLength: number;
26
30
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
31
+ popupRef: ShallowUnwrapRef<{
32
+ id: string;
33
+ popup: TopLibPopup<undefined> | undefined;
34
+ }> | null;
27
35
  subcomponentSelector: unknown;
28
36
  }, any>;
29
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,4 +1,5 @@
1
1
  import { Size } from '../../forms/helpers';
2
+ import { Props as ButtonProps } from '../../forms/button/types';
2
3
  export interface Props {
3
4
  /**
4
5
  * Выбранный элемент
@@ -9,23 +10,41 @@ export interface Props {
9
10
  /**
10
11
  * Список вариантов для выбора
11
12
  *
12
- * Работая совместно с apiRequest, всегда выводится перед результатами apiRequest
13
+ * При работе с apiRequest, всегда выводится перед результатами apiRequest
13
14
  */
14
15
  items?: Item[];
16
+ title?: string;
17
+ disabled?: boolean;
15
18
  /**
16
- * Режим выбора нескольких вариантов
19
+ * Модификатор элемента, открывающего popup
17
20
  *
18
- * Константа, после установки менять нельзя
21
+ * Добавит класс: `top-selector2-{{ modificator }}`
19
22
  */
20
- multiselect?: boolean;
21
- title?: string;
22
- disabled?: boolean;
23
+ modificator?: string;
23
24
  size?: Size;
24
25
  isError?: boolean;
26
+ /**
27
+ * Тип поиска по элементам
28
+ *
29
+ * - none: без поиска
30
+ * - inline: сам Selector является полем ввода, только для `multiselect = false`
31
+ * - popup: поиск будет в popup
32
+ *
33
+ * Для мобильной версии `inline` всегда заменяется на `popup`
34
+ *
35
+ * Константа, после установки менять нельзя
36
+ */
37
+ searchType?: 'none' | 'inline' | 'popup';
38
+ /**
39
+ * Текст для placeholder поля поиска
40
+ */
41
+ placeholder?: string;
25
42
  /**
26
43
  * Если указан, будет выполнена загрузка результатов через API
27
44
  *
28
45
  * Константа, после установки заменять нельзя
46
+ *
47
+ * @subcategory apiRequest
29
48
  */
30
49
  apiRequest?: {
31
50
  params: {
@@ -43,27 +62,35 @@ export interface Props {
43
62
  /**
44
63
  * Минимальная длина для выполнения поиска
45
64
  *
46
- * Для apiRequest
47
- *
48
65
  * Константа, после установки менять нельзя
66
+ *
67
+ * @subcategory apiRequest
49
68
  */
50
69
  minLength?: number;
51
70
  /**
52
- * Использовать кэширвоание
53
- *
54
- * Для apiRequest
71
+ * Использовать кэширование
55
72
  *
56
73
  * Константа, после установки менять нельзя
74
+ *
75
+ * @subcategory apiRequest
57
76
  */
58
77
  useCache?: boolean;
59
78
  /**
60
79
  * Добавить в результаты item = {id:null, name:search}, где search - введенная строка в поле поиска
61
80
  */
62
81
  appendSearchToResult?: boolean;
82
+ /**
83
+ * Режим выбора нескольких вариантов
84
+ *
85
+ * Константа, после установки менять нельзя
86
+ *
87
+ * @subcategory Multiselect
88
+ */
89
+ multiselect?: boolean;
63
90
  /**
64
91
  * Добавить вариант: "Все"
65
92
  *
66
- * Для `multiselect = false`
93
+ * @subcategory Single select
67
94
  */
68
95
  appendAllValue?: boolean;
69
96
  /**
@@ -71,29 +98,25 @@ export interface Props {
71
98
  *
72
99
  * Работает с props.items без учета apiRequest
73
100
  *
74
- * Для `multiselect = false`
101
+ * Нельзя использовать с кнопкой
102
+ *
103
+ * @subcategory Single select
75
104
  */
76
105
  addChanger?: boolean;
77
106
  /**
78
- * Тип поиска по элементам
107
+ * Настройки кнопки
79
108
  *
80
- * - none: без поиска
81
- * - inline: сам Selector является полем ввода, только для `multiselect = false`
82
- * - popup: поиск будет в popup
109
+ * Если не указан будет использоваться стандартный стиль селектора
83
110
  *
84
- * Для мобильной версии `inline` всегда заменяется на `popup`
85
- *
86
- * Константа, после установки менять нельзя
111
+ * @subcategory Single select
87
112
  */
88
- searchType?: 'none' | 'inline' | 'popup';
89
- /**
90
- * Текст для placeholder поля поиска
91
- */
92
- placeholder?: string;
113
+ buttonProps?: ButtonProps;
93
114
  /**
94
- * Выводить в placeholder поля поиска выбранное значение modelValue.name
115
+ * Выводить в placeholder поля поиска выбранное значение `modelValue.name`
116
+ *
117
+ * Всегда включено для `searchType` = `inline`
95
118
  *
96
- * Для `multiselect = false`
119
+ * @subcategory Single select
97
120
  */
98
121
  selectedAsPlaceholder?: boolean;
99
122
  }
@@ -0,0 +1,25 @@
1
+ import { Props } from './types';
2
+ import { PopupEvent } from '../popup/types';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
+ declare const _default: <T extends Record<string, any> | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onClose?: ((popupEvent: PopupEvent<T>) => any) | undefined;
7
+ readonly onOpen?: ((popupEvent: PopupEvent<T>) => any) | undefined;
8
+ readonly onScrollContentList?: ((e: Event) => any) | undefined;
9
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onOpen" | "onScrollContentList"> & Props<T> & Partial<{}>> & PublicProps;
10
+ expose(exposed: ShallowUnwrapRef<{}>): void;
11
+ attrs: any;
12
+ slots: {
13
+ opener?(_: {}): any;
14
+ header?(_: {}): any;
15
+ default?(_: {}): any;
16
+ footer?(_: {}): any;
17
+ };
18
+ emit: ((evt: "close", popupEvent: PopupEvent<T>) => void) & ((evt: "open", popupEvent: PopupEvent<T>) => void) & ((evt: "scrollContentList", e: Event) => void);
19
+ }>) => VNode & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
22
+ export default _default;
23
+ type __VLS_PrettifyLocal<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
@@ -0,0 +1,8 @@
1
+ import { Props as PopupProps } from '../popup/types';
2
+ export type { Emits } from '../popup/types';
3
+ export interface Props<T extends Record<string, any> | undefined = undefined> extends PopupProps<T> {
4
+ /**
5
+ * Текст кнопки
6
+ */
7
+ submitText?: string;
8
+ }
@@ -0,0 +1,26 @@
1
+ import { PopupEvent } from '../popup/types';
2
+ import { Props } from './types';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
+ declare const _default: <T extends Record<string, any> | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onClose?: ((popupEvent: PopupEvent<T>) => any) | undefined;
7
+ readonly onOpen?: ((popupEvent: PopupEvent<T>) => any) | undefined;
8
+ readonly onSubmit?: (() => any) | undefined;
9
+ readonly onScrollContentList?: ((e: Event) => any) | undefined;
10
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onSubmit" | "onOpen" | "onScrollContentList"> & Props<T> & Partial<{}>> & PublicProps;
11
+ expose(exposed: ShallowUnwrapRef<{}>): void;
12
+ attrs: any;
13
+ slots: {
14
+ opener?(_: {}): any;
15
+ header?(_: {}): any;
16
+ default?(_: {}): any;
17
+ footer?(_: {}): any;
18
+ };
19
+ emit: ((evt: "close", popupEvent: PopupEvent<T>) => void) & ((evt: "open", popupEvent: PopupEvent<T>) => void) & ((evt: "submit") => void) & ((evt: "scrollContentList", e: Event) => void);
20
+ }>) => VNode & {
21
+ __ctx?: Awaited<typeof __VLS_setup>;
22
+ };
23
+ export default _default;
24
+ type __VLS_PrettifyLocal<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
@@ -1,5 +1,5 @@
1
1
  import { Emits as PopupEmits, Props as PopupProps } from '../popup/types';
2
- export interface Props extends PopupProps {
2
+ export interface Props<T extends Record<string, any> | undefined = undefined> extends PopupProps<T> {
3
3
  /**
4
4
  * Текст кнопки отмены
5
5
  */
@@ -13,7 +13,7 @@ export interface Props extends PopupProps {
13
13
  */
14
14
  isWarning?: boolean;
15
15
  }
16
- export type Emits = PopupEmits & {
16
+ export type Emits<T extends Record<string, any> | undefined> = PopupEmits<T> & {
17
17
  /**
18
18
  * Будет вызвано при нажатии кнопок или закрытии окна
19
19
  */
@@ -1,4 +1,5 @@
1
1
  import { default as Component } from '../../component';
2
+ import { OpenerProps } from '../popup/types';
2
3
  export interface PopupOptions {
3
4
  popup?: string;
4
5
  id?: string;
@@ -21,9 +22,11 @@ export interface PopupOptions {
21
22
  * - aftershow.top-menu-popup
22
23
  * - afterclose.top-menu-popup
23
24
  */
24
- export declare class TopLibPopup extends Component {
25
+ export declare class TopLibPopup<T extends Record<string, any> | undefined = undefined> extends Component {
25
26
  static componentName: string;
26
- el: HTMLElement;
27
+ el: HTMLElement & {
28
+ __TopPopupOpenerProps: OpenerProps<T>;
29
+ };
27
30
  elActiveByDefault: boolean | undefined;
28
31
  elPopup: HTMLElement | undefined;
29
32
  elPopupInner: HTMLElement | undefined;
@@ -32,6 +35,7 @@ export declare class TopLibPopup extends Component {
32
35
  elPopupBody: HTMLElement | undefined | null;
33
36
  elPopupFooter: HTMLElement | undefined | null;
34
37
  elFront: HTMLElement | undefined | null;
38
+ openerIsInput: boolean;
35
39
  popupParent: TopLibPopup | undefined;
36
40
  $: JQuery<HTMLElement> | undefined;
37
41
  elStartPosition: HTMLElement | undefined | null;
@@ -29,6 +29,8 @@ declare class Worker {
29
29
  * Вернуть объект компонента popup, привязанный к элементу
30
30
  */
31
31
  static getPopup(elPopup: HTMLElement): TopLibPopup;
32
+ static getElPopupOpener(el: Element): HTMLElement | null;
33
+ static getPopupFromOpener(el: HTMLElement): TopLibPopup | null;
32
34
  /**
33
35
  * Вернуть все элементы с Popup
34
36
  */
@@ -48,14 +50,14 @@ declare class Worker {
48
50
  * @param options - опции Popup
49
51
  */
50
52
  private static open;
51
- static close(elPopup: HTMLElement): void;
53
+ static close(elPopup: HTMLElement, restoreFocus?: boolean): void;
52
54
  static recalcPosition(elPopup: HTMLElement): void;
53
55
  /**
54
56
  * Скролл к активному элементу списка
55
57
  */
56
58
  static scrollToActive(elPopup: HTMLElement): void;
57
- static decoratorBeforeOpen(popup: TopLibPopup): void;
58
- static decoratorAfterOpen(popup: TopLibPopup): void;
59
+ static decoratorBeforeOpen(popup: TopLibPopup<any>): void;
60
+ static decoratorAfterOpen(popup: TopLibPopup<any>): void;
59
61
  static decoratorIsIgnoreOuterClick(e: MouseEvent): boolean;
60
62
  /**
61
63
  * Зарегистрировать Vue компонент
@@ -68,7 +70,7 @@ declare class Worker {
68
70
  */
69
71
  static unregVueComponent(id: string): void;
70
72
  /**
71
- * Сгенерировтаь элемент для открытия popup
73
+ * Сгенерировать элемент для открытия popup
72
74
  */
73
75
  static genElPopupOpener(tagName: string, props: OpenerProps, ...elsChildrens: HTMLElement[] | string[]): HTMLElement;
74
76
  }
@@ -0,0 +1,17 @@
1
+ import { OpenerProps } from './types';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
3
+ declare const _default: <T extends Record<string, any> | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & OpenerProps<T> & Partial<{}>> & PublicProps;
5
+ expose(exposed: ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ emit: {};
11
+ }>) => VNode & {
12
+ __ctx?: Awaited<typeof __VLS_setup>;
13
+ };
14
+ export default _default;
15
+ type __VLS_PrettifyLocal<T> = {
16
+ [K in keyof T]: T[K];
17
+ } & {};
@@ -0,0 +1,38 @@
1
+ import { TopLibPopup } from '../lib/popup';
2
+ import { Props, PopupEvent } from './types';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
4
+ declare const _default: <T extends Record<string, any> | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
+ readonly onClose?: ((popupEvent: PopupEvent<T>) => any) | undefined;
7
+ readonly onOpen?: ((popupEvent: PopupEvent<T>) => any) | undefined;
8
+ readonly onScrollContentList?: ((e: Event) => any) | undefined;
9
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onClose" | "onOpen" | "onScrollContentList"> & Props<T> & Partial<{}>> & PublicProps;
10
+ expose(exposed: ShallowUnwrapRef<{
11
+ id: string;
12
+ popup: TopLibPopup<T> | undefined;
13
+ }>): void;
14
+ attrs: any;
15
+ slots: {
16
+ opener?(_: {}): any;
17
+ header?(_: {
18
+ data: T | undefined;
19
+ }): any;
20
+ widget?(_: {}): any;
21
+ content?(_: {
22
+ data: T | undefined;
23
+ }): any;
24
+ contentList?(_: {
25
+ data: T | undefined;
26
+ }): any;
27
+ footer?(_: {
28
+ data: T | undefined;
29
+ }): any;
30
+ };
31
+ emit: ((evt: "close", popupEvent: PopupEvent<T>) => void) & ((evt: "open", popupEvent: PopupEvent<T>) => void) & ((evt: "scrollContentList", e: Event) => void);
32
+ }>) => VNode & {
33
+ __ctx?: Awaited<typeof __VLS_setup>;
34
+ };
35
+ export default _default;
36
+ type __VLS_PrettifyLocal<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};