@topvisor/ui 1.1.0-addNativeDialog.10 → 1.1.0-addNativeDialog.12
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-DyAbOlfX.es.js → core-DwmZJeKo.es.js} +45 -45
- package/.chunks/{core-DyAbOlfX.es.js.map → core-DwmZJeKo.es.js.map} +1 -1
- package/.chunks/core-uFZ53eDz.amd.js +2 -0
- package/.chunks/{core-rNR04ITp.amd.js.map → core-uFZ53eDz.amd.js.map} +1 -1
- package/.chunks/{datepicker-U31BrqE_.es.js → datepicker-BiaXdEIn.es.js} +2 -2
- package/.chunks/{datepicker-U31BrqE_.es.js.map → datepicker-BiaXdEIn.es.js.map} +1 -1
- package/.chunks/{datepicker-DsKl-YZR.amd.js → datepicker-DUoArkDy.amd.js} +2 -2
- package/.chunks/{datepicker-DsKl-YZR.amd.js.map → datepicker-DUoArkDy.amd.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-D64IfJEs.amd.js → dialog_selectorRegions--uU_HPMU.amd.js} +2 -2
- package/.chunks/{dialog_selectorRegions-D64IfJEs.amd.js.map → dialog_selectorRegions--uU_HPMU.amd.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-BXNEJotg.es.js → dialog_selectorRegions-DKdrXyjJ.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-BXNEJotg.es.js.map → dialog_selectorRegions-DKdrXyjJ.es.js.map} +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-C7vi1i47.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-C7vi1i47.amd.js.map +1 -0
- package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DIVnPVQ4.es.js → dialogs.vue_vue_type_script_setup_true_lang-xvod3Gmp.es.js} +311 -307
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-xvod3Gmp.es.js.map +1 -0
- package/.chunks/{forms-DRhpgERJ.amd.js → forms-CgtkdwgA.amd.js} +3 -3
- package/.chunks/forms-CgtkdwgA.amd.js.map +1 -0
- package/.chunks/{forms-t2AEUjqg.es.js → forms-DarRVke_.es.js} +461 -467
- 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-BBcejshh.amd.js +2 -0
- package/.chunks/lazy-BBcejshh.amd.js.map +1 -0
- package/.chunks/lazy-gcvTGQlK.es.js +71 -0
- package/.chunks/lazy-gcvTGQlK.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js → listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js.map} +1 -1
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js → listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js} +4 -4
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js.map → listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js → menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js.map → menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js → menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js} +10 -10
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js.map → menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js.map} +1 -1
- package/.chunks/{notice-DQ9qFyQ2.amd.js → notice-CPtAnc7p.amd.js} +2 -2
- package/.chunks/{notice-DQ9qFyQ2.amd.js.map → notice-CPtAnc7p.amd.js.map} +1 -1
- package/.chunks/{notice-4bdzRXtl.es.js → notice-fno9saBY.es.js} +2 -2
- package/.chunks/{notice-4bdzRXtl.es.js.map → notice-fno9saBY.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-BVgw26Vp.es.js → page.vue_vue_type_script_setup_true_lang-DRvRAOmG.es.js} +14 -14
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-BVgw26Vp.es.js.map → page.vue_vue_type_script_setup_true_lang-DRvRAOmG.es.js.map} +1 -1
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DGHsC5Ii.amd.js → page.vue_vue_type_script_setup_true_lang-jdOhWtvA.amd.js} +2 -2
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-DGHsC5Ii.amd.js.map → page.vue_vue_type_script_setup_true_lang-jdOhWtvA.amd.js.map} +1 -1
- package/.chunks/{popup-DuraSW2f.es.js → popup-AG94kehM.es.js} +2 -2
- package/.chunks/{popup-DuraSW2f.es.js.map → popup-AG94kehM.es.js.map} +1 -1
- package/.chunks/{popup-IcMnYYXr.amd.js → popup-CtvJLWn3.amd.js} +2 -2
- package/.chunks/{popup-IcMnYYXr.amd.js.map → popup-CtvJLWn3.amd.js.map} +1 -1
- package/.chunks/{utils-BVONc_yb.amd.js → utils-BmI_WbPx.amd.js} +2 -2
- package/.chunks/{utils-BVONc_yb.amd.js.map → utils-BmI_WbPx.amd.js.map} +1 -1
- package/.chunks/{utils-BR_kFG05.es.js → utils-CjdLXxom.es.js} +2 -2
- package/.chunks/{utils-BR_kFG05.es.js.map → utils-CjdLXxom.es.js.map} +1 -1
- 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/api/additional.d.ts +2 -0
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.d.ts +2 -0
- package/api/index.js +117 -102
- package/api/index.js.map +1 -1
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.d.ts +2 -0
- package/charts/charts.js +11 -11
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.d.ts +2 -0
- package/core/app.js +5 -5
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.d.ts +2 -0
- package/dialog/dialog.js +2 -2
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.d.ts +2 -0
- package/extra/extra.js +3 -3
- package/extra/extra.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.d.ts +2 -0
- package/forms/forms.js +7 -7
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.d.ts +2 -0
- package/formsExt/formsExt.js +331 -322
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.d.ts +2 -0
- package/layout/layout.js +29 -29
- package/layout/layout.js.map +1 -1
- package/package.json +5 -10
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.d.ts +2 -0
- package/popup/popup.js +76 -108
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.d.ts +2 -0
- package/popup/worker.js +2 -2
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.d.ts +2 -0
- package/project/project.js +244 -244
- package/project/project.js.map +1 -1
- package/src/api/api/mocker/index.d.ts +9 -0
- package/src/api/api/tests/types.test-d.d.ts +1 -0
- package/{types → src}/api/api/types/api.d.ts +11 -6
- package/{types → src}/api/api/types/client/request.d.ts +6 -0
- package/{types → src}/api/api/types/field.d.ts +1 -1
- package/{types → src}/api/api/types/index.d.ts +1 -0
- package/src/api/api/types/mocker.d.ts +106 -0
- package/{types → src}/api/api/utils/common.d.ts +1 -1
- package/{types → src}/api/api/utils/filters.d.ts +1 -1
- package/{types → src}/api/api/utils/lazy.d.ts +10 -1
- package/src/components/charts/charts.d.ts +2 -0
- package/src/components/dialog/lib/types.d.ts +77 -0
- package/{types → src}/components/dialog/lib/utils.d.ts +8 -7
- package/{types → src}/components/dialog/lib/worker.d.ts +8 -4
- package/src/components/extra/extra.d.ts +1 -0
- package/src/components/forms/forms.d.ts +15 -0
- package/src/components/formsExt/formsExt.d.ts +8 -0
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
- package/{types → src}/components/formsExt/selector2/types.d.ts +15 -19
- package/src/components/layout/layout.d.ts +4 -0
- package/src/components/popup/popup.d.ts +7 -0
- package/src/components/project/project.d.ts +9 -0
- package/src/components/tabs/tabs.d.ts +3 -0
- package/src/components/tabsView/tabsView.d.ts +3 -0
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.d.ts +2 -0
- 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 +2 -0
- package/tabsView/tabsView.js +48 -47
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.d.ts +2 -0
- package/utils/clipboard.amd.js +1 -1
- package/utils/clipboard.d.ts +2 -0
- package/utils/clipboard.js +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.d.ts +2 -0
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.d.ts +2 -0
- package/utils/device.js +4 -4
- package/utils/dom.d.ts +6 -0
- package/utils/image.d.ts +2 -0
- package/utils/keyboard.d.ts +2 -0
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.d.ts +2 -0
- package/utils/lodash.js +1 -1
- package/utils/number.d.ts +2 -0
- package/utils/price.amd.js +1 -1
- package/utils/price.d.ts +2 -0
- package/utils/price.js +1 -1
- package/utils/route.d.ts +2 -0
- package/utils/scroll.d.ts +2 -0
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.d.ts +2 -0
- package/utils/searchers.js +3 -3
- package/utils/store.d.ts +2 -0
- package/utils/string.amd.js +1 -1
- package/utils/string.d.ts +2 -0
- package/utils/string.js +1 -1
- package/utils/system.d.ts +2 -0
- package/utils/url.d.ts +2 -0
- package/.chunks/core-rNR04ITp.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DIVnPVQ4.es.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-aLCfJKIO.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-aLCfJKIO.amd.js.map +0 -1
- package/.chunks/forms-DRhpgERJ.amd.js.map +0 -1
- package/.chunks/forms-t2AEUjqg.es.js.map +0 -1
- package/.chunks/lazy-CiM2Ny-s.amd.js +0 -2
- package/.chunks/lazy-CiM2Ny-s.amd.js.map +0 -1
- package/.chunks/lazy-Crun7esL.es.js +0 -39
- package/.chunks/lazy-Crun7esL.es.js.map +0 -1
- package/types/api/additional.d.ts +0 -2
- package/types/api/api/tests/model.d.ts +0 -0
- package/types/api/api/tests/test.d.ts +0 -16
- package/types/api/index.d.ts +0 -2
- package/types/charts/charts.d.ts +0 -2
- package/types/components/charts/charts.d.ts +0 -5
- package/types/components/dialog/lib/types.d.ts +0 -44
- package/types/components/extra/extra.d.ts +0 -3
- package/types/components/forms/forms.d.ts +0 -31
- package/types/components/formsExt/formsExt.d.ts +0 -17
- package/types/components/formsExt/selector2/composables/useAPI.d.ts +0 -30
- package/types/components/layout/layout.d.ts +0 -9
- package/types/components/popup/popup.d.ts +0 -15
- package/types/components/project/project.d.ts +0 -15
- package/types/components/tabs/tabs.d.ts +0 -7
- package/types/components/tabsView/tabsView.d.ts +0 -7
- package/types/dialog/dialog.d.ts +0 -2
- package/types/extra/extra.d.ts +0 -2
- package/types/for-delete/core.d.ts +0 -1
- package/types/for-delete/dark-positions.d.ts +0 -1
- package/types/for-delete/dark-th-positions.d.ts +0 -1
- package/types/for-delete/dark-th.d.ts +0 -1
- package/types/for-delete/dark.d.ts +0 -1
- package/types/for-delete/light-positions.d.ts +0 -1
- package/types/for-delete/light.d.ts +0 -1
- package/types/forms/forms.d.ts +0 -2
- package/types/formsExt/formsExt.d.ts +0 -2
- package/types/layout/layout.d.ts +0 -2
- package/types/popup/popup.d.ts +0 -2
- package/types/popup/worker.d.ts +0 -2
- package/types/project/project.d.ts +0 -2
- package/types/tabs/tabs.d.ts +0 -2
- package/types/tabsView/tabsView.d.ts +0 -2
- package/types/utils/check.d.ts +0 -2
- package/types/utils/clipboard.d.ts +0 -2
- package/types/utils/date.d.ts +0 -2
- package/types/utils/device.d.ts +0 -2
- package/types/utils/dom.d.ts +0 -6
- package/types/utils/image.d.ts +0 -2
- package/types/utils/keyboard.d.ts +0 -2
- package/types/utils/lodash.d.ts +0 -2
- package/types/utils/number.d.ts +0 -2
- package/types/utils/price.d.ts +0 -2
- package/types/utils/route.d.ts +0 -2
- package/types/utils/scroll.d.ts +0 -2
- package/types/utils/searchers.d.ts +0 -2
- package/types/utils/store.d.ts +0 -2
- package/types/utils/string.d.ts +0 -2
- package/types/utils/system.d.ts +0 -2
- package/types/utils/url.d.ts +0 -2
- package/assets/{popup.css → widgetInput.css} +0 -0
- package/{types/forms → forms}/helpers.d.ts +0 -0
- package/{types → src}/api/api/additional.d.ts +0 -0
- package/{types → src}/api/api/client/client.d.ts +0 -0
- package/{types → src}/api/api/client/request-options.d.ts +0 -0
- package/{types → src}/api/api/client/request.d.ts +0 -0
- package/{types → src}/api/api/index.d.ts +0 -0
- package/{types → src}/api/api/types/client/client.d.ts +0 -0
- package/{types → src}/api/api/types/client/middleware.d.ts +0 -0
- package/{types → src}/api/api/types/client/options.d.ts +0 -0
- package/{types → src}/api/api/types/client/request-context.d.ts +0 -0
- package/{types → src}/api/api/types/client/request-options.d.ts +0 -0
- package/{types → src}/api/api/types/ext.d.ts +0 -0
- package/{types → src}/api/api/types/schema.d.ts +0 -0
- package/{types → src}/api/api/types/tv.d.ts +4 -4
- /package/{types → src}/api/api/types/utils.d.ts +0 -0
- /package/{types → src}/api/api/utils/field.d.ts +0 -0
- /package/{types → src}/components/charts/miniChart/miniChart.vue.d.ts +0 -0
- /package/{types → src}/components/charts/miniChart/types.d.ts +0 -0
- /package/{types → src}/components/charts/miniChart/utils/consts.d.ts +0 -0
- /package/{types → src}/components/charts/miniCharts/miniCharts.d.ts +0 -0
- /package/{types → src}/components/charts/miniCharts/miniCharts.vue.d.ts +0 -0
- /package/{types → src}/components/core/notice/item/item.vue.d.ts +0 -0
- /package/{types → src}/components/core/notice/item/types.d.ts +0 -0
- /package/{types → src}/components/core/notice/notice.vue.d.ts +0 -0
- /package/{types → src}/components/core/notice/types.d.ts +0 -0
- /package/{types → src}/components/core/notice/utils.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/composables/dialogHandle.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/composables/types.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/composables/utils.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/dialog.vue.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/page/page.vue.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/page/types.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/pageComponent/types.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog/types.d.ts +0 -0
- /package/{types → src}/components/dialog/dialog.d.ts +0 -0
- /package/{types → src}/components/dialog/lib/utils.globalEvents.d.ts +0 -0
- /package/{types → src}/components/extra/rive/rive.vue.d.ts +0 -0
- /package/{types → src}/components/extra/rive/types.d.ts +0 -0
- /package/{types → src}/components/forms/avatar/avatar.vue.d.ts +0 -0
- /package/{types → src}/components/forms/avatar/types.d.ts +0 -0
- /package/{types → src}/components/forms/button/button.vue.d.ts +0 -0
- /package/{types → src}/components/forms/button/types.d.ts +0 -0
- /package/{types → src}/components/forms/caption/caption.vue.d.ts +0 -0
- /package/{types → src}/components/forms/caption/types.d.ts +0 -0
- /package/{types → src}/components/forms/checkbox/checkbox.vue.d.ts +0 -0
- /package/{types → src}/components/forms/checkbox/types.d.ts +0 -0
- /package/{types → src}/components/forms/controlLabel/controlLabel.vue.d.ts +0 -0
- /package/{types → src}/components/forms/controlLabel/types.d.ts +0 -0
- /package/{types → src}/components/forms/helpers.d.ts +0 -0
- /package/{types → src}/components/forms/hint/hint.vue.d.ts +0 -0
- /package/{types → src}/components/forms/hint/types.d.ts +0 -0
- /package/{types → src}/components/forms/input/input.vue.d.ts +0 -0
- /package/{types → src}/components/forms/input/types.d.ts +0 -0
- /package/{types → src}/components/forms/inputDate/datepicker.d.ts +0 -0
- /package/{types → src}/components/forms/inputDate/inputDate.vue.d.ts +0 -0
- /package/{types → src}/components/forms/inputDate/types.d.ts +0 -0
- /package/{types → src}/components/forms/inputRange/inputRange.vue.d.ts +0 -0
- /package/{types → src}/components/forms/inputRange/types.d.ts +0 -0
- /package/{types → src}/components/forms/loadbar/loadbar.vue.d.ts +0 -0
- /package/{types → src}/components/forms/preloader/preloader.vue.d.ts +0 -0
- /package/{types → src}/components/forms/preloader/types.d.ts +0 -0
- /package/{types → src}/components/forms/radio/radio.vue.d.ts +0 -0
- /package/{types → src}/components/forms/radio/types.d.ts +0 -0
- /package/{types → src}/components/forms/select/select.vue.d.ts +0 -0
- /package/{types → src}/components/forms/select/types.d.ts +0 -0
- /package/{types → src}/components/forms/switcher/switcher.vue.d.ts +0 -0
- /package/{types → src}/components/forms/switcher/types.d.ts +0 -0
- /package/{types → src}/components/forms/textarea/textarea.vue.d.ts +0 -0
- /package/{types → src}/components/forms/textarea/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/checkboxGroup/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/editArea/editArea.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/editArea/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/editInput/editInput.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/editInput/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/info/info.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/info/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/menu/menu.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/menu/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/policy/policy.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/policy/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/radioGroup/radioGroup.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/radioGroup/types.d.ts +0 -0
- /package/{types → src}/components/formsExt/selector2/composables/useMenu.d.ts +0 -0
- /package/{types → src}/components/formsExt/selector2/itemMulti.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/selector2/selector2.vue.d.ts +0 -0
- /package/{types → src}/components/formsExt/selector2/utils.d.ts +0 -0
- /package/{types → src}/components/layout/islandRows/islandRows.vue.d.ts +0 -0
- /package/{types → src}/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
- /package/{types → src}/components/layout/islandRows/islandRowsRow/types.d.ts +0 -0
- /package/{types → src}/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
- /package/{types → src}/components/layout/islandRows/types.d.ts +0 -0
- /package/{types → src}/components/layout/rows/rows.vue.d.ts +0 -0
- /package/{types → src}/components/layout/rows/types.d.ts +0 -0
- /package/{types → src}/components/popup/alert/alert.vue.d.ts +0 -0
- /package/{types → src}/components/popup/alert/types.d.ts +0 -0
- /package/{types → src}/components/popup/confirm/confirm.vue.d.ts +0 -0
- /package/{types → src}/components/popup/confirm/types.d.ts +0 -0
- /package/{types → src}/components/popup/lib/popup.d.ts +0 -0
- /package/{types → src}/components/popup/lib/popup.globalEvents.d.ts +0 -0
- /package/{types → src}/components/popup/lib/worker.d.ts +0 -0
- /package/{types → src}/components/popup/lib/worker.globalEvents.d.ts +0 -0
- /package/{types → src}/components/popup/popup/listItem.vue.d.ts +0 -0
- /package/{types → src}/components/popup/popup/opener.vue.d.ts +0 -0
- /package/{types → src}/components/popup/popup/popup.vue.d.ts +0 -0
- /package/{types → src}/components/popup/popup/types.d.ts +0 -0
- /package/{types → src}/components/popup/popup/widgetInput.vue.d.ts +0 -0
- /package/{types → src}/components/popup/prompt/prompt.vue.d.ts +0 -0
- /package/{types → src}/components/popup/prompt/types.d.ts +0 -0
- /package/{types → src}/components/popup/worker.d.ts +0 -0
- /package/{types → src}/components/project/selectorCompetitors/composables.d.ts +0 -0
- /package/{types → src}/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -0
- /package/{types → src}/components/project/selectorCompetitors/types.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/composables/compare.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/composables/selectRegion.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/composables/selectSearcher.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/composables/selectorRegion.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/selectorRegion.vue.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/types.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/utils/consts.d.ts +0 -0
- /package/{types → src}/components/project/selectorRegion/utils/utils.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/popupListItem/types.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/popupOpener/types.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/tagIcon/types.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/tagSelector.vue.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/tagsDefaults.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/types.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/utils/el.d.ts +0 -0
- /package/{types → src}/components/project/tagSelector/utils/utils.d.ts +0 -0
- /package/{types → src}/components/tabs/tabs/content.vue.d.ts +0 -0
- /package/{types → src}/components/tabs/tabs/tab.vue.d.ts +0 -0
- /package/{types → src}/components/tabs/tabs/tabs.vue.d.ts +0 -0
- /package/{types → src}/components/tabs/tabs/types.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/menu.vue.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/menuItem.vue.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/menuTitle.vue.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/store.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/tabsView.vue.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/types.d.ts +0 -0
- /package/{types → src}/components/tabsView/tabsView/utils.d.ts +0 -0
- /package/{types → src}/core/app.d.ts +0 -0
- /package/{types → src}/core/core/core.d.ts +0 -0
- /package/{types → src}/core/core/events/resize.d.ts +0 -0
- /package/{types → src}/core/core/events.d.ts +0 -0
- /package/{types → src}/core/core/options.d.ts +0 -0
- /package/{types → src}/core/core/preloaders.d.ts +0 -0
- /package/{types → src}/core/core/state.d.ts +0 -0
- /package/{types → src}/core/directives/data.d.ts +0 -0
- /package/{types → src}/core/directives/focus.d.ts +0 -0
- /package/{types → src}/core/directives/preloader.d.ts +0 -0
- /package/{types → src}/core/directives/scrollIntoView.d.ts +0 -0
- /package/{types → src}/core/directives/scrollShadow.d.ts +0 -0
- /package/{types → src}/core/directives/sticky.d.ts +0 -0
- /package/{types → src}/core/directives/swimUp.d.ts +0 -0
- /package/{types → src}/core/directives/tooltip.d.ts +0 -0
- /package/{types → src}/core/plugins/core.d.ts +0 -0
- /package/{types → src}/core/plugins/i18n.d.ts +0 -0
- /package/{types → src}/core/plugins/piniaTPA.d.ts +0 -0
- /package/{types → src}/core/utils/check.d.ts +0 -0
- /package/{types → src}/core/utils/clipboard.d.ts +0 -0
- /package/{types → src}/core/utils/date.d.ts +0 -0
- /package/{types → src}/core/utils/device.d.ts +0 -0
- /package/{types → src}/core/utils/dom.d.ts +0 -0
- /package/{types → src}/core/utils/image.d.ts +0 -0
- /package/{types → src}/core/utils/keyboard.d.ts +0 -0
- /package/{types → src}/core/utils/lodash.d.ts +0 -0
- /package/{types → src}/core/utils/number.d.ts +0 -0
- /package/{types → src}/core/utils/price.d.ts +0 -0
- /package/{types → src}/core/utils/route.d.ts +0 -0
- /package/{types → src}/core/utils/scroll.d.ts +0 -0
- /package/{types → src}/core/utils/searchers.d.ts +0 -0
- /package/{types → src}/core/utils/store/localStorage.d.ts +0 -0
- /package/{types → src}/core/utils/store/plugin.d.ts +0 -0
- /package/{types → src}/core/utils/store/store.d.ts +0 -0
- /package/{types → src}/core/utils/store.d.ts +0 -0
- /package/{types → src}/core/utils/string.d.ts +0 -0
- /package/{types → src}/core/utils/system.d.ts +0 -0
- /package/{types → src}/core/utils/url.d.ts +0 -0
package/project/project.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Core as
|
|
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, ref as F, watch as w, createCommentVNode as q, withModifiers as z, mergeProps as Se, withKeys as
|
|
3
|
-
import { u as R, C as J,
|
|
4
|
-
import { _ as Ie,
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { getSearcherGIcon as
|
|
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-CjdLXxom.es.js";
|
|
7
|
+
import { getSearcherGIcon as De, getLangLabel as Fe, getDeviceGIcon as qe } from "../utils/searchers.js";
|
|
8
8
|
import { storage as W } from "../utils/dom.js";
|
|
9
|
-
import { TopPopupWorker as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const
|
|
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
14
|
props: /* @__PURE__ */ N({
|
|
15
15
|
modelValue: {},
|
|
@@ -21,8 +21,8 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
21
21
|
}),
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
23
|
setup(t) {
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
24
|
+
const l = t, o = D(t, "modelValue"), e = E(() => {
|
|
25
|
+
if (l.showSelectAllItem)
|
|
26
26
|
return {
|
|
27
27
|
icon: "",
|
|
28
28
|
title: R().Common.Select_all,
|
|
@@ -30,7 +30,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
30
30
|
content: ""
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
|
-
return (i,
|
|
33
|
+
return (i, a) => (k(), B("div", Ue, [
|
|
34
34
|
y(J).state.isMobile ? (k(), b(Ie, { key: 0 }, {
|
|
35
35
|
opener: _(() => [
|
|
36
36
|
A(H, {
|
|
@@ -63,17 +63,17 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
63
63
|
onClick: () => o.value = [n.value]
|
|
64
64
|
}, {
|
|
65
65
|
default: _(() => [
|
|
66
|
-
he("span",
|
|
66
|
+
he("span", je, K(n.content), 1)
|
|
67
67
|
]),
|
|
68
68
|
_: 2
|
|
69
69
|
}, 1032, ["class", "data-top-icon", "title", "onClick"]);
|
|
70
70
|
}), 256))
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
|
-
})) : (k(), b(
|
|
73
|
+
})) : (k(), b(Oe, {
|
|
74
74
|
key: 1,
|
|
75
75
|
modelValue: o.value,
|
|
76
|
-
"onUpdate:modelValue":
|
|
76
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => o.value = n),
|
|
77
77
|
items: i.items,
|
|
78
78
|
isMultiple: !0,
|
|
79
79
|
styling: "bar",
|
|
@@ -82,7 +82,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { 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",
|
|
@@ -101,15 +106,15 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
101
106
|
name: "--",
|
|
102
107
|
regions: [me],
|
|
103
108
|
regionByIndex: /* @__PURE__ */ new Map([[p, me]])
|
|
104
|
-
},
|
|
109
|
+
}, ae = {
|
|
105
110
|
key: p,
|
|
106
111
|
name: "Autoselect",
|
|
107
112
|
index: p
|
|
108
|
-
},
|
|
113
|
+
}, oe = {
|
|
109
114
|
key: p,
|
|
110
115
|
name: "Autoselect",
|
|
111
|
-
regions: [
|
|
112
|
-
regionByIndex: /* @__PURE__ */ new Map([[p,
|
|
116
|
+
regions: [ae],
|
|
117
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, ae]])
|
|
113
118
|
}, fe = {
|
|
114
119
|
countryCode: "00",
|
|
115
120
|
depth: 1,
|
|
@@ -118,89 +123,89 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
118
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 =
|
|
124
|
-
}, Ce = (t,
|
|
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
|
-
return t.forEach((
|
|
127
|
-
if (!
|
|
128
|
-
const n = { ...
|
|
129
|
-
n.regionByIndex = /* @__PURE__ */ new Map(),
|
|
130
|
-
if (
|
|
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;
|
|
131
136
|
const f = { ...u };
|
|
132
137
|
n.regionByIndex.set(f.index, f);
|
|
133
138
|
}), !n.regionByIndex.size && o.length, // режим вывода ПС без регионов
|
|
134
|
-
(!
|
|
139
|
+
(!a.regions || // есть включенные регионы
|
|
135
140
|
n.regionByIndex.size || // запрошен вывод конкретных ПС
|
|
136
141
|
o.length) && typeof n.key == "number" && i.set(n.key, n);
|
|
137
|
-
}), o.forEach((
|
|
138
|
-
if (i.has(
|
|
142
|
+
}), o.forEach((a) => {
|
|
143
|
+
if (i.has(a)) return;
|
|
139
144
|
const n = {
|
|
140
|
-
key:
|
|
141
|
-
name:
|
|
145
|
+
key: a,
|
|
146
|
+
name: ze[a],
|
|
142
147
|
regions: [],
|
|
143
148
|
regionByIndex: /* @__PURE__ */ new Map()
|
|
144
149
|
};
|
|
145
150
|
i.set(n.key, n);
|
|
146
151
|
}), i;
|
|
147
|
-
},
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
150
|
-
const o =
|
|
152
|
+
}, Ye = (t) => {
|
|
153
|
+
const l = Ce(t, !1, [0, 1], !0);
|
|
154
|
+
if (l.has(2)) {
|
|
155
|
+
const o = l.get(2);
|
|
151
156
|
o && (o.regionByIndex = /* @__PURE__ */ new Map());
|
|
152
157
|
}
|
|
153
|
-
return
|
|
158
|
+
return l.forEach((o) => {
|
|
154
159
|
if (!o.regionByIndex) return;
|
|
155
|
-
const e = { ...
|
|
160
|
+
const e = { ...We() };
|
|
156
161
|
o.regionByIndex.set(e.index, e);
|
|
157
|
-
}),
|
|
158
|
-
},
|
|
162
|
+
}), l;
|
|
163
|
+
}, He = (t, l, o = []) => {
|
|
159
164
|
const e = ke(t, !1, o);
|
|
160
165
|
let i;
|
|
161
|
-
return e.forEach((
|
|
162
|
-
if (!(
|
|
163
|
-
if (!i && !(
|
|
164
|
-
return n.searcher_key =
|
|
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;
|
|
165
170
|
}), i))
|
|
166
171
|
return !1;
|
|
167
172
|
}), i;
|
|
168
|
-
},
|
|
169
|
-
const o = R(), e = F(
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
173
|
+
}, Qe = Ne(() => import("../.chunks/dialog_selectorRegions-DKdrXyjJ.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) => {
|
|
172
177
|
let u = {
|
|
173
178
|
value: n.key,
|
|
174
179
|
title: n.name
|
|
175
180
|
};
|
|
176
|
-
t.addSearcherIcon && (u.icon =
|
|
177
|
-
}), t.addCompare && !
|
|
181
|
+
t.addSearcherIcon && (u.icon = De(n.key)), a.set(n.key, u);
|
|
182
|
+
}), t.addCompare && !a.has(p)) {
|
|
178
183
|
const n = {
|
|
179
184
|
value: "",
|
|
180
185
|
title: "--------------------",
|
|
181
186
|
disabled: !0
|
|
182
187
|
};
|
|
183
|
-
|
|
188
|
+
a.set(n.value, n);
|
|
184
189
|
const u = {
|
|
185
190
|
value: M,
|
|
186
191
|
title: o.Common.Compare
|
|
187
192
|
};
|
|
188
|
-
|
|
193
|
+
a.set(u.value, u);
|
|
189
194
|
}
|
|
190
|
-
return
|
|
195
|
+
return a;
|
|
191
196
|
});
|
|
192
197
|
return {
|
|
193
198
|
searcherKey: e,
|
|
194
199
|
optionBySearcherKey: i
|
|
195
200
|
};
|
|
196
|
-
},
|
|
197
|
-
var
|
|
201
|
+
}, Ze = (t, l) => {
|
|
202
|
+
var a, n, u;
|
|
198
203
|
const o = R(), e = F(p);
|
|
199
|
-
t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value === p && (t.forFrequency ? e.value = ((n = (
|
|
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);
|
|
200
205
|
const i = E(() => {
|
|
201
206
|
var h;
|
|
202
207
|
const f = /* @__PURE__ */ new Map();
|
|
203
|
-
return (h =
|
|
208
|
+
return (h = l.value.regionByIndex) == null || h.forEach((S) => {
|
|
204
209
|
let r = S.name;
|
|
205
210
|
if (t.forFrequency) {
|
|
206
211
|
const x = {
|
|
@@ -211,12 +216,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
211
216
|
return;
|
|
212
217
|
}
|
|
213
218
|
S.device && (r += " (" + o.Common["Device_" + S.device] + ")");
|
|
214
|
-
const g =
|
|
219
|
+
const g = Fe(l.value.key || 0, S.lang ?? "");
|
|
215
220
|
g && (r += " / " + g);
|
|
216
221
|
const d = {
|
|
217
222
|
value: S.index,
|
|
218
223
|
title: r,
|
|
219
|
-
icon: S.device ?
|
|
224
|
+
icon: S.device ? qe(S.device) : void 0
|
|
220
225
|
};
|
|
221
226
|
f.set(S.index, d);
|
|
222
227
|
}), f;
|
|
@@ -248,10 +253,10 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
248
253
|
regionIndex: e,
|
|
249
254
|
optionByRegionIndex: i
|
|
250
255
|
};
|
|
251
|
-
},
|
|
256
|
+
}, et = (t, l, o) => {
|
|
252
257
|
const e = F([]), i = () => {
|
|
253
|
-
if (t.onlySearcher &&
|
|
254
|
-
e.value = Array.from(
|
|
258
|
+
if (t.onlySearcher && l.value) {
|
|
259
|
+
e.value = Array.from(l.value.keys());
|
|
255
260
|
return;
|
|
256
261
|
}
|
|
257
262
|
let n = [];
|
|
@@ -265,62 +270,62 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
265
270
|
} catch {
|
|
266
271
|
}
|
|
267
272
|
n.length && (n = n.filter((u) => o.value.has(u))), n.length || (n = Array.from(o.value)), e.value = [...n];
|
|
268
|
-
},
|
|
273
|
+
}, a = () => {
|
|
269
274
|
e.value.length ? localStorage.setItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes", JSON.stringify(e.value)) : localStorage.removeItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes");
|
|
270
275
|
};
|
|
271
276
|
return w(e, () => {
|
|
272
|
-
|
|
277
|
+
a();
|
|
273
278
|
}), t.addCompare && i(), {
|
|
274
279
|
regionsIndexes: e
|
|
275
280
|
};
|
|
276
|
-
},
|
|
277
|
-
const
|
|
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(() => {
|
|
278
283
|
const r = /* @__PURE__ */ new Set();
|
|
279
|
-
return
|
|
284
|
+
return l.value.forEach((g) => {
|
|
280
285
|
g.regionByIndex.forEach((d) => {
|
|
281
286
|
d.index !== te && d.index !== p && r.add(d.index);
|
|
282
287
|
});
|
|
283
288
|
}), r;
|
|
284
|
-
}), i =
|
|
285
|
-
w(
|
|
289
|
+
}), i = Xe(t, l), a = Ze(t, o), n = et(t, l, e);
|
|
290
|
+
w(l, () => {
|
|
286
291
|
var g, d, x, T;
|
|
287
|
-
if (t.onlySearcher ? n.regionsIndexes.value = Array.from(
|
|
288
|
-
let r =
|
|
289
|
-
|
|
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) => {
|
|
290
295
|
var V, m, s;
|
|
291
296
|
if (t.onlySearcher && C.key === i.searcherKey.value) {
|
|
292
297
|
r = i.searcherKey.value;
|
|
293
298
|
return;
|
|
294
299
|
}
|
|
295
|
-
if (
|
|
300
|
+
if (a.regionIndex.value && ((V = C.regionByIndex) != null && V.has(a.regionIndex.value)) && (r = C.key), !t.onlySearcher) {
|
|
296
301
|
let c;
|
|
297
|
-
r !== void 0 && (c = (m =
|
|
298
|
-
const v = (s =
|
|
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;
|
|
299
304
|
c != null && c.has(p) && !(v != null && v.has(p)) && (r = C.key);
|
|
300
305
|
}
|
|
301
|
-
}), r !== void 0 && (i.searcherKey.value = r),
|
|
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);
|
|
302
307
|
}, { immediate: !0 });
|
|
303
308
|
const u = () => {
|
|
304
309
|
if (!(i.searcherKey.value === M || i.searcherKey.value === p))
|
|
305
310
|
return i.searcherKey.value;
|
|
306
311
|
}, f = () => {
|
|
307
|
-
if (t.onlySearcher ||
|
|
308
|
-
let r =
|
|
312
|
+
if (t.onlySearcher || a.regionIndex.value === p) return;
|
|
313
|
+
let r = a.regionIndex.value;
|
|
309
314
|
if (t.forFrequency) {
|
|
310
|
-
const g =
|
|
315
|
+
const g = a.regionIndex.value, d = He(t.forFrequency, { searcher_key: u(), key: g }, t.searchers);
|
|
311
316
|
r = d == null ? void 0 : d.index;
|
|
312
317
|
}
|
|
313
318
|
return r;
|
|
314
319
|
}, h = () => {
|
|
315
320
|
const r = u();
|
|
316
321
|
if (r !== void 0)
|
|
317
|
-
return
|
|
322
|
+
return l.value.get(r);
|
|
318
323
|
};
|
|
319
324
|
return {
|
|
320
325
|
selectSearcher: i,
|
|
321
|
-
selectRegion:
|
|
326
|
+
selectRegion: a,
|
|
322
327
|
compare: n,
|
|
323
|
-
searcherByKey:
|
|
328
|
+
searcherByKey: l,
|
|
324
329
|
allRegionsIndexes: e,
|
|
325
330
|
getSearcher: h,
|
|
326
331
|
getRegion: () => {
|
|
@@ -330,7 +335,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
330
335
|
return (d = (g = h()) == null ? void 0 : g.regionByIndex) == null ? void 0 : d.get(r);
|
|
331
336
|
}
|
|
332
337
|
};
|
|
333
|
-
},
|
|
338
|
+
}, ht = /* @__PURE__ */ P({
|
|
334
339
|
__name: "selectorRegion",
|
|
335
340
|
props: /* @__PURE__ */ N({
|
|
336
341
|
projectId: {},
|
|
@@ -351,35 +356,35 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
351
356
|
modelValueSingleModifiers: {}
|
|
352
357
|
}),
|
|
353
358
|
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
354
|
-
setup(t, { expose:
|
|
359
|
+
setup(t, { expose: l }) {
|
|
355
360
|
const o = t, e = D(t, "modelValue"), i = D(t, "modelValueSingle"), {
|
|
356
|
-
selectSearcher:
|
|
361
|
+
selectSearcher: a,
|
|
357
362
|
selectRegion: n,
|
|
358
363
|
compare: u,
|
|
359
364
|
searcherByKey: f,
|
|
360
365
|
allRegionsIndexes: h,
|
|
361
366
|
getSearcher: S,
|
|
362
367
|
getRegion: r
|
|
363
|
-
} =
|
|
368
|
+
} = tt(o), g = () => {
|
|
364
369
|
const d = [];
|
|
365
370
|
f.value.forEach((x) => {
|
|
366
371
|
x.enabled && x.regions.forEach((T) => {
|
|
367
372
|
T.enabled && d.push(T);
|
|
368
373
|
});
|
|
369
|
-
}),
|
|
374
|
+
}), Qe.open("selectorRegions", {
|
|
370
375
|
regions: d,
|
|
371
376
|
regionsIndexes: u.regionsIndexes.value,
|
|
372
377
|
"@update:regionsIndexes": (x) => u.regionsIndexes.value = x
|
|
373
378
|
});
|
|
374
379
|
};
|
|
375
|
-
return w([n.regionIndex,
|
|
376
|
-
if (
|
|
380
|
+
return w([n.regionIndex, a.searcherKey, u.regionsIndexes], () => {
|
|
381
|
+
if (a.searcherKey.value === M && u.regionsIndexes.value.length) {
|
|
377
382
|
if (JSON.stringify(e.value) === JSON.stringify(u.regionsIndexes.value))
|
|
378
383
|
return;
|
|
379
384
|
e.value = [...u.regionsIndexes.value];
|
|
380
385
|
} else
|
|
381
|
-
o.onlySearcher ? (e.value = [
|
|
382
|
-
!o.onlySearcher && !h.value.size && (
|
|
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);
|
|
383
388
|
}), i.value && w(i, () => {
|
|
384
389
|
i.value && (e.value = [i.value]);
|
|
385
390
|
}, { immediate: !0 }), w(e, () => {
|
|
@@ -412,18 +417,18 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
412
417
|
return;
|
|
413
418
|
}
|
|
414
419
|
}
|
|
415
|
-
if (!(e.value.length === 1 && e.value[0] === (o.onlySearcher ?
|
|
420
|
+
if (!(e.value.length === 1 && e.value[0] === (o.onlySearcher ? a.searcherKey.value : n.regionIndex.value)))
|
|
416
421
|
if (o.onlySearcher) {
|
|
417
422
|
if (e.value.length === 1) {
|
|
418
|
-
|
|
423
|
+
a.searcherKey.value = e.value[0];
|
|
419
424
|
return;
|
|
420
425
|
}
|
|
421
|
-
|
|
426
|
+
a.searcherKey.value = M;
|
|
422
427
|
return;
|
|
423
428
|
} else {
|
|
424
429
|
if (!e.value.length)
|
|
425
430
|
return;
|
|
426
|
-
if (e.value.length === 1 &&
|
|
431
|
+
if (e.value.length === 1 && a.searcherKey.value !== M) {
|
|
427
432
|
n.regionIndex.value = e.value[0];
|
|
428
433
|
let m;
|
|
429
434
|
for (const s of f.value.values()) {
|
|
@@ -435,11 +440,11 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
435
440
|
if (m !== void 0)
|
|
436
441
|
break;
|
|
437
442
|
}
|
|
438
|
-
m !== void 0 && (
|
|
443
|
+
m !== void 0 && (a.searcherKey.value = m);
|
|
439
444
|
} else
|
|
440
|
-
|
|
445
|
+
a.searcherKey.value = M, u.regionsIndexes.value = [...e.value];
|
|
441
446
|
}
|
|
442
|
-
}, { immediate: !0 }),
|
|
447
|
+
}, { immediate: !0 }), l({
|
|
443
448
|
getSearcher: S,
|
|
444
449
|
getRegion: r
|
|
445
450
|
}), (d, x) => (k(), B("div", {
|
|
@@ -448,14 +453,14 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
448
453
|
"top-selectorRegion-onlySearcher": d.onlySearcher
|
|
449
454
|
})
|
|
450
455
|
}, [
|
|
451
|
-
A(
|
|
452
|
-
options: y(
|
|
453
|
-
modelValue: y(
|
|
454
|
-
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(
|
|
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),
|
|
455
460
|
name: "searcher_key",
|
|
456
461
|
addChanger: d.addChanger
|
|
457
462
|
}, null, 8, ["options", "modelValue", "addChanger"]),
|
|
458
|
-
!d.onlySearcher && y(
|
|
463
|
+
!d.onlySearcher && y(a).searcherKey.value !== y(M) ? (k(), b(re, {
|
|
459
464
|
key: 0,
|
|
460
465
|
class: "top-select-region",
|
|
461
466
|
options: y(n).optionByRegionIndex.value,
|
|
@@ -465,7 +470,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
465
470
|
addChanger: d.addChanger,
|
|
466
471
|
"data-top-icon": d.addRegionIcon ? "" : void 0
|
|
467
472
|
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : q("", !0),
|
|
468
|
-
d.addCompare && !d.onlySearcher && y(
|
|
473
|
+
d.addCompare && !d.onlySearcher && y(a).searcherKey.value === y(M) ? (k(), b(H, {
|
|
469
474
|
key: 1,
|
|
470
475
|
name: "compare",
|
|
471
476
|
onClick: g,
|
|
@@ -478,7 +483,64 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
478
483
|
}, 8, ["data-count-compare-regions-indexes"])) : q("", !0)
|
|
479
484
|
], 2));
|
|
480
485
|
}
|
|
481
|
-
}),
|
|
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 = [
|
|
482
544
|
{
|
|
483
545
|
id: "1",
|
|
484
546
|
name: "Without Tag",
|
|
@@ -529,12 +591,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
529
591
|
name: "Turquoise",
|
|
530
592
|
color_id: "10"
|
|
531
593
|
}
|
|
532
|
-
],
|
|
533
|
-
t = Q(t);
|
|
534
|
-
const o = a.find((e) => e.id === t);
|
|
535
|
-
if (o)
|
|
536
|
-
return o;
|
|
537
|
-
}, rt = ["data-tag_id", "data-tag_color_id", "title"], ne = /* @__PURE__ */ P({
|
|
594
|
+
], lt = ["data-tag_id", "data-tag_color_id", "title"], ie = /* @__PURE__ */ P({
|
|
538
595
|
__name: "tagIcon",
|
|
539
596
|
props: {
|
|
540
597
|
id: {},
|
|
@@ -543,18 +600,18 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
543
600
|
state: {}
|
|
544
601
|
},
|
|
545
602
|
setup(t) {
|
|
546
|
-
return (
|
|
603
|
+
return (l, o) => (k(), B("div", {
|
|
547
604
|
class: X({
|
|
548
605
|
"top-tagSelector_tagIcon": !0,
|
|
549
|
-
"top-tagSelector-active": !!
|
|
550
|
-
"top-tagSelector-excluded":
|
|
606
|
+
"top-tagSelector-active": !!l.state,
|
|
607
|
+
"top-tagSelector-excluded": l.state === "excluded"
|
|
551
608
|
}),
|
|
552
|
-
"data-tag_id":
|
|
553
|
-
"data-tag_color_id":
|
|
554
|
-
title:
|
|
555
|
-
}, null, 10,
|
|
609
|
+
"data-tag_id": l.id,
|
|
610
|
+
"data-tag_color_id": l.colorId,
|
|
611
|
+
title: l.name
|
|
612
|
+
}, null, 10, lt));
|
|
556
613
|
}
|
|
557
|
-
}),
|
|
614
|
+
}), nt = ["contenteditable", "onKeydown"], pe = /* @__PURE__ */ P({
|
|
558
615
|
__name: "tagPopupListItem",
|
|
559
616
|
props: /* @__PURE__ */ N({
|
|
560
617
|
editable: { type: Boolean },
|
|
@@ -571,20 +628,20 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
571
628
|
nameModifiers: {}
|
|
572
629
|
}),
|
|
573
630
|
emits: /* @__PURE__ */ N(["update:name", "unselect", "exclude", "select"], ["update:name"]),
|
|
574
|
-
setup(t, { emit:
|
|
575
|
-
const o = t, e =
|
|
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 ? {
|
|
576
633
|
contenteditable: u.value,
|
|
577
634
|
onpaste: (g) => g.preventDefault()
|
|
578
635
|
} : {}), u = F(!1), f = async () => {
|
|
579
636
|
var g;
|
|
580
|
-
u.value = !0, await
|
|
637
|
+
u.value = !0, await Be(), (g = a.value) == null || g.focus();
|
|
581
638
|
}, h = () => {
|
|
582
639
|
var d;
|
|
583
|
-
const g = (d =
|
|
640
|
+
const g = (d = a.value) == null ? void 0 : d.innerText;
|
|
584
641
|
if (!g) return S();
|
|
585
|
-
|
|
642
|
+
a.value && (a.value.innerText = g), u.value = !1, e("update:name", g);
|
|
586
643
|
}, S = async () => {
|
|
587
|
-
|
|
644
|
+
a.value && (a.value.innerText = o.name), u.value = !1;
|
|
588
645
|
}, r = (g) => {
|
|
589
646
|
if (u.value || o.disabled) return;
|
|
590
647
|
let d = "selected";
|
|
@@ -602,7 +659,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
602
659
|
onClick: z(r, ["stop"])
|
|
603
660
|
}, {
|
|
604
661
|
default: _(() => [
|
|
605
|
-
A(
|
|
662
|
+
A(ie, {
|
|
606
663
|
id: g.id,
|
|
607
664
|
name: i.value,
|
|
608
665
|
colorId: g.colorId,
|
|
@@ -610,15 +667,15 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
610
667
|
}, null, 8, ["id", "name", "colorId", "state"]),
|
|
611
668
|
he("span", Se({
|
|
612
669
|
ref_key: "elName",
|
|
613
|
-
ref:
|
|
670
|
+
ref: a,
|
|
614
671
|
class: "top-tagSelector_tagListItemName",
|
|
615
672
|
contenteditable: u.value ? "plaintext-only" : !1
|
|
616
673
|
}, n.value, {
|
|
617
674
|
onKeydown: [
|
|
618
|
-
|
|
619
|
-
|
|
675
|
+
ge(z(h, ["stop"]), ["enter"]),
|
|
676
|
+
ge(z(S, ["stop"]), ["esc"])
|
|
620
677
|
]
|
|
621
|
-
}), K(i.value), 17,
|
|
678
|
+
}), K(i.value), 17, nt),
|
|
622
679
|
g.editable ? (k(), B(Y, { key: 0 }, [
|
|
623
680
|
u.value ? (k(), B("span", {
|
|
624
681
|
key: 1,
|
|
@@ -636,7 +693,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
636
693
|
_: 1
|
|
637
694
|
}, 8, ["class"]));
|
|
638
695
|
}
|
|
639
|
-
}),
|
|
696
|
+
}), ot = { key: 1 }, rt = /* @__PURE__ */ P({
|
|
640
697
|
inheritAttrs: !1,
|
|
641
698
|
__name: "popupOpener",
|
|
642
699
|
props: /* @__PURE__ */ N({
|
|
@@ -657,23 +714,23 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
657
714
|
}),
|
|
658
715
|
emits: ["update:modelValue"],
|
|
659
716
|
setup(t) {
|
|
660
|
-
const
|
|
717
|
+
const l = t, o = D(t, "modelValue"), e = l.useTopButton ? H : "div", i = l.useTopButton ? "html" : "default", a = {
|
|
661
718
|
model: o,
|
|
662
|
-
mode:
|
|
663
|
-
targetId:
|
|
664
|
-
filters:
|
|
665
|
-
payload:
|
|
719
|
+
mode: l.mode,
|
|
720
|
+
targetId: l.targetId,
|
|
721
|
+
filters: l.filters,
|
|
722
|
+
payload: l.payload
|
|
666
723
|
};
|
|
667
724
|
return (n, u) => {
|
|
668
|
-
const f =
|
|
669
|
-
return k(), b(
|
|
725
|
+
const f = Ve("top-data");
|
|
726
|
+
return k(), b(Re, { id: n.id }, {
|
|
670
727
|
default: _(() => [
|
|
671
|
-
|
|
728
|
+
Ee((k(), b(Me(y(e)), Se({
|
|
672
729
|
class: {
|
|
673
730
|
"top-tagSelector": !0,
|
|
674
|
-
"top-tagSelector-filter":
|
|
675
|
-
"top-tagSelector-setter_single":
|
|
676
|
-
"top-tagSelector-setter_several":
|
|
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,
|
|
677
734
|
"top-tagSelector-selectedOne": !o.value.length || o.value.length === 1,
|
|
678
735
|
"top-tagSelector-toTwoLine": o.value.length > 5
|
|
679
736
|
},
|
|
@@ -681,35 +738,35 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
681
738
|
styling: n.styling
|
|
682
739
|
}, n.$attrs), {
|
|
683
740
|
[y(i)]: _(() => [
|
|
684
|
-
!o.value.length && n.mode === "filter" ? (k(), b(
|
|
741
|
+
!o.value.length && n.mode === "filter" ? (k(), b(ie, {
|
|
685
742
|
key: 0,
|
|
686
743
|
id: "all",
|
|
687
744
|
colorId: "",
|
|
688
745
|
name: n.$i18n.Common.All_tags ?? "",
|
|
689
746
|
state: ""
|
|
690
747
|
}, null, 8, ["name"])) : q("", !0),
|
|
691
|
-
n.mode === "setter" && n.filters ? (k(), B("div",
|
|
692
|
-
|
|
748
|
+
n.mode === "setter" && n.filters ? (k(), B("div", ot, [
|
|
749
|
+
Ke(n.$slots, "default")
|
|
693
750
|
])) : (k(!0), B(Y, { key: 2 }, se(o.value, (h) => {
|
|
694
751
|
var S, r;
|
|
695
|
-
return k(), b(
|
|
752
|
+
return k(), b(ie, {
|
|
696
753
|
id: y(Q)(h),
|
|
697
|
-
colorId: ((S = y(
|
|
698
|
-
name: ((r = y(
|
|
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) ?? "",
|
|
699
756
|
state: y(Q)(h) === h ? "selected" : "excluded"
|
|
700
757
|
}, null, 8, ["id", "colorId", "name", "state"]);
|
|
701
758
|
}), 256))
|
|
702
759
|
]),
|
|
703
760
|
_: 2
|
|
704
761
|
}, 1040, ["class", "styling"])), [
|
|
705
|
-
[f,
|
|
762
|
+
[f, a, "topTagSelectorTarget"]
|
|
706
763
|
])
|
|
707
764
|
]),
|
|
708
765
|
_: 3
|
|
709
766
|
}, 8, ["id"]);
|
|
710
767
|
};
|
|
711
768
|
}
|
|
712
|
-
}),
|
|
769
|
+
}), xt = /* @__PURE__ */ P({
|
|
713
770
|
__name: "tagSelector",
|
|
714
771
|
props: /* @__PURE__ */ N({
|
|
715
772
|
modelValue: {},
|
|
@@ -728,22 +785,22 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
728
785
|
},
|
|
729
786
|
modelModifiers: {},
|
|
730
787
|
tags: {
|
|
731
|
-
default:
|
|
788
|
+
default: Le(at)
|
|
732
789
|
},
|
|
733
790
|
tagsModifiers: {}
|
|
734
791
|
}),
|
|
735
792
|
emits: /* @__PURE__ */ N(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
|
|
736
|
-
setup(t, { emit:
|
|
737
|
-
const o = R(), e = t, i = D(t, "modelValue"),
|
|
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) => {
|
|
738
795
|
n(s, c);
|
|
739
796
|
}, e.emitDelay);
|
|
740
|
-
e.singleMode && !i.value.length && (i.value = [
|
|
797
|
+
e.singleMode && !i.value.length && (i.value = [a.value[0].id]);
|
|
741
798
|
const f = e.id ?? "top-popup-id-" + Math.random(), h = F("add"), S = () => {
|
|
742
799
|
var v;
|
|
743
800
|
const s = " " + ((v = o.Common.Tags) == null ? void 0 : v.toLowerCase()), c = /* @__PURE__ */ new Map();
|
|
744
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;
|
|
745
802
|
};
|
|
746
|
-
let r =
|
|
803
|
+
let r = $e({
|
|
747
804
|
model: i,
|
|
748
805
|
mode: "filter",
|
|
749
806
|
targetId: void 0,
|
|
@@ -780,12 +837,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
780
837
|
}), C = () => {
|
|
781
838
|
const s = prompt("", "New tag");
|
|
782
839
|
if (!s || s === "New tag") return;
|
|
783
|
-
const c =
|
|
784
|
-
|
|
840
|
+
const c = a.value.length + 1;
|
|
841
|
+
a.value.push({
|
|
785
842
|
id: String(c),
|
|
786
843
|
name: s,
|
|
787
844
|
color_id: String((c - 1) % 10 + 1)
|
|
788
|
-
}), n("tagsChanged",
|
|
845
|
+
}), n("tagsChanged", a.value);
|
|
789
846
|
}, V = (s) => {
|
|
790
847
|
var c;
|
|
791
848
|
if (r.value = W(s.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
@@ -793,7 +850,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
793
850
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
794
851
|
return;
|
|
795
852
|
}
|
|
796
|
-
!J.state.isMobile && !J.state.isMobileUA &&
|
|
853
|
+
!J.state.isMobile && !J.state.isMobileUA && a.value && $(s.elPopup).sortable({
|
|
797
854
|
items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
|
|
798
855
|
/**
|
|
799
856
|
* @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
|
|
@@ -801,16 +858,16 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
801
858
|
cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
|
|
802
859
|
distance: 10,
|
|
803
860
|
stop: function(v, I) {
|
|
804
|
-
if (!
|
|
861
|
+
if (!a.value) return;
|
|
805
862
|
const L = $(I.item).parent().find("[data-tag_id]"), U = [];
|
|
806
863
|
L.each((Z, j) => {
|
|
807
|
-
if (!
|
|
864
|
+
if (!a.value) return;
|
|
808
865
|
const O = $(j).attr("data-tag_id");
|
|
809
866
|
U.push(O);
|
|
810
|
-
}),
|
|
811
|
-
const O = U.findIndex((
|
|
812
|
-
return O -
|
|
813
|
-
}), u("tagsChanged",
|
|
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);
|
|
814
871
|
}
|
|
815
872
|
});
|
|
816
873
|
}, m = (s) => {
|
|
@@ -818,12 +875,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
818
875
|
(c = J.$) != null && c.ui.sortable && $(s.elPopup).data("ui-sortable") && $(s.elPopup).sortable("destroy");
|
|
819
876
|
};
|
|
820
877
|
return (s, c) => (k(), B(Y, null, [
|
|
821
|
-
A(
|
|
878
|
+
A(rt, {
|
|
822
879
|
class: "top-as-selector",
|
|
823
880
|
modelValue: i.value,
|
|
824
881
|
"onUpdate:modelValue": c[0] || (c[0] = (v) => i.value = v),
|
|
825
882
|
id: y(f),
|
|
826
|
-
tags:
|
|
883
|
+
tags: a.value,
|
|
827
884
|
styling: s.styling,
|
|
828
885
|
mode: "filter",
|
|
829
886
|
useTopButton: ""
|
|
@@ -834,9 +891,9 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
834
891
|
onOpen: c[4] || (c[4] = (v) => V(v)),
|
|
835
892
|
onClose: c[5] || (c[5] = (v) => m(v)),
|
|
836
893
|
"transition-duration": 50
|
|
837
|
-
},
|
|
894
|
+
}, we({
|
|
838
895
|
contentList: _(() => [
|
|
839
|
-
y(r).mode === "filter" && !s.singleMode ? (k(), b(
|
|
896
|
+
y(r).mode === "filter" && !s.singleMode ? (k(), b(pe, {
|
|
840
897
|
key: 0,
|
|
841
898
|
id: "all",
|
|
842
899
|
colorId: "",
|
|
@@ -844,7 +901,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
844
901
|
state: y(r).model.value.length ? "" : "selected",
|
|
845
902
|
onSelect: c[3] || (c[3] = (v) => y(r).model.value = [])
|
|
846
903
|
}, null, 8, ["name", "state"])) : q("", !0),
|
|
847
|
-
(k(!0), B(Y, null, se(
|
|
904
|
+
(k(!0), B(Y, null, se(a.value, (v) => (k(), b(pe, {
|
|
848
905
|
key: v.id,
|
|
849
906
|
id: v.id,
|
|
850
907
|
colorId: v.color_id,
|
|
@@ -857,10 +914,10 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
857
914
|
onSelect: (I) => x(v.id, "select"),
|
|
858
915
|
onExclude: (I) => x(v.id, "exclude"),
|
|
859
916
|
"onUpdate:name": (I) => {
|
|
860
|
-
v.name = I, y(u)("tagsChanged",
|
|
917
|
+
v.name = I, y(u)("tagsChanged", a.value);
|
|
861
918
|
}
|
|
862
919
|
}, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
|
|
863
|
-
s.tagsEditable &&
|
|
920
|
+
s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(ue, {
|
|
864
921
|
key: 1,
|
|
865
922
|
"data-top-icon": "",
|
|
866
923
|
onClick: z(C, ["stop"])
|
|
@@ -876,7 +933,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
876
933
|
y(r).mode === "setter" && y(r).filters ? {
|
|
877
934
|
name: "header",
|
|
878
935
|
fn: _(() => [
|
|
879
|
-
A(
|
|
936
|
+
A(re, {
|
|
880
937
|
modelValue: h.value,
|
|
881
938
|
"onUpdate:modelValue": c[1] || (c[1] = (v) => h.value = v),
|
|
882
939
|
options: S()
|
|
@@ -912,75 +969,18 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
912
969
|
]), 1032, ["id", "class"])
|
|
913
970
|
], 64));
|
|
914
971
|
}
|
|
915
|
-
})
|
|
916
|
-
value: i.id,
|
|
917
|
-
title: i.url + ` [${i.id}]`,
|
|
918
|
-
icon: i.id === ce(a) ? "" : "",
|
|
919
|
-
content: i.name
|
|
920
|
-
}))), It = (t, a, o) => {
|
|
921
|
-
a || (a = { id: t.id }), a.id = t.id;
|
|
922
|
-
const e = Ue.genElPopupOpener("div", a);
|
|
923
|
-
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) => {
|
|
924
|
-
i.preventDefault(), i.stopPropagation(), e.onclick = null;
|
|
925
|
-
const l = F(t.modelValue), n = {
|
|
926
|
-
model: l,
|
|
927
|
-
mode: t.mode,
|
|
928
|
-
targetId: t.targetId,
|
|
929
|
-
filters: t.filters,
|
|
930
|
-
payload: t.payload
|
|
931
|
-
};
|
|
932
|
-
W(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ge(t.modelValue) || w(l, () => {
|
|
933
|
-
t.modelValue = l.value, ee(e, t, o);
|
|
934
|
-
}), e.click();
|
|
935
|
-
}, ge(t.modelValue) ? w(t.modelValue, () => ee(e, t, o)) : W(e, "topTagSelectorRender", (i) => {
|
|
936
|
-
t.modelValue = i;
|
|
937
|
-
const l = W(e, "topTagSelectorTarget");
|
|
938
|
-
l && (l.model.value = i), ee(e, t, o);
|
|
939
|
-
}), ee(e, t, o), e;
|
|
940
|
-
}, xt = (t, a) => {
|
|
941
|
-
var o;
|
|
942
|
-
(o = W(t, "topTagSelectorRender")) == null || o(a);
|
|
943
|
-
}, ee = (t, a, o) => {
|
|
944
|
-
var i;
|
|
945
|
-
const e = y(a.modelValue);
|
|
946
|
-
if (t.classList.toggle("top-tagSelector-selectedOne", !e.length || e.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", e.length > 5), a.mode === "setter" && a.filters) {
|
|
947
|
-
t.innerHTML = `<div>${o}</div>`;
|
|
948
|
-
return;
|
|
949
|
-
}
|
|
950
|
-
if (t.innerHTML = "", !e.length && a.mode === "filter") {
|
|
951
|
-
const l = pe({
|
|
952
|
-
id: "all",
|
|
953
|
-
colorId: "",
|
|
954
|
-
name: ((i = R().Common) == null ? void 0 : i.All_tags) ?? "",
|
|
955
|
-
state: ""
|
|
956
|
-
});
|
|
957
|
-
t.append(l);
|
|
958
|
-
}
|
|
959
|
-
e.forEach((l) => {
|
|
960
|
-
var u, f;
|
|
961
|
-
const n = pe({
|
|
962
|
-
id: Q(l),
|
|
963
|
-
colorId: ((u = ae(l, a.tags)) == null ? void 0 : u.color_id) ?? "",
|
|
964
|
-
name: ((f = ae(l, a.tags)) == null ? void 0 : f.name) ?? "",
|
|
965
|
-
state: Q(l) === l ? "selected" : "excluded"
|
|
966
|
-
});
|
|
967
|
-
t.append(n);
|
|
968
|
-
});
|
|
969
|
-
}, pe = (t) => {
|
|
970
|
-
const a = document.createElement("div");
|
|
971
|
-
return a.classList.add("top-tagSelector_tagIcon"), a.classList.toggle("top-tagSelector-active", !!t.state), a.classList.toggle("top-tagSelector-excluded", t.state === "excluded"), a.dataset.tag_id = t.id, a.dataset.tag_color_id = t.colorId, a.title = t.name, a;
|
|
972
|
-
}, kt = Je, Ct = nt, Tt = ut, _t = Te, bt = ne;
|
|
972
|
+
});
|
|
973
973
|
export {
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
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
982
|
ke as genSearcherByKey,
|
|
983
|
-
|
|
984
|
-
|
|
983
|
+
It as renderElTopTagSelectorPopupOpener,
|
|
984
|
+
pt as useItemsFromCompetitors
|
|
985
985
|
};
|
|
986
986
|
//# sourceMappingURL=project.js.map
|