@topvisor/ui 1.5.0-updates.0 → 1.5.0-updates.10
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 +2 -0
- package/.chunks/api-CawzY1Cw.amd.js.map +1 -0
- package/.chunks/api-CawzY1Cw.esm.js +208 -0
- package/.chunks/api-CawzY1Cw.esm.js.map +1 -0
- package/.chunks/app-CCX-gNqz.amd.js +2 -0
- package/.chunks/app-CCX-gNqz.amd.js.map +1 -0
- package/.chunks/app-CCX-gNqz.esm.js +396 -0
- package/.chunks/app-CCX-gNqz.esm.js.map +1 -0
- package/.chunks/datepicker-BTkZOq7d.amd.js +2 -0
- package/.chunks/datepicker-BTkZOq7d.amd.js.map +1 -0
- package/.chunks/datepicker-BTkZOq7d.esm.js +38 -0
- package/.chunks/datepicker-BTkZOq7d.esm.js.map +1 -0
- package/.chunks/dialog-DeM4SApg.amd.js +2 -0
- package/.chunks/dialog-DeM4SApg.amd.js.map +1 -0
- package/.chunks/dialog-DeM4SApg.esm.js +117 -0
- package/.chunks/dialog-DeM4SApg.esm.js.map +1 -0
- package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.amd.js +2 -0
- package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.amd.js.map +1 -0
- package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.esm.js +169 -0
- package/.chunks/dialog_regionSelectorRegions-CYrmaDt3.esm.js.map +1 -0
- package/.chunks/dialogs-CMrERMI7.amd.js +2 -0
- package/.chunks/dialogs-CMrERMI7.amd.js.map +1 -0
- package/.chunks/dialogs-CMrERMI7.esm.js +237 -0
- package/.chunks/dialogs-CMrERMI7.esm.js.map +1 -0
- package/.chunks/field-CjkpGeA7.amd.js +2 -0
- package/.chunks/field-CjkpGeA7.amd.js.map +1 -0
- package/.chunks/field-CjkpGeA7.esm.js +16 -0
- package/.chunks/field-CjkpGeA7.esm.js.map +1 -0
- package/.chunks/forms-CbUt-6Ff.amd.js +2 -0
- package/.chunks/forms-CbUt-6Ff.amd.js.map +1 -0
- package/.chunks/forms-CbUt-6Ff.esm.js +1991 -0
- package/.chunks/forms-CbUt-6Ff.esm.js.map +1 -0
- package/.chunks/formsExt-CrTmBhja.amd.js +2 -0
- package/.chunks/formsExt-CrTmBhja.amd.js.map +1 -0
- package/.chunks/formsExt-CrTmBhja.esm.js +807 -0
- package/.chunks/formsExt-CrTmBhja.esm.js.map +1 -0
- package/.chunks/lazy-CGswTOPj.amd.js +2 -0
- package/.chunks/lazy-CGswTOPj.amd.js.map +1 -0
- package/.chunks/lazy-CGswTOPj.esm.js +68 -0
- package/.chunks/lazy-CGswTOPj.esm.js.map +1 -0
- package/.chunks/mocker-CwZe-g4N.amd.js +2 -0
- package/.chunks/mocker-CwZe-g4N.amd.js.map +1 -0
- package/.chunks/mocker-CwZe-g4N.esm.js +45 -0
- package/.chunks/mocker-CwZe-g4N.esm.js.map +1 -0
- package/.chunks/notice-CslVdVNm.amd.js +4 -0
- package/.chunks/notice-CslVdVNm.amd.js.map +1 -0
- package/.chunks/notice-CslVdVNm.esm.js +191 -0
- package/.chunks/notice-CslVdVNm.esm.js.map +1 -0
- package/.chunks/popup-DrByVU-k.amd.js +2 -0
- package/.chunks/popup-DrByVU-k.amd.js.map +1 -0
- package/.chunks/popup-DrByVU-k.esm.js +444 -0
- package/.chunks/popup-DrByVU-k.esm.js.map +1 -0
- package/.chunks/popup-dNrN-eKi.amd.js +2 -0
- package/.chunks/popup-dNrN-eKi.amd.js.map +1 -0
- package/.chunks/popup-dNrN-eKi.esm.js +323 -0
- package/.chunks/popup-dNrN-eKi.esm.js.map +1 -0
- package/.chunks/punycode.es6-B-5kB2YI.amd.js +2 -0
- package/.chunks/{punycode.es6-CgGegfA_.es.js.map → punycode.es6-B-5kB2YI.amd.js.map} +1 -1
- package/.chunks/punycode.es6-B-5kB2YI.esm.js +105 -0
- package/.chunks/punycode.es6-B-5kB2YI.esm.js.map +1 -0
- package/.chunks/store-DuQpSSLL.amd.js +2 -0
- package/.chunks/store-DuQpSSLL.amd.js.map +1 -0
- package/.chunks/store-DuQpSSLL.esm.js +27 -0
- package/.chunks/store-DuQpSSLL.esm.js.map +1 -0
- package/.chunks/utils-BwiXsV0S.amd.js +2 -0
- package/.chunks/{utils-BNzP9anP.es.js.map → utils-BwiXsV0S.amd.js.map} +1 -1
- package/.chunks/utils-BwiXsV0S.esm.js +43 -0
- package/.chunks/utils-BwiXsV0S.esm.js.map +1 -0
- package/.chunks/utils-Dd0MZgyw.amd.js +2 -0
- package/.chunks/utils-Dd0MZgyw.amd.js.map +1 -0
- package/.chunks/utils-Dd0MZgyw.esm.js +287 -0
- package/.chunks/utils-Dd0MZgyw.esm.js.map +1 -0
- package/.chunks/worker-Db8YrEHo.amd.js +2 -0
- package/.chunks/worker-Db8YrEHo.amd.js.map +1 -0
- package/.chunks/worker-Db8YrEHo.esm.js +100 -0
- package/.chunks/worker-Db8YrEHo.esm.js.map +1 -0
- package/api/additional.amd.js +2 -2
- package/api/additional.amd.js.map +1 -1
- package/api/additional.d.ts +1 -0
- package/api/additional.js +70 -66
- package/api/additional.js.map +1 -1
- package/api/index.amd.js +2 -2
- package/api/index.amd.js.map +1 -1
- package/api/index.d.ts +1 -0
- package/api/index.js +3 -285
- package/assets/charts.css +1 -1
- package/assets/core.css +1 -1
- package/assets/dialog_regionSelectorRegions.css +1 -1
- package/assets/extra.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -0
- package/assets/layout.css +1 -1
- package/assets/notice.css +1 -1
- package/assets/popup.css +1 -0
- package/assets/project.css +1 -1
- package/assets/tabs.css +1 -1
- package/assets/tabsView.css +1 -1
- package/assets/themes/dark-th.css +1 -1
- package/assets/themes/dark.css +1 -1
- package/assets/themes/light.css +1 -1
- package/autoload-css-manifest.amd.json +79 -0
- package/autoload-css-manifest.json +90 -0
- package/charts/charts.amd.js +2 -2
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.d.ts +1 -0
- package/charts/charts.js +146 -174
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +2 -2
- package/core/app.amd.js.map +1 -1
- package/core/app.d.ts +1 -0
- package/core/app.js +5 -213
- package/dialog/dialog.amd.js +2 -2
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.d.ts +1 -0
- package/dialog/dialog.js +4 -60
- package/extra/extra.amd.js +2 -2
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.d.ts +1 -0
- package/extra/extra.js +73 -69
- package/extra/extra.js.map +1 -1
- package/forms/forms.amd.js +2 -2
- package/forms/forms.amd.js.map +1 -1
- package/forms/forms.d.ts +1 -0
- package/forms/forms.js +2 -19
- package/forms/helpers.amd.js +2 -2
- package/forms/helpers.amd.js.map +1 -1
- package/forms/helpers.js +0 -2
- package/formsExt/formsExt.amd.js +2 -2
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.d.ts +1 -0
- package/formsExt/formsExt.js +2 -373
- package/icomoon/Topvisor icons.json +259 -231
- package/icomoon/demo-files/demo.amd.js +2 -0
- package/icomoon/demo-files/demo.amd.js.map +1 -0
- package/icomoon/demo.amd.js +2 -0
- package/icomoon/demo.amd.js.map +1 -0
- 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 +2 -2
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.d.ts +1 -0
- package/layout/layout.js +41 -57
- package/layout/layout.js.map +1 -1
- package/package.json +1 -1
- package/popup/popup.amd.js +2 -2
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.d.ts +1 -0
- package/popup/popup.js +2 -282
- package/popup/worker.amd.js +2 -2
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.d.ts +1 -0
- package/popup/worker.js +2 -144
- package/project/project.amd.js +2 -2
- package/project/project.amd.js.map +1 -1
- package/project/project.d.ts +1 -0
- package/project/project.js +1678 -1643
- 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 +2 -2
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.d.ts +1 -0
- package/tabs/tabs.js +63 -77
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +2 -2
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.d.ts +1 -0
- package/tabsView/tabsView.js +245 -288
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js +2 -2
- package/utils/check.amd.js.map +1 -1
- package/utils/check.d.ts +1 -0
- package/utils/check.js +15 -19
- package/utils/check.js.map +1 -1
- package/utils/clipboard.amd.js +6 -6
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.d.ts +1 -0
- package/utils/clipboard.js +26 -31
- package/utils/clipboard.js.map +1 -1
- package/utils/date.amd.js +2 -2
- package/utils/date.amd.js.map +1 -1
- package/utils/date.d.ts +1 -0
- package/utils/date.js +2 -12
- package/utils/device.amd.js +2 -2
- package/utils/device.amd.js.map +1 -1
- package/utils/device.d.ts +1 -0
- package/utils/device.js +2 -15
- package/utils/dom.amd.js +2 -2
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.d.ts +5 -0
- package/utils/dom.js +53 -67
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js +3 -3
- package/utils/image.amd.js.map +1 -1
- package/utils/image.d.ts +1 -0
- package/utils/image.js +12 -22
- package/utils/image.js.map +1 -1
- package/utils/keyboard.amd.js +2 -2
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.d.ts +1 -0
- package/utils/keyboard.js +10 -11
- package/utils/keyboard.js.map +1 -1
- package/utils/lodash.amd.js +2 -2
- package/utils/lodash.amd.js.map +1 -1
- package/utils/lodash.d.ts +1 -0
- package/utils/lodash.js +2 -9
- package/utils/number.amd.js +2 -2
- package/utils/number.amd.js.map +1 -1
- package/utils/number.d.ts +1 -0
- package/utils/number.js +12 -12
- package/utils/number.js.map +1 -1
- package/utils/price.amd.js +2 -2
- package/utils/price.amd.js.map +1 -1
- package/utils/price.d.ts +1 -0
- package/utils/price.js +14 -9
- package/utils/price.js.map +1 -1
- package/utils/route.amd.js +2 -2
- package/utils/route.amd.js.map +1 -1
- package/utils/route.d.ts +1 -0
- package/utils/route.js +33 -37
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js +2 -2
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.d.ts +1 -0
- package/utils/scroll.js +39 -43
- package/utils/scroll.js.map +1 -1
- package/utils/searchers.amd.js +2 -2
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.d.ts +1 -0
- package/utils/searchers.js +128 -133
- package/utils/searchers.js.map +1 -1
- package/utils/store.amd.js +2 -2
- package/utils/store.amd.js.map +1 -1
- package/utils/store.d.ts +1 -0
- package/utils/store.js +2 -7
- package/utils/string.amd.js +2 -2
- package/utils/string.amd.js.map +1 -1
- package/utils/string.d.ts +1 -0
- package/utils/string.js +120 -147
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js +2 -2
- package/utils/system.amd.js.map +1 -1
- package/utils/system.d.ts +1 -0
- package/utils/system.js +25 -28
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js +3 -3
- package/utils/url.amd.js.map +1 -1
- package/utils/url.d.ts +1 -0
- package/utils/url.js +36 -47
- package/utils/url.js.map +1 -1
- package/.chunks/core-Dgj_YGWh.es.js +0 -268
- package/.chunks/core-Dgj_YGWh.es.js.map +0 -1
- package/.chunks/core-DzDFXOdI.amd.js +0 -2
- package/.chunks/core-DzDFXOdI.amd.js.map +0 -1
- package/.chunks/datepicker-oa8ZwRhq.amd.js +0 -2
- package/.chunks/datepicker-oa8ZwRhq.amd.js.map +0 -1
- package/.chunks/datepicker-qToxk2nN.es.js +0 -41
- package/.chunks/datepicker-qToxk2nN.es.js.map +0 -1
- package/.chunks/dialog_regionSelectorRegions-CZ0tMVSq.amd.js +0 -2
- package/.chunks/dialog_regionSelectorRegions-CZ0tMVSq.amd.js.map +0 -1
- package/.chunks/dialog_regionSelectorRegions-qDW2Ejsv.es.js +0 -180
- package/.chunks/dialog_regionSelectorRegions-qDW2Ejsv.es.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BBix_8WK.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BBix_8WK.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js +0 -323
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js.map +0 -1
- package/.chunks/field-Cvv0SRcJ.amd.js +0 -2
- package/.chunks/field-Cvv0SRcJ.amd.js.map +0 -1
- package/.chunks/field-CyyFzM-Y.es.js +0 -16
- package/.chunks/field-CyyFzM-Y.es.js.map +0 -1
- package/.chunks/forms-DDNzqU6o.amd.js +0 -3
- package/.chunks/forms-DDNzqU6o.amd.js.map +0 -1
- package/.chunks/forms-DtC-EKJL.es.js +0 -2053
- package/.chunks/forms-DtC-EKJL.es.js.map +0 -1
- package/.chunks/index-DLUtoTUg.amd.js +0 -2
- package/.chunks/index-DLUtoTUg.amd.js.map +0 -1
- package/.chunks/index-DkQWJkMc.es.js +0 -54
- package/.chunks/index-DkQWJkMc.es.js.map +0 -1
- package/.chunks/lazy-DDNqYkXn.amd.js +0 -2
- package/.chunks/lazy-DDNqYkXn.amd.js.map +0 -1
- package/.chunks/lazy-HKSyLh72.es.js +0 -75
- package/.chunks/lazy-HKSyLh72.es.js.map +0 -1
- package/.chunks/notice-BvQl911b.es.js +0 -191
- package/.chunks/notice-BvQl911b.es.js.map +0 -1
- package/.chunks/notice-CJ3WOTCM.amd.js +0 -4
- package/.chunks/notice-CJ3WOTCM.amd.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js +0 -139
- package/.chunks/page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-fl6-Ql4d.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-fl6-Ql4d.amd.js.map +0 -1
- package/.chunks/policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js +0 -519
- package/.chunks/policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js.map +0 -1
- package/.chunks/policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js +0 -2
- package/.chunks/policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js.map +0 -1
- package/.chunks/popup-OuDglAOF.es.js +0 -470
- package/.chunks/popup-OuDglAOF.es.js.map +0 -1
- package/.chunks/popup-yXIpyok3.amd.js +0 -2
- package/.chunks/popup-yXIpyok3.amd.js.map +0 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js +0 -2
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js.map +0 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js +0 -209
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js.map +0 -1
- package/.chunks/punycode.es6-CNOnFR2-.amd.js +0 -2
- package/.chunks/punycode.es6-CNOnFR2-.amd.js.map +0 -1
- package/.chunks/punycode.es6-CgGegfA_.es.js +0 -134
- package/.chunks/store-CX_6ZXhO.es.js +0 -29
- package/.chunks/store-CX_6ZXhO.es.js.map +0 -1
- package/.chunks/store-YRW59xEF.amd.js +0 -2
- package/.chunks/store-YRW59xEF.amd.js.map +0 -1
- package/.chunks/utils-BNzP9anP.es.js +0 -78
- package/.chunks/utils-CWn_G7OO.amd.js +0 -2
- package/.chunks/utils-CWn_G7OO.amd.js.map +0 -1
- package/.chunks/utils-DIviuVEw.amd.js +0 -2
- package/.chunks/utils-DIviuVEw.amd.js.map +0 -1
- package/.chunks/utils-Dma85ehT.es.js +0 -288
- package/.chunks/utils-Dma85ehT.es.js.map +0 -1
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js +0 -39
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js.map +0 -1
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CkOmb3VD.amd.js +0 -2
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-CkOmb3VD.amd.js.map +0 -1
- package/api/index.js.map +0 -1
- package/assets/policy.css +0 -1
- package/assets/popupHint.css +0 -1
- package/core/app.js.map +0 -1
- package/dialog/dialog.js.map +0 -1
- package/forms/forms.js.map +0 -1
- package/forms/helpers.js.map +0 -1
- package/formsExt/formsExt.js.map +0 -1
- package/popup/popup.js.map +0 -1
- package/popup/worker.js.map +0 -1
- 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/utils/date.js.map +0 -1
- package/utils/device.js.map +0 -1
- package/utils/lodash.js.map +0 -1
- package/utils/store.js.map +0 -1
- 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
|
@@ -0,0 +1,807 @@
|
|
|
1
|
+
|
|
2
|
+
/* start import css */
|
|
3
|
+
import { Core as _autoloadCSSCore } from '../core/app.js';
|
|
4
|
+
const fileNames = ['../assets/formsExt.css'].map(fileName => import.meta.resolve(fileName));
|
|
5
|
+
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
6
|
+
/* end import css */
|
|
7
|
+
|
|
8
|
+
import "./api-CawzY1Cw.esm.js";
|
|
9
|
+
import { E as e, G as t, O as n, P as r, a as i, c as a, f as o, h as s, r as c, t as l } from "./forms-CbUt-6Ff.esm.js";
|
|
10
|
+
import { t as u } from "./field-CjkpGeA7.esm.js";
|
|
11
|
+
import { invertKeyboardLayout as d } from "../utils/keyboard.js";
|
|
12
|
+
import { a as f, o as p, s as m } from "./popup-DrByVU-k.esm.js";
|
|
13
|
+
import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, mergeModels as T, mergeProps as E, normalizeClass as D, onMounted as O, onUpdated as k, openBlock as A, ref as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as F, resolveDynamicComponent as I, toDisplayString as L, toRef as R, unref as z, useModel as B, watch as V, withCtx as H, withDirectives as U, withKeys as W, withModifiers as G } from "vue";
|
|
14
|
+
//#region src/components/formsExt/menu/menu.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var K = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "top-menu_selectAll"
|
|
18
|
+
}, ee = /* @__PURE__ */ w({
|
|
19
|
+
__name: "menu",
|
|
20
|
+
props: /* @__PURE__ */ T({
|
|
21
|
+
modelValue: {},
|
|
22
|
+
items: {},
|
|
23
|
+
isMultiple: { type: Boolean },
|
|
24
|
+
canBeEmptyMultiple: { type: Boolean },
|
|
25
|
+
styling: { default: "default" },
|
|
26
|
+
selectAllItem: {}
|
|
27
|
+
}, {
|
|
28
|
+
modelValue: { required: !0 },
|
|
29
|
+
modelModifiers: {}
|
|
30
|
+
}),
|
|
31
|
+
emits: ["update:modelValue"],
|
|
32
|
+
setup(e) {
|
|
33
|
+
let r = e, i = B(e, "modelValue"), a = j();
|
|
34
|
+
!r.isMultiple && typeof i.value != "string" && typeof i.value != "number" && console.warn("Type check failed for prop \"modelValue\". Expected String: " + typeof i.value), r.isMultiple && !Array.isArray(i.value) && console.warn("Type check failed for prop \"modelValue\". Expected Array: " + typeof i.value), r.isMultiple && !r.canBeEmptyMultiple && Array.isArray(i.value) && !i.value.length && r.items[0] && (i.value = [r.items[0]?.href ?? r.items[0]?.value]);
|
|
35
|
+
let o = (e) => Array.isArray(i.value) ? i.value.includes(e.value) : e.value === i.value, c = (e, t = !1) => {
|
|
36
|
+
if (Array.isArray(i.value)) {
|
|
37
|
+
let n = i.value.slice();
|
|
38
|
+
if (t) {
|
|
39
|
+
n.length || (n = r.items.map((e) => e.value));
|
|
40
|
+
let t = n.indexOf(e.value);
|
|
41
|
+
t === -1 ? n.push(e.value) : n.splice(t, 1);
|
|
42
|
+
} else n = n.length === 1 && n[0] === e.value ? [] : [e.value];
|
|
43
|
+
!r.canBeEmptyMultiple && !n.length && (n = [e.value]), i.value = n;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
i.value = e.value;
|
|
47
|
+
}, l = (e) => {
|
|
48
|
+
if (a.value.scrollWidth <= a.value.offsetWidth || e.shiftKey || Math.abs(e.deltaY) < 50) return;
|
|
49
|
+
e.preventDefault();
|
|
50
|
+
let t = e.deltaY > 0 ? 30 : -30;
|
|
51
|
+
a.value.scrollLeft = a.value.scrollLeft + t;
|
|
52
|
+
}, u = (e = !0) => {
|
|
53
|
+
let r = a.value.querySelector(".top-active");
|
|
54
|
+
if (!r) return;
|
|
55
|
+
let i = r.offsetLeft - a.value.offsetLeft - 24, o = r.offsetLeft - a.value.offsetLeft + r.clientWidth + 24, s = a.value.scrollLeft, c = a.value.clientWidth + a.value.scrollLeft, l;
|
|
56
|
+
i < s && (l = i), o > c && (l = o - a.value.clientWidth), l !== void 0 && (t() ? n.$?.(a.value).animate({ scrollLeft: l }, e ? 200 : 0) : a.value.scrollTo({
|
|
57
|
+
left: l,
|
|
58
|
+
behavior: e ? "smooth" : "auto"
|
|
59
|
+
}));
|
|
60
|
+
}, d = () => {
|
|
61
|
+
if (Array.isArray(i.value)) {
|
|
62
|
+
if (i.value.length === r.items.length) {
|
|
63
|
+
i.value = [r.items[0].href ?? r.items[0].value];
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
i.value = r.items.map((e) => e.href ?? e.value);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
return O(() => u(!1)), k(() => u(!0)), (t, n) => (A(), y("div", {
|
|
70
|
+
ref_key: "el",
|
|
71
|
+
ref: a,
|
|
72
|
+
class: D({
|
|
73
|
+
"top-menu": !0,
|
|
74
|
+
["top-style_" + e.styling]: !0
|
|
75
|
+
}),
|
|
76
|
+
onWheel: l
|
|
77
|
+
}, [(A(!0), y(h, null, M(e.items, (e) => (A(), _(s, E({ ref_for: !0 }, e, {
|
|
78
|
+
class: "top-menu_item",
|
|
79
|
+
color: "theme",
|
|
80
|
+
onClick: (t) => c(e, t.ctrlKey || t.metaKey),
|
|
81
|
+
isActive: o(e)
|
|
82
|
+
}), x({ _: 2 }, [e.content ? {
|
|
83
|
+
name: "default",
|
|
84
|
+
fn: H(() => [S(L(e.content), 1)]),
|
|
85
|
+
key: "0"
|
|
86
|
+
} : void 0]), 1040, ["onClick", "isActive"]))), 256)), Array.isArray(i.value) && e.selectAllItem ? (A(), y("div", K, [C(s, E(e.selectAllItem, {
|
|
87
|
+
class: "top-menu_item",
|
|
88
|
+
color: "theme",
|
|
89
|
+
styling: "",
|
|
90
|
+
onClick: n[0] ||= (e) => d(),
|
|
91
|
+
isActive: i.value.length === e.items.length
|
|
92
|
+
}), x({ _: 2 }, [e.selectAllItem.content ? {
|
|
93
|
+
name: "default",
|
|
94
|
+
fn: H(() => [S(L(e.selectAllItem.content), 1)]),
|
|
95
|
+
key: "0"
|
|
96
|
+
} : void 0]), 1040, ["isActive"])])) : v("", !0)], 34));
|
|
97
|
+
}
|
|
98
|
+
}), te = { class: "top-selector2_itemMulti top-ellipsis" }, ne = /* @__PURE__ */ w({
|
|
99
|
+
__name: "itemMulti",
|
|
100
|
+
props: {
|
|
101
|
+
id: {},
|
|
102
|
+
name: {}
|
|
103
|
+
},
|
|
104
|
+
emits: ["delete"],
|
|
105
|
+
setup(e) {
|
|
106
|
+
return (t, n) => (A(), y("div", te, [S(L(e.name) + " ", 1), b("span", {
|
|
107
|
+
class: "top-selector2_itemMultiDelete",
|
|
108
|
+
"data-top-icon": "",
|
|
109
|
+
onClick: n[0] ||= (n) => t.$emit("delete", {
|
|
110
|
+
id: e.id,
|
|
111
|
+
name: e.name
|
|
112
|
+
}),
|
|
113
|
+
onMousedown: n[1] ||= G(() => {}, ["stop"])
|
|
114
|
+
}, null, 32)]));
|
|
115
|
+
}
|
|
116
|
+
}), q = /* @__PURE__ */ new Map(), J = (e) => {
|
|
117
|
+
q.get(e)?.clear();
|
|
118
|
+
}, Y = (e) => {
|
|
119
|
+
let t = window.mo?.user?.id;
|
|
120
|
+
return JSON.stringify(e.params) + ":" + e.url + ":" + t;
|
|
121
|
+
}, X = (e, t) => q.get(t)?.get(e), re = (e, t, n) => {
|
|
122
|
+
q.has(t) || q.set(t, /* @__PURE__ */ new Map()), q.get(t)?.set(e, n);
|
|
123
|
+
}, ie = (e, t, n, i) => {
|
|
124
|
+
let a = j([]), o = j(!1), s = j(0), c = "", l;
|
|
125
|
+
e && !e.params.limit && (e.params.limit = 100);
|
|
126
|
+
let u = async () => {
|
|
127
|
+
if (!e) return;
|
|
128
|
+
let t = i ? Y(e) : void 0;
|
|
129
|
+
if (t) {
|
|
130
|
+
let n = X(t, e.path);
|
|
131
|
+
if (n) return e.abortByFingerprint(), n;
|
|
132
|
+
}
|
|
133
|
+
let n = await e.call();
|
|
134
|
+
if (n.errors) return;
|
|
135
|
+
if (!Array.isArray(n.result)) {
|
|
136
|
+
console.warn("Array expected in `res.result`");
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
let r = n.result.findIndex((e) => e.id === void 0 || e.name === void 0);
|
|
140
|
+
if (r !== -1) {
|
|
141
|
+
console.warn(`В result[${r}] нет id или name`);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
return t && re(t, e.path, n), n;
|
|
145
|
+
}, d = async (n) => {
|
|
146
|
+
if (!e) return;
|
|
147
|
+
if (n) {
|
|
148
|
+
if (!l || o.value) return;
|
|
149
|
+
e.params.offset = l;
|
|
150
|
+
} else e.params.offset = 0;
|
|
151
|
+
t?.(e, c), o.value = !0;
|
|
152
|
+
let r = await u();
|
|
153
|
+
o.value = !1, s.value++, r && (l = r.nextOffset, n ? a.value = a.value.concat(r.result) : a.value = r.result);
|
|
154
|
+
}, f = r(() => d(!1), 200);
|
|
155
|
+
return {
|
|
156
|
+
apiRequest: e,
|
|
157
|
+
items: a,
|
|
158
|
+
isLoading: o,
|
|
159
|
+
countLoading: s,
|
|
160
|
+
load: d,
|
|
161
|
+
setSearchTextAndLoad: (t, r = !0) => {
|
|
162
|
+
if (e) {
|
|
163
|
+
if (t.length < n) {
|
|
164
|
+
e.abortByFingerprint(), a.value = [];
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
t === c && a.value.length || (c = t, r ? f() : d(!1));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}, ae = 0, oe = null, Z = (e, t, n = !0) => n && t.id === null ? Array.isArray(e) ? e.some((e) => e.id === t.id && e.name === t.name) : t.name === e.name : Array.isArray(e) ? e.some((e) => e.id === t.id) : t.id === e.id, se = (e, t, n) => {
|
|
172
|
+
let r = e.params.filters ?? [];
|
|
173
|
+
r = r.filter((e) => e.name !== n), t && r.push(u(n, "CONTAINS", [t])), e.changeParams({ filters: r });
|
|
174
|
+
}, ce = (t, n, r, i, a, o, s, c, l, u, f, p, m) => {
|
|
175
|
+
let h = j(""), _ = {
|
|
176
|
+
id: 0,
|
|
177
|
+
name: e().Common.All
|
|
178
|
+
}, v = () => {
|
|
179
|
+
h.value = "";
|
|
180
|
+
}, y = () => !(!m.apiRequest || h.value.length >= p), b = g(() => {
|
|
181
|
+
let e = [];
|
|
182
|
+
return !i && a.value && (typeof a.value == "string" && (_.name = a.value), e.push(_)), r.value?.forEach((t) => e.push({ ...t })), e;
|
|
183
|
+
}), x = j([]), S = () => {
|
|
184
|
+
x.value = C();
|
|
185
|
+
}, C = () => {
|
|
186
|
+
let e = h.value.toLowerCase(), n = d(e), r = [], a, f = [], p = () => {
|
|
187
|
+
f.at(-1)?.listItemProps?.type === "delimiter" && f.pop(), f.length &&= (a && r.push(a), r.push(...f), 0);
|
|
188
|
+
};
|
|
189
|
+
for (let t of b.value) switch (t.listItemProps?.type) {
|
|
190
|
+
case "title":
|
|
191
|
+
p(), a = t;
|
|
192
|
+
break;
|
|
193
|
+
case "delimiter":
|
|
194
|
+
if (f.length) {
|
|
195
|
+
let e = f.length;
|
|
196
|
+
f.at(-1)?.listItemProps?.type === "delimiter" && e--, f[e] = t;
|
|
197
|
+
}
|
|
198
|
+
break;
|
|
199
|
+
default:
|
|
200
|
+
let r = u.value?.includes("id"), i = t.name.toLowerCase(), o = u.value?.filter((e) => e !== "id").map((e) => typeof t[e] == "string" || typeof t[e] == "number" ? t[e] : "").join("☼").toLowerCase();
|
|
201
|
+
(r && t.id === Number(e) || o?.includes(e) || o?.includes(n)) && (i === e || i === n ? f.unshift(t) : f.push(t));
|
|
202
|
+
}
|
|
203
|
+
if (p(), r.push(...m.items.value), o.value && h.value && (!c.value || c.value(e)) && (s.value || !r.find((t) => t.name.toLowerCase() === e))) {
|
|
204
|
+
let e = {
|
|
205
|
+
id: null,
|
|
206
|
+
name: h.value
|
|
207
|
+
};
|
|
208
|
+
l.value && (e.listItemProps = { closeByClick: !1 }), r.push(e);
|
|
209
|
+
}
|
|
210
|
+
return i && (r = r.filter((e) => !Z(t.value, e))), r;
|
|
211
|
+
}, w = (e) => {
|
|
212
|
+
e.listItemProps?.type === "title" || e.listItemProps?.type === "delimiter" || e.id === null && (n("appendItem", e), l.value) || (i && Array.isArray(t.value) ? Z(t.value, e) || (t.value = [...t.value, e]) : t.value = e, setTimeout(() => {
|
|
213
|
+
v();
|
|
214
|
+
}));
|
|
215
|
+
};
|
|
216
|
+
if (m.apiRequest) {
|
|
217
|
+
let e = [r, m.items];
|
|
218
|
+
i && e.push(t), V(e, () => {
|
|
219
|
+
S();
|
|
220
|
+
});
|
|
221
|
+
} else V([
|
|
222
|
+
t,
|
|
223
|
+
r,
|
|
224
|
+
h
|
|
225
|
+
], () => {
|
|
226
|
+
S();
|
|
227
|
+
}, {
|
|
228
|
+
immediate: !0,
|
|
229
|
+
deep: 2
|
|
230
|
+
});
|
|
231
|
+
return {
|
|
232
|
+
searchText: h,
|
|
233
|
+
resetSearch: v,
|
|
234
|
+
genIsShort: y,
|
|
235
|
+
itemsForShow: x,
|
|
236
|
+
selectItem: w,
|
|
237
|
+
selectNextItem: () => {
|
|
238
|
+
if (Array.isArray(t.value)) return;
|
|
239
|
+
let e = x.value.filter((e) => !["title", "delimiter"].includes(e.listItemProps?.type ?? ""));
|
|
240
|
+
t.value = { ...e[(e.findIndex((e) => e.id === t.value.id) + 1) % e.length] };
|
|
241
|
+
},
|
|
242
|
+
deleteItemByItem: async (e) => {
|
|
243
|
+
Array.isArray(t.value) && (t.value = t.value.filter((t) => t.id !== e.id || t.name !== e.name));
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
}, le = {
|
|
247
|
+
key: 0,
|
|
248
|
+
class: "top-selector2_activeItems"
|
|
249
|
+
}, ue = {
|
|
250
|
+
key: 1,
|
|
251
|
+
class: "top-selector2_activeName top-ellipsis"
|
|
252
|
+
}, de = {
|
|
253
|
+
key: 2,
|
|
254
|
+
class: "top-selector2_placeholder top-ellipsis"
|
|
255
|
+
}, fe = { class: "top-selector2_searchWidget" }, pe = /* @__PURE__ */ w({
|
|
256
|
+
__name: "selector2",
|
|
257
|
+
props: /* @__PURE__ */ T({
|
|
258
|
+
modelValue: {},
|
|
259
|
+
items: { default: () => [] },
|
|
260
|
+
title: {},
|
|
261
|
+
disabled: { type: Boolean },
|
|
262
|
+
icon: {},
|
|
263
|
+
modificator: {},
|
|
264
|
+
size: { default: "s" },
|
|
265
|
+
isError: { type: Boolean },
|
|
266
|
+
openByFocusInput: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
default: void 0
|
|
269
|
+
},
|
|
270
|
+
searchType: { default: "popup" },
|
|
271
|
+
searchFields: { default: () => ["id", "name"] },
|
|
272
|
+
placeholder: {},
|
|
273
|
+
hasCloserBtn: { type: Boolean },
|
|
274
|
+
api: {},
|
|
275
|
+
apiSetSearchParams: {},
|
|
276
|
+
minLength: { default: 0 },
|
|
277
|
+
useCache: { type: Boolean },
|
|
278
|
+
appendSearchToResult: { type: Boolean },
|
|
279
|
+
appendSearchAllowDuplicate: { type: Boolean },
|
|
280
|
+
appendSearchToResultCond: {},
|
|
281
|
+
appendWithoutSelect: { type: Boolean },
|
|
282
|
+
multiselect: { type: Boolean },
|
|
283
|
+
useAllItem: { type: [Boolean, String] },
|
|
284
|
+
addChanger: { type: Boolean },
|
|
285
|
+
buttonProps: {},
|
|
286
|
+
selectedAsPlaceholder: { type: Boolean },
|
|
287
|
+
openerShortcut: {}
|
|
288
|
+
}, {
|
|
289
|
+
modelValue: { required: !0 },
|
|
290
|
+
modelModifiers: {}
|
|
291
|
+
}),
|
|
292
|
+
emits: /* @__PURE__ */ T(["appendItem", "open"], ["update:modelValue"]),
|
|
293
|
+
setup(e, { expose: t, emit: r }) {
|
|
294
|
+
let i = e, a = B(e, "modelValue"), o = r;
|
|
295
|
+
t({ resetCache: (e = !1) => {
|
|
296
|
+
c.apiRequest && (e && J(c.apiRequest.path), c.items.value = [], c.countLoading.value = 0, c.apiRequest.params.offset = 0, requestAnimationFrame(() => {
|
|
297
|
+
u.itemsForShow.value = [];
|
|
298
|
+
}), T()?.elPopup && c.setSearchTextAndLoad(u.searchText.value));
|
|
299
|
+
} });
|
|
300
|
+
let s = g(() => i.searchType === "inline" && i.multiselect || i.searchType === "inline" && n.state.isMobile ? "popup" : i.searchType), c = ie(i.api, i.apiSetSearchParams, i.minLength, i.useCache), u = ce(a, o, R(i, "items"), i.multiselect, R(i, "useAllItem"), R(i, "appendSearchToResult"), R(i, "appendSearchAllowDuplicate"), R(i, "appendSearchToResultCond"), R(i, "appendWithoutSelect"), R(i, "searchFields"), s, i.minLength, c), d = g(() => i.buttonProps ? "TopButton" : s.value === "inline" ? "TopInput" : "div"), w = j(null), T = () => w.value?.popup;
|
|
301
|
+
c.apiRequest && V(u.searchText, () => {
|
|
302
|
+
c.setSearchTextAndLoad(u.searchText.value);
|
|
303
|
+
});
|
|
304
|
+
let D = g(() => Array.isArray(a.value) || i.multiselect || !i.selectedAsPlaceholder && s.value !== "inline" ? i.placeholder : a.value?.name || i.placeholder), O = (e) => {
|
|
305
|
+
let t = !1;
|
|
306
|
+
switch (e.key) {
|
|
307
|
+
case "Delete":
|
|
308
|
+
case "Backspace":
|
|
309
|
+
Array.isArray(a.value) && (e.preventDefault(), e.stopPropagation(), a.value.pop());
|
|
310
|
+
break;
|
|
311
|
+
case "ArrowUp":
|
|
312
|
+
case "ArrowRight":
|
|
313
|
+
case "ArrowDown":
|
|
314
|
+
case "ArrowLeft":
|
|
315
|
+
case "Enter":
|
|
316
|
+
case " ":
|
|
317
|
+
t = !0;
|
|
318
|
+
break;
|
|
319
|
+
case "Escape":
|
|
320
|
+
s.value === "inline" && u.resetSearch();
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
let n = e.key.length === 1 && !e.ctrlKey && !e.metaKey;
|
|
324
|
+
(s.value === "popup" || s.value === "inline") && n && (t = !0), T()?.elPopup && (t = !1), t && (s.value === "popup" && (e.preventDefault(), e.stopPropagation(), n && (u.searchText.value || (u.searchText.value = e.key))), e.currentTarget?.click());
|
|
325
|
+
}, k = (e) => {
|
|
326
|
+
e.preventDefault(), u.selectNextItem();
|
|
327
|
+
}, W = () => {
|
|
328
|
+
c.apiRequest && c.setSearchTextAndLoad(u.searchText.value, !1), o("open");
|
|
329
|
+
}, G = () => {
|
|
330
|
+
s.value === "popup" && u.searchText.value && u.resetSearch();
|
|
331
|
+
}, K = (e) => {
|
|
332
|
+
let t = e.target;
|
|
333
|
+
t.scrollTop / (t.scrollHeight - t.offsetHeight) > .8 && c.load(!0);
|
|
334
|
+
};
|
|
335
|
+
return (t, r) => {
|
|
336
|
+
let i = P("TopButton"), o = P("TopLoadbar"), g = F("top-focus"), T = F("top-shortcut");
|
|
337
|
+
return A(), _(z(m), {
|
|
338
|
+
ref_key: "popupRef",
|
|
339
|
+
ref: w,
|
|
340
|
+
onOpen: r[3] ||= (e) => W(),
|
|
341
|
+
onClose: r[4] ||= (e) => G(),
|
|
342
|
+
onScrollContentList: r[5] ||= (e) => z(c) ? K(e) : void 0,
|
|
343
|
+
notch: !1,
|
|
344
|
+
transitionDuration: 0,
|
|
345
|
+
openByFocusInput: s.value === "inline" && (e.openByFocusInput ?? !0),
|
|
346
|
+
disabled: s.value === "inline" && z(u).genIsShort()
|
|
347
|
+
}, x({
|
|
348
|
+
opener: H(() => [U((A(), _(I(d.value), E(e.buttonProps, {
|
|
349
|
+
class: {
|
|
350
|
+
"top-selector2": !0,
|
|
351
|
+
"top-selector2-multiselect": e.multiselect,
|
|
352
|
+
["top-selector2-" + e.modificator]: !!e.modificator,
|
|
353
|
+
"top-as-input": !e.buttonProps && s.value !== "inline",
|
|
354
|
+
"top-as-selector": !0,
|
|
355
|
+
["top-size_" + e.size]: !0,
|
|
356
|
+
"top-disabled": e.disabled,
|
|
357
|
+
"top-forms-focusable": !e.disabled,
|
|
358
|
+
"top-error": e.isError
|
|
359
|
+
},
|
|
360
|
+
icon: e.icon,
|
|
361
|
+
tabindex: "0",
|
|
362
|
+
onKeydown: O,
|
|
363
|
+
onBlur: r[0] ||= (e) => s.value === "inline" && z(u).resetSearch(),
|
|
364
|
+
placeholder: D.value,
|
|
365
|
+
title: e.title,
|
|
366
|
+
captionType: s.value === "inline" && e.title !== void 0 ? "top" : void 0,
|
|
367
|
+
modelValue: z(u).searchText.value,
|
|
368
|
+
"onUpdate:modelValue": r[1] ||= (e) => z(u).searchText.value = e
|
|
369
|
+
}), {
|
|
370
|
+
default: H(() => [
|
|
371
|
+
e.multiselect ? (A(), y("div", le, [(A(!0), y(h, null, M(a.value, (e) => (A(), _(ne, {
|
|
372
|
+
id: e.id,
|
|
373
|
+
name: e.name,
|
|
374
|
+
onDelete: z(u).deleteItemByItem
|
|
375
|
+
}, null, 8, [
|
|
376
|
+
"id",
|
|
377
|
+
"name",
|
|
378
|
+
"onDelete"
|
|
379
|
+
]))), 256))])) : v("", !0),
|
|
380
|
+
s.value !== "inline" && !e.multiselect ? (A(), y("span", ue, L(Array.isArray(a.value) ? "" : a.value.name), 1)) : v("", !0),
|
|
381
|
+
e.multiselect && !a.value.length ? (A(), y("span", de, L(D.value), 1)) : v("", !0),
|
|
382
|
+
e.addChanger && !e.buttonProps && !e.multiselect && z(u).itemsForShow.value.length > 1 && !e.disabled ? (A(), y("span", {
|
|
383
|
+
key: 3,
|
|
384
|
+
class: "top-changer top-changer-selector",
|
|
385
|
+
"data-top-popup-disabled": "true",
|
|
386
|
+
onClick: k
|
|
387
|
+
})) : v("", !0)
|
|
388
|
+
]),
|
|
389
|
+
_: 1
|
|
390
|
+
}, 16, [
|
|
391
|
+
"class",
|
|
392
|
+
"icon",
|
|
393
|
+
"placeholder",
|
|
394
|
+
"title",
|
|
395
|
+
"captionType",
|
|
396
|
+
"modelValue"
|
|
397
|
+
])), [[
|
|
398
|
+
g,
|
|
399
|
+
e.isError,
|
|
400
|
+
void 0,
|
|
401
|
+
{ onupdate: !0 }
|
|
402
|
+
], [T, e.openerShortcut]])]),
|
|
403
|
+
contentList: H(() => [
|
|
404
|
+
(A(!0), y(h, null, M(z(u).itemsForShow.value, (r) => (A(), _(z(p), E({
|
|
405
|
+
key: r.id ?? void 0,
|
|
406
|
+
class: {
|
|
407
|
+
"top-active": !Array.isArray(a.value) && !e.multiselect && a.value.id === r.id && a.value.name === r.name,
|
|
408
|
+
"top-selector2_item-all": r.id === z(0),
|
|
409
|
+
"top-selector2_item-new": r.id === z(null)
|
|
410
|
+
},
|
|
411
|
+
closeByClick: !e.multiselect || z(n).state.isMobile
|
|
412
|
+
}, { ref_for: !0 }, r.listItemProps, { onClick: (e) => z(u).selectItem(r) }), {
|
|
413
|
+
default: H(() => [t.$slots.item ? N(t.$slots, "item", {
|
|
414
|
+
key: 0,
|
|
415
|
+
item: r
|
|
416
|
+
}) : (A(), y(h, { key: 1 }, [S(L(r.name), 1)], 64))]),
|
|
417
|
+
_: 2
|
|
418
|
+
}, 1040, [
|
|
419
|
+
"class",
|
|
420
|
+
"closeByClick",
|
|
421
|
+
"onClick"
|
|
422
|
+
]))), 128)),
|
|
423
|
+
!z(u).itemsForShow.value.length && !z(u).genIsShort() ? (A(), _(z(p), {
|
|
424
|
+
key: 0,
|
|
425
|
+
type: "regular"
|
|
426
|
+
}, {
|
|
427
|
+
default: H(() => [!z(c).isLoading.value || z(c).countLoading.value ? (A(), y(h, { key: 0 }, [S(L(t.$i18n.Common.No_results), 1)], 64)) : (A(), _(z(l), {
|
|
428
|
+
key: 1,
|
|
429
|
+
type: "circles"
|
|
430
|
+
}))]),
|
|
431
|
+
_: 1
|
|
432
|
+
})) : v("", !0),
|
|
433
|
+
z(c).countLoading.value && z(c).isLoading.value && s.value === "inline" ? (A(), _(o, { key: 1 })) : v("", !0)
|
|
434
|
+
]),
|
|
435
|
+
_: 2
|
|
436
|
+
}, [s.value === "popup" ? {
|
|
437
|
+
name: "widget",
|
|
438
|
+
fn: H(() => [b("div", fe, [U(C(z(f), {
|
|
439
|
+
title: "Поиск",
|
|
440
|
+
icon: "",
|
|
441
|
+
modelValue: z(u).searchText.value,
|
|
442
|
+
"onUpdate:modelValue": r[2] ||= (e) => z(u).searchText.value = e,
|
|
443
|
+
isLoading: !!z(c).countLoading.value && z(c).isLoading.value,
|
|
444
|
+
placeholder: D.value
|
|
445
|
+
}, null, 8, [
|
|
446
|
+
"modelValue",
|
|
447
|
+
"isLoading",
|
|
448
|
+
"placeholder"
|
|
449
|
+
]), [[
|
|
450
|
+
g,
|
|
451
|
+
a.value,
|
|
452
|
+
void 0,
|
|
453
|
+
{ onupdate: !0 }
|
|
454
|
+
]]), e.hasCloserBtn && !t.$core.state.isMobile ? (A(), _(i, {
|
|
455
|
+
key: 0,
|
|
456
|
+
class: "closer",
|
|
457
|
+
color: "theme"
|
|
458
|
+
}, {
|
|
459
|
+
default: H(() => [S(L(t.$i18n.Common.Cancel), 1)]),
|
|
460
|
+
_: 1
|
|
461
|
+
})) : v("", !0)])]),
|
|
462
|
+
key: "0"
|
|
463
|
+
} : void 0]), 1032, ["openByFocusInput", "disabled"]);
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
}), me = { class: "top-editArea_footer" }, he = /* @__PURE__ */ w({
|
|
467
|
+
__name: "editArea",
|
|
468
|
+
props: {
|
|
469
|
+
defaultValue: { default: "" },
|
|
470
|
+
title: {},
|
|
471
|
+
cancelText: { default: "Cancel" },
|
|
472
|
+
submitText: { default: "Send" },
|
|
473
|
+
closeText: { default: "Close" },
|
|
474
|
+
isFocused: { type: Boolean },
|
|
475
|
+
forceShowCloseBtn: { type: Boolean },
|
|
476
|
+
attachToKeyboard: { type: Boolean },
|
|
477
|
+
modelValue: {},
|
|
478
|
+
name: {},
|
|
479
|
+
placeholder: {},
|
|
480
|
+
styling: {},
|
|
481
|
+
rows: {},
|
|
482
|
+
minHeight: {},
|
|
483
|
+
expandable: {
|
|
484
|
+
type: Boolean,
|
|
485
|
+
default: !0
|
|
486
|
+
},
|
|
487
|
+
disabled: { type: Boolean },
|
|
488
|
+
readonly: { type: Boolean },
|
|
489
|
+
isError: { type: Boolean },
|
|
490
|
+
hint: {},
|
|
491
|
+
maxLength: {}
|
|
492
|
+
},
|
|
493
|
+
emits: [
|
|
494
|
+
"submit",
|
|
495
|
+
"close",
|
|
496
|
+
"clickOnTitle"
|
|
497
|
+
],
|
|
498
|
+
setup(e, { emit: t }) {
|
|
499
|
+
let n = e, r = t, i = j(n.defaultValue), a = j(n.isFocused), o = g(() => i.value !== n.defaultValue), l = (e) => {
|
|
500
|
+
r("submit", e), i.value = n.defaultValue;
|
|
501
|
+
}, u = () => {
|
|
502
|
+
if (n.forceShowCloseBtn && !o.value) {
|
|
503
|
+
r("close");
|
|
504
|
+
return;
|
|
505
|
+
}
|
|
506
|
+
i.value = n.defaultValue;
|
|
507
|
+
}, d = () => {
|
|
508
|
+
n.attachToKeyboard && r("clickOnTitle");
|
|
509
|
+
};
|
|
510
|
+
return (t, n) => (A(), y("div", { class: D({
|
|
511
|
+
"top-editArea": !0,
|
|
512
|
+
"top-editArea-attachedToKeyboard": e.attachToKeyboard
|
|
513
|
+
}) }, [e.title || t.$slots.caption ? (A(), y("div", {
|
|
514
|
+
key: 0,
|
|
515
|
+
class: "top-editArea_caption",
|
|
516
|
+
onClick: n[0] ||= (e) => d()
|
|
517
|
+
}, [N(t.$slots, "caption", {}, () => [S(L(e.title), 1)])])) : v("", !0), b("div", { class: D({
|
|
518
|
+
"top-editArea_form": !0,
|
|
519
|
+
"top-forms-focusable": !0,
|
|
520
|
+
"top-as-input": !0,
|
|
521
|
+
"top-error": e.isError,
|
|
522
|
+
"top-focus": a.value
|
|
523
|
+
}) }, [C(c, {
|
|
524
|
+
modelValue: i.value,
|
|
525
|
+
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
526
|
+
name: e.name,
|
|
527
|
+
placeholder: e.placeholder,
|
|
528
|
+
rows: e.rows,
|
|
529
|
+
minHeight: e.minHeight,
|
|
530
|
+
expandable: e.expandable,
|
|
531
|
+
disabled: e.disabled,
|
|
532
|
+
readonly: e.readonly,
|
|
533
|
+
isError: e.isError,
|
|
534
|
+
hint: e.hint,
|
|
535
|
+
class: "top-editArea_element",
|
|
536
|
+
onFocus: n[2] ||= () => a.value = !0,
|
|
537
|
+
onBlur: n[3] ||= () => a.value = !1,
|
|
538
|
+
onKeyup: [W(u, ["esc"]), n[4] ||= W(G((e) => l(i.value), ["ctrl"]), ["enter"])]
|
|
539
|
+
}, null, 8, [
|
|
540
|
+
"modelValue",
|
|
541
|
+
"name",
|
|
542
|
+
"placeholder",
|
|
543
|
+
"rows",
|
|
544
|
+
"minHeight",
|
|
545
|
+
"expandable",
|
|
546
|
+
"disabled",
|
|
547
|
+
"readonly",
|
|
548
|
+
"isError",
|
|
549
|
+
"hint"
|
|
550
|
+
]), b("div", me, [o.value || e.forceShowCloseBtn ? (A(), _(s, {
|
|
551
|
+
key: 0,
|
|
552
|
+
icon: t.$core.state.isMobile ? "" : "",
|
|
553
|
+
class: "top-editArea_button",
|
|
554
|
+
color: "theme",
|
|
555
|
+
styling: "soft",
|
|
556
|
+
onClick: u
|
|
557
|
+
}, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
558
|
+
name: "default",
|
|
559
|
+
fn: H(() => [S(L(e.cancelText), 1)]),
|
|
560
|
+
key: "0"
|
|
561
|
+
}]), 1032, ["icon"])) : v("", !0), o.value ? (A(), _(s, {
|
|
562
|
+
key: 1,
|
|
563
|
+
class: "top-editArea_button",
|
|
564
|
+
icon: t.$core.state.isMobile ? "" : "",
|
|
565
|
+
onClick: n[5] ||= (e) => l(i.value)
|
|
566
|
+
}, x({ _: 2 }, [t.$core.state.isMobile ? void 0 : {
|
|
567
|
+
name: "default",
|
|
568
|
+
fn: H(() => [S(L(e.submitText), 1)]),
|
|
569
|
+
key: "0"
|
|
570
|
+
}]), 1032, ["icon"])) : v("", !0)])], 2)], 2));
|
|
571
|
+
}
|
|
572
|
+
}), ge = { class: "top-editInput" }, Q = /* @__PURE__ */ w({
|
|
573
|
+
__name: "editInput",
|
|
574
|
+
props: {
|
|
575
|
+
modelValue: {},
|
|
576
|
+
alwaysShowSubmitBtn: { type: Boolean },
|
|
577
|
+
input: {},
|
|
578
|
+
button: {}
|
|
579
|
+
},
|
|
580
|
+
emits: ["update:modelValue"],
|
|
581
|
+
setup(e, { emit: t }) {
|
|
582
|
+
let n = e, r = j(n.modelValue);
|
|
583
|
+
V(() => n.modelValue, () => {
|
|
584
|
+
r.value = n.modelValue;
|
|
585
|
+
});
|
|
586
|
+
let i = t, o = () => {
|
|
587
|
+
i("update:modelValue", r.value);
|
|
588
|
+
};
|
|
589
|
+
return (t, n) => (A(), y("div", ge, [C(a, E(e.input, {
|
|
590
|
+
onKeydownCapture: n[0] ||= W(G((t) => r.value = e.modelValue, ["stop"]), ["esc"]),
|
|
591
|
+
onKeydown: W(G(o, ["stop"]), ["enter"]),
|
|
592
|
+
modelValue: r.value,
|
|
593
|
+
"onUpdate:modelValue": n[1] ||= (e) => r.value = e
|
|
594
|
+
}), x({ _: 2 }, [t.$slots.caption ? {
|
|
595
|
+
name: "caption",
|
|
596
|
+
fn: H(() => [N(t.$slots, "caption")]),
|
|
597
|
+
key: "0"
|
|
598
|
+
} : void 0]), 1040, ["onKeydown", "modelValue"]), r.value !== e.modelValue || e.alwaysShowSubmitBtn ? (A(), _(s, E({
|
|
599
|
+
key: 0,
|
|
600
|
+
icon: "",
|
|
601
|
+
styling: "soft"
|
|
602
|
+
}, e.button, { onClick: o }), null, 16)) : v("", !0)]));
|
|
603
|
+
}
|
|
604
|
+
}), $ = /* @__PURE__ */ w({
|
|
605
|
+
__name: "optionGroup",
|
|
606
|
+
props: /* @__PURE__ */ T({
|
|
607
|
+
modelValue: {},
|
|
608
|
+
items: {},
|
|
609
|
+
size: { default: "s" },
|
|
610
|
+
showIndicator: { type: Boolean },
|
|
611
|
+
isError: { type: Boolean }
|
|
612
|
+
}, {
|
|
613
|
+
modelValue: { required: !0 },
|
|
614
|
+
modelModifiers: {}
|
|
615
|
+
}),
|
|
616
|
+
emits: ["update:modelValue"],
|
|
617
|
+
setup(e) {
|
|
618
|
+
let t = B(e, "modelValue"), n = e, r = j(null);
|
|
619
|
+
V(t, () => {
|
|
620
|
+
let e = n.items.map((e) => e.value);
|
|
621
|
+
Array.isArray(t.value) ? t.value.find((t) => !e.includes(t)) && (t.value = t.value.filter((t) => e.includes(t))) : e.includes(t.value) || (t.value = e[0] ?? ""), r.value?.querySelector(".radioGroup_item-selected")?.scrollIntoView();
|
|
622
|
+
}, { immediate: !0 });
|
|
623
|
+
let a = "optionGroup-" + Math.random();
|
|
624
|
+
return (n, s) => (A(), y("div", {
|
|
625
|
+
ref_key: "elRef",
|
|
626
|
+
ref: r,
|
|
627
|
+
class: D({
|
|
628
|
+
"top-optionGroup": !0,
|
|
629
|
+
["top-optionGroup-showIndicator_" + Number(e.showIndicator)]: !0,
|
|
630
|
+
"top-scrollBarXHidding": !0,
|
|
631
|
+
["top-size_" + e.size]: !!e.size,
|
|
632
|
+
"top-error": e.isError
|
|
633
|
+
})
|
|
634
|
+
}, [Array.isArray(t.value) ? (A(!0), y(h, { key: 0 }, M(e.items, (n) => (A(), _(o, {
|
|
635
|
+
class: D({
|
|
636
|
+
"top-optionGroup_item-selected": t.value.includes(n.value),
|
|
637
|
+
"top-optionGroup_item": !0
|
|
638
|
+
}),
|
|
639
|
+
modelValue: t.value,
|
|
640
|
+
"onUpdate:modelValue": s[0] ||= (e) => t.value = e,
|
|
641
|
+
value: n.value,
|
|
642
|
+
title: n.title,
|
|
643
|
+
disabled: n.disabled,
|
|
644
|
+
isError: e.isError,
|
|
645
|
+
"data-top-icon": n.icon
|
|
646
|
+
}, x({ _: 2 }, [n.label ? {
|
|
647
|
+
name: "default",
|
|
648
|
+
fn: H(() => [S(L(n.label), 1)]),
|
|
649
|
+
key: "0"
|
|
650
|
+
} : void 0]), 1032, [
|
|
651
|
+
"class",
|
|
652
|
+
"modelValue",
|
|
653
|
+
"value",
|
|
654
|
+
"title",
|
|
655
|
+
"disabled",
|
|
656
|
+
"isError",
|
|
657
|
+
"data-top-icon"
|
|
658
|
+
]))), 256)) : (A(!0), y(h, { key: 1 }, M(e.items, (n) => (A(), _(i, {
|
|
659
|
+
class: D({
|
|
660
|
+
"top-optionGroup_item-selected": n.value === t.value,
|
|
661
|
+
"top-optionGroup_item": !0
|
|
662
|
+
}),
|
|
663
|
+
modelValue: t.value,
|
|
664
|
+
"onUpdate:modelValue": s[1] ||= (e) => t.value = e,
|
|
665
|
+
name: a,
|
|
666
|
+
value: n.value,
|
|
667
|
+
title: n.title,
|
|
668
|
+
disabled: n.disabled,
|
|
669
|
+
isError: e.isError,
|
|
670
|
+
"data-top-icon": n.icon
|
|
671
|
+
}, x({ _: 2 }, [n.label ? {
|
|
672
|
+
name: "default",
|
|
673
|
+
fn: H(() => [S(L(n.label), 1)]),
|
|
674
|
+
key: "0"
|
|
675
|
+
} : void 0]), 1032, [
|
|
676
|
+
"class",
|
|
677
|
+
"modelValue",
|
|
678
|
+
"value",
|
|
679
|
+
"title",
|
|
680
|
+
"disabled",
|
|
681
|
+
"isError",
|
|
682
|
+
"data-top-icon"
|
|
683
|
+
]))), 256))], 2));
|
|
684
|
+
}
|
|
685
|
+
}), _e = /* @__PURE__ */ w({
|
|
686
|
+
__name: "radioGroup",
|
|
687
|
+
props: /* @__PURE__ */ T({
|
|
688
|
+
modelValue: {},
|
|
689
|
+
items: {},
|
|
690
|
+
size: {},
|
|
691
|
+
showIndicator: { type: Boolean },
|
|
692
|
+
isError: { type: Boolean }
|
|
693
|
+
}, {
|
|
694
|
+
modelValue: { required: !0 },
|
|
695
|
+
modelModifiers: {}
|
|
696
|
+
}),
|
|
697
|
+
emits: ["update:modelValue"],
|
|
698
|
+
setup(e) {
|
|
699
|
+
let t = B(e, "modelValue");
|
|
700
|
+
return (e, n) => (A(), _($, {
|
|
701
|
+
class: "top-radioGroup",
|
|
702
|
+
modelValue: t.value,
|
|
703
|
+
"onUpdate:modelValue": n[0] ||= (e) => t.value = e,
|
|
704
|
+
items: e.$props.items,
|
|
705
|
+
size: e.$props.size,
|
|
706
|
+
showIndicator: e.$props.showIndicator,
|
|
707
|
+
isError: e.$props.isError
|
|
708
|
+
}, {
|
|
709
|
+
default: H(() => [N(e.$slots, "default")]),
|
|
710
|
+
_: 3
|
|
711
|
+
}, 8, [
|
|
712
|
+
"modelValue",
|
|
713
|
+
"items",
|
|
714
|
+
"size",
|
|
715
|
+
"showIndicator",
|
|
716
|
+
"isError"
|
|
717
|
+
]));
|
|
718
|
+
}
|
|
719
|
+
}), ve = /* @__PURE__ */ w({
|
|
720
|
+
__name: "checkboxGroup",
|
|
721
|
+
props: /* @__PURE__ */ T({
|
|
722
|
+
modelValue: {},
|
|
723
|
+
items: {},
|
|
724
|
+
size: {},
|
|
725
|
+
showIndicator: { type: Boolean },
|
|
726
|
+
isError: { type: Boolean }
|
|
727
|
+
}, {
|
|
728
|
+
modelValue: { required: !0 },
|
|
729
|
+
modelModifiers: {}
|
|
730
|
+
}),
|
|
731
|
+
emits: ["update:modelValue"],
|
|
732
|
+
setup(e) {
|
|
733
|
+
let t = B(e, "modelValue");
|
|
734
|
+
return (e, n) => (A(), _($, {
|
|
735
|
+
class: "top-checkboxGroup",
|
|
736
|
+
modelValue: t.value,
|
|
737
|
+
"onUpdate:modelValue": n[0] ||= (e) => t.value = e,
|
|
738
|
+
items: e.$props.items,
|
|
739
|
+
size: e.$props.size,
|
|
740
|
+
showIndicator: e.$props.showIndicator,
|
|
741
|
+
isError: e.$props.isError
|
|
742
|
+
}, {
|
|
743
|
+
default: H(() => [N(e.$slots, "default")]),
|
|
744
|
+
_: 3
|
|
745
|
+
}, 8, [
|
|
746
|
+
"modelValue",
|
|
747
|
+
"items",
|
|
748
|
+
"size",
|
|
749
|
+
"showIndicator",
|
|
750
|
+
"isError"
|
|
751
|
+
]));
|
|
752
|
+
}
|
|
753
|
+
}), ye = ["data-top-icon"], be = { class: "top-info_text" }, xe = {
|
|
754
|
+
key: 0,
|
|
755
|
+
class: "top-info_value"
|
|
756
|
+
}, Se = /* @__PURE__ */ w({
|
|
757
|
+
__name: "info",
|
|
758
|
+
props: {
|
|
759
|
+
icon: {},
|
|
760
|
+
styling: { default: "default" },
|
|
761
|
+
size: { default: "default" }
|
|
762
|
+
},
|
|
763
|
+
setup(e) {
|
|
764
|
+
return (t, n) => (A(), y("div", {
|
|
765
|
+
class: D({
|
|
766
|
+
"top-info": !0,
|
|
767
|
+
["top-size_" + e.size]: !0,
|
|
768
|
+
["top-info-styling_" + e.styling]: !0
|
|
769
|
+
}),
|
|
770
|
+
"data-top-icon": e.icon
|
|
771
|
+
}, [b("div", be, [N(t.$slots, "default")]), t.$slots.additional ? (A(), y("span", xe, [N(t.$slots, "additional")])) : v("", !0)], 10, ye));
|
|
772
|
+
}
|
|
773
|
+
}), Ce = {
|
|
774
|
+
key: 0,
|
|
775
|
+
class: "top-policy"
|
|
776
|
+
}, we = { class: "top-policy_title" }, Te = ["innerHTML"], Ee = /* @__PURE__ */ w({
|
|
777
|
+
__name: "policy",
|
|
778
|
+
props: {
|
|
779
|
+
title: {},
|
|
780
|
+
description: {},
|
|
781
|
+
acceptText: {}
|
|
782
|
+
},
|
|
783
|
+
emits: ["accept"],
|
|
784
|
+
setup(e, { emit: t }) {
|
|
785
|
+
let n = t, r = j(!0), i = () => {
|
|
786
|
+
r.value = !1, n("accept");
|
|
787
|
+
};
|
|
788
|
+
return (t, n) => r.value ? (A(), y("div", Ce, [
|
|
789
|
+
b("div", we, L(e.title), 1),
|
|
790
|
+
b("div", {
|
|
791
|
+
class: "top-policy_description",
|
|
792
|
+
innerHTML: e.description
|
|
793
|
+
}, null, 8, Te),
|
|
794
|
+
C(z(s), {
|
|
795
|
+
size: "m",
|
|
796
|
+
onClick: i
|
|
797
|
+
}, {
|
|
798
|
+
default: H(() => [S(L(e.acceptText), 1)]),
|
|
799
|
+
_: 1
|
|
800
|
+
})
|
|
801
|
+
])) : v("", !0);
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
//#endregion
|
|
805
|
+
export { Q as a, ae as c, ee as d, _e as i, oe as l, Se as n, he as o, ve as r, pe as s, Ee as t, se as u };
|
|
806
|
+
|
|
807
|
+
//# sourceMappingURL=formsExt-CrTmBhja.esm.js.map
|