@topvisor/ui 1.0.42-popupPosition.0 → 1.1.0-addativeialog.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/core-BJlLrRTO.amd.js +2 -0
- package/.chunks/{core-D-etXW3Y.amd.js.map → core-BJlLrRTO.amd.js.map} +1 -1
- package/.chunks/{core-BGKb9a73.es.js → core-kIIIPZME.es.js} +4 -4
- package/.chunks/{core-BGKb9a73.es.js.map → core-kIIIPZME.es.js.map} +1 -1
- package/.chunks/datepicker-DsKl-YZR.amd.js +2 -0
- package/.chunks/{datepicker-BWaVsTd0.amd.js.map → datepicker-DsKl-YZR.amd.js.map} +1 -1
- package/.chunks/{datepicker-DCDYQmsc.es.js → datepicker-U31BrqE_.es.js} +2 -2
- package/.chunks/{datepicker-DCDYQmsc.es.js.map → datepicker-U31BrqE_.es.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-BAK6xG6N.es.js → dialog_selectorRegions-CX2F1Li-.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-BAK6xG6N.es.js.map → dialog_selectorRegions-CX2F1Li-.es.js.map} +1 -1
- package/.chunks/dialog_selectorRegions-Dq3V35Xa.amd.js +2 -0
- package/.chunks/{dialog_selectorRegions-CMI1gx5d.amd.js.map → dialog_selectorRegions-Dq3V35Xa.amd.js.map} +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Cmh_EuHe.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Cmh_EuHe.amd.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-itEMqnD4.es.js +614 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-itEMqnD4.es.js.map +1 -0
- package/.chunks/field-Cvv0SRcJ.amd.js +2 -0
- package/.chunks/field-Cvv0SRcJ.amd.js.map +1 -0
- package/.chunks/field-CyyFzM-Y.es.js +16 -0
- package/.chunks/field-CyyFzM-Y.es.js.map +1 -0
- package/.chunks/forms-DRhpgERJ.amd.js +3 -0
- package/.chunks/forms-DRhpgERJ.amd.js.map +1 -0
- package/.chunks/{forms-DOGPN_TR.es.js → forms-t2AEUjqg.es.js} +20 -20
- package/.chunks/forms-t2AEUjqg.es.js.map +1 -0
- package/.chunks/lazy-CiM2Ny-s.amd.js +2 -0
- package/.chunks/lazy-CiM2Ny-s.amd.js.map +1 -0
- package/.chunks/lazy-Crun7esL.es.js +39 -0
- package/.chunks/lazy-Crun7esL.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js +184 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js.map +1 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js +110 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js.map +1 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js +2 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js.map +1 -0
- package/.chunks/{notice-DE88Oe-t.es.js → notice-4bdzRXtl.es.js} +2 -2
- package/.chunks/{notice-DE88Oe-t.es.js.map → notice-4bdzRXtl.es.js.map} +1 -1
- package/.chunks/{notice-C5sXcBql.amd.js → notice-DQ9qFyQ2.amd.js} +3 -3
- package/.chunks/{notice-C5sXcBql.amd.js.map → notice-DQ9qFyQ2.amd.js.map} +1 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CUYYklcQ.amd.js +2 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CUYYklcQ.amd.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-D3VmFM-x.es.js +151 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-D3VmFM-x.es.js.map +1 -0
- package/.chunks/{popup-BjsK_pMZ.es.js → popup-DuraSW2f.es.js} +84 -77
- package/.chunks/popup-DuraSW2f.es.js.map +1 -0
- package/.chunks/popup-IcMnYYXr.amd.js +2 -0
- package/.chunks/popup-IcMnYYXr.amd.js.map +1 -0
- package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
- package/.chunks/{punycode.es6-C2yitnNb.amd.js.map → punycode.es6-CNOnFR2-.amd.js.map} +1 -1
- package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
- package/.chunks/{punycode.es6-CNI-zL6U.es.js.map → punycode.es6-CgGegfA_.es.js.map} +1 -1
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
- package/.chunks/store-YRW59xEF.amd.js +2 -0
- package/.chunks/{store-esTid5oI.amd.js.map → store-YRW59xEF.amd.js.map} +1 -1
- package/.chunks/{utils-CRPkMfKD.es.js → utils-BnYtfWTQ.es.js} +2 -2
- package/.chunks/{utils-CRPkMfKD.es.js.map → utils-BnYtfWTQ.es.js.map} +1 -1
- package/.chunks/utils-IaE6iz_-.amd.js +2 -0
- package/.chunks/{utils-BVdq18mg.amd.js.map → utils-IaE6iz_-.amd.js.map} +1 -1
- package/api/additional.amd.js +2 -0
- package/api/additional.amd.js.map +1 -0
- package/api/additional.js +66 -0
- package/api/additional.js.map +1 -0
- package/api/index.amd.js +2 -0
- package/api/index.amd.js.map +1 -0
- package/api/index.js +265 -0
- package/api/index.js.map +1 -0
- package/assets/core.css +1 -1
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/project.css +1 -1
- package/assets/themes/dark-th.css +1 -1
- package/assets/themes/dark.css +1 -1
- package/assets/themes/light.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +18 -16
- package/core/app.js.map +1 -1
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.js +2 -2
- package/dialog/dialog.js.map +1 -1
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/extra/extra.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/forms/helpers.amd.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +409 -320
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.js +1 -1
- package/layout/layout.js.map +1 -1
- package/package.json +7 -2
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +125 -109
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +30 -21
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +6 -6
- package/project/project.js.map +1 -1
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +1 -1
- package/tabsView/tabsView.js.map +1 -1
- package/types/api/additional.d.ts +2 -0
- package/types/api/api/additional.d.ts +1 -0
- package/types/api/api/client/client.d.ts +55 -0
- package/types/api/api/client/request-options.d.ts +1 -0
- package/types/api/api/client/request.d.ts +2 -0
- package/types/api/api/index.d.ts +12 -0
- package/types/api/api/tests/model.d.ts +0 -0
- package/types/api/api/tests/test.d.ts +16 -0
- package/types/api/api/types/api.d.ts +139 -0
- package/types/api/api/types/client/client.d.ts +8 -0
- package/types/api/api/types/client/middleware.d.ts +65 -0
- package/types/api/api/types/client/options.d.ts +60 -0
- package/types/api/api/types/client/request-context.d.ts +35 -0
- package/types/api/api/types/client/request-options.d.ts +73 -0
- package/types/api/api/types/client/request.d.ts +85 -0
- package/types/api/api/types/ext.d.ts +51 -0
- package/types/api/api/types/field.d.ts +33 -0
- package/types/api/api/types/index.d.ts +12 -0
- package/types/api/api/types/schema.d.ts +50 -0
- package/types/api/api/types/tv.d.ts +59 -0
- package/types/api/api/types/utils.d.ts +51 -0
- package/types/api/api/utils/common.d.ts +16 -0
- package/types/api/api/utils/field.d.ts +8 -0
- package/types/api/api/utils/filters.d.ts +48 -0
- package/types/api/api/utils/lazy.d.ts +17 -0
- package/types/api/index.d.ts +2 -0
- package/{components → types/components}/dialog/dialog/dialog.vue.d.ts +3 -3
- package/{components → types/components}/dialog/lib/types.d.ts +2 -2
- package/types/components/dialog/lib/utils.d.ts +45 -0
- package/{components → types/components}/dialog/lib/worker.d.ts +2 -2
- package/{components → types/components}/forms/button/button.vue.d.ts +2 -5
- package/{components → types/components}/forms/button/types.d.ts +10 -0
- package/{components → types/components}/forms/checkbox/checkbox.vue.d.ts +2 -2
- package/types/components/formsExt/policy/policy.vue.d.ts +8 -0
- package/types/components/formsExt/policy/types.d.ts +20 -0
- package/{components → types/components}/formsExt/selector2/composables/useAPI.d.ts +1 -1
- package/{components → types/components}/formsExt/selector2/composables/useMenu.d.ts +3 -1
- package/{components → types/components}/formsExt/selector2/selector2.vue.d.ts +11 -3
- package/{components → types/components}/formsExt/selector2/types.d.ts +50 -27
- package/types/components/popup/alert/alert.vue.d.ts +25 -0
- package/types/components/popup/alert/types.d.ts +8 -0
- package/types/components/popup/confirm/confirm.vue.d.ts +26 -0
- package/{components → types/components}/popup/confirm/types.d.ts +2 -2
- package/{components → types/components}/popup/lib/popup.d.ts +6 -2
- package/{components → types/components}/popup/lib/worker.d.ts +6 -4
- package/types/components/popup/popup/opener.vue.d.ts +17 -0
- package/types/components/popup/popup/popup.vue.d.ts +38 -0
- package/{components → types/components}/popup/popup/types.d.ts +20 -11
- package/types/components/popup/prompt/prompt.vue.d.ts +26 -0
- package/{components → types/components}/popup/prompt/types.d.ts +2 -2
- package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +1 -1
- package/{components → types/components}/project/selectorRegion/utils/utils.d.ts +1 -1
- package/{core → types/core}/utils/string.d.ts +1 -1
- package/types/for-delete/dark-positions.d.ts +1 -0
- package/types/for-delete/dark-th-positions.d.ts +1 -0
- package/types/for-delete/dark-th.d.ts +1 -0
- package/types/for-delete/dark.d.ts +1 -0
- package/types/for-delete/light-positions.d.ts +1 -0
- package/types/for-delete/light.d.ts +1 -0
- package/types/forms/helpers.d.ts +1 -0
- package/utils/check.amd.js +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.js.map +1 -1
- package/utils/clipboard.amd.js +2 -2
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/clipboard.js.map +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js +2 -2
- package/utils/image.amd.js.map +1 -1
- package/utils/image.js +1 -1
- package/utils/image.js.map +1 -1
- package/utils/keyboard.amd.js +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/number.amd.js +1 -1
- package/utils/number.amd.js.map +1 -1
- package/utils/number.js.map +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.js +1 -1
- package/utils/price.js.map +1 -1
- package/utils/route.amd.js +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.js.map +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.js +3 -3
- package/utils/searchers.js.map +1 -1
- package/utils/store.amd.js +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +34 -30
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js +2 -2
- package/utils/url.amd.js.map +1 -1
- package/utils/url.js +1 -1
- package/utils/url.js.map +1 -1
- package/.chunks/core-D-etXW3Y.amd.js +0 -2
- package/.chunks/datepicker-BWaVsTd0.amd.js +0 -2
- package/.chunks/dialog_selectorRegions-CMI1gx5d.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BSxHPUWf.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BSxHPUWf.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CjUHErAY.es.js +0 -322
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CjUHErAY.es.js.map +0 -1
- package/.chunks/forms-DOGPN_TR.es.js.map +0 -1
- package/.chunks/forms-Gb7ujpmz.amd.js +0 -3
- package/.chunks/forms-Gb7ujpmz.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js +0 -181
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js +0 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js +0 -109
- package/.chunks/menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DFvul4oF.es.js +0 -143
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DFvul4oF.es.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DJSuza2e.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DJSuza2e.amd.js.map +0 -1
- package/.chunks/popup-B_8bvIsF.amd.js +0 -2
- package/.chunks/popup-B_8bvIsF.amd.js.map +0 -1
- package/.chunks/popup-BjsK_pMZ.es.js.map +0 -1
- package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
- package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
- package/.chunks/store-esTid5oI.amd.js +0 -2
- package/.chunks/utils-BVdq18mg.amd.js +0 -2
- package/.chunks/utils-CacKxWvO.es.js +0 -303
- package/.chunks/utils-CacKxWvO.es.js.map +0 -1
- package/.chunks/utils-DiQZv1Ae.amd.js +0 -2
- package/.chunks/utils-DiQZv1Ae.amd.js.map +0 -1
- package/components/charts/miniChart/stories/dummy.d.ts +0 -13
- package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
- package/components/dialog/dialog/stories/autoload.d.ts +0 -2
- package/components/dialog/lib/utils.d.ts +0 -14
- package/components/forms/select/stories/exampleOptions.d.ts +0 -5
- package/components/formsExt/checkboxGroup/stories/example.d.ts +0 -15
- package/components/formsExt/menu/stories/items.d.ts +0 -3
- package/components/formsExt/policy/policy.vue.d.ts +0 -4
- package/components/formsExt/policy/types.d.ts +0 -10
- package/components/formsExt/radioGroup/stories/example.d.ts +0 -20
- package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
- package/components/popup/alert/alert.vue.d.ts +0 -31
- package/components/popup/alert/types.d.ts +0 -8
- package/components/popup/confirm/confirm.vue.d.ts +0 -33
- package/components/popup/popup/opener.vue.d.ts +0 -23
- package/components/popup/popup/popup.vue.d.ts +0 -40
- package/components/popup/prompt/prompt.vue.d.ts +0 -33
- package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
- package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
- package/icomoon/Topvisor icons.json +0 -6635
- package/{charts → types/charts}/charts.d.ts +0 -0
- package/{components → types/components}/charts/charts.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/miniChart.vue.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/types.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/utils/consts.d.ts +0 -0
- package/{components → types/components}/charts/miniCharts/miniCharts.d.ts +0 -0
- package/{components → types/components}/charts/miniCharts/miniCharts.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/item/item.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/item/types.d.ts +0 -0
- package/{components → types/components}/core/notice/notice.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/types.d.ts +0 -0
- package/{components → types/components}/core/notice/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/page/page.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/page/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog.d.ts +0 -0
- package/{components → types/components}/dialog/lib/utils.globalEvents.d.ts +0 -0
- package/{components → types/components}/extra/extra.d.ts +0 -0
- package/{components → types/components}/extra/rive/rive.vue.d.ts +0 -0
- package/{components → types/components}/extra/rive/types.d.ts +0 -0
- package/{components → types/components}/forms/avatar/avatar.vue.d.ts +1 -1
- /package/{components → types/components}/forms/avatar/types.d.ts +0 -0
- /package/{components → types/components}/forms/caption/caption.vue.d.ts +0 -0
- /package/{components → types/components}/forms/caption/types.d.ts +0 -0
- /package/{components → types/components}/forms/checkbox/types.d.ts +0 -0
- /package/{components → types/components}/forms/controlLabel/controlLabel.vue.d.ts +0 -0
- /package/{components → types/components}/forms/controlLabel/types.d.ts +0 -0
- /package/{components → types/components}/forms/forms.d.ts +0 -0
- /package/{components → types/components}/forms/helpers.d.ts +0 -0
- /package/{components → types/components}/forms/hint/hint.vue.d.ts +0 -0
- /package/{components → types/components}/forms/hint/types.d.ts +0 -0
- /package/{components → types/components}/forms/input/input.vue.d.ts +0 -0
- /package/{components → types/components}/forms/input/types.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/datepicker.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/inputDate.vue.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/types.d.ts +0 -0
- /package/{components → types/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
- /package/{components → types/components}/forms/inputRange/types.d.ts +0 -0
- /package/{components → types/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
- /package/{components → types/components}/forms/preloader/preloader.vue.d.ts +0 -0
- /package/{components → types/components}/forms/preloader/types.d.ts +0 -0
- /package/{components → types/components}/forms/radio/radio.vue.d.ts +0 -0
- /package/{components → types/components}/forms/radio/types.d.ts +0 -0
- /package/{components → types/components}/forms/select/select.vue.d.ts +0 -0
- /package/{components → types/components}/forms/select/types.d.ts +0 -0
- /package/{components → types/components}/forms/switcher/switcher.vue.d.ts +0 -0
- /package/{components → types/components}/forms/switcher/types.d.ts +0 -0
- /package/{components → types/components}/forms/textarea/textarea.vue.d.ts +0 -0
- /package/{components → types/components}/forms/textarea/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/checkboxGroup/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/editArea/editArea.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/editArea/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/editInput/editInput.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/editInput/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/formsExt.d.ts +0 -0
- /package/{components → types/components}/formsExt/info/info.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/info/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/menu/menu.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/menu/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/radioGroup/radioGroup.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/radioGroup/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/itemMulti.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/utils.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsRow/types.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/types.d.ts +0 -0
- /package/{components → types/components}/layout/layout.d.ts +0 -0
- /package/{components → types/components}/layout/rows/rows.vue.d.ts +0 -0
- /package/{components → types/components}/layout/rows/types.d.ts +0 -0
- /package/{components → types/components}/popup/lib/popup.globalEvents.d.ts +0 -0
- /package/{components → types/components}/popup/lib/worker.globalEvents.d.ts +0 -0
- /package/{components → types/components}/popup/popup/listItem.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup/widgetInput.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup.d.ts +0 -0
- /package/{components → types/components}/popup/worker.d.ts +0 -0
- /package/{components → types/components}/project/project.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/composables.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/compare.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectRegion.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectSearcher.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectorRegion.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/selectorRegion.vue.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/utils/consts.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupOpener/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/utils/el.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/utils/utils.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/content.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/tab.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/tabs.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/types.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menu.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuItem.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuTitle.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/store.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/tabsView.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/types.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/utils.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView.d.ts +0 -0
- /package/{core → types/core}/app.d.ts +0 -0
- /package/{core → types/core}/core/core.d.ts +0 -0
- /package/{core → types/core}/core/events/resize.d.ts +0 -0
- /package/{core → types/core}/core/events.d.ts +0 -0
- /package/{core → types/core}/core/options.d.ts +0 -0
- /package/{core → types/core}/core/preloaders.d.ts +0 -0
- /package/{core → types/core}/core/state.d.ts +0 -0
- /package/{core → types/core}/directives/data.d.ts +0 -0
- /package/{core → types/core}/directives/focus.d.ts +0 -0
- /package/{core → types/core}/directives/preloader.d.ts +0 -0
- /package/{core → types/core}/directives/scrollIntoView.d.ts +0 -0
- /package/{core → types/core}/directives/scrollShadow.d.ts +0 -0
- /package/{core → types/core}/directives/sticky.d.ts +0 -0
- /package/{core → types/core}/directives/swimUp.d.ts +0 -0
- /package/{core → types/core}/directives/tooltip.d.ts +0 -0
- /package/{core → types/core}/plugins/core.d.ts +0 -0
- /package/{core → types/core}/plugins/i18n.d.ts +0 -0
- /package/{core → types/core}/plugins/piniaTPA.d.ts +0 -0
- /package/{core → types/core}/utils/check.d.ts +0 -0
- /package/{core → types/core}/utils/clipboard.d.ts +0 -0
- /package/{core → types/core}/utils/date.d.ts +0 -0
- /package/{core → types/core}/utils/device.d.ts +0 -0
- /package/{core → types/core}/utils/dom.d.ts +0 -0
- /package/{core → types/core}/utils/image.d.ts +0 -0
- /package/{core → types/core}/utils/keyboard.d.ts +0 -0
- /package/{core → types/core}/utils/lodash.d.ts +0 -0
- /package/{core → types/core}/utils/number.d.ts +0 -0
- /package/{core → types/core}/utils/price.d.ts +0 -0
- /package/{core → types/core}/utils/route.d.ts +0 -0
- /package/{core → types/core}/utils/scroll.d.ts +0 -0
- /package/{core → types/core}/utils/searchers.d.ts +0 -0
- /package/{core → types/core}/utils/store/localStorage.d.ts +0 -0
- /package/{core → types/core}/utils/store/plugin.d.ts +0 -0
- /package/{core → types/core}/utils/store/store.d.ts +0 -0
- /package/{core → types/core}/utils/store.d.ts +0 -0
- /package/{core → types/core}/utils/system.d.ts +0 -0
- /package/{core → types/core}/utils/url.d.ts +0 -0
- /package/{dialog → types/dialog}/dialog.d.ts +0 -0
- /package/{extra → types/extra}/extra.d.ts +0 -0
- /package/{forms/helpers.d.ts → types/for-delete/core.d.ts} +0 -0
- /package/{forms → types/forms}/forms.d.ts +0 -0
- /package/{formsExt → types/formsExt}/formsExt.d.ts +0 -0
- /package/{layout → types/layout}/layout.d.ts +0 -0
- /package/{popup → types/popup}/popup.d.ts +0 -0
- /package/{popup → types/popup}/worker.d.ts +0 -0
- /package/{project → types/project}/project.d.ts +0 -0
- /package/{tabs → types/tabs}/tabs.d.ts +0 -0
- /package/{tabsView → types/tabsView}/tabsView.d.ts +0 -0
- /package/{utils → types/utils}/check.d.ts +0 -0
- /package/{utils → types/utils}/clipboard.d.ts +0 -0
- /package/{utils → types/utils}/date.d.ts +0 -0
- /package/{utils → types/utils}/device.d.ts +0 -0
- /package/{utils → types/utils}/dom.d.ts +0 -0
- /package/{utils → types/utils}/image.d.ts +0 -0
- /package/{utils → types/utils}/keyboard.d.ts +0 -0
- /package/{utils → types/utils}/lodash.d.ts +0 -0
- /package/{utils → types/utils}/number.d.ts +0 -0
- /package/{utils → types/utils}/price.d.ts +0 -0
- /package/{utils → types/utils}/route.d.ts +0 -0
- /package/{utils → types/utils}/scroll.d.ts +0 -0
- /package/{utils → types/utils}/searchers.d.ts +0 -0
- /package/{utils → types/utils}/store.d.ts +0 -0
- /package/{utils → types/utils}/string.d.ts +0 -0
- /package/{utils → types/utils}/system.d.ts +0 -0
- /package/{utils → types/utils}/url.d.ts +0 -0
package/formsExt/formsExt.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Core as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { w as
|
|
4
|
-
import { TopPopup as
|
|
5
|
-
import { invertKeyboardLayout as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
const
|
|
1
|
+
import { Core as x } from "../core/app.js";
|
|
2
|
+
import { defineComponent as L, ref as B, computed as P, createElementBlock as y, openBlock as p, normalizeClass as I, createCommentVNode as A, createElementVNode as _, toDisplayString as $, createVNode as O, withKeys as G, withModifiers as N, createBlock as w, createSlots as U, withCtx as V, createTextVNode as S, watch as E, toRef as D, mergeProps as R, mergeModels as J, useModel as Y, Fragment as z, renderList as F, withDirectives as q, vModelRadio as te, resolveDirective as oe, unref as v, renderSlot as W, resolveDynamicComponent as le } from "vue";
|
|
3
|
+
import { w as se, _ as X, f as ae, d as re, u as ne, C as Q, x as ie, g as ue } from "../.chunks/forms-t2AEUjqg.es.js";
|
|
4
|
+
import { TopPopup as de, TopPopupListItem as H, TopPopupWidgetInput as pe } from "../popup/popup.js";
|
|
5
|
+
import { invertKeyboardLayout as ce } from "../utils/keyboard.js";
|
|
6
|
+
import { _ as fe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js";
|
|
7
|
+
const ee = ["../assets/formsExt.css"].map((l) => import.meta.resolve(l));
|
|
8
|
+
x.insertCSSLinkToPage(ee, !0);
|
|
9
|
+
const me = { class: "top-editArea_footer" }, ve = /* @__PURE__ */ L({
|
|
10
10
|
__name: "editArea",
|
|
11
11
|
props: {
|
|
12
12
|
defaultValue: { default: "" },
|
|
@@ -31,92 +31,94 @@ const ue = { class: "top-editArea_footer" }, de = /* @__PURE__ */ B({
|
|
|
31
31
|
maxLength: {}
|
|
32
32
|
},
|
|
33
33
|
emits: ["submit", "close", "clickOnTitle"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
if (
|
|
39
|
-
|
|
34
|
+
setup(l, { emit: t }) {
|
|
35
|
+
const s = l, o = t, d = B(s.defaultValue), a = B(s.isFocused), r = P(() => d.value !== s.defaultValue), c = (u) => {
|
|
36
|
+
o("submit", u), d.value = s.defaultValue;
|
|
37
|
+
}, f = () => {
|
|
38
|
+
if (s.forceShowCloseBtn && !r.value) {
|
|
39
|
+
o("close");
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
d.value = s.defaultValue;
|
|
43
43
|
}, k = () => {
|
|
44
|
-
|
|
44
|
+
s.attachToKeyboard && o("clickOnTitle");
|
|
45
45
|
};
|
|
46
|
-
return (
|
|
47
|
-
class:
|
|
46
|
+
return (u, b) => (p(), y("div", {
|
|
47
|
+
class: I({
|
|
48
48
|
"top-editArea": !0,
|
|
49
|
-
"top-editArea-attachedToKeyboard":
|
|
49
|
+
"top-editArea-attachedToKeyboard": u.attachToKeyboard
|
|
50
50
|
})
|
|
51
51
|
}, [
|
|
52
|
-
|
|
52
|
+
u.title ? (p(), y("div", {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "top-editArea_title",
|
|
55
|
-
onClick: b[0] || (b[0] = (
|
|
56
|
-
},
|
|
55
|
+
onClick: b[0] || (b[0] = (i) => k())
|
|
56
|
+
}, $(u.title), 1)) : A("", !0),
|
|
57
57
|
_("div", {
|
|
58
|
-
class:
|
|
58
|
+
class: I({
|
|
59
59
|
"top-editArea_form": !0,
|
|
60
|
-
"top-
|
|
61
|
-
"top-
|
|
60
|
+
"top-forms-focusable": !0,
|
|
61
|
+
"top-as-input": !0,
|
|
62
|
+
"top-error": u.isError,
|
|
63
|
+
"top-focus": a.value
|
|
62
64
|
})
|
|
63
65
|
}, [
|
|
64
|
-
|
|
65
|
-
modelValue:
|
|
66
|
-
"onUpdate:modelValue": b[1] || (b[1] = (
|
|
67
|
-
name:
|
|
68
|
-
placeholder:
|
|
69
|
-
rows:
|
|
70
|
-
minHeight:
|
|
71
|
-
expandable:
|
|
72
|
-
disabled:
|
|
73
|
-
readonly:
|
|
74
|
-
isError:
|
|
75
|
-
hint:
|
|
66
|
+
O(se, {
|
|
67
|
+
modelValue: d.value,
|
|
68
|
+
"onUpdate:modelValue": b[1] || (b[1] = (i) => d.value = i),
|
|
69
|
+
name: u.name,
|
|
70
|
+
placeholder: u.placeholder,
|
|
71
|
+
rows: u.rows,
|
|
72
|
+
minHeight: u.minHeight,
|
|
73
|
+
expandable: u.expandable,
|
|
74
|
+
disabled: u.disabled,
|
|
75
|
+
readonly: u.readonly,
|
|
76
|
+
isError: u.isError,
|
|
77
|
+
hint: u.hint,
|
|
76
78
|
class: "top-editArea_element",
|
|
77
|
-
onFocus: b[2] || (b[2] = () =>
|
|
78
|
-
onBlur: b[3] || (b[3] = () =>
|
|
79
|
+
onFocus: b[2] || (b[2] = () => a.value = !0),
|
|
80
|
+
onBlur: b[3] || (b[3] = () => a.value = !1),
|
|
79
81
|
onKeyup: [
|
|
80
|
-
|
|
81
|
-
b[4] || (b[4] =
|
|
82
|
+
G(f, ["esc"]),
|
|
83
|
+
b[4] || (b[4] = G(N((i) => c(d.value), ["ctrl"]), ["enter"]))
|
|
82
84
|
]
|
|
83
85
|
}, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
|
|
84
|
-
_("div",
|
|
85
|
-
|
|
86
|
+
_("div", me, [
|
|
87
|
+
r.value || u.forceShowCloseBtn ? (p(), w(X, {
|
|
86
88
|
key: 0,
|
|
87
|
-
icon:
|
|
89
|
+
icon: u.$core.state.isMobile ? "" : "",
|
|
88
90
|
class: "top-editArea_button",
|
|
89
91
|
color: "theme",
|
|
90
92
|
styling: "soft",
|
|
91
|
-
onClick:
|
|
92
|
-
},
|
|
93
|
-
|
|
93
|
+
onClick: f
|
|
94
|
+
}, U({ _: 2 }, [
|
|
95
|
+
u.$core.state.isMobile ? void 0 : {
|
|
94
96
|
name: "default",
|
|
95
|
-
fn:
|
|
96
|
-
|
|
97
|
+
fn: V(() => [
|
|
98
|
+
S($(u.cancelText), 1)
|
|
97
99
|
]),
|
|
98
100
|
key: "0"
|
|
99
101
|
}
|
|
100
|
-
]), 1032, ["icon"])) :
|
|
101
|
-
|
|
102
|
+
]), 1032, ["icon"])) : A("", !0),
|
|
103
|
+
r.value ? (p(), w(X, {
|
|
102
104
|
key: 1,
|
|
103
105
|
class: "top-editArea_button",
|
|
104
|
-
icon:
|
|
105
|
-
onClick: b[5] || (b[5] = (
|
|
106
|
-
},
|
|
107
|
-
|
|
106
|
+
icon: u.$core.state.isMobile ? "" : "",
|
|
107
|
+
onClick: b[5] || (b[5] = (i) => c(d.value))
|
|
108
|
+
}, U({ _: 2 }, [
|
|
109
|
+
u.$core.state.isMobile ? void 0 : {
|
|
108
110
|
name: "default",
|
|
109
|
-
fn:
|
|
110
|
-
|
|
111
|
+
fn: V(() => [
|
|
112
|
+
S($(u.submitText), 1)
|
|
111
113
|
]),
|
|
112
114
|
key: "0"
|
|
113
115
|
}
|
|
114
|
-
]), 1032, ["icon"])) :
|
|
116
|
+
]), 1032, ["icon"])) : A("", !0)
|
|
115
117
|
])
|
|
116
118
|
], 2)
|
|
117
119
|
], 2));
|
|
118
120
|
}
|
|
119
|
-
}),
|
|
121
|
+
}), ye = { class: "top-editInput" }, he = /* @__PURE__ */ L({
|
|
120
122
|
__name: "editInput",
|
|
121
123
|
props: {
|
|
122
124
|
modelValue: {},
|
|
@@ -124,34 +126,34 @@ const ue = { class: "top-editArea_footer" }, de = /* @__PURE__ */ B({
|
|
|
124
126
|
button: {}
|
|
125
127
|
},
|
|
126
128
|
emits: ["update:modelValue"],
|
|
127
|
-
setup(
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
setup(l, { emit: t }) {
|
|
130
|
+
const s = l, o = B(s.modelValue);
|
|
131
|
+
E(D(s.modelValue), () => {
|
|
132
|
+
o.value = s.modelValue;
|
|
131
133
|
});
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
+
const d = t, a = () => {
|
|
135
|
+
d("update:modelValue", o.value);
|
|
134
136
|
};
|
|
135
|
-
return (
|
|
136
|
-
|
|
137
|
-
onKeydownCapture: c[0] || (c[0] =
|
|
138
|
-
onKeydown:
|
|
139
|
-
modelValue:
|
|
140
|
-
"onUpdate:modelValue": c[1] || (c[1] = (
|
|
137
|
+
return (r, c) => (p(), y("div", ye, [
|
|
138
|
+
O(ae, R(r.input, {
|
|
139
|
+
onKeydownCapture: c[0] || (c[0] = G(N((f) => o.value = r.modelValue, ["stop"]), ["esc"])),
|
|
140
|
+
onKeydown: G(N(a, ["stop"]), ["enter"]),
|
|
141
|
+
modelValue: o.value,
|
|
142
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => o.value = f)
|
|
141
143
|
}), null, 16, ["onKeydown", "modelValue"]),
|
|
142
|
-
|
|
144
|
+
o.value !== r.modelValue ? (p(), w(X, R({
|
|
143
145
|
key: 0,
|
|
144
146
|
icon: "",
|
|
145
147
|
styling: "soft"
|
|
146
|
-
},
|
|
148
|
+
}, r.button, { onClick: a }), null, 16)) : A("", !0)
|
|
147
149
|
]));
|
|
148
150
|
}
|
|
149
|
-
}),
|
|
151
|
+
}), be = ["data-top-icon", "onClick"], ge = {
|
|
150
152
|
key: 0,
|
|
151
153
|
class: "top-radioGroup_circle"
|
|
152
|
-
},
|
|
154
|
+
}, Te = ["value", "disabled"], ke = /* @__PURE__ */ L({
|
|
153
155
|
__name: "radioGroup",
|
|
154
|
-
props: /* @__PURE__ */
|
|
156
|
+
props: /* @__PURE__ */ J({
|
|
155
157
|
modelValue: {},
|
|
156
158
|
radiosProps: {},
|
|
157
159
|
showIndicator: { type: Boolean },
|
|
@@ -164,53 +166,53 @@ const ue = { class: "top-editArea_footer" }, de = /* @__PURE__ */ B({
|
|
|
164
166
|
modelModifiers: {}
|
|
165
167
|
}),
|
|
166
168
|
emits: ["update:modelValue"],
|
|
167
|
-
setup(
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
var
|
|
171
|
-
(
|
|
169
|
+
setup(l) {
|
|
170
|
+
const t = Y(l, "modelValue"), s = l, o = B(null);
|
|
171
|
+
E(t, () => {
|
|
172
|
+
var a, r, c, f, k;
|
|
173
|
+
(a = s.radiosProps) != null && a.some((u) => u.value === t.value) || (t.value = ((c = (r = s.radiosProps) == null ? void 0 : r[0]) == null ? void 0 : c.value) ?? ""), (k = (f = o.value) == null ? void 0 : f.querySelector(".radioGroup_item-selected")) == null || k.scrollIntoView();
|
|
172
174
|
}, { immediate: !0 });
|
|
173
|
-
const
|
|
174
|
-
return (
|
|
175
|
+
const d = "radioGroup-" + Math.random();
|
|
176
|
+
return (a, r) => (p(), y("div", {
|
|
175
177
|
ref_key: "elRef",
|
|
176
|
-
ref:
|
|
177
|
-
class:
|
|
178
|
+
ref: o,
|
|
179
|
+
class: I({
|
|
178
180
|
"top-radioGroup": !0,
|
|
179
181
|
"top-scrollBarXHidding": !0,
|
|
180
|
-
["top-size_" +
|
|
181
|
-
"top-error":
|
|
182
|
+
["top-size_" + a.size]: !!a.size,
|
|
183
|
+
"top-error": a.isError
|
|
182
184
|
})
|
|
183
185
|
}, [
|
|
184
|
-
(
|
|
185
|
-
class:
|
|
186
|
-
"top-radioGroup_item-selected": c.value ===
|
|
186
|
+
(p(!0), y(z, null, F(a.radiosProps, (c) => (p(), y("label", {
|
|
187
|
+
class: I({
|
|
188
|
+
"top-radioGroup_item-selected": c.value === t.value,
|
|
187
189
|
"top-radioGroup_item": !0,
|
|
188
190
|
"top-forms-focusable": !0,
|
|
189
191
|
"top-disabled": c.disabled
|
|
190
192
|
}),
|
|
191
193
|
"data-top-icon": c.icon,
|
|
192
|
-
onClick: (
|
|
194
|
+
onClick: (f) => t.value = c.value
|
|
193
195
|
}, [
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
"onUpdate:modelValue":
|
|
198
|
-
name:
|
|
196
|
+
S($(c.title) + " ", 1),
|
|
197
|
+
a.showIndicator ? (p(), y("span", ge)) : A("", !0),
|
|
198
|
+
q(_("input", {
|
|
199
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => t.value = f),
|
|
200
|
+
name: d,
|
|
199
201
|
type: "radio",
|
|
200
|
-
class:
|
|
202
|
+
class: I({
|
|
201
203
|
"top-unvisible": !0
|
|
202
204
|
}),
|
|
203
205
|
value: c.value,
|
|
204
206
|
disabled: c.disabled
|
|
205
|
-
}, null, 8,
|
|
206
|
-
[
|
|
207
|
+
}, null, 8, Te), [
|
|
208
|
+
[te, t.value]
|
|
207
209
|
])
|
|
208
|
-
], 10,
|
|
210
|
+
], 10, be))), 256))
|
|
209
211
|
], 2));
|
|
210
212
|
}
|
|
211
|
-
}),
|
|
213
|
+
}), Ae = ["data-top-icon"], Ce = ["value", "checked", "disabled", "onChange"], $e = /* @__PURE__ */ L({
|
|
212
214
|
__name: "checkboxGroup",
|
|
213
|
-
props: /* @__PURE__ */
|
|
215
|
+
props: /* @__PURE__ */ J({
|
|
214
216
|
modelValue: {},
|
|
215
217
|
items: {},
|
|
216
218
|
size: { default: "s" },
|
|
@@ -223,377 +225,464 @@ const ue = { class: "top-editArea_footer" }, de = /* @__PURE__ */ B({
|
|
|
223
225
|
modelModifiers: {}
|
|
224
226
|
}),
|
|
225
227
|
emits: ["update:modelValue"],
|
|
226
|
-
setup(
|
|
227
|
-
const
|
|
228
|
-
const
|
|
229
|
-
|
|
228
|
+
setup(l) {
|
|
229
|
+
const t = Y(l, "modelValue"), s = (o) => {
|
|
230
|
+
const d = [...t.value], a = d.indexOf(o);
|
|
231
|
+
a === -1 ? d.push(o) : d.splice(a, 1), t.value = d;
|
|
230
232
|
};
|
|
231
|
-
return (
|
|
232
|
-
class:
|
|
233
|
+
return (o, d) => (p(), y("div", {
|
|
234
|
+
class: I({
|
|
233
235
|
"top-checkboxGroup": !0,
|
|
234
|
-
["top-checkboxGroup-" +
|
|
236
|
+
["top-checkboxGroup-" + o.styling]: !0,
|
|
235
237
|
"top-scrollBarXHidding": !0,
|
|
236
|
-
["top-size_" +
|
|
237
|
-
"top-error":
|
|
238
|
+
["top-size_" + o.size]: !!o.size,
|
|
239
|
+
"top-error": o.isError
|
|
238
240
|
})
|
|
239
241
|
}, [
|
|
240
|
-
(
|
|
241
|
-
key:
|
|
242
|
-
class:
|
|
242
|
+
(p(!0), y(z, null, F(o.items, (a) => (p(), y("label", {
|
|
243
|
+
key: a.id,
|
|
244
|
+
class: I({
|
|
243
245
|
"top-checkboxGroup_item": !0,
|
|
244
|
-
"top-checkboxGroup_item-selected":
|
|
246
|
+
"top-checkboxGroup_item-selected": t.value.includes(a.id),
|
|
245
247
|
"top-forms-focusable": !0,
|
|
246
|
-
"top-disabled":
|
|
248
|
+
"top-disabled": a.disabled
|
|
247
249
|
}),
|
|
248
|
-
"data-top-icon":
|
|
250
|
+
"data-top-icon": a.icon
|
|
249
251
|
}, [
|
|
250
252
|
_("input", {
|
|
251
253
|
type: "checkbox",
|
|
252
254
|
class: "top-unvisible",
|
|
253
|
-
value:
|
|
254
|
-
checked:
|
|
255
|
-
disabled:
|
|
256
|
-
onChange: (
|
|
257
|
-
}, null, 40,
|
|
258
|
-
|
|
259
|
-
], 10,
|
|
255
|
+
value: a.id,
|
|
256
|
+
checked: t.value.includes(a.id),
|
|
257
|
+
disabled: a.disabled,
|
|
258
|
+
onChange: (r) => s(a.id)
|
|
259
|
+
}, null, 40, Ce),
|
|
260
|
+
S(" " + $(a.title), 1)
|
|
261
|
+
], 10, Ae))), 128))
|
|
260
262
|
], 2));
|
|
261
263
|
}
|
|
262
|
-
}),
|
|
264
|
+
}), Ve = { class: "top-selector2_itemMulti top-ellipsis" }, we = /* @__PURE__ */ L({
|
|
263
265
|
__name: "itemMulti",
|
|
264
266
|
props: {
|
|
265
267
|
id: {},
|
|
266
268
|
name: {}
|
|
267
269
|
},
|
|
268
270
|
emits: ["delete"],
|
|
269
|
-
setup(
|
|
270
|
-
return (
|
|
271
|
-
|
|
271
|
+
setup(l) {
|
|
272
|
+
return (t, s) => (p(), y("div", Ve, [
|
|
273
|
+
S($(t.name) + " ", 1),
|
|
272
274
|
_("span", {
|
|
273
275
|
class: "top-selector2_itemMultiDelete",
|
|
274
276
|
"data-top-icon": "",
|
|
275
|
-
onClick:
|
|
276
|
-
onMousedown:
|
|
277
|
+
onClick: s[0] || (s[0] = (o) => t.$emit("delete", t.id)),
|
|
278
|
+
onMousedown: s[1] || (s[1] = N(() => {
|
|
277
279
|
}, ["stop"]))
|
|
278
280
|
}, null, 32)
|
|
279
281
|
]));
|
|
280
282
|
}
|
|
281
|
-
}),
|
|
282
|
-
const
|
|
283
|
-
let
|
|
284
|
-
|
|
283
|
+
}), Ie = (l, t, s) => {
|
|
284
|
+
const o = B([]), d = B(!1);
|
|
285
|
+
let a = "", r;
|
|
286
|
+
l && !l.params.limit && (l.params.limit = 100);
|
|
285
287
|
const c = async () => {
|
|
286
|
-
if (!
|
|
287
|
-
let
|
|
288
|
-
if (
|
|
289
|
-
return
|
|
290
|
-
if (
|
|
291
|
-
if (!Array.isArray(
|
|
288
|
+
if (!l) return;
|
|
289
|
+
let i, C;
|
|
290
|
+
if (s && (l.cache ??= /* @__PURE__ */ new Map(), C = JSON.stringify(l.params), i = l.cache.get(C), i))
|
|
291
|
+
return i;
|
|
292
|
+
if (d.value = !0, i = await l.call(), d.value = !1, i.errors) return;
|
|
293
|
+
if (!Array.isArray(i.result)) {
|
|
292
294
|
console.warn("В result ожидался массив");
|
|
293
295
|
return;
|
|
294
296
|
}
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
297
|
-
console.warn(`В result[${
|
|
297
|
+
const M = i.result.findIndex((K) => K.id === void 0 || K.name === void 0);
|
|
298
|
+
if (M !== -1) {
|
|
299
|
+
console.warn(`В result[${M}] нет id или name`);
|
|
298
300
|
return;
|
|
299
301
|
}
|
|
300
|
-
return
|
|
301
|
-
},
|
|
302
|
-
if (!
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
|
|
302
|
+
return s && l.cache.set(C, i), i;
|
|
303
|
+
}, f = async () => {
|
|
304
|
+
if (!l) return;
|
|
305
|
+
l.params.offset = 0, l.params.search = a;
|
|
306
|
+
const i = await c();
|
|
307
|
+
i && (r = i.nextOffset, o.value = i.result);
|
|
306
308
|
}, k = async () => {
|
|
307
|
-
if (!
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
},
|
|
309
|
+
if (!l || !r || d.value) return;
|
|
310
|
+
l.params.offset = r, l.params.search = a;
|
|
311
|
+
const i = await c();
|
|
312
|
+
i && (r = i.nextOffset, o.value = o.value.concat(i.result));
|
|
313
|
+
}, u = re(() => f(), 200);
|
|
312
314
|
return {
|
|
313
|
-
apiRequest:
|
|
314
|
-
items:
|
|
315
|
-
isLoading:
|
|
315
|
+
apiRequest: l,
|
|
316
|
+
items: o,
|
|
317
|
+
isLoading: d,
|
|
316
318
|
loadAppend: k,
|
|
317
|
-
setSearchTextAndLoad: (
|
|
318
|
-
|
|
319
|
+
setSearchTextAndLoad: (i, C = !0) => {
|
|
320
|
+
l && (i.length < t || i === a && o.value.length || (a = i, C ? u() : f()));
|
|
319
321
|
}
|
|
320
322
|
};
|
|
321
|
-
},
|
|
322
|
-
const
|
|
323
|
-
id:
|
|
324
|
-
name:
|
|
325
|
-
},
|
|
326
|
-
|
|
327
|
-
},
|
|
328
|
-
var
|
|
329
|
-
const
|
|
330
|
-
return !
|
|
331
|
-
}),
|
|
332
|
-
const
|
|
333
|
-
let
|
|
334
|
-
return
|
|
335
|
-
const
|
|
336
|
-
(
|
|
337
|
-
}),
|
|
323
|
+
}, Be = 0, Z = (l, t, s = !0) => s && t.id === null ? Array.isArray(l) ? l.some((o) => o.id === t.id && o.name === t.name) : t.name === l.name : Array.isArray(l) ? l.some((o) => o.id === t.id) : t.id === l.id, _e = (l, t, s, o, d, a, r, c) => {
|
|
324
|
+
const f = B(""), k = {
|
|
325
|
+
id: Be,
|
|
326
|
+
name: ne().Common.All
|
|
327
|
+
}, u = () => {
|
|
328
|
+
f.value = "", c.items.value = [];
|
|
329
|
+
}, b = () => !(!c.apiRequest || a.value !== "inline" || f.value.length >= r), i = P(() => {
|
|
330
|
+
var e;
|
|
331
|
+
const h = [];
|
|
332
|
+
return !s && o.value && h.push(k), (e = t.value) == null || e.forEach((n) => h.push({ ...n })), h;
|
|
333
|
+
}), C = P(() => {
|
|
334
|
+
const h = f.value.toLowerCase(), e = ce(h);
|
|
335
|
+
let n = [];
|
|
336
|
+
return i.value.forEach((g) => {
|
|
337
|
+
const m = g.name.toLowerCase();
|
|
338
|
+
(g.id === Number(h) || m.includes(h) || m.includes(e)) && (m === h || m === e ? n.unshift(g) : n.push(g));
|
|
339
|
+
}), n.push(...c.items.value), d.value && f.value && (!n.length || n[0].name.toLowerCase() !== h) && n.push({
|
|
338
340
|
id: null,
|
|
339
|
-
name:
|
|
340
|
-
}),
|
|
341
|
+
name: f.value
|
|
342
|
+
}), s && (n = n.filter((g) => !Z(l.value, g))), n;
|
|
341
343
|
});
|
|
342
344
|
return {
|
|
343
|
-
searchText:
|
|
344
|
-
resetSearch:
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
searchText: f,
|
|
346
|
+
resetSearch: u,
|
|
347
|
+
genIsShort: b,
|
|
348
|
+
items: i,
|
|
349
|
+
itemsForShow: C,
|
|
350
|
+
selectItem: (h) => {
|
|
351
|
+
s && Array.isArray(l.value) ? Z(l.value, h) || (l.value = [...l.value, h]) : l.value = h;
|
|
352
|
+
},
|
|
347
353
|
selectNextItem: () => {
|
|
348
|
-
if (!Array.isArray(
|
|
349
|
-
const
|
|
350
|
-
|
|
354
|
+
if (!Array.isArray(l.value)) {
|
|
355
|
+
const e = (C.value.findIndex((n) => n.id === l.value.id) + 1) % C.value.length;
|
|
356
|
+
l.value = { ...C.value[e] };
|
|
351
357
|
}
|
|
352
358
|
},
|
|
353
|
-
deleteItemById: async (
|
|
354
|
-
Array.isArray(
|
|
359
|
+
deleteItemById: async (h) => {
|
|
360
|
+
Array.isArray(l.value) && (l.value = l.value.filter((e) => e.id !== h));
|
|
355
361
|
}
|
|
356
362
|
};
|
|
357
|
-
},
|
|
363
|
+
}, Se = {
|
|
358
364
|
key: 0,
|
|
359
365
|
class: "top-selector2_activeItems"
|
|
360
|
-
},
|
|
366
|
+
}, Le = {
|
|
361
367
|
key: 1,
|
|
362
368
|
class: "top-selector2_activeName top-ellipsis"
|
|
363
|
-
},
|
|
369
|
+
}, Ee = {
|
|
370
|
+
key: 2,
|
|
371
|
+
class: "top-selector2_placeholder top-ellipsis"
|
|
372
|
+
}, Pe = /* @__PURE__ */ L({
|
|
364
373
|
__name: "selector2",
|
|
365
|
-
props: /* @__PURE__ */
|
|
374
|
+
props: /* @__PURE__ */ J({
|
|
366
375
|
modelValue: {},
|
|
367
376
|
items: { default: () => [] },
|
|
368
|
-
multiselect: { type: Boolean },
|
|
369
377
|
title: {},
|
|
370
378
|
disabled: { type: Boolean },
|
|
379
|
+
modificator: {},
|
|
371
380
|
size: { default: "s" },
|
|
372
381
|
isError: { type: Boolean },
|
|
382
|
+
searchType: { default: "popup" },
|
|
383
|
+
placeholder: {},
|
|
373
384
|
apiRequest: {},
|
|
374
385
|
minLength: { default: 0 },
|
|
375
386
|
useCache: { type: Boolean },
|
|
376
387
|
appendSearchToResult: { type: Boolean },
|
|
388
|
+
multiselect: { type: Boolean },
|
|
377
389
|
appendAllValue: { type: Boolean },
|
|
378
390
|
addChanger: { type: Boolean },
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
selectedAsPlaceholder: { type: Boolean, default: !0 }
|
|
391
|
+
buttonProps: {},
|
|
392
|
+
selectedAsPlaceholder: { type: Boolean }
|
|
382
393
|
}, {
|
|
383
394
|
modelValue: { required: !0 },
|
|
384
395
|
modelModifiers: {}
|
|
385
396
|
}),
|
|
386
397
|
emits: ["update:modelValue"],
|
|
387
|
-
setup(
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
(
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
398
|
+
setup(l) {
|
|
399
|
+
const t = l, s = Y(l, "modelValue"), o = P(() => t.searchType === "inline" && t.multiselect || t.searchType === "inline" && Q.state.isMobile ? "popup" : t.searchType);
|
|
400
|
+
let d = 0;
|
|
401
|
+
o.value === "inline" && t.minLength && (d = t.minLength);
|
|
402
|
+
const a = Ie(t.apiRequest, d, t.useCache), r = _e(
|
|
403
|
+
s,
|
|
404
|
+
D(t, "items"),
|
|
405
|
+
t.multiselect,
|
|
406
|
+
D(t, "appendAllValue"),
|
|
407
|
+
D(t, "appendSearchToResult"),
|
|
408
|
+
o,
|
|
409
|
+
d,
|
|
410
|
+
a
|
|
411
|
+
), c = P(() => t.buttonProps ? "TopButton" : o.value === "inline" ? "TopInput" : "div"), f = B(null), k = () => {
|
|
412
|
+
var e;
|
|
413
|
+
return (e = f.value) == null ? void 0 : e.popup;
|
|
414
|
+
};
|
|
415
|
+
a.apiRequest && E(r.searchText, () => {
|
|
416
|
+
var e;
|
|
417
|
+
a.setSearchTextAndLoad(r.searchText.value), o.value === "inline" && r.genIsShort() && ((e = k()) == null || e.close());
|
|
418
|
+
}), E(s, () => {
|
|
419
|
+
o.value === "inline" && r.resetSearch();
|
|
420
|
+
});
|
|
421
|
+
const u = P(() => {
|
|
422
|
+
var e;
|
|
423
|
+
return Array.isArray(s.value) || t.multiselect || !t.selectedAsPlaceholder && o.value !== "inline" ? t.placeholder : ((e = s.value) == null ? void 0 : e.name) || t.placeholder;
|
|
424
|
+
}), b = (e) => {
|
|
425
|
+
var m, T;
|
|
426
|
+
let n = !1;
|
|
427
|
+
switch (e.key) {
|
|
428
|
+
case "Delete":
|
|
429
|
+
case "Backspace":
|
|
430
|
+
Array.isArray(s.value) && (e.preventDefault(), e.stopPropagation(), s.value.pop());
|
|
431
|
+
break;
|
|
432
|
+
case "ArrowUp":
|
|
433
|
+
case "ArrowRight":
|
|
434
|
+
case "ArrowDown":
|
|
435
|
+
case "ArrowLeft":
|
|
436
|
+
case "Enter":
|
|
437
|
+
case " ":
|
|
438
|
+
n = !0;
|
|
439
|
+
break;
|
|
440
|
+
case "Escape":
|
|
441
|
+
o.value === "inline" && r.resetSearch();
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
const g = e.key.length === 1 && !e.ctrlKey && !e.metaKey;
|
|
445
|
+
(o.value === "popup" || o.value === "inline") && g && (n = !0), (m = k()) != null && m.elPopup && (n = !1), n && (o.value === "popup" && (e.preventDefault(), e.stopPropagation(), g && (r.searchText.value || (r.searchText.value = e.key))), (T = e.currentTarget) == null || T.click());
|
|
446
|
+
};
|
|
447
|
+
let i = !1;
|
|
448
|
+
const C = (e) => {
|
|
449
|
+
var n;
|
|
450
|
+
i || o.value === "inline" && ((n = e.currentTarget) == null || n.click());
|
|
451
|
+
}, M = (e) => {
|
|
452
|
+
var n, g;
|
|
453
|
+
e.preventDefault(), i = !0, (g = (n = e.currentTarget) == null ? void 0 : n.parentElement) == null || g.focus(), i = !1, r.selectNextItem();
|
|
454
|
+
}, K = () => {
|
|
455
|
+
var e;
|
|
456
|
+
if (i = !0, a.apiRequest) {
|
|
457
|
+
if (r.genIsShort()) {
|
|
458
|
+
(e = k()) == null || e.close();
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
a.setSearchTextAndLoad(r.searchText.value, !1);
|
|
462
|
+
}
|
|
463
|
+
}, j = () => {
|
|
464
|
+
setTimeout(() => {
|
|
465
|
+
i = !1;
|
|
466
|
+
}, 100), o.value === "popup" && r.searchText.value && r.resetSearch();
|
|
467
|
+
}, h = (e) => {
|
|
468
|
+
const n = e.target;
|
|
469
|
+
n.scrollTop / (n.scrollHeight - n.offsetHeight) > 0.8 && a.loadAppend();
|
|
400
470
|
};
|
|
401
|
-
return window.__STORYBOOK_PREVIEW__ && (
|
|
402
|
-
() =>
|
|
471
|
+
return window.__STORYBOOK_PREVIEW__ && (E(
|
|
472
|
+
() => t.multiselect,
|
|
403
473
|
() => {
|
|
404
|
-
|
|
474
|
+
t.multiselect ? Array.isArray(s.value) || (s.value = [
|
|
475
|
+
{
|
|
476
|
+
id: 1,
|
|
477
|
+
name: "Выбери меня"
|
|
478
|
+
}
|
|
479
|
+
]) : Array.isArray(s.value) && (s.value = {
|
|
480
|
+
id: null,
|
|
481
|
+
name: ""
|
|
482
|
+
});
|
|
405
483
|
},
|
|
406
484
|
{ immediate: !0 }
|
|
407
|
-
),
|
|
408
|
-
() =>
|
|
485
|
+
), E(
|
|
486
|
+
() => t.searchType,
|
|
409
487
|
() => {
|
|
410
488
|
setTimeout(() => {
|
|
411
489
|
location.reload();
|
|
412
|
-
},
|
|
490
|
+
}, 500);
|
|
413
491
|
}
|
|
414
|
-
)), (
|
|
415
|
-
const
|
|
416
|
-
return
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
492
|
+
)), (e, n) => {
|
|
493
|
+
const g = oe("top-focus");
|
|
494
|
+
return p(), w(v(de), {
|
|
495
|
+
ref_key: "popupRef",
|
|
496
|
+
ref: f,
|
|
497
|
+
onOpen: n[3] || (n[3] = (m) => K()),
|
|
498
|
+
onClose: n[4] || (n[4] = (m) => j()),
|
|
499
|
+
onScrollContentList: n[5] || (n[5] = (m) => e.apiRequest ? h(m) : void 0),
|
|
500
|
+
notch: o.value !== "inline",
|
|
421
501
|
transitionDuration: 0
|
|
422
|
-
},
|
|
423
|
-
opener:
|
|
424
|
-
|
|
502
|
+
}, U({
|
|
503
|
+
opener: V(() => [
|
|
504
|
+
q((p(), w(le(c.value), R(e.buttonProps, {
|
|
425
505
|
ref: "subcomponentSelector",
|
|
426
|
-
class:
|
|
506
|
+
class: {
|
|
427
507
|
"top-selector2": !0,
|
|
428
|
-
"top-selector2-multiselect":
|
|
429
|
-
["top-
|
|
430
|
-
"top-
|
|
431
|
-
"top-
|
|
432
|
-
"top-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
508
|
+
"top-selector2-multiselect": e.multiselect,
|
|
509
|
+
["top-selector2-" + e.modificator]: !!e.modificator,
|
|
510
|
+
"top-as-input": !e.buttonProps,
|
|
511
|
+
"top-as-selector": !0,
|
|
512
|
+
["top-size_" + e.size]: !0,
|
|
513
|
+
"top-disabled": e.disabled,
|
|
514
|
+
"top-forms-focusable": !e.disabled,
|
|
515
|
+
"top-error": e.isError
|
|
516
|
+
},
|
|
517
|
+
tabindex: "0",
|
|
518
|
+
onKeydown: b,
|
|
519
|
+
placeholder: u.value,
|
|
520
|
+
modelValue: v(r).searchText.value,
|
|
521
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => v(r).searchText.value = m),
|
|
522
|
+
onFocus: C,
|
|
523
|
+
onBlur: n[1] || (n[1] = (m) => {
|
|
524
|
+
var T;
|
|
525
|
+
return (T = k()) != null && T.isClosed ? v(r).resetSearch() : "";
|
|
526
|
+
})
|
|
527
|
+
}), {
|
|
528
|
+
default: V(() => [
|
|
529
|
+
e.multiselect ? (p(), y("div", Se, [
|
|
530
|
+
(p(!0), y(z, null, F(s.value, (m) => (p(), w(we, {
|
|
443
531
|
id: m.id,
|
|
444
532
|
name: m.name,
|
|
445
|
-
onDelete: v(
|
|
533
|
+
onDelete: v(r).deleteItemById
|
|
446
534
|
}, null, 8, ["id", "name", "onDelete"]))), 256))
|
|
447
|
-
])) :
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
535
|
+
])) : A("", !0),
|
|
536
|
+
o.value !== "inline" && !e.multiselect ? (p(), y("span", Le, $(Array.isArray(s.value) ? "" : s.value.name), 1)) : A("", !0),
|
|
537
|
+
e.multiselect && !s.value.length ? (p(), y("span", Ee, $(u.value), 1)) : A("", !0),
|
|
538
|
+
e.addChanger && !e.buttonProps && !e.multiselect && v(r).items.value.length > 1 && !e.disabled ? (p(), y("span", {
|
|
539
|
+
key: 3,
|
|
540
|
+
class: "top-changer top-changer-selector top-popup_widget",
|
|
452
541
|
"data-top-popup-disabled": "true",
|
|
453
|
-
onClick:
|
|
454
|
-
|
|
455
|
-
})) : T("", !0)
|
|
542
|
+
onClick: M
|
|
543
|
+
})) : A("", !0)
|
|
456
544
|
]),
|
|
457
545
|
_: 1
|
|
458
|
-
},
|
|
546
|
+
}, 16, ["class", "placeholder", "modelValue"])), [
|
|
459
547
|
[
|
|
460
|
-
|
|
461
|
-
|
|
548
|
+
g,
|
|
549
|
+
e.isError,
|
|
462
550
|
void 0,
|
|
463
551
|
{ onupdate: !0 }
|
|
464
552
|
]
|
|
465
553
|
])
|
|
466
554
|
]),
|
|
467
|
-
contentList:
|
|
555
|
+
contentList: V(() => {
|
|
468
556
|
var m;
|
|
469
557
|
return [
|
|
470
|
-
(
|
|
471
|
-
class:
|
|
472
|
-
"top-active": !Array.isArray(
|
|
558
|
+
(p(!0), y(z, null, F(v(r).itemsForShow.value, (T) => (p(), w(v(H), {
|
|
559
|
+
class: I({
|
|
560
|
+
"top-active": !Array.isArray(s.value) && !e.multiselect && s.value.id === T.id && s.value.name === T.name
|
|
473
561
|
}),
|
|
474
|
-
key:
|
|
475
|
-
closeByClick: !
|
|
476
|
-
onClick: (
|
|
562
|
+
key: T.id ?? void 0,
|
|
563
|
+
closeByClick: !e.multiselect || v(Q).state.isMobile,
|
|
564
|
+
onClick: (He) => v(r).selectItem(T)
|
|
477
565
|
}, {
|
|
478
|
-
default:
|
|
479
|
-
|
|
566
|
+
default: V(() => [
|
|
567
|
+
e.$slots.item ? W(e.$slots, "item", {
|
|
480
568
|
key: 0,
|
|
481
|
-
item:
|
|
482
|
-
}) : (
|
|
483
|
-
|
|
569
|
+
item: T
|
|
570
|
+
}) : (p(), y(z, { key: 1 }, [
|
|
571
|
+
S($(T.name), 1)
|
|
484
572
|
], 64))
|
|
485
573
|
]),
|
|
486
574
|
_: 2
|
|
487
575
|
}, 1032, ["class", "closeByClick", "onClick"]))), 128)),
|
|
488
|
-
!v(
|
|
576
|
+
!v(a).isLoading.value && !v(r).itemsForShow.value.length ? (p(), w(v(H), {
|
|
489
577
|
key: 0,
|
|
490
578
|
type: "regular"
|
|
491
579
|
}, {
|
|
492
|
-
default:
|
|
493
|
-
|
|
580
|
+
default: V(() => [
|
|
581
|
+
S($(e.$i18n.Common.No_results), 1)
|
|
494
582
|
]),
|
|
495
583
|
_: 1
|
|
496
|
-
})) :
|
|
497
|
-
v(
|
|
584
|
+
})) : A("", !0),
|
|
585
|
+
v(a).isLoading.value && (e.searchType !== "popup" || (m = e.apiRequest) != null && m.params.offset) ? (p(), w(v(H), {
|
|
498
586
|
key: 1,
|
|
499
587
|
type: "regular"
|
|
500
588
|
}, {
|
|
501
|
-
default:
|
|
502
|
-
|
|
589
|
+
default: V(() => [
|
|
590
|
+
O(v(ie), { type: "circles" })
|
|
503
591
|
]),
|
|
504
592
|
_: 1
|
|
505
|
-
})) :
|
|
593
|
+
})) : A("", !0)
|
|
506
594
|
];
|
|
507
595
|
}),
|
|
508
596
|
_: 2
|
|
509
597
|
}, [
|
|
510
|
-
|
|
598
|
+
o.value === "popup" ? {
|
|
511
599
|
name: "widget",
|
|
512
|
-
fn:
|
|
600
|
+
fn: V(() => {
|
|
513
601
|
var m;
|
|
514
602
|
return [
|
|
515
|
-
|
|
603
|
+
O(v(pe), {
|
|
516
604
|
title: "Поиск",
|
|
517
605
|
icon: "",
|
|
518
|
-
modelValue: v(
|
|
519
|
-
"onUpdate:modelValue":
|
|
520
|
-
isLoading: v(
|
|
521
|
-
placeholder:
|
|
606
|
+
modelValue: v(r).searchText.value,
|
|
607
|
+
"onUpdate:modelValue": n[2] || (n[2] = (T) => v(r).searchText.value = T),
|
|
608
|
+
isLoading: v(a).isLoading.value && !((m = e.apiRequest) != null && m.params.offset),
|
|
609
|
+
placeholder: u.value
|
|
522
610
|
}, null, 8, ["modelValue", "isLoading", "placeholder"])
|
|
523
611
|
];
|
|
524
612
|
}),
|
|
525
613
|
key: "0"
|
|
526
614
|
} : void 0
|
|
527
|
-
]),
|
|
615
|
+
]), 1032, ["notch"]);
|
|
528
616
|
};
|
|
529
617
|
}
|
|
530
|
-
}),
|
|
618
|
+
}), Me = ["data-top-icon"], Ke = { class: "top-info_text" }, ze = {
|
|
531
619
|
key: 0,
|
|
532
620
|
class: "top-info_value"
|
|
533
|
-
},
|
|
621
|
+
}, Oe = /* @__PURE__ */ L({
|
|
534
622
|
__name: "info",
|
|
535
623
|
props: {
|
|
536
624
|
icon: {},
|
|
537
625
|
styling: { default: "default" },
|
|
538
626
|
size: { default: "default" }
|
|
539
627
|
},
|
|
540
|
-
setup(
|
|
541
|
-
return (
|
|
542
|
-
class:
|
|
628
|
+
setup(l) {
|
|
629
|
+
return (t, s) => (p(), y("div", {
|
|
630
|
+
class: I({
|
|
543
631
|
"top-info": !0,
|
|
544
|
-
["top-size_" +
|
|
545
|
-
["top-info-styling_" +
|
|
632
|
+
["top-size_" + t.size]: !0,
|
|
633
|
+
["top-info-styling_" + t.styling]: !0
|
|
546
634
|
}),
|
|
547
|
-
"data-top-icon":
|
|
635
|
+
"data-top-icon": t.icon
|
|
548
636
|
}, [
|
|
549
|
-
_("div",
|
|
550
|
-
|
|
637
|
+
_("div", Ke, [
|
|
638
|
+
W(t.$slots, "default")
|
|
551
639
|
]),
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
])) :
|
|
555
|
-
], 10,
|
|
640
|
+
t.$slots.additional ? (p(), y("span", ze, [
|
|
641
|
+
W(t.$slots, "additional")
|
|
642
|
+
])) : A("", !0)
|
|
643
|
+
], 10, Me));
|
|
556
644
|
}
|
|
557
|
-
}),
|
|
645
|
+
}), De = {
|
|
558
646
|
key: 0,
|
|
559
647
|
class: "top-policy"
|
|
560
|
-
},
|
|
648
|
+
}, Ge = { class: "top-policy_title" }, Ne = ["innerHTML"], Fe = /* @__PURE__ */ L({
|
|
561
649
|
__name: "policy",
|
|
562
650
|
props: {
|
|
563
651
|
title: {},
|
|
564
|
-
|
|
652
|
+
description: {},
|
|
653
|
+
acceptText: {}
|
|
565
654
|
},
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
655
|
+
emits: ["accept"],
|
|
656
|
+
setup(l, { emit: t }) {
|
|
657
|
+
const s = t, o = B(!0), d = () => {
|
|
658
|
+
o.value = !1, s("accept");
|
|
570
659
|
};
|
|
571
|
-
return (a,
|
|
572
|
-
_("div",
|
|
660
|
+
return (a, r) => o.value ? (p(), y("div", De, [
|
|
661
|
+
_("div", Ge, $(a.title), 1),
|
|
573
662
|
_("div", {
|
|
574
663
|
class: "top-policy_description",
|
|
575
|
-
innerHTML: a.
|
|
576
|
-
}, null, 8,
|
|
577
|
-
|
|
664
|
+
innerHTML: a.description
|
|
665
|
+
}, null, 8, Ne),
|
|
666
|
+
O(v(ue), {
|
|
578
667
|
size: "m",
|
|
579
|
-
onClick:
|
|
668
|
+
onClick: d
|
|
580
669
|
}, {
|
|
581
|
-
default:
|
|
582
|
-
|
|
670
|
+
default: V(() => [
|
|
671
|
+
S($(a.acceptText), 1)
|
|
583
672
|
]),
|
|
584
673
|
_: 1
|
|
585
674
|
})
|
|
586
|
-
])) :
|
|
675
|
+
])) : A("", !0);
|
|
587
676
|
}
|
|
588
|
-
}),
|
|
677
|
+
}), je = ve, Qe = he, Ze = ke, qe = $e, xe = Pe, et = fe, tt = Oe, ot = Fe;
|
|
589
678
|
export {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
679
|
+
qe as TopCheckboxGroup,
|
|
680
|
+
je as TopEditArea,
|
|
681
|
+
Qe as TopEditInput,
|
|
682
|
+
tt as TopInfo,
|
|
683
|
+
et as TopMenu,
|
|
684
|
+
ot as TopPolicy,
|
|
685
|
+
Ze as TopRadioGroup,
|
|
686
|
+
xe as TopSelector2
|
|
598
687
|
};
|
|
599
688
|
//# sourceMappingURL=formsExt.js.map
|