@topvisor/ui 1.5.0-updates.1 → 1.5.0-updates.11
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/api-CawzY1Cw.amd.js +1 -1
- package/.chunks/api-CawzY1Cw.amd.js.map +1 -1
- package/.chunks/app-CCX-gNqz.amd.js +1 -1
- package/.chunks/app-CCX-gNqz.amd.js.map +1 -1
- package/.chunks/datepicker-BTkZOq7d.amd.js +1 -1
- package/.chunks/datepicker-BTkZOq7d.amd.js.map +1 -1
- package/.chunks/dialog-DeM4SApg.amd.js +1 -1
- package/.chunks/dialog-DeM4SApg.amd.js.map +1 -1
- package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.amd.js +1 -1
- package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.amd.js.map +1 -1
- package/.chunks/dialogs-CMrERMI7.amd.js +1 -1
- package/.chunks/dialogs-CMrERMI7.amd.js.map +1 -1
- package/.chunks/field-CjkpGeA7.amd.js +1 -1
- package/.chunks/field-CjkpGeA7.amd.js.map +1 -1
- package/.chunks/forms-CbUt-6Ff.amd.js +1 -1
- package/.chunks/forms-CbUt-6Ff.amd.js.map +1 -1
- package/.chunks/formsExt-CrTmBhja.amd.js +1 -1
- package/.chunks/formsExt-CrTmBhja.amd.js.map +1 -1
- package/.chunks/formsExt-CrTmBhja.esm.js.map +1 -1
- package/.chunks/lazy-CGswTOPj.amd.js +1 -1
- package/.chunks/lazy-CGswTOPj.amd.js.map +1 -1
- package/.chunks/mocker-CwZe-g4N.amd.js +1 -1
- package/.chunks/mocker-CwZe-g4N.amd.js.map +1 -1
- package/.chunks/notice-CslVdVNm.amd.js +2 -2
- package/.chunks/notice-CslVdVNm.amd.js.map +1 -1
- package/.chunks/popup-DrByVU-k.amd.js +1 -1
- package/.chunks/popup-DrByVU-k.amd.js.map +1 -1
- package/.chunks/popup-dNrN-eKi.amd.js +1 -1
- package/.chunks/popup-dNrN-eKi.amd.js.map +1 -1
- package/.chunks/punycode.es6-B-5kB2YI.amd.js +1 -1
- package/.chunks/punycode.es6-B-5kB2YI.amd.js.map +1 -1
- package/.chunks/store-DuQpSSLL.amd.js +1 -1
- package/.chunks/store-DuQpSSLL.amd.js.map +1 -1
- package/.chunks/utils-BwiXsV0S.amd.js +1 -1
- package/.chunks/utils-BwiXsV0S.amd.js.map +1 -1
- package/.chunks/utils-Dd0MZgyw.amd.js +1 -1
- package/.chunks/utils-Dd0MZgyw.amd.js.map +1 -1
- package/.chunks/worker-Db8YrEHo.amd.js +1 -1
- package/.chunks/worker-Db8YrEHo.amd.js.map +1 -1
- package/api/additional.amd.js +1 -1
- package/api/additional.amd.js.map +1 -1
- package/api/additional.d.ts +1 -0
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.d.ts +1 -0
- package/assets/core.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/project.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.d.ts +1 -0
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.d.ts +1 -0
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.d.ts +1 -0
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.d.ts +1 -0
- package/forms/forms.amd.js +1 -1
- package/forms/forms.amd.js.map +1 -1
- package/forms/forms.d.ts +1 -0
- package/forms/helpers.amd.js +1 -1
- package/forms/helpers.amd.js.map +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.d.ts +1 -0
- package/icomoon/Topvisor icons.json +259 -231
- package/icomoon/demo-files/demo.amd.js +1 -1
- package/icomoon/demo-files/demo.amd.js.map +1 -1
- package/icomoon/demo.amd.js +1 -1
- package/icomoon/demo.amd.js.map +1 -1
- package/icomoon/demo.html +15 -1
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +1 -0
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +8 -5
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.d.ts +1 -0
- package/package.json +1 -1
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.d.ts +1 -0
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.d.ts +1 -0
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.d.ts +1 -0
- package/project/project.js +182 -189
- package/project/project.js.map +1 -1
- package/src/{src/components → components}/charts/miniCharts/miniCharts.d.ts +1 -1
- package/src/{src/components → components}/core/notice/item/types.d.ts +1 -1
- package/src/{src/components → components}/core/notice/utils.d.ts +1 -1
- package/src/{src/components → components}/dialog/dialog/composables/dialogHandle.d.ts +1 -1
- package/src/{src/components → components}/dialog/dialog/dialogs/dialogs.vue.d.ts +2 -2
- package/src/{src/components → components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +1 -1
- package/src/components/dialog/dialog.d.ts +6 -0
- package/src/{src/components → components}/dialog/lib/worker.d.ts +1 -1
- package/src/{src/components → components}/forms/button/types.d.ts +1 -1
- package/src/{src/components → components}/forms/input/types.d.ts +1 -1
- package/src/components/forms/inputDate/types.d.ts +1 -0
- package/src/{src/components → components}/forms/select/types.d.ts +1 -1
- package/src/{src/components → components}/formsExt/editArea/types.d.ts +1 -1
- package/src/{src/components → components}/formsExt/editInput/types.d.ts +2 -2
- package/src/{src/components → components}/formsExt/libs/optionGroup/types.d.ts +1 -1
- package/src/{src/components → components}/formsExt/menu/types.d.ts +1 -1
- package/src/{src/components → components}/formsExt/policy/policy.vue.d.ts +1 -1
- package/src/{src/components → components}/formsExt/selector2/types.d.ts +3 -3
- package/src/{src/components → components}/popup/lib/popup.d.ts +2 -2
- package/src/{src/components → components}/popup/lib/worker.d.ts +2 -2
- package/src/{src/components → components}/popup/popup/popup.vue.d.ts +1 -1
- package/src/{src/components → components}/popup/popup/widgetInput/widgetInput.vue.d.ts +1 -1
- package/src/{src/components → components}/popup/popupConfirm/popupConfirm.vue.d.ts +1 -1
- package/src/{src/components → components}/project/competitorSelector/composables.d.ts +1 -1
- package/src/{src/components → components}/project/competitorSelector/types.d.ts +1 -1
- package/src/{src/components → components}/project/groupSelector/folders/types.d.ts +2 -2
- package/src/components/project/groupSelector/folders/utils.d.ts +57 -0
- package/src/{src/components → components}/project/groupSelector/groups/groups.vue.d.ts +1 -1
- package/src/{src/components → components}/project/groupSelector/groups/types.d.ts +2 -2
- package/src/components/project/groupSelector/groups/utils.d.ts +78 -0
- package/src/{src/components → components}/project/groupSelector/stories/mocks/index.d.ts +1 -1
- package/src/{src/components → components}/project/projectSelector/cache.d.ts +1 -1
- package/src/{src/components → components}/project/projectSelector/projectSelector.vue.d.ts +1 -1
- package/src/{src/components → components}/project/projectSelector/types.d.ts +2 -2
- package/src/{src/components → components}/project/projectSelector/utils.d.ts +41 -40
- package/src/{src/components → components}/project/regionSelector/composables/selectRegion.d.ts +1 -1
- package/src/{src/components → components}/project/regionSelector/composables/selectSearcher.d.ts +1 -1
- package/src/{src/components → components}/project/regionSelector/dialog_regionSelectorRegions/types.d.ts +1 -1
- package/src/{src/components → components}/project/tagSelector/popupOpener/types.d.ts +1 -1
- package/src/{src/components → components}/project/tagSelector/types.d.ts +1 -1
- package/src/{src/components → components}/project/tagSelector/utils/el.d.ts +1 -1
- package/src/{src/components → components}/tabsView/tabsView/store.d.ts +1 -1
- package/src/{src/core → core}/app.d.ts +2 -2
- package/src/{src/core → core}/core/core.d.ts +3 -3
- package/src/{src/core → core}/plugins/core.d.ts +6 -6
- package/src/{src/core → core}/utils/price.d.ts +2 -2
- package/src/core/utils/store.d.ts +6 -0
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.d.ts +1 -0
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.d.ts +1 -0
- package/utils/check.amd.js +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.d.ts +1 -0
- package/utils/clipboard.amd.js +4 -4
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.d.ts +1 -0
- package/utils/date.amd.js +1 -1
- package/utils/date.amd.js.map +1 -1
- package/utils/date.d.ts +1 -0
- package/utils/device.amd.js +1 -1
- package/utils/device.amd.js.map +1 -1
- package/utils/device.d.ts +1 -0
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.d.ts +5 -0
- package/utils/image.amd.js +1 -1
- package/utils/image.amd.js.map +1 -1
- package/utils/image.d.ts +1 -0
- package/utils/keyboard.amd.js +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.d.ts +1 -0
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.amd.js.map +1 -1
- package/utils/lodash.d.ts +1 -0
- package/utils/number.amd.js +1 -1
- package/utils/number.amd.js.map +1 -1
- package/utils/number.d.ts +1 -0
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.d.ts +1 -0
- package/utils/route.amd.js +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.d.ts +1 -0
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.d.ts +1 -0
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.d.ts +1 -0
- package/utils/store.amd.js +1 -1
- package/utils/store.amd.js.map +1 -1
- package/utils/store.d.ts +1 -0
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.d.ts +1 -0
- package/utils/system.amd.js +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.d.ts +1 -0
- package/utils/url.amd.js +2 -2
- package/utils/url.amd.js.map +1 -1
- package/utils/url.d.ts +1 -0
- package/src/src/components/dialog/dialog.d.ts +0 -6
- package/src/src/components/forms/inputDate/types.d.ts +0 -1
- package/src/src/components/project/groupSelector/folders/utils.d.ts +0 -422
- package/src/src/components/project/groupSelector/groups/utils.d.ts +0 -791
- package/src/src/components/project/groupSelector/utils.d.ts +0 -37
- package/src/src/core/utils/store.d.ts +0 -6
- package/src/{src/api → api}/api/additional.d.ts +0 -0
- package/src/{src/api → api}/api/client/client.d.ts +0 -0
- package/src/{src/api → api}/api/client/request-options.d.ts +0 -0
- package/src/{src/api → api}/api/client/request.d.ts +0 -0
- package/src/{src/api → api}/api/index.d.ts +0 -0
- package/src/{src/api → api}/api/mocker/index.d.ts +0 -0
- package/src/{src/api → api}/api/tests/types.test-d.d.ts +0 -0
- package/src/{src/api → api}/api/types/api.d.ts +0 -0
- package/src/{src/api → api}/api/types/client/client.d.ts +0 -0
- package/src/{src/api → api}/api/types/client/middleware.d.ts +0 -0
- package/src/{src/api → api}/api/types/client/options.d.ts +0 -0
- package/src/{src/api → api}/api/types/client/request-context.d.ts +0 -0
- package/src/{src/api → api}/api/types/client/request-options.d.ts +0 -0
- package/src/{src/api → api}/api/types/client/request.d.ts +0 -0
- package/src/{src/api → api}/api/types/ext.d.ts +0 -0
- package/src/{src/api → api}/api/types/field.d.ts +0 -0
- package/src/{src/api → api}/api/types/index.d.ts +0 -0
- package/src/{src/api → api}/api/types/mocker.d.ts +0 -0
- package/src/{src/api → api}/api/types/schema.d.ts +0 -0
- package/src/{src/api → api}/api/types/tv.d.ts +0 -0
- package/src/{src/api → api}/api/types/utils.d.ts +0 -0
- package/src/{src/api → api}/api/utils/common.d.ts +0 -0
- package/src/{src/api → api}/api/utils/field.d.ts +0 -0
- package/src/{src/api → api}/api/utils/filters.d.ts +0 -0
- package/src/{src/api → api}/api/utils/lazy.d.ts +0 -0
- package/src/{src/components → components}/charts/charts.d.ts +0 -0
- package/src/{src/components → components}/charts/miniChart/miniChart.vue.d.ts +0 -0
- package/src/{src/components → components}/charts/miniChart/types.d.ts +0 -0
- package/src/{src/components → components}/charts/miniChart/utils/consts.d.ts +0 -0
- package/src/{src/components → components}/charts/miniCharts/miniCharts.vue.d.ts +0 -0
- package/src/{src/components → components}/core/notice/item/item.vue.d.ts +0 -0
- package/src/{src/components → components}/core/notice/notice.vue.d.ts +0 -0
- package/src/{src/components → components}/core/notice/types.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/composables/types.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/composables/utils.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/dialog.vue.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/page/page.vue.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/page/types.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/pageComponent/types.d.ts +0 -0
- package/src/{src/components → components}/dialog/dialog/types.d.ts +0 -0
- package/src/{src/components → components}/dialog/lib/types.d.ts +0 -0
- package/src/{src/components → components}/dialog/lib/utils.d.ts +0 -0
- package/src/{src/components → components}/dialog/lib/utils.globalEvents.d.ts +0 -0
- package/src/{src/components → components}/extra/extra.d.ts +0 -0
- package/src/{src/components → components}/extra/rive/rive.vue.d.ts +0 -0
- package/src/{src/components → components}/extra/rive/types.d.ts +0 -0
- package/src/{src/components → components}/forms/avatar/avatar.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/avatar/types.d.ts +0 -0
- package/src/{src/components → components}/forms/button/button.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/caption/caption.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/caption/types.d.ts +0 -0
- package/src/{src/components → components}/forms/checkbox/checkbox.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/checkbox/types.d.ts +0 -0
- package/src/{src/components → components}/forms/controlLabel/controlLabel.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/controlLabel/types.d.ts +0 -0
- package/src/{src/components → components}/forms/forms.d.ts +0 -0
- package/src/{src/components → components}/forms/helpers.d.ts +0 -0
- package/src/{src/components → components}/forms/hint/hint.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/hint/types.d.ts +0 -0
- package/src/{src/components → components}/forms/input/input.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/inputDate/datepicker.d.ts +0 -0
- package/src/{src/components → components}/forms/inputDate/inputDate.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/inputRange/inputRange.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/inputRange/types.d.ts +0 -0
- package/src/{src/components → components}/forms/loadbar/loadbar.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/preloader/preloader.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/preloader/types.d.ts +0 -0
- package/src/{src/components → components}/forms/radio/radio.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/radio/types.d.ts +0 -0
- package/src/{src/components → components}/forms/select/select.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/switcher/switcher.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/switcher/types.d.ts +0 -0
- package/src/{src/components → components}/forms/textarea/textarea.vue.d.ts +0 -0
- package/src/{src/components → components}/forms/textarea/types.d.ts +0 -0
- package/src/{src/components → components}/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/checkboxGroup/types.d.ts +0 -0
- package/src/{src/components → components}/formsExt/editArea/editArea.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/editInput/editInput.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/formsExt.d.ts +0 -0
- package/src/{src/components → components}/formsExt/info/info.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/info/types.d.ts +0 -0
- package/src/{src/components → components}/formsExt/libs/optionGroup/optionGroup.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/menu/menu.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/policy/types.d.ts +0 -0
- package/src/{src/components → components}/formsExt/radioGroup/radioGroup.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/radioGroup/types.d.ts +0 -0
- package/src/{src/components → components}/formsExt/selector2/cache.d.ts +0 -0
- package/src/{src/components → components}/formsExt/selector2/composables/useAPI.d.ts +0 -0
- package/src/{src/components → components}/formsExt/selector2/composables/useMenu.d.ts +0 -0
- package/src/{src/components → components}/formsExt/selector2/itemMulti.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/selector2/selector2.vue.d.ts +0 -0
- package/src/{src/components → components}/formsExt/selector2/utils.d.ts +0 -0
- package/src/{src/components → components}/layout/islandRows/islandRows.vue.d.ts +0 -0
- package/src/{src/components → components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
- package/src/{src/components → components}/layout/islandRows/islandRowsRow/types.d.ts +0 -0
- package/src/{src/components → components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
- package/src/{src/components → components}/layout/islandRows/types.d.ts +0 -0
- package/src/{src/components → components}/layout/layout.d.ts +0 -0
- package/src/{src/components → components}/layout/rows/rows.vue.d.ts +0 -0
- package/src/{src/components → components}/layout/rows/types.d.ts +0 -0
- package/src/{src/components → components}/popup/lib/popup.globalEvents.d.ts +0 -0
- package/src/{src/components → components}/popup/lib/worker.globalEvents.d.ts +0 -0
- package/src/{src/components → components}/popup/popup/listItem.vue.d.ts +0 -0
- package/src/{src/components → components}/popup/popup/opener/opener.vue.d.ts +0 -0
- package/src/{src/components → components}/popup/popup/opener/types.d.ts +0 -0
- package/src/{src/components → components}/popup/popup/types.d.ts +0 -0
- package/src/{src/components → components}/popup/popup.d.ts +0 -0
- package/src/{src/components → components}/popup/popupAlert/popupAlert.vue.d.ts +0 -0
- package/src/{src/components → components}/popup/popupAlert/types.d.ts +0 -0
- package/src/{src/components → components}/popup/popupConfirm/types.d.ts +0 -0
- package/src/{src/components → components}/popup/popupHint/popupHint.vue.d.ts +0 -0
- package/src/{src/components → components}/popup/popupHint/types.d.ts +0 -0
- package/src/{src/components → components}/popup/popupPrompt/popupPrompt.vue.d.ts +0 -0
- package/src/{src/components → components}/popup/popupPrompt/types.d.ts +0 -0
- package/src/{src/components → components}/popup/worker.d.ts +0 -0
- package/src/{src/components → components}/project/competitorSelector/competitorSelector.vue.d.ts +0 -0
- package/src/{src/components → components}/project/groupSelector/folders/folders.vue.d.ts +0 -0
- package/src/{src/components → components}/project/groupSelector/groupSelector.vue.d.ts +1 -1
- /package/src/{src/components → components}/project/groupSelector/stories/mocks/folders.d.ts +0 -0
- /package/src/{src/components → components}/project/groupSelector/stories/mocks/groups.d.ts +0 -0
- /package/src/{src/components → components}/project/groupSelector/types.d.ts +0 -0
- /package/src/{src/components → components}/project/project.d.ts +0 -0
- /package/src/{src/components → components}/project/projectSelector/submenu/submenu.vue.d.ts +0 -0
- /package/src/{src/components → components}/project/projectSelector/submenu/types.d.ts +0 -0
- /package/src/{src/components → components}/project/regionSelector/composables/compare.d.ts +0 -0
- /package/src/{src/components → components}/project/regionSelector/composables/selectorRegion.d.ts +0 -0
- /package/src/{src/components → components}/project/regionSelector/dialog_regionSelectorRegions/dialog_regionSelectorRegions.vue.d.ts +0 -0
- /package/src/{src/components → components}/project/regionSelector/regionSelector.vue.d.ts +0 -0
- /package/src/{src/components → components}/project/regionSelector/types.d.ts +0 -0
- /package/src/{src/components → components}/project/regionSelector/utils/consts.d.ts +0 -0
- /package/src/{src/components → components}/project/regionSelector/utils/utils.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/popupListItem/types.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/tagIcon/types.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/tagsDefaults.d.ts +0 -0
- /package/src/{src/components → components}/project/tagSelector/utils/utils.d.ts +0 -0
- /package/src/{src/components → components}/tabs/tabs/content.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabs/tabs/tab.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabs/tabs/tabs.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabs/tabs/types.d.ts +0 -0
- /package/src/{src/components → components}/tabs/tabs.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView/menu.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView/menuItem.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView/menuTitle.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView/tabsView.vue.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView/types.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView/utils.d.ts +0 -0
- /package/src/{src/components → components}/tabsView/tabsView.d.ts +0 -0
- /package/src/{src/core → core}/core/events/resize.d.ts +0 -0
- /package/src/{src/core → core}/core/events.d.ts +0 -0
- /package/src/{src/core → core}/core/options.d.ts +0 -0
- /package/src/{src/core → core}/core/preloaders.d.ts +0 -0
- /package/src/{src/core → core}/core/state.d.ts +0 -0
- /package/src/{src/core → core}/directives/data.d.ts +0 -0
- /package/src/{src/core → core}/directives/focus.d.ts +0 -0
- /package/src/{src/core → core}/directives/preloader.d.ts +0 -0
- /package/src/{src/core → core}/directives/scrollIntoView.d.ts +0 -0
- /package/src/{src/core → core}/directives/scrollShadow.d.ts +0 -0
- /package/src/{src/core → core}/directives/shortcut.d.ts +0 -0
- /package/src/{src/core → core}/directives/sticky.d.ts +0 -0
- /package/src/{src/core → core}/directives/swimUp.d.ts +0 -0
- /package/src/{src/core → core}/directives/tooltip.d.ts +0 -0
- /package/src/{src/core → core}/plugins/i18n.d.ts +0 -0
- /package/src/{src/core → core}/plugins/piniaTPA.d.ts +0 -0
- /package/src/{src/core → core}/utils/check.d.ts +0 -0
- /package/src/{src/core → core}/utils/clipboard.d.ts +0 -0
- /package/src/{src/core → core}/utils/composables/useWatch.d.ts +0 -0
- /package/src/{src/core → core}/utils/date.d.ts +0 -0
- /package/src/{src/core → core}/utils/device.d.ts +0 -0
- /package/src/{src/core → core}/utils/dom.d.ts +0 -0
- /package/src/{src/core → core}/utils/image.d.ts +0 -0
- /package/src/{src/core → core}/utils/keyboard.d.ts +0 -0
- /package/src/{src/core → core}/utils/lodash.d.ts +0 -0
- /package/src/{src/core → core}/utils/number.d.ts +0 -0
- /package/src/{src/core → core}/utils/route.d.ts +0 -0
- /package/src/{src/core → core}/utils/scroll.d.ts +0 -0
- /package/src/{src/core → core}/utils/searchers.d.ts +0 -0
- /package/src/{src/core → core}/utils/store/localStorage.d.ts +0 -0
- /package/src/{src/core → core}/utils/store/plugin.d.ts +0 -0
- /package/src/{src/core → core}/utils/store/store.d.ts +0 -0
- /package/src/{src/core → core}/utils/string.d.ts +0 -0
- /package/src/{src/core → core}/utils/system.d.ts +0 -0
- /package/src/{src/core → core}/utils/tests/date/dateFormat.test.d.ts +0 -0
- /package/src/{src/core → core}/utils/url.d.ts +0 -0
package/project/project.js
CHANGED
|
@@ -423,8 +423,8 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
|
|
|
423
423
|
getSearcher: f,
|
|
424
424
|
getRegion: p
|
|
425
425
|
}), (t, n) => (M(), T("div", { class: j({
|
|
426
|
-
"top-
|
|
427
|
-
"top-
|
|
426
|
+
"top-regionSelector": !0,
|
|
427
|
+
"top-regionSelector-onlySearcher": e.onlySearcher
|
|
428
428
|
}) }, [
|
|
429
429
|
O(i, {
|
|
430
430
|
options: I(s).optionBySearcherKey.value,
|
|
@@ -464,45 +464,30 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
|
|
|
464
464
|
}, 8, ["data-count-compare-regions-indexes"])) : w("", !0)
|
|
465
465
|
], 2));
|
|
466
466
|
}
|
|
467
|
-
}), H =
|
|
468
|
-
...e,
|
|
469
|
-
name: H(e.name),
|
|
470
|
-
path: H(e.path)
|
|
471
|
-
}), U = (e) => {
|
|
472
|
-
let t = {
|
|
473
|
-
...e,
|
|
474
|
-
name: H(e.name)
|
|
475
|
-
};
|
|
476
|
-
return "folder_path" in t && typeof t.folder_path == "string" && (t.folder_path = H(t.folder_path)), t;
|
|
477
|
-
}, W = {
|
|
467
|
+
}), H = {
|
|
478
468
|
id: 0,
|
|
479
469
|
name: "/",
|
|
480
470
|
path: "/"
|
|
481
471
|
};
|
|
482
|
-
function
|
|
472
|
+
function Le(t) {
|
|
483
473
|
return t ? e()?.Common.All_folders : "/ (" + e()?.Keywords.Root_folder + ")";
|
|
484
474
|
}
|
|
485
|
-
var
|
|
486
|
-
a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name =
|
|
475
|
+
var Re = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.childsIds = [], r.id && (r.countAllGroupsActive = r.count_groups_active), e[r.id] && e[r.id].forEach((a) => {
|
|
476
|
+
a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name = Le(t));
|
|
487
477
|
let o = i > 1 ? "-".repeat(i - 1) + " " : "";
|
|
488
|
-
o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a),
|
|
489
|
-
}), n),
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
]
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
});
|
|
499
|
-
return n.options.onApiLoaded = (e, t, n) => {
|
|
500
|
-
e.result &&= e.result.map((e) => Le(e)), n?.(e, t);
|
|
501
|
-
}, n;
|
|
502
|
-
};
|
|
478
|
+
o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a), Re(e, t, n, a, i + 1), r.childsIds = r.childsIds.concat(a.childsIds), r.id && a.count_groups_active && (r.countAllGroupsActive += a.count_groups_active);
|
|
479
|
+
}), n), ze = (e, t) => e.gen(`/get/${t}/folders/`, [
|
|
480
|
+
"id",
|
|
481
|
+
"parent_id",
|
|
482
|
+
"name",
|
|
483
|
+
"path"
|
|
484
|
+
]).changeParams({
|
|
485
|
+
orders: ["ord_path"],
|
|
486
|
+
limit: 100
|
|
487
|
+
});
|
|
503
488
|
//#endregion
|
|
504
489
|
//#region src/core/utils/composables/useWatch.ts
|
|
505
|
-
function
|
|
490
|
+
function Be(e, t, n) {
|
|
506
491
|
let r = Object.keys(e);
|
|
507
492
|
return R(r.map((t) => e[t]), (e, n, i) => {
|
|
508
493
|
let a = {};
|
|
@@ -518,8 +503,8 @@ function Ve(e, t, n) {
|
|
|
518
503
|
}, n);
|
|
519
504
|
}
|
|
520
505
|
//#endregion
|
|
521
|
-
//#region src/components/project/groupSelector/folders/folders.vue
|
|
522
|
-
var He = /* @__PURE__ */ k({
|
|
506
|
+
//#region src/components/project/groupSelector/folders/folders.vue?vue&type=script&setup=true&lang.ts
|
|
507
|
+
var Ve = ["innerHTML"], He = /* @__PURE__ */ k({
|
|
523
508
|
__name: "folders",
|
|
524
509
|
props: /* @__PURE__ */ A({
|
|
525
510
|
folderId: {},
|
|
@@ -537,20 +522,17 @@ var He = /* @__PURE__ */ k({
|
|
|
537
522
|
}, {
|
|
538
523
|
folderId: { required: !0 },
|
|
539
524
|
folderIdModifiers: {},
|
|
540
|
-
folder: { default:
|
|
525
|
+
folder: { default: H },
|
|
541
526
|
folderModifiers: {}
|
|
542
527
|
}),
|
|
543
528
|
emits: ["update:folderId", "update:folder"],
|
|
544
529
|
setup(e) {
|
|
545
|
-
let t = e, n = L(e, "folderId"), r = L(e, "folder"), i = t.client && !t.folders
|
|
546
|
-
|
|
547
|
-
return e.forEach((e, t) => {
|
|
548
|
-
n.set(t, Le(e));
|
|
549
|
-
}), n;
|
|
550
|
-
});
|
|
551
|
-
return R(() => t.projectId, () => {
|
|
530
|
+
let t = e, n = L(e, "folderId"), r = L(e, "folder"), i = t.client && !t.folders ? ze(t.client, t.service) : void 0, a = N(null);
|
|
531
|
+
R(() => t.projectId, () => {
|
|
552
532
|
i?.changeParams({ project_id: t.projectId }), i?.setOptions({ checkFingerprint: "TopGroupSelectorFolders:" + t.projectId }), a.value?.resetCache();
|
|
553
|
-
}, { immediate: !0 })
|
|
533
|
+
}, { immediate: !0 });
|
|
534
|
+
let o = S(() => Re(t.folders ?? { root: [H] }, t.canSelectAll));
|
|
535
|
+
return Be({
|
|
554
536
|
modelFolder: r,
|
|
555
537
|
modelFolderId: n
|
|
556
538
|
}, async (e) => {
|
|
@@ -560,7 +542,7 @@ var He = /* @__PURE__ */ k({
|
|
|
560
542
|
return;
|
|
561
543
|
}
|
|
562
544
|
let i = o.value.get(t.folderId);
|
|
563
|
-
i ||=
|
|
545
|
+
i ||= H, r.value = i, n.value = i.id;
|
|
564
546
|
}, { immediate: !0 }), (t, n) => (M(), C(y, {
|
|
565
547
|
class: "top-groupSelector_folder",
|
|
566
548
|
modelValue: r.value,
|
|
@@ -572,7 +554,10 @@ var He = /* @__PURE__ */ k({
|
|
|
572
554
|
apiSetSearchParams: (...e) => I(b)(...e, "name"),
|
|
573
555
|
addChanger: e.addChanger,
|
|
574
556
|
useCache: ""
|
|
575
|
-
},
|
|
557
|
+
}, {
|
|
558
|
+
item: z(({ item: e }) => [E("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, Ve)]),
|
|
559
|
+
_: 1
|
|
560
|
+
}, 8, [
|
|
576
561
|
"modelValue",
|
|
577
562
|
"items",
|
|
578
563
|
"icon",
|
|
@@ -581,36 +566,28 @@ var He = /* @__PURE__ */ k({
|
|
|
581
566
|
"addChanger"
|
|
582
567
|
]));
|
|
583
568
|
}
|
|
584
|
-
}),
|
|
569
|
+
}), U = {
|
|
585
570
|
id: -1,
|
|
586
571
|
name: "--",
|
|
587
|
-
folder_id:
|
|
588
|
-
folder_path:
|
|
589
|
-
},
|
|
572
|
+
folder_id: H.id,
|
|
573
|
+
folder_path: H.path
|
|
574
|
+
}, W = {
|
|
590
575
|
id: 0,
|
|
591
576
|
name: "All groups",
|
|
592
|
-
folder_id:
|
|
593
|
-
folder_path:
|
|
594
|
-
},
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
});
|
|
604
|
-
return n.options.onApiLoaded = (e, t, n) => {
|
|
605
|
-
e.result &&= e.result.map((e) => U(e)), n?.(e, t);
|
|
606
|
-
}, n;
|
|
607
|
-
}, Ke = (e, t) => e.gen(`/add/${t}/groups/`), qe = { class: "top-groupSelector_groupItem" }, Je = {
|
|
577
|
+
folder_id: H.id,
|
|
578
|
+
folder_path: H.path
|
|
579
|
+
}, G = () => (W.name = e()?.Common.All_groups, W), Ue = () => (W.name = e()?.Keywords.Choose_group, W), We = (e, t, n) => (e = [...e], t !== void 0 && (e = e.filter((e) => e.on == Number(t))), n && n.id && n.childsIds && (e = e.filter((e) => e.folder_id === n.id || n.childsIds.includes(e.folder_id))), e), Ge = (e, t) => e.gen(`/get/${t}/groups/`, [
|
|
580
|
+
"id",
|
|
581
|
+
"name",
|
|
582
|
+
"folder_id",
|
|
583
|
+
"folder_path"
|
|
584
|
+
]).changeParams({
|
|
585
|
+
folder_id_depth: !0,
|
|
586
|
+
limit: 100
|
|
587
|
+
}), Ke = (e, t) => e.gen(`/add/${t}/groups/`), qe = { class: "top-groupSelector_groupItem" }, Je = {
|
|
608
588
|
key: 0,
|
|
609
589
|
class: "top-comment"
|
|
610
|
-
}, Ye = {
|
|
611
|
-
key: 1,
|
|
612
|
-
class: "top-groupSelector_groupItemFolderPath"
|
|
613
|
-
}, Xe = /* @__PURE__ */ k({
|
|
590
|
+
}, Ye = ["innerHTML"], Xe = ["innerHTML"], Ze = /* @__PURE__ */ k({
|
|
614
591
|
__name: "groups",
|
|
615
592
|
props: /* @__PURE__ */ A({
|
|
616
593
|
groupId: {},
|
|
@@ -644,29 +621,25 @@ var He = /* @__PURE__ */ k({
|
|
|
644
621
|
}),
|
|
645
622
|
emits: /* @__PURE__ */ A(["addGroup"], ["update:groupId", "update:group"]),
|
|
646
623
|
setup(e, { emit: t }) {
|
|
647
|
-
let n = e, r = t, i = L(e, "groupId"), a = L(e, "group"), s = n.client && !n.groups
|
|
624
|
+
let n = e, r = t, i = L(e, "groupId"), a = L(e, "group"), s = n.client && !n.groups ? Ge(n.client, n.service) : void 0, c = n.client ? Ke(n.client, n.service) : void 0, l = N(null), u = N(void 0), d = o("folder_id", "EQUALS", [n.folder?.id ?? 0]);
|
|
648
625
|
s?.changeParams({
|
|
649
626
|
project_id: n.projectId,
|
|
650
627
|
folder_id_depth: !0,
|
|
651
628
|
filters: [d]
|
|
652
629
|
}), n.on !== void 0 && s?.params.filters?.push(o("on", "EQUALS", [Number(n.on)]));
|
|
653
|
-
let f =
|
|
654
|
-
|
|
655
|
-
if (e) return e.map((e) => U(e));
|
|
656
|
-
}), p = (e) => {
|
|
657
|
-
let t = U(e);
|
|
658
|
-
a.value = t, i.value = t.id;
|
|
630
|
+
let f = (e) => {
|
|
631
|
+
a.value = e, i.value = e.id;
|
|
659
632
|
};
|
|
660
|
-
|
|
633
|
+
Be({
|
|
661
634
|
projectId: () => n.projectId,
|
|
662
635
|
folderId: () => n.folder?.id,
|
|
663
636
|
canSelectAll: () => n.canSelectAll
|
|
664
637
|
}, (e) => {
|
|
665
638
|
if (e.projectId && (s?.changeParams({ project_id: n.projectId }), s?.setOptions({ checkFingerprint: "TopGroupSelectorGroups:" + n.projectId })), e.folderId && (d.values = [n.folder?.id ?? 0], n.groups && (u.value = We(n.groups, n.on, n.folder))), l.value?.resetCache(), (e.folderId?.old !== void 0 || e.canSelectAll?.old !== void 0) && i.value !== null) {
|
|
666
639
|
let e;
|
|
667
|
-
n.autoselect === "first" && (e = u.value?.[0], n.canSelectAll && (e = oe(
|
|
640
|
+
n.autoselect === "first" && (e = u.value?.[0], n.canSelectAll && (e = oe(G()))), (n.autoselect === "placeholder" || !e) && (e = Ue()), f(e);
|
|
668
641
|
}
|
|
669
|
-
}, { immediate: !0 }),
|
|
642
|
+
}, { immediate: !0 }), Be({
|
|
670
643
|
modelGroup: a,
|
|
671
644
|
modelGroupId: i
|
|
672
645
|
}, async (e) => {
|
|
@@ -678,13 +651,13 @@ var He = /* @__PURE__ */ k({
|
|
|
678
651
|
if (!(n.canAdd && i.value === null)) {
|
|
679
652
|
if (n.groups) {
|
|
680
653
|
let e = u.value?.find((e) => e.id === i.value);
|
|
681
|
-
if (!e && n.canSelectAll && (e =
|
|
654
|
+
if (!e && n.canSelectAll && (e = G()), e) f(e);
|
|
682
655
|
else {
|
|
683
656
|
let e = u.value?.[0];
|
|
684
|
-
e && !i.value ?
|
|
657
|
+
e && !i.value ? f(e) : f(U);
|
|
685
658
|
}
|
|
686
659
|
}
|
|
687
|
-
if (n.client && !n.groups &&
|
|
660
|
+
if (n.client && !n.groups && (i.value || i.value === 0 && !n.canSelectAll)) {
|
|
688
661
|
let e = Ge(n.client, n.service).changeParams({
|
|
689
662
|
project_id: n.projectId,
|
|
690
663
|
id: i.value,
|
|
@@ -693,20 +666,24 @@ var He = /* @__PURE__ */ k({
|
|
|
693
666
|
e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" + n.projectId });
|
|
694
667
|
let t = await e.call();
|
|
695
668
|
if (!t.errors?.length && !t.result) return;
|
|
696
|
-
!t.errors && t.result[0] ?
|
|
669
|
+
!t.errors && t.result[0] ? f(t.result[0]) : f(U);
|
|
697
670
|
}
|
|
698
671
|
}
|
|
699
672
|
}
|
|
700
673
|
}, { immediate: !0 });
|
|
701
|
-
let
|
|
674
|
+
let p = async (e) => {
|
|
702
675
|
if (n.canAdd !== "api" || !c) return;
|
|
703
676
|
let t = a.value, i = await c.changeParams({
|
|
704
677
|
project_id: n.projectId,
|
|
705
678
|
names: [e.name],
|
|
706
|
-
to_id: n.folder?.id ??
|
|
679
|
+
to_id: n.folder?.id ?? H.id,
|
|
707
680
|
to_type: "in_folder_last"
|
|
708
681
|
}).call();
|
|
709
|
-
|
|
682
|
+
if (i.result) {
|
|
683
|
+
let e = i.result[0];
|
|
684
|
+
f(e), r("addGroup", e);
|
|
685
|
+
} else f(t);
|
|
686
|
+
l.value?.resetCache(!0);
|
|
710
687
|
};
|
|
711
688
|
return (t, n) => (M(), C(y, {
|
|
712
689
|
ref_key: "refSelector",
|
|
@@ -714,21 +691,25 @@ var He = /* @__PURE__ */ k({
|
|
|
714
691
|
class: "top-groupSelector_group",
|
|
715
692
|
modelValue: a.value,
|
|
716
693
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
717
|
-
items:
|
|
694
|
+
items: u.value ?? e.groups,
|
|
718
695
|
searchType: "inline",
|
|
719
696
|
icon: e.addIcon ? "" : void 0,
|
|
720
697
|
api: e.groups ? void 0 : I(s),
|
|
721
698
|
apiSetSearchParams: (...e) => I(b)(...e, "name"),
|
|
722
699
|
appendSearchToResult: !!e.canAdd,
|
|
723
|
-
useAllItem: e.canSelectAll ? I(
|
|
700
|
+
useAllItem: e.canSelectAll ? I(G)().name : !1,
|
|
724
701
|
addChanger: e.addChanger,
|
|
725
702
|
useCache: "",
|
|
726
|
-
onAppendItem:
|
|
703
|
+
onAppendItem: p
|
|
727
704
|
}, {
|
|
728
705
|
item: z(({ item: n }) => [E("div", qe, [
|
|
729
706
|
n.id === I(null) ? (M(), T("div", Je, F(t.$i18n.Common.Add) + ": ", 1)) : w("", !0),
|
|
730
|
-
E("span",
|
|
731
|
-
n.folder_path && e.showPath ? (M(), T("span",
|
|
707
|
+
E("span", { innerHTML: n.name }, null, 8, Ye),
|
|
708
|
+
n.folder_path && e.showPath ? (M(), T("span", {
|
|
709
|
+
key: 1,
|
|
710
|
+
class: "top-groupSelector_groupItemFolderPath",
|
|
711
|
+
innerHTML: n.folder_path
|
|
712
|
+
}, null, 8, Xe)) : w("", !0)
|
|
732
713
|
])]),
|
|
733
714
|
_: 1
|
|
734
715
|
}, 8, [
|
|
@@ -742,7 +723,7 @@ var He = /* @__PURE__ */ k({
|
|
|
742
723
|
"addChanger"
|
|
743
724
|
]));
|
|
744
725
|
}
|
|
745
|
-
}),
|
|
726
|
+
}), Qe = { class: "top-groupSelector" }, $e = /* @__PURE__ */ k({
|
|
746
727
|
__name: "groupSelector",
|
|
747
728
|
props: /* @__PURE__ */ A({
|
|
748
729
|
folderId: {},
|
|
@@ -784,7 +765,7 @@ var He = /* @__PURE__ */ k({
|
|
|
784
765
|
folderModifiers: {},
|
|
785
766
|
groupId: { required: !0 },
|
|
786
767
|
groupIdModifiers: {},
|
|
787
|
-
group: { default:
|
|
768
|
+
group: { default: U },
|
|
788
769
|
groupModifiers: {}
|
|
789
770
|
}),
|
|
790
771
|
emits: /* @__PURE__ */ A(["update:groups"], [
|
|
@@ -795,14 +776,14 @@ var He = /* @__PURE__ */ k({
|
|
|
795
776
|
]),
|
|
796
777
|
setup(e, { emit: t }) {
|
|
797
778
|
let n = e, r = L(e, "folderId"), i = L(e, "folder"), a = L(e, "groupId"), o = L(e, "group"), s = t;
|
|
798
|
-
i.value =
|
|
779
|
+
i.value = Re(n.folders ?? { root: [H] }, n.canSelectAllGroups).get(r.value);
|
|
799
780
|
let c = n.groups?.find((e) => e.id === a.value);
|
|
800
|
-
a.value || (c = n.groups?.[0]), n.canSelectAllGroups && !c && (c =
|
|
781
|
+
a.value || (c = n.groups?.[0]), n.canSelectAllGroups && !c && (c = G()), n.canSelectAllGroups && !c && (c = G()), (n.autoselect === "placeholder" || !c) && (c = Ue()), c ??= U, o.value = c;
|
|
801
782
|
let l = (e) => {
|
|
802
783
|
let t;
|
|
803
784
|
n.groups && e && (t = [...n.groups, e]), s("update:groups", t);
|
|
804
785
|
};
|
|
805
|
-
return (t, n) => (M(), T("div",
|
|
786
|
+
return (t, n) => (M(), T("div", Qe, [e.showFolders ? (M(), C(He, {
|
|
806
787
|
key: 0,
|
|
807
788
|
folderId: r.value,
|
|
808
789
|
"onUpdate:folderId": n[0] ||= (e) => r.value = e,
|
|
@@ -825,7 +806,7 @@ var He = /* @__PURE__ */ k({
|
|
|
825
806
|
"addIcon",
|
|
826
807
|
"client",
|
|
827
808
|
"service"
|
|
828
|
-
])) : w("", !0), e.showGroups ? (M(), C(
|
|
809
|
+
])) : w("", !0), e.showGroups ? (M(), C(Ze, {
|
|
829
810
|
key: 1,
|
|
830
811
|
groupId: a.value,
|
|
831
812
|
"onUpdate:groupId": n[2] ||= (e) => a.value = e,
|
|
@@ -861,39 +842,39 @@ var He = /* @__PURE__ */ k({
|
|
|
861
842
|
"service"
|
|
862
843
|
])) : w("", !0)]));
|
|
863
844
|
}
|
|
864
|
-
}),
|
|
845
|
+
}), et = (e) => ({
|
|
865
846
|
id: null,
|
|
866
847
|
name: e,
|
|
867
848
|
listItemProps: { type: "title" }
|
|
868
|
-
}),
|
|
849
|
+
}), tt = {
|
|
869
850
|
scheduledUpdate: !1,
|
|
870
851
|
manualUpdate: !1,
|
|
871
852
|
guestProjects: !1
|
|
872
|
-
},
|
|
853
|
+
}, nt = (t, n) => {
|
|
873
854
|
let r = [], i = {
|
|
874
|
-
scheduledUpdate:
|
|
875
|
-
manualUpdate:
|
|
876
|
-
guestProjects:
|
|
855
|
+
scheduledUpdate: et(e().Projects.Scheduled_update),
|
|
856
|
+
manualUpdate: et(e().Projects.Manual_update),
|
|
857
|
+
guestProjects: et(e().Projects.Guest_projects)
|
|
877
858
|
}, a = n ? {
|
|
878
859
|
scheduledUpdate: !1,
|
|
879
860
|
manualUpdate: !1,
|
|
880
861
|
guestProjects: !1
|
|
881
|
-
} :
|
|
862
|
+
} : tt;
|
|
882
863
|
for (let e of t) !a.scheduledUpdate && e.right?.startsWith("1") && e.on > 0 && (r.push(i.scheduledUpdate), a.scheduledUpdate = !0), !a.manualUpdate && e.right?.startsWith("1") && e.on === 0 && (r.push(i.manualUpdate), a.manualUpdate = !0), !a.guestProjects && e.right?.startsWith("0") && e.on >= 0 && (r.push(i.guestProjects), a.guestProjects = !0), r.push(e);
|
|
883
864
|
return r;
|
|
884
|
-
},
|
|
865
|
+
}, rt = (e) => e.map((e) => ({
|
|
885
866
|
...e,
|
|
886
867
|
listItemProps: { attrs: { title: e.name } }
|
|
887
|
-
})),
|
|
868
|
+
})), it = (e, t, n) => !e || e.length === 0 ? [] : (t && Object.keys(tt).forEach((e) => tt[e] = !1), nt(rt(e), n)), at = (e) => {
|
|
888
869
|
e = e.replace(/#.*/, "");
|
|
889
870
|
let t = location.hash;
|
|
890
|
-
return t = t.replace(/historyView=[^&]*/, ""), t = t.replace(/competitorsIds=[^&]*/, ""), t = t.replace(/searchersKeys=[^&]*/, ""), t = t.replace(/regionIndex=[^&]*/, ""), t = t.replace(/regionsIndexes=[^&]*/, ""), t = t.replace(/folderId=[^&]*/, ""), t = t.replace(/groupId=[^&]*/, ""), t = t.replace(/tags=[^&]*/, ""), window.mo?.getHash && !window.mo.getHash("dataSort").toString().includes("0000-00-00") && (t = t.replace(/dataSort=[^&]*/, "")), t = t.replace(/%22historyView%22:[^,]*,/, ""), t = t.replace(/%22competitorsIds%22:\[[^\]]*],/, ""), t = t.replace(/%22searchersKeys%22:\[[^\]]*],/, ""), t = t.replace(/%22regionIndex%22:[^,]*,/, ""), t = t.replace(/%22regionsIndexes%22:\[[^\]]*],/, ""), t = t.replace(/%22folderId%22:[^,]*,/, ""), t = t.replace(/%22groupId%22:[^,]*,/, ""), t = t.replace(/%22tagsIds%22:\[[^\]]*],/, ""), /%22dataSort%22:\{[^}]*0000-00-00[^}]*}/.test(t) || (t = t.replace(
|
|
891
|
-
},
|
|
871
|
+
return t = t.replace(/historyView=[^&]*/, ""), t = t.replace(/modelsKeys=[^&]*/, ""), t = t.replace(/competitorsIds=[^&]*/, ""), t = t.replace(/searchersKeys=[^&]*/, ""), t = t.replace(/regionIndex=[^&]*/, ""), t = t.replace(/regionsIndexes=[^&]*/, ""), t = t.replace(/folderId=[^&]*/, ""), t = t.replace(/groupId=[^&]*/, ""), t = t.replace(/tags=[^&]*/, ""), window.mo?.getHash && !window.mo.getHash("dataSort").toString().includes("0000-00-00") && (t = t.replace(/dataSort=[^&]*/, "")), t = t.replace(/%22historyView%22:[^,]*,/, ""), t = t.replace(/%22modelsKeys%22:\[[^\]]*\],/, ""), t = t.replace(/%22competitorsIds%22:\[[^\]]*],/, ""), t = t.replace(/%22searchersKeys%22:\[[^\]]*],/, ""), t = t.replace(/%22regionIndex%22:[^,]*,/, ""), t = t.replace(/%22regionsIndexes%22:\[[^\]]*],/, ""), t = t.replace(/%22folderId%22:[^,]*,/, ""), t = t.replace(/%22groupId%22:[^,]*,/, ""), t = t.replace(/%22tagsIds%22:\[[^\]]*],/, ""), /%22dataSort%22:\{[^}]*0000-00-00[^}]*}/.test(t) || (t = t.replace(/,?%22dataSort%22:\{[^}]*}(,?)/, "$1")), e + t;
|
|
872
|
+
}, ot = (e, t) => {
|
|
892
873
|
t && t.target instanceof HTMLElement && c.close(t.target.closest(".top-popup-wrapper"));
|
|
893
|
-
let n =
|
|
874
|
+
let n = at(e);
|
|
894
875
|
location.href = n;
|
|
895
|
-
},
|
|
896
|
-
let t =
|
|
876
|
+
}, st = (e) => {
|
|
877
|
+
let t = ct(), n = location.pathname.split("/"), r = "project/dynamics/", i = "";
|
|
897
878
|
return n[1] == "project" && (r = n[1] + "/" + n[2] + "/"), n[2] == "settings" && (i = location.hash), [
|
|
898
879
|
"watcher",
|
|
899
880
|
"indexing",
|
|
@@ -902,15 +883,15 @@ var He = /* @__PURE__ */ k({
|
|
|
902
883
|
"direct",
|
|
903
884
|
"adwords"
|
|
904
885
|
].includes(n[4]) && (i = n[4] + "/"), "https://" + t + "/" + r + e + "/" + i;
|
|
905
|
-
},
|
|
886
|
+
}, ct = () => window.page?.subdomain ? window.location.host.replace(window.page?.subdomain + ".", "") : window.location.host, lt = (e) => {
|
|
906
887
|
let t = e.startsWith("http") ? e : "http://" + e;
|
|
907
888
|
return t = t.replace(/"/g, "%22"), t;
|
|
908
|
-
},
|
|
889
|
+
}, ut = (e, t) => {
|
|
909
890
|
let n = e.params.filters ?? [];
|
|
910
891
|
n = n.filter((e) => e.name !== "GEN_SEARCH_STRING()");
|
|
911
892
|
let r = h(t), i = t.replace(/([[^$.|?*+()])/g, "\\$1"), a = r.replace(/([[^$.|?*+()])/g, "\\$1");
|
|
912
893
|
t && n.push(o("GEN_SEARCH_STRING()", "REGEXP", [`(${i}|${a})`])), e.changeParams({ filters: n });
|
|
913
|
-
},
|
|
894
|
+
}, dt = (e, t, n) => {
|
|
914
895
|
let r = e.gen("/get/projects_2/projects/", [
|
|
915
896
|
"id",
|
|
916
897
|
"user_id",
|
|
@@ -930,14 +911,14 @@ var He = /* @__PURE__ */ k({
|
|
|
930
911
|
]
|
|
931
912
|
}, r.options.onApiLoaded = (e, t, n) => {
|
|
932
913
|
let r = t.data.filters.length === 1 && t.data.offset === 0 || t.data.limit === 1e3, i = t.data.limit === 100 && t.data.filters.length > 1 ? !0 : void 0;
|
|
933
|
-
e.result =
|
|
914
|
+
e.result = it(e.result, r, i), n?.(e, t);
|
|
934
915
|
}, r;
|
|
935
|
-
},
|
|
916
|
+
}, ft = (e) => e.gen("/add/projects_2/projects/"), pt = { class: "top-projectSelectorSubmenu_item" }, mt = [
|
|
936
917
|
"href",
|
|
937
918
|
"title",
|
|
938
919
|
"data-top-icon",
|
|
939
920
|
"data-right"
|
|
940
|
-
],
|
|
921
|
+
], ht = { class: "top-projectSelectorSubmenu_item" }, gt = ["href"], _t = /* @__PURE__ */ k({
|
|
941
922
|
__name: "submenu",
|
|
942
923
|
props: {
|
|
943
924
|
id: {},
|
|
@@ -945,7 +926,7 @@ var He = /* @__PURE__ */ k({
|
|
|
945
926
|
url: {}
|
|
946
927
|
},
|
|
947
928
|
setup(t) {
|
|
948
|
-
let n = t, r = e(), i =
|
|
929
|
+
let n = t, r = e(), i = ct(), a = [
|
|
949
930
|
{
|
|
950
931
|
href: `https://${i}/project/keywords/${n.id}/`,
|
|
951
932
|
title: r.Common.Menu_phrases,
|
|
@@ -970,6 +951,12 @@ var He = /* @__PURE__ */ k({
|
|
|
970
951
|
icon: "",
|
|
971
952
|
right: "1"
|
|
972
953
|
},
|
|
954
|
+
{
|
|
955
|
+
href: `https://${i}/project/ai-tracker/${n.id}/`,
|
|
956
|
+
title: r.Common.Menu_aiTracker,
|
|
957
|
+
icon: "",
|
|
958
|
+
right: "1"
|
|
959
|
+
},
|
|
973
960
|
{
|
|
974
961
|
href: `https://${i}/project/analytics/${n.id}/`,
|
|
975
962
|
title: r.Common.Menu_analytics,
|
|
@@ -1012,7 +999,13 @@ var He = /* @__PURE__ */ k({
|
|
|
1012
999
|
icon: "",
|
|
1013
1000
|
right: "2"
|
|
1014
1001
|
}
|
|
1015
|
-
], o = S(() =>
|
|
1002
|
+
], o = S(() => {
|
|
1003
|
+
if (!window.page?.data?.aiTracker) {
|
|
1004
|
+
let e = a.findIndex((e) => e.href.includes("ai-tracker"));
|
|
1005
|
+
e !== -1 && a.splice(e, 1);
|
|
1006
|
+
}
|
|
1007
|
+
return n.right.includes("0") ? a.filter((e) => n.right[e.right] === "1") : a;
|
|
1008
|
+
});
|
|
1016
1009
|
return (e, n) => {
|
|
1017
1010
|
let r = ce("TopButton");
|
|
1018
1011
|
return M(), C(I(_), {
|
|
@@ -1025,40 +1018,40 @@ var He = /* @__PURE__ */ k({
|
|
|
1025
1018
|
"data-top-icon": "",
|
|
1026
1019
|
color: "theme"
|
|
1027
1020
|
})]),
|
|
1028
|
-
contentList: z(() => [(M(!0), T(x, null, P(o.value, (e) => (M(), T("li",
|
|
1021
|
+
contentList: z(() => [(M(!0), T(x, null, P(o.value, (e) => (M(), T("li", pt, [E("a", {
|
|
1029
1022
|
href: e.href,
|
|
1030
1023
|
title: e.title,
|
|
1031
1024
|
"data-top-icon": e.icon,
|
|
1032
1025
|
"data-right": e.right
|
|
1033
|
-
}, null, 8,
|
|
1026
|
+
}, null, 8, mt)]))), 256)), E("li", ht, [E("a", {
|
|
1034
1027
|
href: t.url,
|
|
1035
1028
|
"data-top-icon": "",
|
|
1036
1029
|
target: "_blank"
|
|
1037
|
-
}, null, 8,
|
|
1030
|
+
}, null, 8, gt)])]),
|
|
1038
1031
|
_: 1
|
|
1039
1032
|
});
|
|
1040
1033
|
};
|
|
1041
1034
|
}
|
|
1042
|
-
}),
|
|
1043
|
-
localStorage.setItem(
|
|
1035
|
+
}), K = "ui_project_selector_total:", vt = 1440 * 60 * 1e3, q = de(), yt = N(0), J = N(null), bt = (e, t) => {
|
|
1036
|
+
localStorage.setItem(K + e, JSON.stringify({
|
|
1044
1037
|
projectsTotal: t,
|
|
1045
|
-
expiresAt: Date.now() +
|
|
1038
|
+
expiresAt: Date.now() + vt
|
|
1046
1039
|
}));
|
|
1047
|
-
},
|
|
1048
|
-
let t = localStorage.getItem(
|
|
1040
|
+
}, xt = (e) => {
|
|
1041
|
+
let t = localStorage.getItem(K + e);
|
|
1049
1042
|
if (!t) return;
|
|
1050
1043
|
let { projectsTotal: n, expiresAt: r } = JSON.parse(t);
|
|
1051
1044
|
if (Date.now() > r) {
|
|
1052
|
-
localStorage.removeItem(
|
|
1045
|
+
localStorage.removeItem(K + e);
|
|
1053
1046
|
return;
|
|
1054
1047
|
}
|
|
1055
1048
|
return n;
|
|
1056
|
-
},
|
|
1057
|
-
|
|
1058
|
-
},
|
|
1049
|
+
}, St = (e, t = !0) => {
|
|
1050
|
+
q.value = void 0, localStorage.removeItem(K + e), t && yt.value++;
|
|
1051
|
+
}, Ct = { class: "top-projectSelector_item" }, wt = { class: "top-projectSelector_itemText" }, Tt = { class: "top-comment" }, Et = {
|
|
1059
1052
|
key: 0,
|
|
1060
1053
|
class: "top-comment"
|
|
1061
|
-
},
|
|
1054
|
+
}, Dt = ["href", "onClick"], Ot = 1e3, kt = /* @__PURE__ */ k({
|
|
1062
1055
|
__name: "projectSelector",
|
|
1063
1056
|
props: /* @__PURE__ */ A({
|
|
1064
1057
|
modelValue: {},
|
|
@@ -1083,33 +1076,33 @@ var He = /* @__PURE__ */ k({
|
|
|
1083
1076
|
setup(t) {
|
|
1084
1077
|
let n = e();
|
|
1085
1078
|
if (!window.mo?.user?.id) throw Error("TopProjectSelector: не удалось определить userId. Компонент требует авторизованного пользователя (см. window.mo.user.id)");
|
|
1086
|
-
let r = window.mo.user.id, i = t, a = L(t, "modelValue"), o =
|
|
1087
|
-
if (!(!c.value && c.value !== 0)) return c.value <
|
|
1079
|
+
let r = window.mo.user.id, i = t, a = L(t, "modelValue"), o = dt(i.client, r), s = ft(i.client), c = N(xt(r)), d = N(null), f = S(() => i.placeholder ?? n.Projects.Select_project), p = S(() => !q.value || !i.excludeProjectId ? q.value : q.value.filter((e) => e.id !== i.excludeProjectId)), m = S(() => {
|
|
1080
|
+
if (!(!c.value && c.value !== 0)) return c.value < Ot ? "static" : "api";
|
|
1088
1081
|
});
|
|
1089
|
-
R(
|
|
1082
|
+
R(yt, () => {
|
|
1090
1083
|
_();
|
|
1091
1084
|
}), R(a, () => {
|
|
1092
|
-
!a.value.id || !i.addLinksToProjects ||
|
|
1085
|
+
!a.value.id || !i.addLinksToProjects || ot(st(a.value.id));
|
|
1093
1086
|
});
|
|
1094
1087
|
let h = async () => {
|
|
1095
|
-
|
|
1096
|
-
let e = await
|
|
1088
|
+
J.value ||= dt(i.client, r, { limit: Ot }).call();
|
|
1089
|
+
let e = await J.value;
|
|
1097
1090
|
if (e.errors) {
|
|
1098
|
-
|
|
1091
|
+
J.value = null;
|
|
1099
1092
|
return;
|
|
1100
1093
|
}
|
|
1101
|
-
return
|
|
1094
|
+
return J.value = null, e;
|
|
1102
1095
|
}, ee = async () => {
|
|
1103
1096
|
if (c.value) return;
|
|
1104
1097
|
let e = await h();
|
|
1105
|
-
e && (c.value = e.total, m.value === "static" && !
|
|
1098
|
+
e && (c.value = e.total, m.value === "static" && !q.value && (q.value = e.result), c.value && bt(r, c.value));
|
|
1106
1099
|
}, g = async (e) => {
|
|
1107
1100
|
let t = await s.changeParams({
|
|
1108
1101
|
url: e.name,
|
|
1109
1102
|
name: e.name
|
|
1110
1103
|
}).call();
|
|
1111
1104
|
if (!t.errors) {
|
|
1112
|
-
if (
|
|
1105
|
+
if (q.value && m.value === "static") {
|
|
1113
1106
|
let n = {
|
|
1114
1107
|
id: Number(t.result),
|
|
1115
1108
|
user_id: r,
|
|
@@ -1118,21 +1111,21 @@ var He = /* @__PURE__ */ k({
|
|
|
1118
1111
|
on: 0,
|
|
1119
1112
|
right: "11111111111111111111",
|
|
1120
1113
|
listItemProps: { attrs: { title: e.name } }
|
|
1121
|
-
}, i =
|
|
1122
|
-
|
|
1123
|
-
...
|
|
1114
|
+
}, i = q.value.findIndex((e) => e.on === 0);
|
|
1115
|
+
q.value = [
|
|
1116
|
+
...q.value.slice(0, i),
|
|
1124
1117
|
n,
|
|
1125
|
-
...
|
|
1126
|
-
], c.value && (c.value += 1,
|
|
1118
|
+
...q.value.slice(i)
|
|
1119
|
+
], c.value && (c.value += 1, bt(r, c.value));
|
|
1127
1120
|
}
|
|
1128
|
-
m.value === "api" &&
|
|
1121
|
+
m.value === "api" && St(r);
|
|
1129
1122
|
}
|
|
1130
1123
|
}, _ = () => {
|
|
1131
1124
|
m.value === "api" && d.value?.resetCache(!0);
|
|
1132
1125
|
}, v = async () => {
|
|
1133
|
-
if (
|
|
1126
|
+
if (q.value || m.value !== "static") return;
|
|
1134
1127
|
let e = await h();
|
|
1135
|
-
e && (
|
|
1128
|
+
e && (q.value = e.result);
|
|
1136
1129
|
};
|
|
1137
1130
|
return ae(async () => {
|
|
1138
1131
|
await ee();
|
|
@@ -1155,7 +1148,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1155
1148
|
placeholder: f.value,
|
|
1156
1149
|
hasCloserBtn: "",
|
|
1157
1150
|
api: m.value === "api" ? I(o) : void 0,
|
|
1158
|
-
apiSetSearchParams: m.value === "api" ? (...e) => I(
|
|
1151
|
+
apiSetSearchParams: m.value === "api" ? (...e) => I(ut)(...e) : void 0,
|
|
1159
1152
|
useCache: "",
|
|
1160
1153
|
appendSearchToResult: "",
|
|
1161
1154
|
appendSearchAllowDuplicate: "",
|
|
@@ -1166,26 +1159,26 @@ var He = /* @__PURE__ */ k({
|
|
|
1166
1159
|
onAppendItem: g,
|
|
1167
1160
|
onOpen: v
|
|
1168
1161
|
}, {
|
|
1169
|
-
item: z(({ item: i }) => [E("div",
|
|
1162
|
+
item: z(({ item: i }) => [E("div", Ct, [E("div", wt, [i.id ? (M(), T(x, { key: 0 }, [D(F(I(u)(i.name, 20)) + " ", 1), E("span", Tt, " id " + F(i.id), 1)], 64)) : (M(), T(x, { key: 1 }, [i.listItemProps?.type ? w("", !0) : (M(), T("div", Et, F(e.$i18n.Projects.Add_project) + ": ", 1)), D(" " + F(i.name), 1)], 64))]), i.id ? (M(), T(x, { key: 0 }, [
|
|
1170
1163
|
t.addLinksToProjects ? (M(), T("a", {
|
|
1171
1164
|
key: 0,
|
|
1172
1165
|
class: "top-projectSelector_itemLink",
|
|
1173
|
-
href: I(
|
|
1174
|
-
onClick: B((e) => I(
|
|
1175
|
-
}, null, 8,
|
|
1166
|
+
href: I(st)(i.id),
|
|
1167
|
+
onClick: B((e) => I(ot)(I(st)(i.id), e), ["prevent", "stop"])
|
|
1168
|
+
}, null, 8, Dt)) : w("", !0),
|
|
1176
1169
|
e.$core.state.isMobile ? w("", !0) : (M(), C(r, {
|
|
1177
1170
|
key: 1,
|
|
1178
1171
|
class: "top-projectSelector_itemExtLink",
|
|
1179
|
-
href: I(
|
|
1172
|
+
href: I(lt)(i.url),
|
|
1180
1173
|
"data-top-icon": "",
|
|
1181
1174
|
color: "theme",
|
|
1182
1175
|
target: "_blank",
|
|
1183
1176
|
onClick: n[0] ||= B(() => {}, ["stop"])
|
|
1184
1177
|
}, null, 8, ["href"])),
|
|
1185
|
-
O(
|
|
1178
|
+
O(_t, {
|
|
1186
1179
|
id: i.id,
|
|
1187
1180
|
right: i.right ?? void 0,
|
|
1188
|
-
url: I(
|
|
1181
|
+
url: I(lt)(i.url)
|
|
1189
1182
|
}, null, 8, [
|
|
1190
1183
|
"id",
|
|
1191
1184
|
"right",
|
|
@@ -1207,11 +1200,11 @@ var He = /* @__PURE__ */ k({
|
|
|
1207
1200
|
]);
|
|
1208
1201
|
};
|
|
1209
1202
|
}
|
|
1210
|
-
}),
|
|
1211
|
-
e =
|
|
1203
|
+
}), At = (e) => "-" + e, Y = (e) => e[0] === "-" ? e.substring(1) : e, X = (e, t) => {
|
|
1204
|
+
e = Y(e);
|
|
1212
1205
|
let n = t.find((t) => t.id === e);
|
|
1213
1206
|
if (n) return n;
|
|
1214
|
-
},
|
|
1207
|
+
}, jt = (e, t, n) => {
|
|
1215
1208
|
t ||= { id: e.id }, t.id = e.id, t.pos ??= "3", t.notch ??= !0, t.posBy ??= "fixed";
|
|
1216
1209
|
let r = c.genElPopupOpener("div", t);
|
|
1217
1210
|
return r.classList.add("top-tagSelector"), e.useTopButton && r.classList.add("top-tagSelector-useTopButton", "top-button", "top-color_theme", "top-as-selector"), e.useTopButton || r.classList.add("top-tagSelector-custom"), e.mode === "filter" && r.classList.add("top-tagSelector-filter"), e.mode === "setter" && !e.filters && r.classList.add("top-tagSelector-setter_single"), e.mode === "setter" && e.filters && r.classList.add("top-tagSelector-setter_several"), r.onclick = (t) => {
|
|
@@ -1224,16 +1217,16 @@ var He = /* @__PURE__ */ k({
|
|
|
1224
1217
|
filters: e.filters,
|
|
1225
1218
|
payload: e.payload
|
|
1226
1219
|
}), delete r.dataset.topPopupDisabled, ne(e.modelValue) || R(i, () => {
|
|
1227
|
-
e.modelValue = i.value,
|
|
1220
|
+
e.modelValue = i.value, Z(r, e, n);
|
|
1228
1221
|
}), r.click();
|
|
1229
|
-
}, ne(e.modelValue) ? R(e.modelValue, () =>
|
|
1222
|
+
}, ne(e.modelValue) ? R(e.modelValue, () => Z(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
|
|
1230
1223
|
e.modelValue = t;
|
|
1231
1224
|
let i = s(r, "topTagSelectorTarget");
|
|
1232
|
-
i && (i.model.value = t),
|
|
1233
|
-
}),
|
|
1234
|
-
},
|
|
1225
|
+
i && (i.model.value = t), Z(r, e, n);
|
|
1226
|
+
}), Z(r, e, n), r;
|
|
1227
|
+
}, Mt = (e, t) => {
|
|
1235
1228
|
s(e, "topTagSelectorRender")?.(t);
|
|
1236
|
-
},
|
|
1229
|
+
}, Z = (t, n, r) => {
|
|
1237
1230
|
let i = I(n.modelValue);
|
|
1238
1231
|
if (t.classList.toggle("top-tagSelector-selectedOne", !i.length || i.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", i.length > 5), n.mode === "setter" && n.filters) {
|
|
1239
1232
|
t.innerHTML = `<div>${r}</div>`;
|
|
@@ -1250,10 +1243,10 @@ var He = /* @__PURE__ */ k({
|
|
|
1250
1243
|
}
|
|
1251
1244
|
i.forEach((e) => {
|
|
1252
1245
|
let r = Nt({
|
|
1253
|
-
id:
|
|
1254
|
-
colorId:
|
|
1255
|
-
name:
|
|
1256
|
-
state:
|
|
1246
|
+
id: Y(e),
|
|
1247
|
+
colorId: X(e, n.tags)?.color_id ?? "",
|
|
1248
|
+
name: X(e, n.tags)?.name ?? "",
|
|
1249
|
+
state: Y(e) === e ? "selected" : "excluded"
|
|
1257
1250
|
});
|
|
1258
1251
|
t.append(r);
|
|
1259
1252
|
});
|
|
@@ -1315,7 +1308,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1315
1308
|
"data-tag_id",
|
|
1316
1309
|
"data-tag_color_id",
|
|
1317
1310
|
"title"
|
|
1318
|
-
],
|
|
1311
|
+
], Q = /* @__PURE__ */ k({
|
|
1319
1312
|
__name: "tagIcon",
|
|
1320
1313
|
props: {
|
|
1321
1314
|
id: {},
|
|
@@ -1335,7 +1328,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1335
1328
|
title: e.name
|
|
1336
1329
|
}, null, 10, Ft));
|
|
1337
1330
|
}
|
|
1338
|
-
}),
|
|
1331
|
+
}), It = ["contenteditable", "onKeydown"], Lt = /* @__PURE__ */ k({
|
|
1339
1332
|
__name: "tagPopupListItem",
|
|
1340
1333
|
props: /* @__PURE__ */ A({
|
|
1341
1334
|
editable: { type: Boolean },
|
|
@@ -1384,7 +1377,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1384
1377
|
onClick: B(d, ["stop"])
|
|
1385
1378
|
}, {
|
|
1386
1379
|
default: z(() => [
|
|
1387
|
-
O(
|
|
1380
|
+
O(Q, {
|
|
1388
1381
|
id: e.id,
|
|
1389
1382
|
name: i.value,
|
|
1390
1383
|
colorId: e.colorId,
|
|
@@ -1400,7 +1393,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1400
1393
|
ref: a,
|
|
1401
1394
|
class: "top-tagSelector_tagListItemName",
|
|
1402
1395
|
contenteditable: s.value ? "plaintext-only" : !1
|
|
1403
|
-
}, o.value, { onKeydown: [me(B(l, ["stop"]), ["enter"]), me(B(u, ["stop"]), ["esc"])] }), F(i.value), 17,
|
|
1396
|
+
}, o.value, { onKeydown: [me(B(l, ["stop"]), ["enter"]), me(B(u, ["stop"]), ["esc"])] }), F(i.value), 17, It),
|
|
1404
1397
|
e.editable ? (M(), T(x, { key: 0 }, [s.value ? (M(), T("span", {
|
|
1405
1398
|
key: 1,
|
|
1406
1399
|
"data-top-icon": "",
|
|
@@ -1416,7 +1409,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1416
1409
|
_: 1
|
|
1417
1410
|
}, 8, ["class"]));
|
|
1418
1411
|
}
|
|
1419
|
-
}),
|
|
1412
|
+
}), Rt = { key: 1 }, zt = /* @__PURE__ */ k({
|
|
1420
1413
|
inheritAttrs: !1,
|
|
1421
1414
|
__name: "popupOpener",
|
|
1422
1415
|
props: /* @__PURE__ */ A({
|
|
@@ -1460,17 +1453,17 @@ var He = /* @__PURE__ */ k({
|
|
|
1460
1453
|
color: "theme",
|
|
1461
1454
|
styling: e.styling
|
|
1462
1455
|
}, r.$attrs), {
|
|
1463
|
-
[I(a)]: z(() => [!n.value.length && e.mode === "filter" ? (M(), C(
|
|
1456
|
+
[I(a)]: z(() => [!n.value.length && e.mode === "filter" ? (M(), C(Q, {
|
|
1464
1457
|
key: 0,
|
|
1465
1458
|
id: "all",
|
|
1466
1459
|
colorId: "",
|
|
1467
1460
|
name: r.$i18n.Common.All_tags ?? "",
|
|
1468
1461
|
state: ""
|
|
1469
|
-
}, null, 8, ["name"])) : w("", !0), e.mode === "setter" && e.filters ? (M(), T("div",
|
|
1470
|
-
id: I(
|
|
1471
|
-
colorId: I(
|
|
1472
|
-
name: I(
|
|
1473
|
-
state: I(
|
|
1462
|
+
}, null, 8, ["name"])) : w("", !0), e.mode === "setter" && e.filters ? (M(), T("div", Rt, [se(r.$slots, "default")])) : (M(!0), T(x, { key: 2 }, P(n.value, (t) => (M(), C(Q, {
|
|
1463
|
+
id: I(Y)(t),
|
|
1464
|
+
colorId: I(X)(t, e.tags)?.color_id ?? "",
|
|
1465
|
+
name: I(X)(t, e.tags)?.name ?? "",
|
|
1466
|
+
state: I(Y)(t) === t ? "selected" : "excluded"
|
|
1474
1467
|
}, null, 8, [
|
|
1475
1468
|
"id",
|
|
1476
1469
|
"colorId",
|
|
@@ -1487,7 +1480,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1487
1480
|
}, 8, ["id"]);
|
|
1488
1481
|
};
|
|
1489
1482
|
}
|
|
1490
|
-
}),
|
|
1483
|
+
}), Bt = /* @__PURE__ */ k({
|
|
1491
1484
|
__name: "tagSelector",
|
|
1492
1485
|
props: /* @__PURE__ */ A({
|
|
1493
1486
|
modelValue: {},
|
|
@@ -1550,11 +1543,11 @@ var He = /* @__PURE__ */ k({
|
|
|
1550
1543
|
}), b = (e) => {
|
|
1551
1544
|
if (e !== "all") {
|
|
1552
1545
|
if (v.value.model.value.includes(e)) return "selected";
|
|
1553
|
-
if (v.value.model.value.includes(
|
|
1546
|
+
if (v.value.model.value.includes(At(e))) return "excluded";
|
|
1554
1547
|
}
|
|
1555
1548
|
return e === "all" && !v.value.model.value.length ? "selected" : "";
|
|
1556
1549
|
}, E = (e, t) => {
|
|
1557
|
-
let n =
|
|
1550
|
+
let n = At(e), r = v.value.model.value.filter((t) => t !== e && t !== n);
|
|
1558
1551
|
t === "select" && r.push(e), t === "exclude" && r.push(n), v.value.mode === "setter" && v.value.targetId !== void 0 && l.requiredForSetter && (r.length || r.push("1"), r.length === 2 && v.value.model.value.length === 1 && v.value.model.value[0] === "1" && (r = r.filter((e) => e !== "1"))), l.singleMode && !v.value.filters && (r.length || (r = v.value.model.value), r.length > 1 && (r = [r[r.length - 1]])), r.sort((e, t) => l.tags ? l.tags.findIndex((t) => t.id === e) - l.tags.findIndex((e) => e.id === t) : 0), v.value.model.value = r, v.value.mode === "setter" && v.value.targetId !== void 0 && p("setter", {
|
|
1559
1552
|
tagsIds: r,
|
|
1560
1553
|
targetId: v.value.targetId,
|
|
@@ -1595,7 +1588,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1595
1588
|
}, re = (e) => {
|
|
1596
1589
|
t.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
|
|
1597
1590
|
};
|
|
1598
|
-
return (e, t) => (M(), T(x, null, [O(
|
|
1591
|
+
return (e, t) => (M(), T(x, null, [O(zt, {
|
|
1599
1592
|
modelValue: u.value,
|
|
1600
1593
|
"onUpdate:modelValue": t[0] ||= (e) => u.value = e,
|
|
1601
1594
|
id: I(m),
|
|
@@ -1617,7 +1610,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1617
1610
|
"transition-duration": 50
|
|
1618
1611
|
}, te({
|
|
1619
1612
|
contentList: z(() => [
|
|
1620
|
-
I(v).mode === "filter" && !a.singleMode ? (M(), C(
|
|
1613
|
+
I(v).mode === "filter" && !a.singleMode ? (M(), C(Lt, {
|
|
1621
1614
|
key: 0,
|
|
1622
1615
|
id: "all",
|
|
1623
1616
|
colorId: "",
|
|
@@ -1625,7 +1618,7 @@ var He = /* @__PURE__ */ k({
|
|
|
1625
1618
|
state: I(v).model.value.length ? "" : "selected",
|
|
1626
1619
|
onSelect: t[3] ||= (e) => I(v).model.value = []
|
|
1627
1620
|
}, null, 8, ["name", "state"])) : w("", !0),
|
|
1628
|
-
(M(!0), T(x, null, P(d.value, (e) => (M(), C(
|
|
1621
|
+
(M(!0), T(x, null, P(d.value, (e) => (M(), C(Lt, {
|
|
1629
1622
|
key: e.id,
|
|
1630
1623
|
id: e.id,
|
|
1631
1624
|
colorId: e.color_id,
|
|
@@ -1690,6 +1683,6 @@ var He = /* @__PURE__ */ k({
|
|
|
1690
1683
|
}
|
|
1691
1684
|
});
|
|
1692
1685
|
//#endregion
|
|
1693
|
-
export { _e as TopCompetitorSelector,
|
|
1686
|
+
export { _e as TopCompetitorSelector, $e as TopGroupSelector, kt as TopProjectSelector, Ie as TopRegionSelector, Bt as TopTagSelector, zt as TopTagSelectorPopupOpener, Q as TopTagSelectorTagIcon, St as clearCache, je as dialogRegionSelector, Ae as findRegion, jt as genElTopTagSelectorPopupOpener, De as genSearcherByKey, Mt as renderElTopTagSelectorPopupOpener, ve as useItemsFromCompetitors };
|
|
1694
1687
|
|
|
1695
1688
|
//# sourceMappingURL=project.js.map
|