@topvisor/ui 1.2.0 → 1.3.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/core-DkD6AE7J.amd.js +2 -0
- package/.chunks/core-DkD6AE7J.amd.js.map +1 -0
- package/.chunks/core-ZuvfeeJ3.es.js +197 -0
- package/.chunks/core-ZuvfeeJ3.es.js.map +1 -0
- package/.chunks/datepicker-CxWa68gc.es.js +44 -0
- package/.chunks/datepicker-CxWa68gc.es.js.map +1 -0
- package/.chunks/datepicker-DeYFg9AM.amd.js +2 -0
- package/.chunks/datepicker-DeYFg9AM.amd.js.map +1 -0
- package/.chunks/dialog_selectorRegions-D1ord0Ik.es.js +188 -0
- package/.chunks/dialog_selectorRegions-D1ord0Ik.es.js.map +1 -0
- package/.chunks/dialog_selectorRegions-vQD6LBdY.amd.js +2 -0
- package/.chunks/dialog_selectorRegions-vQD6LBdY.amd.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BMDSZwZJ.es.js +322 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BMDSZwZJ.es.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DDR6uqak.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DDR6uqak.amd.js.map +1 -0
- package/.chunks/field-Cvv0SRcJ.amd.js +2 -0
- package/.chunks/field-Cvv0SRcJ.amd.js.map +1 -0
- package/.chunks/field-CyyFzM-Y.es.js +16 -0
- package/.chunks/field-CyyFzM-Y.es.js.map +1 -0
- package/.chunks/forms-CRHjU2Mj.es.js +2045 -0
- package/.chunks/forms-CRHjU2Mj.es.js.map +1 -0
- package/.chunks/forms-D4uFd45i.amd.js +3 -0
- package/.chunks/forms-D4uFd45i.amd.js.map +1 -0
- package/.chunks/index-BEI7XZmU.amd.js +2 -0
- package/.chunks/index-BEI7XZmU.amd.js.map +1 -0
- package/.chunks/index-igPkes8X.es.js +48 -0
- package/.chunks/index-igPkes8X.es.js.map +1 -0
- package/.chunks/lazy-40pjr8cZ.es.js +71 -0
- package/.chunks/lazy-40pjr8cZ.es.js.map +1 -0
- package/.chunks/lazy-DSFLxvj4.amd.js +2 -0
- package/.chunks/lazy-DSFLxvj4.amd.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B2Q4gqK6.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B2Q4gqK6.amd.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DFWY29DS.es.js +184 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DFWY29DS.es.js.map +1 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-Bm9sY3Ux.es.js +110 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-Bm9sY3Ux.es.js.map +1 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-bMtkdrEt.amd.js +2 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-bMtkdrEt.amd.js.map +1 -0
- package/.chunks/notice-7-xEtFXT.amd.js +4 -0
- package/.chunks/notice-7-xEtFXT.amd.js.map +1 -0
- package/.chunks/notice-pFWJHCd7.es.js +180 -0
- package/.chunks/notice-pFWJHCd7.es.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DzuM-_u7.amd.js +2 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DzuM-_u7.amd.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-o3lCjjxW.es.js +143 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-o3lCjjxW.es.js.map +1 -0
- package/.chunks/popup-C05LLKni.amd.js +2 -0
- package/.chunks/popup-C05LLKni.amd.js.map +1 -0
- package/.chunks/popup-Dr3j_FOV.es.js +459 -0
- package/.chunks/popup-Dr3j_FOV.es.js.map +1 -0
- package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
- package/.chunks/punycode.es6-CNOnFR2-.amd.js.map +1 -0
- package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
- package/.chunks/punycode.es6-CgGegfA_.es.js.map +1 -0
- package/.chunks/store-CX_6ZXhO.es.js +29 -0
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -0
- package/.chunks/store-YRW59xEF.amd.js +2 -0
- package/.chunks/store-YRW59xEF.amd.js.map +1 -0
- package/.chunks/utils-BgEQlXpF.amd.js +2 -0
- package/.chunks/utils-BgEQlXpF.amd.js.map +1 -0
- package/.chunks/utils-Bsv1-1_h.es.js +79 -0
- package/.chunks/utils-Bsv1-1_h.es.js.map +1 -0
- package/.chunks/utils-DQvj_C9w.amd.js +2 -0
- package/.chunks/utils-DQvj_C9w.amd.js.map +1 -0
- package/.chunks/utils-sKjgHYod.es.js +302 -0
- package/.chunks/utils-sKjgHYod.es.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-5LVABONB.es.js +39 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-5LVABONB.es.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-B7zzY9Mx.amd.js +2 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-B7zzY9Mx.amd.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +2 -0
- package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +1 -0
- package/README.md +82 -33
- package/api/additional.amd.js +2 -0
- package/api/additional.amd.js.map +1 -0
- package/api/additional.d.ts +2 -0
- package/api/additional.js +66 -0
- package/api/additional.js.map +1 -0
- package/api/index.amd.js +2 -0
- package/api/index.amd.js.map +1 -0
- package/api/index.d.ts +2 -0
- package/api/index.js +280 -0
- package/api/index.js.map +1 -0
- package/assets/charts.css +1 -0
- package/assets/core.css +1 -0
- package/assets/dialog_selectorRegions.css +1 -0
- package/assets/extra.css +1 -0
- package/assets/forms.css +1 -0
- package/assets/formsExt.css +1 -0
- package/assets/layout.css +1 -0
- package/assets/listItem.css +1 -0
- package/assets/menu.css +1 -0
- package/assets/notice.css +1 -0
- package/assets/project.css +1 -0
- package/assets/tabs.css +1 -0
- package/assets/tabsView.css +1 -0
- package/assets/themes/dark-th.css +1 -0
- package/assets/themes/dark.css +1 -0
- package/assets/themes/light.css +1 -0
- package/assets/widgetInput.css +1 -0
- package/charts/charts.amd.js +2 -0
- package/charts/charts.amd.js.map +1 -0
- package/charts/charts.d.ts +2 -0
- package/charts/charts.js +178 -0
- package/charts/charts.js.map +1 -0
- package/core/app.amd.js +2 -0
- package/core/app.amd.js.map +1 -0
- package/core/app.d.ts +2 -0
- package/core/app.js +216 -0
- package/core/app.js.map +1 -0
- package/dialog/dialog.amd.js +2 -0
- package/dialog/dialog.amd.js.map +1 -0
- package/dialog/dialog.d.ts +2 -0
- package/dialog/dialog.js +60 -0
- package/dialog/dialog.js.map +1 -0
- package/extra/extra.amd.js +2 -0
- package/extra/extra.amd.js.map +1 -0
- package/extra/extra.d.ts +2 -0
- package/extra/extra.js +72 -0
- package/extra/extra.js.map +1 -0
- package/forms/forms.amd.js +2 -0
- package/forms/forms.amd.js.map +1 -0
- package/forms/forms.d.ts +2 -0
- package/forms/forms.js +19 -0
- package/forms/forms.js.map +1 -0
- package/forms/helpers.amd.js +2 -0
- package/forms/helpers.amd.js.map +1 -0
- package/forms/helpers.d.ts +1 -0
- package/forms/helpers.js +2 -0
- package/forms/helpers.js.map +1 -0
- package/formsExt/formsExt.amd.js +2 -0
- package/formsExt/formsExt.amd.js.map +1 -0
- package/formsExt/formsExt.d.ts +2 -0
- package/formsExt/formsExt.js +697 -0
- package/formsExt/formsExt.js.map +1 -0
- package/icomoon/Read Me.txt +7 -0
- package/icomoon/demo-files/demo.css +158 -0
- package/icomoon/demo-files/demo.js +30 -0
- package/icomoon/demo.css +158 -0
- package/icomoon/demo.html +3782 -0
- package/icomoon/demo.js +30 -0
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +293 -0
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -0
- package/icomoon/style.css +828 -0
- package/jquery-ui.min.css +6 -0
- package/layout/layout.amd.js +2 -0
- package/layout/layout.amd.js.map +1 -0
- package/layout/layout.d.ts +2 -0
- package/layout/layout.js +62 -0
- package/layout/layout.js.map +1 -0
- package/package.json +36 -88
- package/popup/popup.amd.js +2 -0
- package/popup/popup.amd.js.map +1 -0
- package/popup/popup.d.ts +2 -0
- package/popup/popup.js +228 -0
- package/popup/popup.js.map +1 -0
- package/popup/worker.amd.js +2 -0
- package/popup/worker.amd.js.map +1 -0
- package/popup/worker.d.ts +2 -0
- package/popup/worker.js +138 -0
- package/popup/worker.js.map +1 -0
- package/project/project.amd.js +2 -0
- package/project/project.amd.js.map +1 -0
- package/project/project.d.ts +2 -0
- package/project/project.js +986 -0
- package/project/project.js.map +1 -0
- package/require/css.amd.js +12 -0
- package/src/api/api/additional.d.ts +1 -0
- package/src/api/api/client/client.d.ts +55 -0
- package/src/api/api/client/request-options.d.ts +1 -0
- package/src/api/api/client/request.d.ts +2 -0
- package/src/api/api/index.d.ts +12 -0
- package/src/api/api/mocker/index.d.ts +9 -0
- package/src/api/api/tests/types.test-d.d.ts +1 -0
- package/src/api/api/types/api.d.ts +144 -0
- package/src/api/api/types/client/client.d.ts +8 -0
- package/src/api/api/types/client/middleware.d.ts +65 -0
- package/src/api/api/types/client/options.d.ts +60 -0
- package/src/api/api/types/client/request-context.d.ts +35 -0
- package/src/api/api/types/client/request-options.d.ts +73 -0
- package/src/api/api/types/client/request.d.ts +91 -0
- package/src/api/api/types/ext.d.ts +51 -0
- package/src/api/api/types/field.d.ts +33 -0
- package/src/api/api/types/index.d.ts +13 -0
- package/src/api/api/types/mocker.d.ts +106 -0
- package/src/api/api/types/schema.d.ts +50 -0
- package/src/api/api/types/tv.d.ts +59 -0
- package/src/api/api/types/utils.d.ts +51 -0
- package/src/api/api/utils/common.d.ts +16 -0
- package/src/api/api/utils/field.d.ts +8 -0
- package/src/api/api/utils/filters.d.ts +48 -0
- package/src/api/api/utils/lazy.d.ts +26 -0
- package/src/components/charts/charts.d.ts +2 -0
- package/src/components/charts/miniChart/miniChart.vue.d.ts +15 -0
- package/src/components/charts/miniChart/types.d.ts +92 -0
- package/src/components/charts/miniChart/utils/consts.d.ts +8 -0
- package/src/components/charts/miniCharts/miniCharts.d.ts +20 -0
- package/src/components/charts/miniCharts/miniCharts.vue.d.ts +32 -0
- package/src/components/core/notice/item/item.vue.d.ts +10 -0
- package/src/components/core/notice/item/types.d.ts +63 -0
- package/src/components/core/notice/notice.vue.d.ts +5 -0
- package/src/components/core/notice/types.d.ts +1 -0
- package/src/components/core/notice/utils.d.ts +27 -0
- package/src/components/dialog/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/src/components/dialog/dialog/composables/dialogHandle.d.ts +108 -0
- package/src/components/dialog/dialog/composables/types.d.ts +11 -0
- package/src/components/dialog/dialog/composables/utils.d.ts +21 -0
- package/src/components/dialog/dialog/dialog.vue.d.ts +28 -0
- package/src/components/dialog/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/src/components/dialog/dialog/page/page.vue.d.ts +19 -0
- package/src/components/dialog/dialog/page/types.d.ts +72 -0
- package/src/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +6 -0
- package/src/components/dialog/dialog/pageComponent/types.d.ts +18 -0
- package/src/components/dialog/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/src/components/dialog/dialog/types.d.ts +58 -0
- package/src/components/dialog/dialog.d.ts +6 -0
- package/src/components/dialog/lib/types.d.ts +44 -0
- package/src/components/dialog/lib/utils.d.ts +14 -0
- package/src/components/dialog/lib/utils.globalEvents.d.ts +8 -0
- package/src/components/dialog/lib/worker.d.ts +76 -0
- package/src/components/extra/extra.d.ts +1 -0
- package/src/components/extra/rive/rive.vue.d.ts +11 -0
- package/src/components/extra/rive/types.d.ts +7 -0
- package/src/components/forms/avatar/avatar.vue.d.ts +10 -0
- package/src/components/forms/avatar/types.d.ts +32 -0
- package/src/components/forms/button/button.vue.d.ts +21 -0
- package/src/components/forms/button/types.d.ts +49 -0
- package/src/components/forms/caption/caption.vue.d.ts +17 -0
- package/src/components/forms/caption/types.d.ts +9 -0
- package/src/components/forms/checkbox/checkbox.vue.d.ts +27 -0
- package/src/components/forms/checkbox/types.d.ts +21 -0
- package/src/components/forms/controlLabel/controlLabel.vue.d.ts +19 -0
- package/src/components/forms/controlLabel/types.d.ts +4 -0
- package/src/components/forms/forms.d.ts +15 -0
- package/src/components/forms/helpers.d.ts +1 -0
- package/src/components/forms/hint/hint.vue.d.ts +4 -0
- package/src/components/forms/hint/types.d.ts +8 -0
- package/src/components/forms/input/input.vue.d.ts +27 -0
- package/src/components/forms/input/types.d.ts +23 -0
- package/src/components/forms/inputDate/datepicker.d.ts +5 -0
- package/src/components/forms/inputDate/inputDate.vue.d.ts +12 -0
- package/src/components/forms/inputDate/types.d.ts +1 -0
- package/src/components/forms/inputRange/inputRange.vue.d.ts +19 -0
- package/src/components/forms/inputRange/types.d.ts +2 -0
- package/src/components/forms/loadbar/loadbar.vue.d.ts +3 -0
- package/src/components/forms/preloader/preloader.vue.d.ts +4 -0
- package/src/components/forms/preloader/types.d.ts +3 -0
- package/src/components/forms/radio/radio.vue.d.ts +23 -0
- package/src/components/forms/radio/types.d.ts +14 -0
- package/src/components/forms/select/select.vue.d.ts +17 -0
- package/src/components/forms/select/types.d.ts +58 -0
- package/src/components/forms/switcher/switcher.vue.d.ts +23 -0
- package/src/components/forms/switcher/types.d.ts +21 -0
- package/src/components/forms/textarea/textarea.vue.d.ts +12 -0
- package/src/components/forms/textarea/types.d.ts +44 -0
- package/src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +16 -0
- package/src/components/formsExt/checkboxGroup/types.d.ts +19 -0
- package/src/components/formsExt/editArea/editArea.vue.d.ts +18 -0
- package/src/components/formsExt/editArea/types.d.ts +33 -0
- package/src/components/formsExt/editInput/editInput.vue.d.ts +8 -0
- package/src/components/formsExt/editInput/types.d.ts +16 -0
- package/src/components/formsExt/formsExt.d.ts +8 -0
- package/src/components/formsExt/info/info.vue.d.ts +20 -0
- package/src/components/formsExt/info/types.d.ts +21 -0
- package/src/components/formsExt/menu/menu.vue.d.ts +16 -0
- package/src/components/formsExt/menu/types.d.ts +37 -0
- package/src/components/formsExt/policy/policy.vue.d.ts +8 -0
- package/src/components/formsExt/policy/types.d.ts +20 -0
- package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +16 -0
- package/src/components/formsExt/radioGroup/types.d.ts +21 -0
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +16 -0
- package/src/components/formsExt/selector2/itemMulti.vue.d.ts +8 -0
- package/src/components/formsExt/selector2/selector2.vue.d.ts +43 -0
- package/src/components/formsExt/selector2/types.d.ts +162 -0
- package/src/components/formsExt/selector2/utils.d.ts +6 -0
- package/src/components/layout/islandRows/islandRows.vue.d.ts +17 -0
- package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +18 -0
- package/src/components/layout/islandRows/islandRowsRow/types.d.ts +2 -0
- package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +18 -0
- package/src/components/layout/islandRows/types.d.ts +10 -0
- package/src/components/layout/layout.d.ts +4 -0
- package/src/components/layout/rows/rows.vue.d.ts +21 -0
- package/src/components/layout/rows/types.d.ts +6 -0
- package/src/components/popup/alert/alert.vue.d.ts +25 -0
- package/src/components/popup/alert/types.d.ts +8 -0
- package/src/components/popup/confirm/confirm.vue.d.ts +26 -0
- package/src/components/popup/confirm/types.d.ts +21 -0
- package/src/components/popup/lib/popup.d.ts +87 -0
- package/src/components/popup/lib/popup.globalEvents.d.ts +32 -0
- package/src/components/popup/lib/worker.d.ts +77 -0
- package/src/components/popup/lib/worker.globalEvents.d.ts +19 -0
- package/src/components/popup/popup/listItem.vue.d.ts +22 -0
- package/src/components/popup/popup/opener.vue.d.ts +17 -0
- package/src/components/popup/popup/popup.vue.d.ts +38 -0
- package/src/components/popup/popup/types.d.ts +110 -0
- package/src/components/popup/popup/widgetInput.vue.d.ts +17 -0
- package/src/components/popup/popup.d.ts +7 -0
- package/src/components/popup/prompt/prompt.vue.d.ts +26 -0
- package/src/components/popup/prompt/types.d.ts +21 -0
- package/src/components/popup/worker.d.ts +1 -0
- package/src/components/project/project.d.ts +9 -0
- package/src/components/project/selectorCompetitors/composables.d.ts +3 -0
- package/src/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +14 -0
- package/src/components/project/selectorCompetitors/types.d.ts +30 -0
- package/src/components/project/selectorRegion/composables/compare.d.ts +12 -0
- package/src/components/project/selectorRegion/composables/selectRegion.d.ts +13 -0
- package/src/components/project/selectorRegion/composables/selectSearcher.d.ts +13 -0
- package/src/components/project/selectorRegion/composables/selectorRegion.d.ts +25 -0
- package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +6 -0
- package/src/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +26 -0
- package/src/components/project/selectorRegion/selectorRegion.vue.d.ts +23 -0
- package/src/components/project/selectorRegion/types.d.ts +172 -0
- package/src/components/project/selectorRegion/utils/consts.d.ts +31 -0
- package/src/components/project/selectorRegion/utils/utils.d.ts +34 -0
- package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +20 -0
- package/src/components/project/tagSelector/popupListItem/types.d.ts +33 -0
- package/src/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +27 -0
- package/src/components/project/tagSelector/popupOpener/types.d.ts +64 -0
- package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +4 -0
- package/src/components/project/tagSelector/tagIcon/types.d.ts +21 -0
- package/src/components/project/tagSelector/tagSelector.vue.d.ts +37 -0
- package/src/components/project/tagSelector/tagsDefaults.d.ts +3 -0
- package/src/components/project/tagSelector/types.d.ts +140 -0
- package/src/components/project/tagSelector/utils/el.d.ts +19 -0
- package/src/components/project/tagSelector/utils/utils.d.ts +14 -0
- package/src/components/tabs/tabs/content.vue.d.ts +19 -0
- package/src/components/tabs/tabs/tab.vue.d.ts +19 -0
- package/src/components/tabs/tabs/tabs.vue.d.ts +21 -0
- package/src/components/tabs/tabs/types.d.ts +19 -0
- package/src/components/tabs/tabs.d.ts +3 -0
- package/src/components/tabsView/tabsView/menu.vue.d.ts +32 -0
- package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +3 -0
- package/src/components/tabsView/tabsView/menuItem.vue.d.ts +23 -0
- package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +20 -0
- package/src/components/tabsView/tabsView/store.d.ts +12 -0
- package/src/components/tabsView/tabsView/tabsView.vue.d.ts +34 -0
- package/src/components/tabsView/tabsView/types.d.ts +98 -0
- package/src/components/tabsView/tabsView/utils.d.ts +11 -0
- package/src/components/tabsView/tabsView.d.ts +3 -0
- package/src/core/app.d.ts +8 -0
- package/src/core/core/core.d.ts +113 -0
- package/src/core/core/events/resize.d.ts +16 -0
- package/src/core/core/events.d.ts +15 -0
- package/src/core/core/options.d.ts +47 -0
- package/src/core/core/preloaders.d.ts +19 -0
- package/src/core/core/state.d.ts +49 -0
- package/src/core/directives/data.d.ts +10 -0
- package/src/core/directives/focus.d.ts +10 -0
- package/src/core/directives/preloader.d.ts +8 -0
- package/src/core/directives/scrollIntoView.d.ts +3 -0
- package/src/core/directives/scrollShadow.d.ts +15 -0
- package/src/core/directives/sticky.d.ts +10 -0
- package/src/core/directives/swimUp.d.ts +15 -0
- package/src/core/directives/tooltip.d.ts +10 -0
- package/src/core/plugins/core.d.ts +60 -0
- package/src/core/plugins/i18n.d.ts +97 -0
- package/src/core/plugins/piniaTPA.d.ts +17 -0
- package/src/core/utils/check.d.ts +26 -0
- package/src/core/utils/clipboard.d.ts +12 -0
- package/src/core/utils/date.d.ts +70 -0
- package/src/core/utils/device.d.ts +50 -0
- package/src/core/utils/dom.d.ts +104 -0
- package/src/core/utils/image.d.ts +16 -0
- package/src/core/utils/keyboard.d.ts +8 -0
- package/src/core/utils/lodash.d.ts +6 -0
- package/src/core/utils/number.d.ts +17 -0
- package/src/core/utils/price.d.ts +10 -0
- package/src/core/utils/route.d.ts +33 -0
- package/src/core/utils/scroll.d.ts +32 -0
- package/src/core/utils/searchers.d.ts +38 -0
- package/src/core/utils/store/localStorage.d.ts +6 -0
- package/src/core/utils/store/plugin.d.ts +24 -0
- package/src/core/utils/store/store.d.ts +34 -0
- package/src/core/utils/store.d.ts +6 -0
- package/src/core/utils/string.d.ts +100 -0
- package/src/core/utils/system.d.ts +25 -0
- package/src/core/utils/url.d.ts +36 -0
- package/tabs/tabs.amd.js +2 -0
- package/tabs/tabs.amd.js.map +1 -0
- package/tabs/tabs.d.ts +2 -0
- package/tabs/tabs.js +81 -0
- package/tabs/tabs.js.map +1 -0
- package/tabsView/tabsView.amd.js +2 -0
- package/tabsView/tabsView.amd.js.map +1 -0
- package/tabsView/tabsView.d.ts +2 -0
- package/tabsView/tabsView.js +307 -0
- package/tabsView/tabsView.js.map +1 -0
- package/utils/check.amd.js +2 -0
- package/utils/check.amd.js.map +1 -0
- package/utils/check.d.ts +2 -0
- package/utils/check.js +26 -0
- package/utils/check.js.map +1 -0
- package/utils/clipboard.amd.js +6 -0
- package/utils/clipboard.amd.js.map +1 -0
- package/utils/clipboard.d.ts +2 -0
- package/utils/clipboard.js +35 -0
- package/utils/clipboard.js.map +1 -0
- package/utils/date.amd.js +2 -0
- package/utils/date.amd.js.map +1 -0
- package/utils/date.d.ts +2 -0
- package/utils/date.js +12 -0
- package/utils/date.js.map +1 -0
- package/utils/device.amd.js +2 -0
- package/utils/device.amd.js.map +1 -0
- package/utils/device.d.ts +2 -0
- package/utils/device.js +15 -0
- package/utils/device.js.map +1 -0
- package/utils/dom.amd.js +2 -0
- package/utils/dom.amd.js.map +1 -0
- package/utils/dom.d.ts +6 -0
- package/utils/dom.js +80 -0
- package/utils/dom.js.map +1 -0
- package/utils/image.amd.js +12 -0
- package/utils/image.amd.js.map +1 -0
- package/utils/image.d.ts +2 -0
- package/utils/image.js +23 -0
- package/utils/image.js.map +1 -0
- package/utils/keyboard.amd.js +2 -0
- package/utils/keyboard.amd.js.map +1 -0
- package/utils/keyboard.d.ts +2 -0
- package/utils/keyboard.js +12 -0
- package/utils/keyboard.js.map +1 -0
- package/utils/lodash.amd.js +2 -0
- package/utils/lodash.amd.js.map +1 -0
- package/utils/lodash.d.ts +2 -0
- package/utils/lodash.js +9 -0
- package/utils/lodash.js.map +1 -0
- package/utils/number.amd.js +2 -0
- package/utils/number.amd.js.map +1 -0
- package/utils/number.d.ts +2 -0
- package/utils/number.js +13 -0
- package/utils/number.js.map +1 -0
- package/utils/price.amd.js +2 -0
- package/utils/price.amd.js.map +1 -0
- package/utils/price.d.ts +2 -0
- package/utils/price.js +10 -0
- package/utils/price.js.map +1 -0
- package/utils/route.amd.js +2 -0
- package/utils/route.amd.js.map +1 -0
- package/utils/route.d.ts +2 -0
- package/utils/route.js +38 -0
- package/utils/route.js.map +1 -0
- package/utils/scroll.amd.js +2 -0
- package/utils/scroll.amd.js.map +1 -0
- package/utils/scroll.d.ts +2 -0
- package/utils/scroll.js +45 -0
- package/utils/scroll.js.map +1 -0
- package/utils/searchers.amd.js +2 -0
- package/utils/searchers.amd.js.map +1 -0
- package/utils/searchers.d.ts +2 -0
- package/utils/searchers.js +134 -0
- package/utils/searchers.js.map +1 -0
- package/utils/store.amd.js +2 -0
- package/utils/store.amd.js.map +1 -0
- package/utils/store.d.ts +2 -0
- package/utils/store.js +7 -0
- package/utils/store.js.map +1 -0
- package/utils/string.amd.js +2 -0
- package/utils/string.amd.js.map +1 -0
- package/utils/string.d.ts +2 -0
- package/utils/string.js +152 -0
- package/utils/string.js.map +1 -0
- package/utils/system.amd.js +2 -0
- package/utils/system.amd.js.map +1 -0
- package/utils/system.d.ts +2 -0
- package/utils/system.js +29 -0
- package/utils/system.js.map +1 -0
- package/utils/url.amd.js +3 -0
- package/utils/url.amd.js.map +1 -0
- package/utils/url.d.ts +2 -0
- package/utils/url.js +48 -0
- package/utils/url.js.map +1 -0
- package/web-types.json +130 -130
- package/.gitlab-ci/.gitlab-ci.yml +0 -26
- package/.gitlab-ci/common/install.yml +0 -21
- package/.gitlab-ci/common/lint.yml +0 -14
- package/.gitlab-ci/common/version.yml +0 -23
- package/.gitlab-ci/storybook/build.yml +0 -20
- package/.gitlab-ci/storybook/deploy.yml +0 -49
- package/.gitlab-ci/ui/build.yml +0 -13
- package/.gitlab-ci/ui/deploy.yml +0 -23
- package/.idea/.gitignore +0 -11
- package/.idea/codeStyles/Project.xml +0 -205
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/externalDependencies.xml +0 -6
- package/.idea/inspectionProfiles/Disabled.xml +0 -824
- package/.idea/inspectionProfiles/Project_Default.xml +0 -33
- package/.idea/php.xml +0 -19
- package/.idea/vcs.xml +0 -6
- package/.storybook/TopTheme.ts +0 -115
- package/.storybook/TopThemeManager.ts +0 -53
- package/.storybook/main.ts +0 -51
- package/.storybook/manager.ts +0 -25
- package/.storybook/preview-head.html +0 -21
- package/.storybook/preview.ts +0 -47
- package/.storybook/vue/coreDecorator.ts +0 -77
- package/.storybook/vue/vModelDecorator.ts +0 -46
- package/.versionrc.json +0 -16
- package/.vscode/extensions.json +0 -11
- package/.vscode/keybindings.example.json +0 -121
- package/.vscode/settings.json +0 -45
- package/CHANGELOG.md +0 -223
- package/NPM.md +0 -25
- package/PUBLISH.md +0 -63
- package/STORYBOOK.md +0 -48
- package/USE_IN_PROJECT.md +0 -32
- package/build/afterBuild.sh +0 -11
- package/build/cssModules.ts +0 -39
- package/build/genDocs.sh +0 -19
- package/build/plugin/amdFix.ts +0 -83
- package/build/plugin/autoloadCSS.ts +0 -155
- package/build/rollup.config.ts +0 -37
- package/public/README.md +0 -82
- package/public/icomoon/Read Me.txt +0 -7
- package/public/icomoon/Topvisor icons.json +0 -6260
- package/public/icomoon/demo-files/demo.css +0 -158
- package/public/icomoon/demo-files/demo.js +0 -30
- package/public/icomoon/demo.html +0 -3558
- package/public/icomoon/fonts/Topvisor-2.eot +0 -0
- package/public/icomoon/fonts/Topvisor-2.svg +0 -277
- package/public/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/public/icomoon/fonts/Topvisor-2.woff +0 -0
- package/public/icomoon/selection.json +0 -1
- package/public/icomoon/style.css +0 -780
- package/public/jquery-ui.min.css +0 -6
- package/public/require/css.amd.js +0 -12
- package/src/components/charts/charts.ts +0 -8
- package/src/components/charts/miniChart/miniChart.stories.ts +0 -67
- package/src/components/charts/miniChart/miniChart.ts +0 -110
- package/src/components/charts/miniChart/miniChart.vue +0 -158
- package/src/components/charts/miniChart/stories/README.md +0 -9
- package/src/components/charts/miniChart/stories/dummy.ts +0 -25
- package/src/components/charts/miniChart/styles/miniChart.css +0 -87
- package/src/components/charts/miniChart/utils/consts.ts +0 -9
- package/src/components/charts/miniCharts/miniCharts.stories.ts +0 -76
- package/src/components/charts/miniCharts/miniCharts.ts +0 -24
- package/src/components/charts/miniCharts/miniCharts.vue +0 -128
- package/src/components/charts/miniCharts/stories/README.md +0 -18
- package/src/components/charts/miniCharts/stories/dummy.ts +0 -70
- package/src/components/charts/miniCharts/stories/overview.vue +0 -139
- package/src/components/charts/miniCharts/styles/miniCharts.css +0 -32
- package/src/components/component.ts +0 -130
- package/src/components/core/core.mdx +0 -7
- package/src/components/core/notice/item/item.vue +0 -145
- package/src/components/core/notice/item/style.css +0 -70
- package/src/components/core/notice/item/types.ts +0 -71
- package/src/components/core/notice/notice.stories.ts +0 -105
- package/src/components/core/notice/notice.vue +0 -69
- package/src/components/core/notice/stories/README.md +0 -34
- package/src/components/core/notice/types.ts +0 -1
- package/src/components/core/notice/utils.ts +0 -115
- package/src/components/dialog/dialog/Dialog (code).mdx +0 -61
- package/src/components/dialog/dialog/composables/asyncDialogHandle.ts +0 -99
- package/src/components/dialog/dialog/composables/dialogHandle.ts +0 -176
- package/src/components/dialog/dialog/composables/types.ts +0 -12
- package/src/components/dialog/dialog/composables/utils.ts +0 -39
- package/src/components/dialog/dialog/dialog.stories.ts +0 -83
- package/src/components/dialog/dialog/dialog.vue +0 -74
- package/src/components/dialog/dialog/dialogs/dialogs.vue +0 -58
- package/src/components/dialog/dialog/page/page.vue +0 -86
- package/src/components/dialog/dialog/page/types.ts +0 -84
- package/src/components/dialog/dialog/page.stories.ts +0 -27
- package/src/components/dialog/dialog/pageComponent/pageComponent.vue +0 -57
- package/src/components/dialog/dialog/pageComponent/types.ts +0 -21
- package/src/components/dialog/dialog/pageComponent.stories.ts +0 -27
- package/src/components/dialog/dialog/stories/README.md +0 -117
- package/src/components/dialog/dialog/stories/autoload.ts +0 -12
- package/src/components/dialog/dialog/stories/dialog_example/dialog_example.vue +0 -73
- package/src/components/dialog/dialog/stories/dialog_example/pages/async.vue +0 -57
- package/src/components/dialog/dialog/stories/dialog_example/pages/default.vue +0 -64
- package/src/components/dialog/dialog/stories/dialog_example/pages/headerButtons.vue +0 -56
- package/src/components/dialog/dialog/stories/dialog_example/pages/utils.ts +0 -26
- package/src/components/dialog/dialog/stories/dialog_example/pages/withoutCache.vue +0 -64
- package/src/components/dialog/dialog/stories/page/README.md +0 -24
- package/src/components/dialog/dialog/stories/pageComponent/README.md +0 -12
- package/src/components/dialog/dialog/style/dialog.css +0 -316
- package/src/components/dialog/dialog/style/dialog.m.css +0 -40
- package/src/components/dialog/dialog/style/dialog.pc.css +0 -73
- package/src/components/dialog/dialog/style/modern/dialog.css +0 -12
- package/src/components/dialog/dialog/style/modern/dialog.pc.css +0 -3
- package/src/components/dialog/dialog/types.ts +0 -69
- package/src/components/dialog/dialog.ts +0 -7
- package/src/components/dialog/lib/types.ts +0 -26
- package/src/components/dialog/lib/utils.globalEvents.ts +0 -175
- package/src/components/dialog/lib/utils.ts +0 -525
- package/src/components/dialog/lib/worker.ts +0 -273
- package/src/components/forms/README.mdx +0 -10
- package/src/components/forms/avatar/avatar.stories.ts +0 -38
- package/src/components/forms/avatar/avatar.ts +0 -40
- package/src/components/forms/avatar/avatar.vue +0 -77
- package/src/components/forms/avatar/stories/overview.vue +0 -28
- package/src/components/forms/button/button.stories.ts +0 -118
- package/src/components/forms/button/button.vue +0 -111
- package/src/components/forms/button/stories/README.md +0 -9
- package/src/components/forms/button/stories/overview.vue +0 -33
- package/src/components/forms/button/style/button.css +0 -139
- package/src/components/forms/button/style/style-outline.css +0 -129
- package/src/components/forms/button/style/style-soft.css +0 -89
- package/src/components/forms/button/style/style-transparent.css +0 -39
- package/src/components/forms/button/types.ts +0 -66
- package/src/components/forms/checkbox/checkbox.stories.ts +0 -33
- package/src/components/forms/checkbox/checkbox.ts +0 -21
- package/src/components/forms/checkbox/checkbox.vue +0 -114
- package/src/components/forms/checkbox/stories/overview.vue +0 -171
- package/src/components/forms/controlLabel/controlLabel.stories.ts +0 -32
- package/src/components/forms/controlLabel/controlLabel.ts +0 -4
- package/src/components/forms/controlLabel/controlLabel.vue +0 -54
- package/src/components/forms/forms.ts +0 -40
- package/src/components/forms/helpers.ts +0 -11
- package/src/components/forms/hint/hint.stories.ts +0 -41
- package/src/components/forms/hint/hint.ts +0 -8
- package/src/components/forms/hint/hint.vue +0 -32
- package/src/components/forms/input/input.stories.ts +0 -32
- package/src/components/forms/input/input.ts +0 -47
- package/src/components/forms/input/input.vue +0 -189
- package/src/components/forms/input/stories/overview.vue +0 -61
- package/src/components/forms/inputDate/datepicker.css +0 -246
- package/src/components/forms/inputDate/datepicker.ts +0 -101
- package/src/components/forms/inputDate/inputDate.stories.ts +0 -41
- package/src/components/forms/inputDate/inputDate.ts +0 -5
- package/src/components/forms/inputDate/inputDate.vue +0 -133
- package/src/components/forms/inputDate/stories/overview.vue +0 -35
- package/src/components/forms/inputRange/inputRange.stories.ts +0 -53
- package/src/components/forms/inputRange/inputRange.ts +0 -3
- package/src/components/forms/inputRange/inputRange.vue +0 -39
- package/src/components/forms/inputRange/stories/overview.vue +0 -129
- package/src/components/forms/loadbar/loadbar.stories.ts +0 -17
- package/src/components/forms/loadbar/loadbar.vue +0 -37
- package/src/components/forms/radio/radio.stories.ts +0 -34
- package/src/components/forms/radio/radio.ts +0 -15
- package/src/components/forms/radio/radio.vue +0 -97
- package/src/components/forms/radio/stories/overview.vue +0 -79
- package/src/components/forms/select/select.stories.ts +0 -69
- package/src/components/forms/select/select.ts +0 -69
- package/src/components/forms/select/select.vue +0 -300
- package/src/components/forms/select/stories/exampleOptions.ts +0 -61
- package/src/components/forms/select/stories/overview.vue +0 -72
- package/src/components/forms/switcher/stories/overview.vue +0 -139
- package/src/components/forms/switcher/switcher.stories.ts +0 -33
- package/src/components/forms/switcher/switcher.ts +0 -22
- package/src/components/forms/switcher/switcher.vue +0 -118
- package/src/components/forms/textarea/stories/overview.vue +0 -62
- package/src/components/forms/textarea/textarea.stories.ts +0 -34
- package/src/components/forms/textarea/textarea.ts +0 -47
- package/src/components/forms/textarea/textarea.vue +0 -123
- package/src/components/formsExt/README.mdx +0 -5
- package/src/components/formsExt/editArea/editArea.stories.ts +0 -41
- package/src/components/formsExt/editArea/editArea.ts +0 -41
- package/src/components/formsExt/editArea/editArea.vue +0 -198
- package/src/components/formsExt/editArea/stories/README.md +0 -21
- package/src/components/formsExt/editArea/stories/overview.vue +0 -67
- package/src/components/formsExt/editInput/editInput.stories.ts +0 -36
- package/src/components/formsExt/editInput/editInput.ts +0 -20
- package/src/components/formsExt/editInput/editInput.vue +0 -54
- package/src/components/formsExt/editInput/stories/overview.vue +0 -54
- package/src/components/formsExt/formsExt.ts +0 -15
- package/src/components/formsExt/info/info.stories.ts +0 -35
- package/src/components/formsExt/info/info.vue +0 -84
- package/src/components/formsExt/info/stories/overview.vue +0 -29
- package/src/components/formsExt/info/types.ts +0 -25
- package/src/components/formsExt/menu/menu.stories.ts +0 -59
- package/src/components/formsExt/menu/menu.ts +0 -45
- package/src/components/formsExt/menu/menu.vue +0 -321
- package/src/components/formsExt/menu/stories/items.ts +0 -18
- package/src/components/formsExt/menu/stories/overview.vue +0 -52
- package/src/components/formsExt/navigationMenu/item.vue +0 -186
- package/src/components/formsExt/navigationMenu/navigationMenu.stories.ts +0 -37
- package/src/components/formsExt/navigationMenu/navigationMenu.ts +0 -28
- package/src/components/formsExt/navigationMenu/navigationMenu.vue +0 -40
- package/src/components/formsExt/navigationMenu/stories/items.ts +0 -116
- package/src/components/formsExt/radioGroup/radioGroup.stories.ts +0 -51
- package/src/components/formsExt/radioGroup/radioGroup.ts +0 -28
- package/src/components/formsExt/radioGroup/radioGroup.vue +0 -146
- package/src/components/formsExt/radioGroup/stories/overview.vue +0 -78
- package/src/components/formsExt/radioGroup/styles/top-scrollBar.css +0 -52
- package/src/components/formsExt/selector2/api.ts +0 -148
- package/src/components/formsExt/selector2/itemMulti.vue +0 -57
- package/src/components/formsExt/selector2/selector2.stories.ts +0 -48
- package/src/components/formsExt/selector2/selector2.ts +0 -145
- package/src/components/formsExt/selector2/selector2.vue +0 -389
- package/src/components/formsExt/selector2/stories/dummyAPIRequest.ts +0 -58
- package/src/components/formsExt/selector2/stories/overview.vue +0 -93
- package/src/components/helper.js +0 -10
- package/src/components/helpersStories.ts +0 -205
- package/src/components/layout/islandRows/islandRows.stories.ts +0 -139
- package/src/components/layout/islandRows/islandRows.vue +0 -53
- package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue +0 -36
- package/src/components/layout/islandRows/islandRowsRow/types.ts +0 -1
- package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue +0 -16
- package/src/components/layout/islandRows/stories/README.md +0 -8
- package/src/components/layout/islandRows/types.ts +0 -11
- package/src/components/layout/layout.ts +0 -11
- package/src/components/layout/rows/rows.stories.ts +0 -48
- package/src/components/layout/rows/rows.vue +0 -46
- package/src/components/layout/rows/stories/README.md +0 -10
- package/src/components/layout/rows/types.ts +0 -6
- package/src/components/popup/alert/alert.stories.ts +0 -71
- package/src/components/popup/alert/alert.ts +0 -11
- package/src/components/popup/alert/alert.vue +0 -46
- package/src/components/popup/alert/stories/overview.vue +0 -40
- package/src/components/popup/confirm/confirm.stories.ts +0 -75
- package/src/components/popup/confirm/confirm.ts +0 -26
- package/src/components/popup/confirm/confirm.vue +0 -75
- package/src/components/popup/confirm/stories/overview.vue +0 -62
- package/src/components/popup/lib/popup.globalEvents.ts +0 -239
- package/src/components/popup/lib/popup.ts +0 -790
- package/src/components/popup/lib/worker.globalEvents.ts +0 -97
- package/src/components/popup/lib/worker.ts +0 -286
- package/src/components/popup/popup/listItem.vue +0 -35
- package/src/components/popup/popup/opener.vue +0 -81
- package/src/components/popup/popup/popup.stories.ts +0 -74
- package/src/components/popup/popup/popup.ts +0 -120
- package/src/components/popup/popup/popup.vue +0 -168
- package/src/components/popup/popup/stories/README.md +0 -55
- package/src/components/popup/popup/stories/listItems.vue +0 -44
- package/src/components/popup/popup/stories/listSubItems.vue +0 -47
- package/src/components/popup/popup/stories/overview.vue +0 -210
- package/src/components/popup/popup/style/popup.css +0 -345
- package/src/components/popup/popup/style/popup.m.css +0 -72
- package/src/components/popup/popup/style/popup.pc.css +0 -26
- package/src/components/popup/popup/widgetInput.vue +0 -43
- package/src/components/popup/popup.ts +0 -17
- package/src/components/popup/prompt/prompt.stories.ts +0 -78
- package/src/components/popup/prompt/prompt.ts +0 -26
- package/src/components/popup/prompt/prompt.vue +0 -84
- package/src/components/popup/prompt/stories/overview.vue +0 -50
- package/src/components/popup/worker.ts +0 -1
- package/src/components/project/project.ts +0 -23
- package/src/components/project/selectorCompetitors/composables.ts +0 -21
- package/src/components/project/selectorCompetitors/selectorCompetitors.stories.ts +0 -33
- package/src/components/project/selectorCompetitors/selectorCompetitors.ts +0 -27
- package/src/components/project/selectorCompetitors/selectorCompetitors.vue +0 -75
- package/src/components/project/selectorCompetitors/stories/README.md +0 -20
- package/src/components/project/selectorCompetitors/stories/items.ts +0 -30
- package/src/components/project/selectorCompetitors/types/competitor.ts +0 -7
- package/src/components/project/selectorRegion/composables/compare.ts +0 -87
- package/src/components/project/selectorRegion/composables/selectRegion.ts +0 -147
- package/src/components/project/selectorRegion/composables/selectSearcher.ts +0 -64
- package/src/components/project/selectorRegion/composables/selectorRegion.ts +0 -167
- package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue +0 -190
- package/src/components/project/selectorRegion/dialog_selectorRegions/style.css +0 -49
- package/src/components/project/selectorRegion/dialog_selectorRegions/types.ts +0 -31
- package/src/components/project/selectorRegion/selectorRegion.stories.ts +0 -85
- package/src/components/project/selectorRegion/selectorRegion.ts +0 -204
- package/src/components/project/selectorRegion/selectorRegion.vue +0 -335
- package/src/components/project/selectorRegion/stories/README.md +0 -36
- package/src/components/project/selectorRegion/stories/searchers.ts +0 -77
- package/src/components/project/selectorRegion/styles/searcherColors.css +0 -41
- package/src/components/project/selectorRegion/utils/consts.ts +0 -73
- package/src/components/project/selectorRegion/utils/utils.ts +0 -167
- package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue +0 -209
- package/src/components/project/tagSelector/popupListItem/types.ts +0 -40
- package/src/components/project/tagSelector/popupOpener/popupOpener.vue +0 -145
- package/src/components/project/tagSelector/popupOpener/types.ts +0 -71
- package/src/components/project/tagSelector/stories/README.md +0 -62
- package/src/components/project/tagSelector/stories/overview.vue +0 -152
- package/src/components/project/tagSelector/tagIcon/tagIcon.vue +0 -97
- package/src/components/project/tagSelector/tagIcon/types.ts +0 -25
- package/src/components/project/tagSelector/tagSelector.stories.ts +0 -51
- package/src/components/project/tagSelector/tagSelector.vue +0 -359
- package/src/components/project/tagSelector/tagsDefaults.ts +0 -54
- package/src/components/project/tagSelector/types.ts +0 -159
- package/src/components/project/tagSelector/utils/el.ts +0 -151
- package/src/components/project/tagSelector/utils/utils.ts +0 -30
- package/src/components/tabs/tabs/content.vue +0 -24
- package/src/components/tabs/tabs/stories/README.md +0 -12
- package/src/components/tabs/tabs/tab.vue +0 -49
- package/src/components/tabs/tabs/tabs.stories.ts +0 -171
- package/src/components/tabs/tabs/tabs.ts +0 -22
- package/src/components/tabs/tabs/tabs.vue +0 -64
- package/src/components/tabs/tabs.ts +0 -9
- package/src/components/tabsView/tabsView/menu.vue +0 -291
- package/src/components/tabsView/tabsView/menuDelimeter.vue +0 -26
- package/src/components/tabsView/tabsView/menuItem.vue +0 -125
- package/src/components/tabsView/tabsView/menuTitle.vue +0 -46
- package/src/components/tabsView/tabsView/store.ts +0 -60
- package/src/components/tabsView/tabsView/stories/README.md +0 -22
- package/src/components/tabsView/tabsView/tabsView.stories.ts +0 -170
- package/src/components/tabsView/tabsView/tabsView.ts +0 -118
- package/src/components/tabsView/tabsView/tabsView.vue +0 -120
- package/src/components/tabsView/tabsView/utils.ts +0 -27
- 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
- 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
- package/src/components/tabsView/tabsView.ts +0 -9
- package/src/components/types.ts +0 -3
- package/src/core/app.ts +0 -22
- package/src/core/core/core.mdx +0 -36
- package/src/core/core/core.ts +0 -287
- package/src/core/core/events/resize.ts +0 -47
- package/src/core/core/events.ts +0 -6
- package/src/core/core/jQuery.mdx +0 -41
- package/src/core/core/options.ts +0 -51
- package/src/core/core/preloaders.ts +0 -31
- package/src/core/core/state.ts +0 -61
- package/src/core/directives/data.mdx +0 -24
- package/src/core/directives/data.ts +0 -25
- package/src/core/directives/focus.mdx +0 -28
- package/src/core/directives/focus.ts +0 -73
- package/src/core/directives/scrollIntoView.mdx +0 -41
- package/src/core/directives/scrollIntoView.ts +0 -123
- package/src/core/directives/scrollShadow.mdx +0 -23
- package/src/core/directives/scrollShadow.ts +0 -27
- package/src/core/directives/sticky.mdx +0 -29
- package/src/core/directives/sticky.ts +0 -32
- package/src/core/directives/swimUp.mdx +0 -27
- package/src/core/directives/swimUp.ts +0 -95
- package/src/core/directives/tooltip.mdx +0 -13
- package/src/core/directives/tooltip.ts +0 -57
- package/src/core/icons/gallery.vue +0 -70
- package/src/core/icons/icons.mdx +0 -24
- package/src/core/icons/icons.stories.ts +0 -14
- package/src/core/plugins/core.ts +0 -131
- package/src/core/plugins/i18n.ts +0 -184
- package/src/core/plugins/piniaTPA.ts +0 -431
- package/src/core/plugins/plugins.mdx +0 -82
- package/src/core/styles/CSS Variables.stories.ts +0 -17
- package/src/core/styles/styles.mdx +0 -26
- package/src/core/theme/Variables.stories.ts +0 -16
- package/src/core/theme/theme.mdx +0 -117
- package/src/core/utils/References/Docs.mdx +0 -23
- package/src/core/utils/References/check/Docs.mdx +0 -15
- package/src/core/utils/References/check/functions/getDomainRegexp.mdx +0 -15
- package/src/core/utils/References/check/functions/isDomain.mdx +0 -21
- package/src/core/utils/References/check/functions/isEmail.mdx +0 -22
- package/src/core/utils/References/check/functions/isIp.mdx +0 -21
- package/src/core/utils/References/check/functions/validUrl.mdx +0 -22
- package/src/core/utils/References/clipboard/Docs.mdx +0 -11
- package/src/core/utils/References/clipboard/functions/setClipboard.mdx +0 -23
- package/src/core/utils/References/date/Docs.mdx +0 -17
- package/src/core/utils/References/date/functions/dateFormat.mdx +0 -28
- package/src/core/utils/References/date/functions/dateToString.mdx +0 -26
- package/src/core/utils/References/date/functions/dateUnformat.mdx +0 -22
- package/src/core/utils/References/date/functions/genDate.mdx +0 -26
- package/src/core/utils/References/date/functions/genDateMoscow.mdx +0 -22
- package/src/core/utils/References/date/functions/getDayOfWeek.mdx +0 -26
- package/src/core/utils/References/date/functions/stringToDate.mdx +0 -21
- package/src/core/utils/References/device/Docs.mdx +0 -21
- package/src/core/utils/References/device/functions/get$scroll.mdx +0 -15
- package/src/core/utils/References/device/functions/getCommandKeyLabel.mdx +0 -15
- package/src/core/utils/References/device/functions/getElsScroll.mdx +0 -15
- package/src/core/utils/References/device/functions/getOS.mdx +0 -17
- package/src/core/utils/References/device/functions/getOSAsync.mdx +0 -15
- package/src/core/utils/References/device/functions/getScrollTop.mdx +0 -15
- package/src/core/utils/References/device/functions/isApp.mdx +0 -15
- package/src/core/utils/References/device/functions/isMacOS.mdx +0 -15
- package/src/core/utils/References/device/functions/isMobile.mdx +0 -15
- package/src/core/utils/References/device/functions/isRetina.mdx +0 -15
- package/src/core/utils/References/device/functions/isSafari.mdx +0 -15
- package/src/core/utils/References/dom/Docs.mdx +0 -27
- package/src/core/utils/References/dom/functions/css.mdx +0 -24
- package/src/core/utils/References/dom/functions/genEl.mdx +0 -28
- package/src/core/utils/References/dom/functions/isVisible.mdx +0 -23
- package/src/core/utils/References/dom/functions/offset.mdx +0 -35
- package/src/core/utils/References/dom/functions/querySelectorAllArray.mdx +0 -22
- package/src/core/utils/References/dom/functions/querySelectorAllVisible.mdx +0 -22
- package/src/core/utils/References/dom/functions/querySelectorVisible.mdx +0 -22
- package/src/core/utils/References/dom/functions/querySelectorVisibleLast.mdx +0 -22
- package/src/core/utils/References/dom/functions/storage.mdx +0 -28
- package/src/core/utils/References/dom/functions/storageClear.mdx +0 -21
- package/src/core/utils/References/dom/functions/wrap.mdx +0 -22
- package/src/core/utils/References/dom/variables/default.mdx +0 -241
- package/src/core/utils/References/image/Docs.mdx +0 -12
- package/src/core/utils/References/image/functions/downloadImageFromString.mdx +0 -22
- package/src/core/utils/References/image/functions/genFaviconImgHtml.mdx +0 -22
- package/src/core/utils/References/keyboard/Docs.mdx +0 -11
- package/src/core/utils/References/keyboard/functions/invertKeyboardLayout.mdx +0 -21
- package/src/core/utils/References/lodash/Docs.mdx +0 -20
- package/src/core/utils/References/lodash/functions/cloneDeep.mdx +0 -29
- package/src/core/utils/References/lodash/functions/debounce.mdx +0 -76
- package/src/core/utils/References/lodash/functions/memoize.mdx +0 -26
- package/src/core/utils/References/lodash/functions/merge.mdx +0 -200
- package/src/core/utils/References/lodash/functions/throttle.mdx +0 -73
- package/src/core/utils/References/number/Docs.mdx +0 -11
- package/src/core/utils/References/number/functions/percentOfNumber.mdx +0 -26
- package/src/core/utils/References/price/Docs.mdx +0 -11
- package/src/core/utils/References/price/functions/genPrice.mdx +0 -28
- package/src/core/utils/References/route/Docs.mdx +0 -16
- package/src/core/utils/References/route/functions/delHash.mdx +0 -26
- package/src/core/utils/References/route/functions/genHash.mdx +0 -26
- package/src/core/utils/References/route/functions/getHash.mdx +0 -22
- package/src/core/utils/References/route/functions/historySetState.mdx +0 -31
- package/src/core/utils/References/route/functions/setHash.mdx +0 -26
- package/src/core/utils/References/route/functions/setHashs.mdx +0 -22
- package/src/core/utils/References/scroll/Docs.mdx +0 -14
- package/src/core/utils/References/scroll/functions/amountScrolled.mdx +0 -17
- package/src/core/utils/References/scroll/functions/connectScrollShadow.mdx +0 -28
- package/src/core/utils/References/scroll/functions/genHasScroll.mdx +0 -25
- package/src/core/utils/References/scroll/functions/getScrollPercent.mdx +0 -21
- package/src/core/utils/References/searchers/Docs.mdx +0 -19
- package/src/core/utils/References/searchers/functions/genVolumeLabel.mdx +0 -26
- package/src/core/utils/References/searchers/functions/getDeviceGIcon.mdx +0 -21
- package/src/core/utils/References/searchers/functions/getLangLabel.mdx +0 -22
- package/src/core/utils/References/searchers/functions/getSearcherGIcon.mdx +0 -21
- package/src/core/utils/References/searchers/functions/prepareVolumeType.mdx +0 -22
- package/src/core/utils/References/searchers/variables/searchersNames.mdx +0 -97
- package/src/core/utils/References/store/Docs.mdx +0 -18
- package/src/core/utils/References/store/functions/defineStore.mdx +0 -36
- package/src/core/utils/References/store/functions/useStore.mdx +0 -29
- package/src/core/utils/References/store/variables/plugin.mdx +0 -66
- package/src/core/utils/References/string/Docs.mdx +0 -26
- package/src/core/utils/References/string/functions/addCommasWhite.mdx +0 -21
- package/src/core/utils/References/string/functions/addLinkTags.mdx +0 -23
- package/src/core/utils/References/string/functions/camelToSnakeCase.mdx +0 -21
- package/src/core/utils/References/string/functions/ellipsis.mdx +0 -26
- package/src/core/utils/References/string/functions/genFlagLinkByCountryCode.mdx +0 -21
- package/src/core/utils/References/string/functions/genIntHash.mdx +0 -21
- package/src/core/utils/References/string/functions/getRandomHash.mdx +0 -21
- package/src/core/utils/References/string/functions/highlightHtml.mdx +0 -25
- package/src/core/utils/References/string/functions/htmlspecialchars.mdx +0 -21
- package/src/core/utils/References/string/functions/isUrl.mdx +0 -21
- package/src/core/utils/References/string/functions/nl2br.mdx +0 -21
- package/src/core/utils/References/string/functions/numberEnding.mdx +0 -28
- package/src/core/utils/References/string/functions/numberWithWord.mdx +0 -28
- package/src/core/utils/References/string/functions/rusToLatin.mdx +0 -21
- package/src/core/utils/References/string/functions/toCapitalize.mdx +0 -21
- package/src/core/utils/References/string/functions/toRoditPadej.mdx +0 -21
- package/src/core/utils/References/system/Docs.mdx +0 -13
- package/src/core/utils/References/system/functions/sleep.mdx +0 -21
- package/src/core/utils/References/system/functions/sleepWhile.mdx +0 -26
- package/src/core/utils/References/system/functions/waitWhile.mdx +0 -26
- package/src/core/utils/References/url/Docs.mdx +0 -17
- package/src/core/utils/References/url/functions/decode.mdx +0 -21
- package/src/core/utils/References/url/functions/encode.mdx +0 -21
- package/src/core/utils/References/url/functions/fromPuny.mdx +0 -23
- package/src/core/utils/References/url/functions/getHost.mdx +0 -21
- package/src/core/utils/References/url/functions/hostToLowerCase.mdx +0 -21
- package/src/core/utils/References/url/functions/normalize.mdx +0 -21
- package/src/core/utils/References/url/functions/toPuny.mdx +0 -23
- package/src/core/utils/check.ts +0 -88
- package/src/core/utils/clipboard.ts +0 -51
- package/src/core/utils/date.ts +0 -291
- package/src/core/utils/device.ts +0 -139
- package/src/core/utils/dom.ts +0 -182
- package/src/core/utils/image.ts +0 -46
- package/src/core/utils/keyboard.ts +0 -29
- package/src/core/utils/lodash.ts +0 -18
- package/src/core/utils/number.ts +0 -37
- package/src/core/utils/price.ts +0 -24
- package/src/core/utils/route.ts +0 -115
- package/src/core/utils/scroll.ts +0 -120
- package/src/core/utils/searchers.ts +0 -191
- package/src/core/utils/store/localStorage.ts +0 -56
- package/src/core/utils/store/plugin.ts +0 -50
- package/src/core/utils/store/store.ts +0 -77
- package/src/core/utils/store.ts +0 -7
- package/src/core/utils/string.ts +0 -317
- package/src/core/utils/system.ts +0 -72
- package/src/core/utils/url.ts +0 -138
- package/src/core/utils/utils.mdx +0 -6
- package/src/d.ts +0 -12
- package/src/icomoon.d.ts +0 -98
- package/src/resources/styles/core/components.css +0 -111
- package/src/resources/styles/core/core.ts +0 -11
- package/src/resources/styles/core/forms/clear.css +0 -20
- package/src/resources/styles/core/forms/controls.css +0 -20
- package/src/resources/styles/core/forms/focusable.css +0 -26
- package/src/resources/styles/core/forms/forms.css +0 -156
- package/src/resources/styles/core/icon.css +0 -58
- package/src/resources/styles/core/jquery.css +0 -1
- package/src/resources/styles/core/layout.css +0 -59
- package/src/resources/styles/core/modifiers/as.css +0 -9
- package/src/resources/styles/core/modifiers/ellipsis.css +0 -26
- package/src/resources/styles/core/modifiers/modifiers.css +0 -120
- package/src/resources/styles/core/modifiers/only.css +0 -19
- package/src/resources/styles/core/modifiers/scrollShadow.css +0 -50
- package/src/resources/styles/core/select.css +0 -15
- package/src/resources/styles/storybook.css +0 -11
- package/src/resources/styles/themes/dark/dark-layout.css +0 -47
- package/src/resources/styles/themes/dark/dark-positions.css +0 -66
- package/src/resources/styles/themes/dark/dark.css +0 -400
- package/src/resources/styles/themes/dark-positions.ts +0 -1
- package/src/resources/styles/themes/dark-th/dark-th-layout.css +0 -47
- package/src/resources/styles/themes/dark-th/dark-th-positions.css +0 -67
- package/src/resources/styles/themes/dark-th/dark-th.css +0 -400
- package/src/resources/styles/themes/dark-th-positions.ts +0 -1
- package/src/resources/styles/themes/dark-th.ts +0 -3
- package/src/resources/styles/themes/dark.ts +0 -3
- package/src/resources/styles/themes/light/light-layout.css +0 -47
- package/src/resources/styles/themes/light/light-positions.css +0 -66
- package/src/resources/styles/themes/light/light.css +0 -400
- package/src/resources/styles/themes/light-positions.ts +0 -1
- package/src/resources/styles/themes/light.ts +0 -3
- package/src/storybook/components/color.vue +0 -47
- package/src/storybook/components/cssVariables.vue +0 -195
- package/src/storybook/components/icomoon.ts +0 -40
- package/src/storybook/jquery.ts +0 -4
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/storybook-dev.sh +0 -14
- package/tsconfig.json +0 -91
- package/typedoc.json +0 -20
- package/vite.config.ts +0 -148
|
@@ -0,0 +1,986 @@
|
|
|
1
|
+
import { Core as _e } from "../core/app.js";
|
|
2
|
+
import { defineComponent as P, mergeModels as N, useModel as D, computed as E, createElementBlock as B, openBlock as k, createBlock as b, unref as y, withCtx as _, Fragment as Y, renderList as se, normalizeClass as X, createElementVNode as he, toDisplayString as K, createVNode as A, createTextVNode as G, toValue as de, ref as F, watch as w, createCommentVNode as q, isRef as ce, withModifiers as z, mergeProps as Se, withKeys as ge, nextTick as Be, resolveDirective as Ve, withDirectives as Ee, resolveDynamicComponent as Me, renderSlot as Ke, shallowRef as $e, createSlots as we, reactive as Le } from "vue";
|
|
3
|
+
import { u as R, C as J, c as H, o as re, d as Ae } from "../.chunks/forms-CRHjU2Mj.es.js";
|
|
4
|
+
import { _ as Ie, b as ue, a as Re } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-DFWY29DS.es.js";
|
|
5
|
+
import { _ as Oe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-Bm9sY3Ux.es.js";
|
|
6
|
+
import { u as Ne } from "../.chunks/utils-Bsv1-1_h.es.js";
|
|
7
|
+
import { getSearcherGIcon as De, getLangLabel as Fe, getDeviceGIcon as qe } from "../utils/searchers.js";
|
|
8
|
+
import { storage as W } from "../utils/dom.js";
|
|
9
|
+
import { TopPopupWorker as Pe } from "../popup/worker.js";
|
|
10
|
+
const be = ["../assets/project.css"].map((t) => import.meta.resolve(t));
|
|
11
|
+
_e.insertCSSLinkToPage(be, !0);
|
|
12
|
+
const Ue = { class: "top-selectorCompetitors" }, je = { class: "top-ellipsis1" }, yt = /* @__PURE__ */ P({
|
|
13
|
+
__name: "selectorCompetitors",
|
|
14
|
+
props: /* @__PURE__ */ N({
|
|
15
|
+
modelValue: {},
|
|
16
|
+
items: {},
|
|
17
|
+
showSelectAllItem: { type: Boolean, default: !0 }
|
|
18
|
+
}, {
|
|
19
|
+
modelValue: {},
|
|
20
|
+
modelModifiers: {}
|
|
21
|
+
}),
|
|
22
|
+
emits: ["update:modelValue"],
|
|
23
|
+
setup(t) {
|
|
24
|
+
const l = t, o = D(t, "modelValue"), e = E(() => {
|
|
25
|
+
if (l.showSelectAllItem)
|
|
26
|
+
return {
|
|
27
|
+
icon: "",
|
|
28
|
+
title: R().Common.Select_all,
|
|
29
|
+
value: "all",
|
|
30
|
+
content: ""
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
return (i, a) => (k(), B("div", Ue, [
|
|
34
|
+
y(J).state.isMobile ? (k(), b(Ie, { key: 0 }, {
|
|
35
|
+
opener: _(() => [
|
|
36
|
+
A(H, {
|
|
37
|
+
class: "top-selectorCompetitors_opener",
|
|
38
|
+
color: "theme",
|
|
39
|
+
icon: "",
|
|
40
|
+
icon2: ""
|
|
41
|
+
}, {
|
|
42
|
+
default: _(() => {
|
|
43
|
+
var n;
|
|
44
|
+
return [
|
|
45
|
+
G(K((n = i.items.find((u) => {
|
|
46
|
+
var f;
|
|
47
|
+
return u.value === ((f = o.value) == null ? void 0 : f[0]);
|
|
48
|
+
})) == null ? void 0 : n.content), 1)
|
|
49
|
+
];
|
|
50
|
+
}),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]),
|
|
54
|
+
contentList: _(() => [
|
|
55
|
+
(k(!0), B(Y, null, se(i.items, (n) => {
|
|
56
|
+
var u;
|
|
57
|
+
return k(), b(ue, {
|
|
58
|
+
class: X({
|
|
59
|
+
"top-active": (u = o.value) == null ? void 0 : u.includes(n.value)
|
|
60
|
+
}),
|
|
61
|
+
"data-top-icon": n.icon,
|
|
62
|
+
title: n.title,
|
|
63
|
+
onClick: () => o.value = [n.value]
|
|
64
|
+
}, {
|
|
65
|
+
default: _(() => [
|
|
66
|
+
he("span", je, K(n.content), 1)
|
|
67
|
+
]),
|
|
68
|
+
_: 2
|
|
69
|
+
}, 1032, ["class", "data-top-icon", "title", "onClick"]);
|
|
70
|
+
}), 256))
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})) : (k(), b(Oe, {
|
|
74
|
+
key: 1,
|
|
75
|
+
modelValue: o.value,
|
|
76
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => o.value = n),
|
|
77
|
+
items: i.items,
|
|
78
|
+
isMultiple: !0,
|
|
79
|
+
styling: "bar",
|
|
80
|
+
canBeEmptyMultiple: !1,
|
|
81
|
+
selectAllItem: e.value
|
|
82
|
+
}, null, 8, ["modelValue", "items", "selectAllItem"]))
|
|
83
|
+
]));
|
|
84
|
+
}
|
|
85
|
+
}), pt = (t, l) => E(() => de(t).filter((i) => i.on >= 0 || i.id === l).map((i) => ({
|
|
86
|
+
value: i.id,
|
|
87
|
+
title: i.url + ` [${i.id}]`,
|
|
88
|
+
icon: i.id === de(l) ? "" : "",
|
|
89
|
+
content: i.name
|
|
90
|
+
}))), M = -1, p = -2, te = -1, ze = {
|
|
91
|
+
0: "Yandex",
|
|
92
|
+
1: "Google",
|
|
93
|
+
4: "YouTube",
|
|
94
|
+
5: "Bing",
|
|
95
|
+
7: "Seznam",
|
|
96
|
+
8: "AppStore",
|
|
97
|
+
9: "GoogleStore",
|
|
98
|
+
20: "Yandex.com",
|
|
99
|
+
21: "Yandex.com.tr"
|
|
100
|
+
}, me = {
|
|
101
|
+
key: p,
|
|
102
|
+
name: "--",
|
|
103
|
+
index: p
|
|
104
|
+
}, xe = {
|
|
105
|
+
key: p,
|
|
106
|
+
name: "--",
|
|
107
|
+
regions: [me],
|
|
108
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, me]])
|
|
109
|
+
}, ae = {
|
|
110
|
+
key: p,
|
|
111
|
+
name: "Autoselect",
|
|
112
|
+
index: p
|
|
113
|
+
}, oe = {
|
|
114
|
+
key: p,
|
|
115
|
+
name: "Autoselect",
|
|
116
|
+
regions: [ae],
|
|
117
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, ae]])
|
|
118
|
+
}, fe = {
|
|
119
|
+
countryCode: "00",
|
|
120
|
+
depth: 1,
|
|
121
|
+
device: 0,
|
|
122
|
+
key: te,
|
|
123
|
+
index: te,
|
|
124
|
+
lang: "ru",
|
|
125
|
+
name: "Without region"
|
|
126
|
+
}, Je = () => (ae.name = R().Common.Autoselect, ae), Ge = () => (Je(), oe.name = R().Common.Autoselect, console.log(oe), oe), We = () => (fe.name = R().Keywords.Without_region, fe), ke = (t = !1, l = !1, o = []) => {
|
|
127
|
+
let e;
|
|
128
|
+
return t ? e = Ye(o) : e = Ce(o), l && e.set(p, Ge()), e.size || e.set(p, xe), e;
|
|
129
|
+
}, Ce = (t, l = !0, o = [], e = !1) => {
|
|
130
|
+
const i = /* @__PURE__ */ new Map();
|
|
131
|
+
return t.forEach((a) => {
|
|
132
|
+
if (!a.enabled || e && typeof a.key == "number" && a.key > 1) return;
|
|
133
|
+
const n = { ...a };
|
|
134
|
+
n.regionByIndex = /* @__PURE__ */ new Map(), a.regions && a.regions.forEach((u) => {
|
|
135
|
+
if (l && !u.enabled) return;
|
|
136
|
+
const f = { ...u };
|
|
137
|
+
n.regionByIndex.set(f.index, f);
|
|
138
|
+
}), !n.regionByIndex.size && o.length, // режим вывода ПС без регионов
|
|
139
|
+
(!a.regions || // есть включенные регионы
|
|
140
|
+
n.regionByIndex.size || // запрошен вывод конкретных ПС
|
|
141
|
+
o.length) && typeof n.key == "number" && i.set(n.key, n);
|
|
142
|
+
}), o.forEach((a) => {
|
|
143
|
+
if (i.has(a)) return;
|
|
144
|
+
const n = {
|
|
145
|
+
key: a,
|
|
146
|
+
name: ze[a],
|
|
147
|
+
regions: [],
|
|
148
|
+
regionByIndex: /* @__PURE__ */ new Map()
|
|
149
|
+
};
|
|
150
|
+
i.set(n.key, n);
|
|
151
|
+
}), i;
|
|
152
|
+
}, Ye = (t) => {
|
|
153
|
+
const l = Ce(t, !1, [0, 1], !0);
|
|
154
|
+
if (l.has(2)) {
|
|
155
|
+
const o = l.get(2);
|
|
156
|
+
o && (o.regionByIndex = /* @__PURE__ */ new Map());
|
|
157
|
+
}
|
|
158
|
+
return l.forEach((o) => {
|
|
159
|
+
if (!o.regionByIndex) return;
|
|
160
|
+
const e = { ...We() };
|
|
161
|
+
o.regionByIndex.set(e.index, e);
|
|
162
|
+
}), l;
|
|
163
|
+
}, He = (t, l, o = []) => {
|
|
164
|
+
const e = ke(t, !1, o);
|
|
165
|
+
let i;
|
|
166
|
+
return e.forEach((a) => {
|
|
167
|
+
if (!(l.searcher_key !== void 0 && l.searcher_key != a.key) && a.regions && (a.regions.forEach((n) => {
|
|
168
|
+
if (!i && !(l.key !== void 0 && l.key != n.key) && !(l.index !== void 0 && l.index != n.index) && !(!t && (l.lang !== void 0 && l.lang != n.lang || l.device !== void 0 && l.device != n.device)))
|
|
169
|
+
return n.searcher_key = a.key, i = n, !1;
|
|
170
|
+
}), i))
|
|
171
|
+
return !1;
|
|
172
|
+
}), i;
|
|
173
|
+
}, Qe = Ne(() => import("../.chunks/dialog_selectorRegions-D1ord0Ik.es.js")), Xe = (t, l) => {
|
|
174
|
+
const o = R(), e = F(l.value.keys().next().value ?? p), i = E(() => {
|
|
175
|
+
const a = /* @__PURE__ */ new Map();
|
|
176
|
+
if (l.value.forEach((n) => {
|
|
177
|
+
let u = {
|
|
178
|
+
value: n.key,
|
|
179
|
+
title: n.name
|
|
180
|
+
};
|
|
181
|
+
t.addSearcherIcon && (u.icon = De(n.key)), a.set(n.key, u);
|
|
182
|
+
}), t.addCompare && !a.has(p)) {
|
|
183
|
+
const n = {
|
|
184
|
+
value: "",
|
|
185
|
+
title: "--------------------",
|
|
186
|
+
disabled: !0
|
|
187
|
+
};
|
|
188
|
+
a.set(n.value, n);
|
|
189
|
+
const u = {
|
|
190
|
+
value: M,
|
|
191
|
+
title: o.Common.Compare
|
|
192
|
+
};
|
|
193
|
+
a.set(u.value, u);
|
|
194
|
+
}
|
|
195
|
+
return a;
|
|
196
|
+
});
|
|
197
|
+
return {
|
|
198
|
+
searcherKey: e,
|
|
199
|
+
optionBySearcherKey: i
|
|
200
|
+
};
|
|
201
|
+
}, Ze = (t, l) => {
|
|
202
|
+
var a, n, u;
|
|
203
|
+
const o = R(), e = F(p);
|
|
204
|
+
t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value === p && (t.forFrequency ? e.value = ((n = (a = l.value) == null ? void 0 : a.regionByIndex.values().next().value) == null ? void 0 : n.key) ?? p : e.value = ((u = l.value) == null ? void 0 : u.regionByIndex.keys().next().value) ?? p);
|
|
205
|
+
const i = E(() => {
|
|
206
|
+
var h;
|
|
207
|
+
const f = /* @__PURE__ */ new Map();
|
|
208
|
+
return (h = l.value.regionByIndex) == null || h.forEach((S) => {
|
|
209
|
+
let r = S.name;
|
|
210
|
+
if (t.forFrequency) {
|
|
211
|
+
const x = {
|
|
212
|
+
value: S.key,
|
|
213
|
+
title: r
|
|
214
|
+
};
|
|
215
|
+
f.has(S.key) || f.set(S.key, x);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
S.device && (r += " (" + o.Common["Device_" + S.device] + ")");
|
|
219
|
+
const g = Fe(l.value.key || 0, S.lang ?? "");
|
|
220
|
+
g && (r += " / " + g);
|
|
221
|
+
const d = {
|
|
222
|
+
value: S.index,
|
|
223
|
+
title: r,
|
|
224
|
+
icon: S.device ? qe(S.device) : void 0
|
|
225
|
+
};
|
|
226
|
+
f.set(S.index, d);
|
|
227
|
+
}), f;
|
|
228
|
+
});
|
|
229
|
+
return w(i, (f, h) => {
|
|
230
|
+
var d;
|
|
231
|
+
if (t.onlySearcher || e.value !== void 0 && f.get(e.value))
|
|
232
|
+
return;
|
|
233
|
+
let S = f.keys().next().value;
|
|
234
|
+
if (e.value === p || S === p) {
|
|
235
|
+
e.value = S;
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
let r = ((d = h == null ? void 0 : h.get(e.value)) == null ? void 0 : d.title) || "", g = -1;
|
|
239
|
+
for (const [x, T] of f.entries()) {
|
|
240
|
+
const C = T.title;
|
|
241
|
+
if (typeof C != "string" || typeof x == "string")
|
|
242
|
+
break;
|
|
243
|
+
if (C === r) {
|
|
244
|
+
S = x;
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
const V = new RegExp(` \\((${o.Common.Device_1}|${o.Common.Device_2})\\)`);
|
|
248
|
+
let m = r, s = 3;
|
|
249
|
+
C.indexOf(m) === -1 && (m = r.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(m) === -1 && (m = r.replace(/ \/.*/, ""), s--), C.indexOf(m) === -1 && (m = r.replace(/ \/.*/, ""), m = m.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(m) !== -1 && (s <= g || (g = s, S = x));
|
|
250
|
+
}
|
|
251
|
+
e.value = S;
|
|
252
|
+
}), {
|
|
253
|
+
regionIndex: e,
|
|
254
|
+
optionByRegionIndex: i
|
|
255
|
+
};
|
|
256
|
+
}, et = (t, l, o) => {
|
|
257
|
+
const e = F([]), i = () => {
|
|
258
|
+
if (t.onlySearcher && l.value) {
|
|
259
|
+
e.value = Array.from(l.value.keys());
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
let n = [];
|
|
263
|
+
if (t.modelValue.length > 1)
|
|
264
|
+
n = [...t.modelValue];
|
|
265
|
+
else
|
|
266
|
+
try {
|
|
267
|
+
n = JSON.parse(
|
|
268
|
+
localStorage.getItem("ui:project:regionSelector" + t.projectId + ":regionsIndexes")
|
|
269
|
+
) ?? [];
|
|
270
|
+
} catch {
|
|
271
|
+
}
|
|
272
|
+
n.length && (n = n.filter((u) => o.value.has(u))), n.length || (n = Array.from(o.value)), e.value = [...n];
|
|
273
|
+
}, a = () => {
|
|
274
|
+
e.value.length ? localStorage.setItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes", JSON.stringify(e.value)) : localStorage.removeItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes");
|
|
275
|
+
};
|
|
276
|
+
return w(e, () => {
|
|
277
|
+
a();
|
|
278
|
+
}), t.addCompare && i(), {
|
|
279
|
+
regionsIndexes: e
|
|
280
|
+
};
|
|
281
|
+
}, tt = (t) => {
|
|
282
|
+
const l = E(() => ke(t.forFrequency, t.autoRegion, t.searchers)), o = E(() => l.value.get(i.searcherKey.value) || xe), e = E(() => {
|
|
283
|
+
const r = /* @__PURE__ */ new Set();
|
|
284
|
+
return l.value.forEach((g) => {
|
|
285
|
+
g.regionByIndex.forEach((d) => {
|
|
286
|
+
d.index !== te && d.index !== p && r.add(d.index);
|
|
287
|
+
});
|
|
288
|
+
}), r;
|
|
289
|
+
}), i = Xe(t, l), a = Ze(t, o), n = et(t, l, e);
|
|
290
|
+
w(l, () => {
|
|
291
|
+
var g, d, x, T;
|
|
292
|
+
if (t.onlySearcher ? n.regionsIndexes.value = Array.from(l.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((C) => e.value.has(C)), i.searcherKey.value === M) return;
|
|
293
|
+
let r = l.value.keys().next().value;
|
|
294
|
+
l.value.forEach((C) => {
|
|
295
|
+
var V, m, s;
|
|
296
|
+
if (t.onlySearcher && C.key === i.searcherKey.value) {
|
|
297
|
+
r = i.searcherKey.value;
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
if (a.regionIndex.value && ((V = C.regionByIndex) != null && V.has(a.regionIndex.value)) && (r = C.key), !t.onlySearcher) {
|
|
301
|
+
let c;
|
|
302
|
+
r !== void 0 && (c = (m = l.value.get(r)) == null ? void 0 : m.regionByIndex);
|
|
303
|
+
const v = (s = l.value.get(C.key)) == null ? void 0 : s.regionByIndex;
|
|
304
|
+
c != null && c.has(p) && !(v != null && v.has(p)) && (r = C.key);
|
|
305
|
+
}
|
|
306
|
+
}), r !== void 0 && (i.searcherKey.value = r), a.regionIndex.value !== void 0 && !((d = (g = o.value) == null ? void 0 : g.regionByIndex) != null && d.has(a.regionIndex.value)) && (a.regionIndex.value = (T = (x = o.value) == null ? void 0 : x.regions) == null ? void 0 : T.keys().next().value);
|
|
307
|
+
}, { immediate: !0 });
|
|
308
|
+
const u = () => {
|
|
309
|
+
if (!(i.searcherKey.value === M || i.searcherKey.value === p))
|
|
310
|
+
return i.searcherKey.value;
|
|
311
|
+
}, f = () => {
|
|
312
|
+
if (t.onlySearcher || a.regionIndex.value === p) return;
|
|
313
|
+
let r = a.regionIndex.value;
|
|
314
|
+
if (t.forFrequency) {
|
|
315
|
+
const g = a.regionIndex.value, d = He(t.forFrequency, { searcher_key: u(), key: g }, t.searchers);
|
|
316
|
+
r = d == null ? void 0 : d.index;
|
|
317
|
+
}
|
|
318
|
+
return r;
|
|
319
|
+
}, h = () => {
|
|
320
|
+
const r = u();
|
|
321
|
+
if (r !== void 0)
|
|
322
|
+
return l.value.get(r);
|
|
323
|
+
};
|
|
324
|
+
return {
|
|
325
|
+
selectSearcher: i,
|
|
326
|
+
selectRegion: a,
|
|
327
|
+
compare: n,
|
|
328
|
+
searcherByKey: l,
|
|
329
|
+
allRegionsIndexes: e,
|
|
330
|
+
getSearcher: h,
|
|
331
|
+
getRegion: () => {
|
|
332
|
+
var g, d;
|
|
333
|
+
const r = f();
|
|
334
|
+
if (r !== void 0)
|
|
335
|
+
return (d = (g = h()) == null ? void 0 : g.regionByIndex) == null ? void 0 : d.get(r);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}, ht = /* @__PURE__ */ P({
|
|
339
|
+
__name: "selectorRegion",
|
|
340
|
+
props: /* @__PURE__ */ N({
|
|
341
|
+
projectId: {},
|
|
342
|
+
searchers: { default: () => [] },
|
|
343
|
+
modelValue: {},
|
|
344
|
+
modelValueSingle: {},
|
|
345
|
+
addCompare: { type: Boolean },
|
|
346
|
+
forFrequency: { type: Boolean },
|
|
347
|
+
autoRegion: { type: Boolean },
|
|
348
|
+
onlySearcher: { type: Boolean },
|
|
349
|
+
addChanger: { type: Boolean, default: !0 },
|
|
350
|
+
addSearcherIcon: { type: Boolean, default: !0 },
|
|
351
|
+
addRegionIcon: { type: Boolean, default: !0 }
|
|
352
|
+
}, {
|
|
353
|
+
modelValue: { required: !0 },
|
|
354
|
+
modelModifiers: {},
|
|
355
|
+
modelValueSingle: {},
|
|
356
|
+
modelValueSingleModifiers: {}
|
|
357
|
+
}),
|
|
358
|
+
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
359
|
+
setup(t, { expose: l }) {
|
|
360
|
+
const o = t, e = D(t, "modelValue"), i = D(t, "modelValueSingle"), {
|
|
361
|
+
selectSearcher: a,
|
|
362
|
+
selectRegion: n,
|
|
363
|
+
compare: u,
|
|
364
|
+
searcherByKey: f,
|
|
365
|
+
allRegionsIndexes: h,
|
|
366
|
+
getSearcher: S,
|
|
367
|
+
getRegion: r
|
|
368
|
+
} = tt(o), g = () => {
|
|
369
|
+
const d = [];
|
|
370
|
+
f.value.forEach((x) => {
|
|
371
|
+
x.enabled && x.regions.forEach((T) => {
|
|
372
|
+
T.enabled && d.push(T);
|
|
373
|
+
});
|
|
374
|
+
}), Qe.open("selectorRegions", {
|
|
375
|
+
regions: d,
|
|
376
|
+
regionsIndexes: u.regionsIndexes.value,
|
|
377
|
+
"@update:regionsIndexes": (x) => u.regionsIndexes.value = x
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
return w([n.regionIndex, a.searcherKey, u.regionsIndexes], () => {
|
|
381
|
+
if (a.searcherKey.value === M && u.regionsIndexes.value.length) {
|
|
382
|
+
if (JSON.stringify(e.value) === JSON.stringify(u.regionsIndexes.value))
|
|
383
|
+
return;
|
|
384
|
+
e.value = [...u.regionsIndexes.value];
|
|
385
|
+
} else
|
|
386
|
+
o.onlySearcher ? (e.value = [a.searcherKey.value], a.searcherKey.value === p && !o.autoRegion && (e.value.length = 0)) : (e.value = [n.regionIndex.value], n.regionIndex.value === p && !o.autoRegion && (e.value.length = 0));
|
|
387
|
+
!o.onlySearcher && !h.value.size && (a.searcherKey.value = p);
|
|
388
|
+
}), i.value && w(i, () => {
|
|
389
|
+
i.value && (e.value = [i.value]);
|
|
390
|
+
}, { immediate: !0 }), w(e, () => {
|
|
391
|
+
var d, x, T, C, V;
|
|
392
|
+
if (e.value[0] && (i.value = e.value[0]), o.onlySearcher) {
|
|
393
|
+
if (!e.value.length || e.value.length === 1 && !f.value.has(e.value[0]) || e.value.length === 1 && e.value[0] === p && !o.autoRegion) {
|
|
394
|
+
let m = f.value.keys().next().value;
|
|
395
|
+
m === p && !o.autoRegion && (m = void 0, i.value = p), m !== void 0 ? e.value = [m] : e.value.length = 0;
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
if (e.value.length > 1 && JSON.stringify(e.value) !== JSON.stringify(u.regionsIndexes.value)) {
|
|
399
|
+
e.value = [...u.regionsIndexes.value];
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
} else {
|
|
403
|
+
let m = [...new Set(e.value)], s = (x = (d = f.value.values().next().value) == null ? void 0 : d.regionByIndex) == null ? void 0 : x.keys().next().value;
|
|
404
|
+
if (o.forFrequency && (s = (V = (C = (T = f.value.values().next().value) == null ? void 0 : T.regionByIndex) == null ? void 0 : C.values().next().value) == null ? void 0 : V.key), s === p && !o.autoRegion && (s = void 0, i.value = p), !m.length)
|
|
405
|
+
s !== void 0 && m.push(s);
|
|
406
|
+
else if (m.length === 1) {
|
|
407
|
+
let c = h.value;
|
|
408
|
+
o.forFrequency && (c = /* @__PURE__ */ new Set(), f.value.forEach((v) => {
|
|
409
|
+
v.regionByIndex.forEach((I) => {
|
|
410
|
+
I.index !== te && I.index !== p && c.add(I.key);
|
|
411
|
+
});
|
|
412
|
+
})), c.has(m[0]) || (m = [], s !== void 0 && m.push(s));
|
|
413
|
+
} else
|
|
414
|
+
m = m.filter((c) => h.value.has(c)), !m.length && s !== void 0 && m.push(s);
|
|
415
|
+
if (JSON.stringify(e.value) !== JSON.stringify(m)) {
|
|
416
|
+
e.value = m;
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if (!(e.value.length === 1 && e.value[0] === (o.onlySearcher ? a.searcherKey.value : n.regionIndex.value)))
|
|
421
|
+
if (o.onlySearcher) {
|
|
422
|
+
if (e.value.length === 1) {
|
|
423
|
+
a.searcherKey.value = e.value[0];
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
a.searcherKey.value = M;
|
|
427
|
+
return;
|
|
428
|
+
} else {
|
|
429
|
+
if (!e.value.length)
|
|
430
|
+
return;
|
|
431
|
+
if (e.value.length === 1 && a.searcherKey.value !== M) {
|
|
432
|
+
n.regionIndex.value = e.value[0];
|
|
433
|
+
let m;
|
|
434
|
+
for (const s of f.value.values()) {
|
|
435
|
+
for (const c of s.regionByIndex.values())
|
|
436
|
+
if ((o.forFrequency ? c.key : c.index) === n.regionIndex.value) {
|
|
437
|
+
m = s.key;
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
if (m !== void 0)
|
|
441
|
+
break;
|
|
442
|
+
}
|
|
443
|
+
m !== void 0 && (a.searcherKey.value = m);
|
|
444
|
+
} else
|
|
445
|
+
a.searcherKey.value = M, u.regionsIndexes.value = [...e.value];
|
|
446
|
+
}
|
|
447
|
+
}, { immediate: !0 }), l({
|
|
448
|
+
getSearcher: S,
|
|
449
|
+
getRegion: r
|
|
450
|
+
}), (d, x) => (k(), B("div", {
|
|
451
|
+
class: X({
|
|
452
|
+
"top-selectorRegion": !0,
|
|
453
|
+
"top-selectorRegion-onlySearcher": d.onlySearcher
|
|
454
|
+
})
|
|
455
|
+
}, [
|
|
456
|
+
A(re, {
|
|
457
|
+
options: y(a).optionBySearcherKey.value,
|
|
458
|
+
modelValue: y(a).searcherKey.value,
|
|
459
|
+
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(a).searcherKey.value = T),
|
|
460
|
+
name: "searcher_key",
|
|
461
|
+
addChanger: d.addChanger
|
|
462
|
+
}, null, 8, ["options", "modelValue", "addChanger"]),
|
|
463
|
+
!d.onlySearcher && y(a).searcherKey.value !== y(M) ? (k(), b(re, {
|
|
464
|
+
key: 0,
|
|
465
|
+
class: "top-select-region",
|
|
466
|
+
options: y(n).optionByRegionIndex.value,
|
|
467
|
+
modelValue: y(n).regionIndex.value,
|
|
468
|
+
"onUpdate:modelValue": x[1] || (x[1] = (T) => y(n).regionIndex.value = T),
|
|
469
|
+
name: d.forFrequency ? "region_key" : "region_index",
|
|
470
|
+
addChanger: d.addChanger,
|
|
471
|
+
"data-top-icon": d.addRegionIcon ? "" : void 0
|
|
472
|
+
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : q("", !0),
|
|
473
|
+
d.addCompare && !d.onlySearcher && y(a).searcherKey.value === y(M) ? (k(), b(H, {
|
|
474
|
+
key: 1,
|
|
475
|
+
name: "compare",
|
|
476
|
+
onClick: g,
|
|
477
|
+
"data-count-compare-regions-indexes": y(u).regionsIndexes.value.length
|
|
478
|
+
}, {
|
|
479
|
+
default: _(() => [
|
|
480
|
+
G(K(d.$i18n.Common.Selected_regions), 1)
|
|
481
|
+
]),
|
|
482
|
+
_: 1
|
|
483
|
+
}, 8, ["data-count-compare-regions-indexes"])) : q("", !0)
|
|
484
|
+
], 2));
|
|
485
|
+
}
|
|
486
|
+
}), ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t, le = (t, l) => {
|
|
487
|
+
t = Q(t);
|
|
488
|
+
const o = l.find((e) => e.id === t);
|
|
489
|
+
if (o)
|
|
490
|
+
return o;
|
|
491
|
+
}, St = (t, l, o) => {
|
|
492
|
+
l || (l = { id: t.id }), l.id = t.id;
|
|
493
|
+
const e = Pe.genElPopupOpener("div", l);
|
|
494
|
+
return e.classList.add("top-tagSelector"), t.useTopButton && e.classList.add("top-button", "top-color_theme"), t.mode === "filter" && e.classList.add("top-tagSelector-filter"), t.mode === "setter" && !t.filters && e.classList.add("top-tagSelector-setter_single"), t.mode === "setter" && t.filters && e.classList.add("top-tagSelector-setter_several"), e.onclick = (i) => {
|
|
495
|
+
i.preventDefault(), i.stopPropagation(), e.onclick = null;
|
|
496
|
+
const a = F(t.modelValue), n = {
|
|
497
|
+
model: a,
|
|
498
|
+
mode: t.mode,
|
|
499
|
+
targetId: t.targetId,
|
|
500
|
+
filters: t.filters,
|
|
501
|
+
payload: t.payload
|
|
502
|
+
};
|
|
503
|
+
W(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ce(t.modelValue) || w(a, () => {
|
|
504
|
+
t.modelValue = a.value, ee(e, t, o);
|
|
505
|
+
}), e.click();
|
|
506
|
+
}, ce(t.modelValue) ? w(t.modelValue, () => ee(e, t, o)) : W(e, "topTagSelectorRender", (i) => {
|
|
507
|
+
t.modelValue = i;
|
|
508
|
+
const a = W(e, "topTagSelectorTarget");
|
|
509
|
+
a && (a.model.value = i), ee(e, t, o);
|
|
510
|
+
}), ee(e, t, o), e;
|
|
511
|
+
}, It = (t, l) => {
|
|
512
|
+
var o;
|
|
513
|
+
(o = W(t, "topTagSelectorRender")) == null || o(l);
|
|
514
|
+
}, ee = (t, l, o) => {
|
|
515
|
+
var i;
|
|
516
|
+
const e = y(l.modelValue);
|
|
517
|
+
if (t.classList.toggle("top-tagSelector-selectedOne", !e.length || e.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", e.length > 5), l.mode === "setter" && l.filters) {
|
|
518
|
+
t.innerHTML = `<div>${o}</div>`;
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
if (t.innerHTML = "", !e.length && l.mode === "filter") {
|
|
522
|
+
const a = ye({
|
|
523
|
+
id: "all",
|
|
524
|
+
colorId: "",
|
|
525
|
+
name: ((i = R().Common) == null ? void 0 : i.All_tags) ?? "",
|
|
526
|
+
state: ""
|
|
527
|
+
});
|
|
528
|
+
t.append(a);
|
|
529
|
+
}
|
|
530
|
+
e.forEach((a) => {
|
|
531
|
+
var u, f;
|
|
532
|
+
const n = ye({
|
|
533
|
+
id: Q(a),
|
|
534
|
+
colorId: ((u = le(a, l.tags)) == null ? void 0 : u.color_id) ?? "",
|
|
535
|
+
name: ((f = le(a, l.tags)) == null ? void 0 : f.name) ?? "",
|
|
536
|
+
state: Q(a) === a ? "selected" : "excluded"
|
|
537
|
+
});
|
|
538
|
+
t.append(n);
|
|
539
|
+
});
|
|
540
|
+
}, ye = (t) => {
|
|
541
|
+
const l = document.createElement("div");
|
|
542
|
+
return l.classList.add("top-tagSelector_tagIcon"), l.classList.toggle("top-tagSelector-active", !!t.state), l.classList.toggle("top-tagSelector-excluded", t.state === "excluded"), l.dataset.tag_id = t.id, l.dataset.tag_color_id = t.colorId, l.title = t.name, l;
|
|
543
|
+
}, at = [
|
|
544
|
+
{
|
|
545
|
+
id: "1",
|
|
546
|
+
name: "Without Tag",
|
|
547
|
+
color_id: "1"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
id: "2",
|
|
551
|
+
name: "Red",
|
|
552
|
+
color_id: "2"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
id: "3",
|
|
556
|
+
name: "Orange",
|
|
557
|
+
color_id: "3"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
id: "4",
|
|
561
|
+
name: "Yellow",
|
|
562
|
+
color_id: "4"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
id: "5",
|
|
566
|
+
name: "Blue",
|
|
567
|
+
color_id: "5"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
id: "6",
|
|
571
|
+
name: "Purple",
|
|
572
|
+
color_id: "6"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
id: "7",
|
|
576
|
+
name: "Green",
|
|
577
|
+
color_id: "7"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
id: "8",
|
|
581
|
+
name: "Magenta",
|
|
582
|
+
color_id: "8"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
id: "9",
|
|
586
|
+
name: "Dark blue",
|
|
587
|
+
color_id: "9"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
id: "10",
|
|
591
|
+
name: "Turquoise",
|
|
592
|
+
color_id: "10"
|
|
593
|
+
}
|
|
594
|
+
], lt = ["data-tag_id", "data-tag_color_id", "title"], ie = /* @__PURE__ */ P({
|
|
595
|
+
__name: "tagIcon",
|
|
596
|
+
props: {
|
|
597
|
+
id: {},
|
|
598
|
+
colorId: {},
|
|
599
|
+
name: {},
|
|
600
|
+
state: {}
|
|
601
|
+
},
|
|
602
|
+
setup(t) {
|
|
603
|
+
return (l, o) => (k(), B("div", {
|
|
604
|
+
class: X({
|
|
605
|
+
"top-tagSelector_tagIcon": !0,
|
|
606
|
+
"top-tagSelector-active": !!l.state,
|
|
607
|
+
"top-tagSelector-excluded": l.state === "excluded"
|
|
608
|
+
}),
|
|
609
|
+
"data-tag_id": l.id,
|
|
610
|
+
"data-tag_color_id": l.colorId,
|
|
611
|
+
title: l.name
|
|
612
|
+
}, null, 10, lt));
|
|
613
|
+
}
|
|
614
|
+
}), nt = ["contenteditable", "onKeydown"], pe = /* @__PURE__ */ P({
|
|
615
|
+
__name: "tagPopupListItem",
|
|
616
|
+
props: /* @__PURE__ */ N({
|
|
617
|
+
editable: { type: Boolean },
|
|
618
|
+
disabled: { type: Boolean },
|
|
619
|
+
canExclude: { type: Boolean },
|
|
620
|
+
id: {},
|
|
621
|
+
colorId: {},
|
|
622
|
+
name: {},
|
|
623
|
+
state: {}
|
|
624
|
+
}, {
|
|
625
|
+
name: {
|
|
626
|
+
required: !0
|
|
627
|
+
},
|
|
628
|
+
nameModifiers: {}
|
|
629
|
+
}),
|
|
630
|
+
emits: /* @__PURE__ */ N(["update:name", "unselect", "exclude", "select"], ["update:name"]),
|
|
631
|
+
setup(t, { emit: l }) {
|
|
632
|
+
const o = t, e = l, i = D(t, "name"), a = F(null), n = E(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
|
|
633
|
+
contenteditable: u.value,
|
|
634
|
+
onpaste: (g) => g.preventDefault()
|
|
635
|
+
} : {}), u = F(!1), f = async () => {
|
|
636
|
+
var g;
|
|
637
|
+
u.value = !0, await Be(), (g = a.value) == null || g.focus();
|
|
638
|
+
}, h = () => {
|
|
639
|
+
var d;
|
|
640
|
+
const g = (d = a.value) == null ? void 0 : d.innerText;
|
|
641
|
+
if (!g) return S();
|
|
642
|
+
a.value && (a.value.innerText = g), u.value = !1, e("update:name", g);
|
|
643
|
+
}, S = async () => {
|
|
644
|
+
a.value && (a.value.innerText = o.name), u.value = !1;
|
|
645
|
+
}, r = (g) => {
|
|
646
|
+
if (u.value || o.disabled) return;
|
|
647
|
+
let d = "selected";
|
|
648
|
+
o.canExclude && (g.ctrlKey || g.metaKey) && (d = "excluded"), o.state == d && (d = ""), d === "" && e("unselect"), d === "selected" && e("select"), d === "excluded" && e("exclude");
|
|
649
|
+
};
|
|
650
|
+
return (g, d) => (k(), b(ue, {
|
|
651
|
+
class: X({
|
|
652
|
+
"top-tagSelector_tagListItem": !0,
|
|
653
|
+
"top-tagSelector_tagListItem-inEdit": u.value,
|
|
654
|
+
"top-tagSelector_tagListItem-disabled": g.disabled,
|
|
655
|
+
"top-tagSelector_tagListItem-canExclude": g.canExclude,
|
|
656
|
+
"top-tagSelector-active": !!g.state,
|
|
657
|
+
"top-tagSelector-excluded": g.state === "excluded"
|
|
658
|
+
}),
|
|
659
|
+
onClick: z(r, ["stop"])
|
|
660
|
+
}, {
|
|
661
|
+
default: _(() => [
|
|
662
|
+
A(ie, {
|
|
663
|
+
id: g.id,
|
|
664
|
+
name: i.value,
|
|
665
|
+
colorId: g.colorId,
|
|
666
|
+
state: g.state
|
|
667
|
+
}, null, 8, ["id", "name", "colorId", "state"]),
|
|
668
|
+
he("span", Se({
|
|
669
|
+
ref_key: "elName",
|
|
670
|
+
ref: a,
|
|
671
|
+
class: "top-tagSelector_tagListItemName",
|
|
672
|
+
contenteditable: u.value ? "plaintext-only" : !1
|
|
673
|
+
}, n.value, {
|
|
674
|
+
onKeydown: [
|
|
675
|
+
ge(z(h, ["stop"]), ["enter"]),
|
|
676
|
+
ge(z(S, ["stop"]), ["esc"])
|
|
677
|
+
]
|
|
678
|
+
}), K(i.value), 17, nt),
|
|
679
|
+
g.editable ? (k(), B(Y, { key: 0 }, [
|
|
680
|
+
u.value ? (k(), B("span", {
|
|
681
|
+
key: 1,
|
|
682
|
+
"data-top-icon": "",
|
|
683
|
+
class: "top-tagSelector_edit",
|
|
684
|
+
onClick: z(h, ["stop"])
|
|
685
|
+
})) : (k(), B("span", {
|
|
686
|
+
key: 0,
|
|
687
|
+
"data-top-icon": "",
|
|
688
|
+
class: "top-tagSelector_edit",
|
|
689
|
+
onClick: f
|
|
690
|
+
}))
|
|
691
|
+
], 64)) : q("", !0)
|
|
692
|
+
]),
|
|
693
|
+
_: 1
|
|
694
|
+
}, 8, ["class"]));
|
|
695
|
+
}
|
|
696
|
+
}), ot = { key: 1 }, rt = /* @__PURE__ */ P({
|
|
697
|
+
inheritAttrs: !1,
|
|
698
|
+
__name: "popupOpener",
|
|
699
|
+
props: /* @__PURE__ */ N({
|
|
700
|
+
modelValue: {},
|
|
701
|
+
id: {},
|
|
702
|
+
tags: {},
|
|
703
|
+
mode: {},
|
|
704
|
+
targetId: {},
|
|
705
|
+
filters: {},
|
|
706
|
+
useTopButton: { type: Boolean },
|
|
707
|
+
payload: {},
|
|
708
|
+
styling: {}
|
|
709
|
+
}, {
|
|
710
|
+
modelValue: {
|
|
711
|
+
required: !0
|
|
712
|
+
},
|
|
713
|
+
modelModifiers: {}
|
|
714
|
+
}),
|
|
715
|
+
emits: ["update:modelValue"],
|
|
716
|
+
setup(t) {
|
|
717
|
+
const l = t, o = D(t, "modelValue"), e = l.useTopButton ? H : "div", i = l.useTopButton ? "html" : "default", a = {
|
|
718
|
+
model: o,
|
|
719
|
+
mode: l.mode,
|
|
720
|
+
targetId: l.targetId,
|
|
721
|
+
filters: l.filters,
|
|
722
|
+
payload: l.payload
|
|
723
|
+
};
|
|
724
|
+
return (n, u) => {
|
|
725
|
+
const f = Ve("top-data");
|
|
726
|
+
return k(), b(Re, { id: n.id }, {
|
|
727
|
+
default: _(() => [
|
|
728
|
+
Ee((k(), b(Me(y(e)), Se({
|
|
729
|
+
class: {
|
|
730
|
+
"top-tagSelector": !0,
|
|
731
|
+
"top-tagSelector-filter": l.mode === "filter",
|
|
732
|
+
"top-tagSelector-setter_single": l.mode === "setter" && !n.filters,
|
|
733
|
+
"top-tagSelector-setter_several": l.mode === "setter" && n.filters,
|
|
734
|
+
"top-tagSelector-selectedOne": !o.value.length || o.value.length === 1,
|
|
735
|
+
"top-tagSelector-toTwoLine": o.value.length > 5
|
|
736
|
+
},
|
|
737
|
+
color: "theme",
|
|
738
|
+
styling: n.styling
|
|
739
|
+
}, n.$attrs), {
|
|
740
|
+
[y(i)]: _(() => [
|
|
741
|
+
!o.value.length && n.mode === "filter" ? (k(), b(ie, {
|
|
742
|
+
key: 0,
|
|
743
|
+
id: "all",
|
|
744
|
+
colorId: "",
|
|
745
|
+
name: n.$i18n.Common.All_tags ?? "",
|
|
746
|
+
state: ""
|
|
747
|
+
}, null, 8, ["name"])) : q("", !0),
|
|
748
|
+
n.mode === "setter" && n.filters ? (k(), B("div", ot, [
|
|
749
|
+
Ke(n.$slots, "default")
|
|
750
|
+
])) : (k(!0), B(Y, { key: 2 }, se(o.value, (h) => {
|
|
751
|
+
var S, r;
|
|
752
|
+
return k(), b(ie, {
|
|
753
|
+
id: y(Q)(h),
|
|
754
|
+
colorId: ((S = y(le)(h, n.tags)) == null ? void 0 : S.color_id) ?? "",
|
|
755
|
+
name: ((r = y(le)(h, n.tags)) == null ? void 0 : r.name) ?? "",
|
|
756
|
+
state: y(Q)(h) === h ? "selected" : "excluded"
|
|
757
|
+
}, null, 8, ["id", "colorId", "name", "state"]);
|
|
758
|
+
}), 256))
|
|
759
|
+
]),
|
|
760
|
+
_: 2
|
|
761
|
+
}, 1040, ["class", "styling"])), [
|
|
762
|
+
[f, a, "topTagSelectorTarget"]
|
|
763
|
+
])
|
|
764
|
+
]),
|
|
765
|
+
_: 3
|
|
766
|
+
}, 8, ["id"]);
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
}), xt = /* @__PURE__ */ P({
|
|
770
|
+
__name: "tagSelector",
|
|
771
|
+
props: /* @__PURE__ */ N({
|
|
772
|
+
modelValue: {},
|
|
773
|
+
tags: {},
|
|
774
|
+
tagsEditable: { type: Boolean },
|
|
775
|
+
tagsMax: { default: 10 },
|
|
776
|
+
id: {},
|
|
777
|
+
singleMode: { type: Boolean },
|
|
778
|
+
requiredForSetter: { type: Boolean, default: !0 },
|
|
779
|
+
maxTagsForSetter: {},
|
|
780
|
+
emitDelay: { default: 500 },
|
|
781
|
+
styling: {}
|
|
782
|
+
}, {
|
|
783
|
+
modelValue: {
|
|
784
|
+
required: !0
|
|
785
|
+
},
|
|
786
|
+
modelModifiers: {},
|
|
787
|
+
tags: {
|
|
788
|
+
default: Le(at)
|
|
789
|
+
},
|
|
790
|
+
tagsModifiers: {}
|
|
791
|
+
}),
|
|
792
|
+
emits: /* @__PURE__ */ N(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
|
|
793
|
+
setup(t, { emit: l }) {
|
|
794
|
+
const o = R(), e = t, i = D(t, "modelValue"), a = D(t, "tags"), n = l, u = Ae((s, c) => {
|
|
795
|
+
n(s, c);
|
|
796
|
+
}, e.emitDelay);
|
|
797
|
+
e.singleMode && !i.value.length && (i.value = [a.value[0].id]);
|
|
798
|
+
const f = e.id ?? "top-popup-id-" + Math.random(), h = F("add"), S = () => {
|
|
799
|
+
var v;
|
|
800
|
+
const s = " " + ((v = o.Common.Tags) == null ? void 0 : v.toLowerCase()), c = /* @__PURE__ */ new Map();
|
|
801
|
+
return c.set("add", { value: "add", title: o.Common.Add + s }), c.set("replace", { value: "replace", title: o.Common.Replace + s }), c.set("delete", { value: "delete", title: o.Common.Delete + s }), c;
|
|
802
|
+
};
|
|
803
|
+
let r = $e({
|
|
804
|
+
model: i,
|
|
805
|
+
mode: "filter",
|
|
806
|
+
targetId: void 0,
|
|
807
|
+
filters: void 0,
|
|
808
|
+
payload: void 0
|
|
809
|
+
});
|
|
810
|
+
w(i, () => {
|
|
811
|
+
u("selector", i.value);
|
|
812
|
+
});
|
|
813
|
+
const g = E(() => {
|
|
814
|
+
if (r.value.mode === "setter" && e.maxTagsForSetter && !r.value.filters)
|
|
815
|
+
return r.value.model.value.length >= e.maxTagsForSetter;
|
|
816
|
+
}), d = (s) => {
|
|
817
|
+
if (s !== "all") {
|
|
818
|
+
if (r.value.model.value.includes(s)) return "selected";
|
|
819
|
+
if (r.value.model.value.includes(ve(s))) return "excluded";
|
|
820
|
+
}
|
|
821
|
+
return s === "all" && !r.value.model.value.length ? "selected" : "";
|
|
822
|
+
}, x = (s, c) => {
|
|
823
|
+
const v = ve(s);
|
|
824
|
+
let I = r.value.model.value.filter((L) => L !== s && L !== v);
|
|
825
|
+
c === "select" && I.push(s), c === "exclude" && I.push(v), r.value.mode === "setter" && r.value.targetId !== void 0 && e.requiredForSetter && (I.length || I.push("1"), I.length === 2 && r.value.model.value.length === 1 && r.value.model.value[0] === "1" && (I = I.filter((L) => L !== "1"))), e.singleMode && !r.value.filters && (I.length || (I = r.value.model.value), I.length > 1 && (I = [I[I.length - 1]])), I.sort((L, U) => {
|
|
826
|
+
if (!e.tags) return 0;
|
|
827
|
+
const Z = e.tags.findIndex((O) => O.id === L), j = e.tags.findIndex((O) => O.id === U);
|
|
828
|
+
return Z - j;
|
|
829
|
+
}), r.value.model.value = I, r.value.mode === "setter" && r.value.targetId !== void 0 && u("setter", {
|
|
830
|
+
tagsIds: I,
|
|
831
|
+
targetId: r.value.targetId,
|
|
832
|
+
payload: r.value.payload
|
|
833
|
+
});
|
|
834
|
+
}, T = E(() => {
|
|
835
|
+
let s = "top-tagSelector_popup";
|
|
836
|
+
return r.value.mode === "filter" && (s += " top-tagSelector_popup-filter"), r.value.mode === "setter" && (s += " top-tagSelector_popup-setter"), s;
|
|
837
|
+
}), C = () => {
|
|
838
|
+
const s = prompt("", "New tag");
|
|
839
|
+
if (!s || s === "New tag") return;
|
|
840
|
+
const c = a.value.length + 1;
|
|
841
|
+
a.value.push({
|
|
842
|
+
id: String(c),
|
|
843
|
+
name: s,
|
|
844
|
+
color_id: String((c - 1) % 10 + 1)
|
|
845
|
+
}), n("tagsChanged", a.value);
|
|
846
|
+
}, V = (s) => {
|
|
847
|
+
var c;
|
|
848
|
+
if (r.value = W(s.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
849
|
+
if (r.value.filters && (h.value = "add", r.value.model.value = []), !((c = J.$) != null && c.ui.sortable)) {
|
|
850
|
+
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
851
|
+
return;
|
|
852
|
+
}
|
|
853
|
+
!J.state.isMobile && !J.state.isMobileUA && a.value && $(s.elPopup).sortable({
|
|
854
|
+
items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
|
|
855
|
+
/**
|
|
856
|
+
* @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
|
|
857
|
+
*/
|
|
858
|
+
cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
|
|
859
|
+
distance: 10,
|
|
860
|
+
stop: function(v, I) {
|
|
861
|
+
if (!a.value) return;
|
|
862
|
+
const L = $(I.item).parent().find("[data-tag_id]"), U = [];
|
|
863
|
+
L.each((Z, j) => {
|
|
864
|
+
if (!a.value) return;
|
|
865
|
+
const O = $(j).attr("data-tag_id");
|
|
866
|
+
U.push(O);
|
|
867
|
+
}), a.value.sort((Z, j) => {
|
|
868
|
+
const O = U.findIndex((ne) => ne === Z.id), Te = U.findIndex((ne) => ne === j.id);
|
|
869
|
+
return O - Te;
|
|
870
|
+
}), u("tagsChanged", a.value);
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
}, m = (s) => {
|
|
874
|
+
var c;
|
|
875
|
+
(c = J.$) != null && c.ui.sortable && $(s.elPopup).data("ui-sortable") && $(s.elPopup).sortable("destroy");
|
|
876
|
+
};
|
|
877
|
+
return (s, c) => (k(), B(Y, null, [
|
|
878
|
+
A(rt, {
|
|
879
|
+
class: "top-as-selector",
|
|
880
|
+
modelValue: i.value,
|
|
881
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => i.value = v),
|
|
882
|
+
id: y(f),
|
|
883
|
+
tags: a.value,
|
|
884
|
+
styling: s.styling,
|
|
885
|
+
mode: "filter",
|
|
886
|
+
useTopButton: ""
|
|
887
|
+
}, null, 8, ["modelValue", "id", "tags", "styling"]),
|
|
888
|
+
A(Ie, {
|
|
889
|
+
id: y(f),
|
|
890
|
+
class: X(T.value),
|
|
891
|
+
onOpen: c[4] || (c[4] = (v) => V(v)),
|
|
892
|
+
onClose: c[5] || (c[5] = (v) => m(v)),
|
|
893
|
+
"transition-duration": 50
|
|
894
|
+
}, we({
|
|
895
|
+
contentList: _(() => [
|
|
896
|
+
y(r).mode === "filter" && !s.singleMode ? (k(), b(pe, {
|
|
897
|
+
key: 0,
|
|
898
|
+
id: "all",
|
|
899
|
+
colorId: "",
|
|
900
|
+
name: s.$i18n.Common.All_tags ?? "",
|
|
901
|
+
state: y(r).model.value.length ? "" : "selected",
|
|
902
|
+
onSelect: c[3] || (c[3] = (v) => y(r).model.value = [])
|
|
903
|
+
}, null, 8, ["name", "state"])) : q("", !0),
|
|
904
|
+
(k(!0), B(Y, null, se(a.value, (v) => (k(), b(pe, {
|
|
905
|
+
key: v.id,
|
|
906
|
+
id: v.id,
|
|
907
|
+
colorId: v.color_id,
|
|
908
|
+
name: v.name,
|
|
909
|
+
state: d(v.id),
|
|
910
|
+
canExclude: y(r).mode === "filter" && !s.singleMode,
|
|
911
|
+
editable: s.tagsEditable,
|
|
912
|
+
disabled: g.value && d(v.id) === "",
|
|
913
|
+
onUnselect: (I) => x(v.id, "unselect"),
|
|
914
|
+
onSelect: (I) => x(v.id, "select"),
|
|
915
|
+
onExclude: (I) => x(v.id, "exclude"),
|
|
916
|
+
"onUpdate:name": (I) => {
|
|
917
|
+
v.name = I, y(u)("tagsChanged", a.value);
|
|
918
|
+
}
|
|
919
|
+
}, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
|
|
920
|
+
s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(ue, {
|
|
921
|
+
key: 1,
|
|
922
|
+
"data-top-icon": "",
|
|
923
|
+
onClick: z(C, ["stop"])
|
|
924
|
+
}, {
|
|
925
|
+
default: _(() => [
|
|
926
|
+
G(K(s.$i18n.Common.Add), 1)
|
|
927
|
+
]),
|
|
928
|
+
_: 1
|
|
929
|
+
})) : q("", !0)
|
|
930
|
+
]),
|
|
931
|
+
_: 2
|
|
932
|
+
}, [
|
|
933
|
+
y(r).mode === "setter" && y(r).filters ? {
|
|
934
|
+
name: "header",
|
|
935
|
+
fn: _(() => [
|
|
936
|
+
A(re, {
|
|
937
|
+
modelValue: h.value,
|
|
938
|
+
"onUpdate:modelValue": c[1] || (c[1] = (v) => h.value = v),
|
|
939
|
+
options: S()
|
|
940
|
+
}, null, 8, ["modelValue", "options"])
|
|
941
|
+
]),
|
|
942
|
+
key: "0"
|
|
943
|
+
} : void 0,
|
|
944
|
+
y(r).mode === "setter" && y(r).filters ? {
|
|
945
|
+
name: "footer",
|
|
946
|
+
fn: _(() => [
|
|
947
|
+
A(H, { color: "theme" }, {
|
|
948
|
+
default: _(() => [
|
|
949
|
+
G(K(s.$i18n.Common.Cancel), 1)
|
|
950
|
+
]),
|
|
951
|
+
_: 1
|
|
952
|
+
}),
|
|
953
|
+
A(H, {
|
|
954
|
+
onClick: c[2] || (c[2] = (v) => y(u)("setter", {
|
|
955
|
+
tagsIds: y(r).model.value,
|
|
956
|
+
filters: y(r).filters,
|
|
957
|
+
filtersAction: h.value,
|
|
958
|
+
payload: y(r).payload
|
|
959
|
+
}))
|
|
960
|
+
}, {
|
|
961
|
+
default: _(() => [
|
|
962
|
+
G(K(h.value === "add" ? s.$i18n.Common.Add : "") + " " + K(h.value === "replace" ? s.$i18n.Common.Replace : "") + " " + K(h.value === "delete" ? s.$i18n.Common.Remove : ""), 1)
|
|
963
|
+
]),
|
|
964
|
+
_: 1
|
|
965
|
+
})
|
|
966
|
+
]),
|
|
967
|
+
key: "1"
|
|
968
|
+
} : void 0
|
|
969
|
+
]), 1032, ["id", "class"])
|
|
970
|
+
], 64));
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
export {
|
|
974
|
+
yt as TopSelectorCompetitors,
|
|
975
|
+
ht as TopSelectorRegion,
|
|
976
|
+
xt as TopTagSelector,
|
|
977
|
+
rt as TopTagSelectorPopupOpener,
|
|
978
|
+
ie as TopTagSelectorTagIcon,
|
|
979
|
+
Qe as dialogSelectorRegions,
|
|
980
|
+
He as findRegion,
|
|
981
|
+
St as genElTopTagSelectorPopupOpener,
|
|
982
|
+
ke as genSearcherByKey,
|
|
983
|
+
It as renderElTopTagSelectorPopupOpener,
|
|
984
|
+
pt as useItemsFromCompetitors
|
|
985
|
+
};
|
|
986
|
+
//# sourceMappingURL=project.js.map
|