@topvisor/ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/core-CXqQSo9c.amd.js +2 -0
- package/.chunks/core-CXqQSo9c.amd.js.map +1 -0
- package/.chunks/{core-Dsl28h7N.es.js → core-CY6RkZz2.es.js} +47 -46
- package/.chunks/core-CY6RkZz2.es.js.map +1 -0
- package/.chunks/{datepicker-BTiE5Grw.es.js → datepicker-BiaXdEIn.es.js} +2 -2
- package/.chunks/datepicker-BiaXdEIn.es.js.map +1 -0
- package/.chunks/datepicker-DUoArkDy.amd.js +2 -0
- package/.chunks/datepicker-DUoArkDy.amd.js.map +1 -0
- package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js +2 -0
- package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js.map +1 -0
- package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js +188 -0
- package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js +322 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.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-CgtkdwgA.amd.js +3 -0
- package/.chunks/forms-CgtkdwgA.amd.js.map +1 -0
- package/.chunks/forms-DarRVke_.es.js +2045 -0
- package/.chunks/forms-DarRVke_.es.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-CT-EXxJj.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js +184 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js.map +1 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js +2 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js.map +1 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js → menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js} +35 -34
- package/.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js.map +1 -0
- package/.chunks/{notice-CJdCc72d.amd.js → notice-CPtAnc7p.amd.js} +3 -3
- package/.chunks/notice-CPtAnc7p.amd.js.map +1 -0
- package/.chunks/{notice-Cqs1dKt8.es.js → notice-fno9saBY.es.js} +2 -2
- package/.chunks/notice-fno9saBY.es.js.map +1 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js → page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js} +4 -4
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js +2 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js.map +1 -0
- package/.chunks/popup-AG94kehM.es.js +459 -0
- package/.chunks/popup-AG94kehM.es.js.map +1 -0
- package/.chunks/popup-CtvJLWn3.amd.js +2 -0
- package/.chunks/popup-CtvJLWn3.amd.js.map +1 -0
- package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
- package/.chunks/{punycode.es6-C2yitnNb.amd.js.map → punycode.es6-CNOnFR2-.amd.js.map} +1 -1
- package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
- package/.chunks/{punycode.es6-CNI-zL6U.es.js.map → punycode.es6-CgGegfA_.es.js.map} +1 -1
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
- package/.chunks/store-YRW59xEF.amd.js +2 -0
- package/.chunks/store-YRW59xEF.amd.js.map +1 -0
- package/.chunks/{utils-B1H3EGkg.es.js → utils-3M9LC_L_.es.js} +2 -2
- package/.chunks/utils-3M9LC_L_.es.js.map +1 -0
- package/.chunks/utils-BitKP31L.es.js +302 -0
- package/.chunks/utils-BitKP31L.es.js.map +1 -0
- package/.chunks/utils-D9D3zzjc.amd.js +2 -0
- package/.chunks/utils-D9D3zzjc.amd.js.map +1 -0
- package/.chunks/utils-DcP4RFmH.amd.js +2 -0
- package/.chunks/utils-DcP4RFmH.amd.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js +2 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js +39 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.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 -82
- 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/core.css +1 -1
- package/assets/extra.css +1 -0
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/layout.css +1 -1
- package/assets/notice.css +1 -1
- package/assets/project.css +1 -1
- package/assets/themes/dark-th.css +1 -1
- package/assets/themes/dark.css +1 -1
- package/assets/themes/light.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.d.ts +1 -1
- package/charts/charts.js +11 -11
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.d.ts +2 -8
- package/core/app.js +36 -34
- package/core/app.js.map +1 -1
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/dialog/dialog.js +2 -2
- package/dialog/dialog.js.map +1 -1
- 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 +1 -1
- package/forms/forms.d.ts +1 -1
- package/forms/forms.js +11 -9
- package/forms/helpers.amd.js +1 -1
- package/forms/helpers.amd.js.map +1 -1
- package/forms/helpers.d.ts +0 -1
- package/forms/helpers.js +1 -9
- package/forms/helpers.js.map +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.d.ts +1 -1
- package/formsExt/formsExt.js +524 -320
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/Read Me.txt +7 -7
- package/icomoon/demo-files/demo.css +158 -158
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.css +158 -0
- package/icomoon/demo.html +3782 -3558
- package/icomoon/demo.js +30 -0
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +292 -276
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +828 -780
- package/jquery-ui.min.css +5 -5
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.d.ts +1 -1
- package/layout/layout.js +29 -29
- package/layout/layout.js.map +1 -1
- package/package.json +36 -33
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.d.ts +1 -1
- package/popup/popup.js +120 -136
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.d.ts +1 -1
- package/popup/worker.js +31 -22
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.d.ts +1 -1
- package/project/project.js +396 -386
- package/project/project.js.map +1 -1
- package/require/css.amd.js +12 -12
- 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/{components → src/components}/charts/miniChart/miniChart.vue.d.ts +1 -1
- package/{components → src/components}/charts/miniCharts/miniCharts.d.ts +1 -1
- package/{components → src/components}/charts/miniCharts/miniCharts.vue.d.ts +1 -1
- package/{components → src/components}/core/notice/item/types.d.ts +2 -0
- package/{components → src/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +3 -0
- package/{components → src/components}/dialog/dialog/page/types.d.ts +2 -2
- package/{components → src/components}/dialog/lib/types.d.ts +23 -0
- package/src/components/dialog/lib/utils.d.ts +14 -0
- package/{components → src/components}/dialog/lib/utils.globalEvents.d.ts +2 -2
- package/{components → src/components}/dialog/lib/worker.d.ts +27 -11
- 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/{components → src/components}/forms/avatar/avatar.vue.d.ts +2 -2
- package/{components/forms/avatar/avatar.d.ts → src/components/forms/avatar/types.d.ts} +4 -10
- package/{components → src/components}/forms/button/button.vue.d.ts +3 -7
- package/{components → src/components}/forms/button/types.d.ts +15 -19
- package/src/components/forms/caption/caption.vue.d.ts +17 -0
- package/src/components/forms/caption/types.d.ts +9 -0
- package/{components → src/components}/forms/checkbox/checkbox.vue.d.ts +3 -3
- package/{components → src/components}/forms/controlLabel/controlLabel.vue.d.ts +1 -1
- package/src/components/forms/forms.d.ts +15 -0
- package/src/components/forms/helpers.d.ts +1 -0
- package/{components → src/components}/forms/hint/hint.vue.d.ts +1 -1
- package/{components → src/components}/forms/input/input.vue.d.ts +2 -3
- package/src/components/forms/input/types.d.ts +23 -0
- package/{components → src/components}/forms/inputDate/inputDate.vue.d.ts +1 -1
- package/src/components/forms/inputDate/types.d.ts +1 -0
- package/src/components/forms/preloader/types.d.ts +3 -0
- package/{components → src/components}/forms/radio/radio.vue.d.ts +1 -1
- package/src/components/forms/select/select.vue.d.ts +17 -0
- package/{components/forms/select/select.d.ts → src/components/forms/select/types.d.ts} +3 -3
- package/{components → src/components}/forms/switcher/switcher.vue.d.ts +1 -1
- package/{components → src/components}/forms/textarea/textarea.vue.d.ts +1 -1
- package/{components/forms/textarea/textarea.d.ts → src/components/forms/textarea/types.d.ts} +4 -0
- package/{components/formsExt/radioGroup/radioGroup.vue.d.ts → src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts} +7 -10
- package/src/components/formsExt/checkboxGroup/types.d.ts +19 -0
- package/{components → src/components}/formsExt/editArea/editArea.vue.d.ts +1 -1
- package/{components/formsExt/editArea/editArea.d.ts → src/components/formsExt/editArea/types.d.ts} +1 -1
- package/{components → src/components}/formsExt/editInput/editInput.vue.d.ts +1 -1
- package/{components/formsExt/editInput/editInput.d.ts → src/components/formsExt/editInput/types.d.ts} +1 -1
- package/src/components/formsExt/formsExt.d.ts +8 -0
- package/{components → src/components}/formsExt/info/types.d.ts +1 -1
- package/{components → src/components}/formsExt/menu/menu.vue.d.ts +1 -1
- package/src/components/formsExt/policy/policy.vue.d.ts +8 -0
- package/src/components/formsExt/policy/types.d.ts +20 -0
- package/{components/forms/select/select.vue.d.ts → src/components/formsExt/radioGroup/radioGroup.vue.d.ts} +4 -6
- package/{components/formsExt/radioGroup/radioGroup.d.ts → src/components/formsExt/radioGroup/types.d.ts} +3 -3
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +16 -0
- package/{components → src/components}/formsExt/selector2/itemMulti.vue.d.ts +1 -1
- package/src/components/formsExt/selector2/selector2.vue.d.ts +43 -0
- package/{components/formsExt/selector2/selector2.d.ts → src/components/formsExt/selector2/types.d.ts} +66 -34
- package/src/components/formsExt/selector2/utils.d.ts +6 -0
- package/{components → src/components}/layout/islandRows/types.d.ts +1 -1
- package/src/components/layout/layout.d.ts +4 -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/{components/popup/confirm/confirm.d.ts → src/components/popup/confirm/types.d.ts} +3 -3
- package/{components → src/components}/popup/lib/popup.d.ts +6 -2
- package/{components → src/components}/popup/lib/popup.globalEvents.d.ts +6 -0
- package/{components → src/components}/popup/lib/worker.d.ts +8 -6
- package/{components → src/components}/popup/popup/listItem.vue.d.ts +1 -1
- package/src/components/popup/popup/opener.vue.d.ts +17 -0
- package/src/components/popup/popup/popup.vue.d.ts +38 -0
- package/{components/popup/popup/popup.d.ts → src/components/popup/popup/types.d.ts} +20 -11
- package/{components → src/components}/popup/popup/widgetInput.vue.d.ts +1 -1
- package/src/components/popup/popup.d.ts +7 -0
- package/src/components/popup/prompt/prompt.vue.d.ts +26 -0
- package/{components/popup/prompt/prompt.d.ts → src/components/popup/prompt/types.d.ts} +3 -3
- package/src/components/project/project.d.ts +9 -0
- package/{components → src/components}/project/selectorCompetitors/composables.d.ts +1 -2
- package/{components → src/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +1 -1
- package/{components/project/selectorCompetitors/selectorCompetitors.d.ts → src/components/project/selectorCompetitors/types.d.ts} +7 -0
- package/{components → src/components}/project/selectorRegion/composables/compare.d.ts +1 -1
- package/{components → src/components}/project/selectorRegion/composables/selectRegion.d.ts +2 -3
- package/{components → src/components}/project/selectorRegion/composables/selectSearcher.d.ts +2 -2
- package/{components → src/components}/project/selectorRegion/composables/selectorRegion.d.ts +2 -2
- package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +3 -1
- package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +1 -1
- package/{components → src/components}/project/selectorRegion/selectorRegion.vue.d.ts +1 -1
- package/{components/project/selectorRegion/selectorRegion.d.ts → src/components/project/selectorRegion/types.d.ts} +2 -0
- package/src/components/project/selectorRegion/utils/consts.d.ts +31 -0
- package/{components → src/components}/project/selectorRegion/utils/utils.d.ts +4 -2
- package/{components → src/components}/project/tagSelector/popupOpener/types.d.ts +2 -0
- package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +4 -0
- package/{components → src/components}/project/tagSelector/types.d.ts +2 -0
- package/{components → src/components}/project/tagSelector/utils/el.d.ts +1 -1
- package/{components → src/components}/tabs/tabs/content.vue.d.ts +1 -1
- package/{components → src/components}/tabs/tabs/tab.vue.d.ts +1 -1
- package/{components → src/components}/tabs/tabs/tabs.vue.d.ts +1 -1
- package/src/components/tabs/tabs.d.ts +3 -0
- package/{components → src/components}/tabsView/tabsView/menu.vue.d.ts +1 -1
- package/{components → src/components}/tabsView/tabsView/menuItem.vue.d.ts +1 -1
- package/{components → src/components}/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
- package/src/components/tabsView/tabsView/store.d.ts +12 -0
- package/{components → src/components}/tabsView/tabsView/tabsView.vue.d.ts +1 -1
- package/{components/tabsView/tabsView/tabsView.d.ts → src/components/tabsView/tabsView/types.d.ts} +2 -2
- package/src/components/tabsView/tabsView.d.ts +3 -0
- package/src/core/app.d.ts +8 -0
- package/{core → src/core}/core/core.d.ts +1 -1
- package/{core → src/core}/core/options.d.ts +7 -6
- package/{core → src/core}/core/state.d.ts +1 -1
- package/src/core/directives/preloader.d.ts +8 -0
- package/{core → src/core}/plugins/core.d.ts +2 -2
- package/{core → src/core}/plugins/i18n.d.ts +4 -4
- package/{core → src/core}/utils/date.d.ts +30 -12
- package/{core → src/core}/utils/dom.d.ts +11 -1
- package/{core → src/core}/utils/route.d.ts +1 -1
- package/{core → src/core}/utils/searchers.d.ts +1 -1
- package/{core → src/core}/utils/store.d.ts +1 -1
- package/{core → src/core}/utils/string.d.ts +13 -1
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.d.ts +1 -1
- package/tabs/tabs.js +14 -14
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.d.ts +1 -1
- package/tabsView/tabsView.js +49 -48
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.d.ts +1 -1
- package/utils/check.js.map +1 -1
- package/utils/clipboard.amd.js +2 -2
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.d.ts +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/clipboard.js.map +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.d.ts +1 -1
- package/utils/date.js +4 -3
- package/utils/device.amd.js +1 -1
- package/utils/device.d.ts +1 -1
- package/utils/device.js +4 -4
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.d.ts +3 -3
- package/utils/dom.js +27 -22
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js +2 -2
- package/utils/image.amd.js.map +1 -1
- package/utils/image.d.ts +1 -1
- package/utils/image.js +1 -1
- package/utils/image.js.map +1 -1
- package/utils/keyboard.amd.js +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.d.ts +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.d.ts +1 -1
- package/utils/lodash.js +1 -1
- package/utils/number.amd.js +1 -1
- package/utils/number.amd.js.map +1 -1
- package/utils/number.d.ts +1 -1
- package/utils/number.js.map +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.d.ts +1 -1
- package/utils/price.js +1 -1
- package/utils/price.js.map +1 -1
- package/utils/route.amd.js +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.d.ts +1 -1
- package/utils/route.js +26 -19
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.d.ts +1 -1
- package/utils/scroll.js.map +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.d.ts +1 -1
- package/utils/searchers.js +3 -3
- package/utils/searchers.js.map +1 -1
- package/utils/store.amd.js +1 -1
- package/utils/store.d.ts +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.d.ts +1 -1
- package/utils/string.js +41 -28
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.d.ts +1 -1
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js +2 -2
- package/utils/url.amd.js.map +1 -1
- package/utils/url.d.ts +1 -1
- package/utils/url.js +1 -1
- package/utils/url.js.map +1 -1
- package/web-types.json +130 -130
- package/.chunks/core-CcWs0qYw.amd.js +0 -2
- package/.chunks/core-CcWs0qYw.amd.js.map +0 -1
- package/.chunks/core-Dsl28h7N.es.js.map +0 -1
- package/.chunks/datepicker-B6kIyIcw.amd.js +0 -2
- package/.chunks/datepicker-B6kIyIcw.amd.js.map +0 -1
- package/.chunks/datepicker-BTiE5Grw.es.js.map +0 -1
- package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js +0 -140
- package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js.map +0 -1
- package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js +0 -2
- package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js +0 -266
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js.map +0 -1
- package/.chunks/forms-BsuCen2-.es.js +0 -1999
- package/.chunks/forms-BsuCen2-.es.js.map +0 -1
- package/.chunks/forms-BwGakScF.amd.js +0 -3
- package/.chunks/forms-BwGakScF.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js +0 -181
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js +0 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js.map +0 -1
- package/.chunks/notice-CJdCc72d.amd.js.map +0 -1
- package/.chunks/notice-Cqs1dKt8.es.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js.map +0 -1
- package/.chunks/popup-CLhWWJDe.amd.js +0 -2
- package/.chunks/popup-CLhWWJDe.amd.js.map +0 -1
- package/.chunks/popup-N10MDafw.es.js +0 -416
- package/.chunks/popup-N10MDafw.es.js.map +0 -1
- package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
- package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
- package/.chunks/store-esTid5oI.amd.js +0 -2
- package/.chunks/store-esTid5oI.amd.js.map +0 -1
- package/.chunks/utils-B1H3EGkg.es.js.map +0 -1
- package/.chunks/utils-B7GVqGBH.amd.js +0 -2
- package/.chunks/utils-B7GVqGBH.amd.js.map +0 -1
- package/.chunks/utils-DIy2mbYd.amd.js +0 -2
- package/.chunks/utils-DIy2mbYd.amd.js.map +0 -1
- package/.chunks/utils-bjr7c5my.es.js +0 -225
- package/.chunks/utils-bjr7c5my.es.js.map +0 -1
- package/CHANGELOG.md +0 -14
- package/components/charts/charts.d.ts +0 -5
- package/components/charts/miniChart/stories/dummy.d.ts +0 -13
- package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
- package/components/dialog/dialog/stories/autoload.d.ts +0 -2
- package/components/dialog/lib/utils.d.ts +0 -14
- package/components/forms/forms.d.ts +0 -27
- package/components/forms/helpers.d.ts +0 -10
- package/components/forms/input/input.d.ts +0 -34
- package/components/forms/inputDate/inputDate.d.ts +0 -3
- package/components/forms/select/stories/exampleOptions.d.ts +0 -5
- package/components/formsExt/formsExt.d.ts +0 -13
- package/components/formsExt/menu/stories/items.d.ts +0 -3
- package/components/formsExt/navigationMenu/navigationMenu.d.ts +0 -24
- package/components/formsExt/navigationMenu/stories/items.d.ts +0 -3
- package/components/formsExt/selector2/api.d.ts +0 -8
- package/components/formsExt/selector2/selector2.vue.d.ts +0 -210
- package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
- package/components/layout/layout.d.ts +0 -9
- package/components/popup/alert/alert.d.ts +0 -8
- package/components/popup/alert/alert.vue.d.ts +0 -31
- package/components/popup/confirm/confirm.vue.d.ts +0 -33
- package/components/popup/popup/opener.vue.d.ts +0 -23
- package/components/popup/popup/popup.vue.d.ts +0 -40
- package/components/popup/popup.d.ts +0 -15
- package/components/popup/prompt/prompt.vue.d.ts +0 -33
- package/components/project/project.d.ts +0 -15
- package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
- package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
- package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
- package/components/project/selectorRegion/utils/consts.d.ts +0 -18
- package/components/tabs/tabs.d.ts +0 -7
- package/components/tabsView/tabsView/store.d.ts +0 -192
- package/components/tabsView/tabsView.d.ts +0 -7
- package/icomoon/Topvisor icons.json +0 -6260
- /package/assets/{popup.css → widgetInput.css} +0 -0
- /package/{components/charts/miniChart/miniChart.d.ts → src/components/charts/miniChart/types.d.ts} +0 -0
- /package/{components → src/components}/charts/miniChart/utils/consts.d.ts +0 -0
- /package/{components → src/components}/core/notice/item/item.vue.d.ts +0 -0
- /package/{components → src/components}/core/notice/notice.vue.d.ts +0 -0
- /package/{components → src/components}/core/notice/types.d.ts +0 -0
- /package/{components → src/components}/core/notice/utils.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/types.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/utils.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/dialog.vue.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/page/page.vue.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/types.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog.d.ts +0 -0
- /package/{components/forms/checkbox/checkbox.d.ts → src/components/forms/checkbox/types.d.ts} +0 -0
- /package/{components/forms/controlLabel/controlLabel.d.ts → src/components/forms/controlLabel/types.d.ts} +0 -0
- /package/{components/forms/hint/hint.d.ts → src/components/forms/hint/types.d.ts} +0 -0
- /package/{components → src/components}/forms/inputDate/datepicker.d.ts +0 -0
- /package/{components → src/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
- /package/{components/layout/islandRows/islandRowsRow → src/components/forms/inputRange}/types.d.ts +0 -0
- /package/{components → src/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
- /package/{components/project/tagSelector/tagIcon/tagIcon.vue.d.ts → src/components/forms/preloader/preloader.vue.d.ts} +0 -0
- /package/{components/forms/radio/radio.d.ts → src/components/forms/radio/types.d.ts} +0 -0
- /package/{components/forms/switcher/switcher.d.ts → src/components/forms/switcher/types.d.ts} +0 -0
- /package/{components → src/components}/formsExt/info/info.vue.d.ts +0 -0
- /package/{components/formsExt/menu/menu.d.ts → src/components/formsExt/menu/types.d.ts} +0 -0
- /package/{components → src/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
- /package/{components → src/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
- /package/{components/forms/inputRange/inputRange.d.ts → src/components/layout/islandRows/islandRowsRow/types.d.ts} +0 -0
- /package/{components → src/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
- /package/{components → src/components}/layout/rows/rows.vue.d.ts +0 -0
- /package/{components → src/components}/layout/rows/types.d.ts +0 -0
- /package/{components → src/components}/popup/lib/worker.globalEvents.d.ts +0 -0
- /package/{components → src/components}/popup/worker.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/utils/utils.d.ts +0 -0
- /package/{components/tabs/tabs/tabs.d.ts → src/components/tabs/tabs/types.d.ts} +0 -0
- /package/{components → src/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/{components → src/components}/tabsView/tabsView/utils.d.ts +0 -0
- /package/{core → src/core}/core/events/resize.d.ts +0 -0
- /package/{core → src/core}/core/events.d.ts +0 -0
- /package/{core → src/core}/core/preloaders.d.ts +0 -0
- /package/{core → src/core}/directives/data.d.ts +0 -0
- /package/{core → src/core}/directives/focus.d.ts +0 -0
- /package/{core → src/core}/directives/scrollIntoView.d.ts +0 -0
- /package/{core → src/core}/directives/scrollShadow.d.ts +0 -0
- /package/{core → src/core}/directives/sticky.d.ts +0 -0
- /package/{core → src/core}/directives/swimUp.d.ts +0 -0
- /package/{core → src/core}/directives/tooltip.d.ts +0 -0
- /package/{core → src/core}/plugins/piniaTPA.d.ts +0 -0
- /package/{core → src/core}/utils/check.d.ts +0 -0
- /package/{core → src/core}/utils/clipboard.d.ts +0 -0
- /package/{core → src/core}/utils/device.d.ts +0 -0
- /package/{core → src/core}/utils/image.d.ts +0 -0
- /package/{core → src/core}/utils/keyboard.d.ts +0 -0
- /package/{core → src/core}/utils/lodash.d.ts +0 -0
- /package/{core → src/core}/utils/number.d.ts +0 -0
- /package/{core → src/core}/utils/price.d.ts +0 -0
- /package/{core → src/core}/utils/scroll.d.ts +0 -0
- /package/{core → src/core}/utils/store/localStorage.d.ts +0 -0
- /package/{core → src/core}/utils/store/plugin.d.ts +0 -0
- /package/{core → src/core}/utils/store/store.d.ts +0 -0
- /package/{core → src/core}/utils/system.d.ts +0 -0
- /package/{core → src/core}/utils/url.d.ts +0 -0
package/project/project.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Core as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as Oe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { u as
|
|
7
|
-
import { getSearcherGIcon as
|
|
8
|
-
import { storage as
|
|
9
|
-
import { TopPopupWorker as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const
|
|
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-DarRVke_.es.js";
|
|
4
|
+
import { _ as Ie, b as ue, a as Re } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js";
|
|
5
|
+
import { _ as Oe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js";
|
|
6
|
+
import { u as Ne } from "../.chunks/utils-3M9LC_L_.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
13
|
__name: "selectorCompetitors",
|
|
14
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */ N({
|
|
15
15
|
modelValue: {},
|
|
16
16
|
items: {},
|
|
17
17
|
showSelectAllItem: { type: Boolean, default: !0 }
|
|
@@ -21,19 +21,19 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
21
21
|
}),
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
23
|
setup(t) {
|
|
24
|
-
const l = t, o =
|
|
24
|
+
const l = t, o = D(t, "modelValue"), e = E(() => {
|
|
25
25
|
if (l.showSelectAllItem)
|
|
26
26
|
return {
|
|
27
27
|
icon: "",
|
|
28
|
-
title:
|
|
28
|
+
title: R().Common.Select_all,
|
|
29
29
|
value: "all",
|
|
30
30
|
content: ""
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
|
-
return (i, a) => (k(), B("div",
|
|
34
|
-
y(J).state.isMobile ? (k(), b(
|
|
33
|
+
return (i, a) => (k(), B("div", Ue, [
|
|
34
|
+
y(J).state.isMobile ? (k(), b(Ie, { key: 0 }, {
|
|
35
35
|
opener: _(() => [
|
|
36
|
-
|
|
36
|
+
A(H, {
|
|
37
37
|
class: "top-selectorCompetitors_opener",
|
|
38
38
|
color: "theme",
|
|
39
39
|
icon: "",
|
|
@@ -42,9 +42,9 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
42
42
|
default: _(() => {
|
|
43
43
|
var n;
|
|
44
44
|
return [
|
|
45
|
-
|
|
46
|
-
var
|
|
47
|
-
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
48
|
})) == null ? void 0 : n.content), 1)
|
|
49
49
|
];
|
|
50
50
|
}),
|
|
@@ -52,18 +52,18 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
52
52
|
})
|
|
53
53
|
]),
|
|
54
54
|
contentList: _(() => [
|
|
55
|
-
(k(!0), B(
|
|
56
|
-
var
|
|
57
|
-
return k(), b(
|
|
58
|
-
class:
|
|
59
|
-
"top-active": (
|
|
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
60
|
}),
|
|
61
61
|
"data-top-icon": n.icon,
|
|
62
62
|
title: n.title,
|
|
63
63
|
onClick: () => o.value = [n.value]
|
|
64
64
|
}, {
|
|
65
65
|
default: _(() => [
|
|
66
|
-
|
|
66
|
+
he("span", je, K(n.content), 1)
|
|
67
67
|
]),
|
|
68
68
|
_: 2
|
|
69
69
|
}, 1032, ["class", "data-top-icon", "title", "onClick"]);
|
|
@@ -82,7 +82,12 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
82
82
|
}, null, 8, ["modelValue", "items", "selectAllItem"]))
|
|
83
83
|
]));
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
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 = {
|
|
86
91
|
0: "Yandex",
|
|
87
92
|
1: "Google",
|
|
88
93
|
4: "YouTube",
|
|
@@ -92,57 +97,60 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
92
97
|
9: "GoogleStore",
|
|
93
98
|
20: "Yandex.com",
|
|
94
99
|
21: "Yandex.com.tr"
|
|
95
|
-
},
|
|
96
|
-
key:
|
|
100
|
+
}, me = {
|
|
101
|
+
key: p,
|
|
97
102
|
name: "--",
|
|
98
|
-
index:
|
|
99
|
-
},
|
|
100
|
-
key:
|
|
103
|
+
index: p
|
|
104
|
+
}, xe = {
|
|
105
|
+
key: p,
|
|
101
106
|
name: "--",
|
|
102
|
-
regions: [
|
|
103
|
-
regionByIndex: /* @__PURE__ */ new Map([[
|
|
104
|
-
},
|
|
105
|
-
key:
|
|
107
|
+
regions: [me],
|
|
108
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, me]])
|
|
109
|
+
}, ae = {
|
|
110
|
+
key: p,
|
|
106
111
|
name: "Autoselect",
|
|
107
|
-
index:
|
|
112
|
+
index: p
|
|
108
113
|
}, oe = {
|
|
109
|
-
key:
|
|
114
|
+
key: p,
|
|
110
115
|
name: "Autoselect",
|
|
111
|
-
regions: [
|
|
112
|
-
regionByIndex: /* @__PURE__ */ new Map([[
|
|
113
|
-
},
|
|
116
|
+
regions: [ae],
|
|
117
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, ae]])
|
|
118
|
+
}, fe = {
|
|
114
119
|
countryCode: "00",
|
|
115
120
|
depth: 1,
|
|
116
121
|
device: 0,
|
|
117
|
-
key:
|
|
118
|
-
index:
|
|
122
|
+
key: te,
|
|
123
|
+
index: te,
|
|
119
124
|
lang: "ru",
|
|
120
125
|
name: "Without region"
|
|
121
|
-
},
|
|
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 = []) => {
|
|
122
127
|
let e;
|
|
123
|
-
return t ? e = Ye(o) : e =
|
|
124
|
-
},
|
|
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) => {
|
|
125
130
|
const i = /* @__PURE__ */ new Map();
|
|
126
131
|
return t.forEach((a) => {
|
|
127
132
|
if (!a.enabled || e && typeof a.key == "number" && a.key > 1) return;
|
|
128
133
|
const n = { ...a };
|
|
129
|
-
n.regionByIndex = /* @__PURE__ */ new Map(), a.regions && a.regions.forEach((
|
|
130
|
-
if (l && !
|
|
131
|
-
const
|
|
132
|
-
n.regionByIndex.set(
|
|
133
|
-
}), !n.regionByIndex.size &&
|
|
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);
|
|
134
142
|
}), o.forEach((a) => {
|
|
135
143
|
if (i.has(a)) return;
|
|
136
144
|
const n = {
|
|
137
145
|
key: a,
|
|
138
|
-
name:
|
|
146
|
+
name: ze[a],
|
|
139
147
|
regions: [],
|
|
140
148
|
regionByIndex: /* @__PURE__ */ new Map()
|
|
141
149
|
};
|
|
142
150
|
i.set(n.key, n);
|
|
143
151
|
}), i;
|
|
144
152
|
}, Ye = (t) => {
|
|
145
|
-
const l =
|
|
153
|
+
const l = Ce(t, !1, [0, 1], !0);
|
|
146
154
|
if (l.has(2)) {
|
|
147
155
|
const o = l.get(2);
|
|
148
156
|
o && (o.regionByIndex = /* @__PURE__ */ new Map());
|
|
@@ -153,7 +161,7 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
153
161
|
o.regionByIndex.set(e.index, e);
|
|
154
162
|
}), l;
|
|
155
163
|
}, He = (t, l, o = []) => {
|
|
156
|
-
const e =
|
|
164
|
+
const e = ke(t, !1, o);
|
|
157
165
|
let i;
|
|
158
166
|
return e.forEach((a) => {
|
|
159
167
|
if (!(l.searcher_key !== void 0 && l.searcher_key != a.key) && a.regions && (a.regions.forEach((n) => {
|
|
@@ -162,27 +170,27 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
162
170
|
}), i))
|
|
163
171
|
return !1;
|
|
164
172
|
}), i;
|
|
165
|
-
}, Qe =
|
|
166
|
-
const o =
|
|
173
|
+
}, Qe = Ne(() => import("../.chunks/dialog_selectorRegions-Zlm6K2mk.es.js")), Xe = (t, l) => {
|
|
174
|
+
const o = R(), e = F(l.value.keys().next().value ?? p), i = E(() => {
|
|
167
175
|
const a = /* @__PURE__ */ new Map();
|
|
168
176
|
if (l.value.forEach((n) => {
|
|
169
|
-
let
|
|
177
|
+
let u = {
|
|
170
178
|
value: n.key,
|
|
171
179
|
title: n.name
|
|
172
180
|
};
|
|
173
|
-
t.addSearcherIcon && (
|
|
174
|
-
}), t.addCompare && !a.has(
|
|
181
|
+
t.addSearcherIcon && (u.icon = De(n.key)), a.set(n.key, u);
|
|
182
|
+
}), t.addCompare && !a.has(p)) {
|
|
175
183
|
const n = {
|
|
176
184
|
value: "",
|
|
177
185
|
title: "--------------------",
|
|
178
186
|
disabled: !0
|
|
179
187
|
};
|
|
180
188
|
a.set(n.value, n);
|
|
181
|
-
const
|
|
182
|
-
value:
|
|
189
|
+
const u = {
|
|
190
|
+
value: M,
|
|
183
191
|
title: o.Common.Compare
|
|
184
192
|
};
|
|
185
|
-
a.set(
|
|
193
|
+
a.set(u.value, u);
|
|
186
194
|
}
|
|
187
195
|
return a;
|
|
188
196
|
});
|
|
@@ -191,62 +199,62 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
191
199
|
optionBySearcherKey: i
|
|
192
200
|
};
|
|
193
201
|
}, Ze = (t, l) => {
|
|
194
|
-
var a, n,
|
|
195
|
-
const o =
|
|
196
|
-
t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value ===
|
|
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);
|
|
197
205
|
const i = E(() => {
|
|
198
|
-
var
|
|
199
|
-
const
|
|
200
|
-
return (
|
|
201
|
-
let r =
|
|
206
|
+
var h;
|
|
207
|
+
const f = /* @__PURE__ */ new Map();
|
|
208
|
+
return (h = l.value.regionByIndex) == null || h.forEach((S) => {
|
|
209
|
+
let r = S.name;
|
|
202
210
|
if (t.forFrequency) {
|
|
203
|
-
const
|
|
204
|
-
value:
|
|
211
|
+
const x = {
|
|
212
|
+
value: S.key,
|
|
205
213
|
title: r
|
|
206
214
|
};
|
|
207
|
-
|
|
215
|
+
f.has(S.key) || f.set(S.key, x);
|
|
208
216
|
return;
|
|
209
217
|
}
|
|
210
|
-
|
|
211
|
-
const g =
|
|
218
|
+
S.device && (r += " (" + o.Common["Device_" + S.device] + ")");
|
|
219
|
+
const g = Fe(l.value.key || 0, S.lang ?? "");
|
|
212
220
|
g && (r += " / " + g);
|
|
213
|
-
const
|
|
214
|
-
value:
|
|
221
|
+
const d = {
|
|
222
|
+
value: S.index,
|
|
215
223
|
title: r,
|
|
216
|
-
icon:
|
|
224
|
+
icon: S.device ? qe(S.device) : void 0
|
|
217
225
|
};
|
|
218
|
-
|
|
219
|
-
}),
|
|
226
|
+
f.set(S.index, d);
|
|
227
|
+
}), f;
|
|
220
228
|
});
|
|
221
|
-
return
|
|
222
|
-
var
|
|
223
|
-
if (t.onlySearcher || e.value !== void 0 &&
|
|
229
|
+
return w(i, (f, h) => {
|
|
230
|
+
var d;
|
|
231
|
+
if (t.onlySearcher || e.value !== void 0 && f.get(e.value))
|
|
224
232
|
return;
|
|
225
|
-
let
|
|
226
|
-
if (e.value ===
|
|
227
|
-
e.value =
|
|
233
|
+
let S = f.keys().next().value;
|
|
234
|
+
if (e.value === p || S === p) {
|
|
235
|
+
e.value = S;
|
|
228
236
|
return;
|
|
229
237
|
}
|
|
230
|
-
let r = ((
|
|
231
|
-
for (const [
|
|
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()) {
|
|
232
240
|
const C = T.title;
|
|
233
|
-
if (typeof C != "string" || typeof
|
|
241
|
+
if (typeof C != "string" || typeof x == "string")
|
|
234
242
|
break;
|
|
235
243
|
if (C === r) {
|
|
236
|
-
|
|
244
|
+
S = x;
|
|
237
245
|
break;
|
|
238
246
|
}
|
|
239
247
|
const V = new RegExp(` \\((${o.Common.Device_1}|${o.Common.Device_2})\\)`);
|
|
240
|
-
let
|
|
241
|
-
C.indexOf(
|
|
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));
|
|
242
250
|
}
|
|
243
|
-
e.value =
|
|
251
|
+
e.value = S;
|
|
244
252
|
}), {
|
|
245
253
|
regionIndex: e,
|
|
246
254
|
optionByRegionIndex: i
|
|
247
255
|
};
|
|
248
256
|
}, et = (t, l, o) => {
|
|
249
|
-
const e =
|
|
257
|
+
const e = F([]), i = () => {
|
|
250
258
|
if (t.onlySearcher && l.value) {
|
|
251
259
|
e.value = Array.from(l.value.keys());
|
|
252
260
|
return;
|
|
@@ -261,55 +269,55 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
261
269
|
) ?? [];
|
|
262
270
|
} catch {
|
|
263
271
|
}
|
|
264
|
-
n.length && (n = n.filter((
|
|
272
|
+
n.length && (n = n.filter((u) => o.value.has(u))), n.length || (n = Array.from(o.value)), e.value = [...n];
|
|
265
273
|
}, a = () => {
|
|
266
274
|
e.value.length ? localStorage.setItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes", JSON.stringify(e.value)) : localStorage.removeItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes");
|
|
267
275
|
};
|
|
268
|
-
return
|
|
276
|
+
return w(e, () => {
|
|
269
277
|
a();
|
|
270
278
|
}), t.addCompare && i(), {
|
|
271
279
|
regionsIndexes: e
|
|
272
280
|
};
|
|
273
281
|
}, tt = (t) => {
|
|
274
|
-
const l = E(() =>
|
|
282
|
+
const l = E(() => ke(t.forFrequency, t.autoRegion, t.searchers)), o = E(() => l.value.get(i.searcherKey.value) || xe), e = E(() => {
|
|
275
283
|
const r = /* @__PURE__ */ new Set();
|
|
276
284
|
return l.value.forEach((g) => {
|
|
277
|
-
g.regionByIndex.forEach((
|
|
278
|
-
|
|
285
|
+
g.regionByIndex.forEach((d) => {
|
|
286
|
+
d.index !== te && d.index !== p && r.add(d.index);
|
|
279
287
|
});
|
|
280
288
|
}), r;
|
|
281
289
|
}), i = Xe(t, l), a = Ze(t, o), n = et(t, l, e);
|
|
282
|
-
|
|
283
|
-
var g,
|
|
284
|
-
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 ===
|
|
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;
|
|
285
293
|
let r = l.value.keys().next().value;
|
|
286
294
|
l.value.forEach((C) => {
|
|
287
|
-
var V,
|
|
295
|
+
var V, m, s;
|
|
288
296
|
if (t.onlySearcher && C.key === i.searcherKey.value) {
|
|
289
297
|
r = i.searcherKey.value;
|
|
290
298
|
return;
|
|
291
299
|
}
|
|
292
300
|
if (a.regionIndex.value && ((V = C.regionByIndex) != null && V.has(a.regionIndex.value)) && (r = C.key), !t.onlySearcher) {
|
|
293
301
|
let c;
|
|
294
|
-
r !== void 0 && (c = (
|
|
302
|
+
r !== void 0 && (c = (m = l.value.get(r)) == null ? void 0 : m.regionByIndex);
|
|
295
303
|
const v = (s = l.value.get(C.key)) == null ? void 0 : s.regionByIndex;
|
|
296
|
-
c != null && c.has(
|
|
304
|
+
c != null && c.has(p) && !(v != null && v.has(p)) && (r = C.key);
|
|
297
305
|
}
|
|
298
|
-
}), r !== void 0 && (i.searcherKey.value = r), a.regionIndex.value !== void 0 && !((
|
|
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);
|
|
299
307
|
}, { immediate: !0 });
|
|
300
|
-
const
|
|
301
|
-
if (!(i.searcherKey.value ===
|
|
308
|
+
const u = () => {
|
|
309
|
+
if (!(i.searcherKey.value === M || i.searcherKey.value === p))
|
|
302
310
|
return i.searcherKey.value;
|
|
303
|
-
},
|
|
304
|
-
if (t.onlySearcher || a.regionIndex.value ===
|
|
311
|
+
}, f = () => {
|
|
312
|
+
if (t.onlySearcher || a.regionIndex.value === p) return;
|
|
305
313
|
let r = a.regionIndex.value;
|
|
306
314
|
if (t.forFrequency) {
|
|
307
|
-
const g = a.regionIndex.value,
|
|
308
|
-
r =
|
|
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;
|
|
309
317
|
}
|
|
310
318
|
return r;
|
|
311
|
-
},
|
|
312
|
-
const r =
|
|
319
|
+
}, h = () => {
|
|
320
|
+
const r = u();
|
|
313
321
|
if (r !== void 0)
|
|
314
322
|
return l.value.get(r);
|
|
315
323
|
};
|
|
@@ -319,17 +327,17 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
319
327
|
compare: n,
|
|
320
328
|
searcherByKey: l,
|
|
321
329
|
allRegionsIndexes: e,
|
|
322
|
-
getSearcher:
|
|
330
|
+
getSearcher: h,
|
|
323
331
|
getRegion: () => {
|
|
324
|
-
var g,
|
|
325
|
-
const r =
|
|
332
|
+
var g, d;
|
|
333
|
+
const r = f();
|
|
326
334
|
if (r !== void 0)
|
|
327
|
-
return (
|
|
335
|
+
return (d = (g = h()) == null ? void 0 : g.regionByIndex) == null ? void 0 : d.get(r);
|
|
328
336
|
}
|
|
329
337
|
};
|
|
330
|
-
},
|
|
338
|
+
}, ht = /* @__PURE__ */ P({
|
|
331
339
|
__name: "selectorRegion",
|
|
332
|
-
props: /* @__PURE__ */
|
|
340
|
+
props: /* @__PURE__ */ N({
|
|
333
341
|
projectId: {},
|
|
334
342
|
searchers: { default: () => [] },
|
|
335
343
|
modelValue: {},
|
|
@@ -349,63 +357,63 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
349
357
|
}),
|
|
350
358
|
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
351
359
|
setup(t, { expose: l }) {
|
|
352
|
-
const o = t, e =
|
|
360
|
+
const o = t, e = D(t, "modelValue"), i = D(t, "modelValueSingle"), {
|
|
353
361
|
selectSearcher: a,
|
|
354
362
|
selectRegion: n,
|
|
355
|
-
compare:
|
|
356
|
-
searcherByKey:
|
|
357
|
-
allRegionsIndexes:
|
|
358
|
-
getSearcher:
|
|
363
|
+
compare: u,
|
|
364
|
+
searcherByKey: f,
|
|
365
|
+
allRegionsIndexes: h,
|
|
366
|
+
getSearcher: S,
|
|
359
367
|
getRegion: r
|
|
360
368
|
} = tt(o), g = () => {
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
T.enabled &&
|
|
369
|
+
const d = [];
|
|
370
|
+
f.value.forEach((x) => {
|
|
371
|
+
x.enabled && x.regions.forEach((T) => {
|
|
372
|
+
T.enabled && d.push(T);
|
|
365
373
|
});
|
|
366
374
|
}), Qe.open("selectorRegions", {
|
|
367
|
-
regions:
|
|
368
|
-
regionsIndexes:
|
|
369
|
-
"@update:regionsIndexes": (
|
|
375
|
+
regions: d,
|
|
376
|
+
regionsIndexes: u.regionsIndexes.value,
|
|
377
|
+
"@update:regionsIndexes": (x) => u.regionsIndexes.value = x
|
|
370
378
|
});
|
|
371
379
|
};
|
|
372
|
-
return
|
|
373
|
-
if (a.searcherKey.value ===
|
|
374
|
-
if (JSON.stringify(e.value) === JSON.stringify(
|
|
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))
|
|
375
383
|
return;
|
|
376
|
-
e.value = [...
|
|
384
|
+
e.value = [...u.regionsIndexes.value];
|
|
377
385
|
} else
|
|
378
|
-
e.value = [
|
|
379
|
-
!o.onlySearcher && !
|
|
380
|
-
}), i.value &&
|
|
381
|
-
e.value = [i.value];
|
|
382
|
-
}, { immediate: !0 }),
|
|
383
|
-
var
|
|
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;
|
|
384
392
|
if (e.value[0] && (i.value = e.value[0]), o.onlySearcher) {
|
|
385
|
-
if (!e.value.length || e.value.length === 1 && !
|
|
386
|
-
let
|
|
387
|
-
|
|
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;
|
|
388
396
|
return;
|
|
389
397
|
}
|
|
390
|
-
if (e.value.length > 1 && JSON.stringify(e.value) !== JSON.stringify(
|
|
391
|
-
e.value = [...
|
|
398
|
+
if (e.value.length > 1 && JSON.stringify(e.value) !== JSON.stringify(u.regionsIndexes.value)) {
|
|
399
|
+
e.value = [...u.regionsIndexes.value];
|
|
392
400
|
return;
|
|
393
401
|
}
|
|
394
402
|
} else {
|
|
395
|
-
let
|
|
396
|
-
if (o.forFrequency && (s = (V = (C = (T =
|
|
397
|
-
s !== void 0 &&
|
|
398
|
-
else if (
|
|
399
|
-
let c =
|
|
400
|
-
o.forFrequency && (c = /* @__PURE__ */ new Set(),
|
|
401
|
-
v.regionByIndex.forEach((
|
|
402
|
-
|
|
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);
|
|
403
411
|
});
|
|
404
|
-
})),
|
|
412
|
+
})), c.has(m[0]) || (m = [], s !== void 0 && m.push(s));
|
|
405
413
|
} else
|
|
406
|
-
|
|
407
|
-
if (JSON.stringify(e.value) !== JSON.stringify(
|
|
408
|
-
e.value =
|
|
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;
|
|
409
417
|
return;
|
|
410
418
|
}
|
|
411
419
|
}
|
|
@@ -415,63 +423,124 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
415
423
|
a.searcherKey.value = e.value[0];
|
|
416
424
|
return;
|
|
417
425
|
}
|
|
418
|
-
a.searcherKey.value =
|
|
426
|
+
a.searcherKey.value = M;
|
|
419
427
|
return;
|
|
420
|
-
} else
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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)
|
|
427
441
|
break;
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
} else
|
|
434
|
-
a.searcherKey.value = -1, d.regionsIndexes.value = [...e.value];
|
|
442
|
+
}
|
|
443
|
+
m !== void 0 && (a.searcherKey.value = m);
|
|
444
|
+
} else
|
|
445
|
+
a.searcherKey.value = M, u.regionsIndexes.value = [...e.value];
|
|
446
|
+
}
|
|
435
447
|
}, { immediate: !0 }), l({
|
|
436
|
-
getSearcher:
|
|
448
|
+
getSearcher: S,
|
|
437
449
|
getRegion: r
|
|
438
|
-
}), (
|
|
439
|
-
class:
|
|
450
|
+
}), (d, x) => (k(), B("div", {
|
|
451
|
+
class: X({
|
|
440
452
|
"top-selectorRegion": !0,
|
|
441
|
-
"top-selectorRegion-onlySearcher":
|
|
453
|
+
"top-selectorRegion-onlySearcher": d.onlySearcher
|
|
442
454
|
})
|
|
443
455
|
}, [
|
|
444
|
-
|
|
456
|
+
A(re, {
|
|
445
457
|
options: y(a).optionBySearcherKey.value,
|
|
446
458
|
modelValue: y(a).searcherKey.value,
|
|
447
|
-
"onUpdate:modelValue":
|
|
459
|
+
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(a).searcherKey.value = T),
|
|
448
460
|
name: "searcher_key",
|
|
449
|
-
addChanger:
|
|
461
|
+
addChanger: d.addChanger
|
|
450
462
|
}, null, 8, ["options", "modelValue", "addChanger"]),
|
|
451
|
-
!
|
|
463
|
+
!d.onlySearcher && y(a).searcherKey.value !== y(M) ? (k(), b(re, {
|
|
452
464
|
key: 0,
|
|
453
465
|
class: "top-select-region",
|
|
454
466
|
options: y(n).optionByRegionIndex.value,
|
|
455
467
|
modelValue: y(n).regionIndex.value,
|
|
456
|
-
"onUpdate:modelValue":
|
|
457
|
-
name:
|
|
458
|
-
addChanger:
|
|
459
|
-
"data-top-icon":
|
|
460
|
-
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) :
|
|
461
|
-
|
|
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, {
|
|
462
474
|
key: 1,
|
|
463
475
|
name: "compare",
|
|
464
476
|
onClick: g,
|
|
465
|
-
"data-count-compare-regions-indexes": y(
|
|
477
|
+
"data-count-compare-regions-indexes": y(u).regionsIndexes.value.length
|
|
466
478
|
}, {
|
|
467
479
|
default: _(() => [
|
|
468
|
-
|
|
480
|
+
G(K(d.$i18n.Common.Selected_regions), 1)
|
|
469
481
|
]),
|
|
470
482
|
_: 1
|
|
471
|
-
}, 8, ["data-count-compare-regions-indexes"])) :
|
|
483
|
+
}, 8, ["data-count-compare-regions-indexes"])) : q("", !0)
|
|
472
484
|
], 2));
|
|
473
485
|
}
|
|
474
|
-
}),
|
|
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 = [
|
|
475
544
|
{
|
|
476
545
|
id: "1",
|
|
477
546
|
name: "Without Tag",
|
|
@@ -522,12 +591,7 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
522
591
|
name: "Turquoise",
|
|
523
592
|
color_id: "10"
|
|
524
593
|
}
|
|
525
|
-
],
|
|
526
|
-
t = H(t);
|
|
527
|
-
const o = l.find((e) => e.id === t);
|
|
528
|
-
if (o)
|
|
529
|
-
return o;
|
|
530
|
-
}, nt = ["data-tag_id", "data-tag_color_id", "title"], le = /* @__PURE__ */ q({
|
|
594
|
+
], lt = ["data-tag_id", "data-tag_color_id", "title"], ie = /* @__PURE__ */ P({
|
|
531
595
|
__name: "tagIcon",
|
|
532
596
|
props: {
|
|
533
597
|
id: {},
|
|
@@ -537,7 +601,7 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
537
601
|
},
|
|
538
602
|
setup(t) {
|
|
539
603
|
return (l, o) => (k(), B("div", {
|
|
540
|
-
class:
|
|
604
|
+
class: X({
|
|
541
605
|
"top-tagSelector_tagIcon": !0,
|
|
542
606
|
"top-tagSelector-active": !!l.state,
|
|
543
607
|
"top-tagSelector-excluded": l.state === "excluded"
|
|
@@ -545,11 +609,11 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
545
609
|
"data-tag_id": l.id,
|
|
546
610
|
"data-tag_color_id": l.colorId,
|
|
547
611
|
title: l.name
|
|
548
|
-
}, null, 10,
|
|
612
|
+
}, null, 10, lt));
|
|
549
613
|
}
|
|
550
|
-
}),
|
|
614
|
+
}), nt = ["contenteditable", "onKeydown"], pe = /* @__PURE__ */ P({
|
|
551
615
|
__name: "tagPopupListItem",
|
|
552
|
-
props: /* @__PURE__ */
|
|
616
|
+
props: /* @__PURE__ */ N({
|
|
553
617
|
editable: { type: Boolean },
|
|
554
618
|
disabled: { type: Boolean },
|
|
555
619
|
canExclude: { type: Boolean },
|
|
@@ -563,76 +627,76 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
563
627
|
},
|
|
564
628
|
nameModifiers: {}
|
|
565
629
|
}),
|
|
566
|
-
emits: /* @__PURE__ */
|
|
630
|
+
emits: /* @__PURE__ */ N(["update:name", "unselect", "exclude", "select"], ["update:name"]),
|
|
567
631
|
setup(t, { emit: l }) {
|
|
568
|
-
const o = t, e = l, i =
|
|
569
|
-
contenteditable:
|
|
632
|
+
const o = t, e = l, i = D(t, "name"), a = F(null), n = E(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
|
|
633
|
+
contenteditable: u.value,
|
|
570
634
|
onpaste: (g) => g.preventDefault()
|
|
571
|
-
} : {}),
|
|
635
|
+
} : {}), u = F(!1), f = async () => {
|
|
572
636
|
var g;
|
|
573
|
-
|
|
574
|
-
},
|
|
575
|
-
var
|
|
576
|
-
const g = (
|
|
577
|
-
if (!g) return
|
|
578
|
-
a.value && (a.value.innerText = g),
|
|
579
|
-
},
|
|
580
|
-
a.value && (a.value.innerText = o.name),
|
|
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;
|
|
581
645
|
}, r = (g) => {
|
|
582
|
-
if (
|
|
583
|
-
let
|
|
584
|
-
o.canExclude && (g.ctrlKey || g.metaKey) && (
|
|
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");
|
|
585
649
|
};
|
|
586
|
-
return (g,
|
|
587
|
-
class:
|
|
650
|
+
return (g, d) => (k(), b(ue, {
|
|
651
|
+
class: X({
|
|
588
652
|
"top-tagSelector_tagListItem": !0,
|
|
589
|
-
"top-tagSelector_tagListItem-inEdit":
|
|
653
|
+
"top-tagSelector_tagListItem-inEdit": u.value,
|
|
590
654
|
"top-tagSelector_tagListItem-disabled": g.disabled,
|
|
591
655
|
"top-tagSelector_tagListItem-canExclude": g.canExclude,
|
|
592
656
|
"top-tagSelector-active": !!g.state,
|
|
593
657
|
"top-tagSelector-excluded": g.state === "excluded"
|
|
594
658
|
}),
|
|
595
|
-
onClick:
|
|
659
|
+
onClick: z(r, ["stop"])
|
|
596
660
|
}, {
|
|
597
661
|
default: _(() => [
|
|
598
|
-
|
|
662
|
+
A(ie, {
|
|
599
663
|
id: g.id,
|
|
600
664
|
name: i.value,
|
|
601
665
|
colorId: g.colorId,
|
|
602
666
|
state: g.state
|
|
603
667
|
}, null, 8, ["id", "name", "colorId", "state"]),
|
|
604
|
-
|
|
668
|
+
he("span", Se({
|
|
605
669
|
ref_key: "elName",
|
|
606
670
|
ref: a,
|
|
607
671
|
class: "top-tagSelector_tagListItemName",
|
|
608
|
-
contenteditable:
|
|
672
|
+
contenteditable: u.value ? "plaintext-only" : !1
|
|
609
673
|
}, n.value, {
|
|
610
674
|
onKeydown: [
|
|
611
|
-
|
|
612
|
-
|
|
675
|
+
ge(z(h, ["stop"]), ["enter"]),
|
|
676
|
+
ge(z(S, ["stop"]), ["esc"])
|
|
613
677
|
]
|
|
614
|
-
}),
|
|
615
|
-
g.editable ? (k(), B(
|
|
616
|
-
|
|
678
|
+
}), K(i.value), 17, nt),
|
|
679
|
+
g.editable ? (k(), B(Y, { key: 0 }, [
|
|
680
|
+
u.value ? (k(), B("span", {
|
|
617
681
|
key: 1,
|
|
618
682
|
"data-top-icon": "",
|
|
619
683
|
class: "top-tagSelector_edit",
|
|
620
|
-
onClick:
|
|
684
|
+
onClick: z(h, ["stop"])
|
|
621
685
|
})) : (k(), B("span", {
|
|
622
686
|
key: 0,
|
|
623
|
-
"data-top-icon": "
|
|
687
|
+
"data-top-icon": "",
|
|
624
688
|
class: "top-tagSelector_edit",
|
|
625
|
-
onClick:
|
|
689
|
+
onClick: f
|
|
626
690
|
}))
|
|
627
|
-
], 64)) :
|
|
691
|
+
], 64)) : q("", !0)
|
|
628
692
|
]),
|
|
629
693
|
_: 1
|
|
630
694
|
}, 8, ["class"]));
|
|
631
695
|
}
|
|
632
|
-
}),
|
|
696
|
+
}), ot = { key: 1 }, rt = /* @__PURE__ */ P({
|
|
633
697
|
inheritAttrs: !1,
|
|
634
698
|
__name: "popupOpener",
|
|
635
|
-
props: /* @__PURE__ */
|
|
699
|
+
props: /* @__PURE__ */ N({
|
|
636
700
|
modelValue: {},
|
|
637
701
|
id: {},
|
|
638
702
|
tags: {},
|
|
@@ -640,7 +704,8 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
640
704
|
targetId: {},
|
|
641
705
|
filters: {},
|
|
642
706
|
useTopButton: { type: Boolean },
|
|
643
|
-
payload: {}
|
|
707
|
+
payload: {},
|
|
708
|
+
styling: {}
|
|
644
709
|
}, {
|
|
645
710
|
modelValue: {
|
|
646
711
|
required: !0
|
|
@@ -649,18 +714,18 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
649
714
|
}),
|
|
650
715
|
emits: ["update:modelValue"],
|
|
651
716
|
setup(t) {
|
|
652
|
-
const l = t, o =
|
|
717
|
+
const l = t, o = D(t, "modelValue"), e = l.useTopButton ? H : "div", i = l.useTopButton ? "html" : "default", a = {
|
|
653
718
|
model: o,
|
|
654
719
|
mode: l.mode,
|
|
655
720
|
targetId: l.targetId,
|
|
656
721
|
filters: l.filters,
|
|
657
722
|
payload: l.payload
|
|
658
723
|
};
|
|
659
|
-
return (n,
|
|
660
|
-
const
|
|
661
|
-
return k(), b(
|
|
724
|
+
return (n, u) => {
|
|
725
|
+
const f = Ve("top-data");
|
|
726
|
+
return k(), b(Re, { id: n.id }, {
|
|
662
727
|
default: _(() => [
|
|
663
|
-
|
|
728
|
+
Ee((k(), b(Me(y(e)), Se({
|
|
664
729
|
class: {
|
|
665
730
|
"top-tagSelector": !0,
|
|
666
731
|
"top-tagSelector-filter": l.mode === "filter",
|
|
@@ -670,40 +735,40 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
670
735
|
"top-tagSelector-toTwoLine": o.value.length > 5
|
|
671
736
|
},
|
|
672
737
|
color: "theme",
|
|
673
|
-
styling:
|
|
738
|
+
styling: n.styling
|
|
674
739
|
}, n.$attrs), {
|
|
675
740
|
[y(i)]: _(() => [
|
|
676
|
-
!o.value.length && n.mode === "filter" ? (k(), b(
|
|
741
|
+
!o.value.length && n.mode === "filter" ? (k(), b(ie, {
|
|
677
742
|
key: 0,
|
|
678
743
|
id: "all",
|
|
679
744
|
colorId: "",
|
|
680
745
|
name: n.$i18n.Common.All_tags ?? "",
|
|
681
746
|
state: ""
|
|
682
|
-
}, null, 8, ["name"])) :
|
|
683
|
-
n.mode === "setter" && n.filters ? (k(), B("div",
|
|
684
|
-
|
|
685
|
-
])) : (k(!0), B(
|
|
686
|
-
var
|
|
687
|
-
return k(), b(
|
|
688
|
-
id: y(
|
|
689
|
-
colorId: ((
|
|
690
|
-
name: ((r = y(
|
|
691
|
-
state: y(
|
|
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"
|
|
692
757
|
}, null, 8, ["id", "colorId", "name", "state"]);
|
|
693
758
|
}), 256))
|
|
694
759
|
]),
|
|
695
760
|
_: 2
|
|
696
|
-
}, 1040, ["class"])), [
|
|
697
|
-
[
|
|
761
|
+
}, 1040, ["class", "styling"])), [
|
|
762
|
+
[f, a, "topTagSelectorTarget"]
|
|
698
763
|
])
|
|
699
764
|
]),
|
|
700
765
|
_: 3
|
|
701
766
|
}, 8, ["id"]);
|
|
702
767
|
};
|
|
703
768
|
}
|
|
704
|
-
}),
|
|
769
|
+
}), xt = /* @__PURE__ */ P({
|
|
705
770
|
__name: "tagSelector",
|
|
706
|
-
props: /* @__PURE__ */
|
|
771
|
+
props: /* @__PURE__ */ N({
|
|
707
772
|
modelValue: {},
|
|
708
773
|
tags: {},
|
|
709
774
|
tagsEditable: { type: Boolean },
|
|
@@ -712,24 +777,25 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
712
777
|
singleMode: { type: Boolean },
|
|
713
778
|
requiredForSetter: { type: Boolean, default: !0 },
|
|
714
779
|
maxTagsForSetter: {},
|
|
715
|
-
emitDelay: { default: 500 }
|
|
780
|
+
emitDelay: { default: 500 },
|
|
781
|
+
styling: {}
|
|
716
782
|
}, {
|
|
717
783
|
modelValue: {
|
|
718
784
|
required: !0
|
|
719
785
|
},
|
|
720
786
|
modelModifiers: {},
|
|
721
787
|
tags: {
|
|
722
|
-
default:
|
|
788
|
+
default: Le(at)
|
|
723
789
|
},
|
|
724
790
|
tagsModifiers: {}
|
|
725
791
|
}),
|
|
726
|
-
emits: /* @__PURE__ */
|
|
792
|
+
emits: /* @__PURE__ */ N(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
|
|
727
793
|
setup(t, { emit: l }) {
|
|
728
|
-
const o =
|
|
794
|
+
const o = R(), e = t, i = D(t, "modelValue"), a = D(t, "tags"), n = l, u = Ae((s, c) => {
|
|
729
795
|
n(s, c);
|
|
730
796
|
}, e.emitDelay);
|
|
731
797
|
e.singleMode && !i.value.length && (i.value = [a.value[0].id]);
|
|
732
|
-
const
|
|
798
|
+
const f = e.id ?? "top-popup-id-" + Math.random(), h = F("add"), S = () => {
|
|
733
799
|
var v;
|
|
734
800
|
const s = " " + ((v = o.Common.Tags) == null ? void 0 : v.toLowerCase()), c = /* @__PURE__ */ new Map();
|
|
735
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;
|
|
@@ -741,27 +807,27 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
741
807
|
filters: void 0,
|
|
742
808
|
payload: void 0
|
|
743
809
|
});
|
|
744
|
-
|
|
745
|
-
|
|
810
|
+
w(i, () => {
|
|
811
|
+
u("selector", i.value);
|
|
746
812
|
});
|
|
747
813
|
const g = E(() => {
|
|
748
814
|
if (r.value.mode === "setter" && e.maxTagsForSetter && !r.value.filters)
|
|
749
815
|
return r.value.model.value.length >= e.maxTagsForSetter;
|
|
750
|
-
}),
|
|
816
|
+
}), d = (s) => {
|
|
751
817
|
if (s !== "all") {
|
|
752
818
|
if (r.value.model.value.includes(s)) return "selected";
|
|
753
|
-
if (r.value.model.value.includes(
|
|
819
|
+
if (r.value.model.value.includes(ve(s))) return "excluded";
|
|
754
820
|
}
|
|
755
821
|
return s === "all" && !r.value.model.value.length ? "selected" : "";
|
|
756
|
-
},
|
|
757
|
-
const v =
|
|
758
|
-
let
|
|
759
|
-
c === "select" &&
|
|
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) => {
|
|
760
826
|
if (!e.tags) return 0;
|
|
761
|
-
const
|
|
762
|
-
return
|
|
763
|
-
}), r.value.model.value =
|
|
764
|
-
tagsIds:
|
|
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,
|
|
765
831
|
targetId: r.value.targetId,
|
|
766
832
|
payload: r.value.payload
|
|
767
833
|
});
|
|
@@ -779,8 +845,8 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
779
845
|
}), n("tagsChanged", a.value);
|
|
780
846
|
}, V = (s) => {
|
|
781
847
|
var c;
|
|
782
|
-
if (r.value =
|
|
783
|
-
if (r.value.filters && (
|
|
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)) {
|
|
784
850
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
785
851
|
return;
|
|
786
852
|
}
|
|
@@ -791,85 +857,86 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
791
857
|
*/
|
|
792
858
|
cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
|
|
793
859
|
distance: 10,
|
|
794
|
-
stop: function(v,
|
|
860
|
+
stop: function(v, I) {
|
|
795
861
|
if (!a.value) return;
|
|
796
|
-
const
|
|
797
|
-
|
|
862
|
+
const L = $(I.item).parent().find("[data-tag_id]"), U = [];
|
|
863
|
+
L.each((Z, j) => {
|
|
798
864
|
if (!a.value) return;
|
|
799
|
-
const O = $(
|
|
800
|
-
|
|
801
|
-
}), a.value.sort((
|
|
802
|
-
const O =
|
|
803
|
-
return O -
|
|
804
|
-
}),
|
|
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);
|
|
805
871
|
}
|
|
806
872
|
});
|
|
807
|
-
},
|
|
873
|
+
}, m = (s) => {
|
|
808
874
|
var c;
|
|
809
875
|
(c = J.$) != null && c.ui.sortable && $(s.elPopup).data("ui-sortable") && $(s.elPopup).sortable("destroy");
|
|
810
876
|
};
|
|
811
|
-
return (s, c) => (k(), B(
|
|
812
|
-
|
|
813
|
-
class: "top-
|
|
877
|
+
return (s, c) => (k(), B(Y, null, [
|
|
878
|
+
A(rt, {
|
|
879
|
+
class: "top-as-selector",
|
|
814
880
|
modelValue: i.value,
|
|
815
881
|
"onUpdate:modelValue": c[0] || (c[0] = (v) => i.value = v),
|
|
816
|
-
id: y(
|
|
882
|
+
id: y(f),
|
|
817
883
|
tags: a.value,
|
|
884
|
+
styling: s.styling,
|
|
818
885
|
mode: "filter",
|
|
819
886
|
useTopButton: ""
|
|
820
|
-
}, null, 8, ["modelValue", "id", "tags"]),
|
|
821
|
-
|
|
822
|
-
id: y(
|
|
823
|
-
class:
|
|
887
|
+
}, null, 8, ["modelValue", "id", "tags", "styling"]),
|
|
888
|
+
A(Ie, {
|
|
889
|
+
id: y(f),
|
|
890
|
+
class: X(T.value),
|
|
824
891
|
onOpen: c[4] || (c[4] = (v) => V(v)),
|
|
825
|
-
onClose: c[5] || (c[5] = (v) =>
|
|
892
|
+
onClose: c[5] || (c[5] = (v) => m(v)),
|
|
826
893
|
"transition-duration": 50
|
|
827
|
-
},
|
|
894
|
+
}, we({
|
|
828
895
|
contentList: _(() => [
|
|
829
|
-
y(r).mode === "filter" && !s.singleMode ? (k(), b(
|
|
896
|
+
y(r).mode === "filter" && !s.singleMode ? (k(), b(pe, {
|
|
830
897
|
key: 0,
|
|
831
898
|
id: "all",
|
|
832
899
|
colorId: "",
|
|
833
900
|
name: s.$i18n.Common.All_tags ?? "",
|
|
834
901
|
state: y(r).model.value.length ? "" : "selected",
|
|
835
902
|
onSelect: c[3] || (c[3] = (v) => y(r).model.value = [])
|
|
836
|
-
}, null, 8, ["name", "state"])) :
|
|
837
|
-
(k(!0), B(
|
|
903
|
+
}, null, 8, ["name", "state"])) : q("", !0),
|
|
904
|
+
(k(!0), B(Y, null, se(a.value, (v) => (k(), b(pe, {
|
|
838
905
|
key: v.id,
|
|
839
906
|
id: v.id,
|
|
840
907
|
colorId: v.color_id,
|
|
841
908
|
name: v.name,
|
|
842
|
-
state:
|
|
909
|
+
state: d(v.id),
|
|
843
910
|
canExclude: y(r).mode === "filter" && !s.singleMode,
|
|
844
911
|
editable: s.tagsEditable,
|
|
845
|
-
disabled: g.value &&
|
|
846
|
-
onUnselect: (
|
|
847
|
-
onSelect: (
|
|
848
|
-
onExclude: (
|
|
849
|
-
"onUpdate:name": (
|
|
850
|
-
v.name =
|
|
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);
|
|
851
918
|
}
|
|
852
919
|
}, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
|
|
853
|
-
s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(
|
|
920
|
+
s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(ue, {
|
|
854
921
|
key: 1,
|
|
855
922
|
"data-top-icon": "",
|
|
856
|
-
onClick:
|
|
923
|
+
onClick: z(C, ["stop"])
|
|
857
924
|
}, {
|
|
858
925
|
default: _(() => [
|
|
859
|
-
|
|
926
|
+
G(K(s.$i18n.Common.Add), 1)
|
|
860
927
|
]),
|
|
861
928
|
_: 1
|
|
862
|
-
})) :
|
|
929
|
+
})) : q("", !0)
|
|
863
930
|
]),
|
|
864
931
|
_: 2
|
|
865
932
|
}, [
|
|
866
933
|
y(r).mode === "setter" && y(r).filters ? {
|
|
867
934
|
name: "header",
|
|
868
935
|
fn: _(() => [
|
|
869
|
-
|
|
870
|
-
modelValue:
|
|
871
|
-
"onUpdate:modelValue": c[1] || (c[1] = (v) =>
|
|
872
|
-
options:
|
|
936
|
+
A(re, {
|
|
937
|
+
modelValue: h.value,
|
|
938
|
+
"onUpdate:modelValue": c[1] || (c[1] = (v) => h.value = v),
|
|
939
|
+
options: S()
|
|
873
940
|
}, null, 8, ["modelValue", "options"])
|
|
874
941
|
]),
|
|
875
942
|
key: "0"
|
|
@@ -877,22 +944,22 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
877
944
|
y(r).mode === "setter" && y(r).filters ? {
|
|
878
945
|
name: "footer",
|
|
879
946
|
fn: _(() => [
|
|
880
|
-
|
|
947
|
+
A(H, { color: "theme" }, {
|
|
881
948
|
default: _(() => [
|
|
882
|
-
|
|
949
|
+
G(K(s.$i18n.Common.Cancel), 1)
|
|
883
950
|
]),
|
|
884
951
|
_: 1
|
|
885
952
|
}),
|
|
886
|
-
|
|
887
|
-
onClick: c[2] || (c[2] = (v) => y(
|
|
953
|
+
A(H, {
|
|
954
|
+
onClick: c[2] || (c[2] = (v) => y(u)("setter", {
|
|
888
955
|
tagsIds: y(r).model.value,
|
|
889
956
|
filters: y(r).filters,
|
|
890
|
-
filtersAction:
|
|
957
|
+
filtersAction: h.value,
|
|
891
958
|
payload: y(r).payload
|
|
892
959
|
}))
|
|
893
960
|
}, {
|
|
894
961
|
default: _(() => [
|
|
895
|
-
|
|
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)
|
|
896
963
|
]),
|
|
897
964
|
_: 1
|
|
898
965
|
})
|
|
@@ -902,75 +969,18 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
|
|
|
902
969
|
]), 1032, ["id", "class"])
|
|
903
970
|
], 64));
|
|
904
971
|
}
|
|
905
|
-
})
|
|
906
|
-
value: i.id,
|
|
907
|
-
title: i.url + ` [${i.id}]`,
|
|
908
|
-
icon: i.id === ue(l) ? "" : "",
|
|
909
|
-
content: i.name
|
|
910
|
-
}))), ht = (t, l, o) => {
|
|
911
|
-
l || (l = { id: t.id }), l.id = t.id;
|
|
912
|
-
const e = qe.genElPopupOpener("div", l);
|
|
913
|
-
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) => {
|
|
914
|
-
i.preventDefault(), i.stopPropagation(), e.onclick = null;
|
|
915
|
-
const a = D(t.modelValue), n = {
|
|
916
|
-
model: a,
|
|
917
|
-
mode: t.mode,
|
|
918
|
-
targetId: t.targetId,
|
|
919
|
-
filters: t.filters,
|
|
920
|
-
payload: t.payload
|
|
921
|
-
};
|
|
922
|
-
G(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ce(t.modelValue) || K(a, () => {
|
|
923
|
-
t.modelValue = a.value, Z(e, t, o);
|
|
924
|
-
}), e.click();
|
|
925
|
-
}, ce(t.modelValue) ? K(t.modelValue, () => Z(e, t, o)) : G(e, "topTagSelectorRender", (i) => {
|
|
926
|
-
t.modelValue = i;
|
|
927
|
-
const a = G(e, "topTagSelectorTarget");
|
|
928
|
-
a && (a.model.value = i), Z(e, t, o);
|
|
929
|
-
}), Z(e, t, o), e;
|
|
930
|
-
}, St = (t, l) => {
|
|
931
|
-
var o;
|
|
932
|
-
(o = G(t, "topTagSelectorRender")) == null || o(l);
|
|
933
|
-
}, Z = (t, l, o) => {
|
|
934
|
-
var i;
|
|
935
|
-
const e = y(l.modelValue);
|
|
936
|
-
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) {
|
|
937
|
-
t.innerHTML = `<div>${o}</div>`;
|
|
938
|
-
return;
|
|
939
|
-
}
|
|
940
|
-
if (t.innerHTML = "", !e.length && l.mode === "filter") {
|
|
941
|
-
const a = ve({
|
|
942
|
-
id: "all",
|
|
943
|
-
colorId: "",
|
|
944
|
-
name: ((i = A().Common) == null ? void 0 : i.All_tags) ?? "",
|
|
945
|
-
state: ""
|
|
946
|
-
});
|
|
947
|
-
t.append(a);
|
|
948
|
-
}
|
|
949
|
-
e.forEach((a) => {
|
|
950
|
-
var d, m;
|
|
951
|
-
const n = ve({
|
|
952
|
-
id: H(a),
|
|
953
|
-
colorId: ((d = ae(a, l.tags)) == null ? void 0 : d.color_id) ?? "",
|
|
954
|
-
name: ((m = ae(a, l.tags)) == null ? void 0 : m.name) ?? "",
|
|
955
|
-
state: H(a) === a ? "selected" : "excluded"
|
|
956
|
-
});
|
|
957
|
-
t.append(n);
|
|
958
|
-
});
|
|
959
|
-
}, ve = (t) => {
|
|
960
|
-
const l = document.createElement("div");
|
|
961
|
-
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;
|
|
962
|
-
}, It = je, xt = at, kt = it, Ct = ke, Tt = le;
|
|
972
|
+
});
|
|
963
973
|
export {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
974
|
+
yt as TopSelectorCompetitors,
|
|
975
|
+
ht as TopSelectorRegion,
|
|
976
|
+
xt as TopTagSelector,
|
|
977
|
+
rt as TopTagSelectorPopupOpener,
|
|
978
|
+
ie as TopTagSelectorTagIcon,
|
|
969
979
|
Qe as dialogSelectorRegions,
|
|
970
980
|
He as findRegion,
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
981
|
+
St as genElTopTagSelectorPopupOpener,
|
|
982
|
+
ke as genSearcherByKey,
|
|
983
|
+
It as renderElTopTagSelectorPopupOpener,
|
|
974
984
|
pt as useItemsFromCompetitors
|
|
975
985
|
};
|
|
976
986
|
//# sourceMappingURL=project.js.map
|