@topvisor/ui 1.0.42-policy.0 → 1.1.0-addNativeDialog.6
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-6NjSIwIA.amd.js +2 -0
- package/.chunks/{core-SEtL6T0A.amd.js.map → core-6NjSIwIA.amd.js.map} +1 -1
- package/.chunks/{core-BCV4xehV.es.js → core-CKa0qCEH.es.js} +4 -4
- package/.chunks/{core-BCV4xehV.es.js.map → core-CKa0qCEH.es.js.map} +1 -1
- package/.chunks/datepicker-DsKl-YZR.amd.js +2 -0
- package/.chunks/{datepicker-Ba8QPoiv.amd.js.map → datepicker-DsKl-YZR.amd.js.map} +1 -1
- package/.chunks/{datepicker-DHxSFb-9.es.js → datepicker-U31BrqE_.es.js} +2 -2
- package/.chunks/{datepicker-DHxSFb-9.es.js.map → datepicker-U31BrqE_.es.js.map} +1 -1
- package/.chunks/dialog_selectorRegions-BCXCCaXi.amd.js +2 -0
- package/.chunks/{dialog_selectorRegions-CiWJsA9r.amd.js.map → dialog_selectorRegions-BCXCCaXi.amd.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-Cd7_dHoH.es.js → dialog_selectorRegions-C_RhsGzk.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-Cd7_dHoH.es.js.map → dialog_selectorRegions-C_RhsGzk.es.js.map} +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BhAl3bT-.es.js +700 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BhAl3bT-.es.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DVp-tQ6l.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DVp-tQ6l.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-DRhpgERJ.amd.js +3 -0
- package/.chunks/{forms-L6BGV_om.amd.js.map → forms-DRhpgERJ.amd.js.map} +1 -1
- package/.chunks/{forms-DC7ffuv2.es.js → forms-t2AEUjqg.es.js} +16 -16
- package/.chunks/{forms-DC7ffuv2.es.js.map → forms-t2AEUjqg.es.js.map} +1 -1
- package/.chunks/lazy-Dr-Frbwe.amd.js +2 -0
- package/.chunks/lazy-Dr-Frbwe.amd.js.map +1 -0
- package/.chunks/lazy-Dy9IVVUy.es.js +19 -0
- package/.chunks/lazy-Dy9IVVUy.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CXp02bYr.es.js → listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CXp02bYr.es.js.map → listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js.map} +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js +2 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-M0ZTpQlF.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DNsbNhVH.es.js → menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DNsbNhVH.es.js.map → menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js.map} +1 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js +2 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DepdFfhE.amd.js.map → menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js.map} +1 -1
- package/.chunks/{notice-DQXlrM4Y.es.js → notice-4bdzRXtl.es.js} +2 -2
- package/.chunks/{notice-DQXlrM4Y.es.js.map → notice-4bdzRXtl.es.js.map} +1 -1
- package/.chunks/{notice-ZTC1xm1R.amd.js → notice-DQ9qFyQ2.amd.js} +3 -3
- package/.chunks/{notice-ZTC1xm1R.amd.js.map → notice-DQ9qFyQ2.amd.js.map} +1 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BgGzBbMZ.amd.js +2 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BgGzBbMZ.amd.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BstJVz3j.es.js +176 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BstJVz3j.es.js.map +1 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-B6ollFUC.amd.js +2 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-B6ollFUC.amd.js.map +1 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-DbaqFJra.es.js +56 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-DbaqFJra.es.js.map +1 -0
- package/.chunks/{popup-B7GI-vlM.es.js → popup-DuraSW2f.es.js} +2 -2
- package/.chunks/{popup-B7GI-vlM.es.js.map → popup-DuraSW2f.es.js.map} +1 -1
- package/.chunks/popup-IcMnYYXr.amd.js +2 -0
- package/.chunks/{popup-Kvk7IPNI.amd.js.map → popup-IcMnYYXr.amd.js.map} +1 -1
- 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-esTid5oI.amd.js.map → store-YRW59xEF.amd.js.map} +1 -1
- package/.chunks/{utils-BkchlCXw.es.js → utils-Bd5whKoS.es.js} +5 -5
- package/.chunks/{utils-BkchlCXw.es.js.map → utils-Bd5whKoS.es.js.map} +1 -1
- package/.chunks/utils-BkF4g-PH.amd.js +2 -0
- package/.chunks/{utils-Bg7IV0KZ.amd.js.map → utils-BkF4g-PH.amd.js.map} +1 -1
- package/api/additional.amd.js +2 -0
- package/api/additional.amd.js.map +1 -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.js +257 -0
- package/api/index.js.map +1 -0
- 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.js +1 -1
- 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.js +8 -8
- 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.js +8 -57
- package/dialog/dialog.js.map +1 -1
- package/dialogV1AndDialogV2/dialog.amd.js +2 -0
- package/dialogV1AndDialogV2/dialog.amd.js.map +1 -0
- package/dialogV1AndDialogV2/dialog.js +11 -0
- package/dialogV1AndDialogV2/dialog.js.map +1 -0
- package/dialogV1Original/dialog.amd.js +2 -0
- package/dialogV1Original/dialog.amd.js.map +1 -0
- package/dialogV1Original/dialog.js +11 -0
- package/dialogV1Original/dialog.js.map +1 -0
- package/dialogV2/dialog.amd.js +2 -0
- package/dialogV2/dialog.amd.js.map +1 -0
- package/dialogV2/dialog.js +11 -0
- package/dialogV2/dialog.js.map +1 -0
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/forms/helpers.amd.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +3 -4
- 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.js +1 -1
- package/package.json +3 -4
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +2 -2
- 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.js +2 -2
- 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.js +157 -157
- package/project/project.js.map +1 -1
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- 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.js +1 -1
- package/tabsView/tabsView.js.map +1 -1
- package/types/api/additional.d.ts +2 -0
- package/types/api/api/additional.d.ts +1 -0
- package/types/api/api/client/client.d.ts +55 -0
- package/types/api/api/client/request-options.d.ts +1 -0
- package/types/api/api/client/request.d.ts +2 -0
- package/types/api/api/index.d.ts +12 -0
- package/types/api/api/tests/model.d.ts +0 -0
- package/types/api/api/tests/test.d.ts +16 -0
- package/types/api/api/types/api.d.ts +139 -0
- package/types/api/api/types/client/middleware.d.ts +65 -0
- package/types/api/api/types/client/options.d.ts +60 -0
- package/types/api/api/types/client/request-context.d.ts +35 -0
- package/types/api/api/types/client/request-options.d.ts +73 -0
- package/types/api/api/types/client/request.d.ts +85 -0
- package/types/api/api/types/ext.d.ts +51 -0
- package/types/api/api/types/field.d.ts +33 -0
- package/types/api/api/types/index.d.ts +11 -0
- package/types/api/api/types/schema.d.ts +50 -0
- package/types/api/api/types/tv.d.ts +59 -0
- package/types/api/api/types/utils.d.ts +51 -0
- package/types/api/api/utils/common.d.ts +16 -0
- package/types/api/api/utils/field.d.ts +8 -0
- package/types/api/api/utils/filters.d.ts +48 -0
- package/types/api/api/utils/lazy.d.ts +13 -0
- package/types/api/index.d.ts +2 -0
- package/types/components/dialog/dialog/dialog.vue.d.ts +28 -0
- package/types/components/dialog/lib/utils.d.ts +54 -0
- package/types/components/dialog/lib/worker.d.ts +78 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/dialogHandle.d.ts +108 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/types.d.ts +11 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/utils.d.ts +23 -0
- package/types/components/dialogV1AndDialogV2/dialog/dialog.vue.d.ts +28 -0
- package/types/components/dialogV1AndDialogV2/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/types/components/dialogV1AndDialogV2/dialog/page/types.d.ts +72 -0
- package/types/components/dialogV1AndDialogV2/dialog/pageComponent/types.d.ts +18 -0
- package/types/components/dialogV1AndDialogV2/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/types/components/dialogV1AndDialogV2/dialog/types.d.ts +58 -0
- package/types/components/dialogV1AndDialogV2/dialog.d.ts +6 -0
- package/types/components/dialogV1AndDialogV2/lib/types.d.ts +44 -0
- package/types/components/dialogV1AndDialogV2/lib/utils.d.ts +18 -0
- package/types/components/dialogV1AndDialogV2/lib/utils.globalEvents.d.ts +8 -0
- package/types/components/dialogV1AndDialogV2/lib/worker.d.ts +72 -0
- package/types/components/dialogV1Original/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/types/components/dialogV1Original/dialog/composables/dialogHandle.d.ts +108 -0
- package/types/components/dialogV1Original/dialog/composables/types.d.ts +11 -0
- package/types/components/dialogV1Original/dialog/composables/utils.d.ts +23 -0
- package/types/components/dialogV1Original/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/types/components/dialogV1Original/dialog/page/types.d.ts +72 -0
- package/types/components/dialogV1Original/dialog/pageComponent/types.d.ts +18 -0
- package/types/components/dialogV1Original/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/types/components/dialogV1Original/dialog/types.d.ts +58 -0
- package/types/components/dialogV1Original/dialog.d.ts +6 -0
- package/types/components/dialogV1Original/lib/types.d.ts +44 -0
- package/types/components/dialogV1Original/lib/utils.globalEvents.d.ts +8 -0
- package/types/components/dialogV2/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/types/components/dialogV2/dialog/composables/dialogHandle.d.ts +108 -0
- package/types/components/dialogV2/dialog/composables/types.d.ts +11 -0
- package/types/components/dialogV2/dialog/composables/utils.d.ts +23 -0
- package/types/components/dialogV2/dialog/dialog.vue.d.ts +28 -0
- package/types/components/dialogV2/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/types/components/dialogV2/dialog/page/types.d.ts +72 -0
- package/types/components/dialogV2/dialog/pageComponent/types.d.ts +18 -0
- package/types/components/dialogV2/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/types/components/dialogV2/dialog/types.d.ts +58 -0
- package/types/components/dialogV2/dialog.d.ts +6 -0
- package/types/components/dialogV2/lib/types.d.ts +44 -0
- package/types/components/dialogV2/lib/utils.d.ts +15 -0
- package/types/components/dialogV2/lib/utils.globalEvents.d.ts +8 -0
- package/types/components/dialogV2/lib/worker.d.ts +62 -0
- package/{components → types/components}/forms/checkbox/checkbox.vue.d.ts +2 -2
- package/types/components/formsExt/policy/policy.vue.d.ts +8 -0
- package/{components → types/components}/formsExt/policy/types.d.ts +0 -4
- package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +1 -1
- package/{components → types/components}/project/selectorRegion/utils/utils.d.ts +1 -1
- package/types/dialogV1AndDialogV2/dialog.d.ts +2 -0
- package/types/dialogV1Original/dialog.d.ts +2 -0
- package/types/dialogV2/dialog.d.ts +2 -0
- package/types/for-delete/dark-positions.d.ts +1 -0
- package/types/for-delete/dark-th-positions.d.ts +1 -0
- package/types/for-delete/dark-th.d.ts +1 -0
- package/types/for-delete/dark.d.ts +1 -0
- package/types/for-delete/light-positions.d.ts +1 -0
- package/types/for-delete/light.d.ts +1 -0
- package/types/forms/helpers.d.ts +1 -0
- package/utils/check.amd.js +1 -1
- package/utils/check.amd.js.map +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.js +1 -1
- package/utils/clipboard.js.map +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- 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.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.js.map +1 -1
- package/utils/lodash.amd.js +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.js.map +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +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.js.map +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +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.js +3 -3
- package/utils/searchers.js.map +1 -1
- package/utils/store.amd.js +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +1 -1
- 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.js.map +1 -1
- package/utils/url.amd.js +2 -2
- package/utils/url.amd.js.map +1 -1
- package/utils/url.js +1 -1
- package/utils/url.js.map +1 -1
- package/.chunks/core-SEtL6T0A.amd.js +0 -2
- package/.chunks/datepicker-Ba8QPoiv.amd.js +0 -2
- package/.chunks/dialog_selectorRegions-CiWJsA9r.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-C-wpHg-4.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-C-wpHg-4.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Deg17t8D.es.js +0 -322
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Deg17t8D.es.js.map +0 -1
- package/.chunks/forms-L6BGV_om.amd.js +0 -3
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-M0ZTpQlF.amd.js +0 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DepdFfhE.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CDgPLGAn.es.js +0 -143
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CDgPLGAn.es.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-ZB87yGeU.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-ZB87yGeU.amd.js.map +0 -1
- package/.chunks/popup-Kvk7IPNI.amd.js +0 -2
- 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/utils-BKooGtxR.amd.js +0 -2
- package/.chunks/utils-BKooGtxR.amd.js.map +0 -1
- package/.chunks/utils-Bg7IV0KZ.amd.js +0 -2
- package/.chunks/utils-CyqZFHE6.es.js +0 -304
- package/.chunks/utils-CyqZFHE6.es.js.map +0 -1
- 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/forms/select/stories/exampleOptions.d.ts +0 -5
- package/components/formsExt/checkboxGroup/stories/example.d.ts +0 -15
- package/components/formsExt/menu/stories/items.d.ts +0 -3
- package/components/formsExt/policy/policy.vue.d.ts +0 -21
- package/components/formsExt/radioGroup/stories/example.d.ts +0 -20
- package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -9
- package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
- package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
- package/{charts → types/charts}/charts.d.ts +0 -0
- package/{components → types/components}/charts/charts.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/miniChart.vue.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/types.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/utils/consts.d.ts +0 -0
- package/{components → types/components}/charts/miniCharts/miniCharts.d.ts +0 -0
- package/{components → types/components}/charts/miniCharts/miniCharts.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/item/item.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/item/types.d.ts +0 -0
- package/{components → types/components}/core/notice/notice.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/types.d.ts +0 -0
- package/{components → types/components}/core/notice/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/page/page.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/page/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog.d.ts +0 -0
- package/{components → types/components}/dialog/lib/types.d.ts +0 -0
- package/{components → types/components}/dialog/lib/utils.globalEvents.d.ts +0 -0
- package/{components/dialog → types/components/dialogV1Original}/dialog/dialog.vue.d.ts +1 -1
- package/{components/dialog → types/components/dialogV1Original}/lib/utils.d.ts +0 -0
- package/{components/dialog → types/components/dialogV1Original}/lib/worker.d.ts +0 -0
- package/{components → types/components}/extra/extra.d.ts +0 -0
- package/{components → types/components}/extra/rive/rive.vue.d.ts +0 -0
- package/{components → types/components}/extra/rive/types.d.ts +0 -0
- package/{components → types/components}/forms/avatar/avatar.vue.d.ts +1 -1
- /package/{components → types/components}/forms/avatar/types.d.ts +0 -0
- /package/{components → types/components}/forms/button/button.vue.d.ts +0 -0
- /package/{components → types/components}/forms/button/types.d.ts +0 -0
- /package/{components → types/components}/forms/caption/caption.vue.d.ts +0 -0
- /package/{components → types/components}/forms/caption/types.d.ts +0 -0
- /package/{components → types/components}/forms/checkbox/types.d.ts +0 -0
- /package/{components → types/components}/forms/controlLabel/controlLabel.vue.d.ts +0 -0
- /package/{components → types/components}/forms/controlLabel/types.d.ts +0 -0
- /package/{components → types/components}/forms/forms.d.ts +0 -0
- /package/{components → types/components}/forms/helpers.d.ts +0 -0
- /package/{components → types/components}/forms/hint/hint.vue.d.ts +0 -0
- /package/{components → types/components}/forms/hint/types.d.ts +0 -0
- /package/{components → types/components}/forms/input/input.vue.d.ts +0 -0
- /package/{components → types/components}/forms/input/types.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/datepicker.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/inputDate.vue.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/types.d.ts +0 -0
- /package/{components → types/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
- /package/{components → types/components}/forms/inputRange/types.d.ts +0 -0
- /package/{components → types/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
- /package/{components → types/components}/forms/preloader/preloader.vue.d.ts +0 -0
- /package/{components → types/components}/forms/preloader/types.d.ts +0 -0
- /package/{components → types/components}/forms/radio/radio.vue.d.ts +0 -0
- /package/{components → types/components}/forms/radio/types.d.ts +0 -0
- /package/{components → types/components}/forms/select/select.vue.d.ts +0 -0
- /package/{components → types/components}/forms/select/types.d.ts +0 -0
- /package/{components → types/components}/forms/switcher/switcher.vue.d.ts +0 -0
- /package/{components → types/components}/forms/switcher/types.d.ts +0 -0
- /package/{components → types/components}/forms/textarea/textarea.vue.d.ts +0 -0
- /package/{components → types/components}/forms/textarea/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/checkboxGroup/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/editArea/editArea.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/editArea/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/editInput/editInput.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/editInput/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/formsExt.d.ts +0 -0
- /package/{components → types/components}/formsExt/info/info.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/info/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/menu/menu.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/menu/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/radioGroup/radioGroup.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/radioGroup/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/composables/useAPI.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/composables/useMenu.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/itemMulti.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/selector2.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/utils.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsRow/types.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/types.d.ts +0 -0
- /package/{components → types/components}/layout/layout.d.ts +0 -0
- /package/{components → types/components}/layout/rows/rows.vue.d.ts +0 -0
- /package/{components → types/components}/layout/rows/types.d.ts +0 -0
- /package/{components → types/components}/popup/alert/alert.vue.d.ts +0 -0
- /package/{components → types/components}/popup/alert/types.d.ts +0 -0
- /package/{components → types/components}/popup/confirm/confirm.vue.d.ts +0 -0
- /package/{components → types/components}/popup/confirm/types.d.ts +0 -0
- /package/{components → types/components}/popup/lib/popup.d.ts +0 -0
- /package/{components → types/components}/popup/lib/popup.globalEvents.d.ts +0 -0
- /package/{components → types/components}/popup/lib/worker.d.ts +0 -0
- /package/{components → types/components}/popup/lib/worker.globalEvents.d.ts +0 -0
- /package/{components → types/components}/popup/popup/listItem.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup/opener.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup/popup.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup/types.d.ts +0 -0
- /package/{components → types/components}/popup/popup/widgetInput.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup.d.ts +0 -0
- /package/{components → types/components}/popup/prompt/prompt.vue.d.ts +0 -0
- /package/{components → types/components}/popup/prompt/types.d.ts +0 -0
- /package/{components → types/components}/popup/worker.d.ts +0 -0
- /package/{components → types/components}/project/project.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/composables.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/compare.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectRegion.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectSearcher.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectorRegion.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/selectorRegion.vue.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/utils/consts.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupOpener/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/utils/el.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/utils/utils.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/content.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/tab.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/tabs.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/types.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menu.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuItem.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuTitle.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/store.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/tabsView.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/types.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/utils.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView.d.ts +0 -0
- /package/{core → types/core}/app.d.ts +0 -0
- /package/{core → types/core}/core/core.d.ts +0 -0
- /package/{core → types/core}/core/events/resize.d.ts +0 -0
- /package/{core → types/core}/core/events.d.ts +0 -0
- /package/{core → types/core}/core/options.d.ts +0 -0
- /package/{core → types/core}/core/preloaders.d.ts +0 -0
- /package/{core → types/core}/core/state.d.ts +0 -0
- /package/{core → types/core}/directives/data.d.ts +0 -0
- /package/{core → types/core}/directives/focus.d.ts +0 -0
- /package/{core → types/core}/directives/preloader.d.ts +0 -0
- /package/{core → types/core}/directives/scrollIntoView.d.ts +0 -0
- /package/{core → types/core}/directives/scrollShadow.d.ts +0 -0
- /package/{core → types/core}/directives/sticky.d.ts +0 -0
- /package/{core → types/core}/directives/swimUp.d.ts +0 -0
- /package/{core → types/core}/directives/tooltip.d.ts +0 -0
- /package/{core → types/core}/plugins/core.d.ts +0 -0
- /package/{core → types/core}/plugins/i18n.d.ts +0 -0
- /package/{core → types/core}/plugins/piniaTPA.d.ts +0 -0
- /package/{core → types/core}/utils/check.d.ts +0 -0
- /package/{core → types/core}/utils/clipboard.d.ts +0 -0
- /package/{core → types/core}/utils/date.d.ts +0 -0
- /package/{core → types/core}/utils/device.d.ts +0 -0
- /package/{core → types/core}/utils/dom.d.ts +0 -0
- /package/{core → types/core}/utils/image.d.ts +0 -0
- /package/{core → types/core}/utils/keyboard.d.ts +0 -0
- /package/{core → types/core}/utils/lodash.d.ts +0 -0
- /package/{core → types/core}/utils/number.d.ts +0 -0
- /package/{core → types/core}/utils/price.d.ts +0 -0
- /package/{core → types/core}/utils/route.d.ts +0 -0
- /package/{core → types/core}/utils/scroll.d.ts +0 -0
- /package/{core → types/core}/utils/searchers.d.ts +0 -0
- /package/{core → types/core}/utils/store/localStorage.d.ts +0 -0
- /package/{core → types/core}/utils/store/plugin.d.ts +0 -0
- /package/{core → types/core}/utils/store/store.d.ts +0 -0
- /package/{core → types/core}/utils/store.d.ts +0 -0
- /package/{core → types/core}/utils/string.d.ts +0 -0
- /package/{core → types/core}/utils/system.d.ts +0 -0
- /package/{core → types/core}/utils/url.d.ts +0 -0
- /package/{dialog → types/dialog}/dialog.d.ts +0 -0
- /package/{extra → types/extra}/extra.d.ts +0 -0
- /package/{forms/helpers.d.ts → types/for-delete/core.d.ts} +0 -0
- /package/{forms → types/forms}/forms.d.ts +0 -0
- /package/{formsExt → types/formsExt}/formsExt.d.ts +0 -0
- /package/{layout → types/layout}/layout.d.ts +0 -0
- /package/{popup → types/popup}/popup.d.ts +0 -0
- /package/{popup → types/popup}/worker.d.ts +0 -0
- /package/{project → types/project}/project.d.ts +0 -0
- /package/{tabs → types/tabs}/tabs.d.ts +0 -0
- /package/{tabsView → types/tabsView}/tabsView.d.ts +0 -0
- /package/{utils → types/utils}/check.d.ts +0 -0
- /package/{utils → types/utils}/clipboard.d.ts +0 -0
- /package/{utils → types/utils}/date.d.ts +0 -0
- /package/{utils → types/utils}/device.d.ts +0 -0
- /package/{utils → types/utils}/dom.d.ts +0 -0
- /package/{utils → types/utils}/image.d.ts +0 -0
- /package/{utils → types/utils}/keyboard.d.ts +0 -0
- /package/{utils → types/utils}/lodash.d.ts +0 -0
- /package/{utils → types/utils}/number.d.ts +0 -0
- /package/{utils → types/utils}/price.d.ts +0 -0
- /package/{utils → types/utils}/route.d.ts +0 -0
- /package/{utils → types/utils}/scroll.d.ts +0 -0
- /package/{utils → types/utils}/searchers.d.ts +0 -0
- /package/{utils → types/utils}/store.d.ts +0 -0
- /package/{utils → types/utils}/string.d.ts +0 -0
- /package/{utils → types/utils}/system.d.ts +0 -0
- /package/{utils → types/utils}/url.d.ts +0 -0
package/project/project.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Core as be } from "../core/app.js";
|
|
2
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 de, nextTick as Ve, resolveDirective as Ee, withDirectives as Me, resolveDynamicComponent as Ke, renderSlot as $e, shallowRef as we, createSlots as Le, reactive as Ae, toValue as ce, isRef as ge } from "vue";
|
|
3
|
-
import { u as R, C as J, _ as H, y as ie, d as Re } from "../.chunks/forms-
|
|
4
|
-
import { _ as Ie, a as ue, b as Oe } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as Ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import {
|
|
3
|
+
import { u as R, C as J, _ as H, y as ie, d as Re } from "../.chunks/forms-t2AEUjqg.es.js";
|
|
4
|
+
import { _ as Ie, a as ue, b as Oe } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js";
|
|
5
|
+
import { _ as Ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js";
|
|
6
|
+
import { a as De } from "../.chunks/utils-Bd5whKoS.es.js";
|
|
7
7
|
import { getSearcherGIcon as Fe, getLangLabel as qe, getDeviceGIcon as Pe } from "../utils/searchers.js";
|
|
8
8
|
import { storage as W } from "../utils/dom.js";
|
|
9
9
|
import { TopPopupWorker as Ue } from "../popup/worker.js";
|
|
@@ -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", je, [
|
|
34
34
|
y(J).state.isMobile ? (k(), b(Ie, { key: 0 }, {
|
|
35
35
|
opener: _(() => [
|
|
36
36
|
A(H, {
|
|
@@ -73,7 +73,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
73
73
|
})) : (k(), b(Ne, {
|
|
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",
|
|
@@ -101,15 +101,15 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
101
101
|
name: "--",
|
|
102
102
|
regions: [me],
|
|
103
103
|
regionByIndex: /* @__PURE__ */ new Map([[p, me]])
|
|
104
|
-
},
|
|
104
|
+
}, ae = {
|
|
105
105
|
key: p,
|
|
106
106
|
name: "Autoselect",
|
|
107
107
|
index: p
|
|
108
108
|
}, re = {
|
|
109
109
|
key: p,
|
|
110
110
|
name: "Autoselect",
|
|
111
|
-
regions: [
|
|
112
|
-
regionByIndex: /* @__PURE__ */ new Map([[p,
|
|
111
|
+
regions: [ae],
|
|
112
|
+
regionByIndex: /* @__PURE__ */ new Map([[p, ae]])
|
|
113
113
|
}, fe = {
|
|
114
114
|
countryCode: "00",
|
|
115
115
|
depth: 1,
|
|
@@ -118,89 +118,89 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
118
118
|
index: te,
|
|
119
119
|
lang: "ru",
|
|
120
120
|
name: "Without region"
|
|
121
|
-
}, We = () => (
|
|
121
|
+
}, We = () => (ae.name = R().Common.Autoselect, ae), Ye = () => (We(), re.name = R().Common.Autoselect, console.log(re), re), He = () => (fe.name = R().Keywords.Without_region, fe), ke = (t = !1, l = !1, o = []) => {
|
|
122
122
|
let e;
|
|
123
|
-
return t ? e = Qe(o) : e = Ce(o),
|
|
124
|
-
}, Ce = (t,
|
|
123
|
+
return t ? e = Qe(o) : e = Ce(o), l && e.set(p, Ye()), e.size || e.set(p, xe), e;
|
|
124
|
+
}, Ce = (t, l = !0, o = [], e = !1) => {
|
|
125
125
|
const i = /* @__PURE__ */ new Map();
|
|
126
|
-
return t.forEach((
|
|
127
|
-
if (!
|
|
128
|
-
const n = { ...
|
|
129
|
-
n.regionByIndex = /* @__PURE__ */ new Map(),
|
|
130
|
-
if (
|
|
126
|
+
return t.forEach((a) => {
|
|
127
|
+
if (!a.enabled || e && typeof a.key == "number" && a.key > 1) return;
|
|
128
|
+
const n = { ...a };
|
|
129
|
+
n.regionByIndex = /* @__PURE__ */ new Map(), a.regions && a.regions.forEach((u) => {
|
|
130
|
+
if (l && !u.enabled) return;
|
|
131
131
|
const f = { ...u };
|
|
132
132
|
n.regionByIndex.set(f.index, f);
|
|
133
133
|
}), !n.regionByIndex.size && o.length, // режим вывода ПС без регионов
|
|
134
|
-
(!
|
|
134
|
+
(!a.regions || // есть включенные регионы
|
|
135
135
|
n.regionByIndex.size || // запрошен вывод конкретных ПС
|
|
136
136
|
o.length) && typeof n.key == "number" && i.set(n.key, n);
|
|
137
|
-
}), o.forEach((
|
|
138
|
-
if (i.has(
|
|
137
|
+
}), o.forEach((a) => {
|
|
138
|
+
if (i.has(a)) return;
|
|
139
139
|
const n = {
|
|
140
|
-
key:
|
|
141
|
-
name: Ge[
|
|
140
|
+
key: a,
|
|
141
|
+
name: Ge[a],
|
|
142
142
|
regions: [],
|
|
143
143
|
regionByIndex: /* @__PURE__ */ new Map()
|
|
144
144
|
};
|
|
145
145
|
i.set(n.key, n);
|
|
146
146
|
}), i;
|
|
147
147
|
}, Qe = (t) => {
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
150
|
-
const o =
|
|
148
|
+
const l = Ce(t, !1, [0, 1], !0);
|
|
149
|
+
if (l.has(2)) {
|
|
150
|
+
const o = l.get(2);
|
|
151
151
|
o && (o.regionByIndex = /* @__PURE__ */ new Map());
|
|
152
152
|
}
|
|
153
|
-
return
|
|
153
|
+
return l.forEach((o) => {
|
|
154
154
|
if (!o.regionByIndex) return;
|
|
155
155
|
const e = { ...He() };
|
|
156
156
|
o.regionByIndex.set(e.index, e);
|
|
157
|
-
}),
|
|
158
|
-
}, Xe = (t,
|
|
157
|
+
}), l;
|
|
158
|
+
}, Xe = (t, l, o = []) => {
|
|
159
159
|
const e = ke(t, !1, o);
|
|
160
160
|
let i;
|
|
161
|
-
return e.forEach((
|
|
162
|
-
if (!(
|
|
163
|
-
if (!i && !(
|
|
164
|
-
return n.searcher_key =
|
|
161
|
+
return e.forEach((a) => {
|
|
162
|
+
if (!(l.searcher_key !== void 0 && l.searcher_key != a.key) && a.regions && (a.regions.forEach((n) => {
|
|
163
|
+
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)))
|
|
164
|
+
return n.searcher_key = a.key, i = n, !1;
|
|
165
165
|
}), i))
|
|
166
166
|
return !1;
|
|
167
167
|
}), i;
|
|
168
|
-
}, Ze = De(() => import("../.chunks/dialog_selectorRegions-
|
|
169
|
-
const o = R(), e = F(
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
168
|
+
}, Ze = De(() => import("../.chunks/dialog_selectorRegions-C_RhsGzk.es.js")), et = (t, l) => {
|
|
169
|
+
const o = R(), e = F(l.value.keys().next().value ?? p), i = E(() => {
|
|
170
|
+
const a = /* @__PURE__ */ new Map();
|
|
171
|
+
if (l.value.forEach((n) => {
|
|
172
172
|
let u = {
|
|
173
173
|
value: n.key,
|
|
174
174
|
title: n.name
|
|
175
175
|
};
|
|
176
|
-
t.addSearcherIcon && (u.icon = Fe(n.key)),
|
|
177
|
-
}), t.addCompare && !
|
|
176
|
+
t.addSearcherIcon && (u.icon = Fe(n.key)), a.set(n.key, u);
|
|
177
|
+
}), t.addCompare && !a.has(p)) {
|
|
178
178
|
const n = {
|
|
179
179
|
value: "",
|
|
180
180
|
title: "--------------------",
|
|
181
181
|
disabled: !0
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
a.set(n.value, n);
|
|
184
184
|
const u = {
|
|
185
185
|
value: M,
|
|
186
186
|
title: o.Common.Compare
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
a.set(u.value, u);
|
|
189
189
|
}
|
|
190
|
-
return
|
|
190
|
+
return a;
|
|
191
191
|
});
|
|
192
192
|
return {
|
|
193
193
|
searcherKey: e,
|
|
194
194
|
optionBySearcherKey: i
|
|
195
195
|
};
|
|
196
|
-
}, tt = (t,
|
|
197
|
-
var
|
|
196
|
+
}, tt = (t, l) => {
|
|
197
|
+
var a, n, u;
|
|
198
198
|
const o = R(), e = F(p);
|
|
199
|
-
t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value === p && (t.forFrequency ? e.value = ((n = (
|
|
199
|
+
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
200
|
const i = E(() => {
|
|
201
201
|
var h;
|
|
202
202
|
const f = /* @__PURE__ */ new Map();
|
|
203
|
-
return (h =
|
|
203
|
+
return (h = l.value.regionByIndex) == null || h.forEach((S) => {
|
|
204
204
|
let r = S.name;
|
|
205
205
|
if (t.forFrequency) {
|
|
206
206
|
const x = {
|
|
@@ -211,7 +211,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
213
|
S.device && (r += " (" + o.Common["Device_" + S.device] + ")");
|
|
214
|
-
const g = qe(
|
|
214
|
+
const g = qe(l.value.key || 0, S.lang ?? "");
|
|
215
215
|
g && (r += " / " + g);
|
|
216
216
|
const d = {
|
|
217
217
|
value: S.index,
|
|
@@ -248,10 +248,10 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
248
248
|
regionIndex: e,
|
|
249
249
|
optionByRegionIndex: i
|
|
250
250
|
};
|
|
251
|
-
},
|
|
251
|
+
}, at = (t, l, o) => {
|
|
252
252
|
const e = F([]), i = () => {
|
|
253
|
-
if (t.onlySearcher &&
|
|
254
|
-
e.value = Array.from(
|
|
253
|
+
if (t.onlySearcher && l.value) {
|
|
254
|
+
e.value = Array.from(l.value.keys());
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
let n = [];
|
|
@@ -265,62 +265,62 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
265
265
|
} catch {
|
|
266
266
|
}
|
|
267
267
|
n.length && (n = n.filter((u) => o.value.has(u))), n.length || (n = Array.from(o.value)), e.value = [...n];
|
|
268
|
-
},
|
|
268
|
+
}, a = () => {
|
|
269
269
|
e.value.length ? localStorage.setItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes", JSON.stringify(e.value)) : localStorage.removeItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes");
|
|
270
270
|
};
|
|
271
271
|
return w(e, () => {
|
|
272
|
-
|
|
272
|
+
a();
|
|
273
273
|
}), t.addCompare && i(), {
|
|
274
274
|
regionsIndexes: e
|
|
275
275
|
};
|
|
276
|
-
},
|
|
277
|
-
const
|
|
276
|
+
}, lt = (t) => {
|
|
277
|
+
const l = E(() => ke(t.forFrequency, t.autoRegion, t.searchers)), o = E(() => l.value.get(i.searcherKey.value) || xe), e = E(() => {
|
|
278
278
|
const r = /* @__PURE__ */ new Set();
|
|
279
|
-
return
|
|
279
|
+
return l.value.forEach((g) => {
|
|
280
280
|
g.regionByIndex.forEach((d) => {
|
|
281
281
|
d.index !== te && d.index !== p && r.add(d.index);
|
|
282
282
|
});
|
|
283
283
|
}), r;
|
|
284
|
-
}), i = et(t,
|
|
285
|
-
w(
|
|
284
|
+
}), i = et(t, l), a = tt(t, o), n = at(t, l, e);
|
|
285
|
+
w(l, () => {
|
|
286
286
|
var g, d, x, T;
|
|
287
|
-
if (t.onlySearcher ? n.regionsIndexes.value = Array.from(
|
|
288
|
-
let r =
|
|
289
|
-
|
|
287
|
+
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;
|
|
288
|
+
let r = l.value.keys().next().value;
|
|
289
|
+
l.value.forEach((C) => {
|
|
290
290
|
var V, m, s;
|
|
291
291
|
if (t.onlySearcher && C.key === i.searcherKey.value) {
|
|
292
292
|
r = i.searcherKey.value;
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
|
-
if (
|
|
295
|
+
if (a.regionIndex.value && ((V = C.regionByIndex) != null && V.has(a.regionIndex.value)) && (r = C.key), !t.onlySearcher) {
|
|
296
296
|
let c;
|
|
297
|
-
r !== void 0 && (c = (m =
|
|
298
|
-
const v = (s =
|
|
297
|
+
r !== void 0 && (c = (m = l.value.get(r)) == null ? void 0 : m.regionByIndex);
|
|
298
|
+
const v = (s = l.value.get(C.key)) == null ? void 0 : s.regionByIndex;
|
|
299
299
|
c != null && c.has(p) && !(v != null && v.has(p)) && (r = C.key);
|
|
300
300
|
}
|
|
301
|
-
}), r !== void 0 && (i.searcherKey.value = r),
|
|
301
|
+
}), 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
302
|
}, { immediate: !0 });
|
|
303
303
|
const u = () => {
|
|
304
304
|
if (!(i.searcherKey.value === M || i.searcherKey.value === p))
|
|
305
305
|
return i.searcherKey.value;
|
|
306
306
|
}, f = () => {
|
|
307
|
-
if (t.onlySearcher ||
|
|
308
|
-
let r =
|
|
307
|
+
if (t.onlySearcher || a.regionIndex.value === p) return;
|
|
308
|
+
let r = a.regionIndex.value;
|
|
309
309
|
if (t.forFrequency) {
|
|
310
|
-
const g =
|
|
310
|
+
const g = a.regionIndex.value, d = Xe(t.forFrequency, { searcher_key: u(), key: g }, t.searchers);
|
|
311
311
|
r = d == null ? void 0 : d.index;
|
|
312
312
|
}
|
|
313
313
|
return r;
|
|
314
314
|
}, h = () => {
|
|
315
315
|
const r = u();
|
|
316
316
|
if (r !== void 0)
|
|
317
|
-
return
|
|
317
|
+
return l.value.get(r);
|
|
318
318
|
};
|
|
319
319
|
return {
|
|
320
320
|
selectSearcher: i,
|
|
321
|
-
selectRegion:
|
|
321
|
+
selectRegion: a,
|
|
322
322
|
compare: n,
|
|
323
|
-
searcherByKey:
|
|
323
|
+
searcherByKey: l,
|
|
324
324
|
allRegionsIndexes: e,
|
|
325
325
|
getSearcher: h,
|
|
326
326
|
getRegion: () => {
|
|
@@ -351,16 +351,16 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
351
351
|
modelValueSingleModifiers: {}
|
|
352
352
|
}),
|
|
353
353
|
emits: ["update:modelValue", "update:modelValueSingle"],
|
|
354
|
-
setup(t, { expose:
|
|
354
|
+
setup(t, { expose: l }) {
|
|
355
355
|
const o = t, e = D(t, "modelValue"), i = D(t, "modelValueSingle"), {
|
|
356
|
-
selectSearcher:
|
|
356
|
+
selectSearcher: a,
|
|
357
357
|
selectRegion: n,
|
|
358
358
|
compare: u,
|
|
359
359
|
searcherByKey: f,
|
|
360
360
|
allRegionsIndexes: h,
|
|
361
361
|
getSearcher: S,
|
|
362
362
|
getRegion: r
|
|
363
|
-
} =
|
|
363
|
+
} = lt(o), g = () => {
|
|
364
364
|
const d = [];
|
|
365
365
|
f.value.forEach((x) => {
|
|
366
366
|
x.enabled && x.regions.forEach((T) => {
|
|
@@ -372,14 +372,14 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
372
372
|
"@update:regionsIndexes": (x) => u.regionsIndexes.value = x
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
|
-
return w([n.regionIndex,
|
|
376
|
-
if (
|
|
375
|
+
return w([n.regionIndex, a.searcherKey, u.regionsIndexes], () => {
|
|
376
|
+
if (a.searcherKey.value === M && u.regionsIndexes.value.length) {
|
|
377
377
|
if (JSON.stringify(e.value) === JSON.stringify(u.regionsIndexes.value))
|
|
378
378
|
return;
|
|
379
379
|
e.value = [...u.regionsIndexes.value];
|
|
380
380
|
} else
|
|
381
|
-
o.onlySearcher ? (e.value = [
|
|
382
|
-
!o.onlySearcher && !h.value.size && (
|
|
381
|
+
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));
|
|
382
|
+
!o.onlySearcher && !h.value.size && (a.searcherKey.value = p);
|
|
383
383
|
}), i.value && w(i, () => {
|
|
384
384
|
i.value && (e.value = [i.value]);
|
|
385
385
|
}, { immediate: !0 }), w(e, () => {
|
|
@@ -412,18 +412,18 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
if (!(e.value.length === 1 && e.value[0] === (o.onlySearcher ?
|
|
415
|
+
if (!(e.value.length === 1 && e.value[0] === (o.onlySearcher ? a.searcherKey.value : n.regionIndex.value)))
|
|
416
416
|
if (o.onlySearcher) {
|
|
417
417
|
if (e.value.length === 1) {
|
|
418
|
-
|
|
418
|
+
a.searcherKey.value = e.value[0];
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
|
|
421
|
+
a.searcherKey.value = M;
|
|
422
422
|
return;
|
|
423
423
|
} else {
|
|
424
424
|
if (!e.value.length)
|
|
425
425
|
return;
|
|
426
|
-
if (e.value.length === 1 &&
|
|
426
|
+
if (e.value.length === 1 && a.searcherKey.value !== M) {
|
|
427
427
|
n.regionIndex.value = e.value[0];
|
|
428
428
|
let m;
|
|
429
429
|
for (const s of f.value.values()) {
|
|
@@ -435,11 +435,11 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
435
435
|
if (m !== void 0)
|
|
436
436
|
break;
|
|
437
437
|
}
|
|
438
|
-
m !== void 0 && (
|
|
438
|
+
m !== void 0 && (a.searcherKey.value = m);
|
|
439
439
|
} else
|
|
440
|
-
|
|
440
|
+
a.searcherKey.value = M, u.regionsIndexes.value = [...e.value];
|
|
441
441
|
}
|
|
442
|
-
}, { immediate: !0 }),
|
|
442
|
+
}, { immediate: !0 }), l({
|
|
443
443
|
getSearcher: S,
|
|
444
444
|
getRegion: r
|
|
445
445
|
}), (d, x) => (k(), B("div", {
|
|
@@ -449,13 +449,13 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
449
449
|
})
|
|
450
450
|
}, [
|
|
451
451
|
A(ie, {
|
|
452
|
-
options: y(
|
|
453
|
-
modelValue: y(
|
|
454
|
-
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(
|
|
452
|
+
options: y(a).optionBySearcherKey.value,
|
|
453
|
+
modelValue: y(a).searcherKey.value,
|
|
454
|
+
"onUpdate:modelValue": x[0] || (x[0] = (T) => y(a).searcherKey.value = T),
|
|
455
455
|
name: "searcher_key",
|
|
456
456
|
addChanger: d.addChanger
|
|
457
457
|
}, null, 8, ["options", "modelValue", "addChanger"]),
|
|
458
|
-
!d.onlySearcher && y(
|
|
458
|
+
!d.onlySearcher && y(a).searcherKey.value !== y(M) ? (k(), b(ie, {
|
|
459
459
|
key: 0,
|
|
460
460
|
class: "top-select-region",
|
|
461
461
|
options: y(n).optionByRegionIndex.value,
|
|
@@ -465,7 +465,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
465
465
|
addChanger: d.addChanger,
|
|
466
466
|
"data-top-icon": d.addRegionIcon ? "" : void 0
|
|
467
467
|
}, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : q("", !0),
|
|
468
|
-
d.addCompare && !d.onlySearcher && y(
|
|
468
|
+
d.addCompare && !d.onlySearcher && y(a).searcherKey.value === y(M) ? (k(), b(H, {
|
|
469
469
|
key: 1,
|
|
470
470
|
name: "compare",
|
|
471
471
|
onClick: g,
|
|
@@ -529,9 +529,9 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
529
529
|
name: "Turquoise",
|
|
530
530
|
color_id: "10"
|
|
531
531
|
}
|
|
532
|
-
], ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t,
|
|
532
|
+
], ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t, le = (t, l) => {
|
|
533
533
|
t = Q(t);
|
|
534
|
-
const o =
|
|
534
|
+
const o = l.find((e) => e.id === t);
|
|
535
535
|
if (o)
|
|
536
536
|
return o;
|
|
537
537
|
}, rt = ["data-tag_id", "data-tag_color_id", "title"], ne = /* @__PURE__ */ P({
|
|
@@ -543,15 +543,15 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
543
543
|
state: {}
|
|
544
544
|
},
|
|
545
545
|
setup(t) {
|
|
546
|
-
return (
|
|
546
|
+
return (l, o) => (k(), B("div", {
|
|
547
547
|
class: X({
|
|
548
548
|
"top-tagSelector_tagIcon": !0,
|
|
549
|
-
"top-tagSelector-active": !!
|
|
550
|
-
"top-tagSelector-excluded":
|
|
549
|
+
"top-tagSelector-active": !!l.state,
|
|
550
|
+
"top-tagSelector-excluded": l.state === "excluded"
|
|
551
551
|
}),
|
|
552
|
-
"data-tag_id":
|
|
553
|
-
"data-tag_color_id":
|
|
554
|
-
title:
|
|
552
|
+
"data-tag_id": l.id,
|
|
553
|
+
"data-tag_color_id": l.colorId,
|
|
554
|
+
title: l.name
|
|
555
555
|
}, null, 10, rt));
|
|
556
556
|
}
|
|
557
557
|
}), it = ["contenteditable", "onKeydown"], ye = /* @__PURE__ */ P({
|
|
@@ -571,20 +571,20 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
571
571
|
nameModifiers: {}
|
|
572
572
|
}),
|
|
573
573
|
emits: /* @__PURE__ */ N(["update:name", "unselect", "exclude", "select"], ["update:name"]),
|
|
574
|
-
setup(t, { emit:
|
|
575
|
-
const o = t, e =
|
|
574
|
+
setup(t, { emit: l }) {
|
|
575
|
+
const o = t, e = l, i = D(t, "name"), a = F(null), n = E(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
|
|
576
576
|
contenteditable: u.value,
|
|
577
577
|
onpaste: (g) => g.preventDefault()
|
|
578
578
|
} : {}), u = F(!1), f = async () => {
|
|
579
579
|
var g;
|
|
580
|
-
u.value = !0, await Ve(), (g =
|
|
580
|
+
u.value = !0, await Ve(), (g = a.value) == null || g.focus();
|
|
581
581
|
}, h = () => {
|
|
582
582
|
var d;
|
|
583
|
-
const g = (d =
|
|
583
|
+
const g = (d = a.value) == null ? void 0 : d.innerText;
|
|
584
584
|
if (!g) return S();
|
|
585
|
-
|
|
585
|
+
a.value && (a.value.innerText = g), u.value = !1, e("update:name", g);
|
|
586
586
|
}, S = async () => {
|
|
587
|
-
|
|
587
|
+
a.value && (a.value.innerText = o.name), u.value = !1;
|
|
588
588
|
}, r = (g) => {
|
|
589
589
|
if (u.value || o.disabled) return;
|
|
590
590
|
let d = "selected";
|
|
@@ -610,7 +610,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
610
610
|
}, null, 8, ["id", "name", "colorId", "state"]),
|
|
611
611
|
he("span", Se({
|
|
612
612
|
ref_key: "elName",
|
|
613
|
-
ref:
|
|
613
|
+
ref: a,
|
|
614
614
|
class: "top-tagSelector_tagListItemName",
|
|
615
615
|
contenteditable: u.value ? "plaintext-only" : !1
|
|
616
616
|
}, n.value, {
|
|
@@ -657,12 +657,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
657
657
|
}),
|
|
658
658
|
emits: ["update:modelValue"],
|
|
659
659
|
setup(t) {
|
|
660
|
-
const
|
|
660
|
+
const l = t, o = D(t, "modelValue"), e = l.useTopButton ? H : "div", i = l.useTopButton ? "html" : "default", a = {
|
|
661
661
|
model: o,
|
|
662
|
-
mode:
|
|
663
|
-
targetId:
|
|
664
|
-
filters:
|
|
665
|
-
payload:
|
|
662
|
+
mode: l.mode,
|
|
663
|
+
targetId: l.targetId,
|
|
664
|
+
filters: l.filters,
|
|
665
|
+
payload: l.payload
|
|
666
666
|
};
|
|
667
667
|
return (n, u) => {
|
|
668
668
|
const f = Ee("top-data");
|
|
@@ -671,9 +671,9 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
671
671
|
Me((k(), b(Ke(y(e)), Se({
|
|
672
672
|
class: {
|
|
673
673
|
"top-tagSelector": !0,
|
|
674
|
-
"top-tagSelector-filter":
|
|
675
|
-
"top-tagSelector-setter_single":
|
|
676
|
-
"top-tagSelector-setter_several":
|
|
674
|
+
"top-tagSelector-filter": l.mode === "filter",
|
|
675
|
+
"top-tagSelector-setter_single": l.mode === "setter" && !n.filters,
|
|
676
|
+
"top-tagSelector-setter_several": l.mode === "setter" && n.filters,
|
|
677
677
|
"top-tagSelector-selectedOne": !o.value.length || o.value.length === 1,
|
|
678
678
|
"top-tagSelector-toTwoLine": o.value.length > 5
|
|
679
679
|
},
|
|
@@ -694,15 +694,15 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
694
694
|
var S, r;
|
|
695
695
|
return k(), b(ne, {
|
|
696
696
|
id: y(Q)(h),
|
|
697
|
-
colorId: ((S = y(
|
|
698
|
-
name: ((r = y(
|
|
697
|
+
colorId: ((S = y(le)(h, n.tags)) == null ? void 0 : S.color_id) ?? "",
|
|
698
|
+
name: ((r = y(le)(h, n.tags)) == null ? void 0 : r.name) ?? "",
|
|
699
699
|
state: y(Q)(h) === h ? "selected" : "excluded"
|
|
700
700
|
}, null, 8, ["id", "colorId", "name", "state"]);
|
|
701
701
|
}), 256))
|
|
702
702
|
]),
|
|
703
703
|
_: 2
|
|
704
704
|
}, 1040, ["class", "styling"])), [
|
|
705
|
-
[f,
|
|
705
|
+
[f, a, "topTagSelectorTarget"]
|
|
706
706
|
])
|
|
707
707
|
]),
|
|
708
708
|
_: 3
|
|
@@ -733,11 +733,11 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
733
733
|
tagsModifiers: {}
|
|
734
734
|
}),
|
|
735
735
|
emits: /* @__PURE__ */ N(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
|
|
736
|
-
setup(t, { emit:
|
|
737
|
-
const o = R(), e = t, i = D(t, "modelValue"),
|
|
736
|
+
setup(t, { emit: l }) {
|
|
737
|
+
const o = R(), e = t, i = D(t, "modelValue"), a = D(t, "tags"), n = l, u = Re((s, c) => {
|
|
738
738
|
n(s, c);
|
|
739
739
|
}, e.emitDelay);
|
|
740
|
-
e.singleMode && !i.value.length && (i.value = [
|
|
740
|
+
e.singleMode && !i.value.length && (i.value = [a.value[0].id]);
|
|
741
741
|
const f = e.id ?? "top-popup-id-" + Math.random(), h = F("add"), S = () => {
|
|
742
742
|
var v;
|
|
743
743
|
const s = " " + ((v = o.Common.Tags) == null ? void 0 : v.toLowerCase()), c = /* @__PURE__ */ new Map();
|
|
@@ -780,12 +780,12 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
780
780
|
}), C = () => {
|
|
781
781
|
const s = prompt("", "New tag");
|
|
782
782
|
if (!s || s === "New tag") return;
|
|
783
|
-
const c =
|
|
784
|
-
|
|
783
|
+
const c = a.value.length + 1;
|
|
784
|
+
a.value.push({
|
|
785
785
|
id: String(c),
|
|
786
786
|
name: s,
|
|
787
787
|
color_id: String((c - 1) % 10 + 1)
|
|
788
|
-
}), n("tagsChanged",
|
|
788
|
+
}), n("tagsChanged", a.value);
|
|
789
789
|
}, V = (s) => {
|
|
790
790
|
var c;
|
|
791
791
|
if (r.value = W(s.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
|
|
@@ -793,7 +793,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
793
793
|
console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
|
-
!J.state.isMobile && !J.state.isMobileUA &&
|
|
796
|
+
!J.state.isMobile && !J.state.isMobileUA && a.value && $(s.elPopup).sortable({
|
|
797
797
|
items: 'li:has([data-tag_id]:not([data-tag_id="all"]))',
|
|
798
798
|
/**
|
|
799
799
|
* @todo Удалить `[contenteditable="true"]` через пол года после выхода версии firefox с поддержкой contenteditable plaintext-only, включая бета версии
|
|
@@ -801,16 +801,16 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
801
801
|
cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
|
|
802
802
|
distance: 10,
|
|
803
803
|
stop: function(v, I) {
|
|
804
|
-
if (!
|
|
804
|
+
if (!a.value) return;
|
|
805
805
|
const L = $(I.item).parent().find("[data-tag_id]"), U = [];
|
|
806
806
|
L.each((Z, j) => {
|
|
807
|
-
if (!
|
|
807
|
+
if (!a.value) return;
|
|
808
808
|
const O = $(j).attr("data-tag_id");
|
|
809
809
|
U.push(O);
|
|
810
|
-
}),
|
|
810
|
+
}), a.value.sort((Z, j) => {
|
|
811
811
|
const O = U.findIndex((oe) => oe === Z.id), _e = U.findIndex((oe) => oe === j.id);
|
|
812
812
|
return O - _e;
|
|
813
|
-
}), u("tagsChanged",
|
|
813
|
+
}), u("tagsChanged", a.value);
|
|
814
814
|
}
|
|
815
815
|
});
|
|
816
816
|
}, m = (s) => {
|
|
@@ -823,7 +823,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
823
823
|
modelValue: i.value,
|
|
824
824
|
"onUpdate:modelValue": c[0] || (c[0] = (v) => i.value = v),
|
|
825
825
|
id: y(f),
|
|
826
|
-
tags:
|
|
826
|
+
tags: a.value,
|
|
827
827
|
styling: s.styling,
|
|
828
828
|
mode: "filter",
|
|
829
829
|
useTopButton: ""
|
|
@@ -844,7 +844,7 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
844
844
|
state: y(r).model.value.length ? "" : "selected",
|
|
845
845
|
onSelect: c[3] || (c[3] = (v) => y(r).model.value = [])
|
|
846
846
|
}, null, 8, ["name", "state"])) : q("", !0),
|
|
847
|
-
(k(!0), B(Y, null, se(
|
|
847
|
+
(k(!0), B(Y, null, se(a.value, (v) => (k(), b(ye, {
|
|
848
848
|
key: v.id,
|
|
849
849
|
id: v.id,
|
|
850
850
|
colorId: v.color_id,
|
|
@@ -857,10 +857,10 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
857
857
|
onSelect: (I) => x(v.id, "select"),
|
|
858
858
|
onExclude: (I) => x(v.id, "exclude"),
|
|
859
859
|
"onUpdate:name": (I) => {
|
|
860
|
-
v.name = I, y(u)("tagsChanged",
|
|
860
|
+
v.name = I, y(u)("tagsChanged", a.value);
|
|
861
861
|
}
|
|
862
862
|
}, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
|
|
863
|
-
s.tagsEditable &&
|
|
863
|
+
s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(ue, {
|
|
864
864
|
key: 1,
|
|
865
865
|
"data-top-icon": "",
|
|
866
866
|
onClick: z(C, ["stop"])
|
|
@@ -912,63 +912,63 @@ const je = { class: "top-selectorCompetitors" }, ze = { class: "top-ellipsis1" }
|
|
|
912
912
|
]), 1032, ["id", "class"])
|
|
913
913
|
], 64));
|
|
914
914
|
}
|
|
915
|
-
}), St = (t,
|
|
915
|
+
}), St = (t, l) => E(() => ce(t).filter((i) => i.on >= 0 || i.id === l).map((i) => ({
|
|
916
916
|
value: i.id,
|
|
917
917
|
title: i.url + ` [${i.id}]`,
|
|
918
|
-
icon: i.id === ce(
|
|
918
|
+
icon: i.id === ce(l) ? "" : "",
|
|
919
919
|
content: i.name
|
|
920
|
-
}))), It = (t,
|
|
921
|
-
|
|
922
|
-
const e = Ue.genElPopupOpener("div",
|
|
920
|
+
}))), It = (t, l, o) => {
|
|
921
|
+
l || (l = { id: t.id }), l.id = t.id;
|
|
922
|
+
const e = Ue.genElPopupOpener("div", l);
|
|
923
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
924
|
i.preventDefault(), i.stopPropagation(), e.onclick = null;
|
|
925
|
-
const
|
|
926
|
-
model:
|
|
925
|
+
const a = F(t.modelValue), n = {
|
|
926
|
+
model: a,
|
|
927
927
|
mode: t.mode,
|
|
928
928
|
targetId: t.targetId,
|
|
929
929
|
filters: t.filters,
|
|
930
930
|
payload: t.payload
|
|
931
931
|
};
|
|
932
|
-
W(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ge(t.modelValue) || w(
|
|
933
|
-
t.modelValue =
|
|
932
|
+
W(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ge(t.modelValue) || w(a, () => {
|
|
933
|
+
t.modelValue = a.value, ee(e, t, o);
|
|
934
934
|
}), e.click();
|
|
935
935
|
}, ge(t.modelValue) ? w(t.modelValue, () => ee(e, t, o)) : W(e, "topTagSelectorRender", (i) => {
|
|
936
936
|
t.modelValue = i;
|
|
937
|
-
const
|
|
938
|
-
|
|
937
|
+
const a = W(e, "topTagSelectorTarget");
|
|
938
|
+
a && (a.model.value = i), ee(e, t, o);
|
|
939
939
|
}), ee(e, t, o), e;
|
|
940
|
-
}, xt = (t,
|
|
940
|
+
}, xt = (t, l) => {
|
|
941
941
|
var o;
|
|
942
|
-
(o = W(t, "topTagSelectorRender")) == null || o(
|
|
943
|
-
}, ee = (t,
|
|
942
|
+
(o = W(t, "topTagSelectorRender")) == null || o(l);
|
|
943
|
+
}, ee = (t, l, o) => {
|
|
944
944
|
var i;
|
|
945
|
-
const e = y(
|
|
946
|
-
if (t.classList.toggle("top-tagSelector-selectedOne", !e.length || e.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", e.length > 5),
|
|
945
|
+
const e = y(l.modelValue);
|
|
946
|
+
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) {
|
|
947
947
|
t.innerHTML = `<div>${o}</div>`;
|
|
948
948
|
return;
|
|
949
949
|
}
|
|
950
|
-
if (t.innerHTML = "", !e.length &&
|
|
951
|
-
const
|
|
950
|
+
if (t.innerHTML = "", !e.length && l.mode === "filter") {
|
|
951
|
+
const a = pe({
|
|
952
952
|
id: "all",
|
|
953
953
|
colorId: "",
|
|
954
954
|
name: ((i = R().Common) == null ? void 0 : i.All_tags) ?? "",
|
|
955
955
|
state: ""
|
|
956
956
|
});
|
|
957
|
-
t.append(
|
|
957
|
+
t.append(a);
|
|
958
958
|
}
|
|
959
|
-
e.forEach((
|
|
959
|
+
e.forEach((a) => {
|
|
960
960
|
var u, f;
|
|
961
961
|
const n = pe({
|
|
962
|
-
id: Q(
|
|
963
|
-
colorId: ((u =
|
|
964
|
-
name: ((f =
|
|
965
|
-
state: Q(
|
|
962
|
+
id: Q(a),
|
|
963
|
+
colorId: ((u = le(a, l.tags)) == null ? void 0 : u.color_id) ?? "",
|
|
964
|
+
name: ((f = le(a, l.tags)) == null ? void 0 : f.name) ?? "",
|
|
965
|
+
state: Q(a) === a ? "selected" : "excluded"
|
|
966
966
|
});
|
|
967
967
|
t.append(n);
|
|
968
968
|
});
|
|
969
969
|
}, pe = (t) => {
|
|
970
|
-
const
|
|
971
|
-
return
|
|
970
|
+
const l = document.createElement("div");
|
|
971
|
+
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;
|
|
972
972
|
}, kt = Je, Ct = nt, Tt = ut, _t = Te, bt = ne;
|
|
973
973
|
export {
|
|
974
974
|
kt as TopSelectorCompetitors,
|