@topvisor/ui 1.0.42-policy.0 → 1.1.0-addNativeDialog.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.chunks/core-6NjSIwIA.amd.js +2 -0
- package/.chunks/{core-SEtL6T0A.amd.js.map → core-6NjSIwIA.amd.js.map} +1 -1
- package/.chunks/{core-BCV4xehV.es.js → core-CKa0qCEH.es.js} +4 -4
- package/.chunks/{core-BCV4xehV.es.js.map → core-CKa0qCEH.es.js.map} +1 -1
- package/.chunks/datepicker-DsKl-YZR.amd.js +2 -0
- package/.chunks/{datepicker-Ba8QPoiv.amd.js.map → datepicker-DsKl-YZR.amd.js.map} +1 -1
- package/.chunks/{datepicker-DHxSFb-9.es.js → datepicker-U31BrqE_.es.js} +2 -2
- package/.chunks/{datepicker-DHxSFb-9.es.js.map → datepicker-U31BrqE_.es.js.map} +1 -1
- package/.chunks/dialog_selectorRegions-BCXCCaXi.amd.js +2 -0
- package/.chunks/{dialog_selectorRegions-CiWJsA9r.amd.js.map → dialog_selectorRegions-BCXCCaXi.amd.js.map} +1 -1
- package/.chunks/{dialog_selectorRegions-Cd7_dHoH.es.js → dialog_selectorRegions-C_RhsGzk.es.js} +4 -4
- package/.chunks/{dialog_selectorRegions-Cd7_dHoH.es.js.map → dialog_selectorRegions-C_RhsGzk.es.js.map} +1 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BhAl3bT-.es.js +700 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BhAl3bT-.es.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DVp-tQ6l.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DVp-tQ6l.amd.js.map +1 -0
- package/.chunks/field-Cvv0SRcJ.amd.js +2 -0
- package/.chunks/field-Cvv0SRcJ.amd.js.map +1 -0
- package/.chunks/field-CyyFzM-Y.es.js +16 -0
- package/.chunks/field-CyyFzM-Y.es.js.map +1 -0
- package/.chunks/forms-DRhpgERJ.amd.js +3 -0
- package/.chunks/{forms-L6BGV_om.amd.js.map → forms-DRhpgERJ.amd.js.map} +1 -1
- package/.chunks/{forms-DC7ffuv2.es.js → forms-t2AEUjqg.es.js} +16 -16
- package/.chunks/{forms-DC7ffuv2.es.js.map → forms-t2AEUjqg.es.js.map} +1 -1
- package/.chunks/lazy-Dr-Frbwe.amd.js +2 -0
- package/.chunks/lazy-Dr-Frbwe.amd.js.map +1 -0
- package/.chunks/lazy-Dy9IVVUy.es.js +19 -0
- package/.chunks/lazy-Dy9IVVUy.es.js.map +1 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CXp02bYr.es.js → listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js} +2 -2
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CXp02bYr.es.js.map → listItem.vue_vue_type_script_setup_true_lang-B6psuRkm.es.js.map} +1 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js +2 -0
- package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-M0ZTpQlF.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-C8PDRggQ.amd.js.map} +1 -1
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DNsbNhVH.es.js → menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js} +2 -2
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DNsbNhVH.es.js.map → menu.vue_vue_type_style_index_0_lang-6kqWYFuX.es.js.map} +1 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js +2 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DepdFfhE.amd.js.map → menu.vue_vue_type_style_index_0_lang-DRHk9iBB.amd.js.map} +1 -1
- package/.chunks/{notice-DQXlrM4Y.es.js → notice-4bdzRXtl.es.js} +2 -2
- package/.chunks/{notice-DQXlrM4Y.es.js.map → notice-4bdzRXtl.es.js.map} +1 -1
- package/.chunks/{notice-ZTC1xm1R.amd.js → notice-DQ9qFyQ2.amd.js} +3 -3
- package/.chunks/{notice-ZTC1xm1R.amd.js.map → notice-DQ9qFyQ2.amd.js.map} +1 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BgGzBbMZ.amd.js +2 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BgGzBbMZ.amd.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BstJVz3j.es.js +176 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BstJVz3j.es.js.map +1 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-B6ollFUC.amd.js +2 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-B6ollFUC.amd.js.map +1 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-DbaqFJra.es.js +56 -0
- package/.chunks/pageComponent.vue_vue_type_script_setup_true_lang-DbaqFJra.es.js.map +1 -0
- package/.chunks/{popup-B7GI-vlM.es.js → popup-DuraSW2f.es.js} +2 -2
- package/.chunks/{popup-B7GI-vlM.es.js.map → popup-DuraSW2f.es.js.map} +1 -1
- package/.chunks/popup-IcMnYYXr.amd.js +2 -0
- package/.chunks/{popup-Kvk7IPNI.amd.js.map → popup-IcMnYYXr.amd.js.map} +1 -1
- package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
- package/.chunks/{punycode.es6-C2yitnNb.amd.js.map → punycode.es6-CNOnFR2-.amd.js.map} +1 -1
- package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
- package/.chunks/{punycode.es6-CNI-zL6U.es.js.map → punycode.es6-CgGegfA_.es.js.map} +1 -1
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
- package/.chunks/store-YRW59xEF.amd.js +2 -0
- package/.chunks/{store-esTid5oI.amd.js.map → store-YRW59xEF.amd.js.map} +1 -1
- package/.chunks/{utils-BkchlCXw.es.js → utils-Bd5whKoS.es.js} +5 -5
- package/.chunks/{utils-BkchlCXw.es.js.map → utils-Bd5whKoS.es.js.map} +1 -1
- package/.chunks/utils-BkF4g-PH.amd.js +2 -0
- package/.chunks/{utils-Bg7IV0KZ.amd.js.map → utils-BkF4g-PH.amd.js.map} +1 -1
- package/api/additional.amd.js +2 -0
- package/api/additional.amd.js.map +1 -0
- package/api/additional.js +66 -0
- package/api/additional.js.map +1 -0
- package/api/index.amd.js +2 -0
- package/api/index.amd.js.map +1 -0
- package/api/index.js +257 -0
- package/api/index.js.map +1 -0
- package/assets/themes/dark-th.css +1 -1
- package/assets/themes/dark.css +1 -1
- package/assets/themes/light.css +1 -1
- package/charts/charts.amd.js +1 -1
- package/charts/charts.amd.js.map +1 -1
- package/charts/charts.js +1 -1
- package/charts/charts.js.map +1 -1
- package/core/app.amd.js +1 -1
- package/core/app.amd.js.map +1 -1
- package/core/app.js +8 -8
- package/core/app.js.map +1 -1
- package/dialog/dialog.amd.js +1 -1
- package/dialog/dialog.amd.js.map +1 -1
- package/dialog/dialog.js +8 -57
- package/dialog/dialog.js.map +1 -1
- package/dialogV1AndDialogV2/dialog.amd.js +2 -0
- package/dialogV1AndDialogV2/dialog.amd.js.map +1 -0
- package/dialogV1AndDialogV2/dialog.js +11 -0
- package/dialogV1AndDialogV2/dialog.js.map +1 -0
- package/dialogV1Original/dialog.amd.js +2 -0
- package/dialogV1Original/dialog.amd.js.map +1 -0
- package/dialogV1Original/dialog.js +11 -0
- package/dialogV1Original/dialog.js.map +1 -0
- package/dialogV2/dialog.amd.js +2 -0
- package/dialogV2/dialog.amd.js.map +1 -0
- package/dialogV2/dialog.js +11 -0
- package/dialogV2/dialog.js.map +1 -0
- package/extra/extra.amd.js +1 -1
- package/extra/extra.amd.js.map +1 -1
- package/forms/forms.amd.js +1 -1
- package/forms/forms.js +1 -1
- package/forms/helpers.amd.js +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +3 -4
- package/formsExt/formsExt.js.map +1 -1
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.js +1 -1
- package/package.json +3 -4
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.js +2 -2
- package/popup/popup.js.map +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +2 -2
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +157 -157
- package/project/project.js.map +1 -1
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.js.map +1 -1
- package/tabsView/tabsView.amd.js +1 -1
- package/tabsView/tabsView.amd.js.map +1 -1
- package/tabsView/tabsView.js +1 -1
- package/tabsView/tabsView.js.map +1 -1
- package/types/api/additional.d.ts +2 -0
- package/types/api/api/additional.d.ts +1 -0
- package/types/api/api/client/client.d.ts +55 -0
- package/types/api/api/client/request-options.d.ts +1 -0
- package/types/api/api/client/request.d.ts +2 -0
- package/types/api/api/index.d.ts +12 -0
- package/types/api/api/tests/model.d.ts +0 -0
- package/types/api/api/tests/test.d.ts +16 -0
- package/types/api/api/types/api.d.ts +139 -0
- package/types/api/api/types/client/middleware.d.ts +65 -0
- package/types/api/api/types/client/options.d.ts +60 -0
- package/types/api/api/types/client/request-context.d.ts +35 -0
- package/types/api/api/types/client/request-options.d.ts +73 -0
- package/types/api/api/types/client/request.d.ts +85 -0
- package/types/api/api/types/ext.d.ts +51 -0
- package/types/api/api/types/field.d.ts +33 -0
- package/types/api/api/types/index.d.ts +11 -0
- package/types/api/api/types/schema.d.ts +50 -0
- package/types/api/api/types/tv.d.ts +59 -0
- package/types/api/api/types/utils.d.ts +51 -0
- package/types/api/api/utils/common.d.ts +16 -0
- package/types/api/api/utils/field.d.ts +8 -0
- package/types/api/api/utils/filters.d.ts +48 -0
- package/types/api/api/utils/lazy.d.ts +13 -0
- package/types/api/index.d.ts +2 -0
- package/types/components/dialog/dialog/dialog.vue.d.ts +28 -0
- package/types/components/dialog/lib/utils.d.ts +54 -0
- package/types/components/dialog/lib/worker.d.ts +78 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/dialogHandle.d.ts +108 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/types.d.ts +11 -0
- package/types/components/dialogV1AndDialogV2/dialog/composables/utils.d.ts +23 -0
- package/types/components/dialogV1AndDialogV2/dialog/dialog.vue.d.ts +28 -0
- package/types/components/dialogV1AndDialogV2/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/types/components/dialogV1AndDialogV2/dialog/page/types.d.ts +72 -0
- package/types/components/dialogV1AndDialogV2/dialog/pageComponent/types.d.ts +18 -0
- package/types/components/dialogV1AndDialogV2/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/types/components/dialogV1AndDialogV2/dialog/types.d.ts +58 -0
- package/types/components/dialogV1AndDialogV2/dialog.d.ts +6 -0
- package/types/components/dialogV1AndDialogV2/lib/types.d.ts +44 -0
- package/types/components/dialogV1AndDialogV2/lib/utils.d.ts +18 -0
- package/types/components/dialogV1AndDialogV2/lib/utils.globalEvents.d.ts +8 -0
- package/types/components/dialogV1AndDialogV2/lib/worker.d.ts +72 -0
- package/types/components/dialogV1Original/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/types/components/dialogV1Original/dialog/composables/dialogHandle.d.ts +108 -0
- package/types/components/dialogV1Original/dialog/composables/types.d.ts +11 -0
- package/types/components/dialogV1Original/dialog/composables/utils.d.ts +23 -0
- package/types/components/dialogV1Original/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/types/components/dialogV1Original/dialog/page/types.d.ts +72 -0
- package/types/components/dialogV1Original/dialog/pageComponent/types.d.ts +18 -0
- package/types/components/dialogV1Original/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/types/components/dialogV1Original/dialog/types.d.ts +58 -0
- package/types/components/dialogV1Original/dialog.d.ts +6 -0
- package/types/components/dialogV1Original/lib/types.d.ts +44 -0
- package/types/components/dialogV1Original/lib/utils.globalEvents.d.ts +8 -0
- package/types/components/dialogV2/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/types/components/dialogV2/dialog/composables/dialogHandle.d.ts +108 -0
- package/types/components/dialogV2/dialog/composables/types.d.ts +11 -0
- package/types/components/dialogV2/dialog/composables/utils.d.ts +23 -0
- package/types/components/dialogV2/dialog/dialog.vue.d.ts +28 -0
- package/types/components/dialogV2/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/types/components/dialogV2/dialog/page/types.d.ts +72 -0
- package/types/components/dialogV2/dialog/pageComponent/types.d.ts +18 -0
- package/types/components/dialogV2/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/types/components/dialogV2/dialog/types.d.ts +58 -0
- package/types/components/dialogV2/dialog.d.ts +6 -0
- package/types/components/dialogV2/lib/types.d.ts +44 -0
- package/types/components/dialogV2/lib/utils.d.ts +15 -0
- package/types/components/dialogV2/lib/utils.globalEvents.d.ts +8 -0
- package/types/components/dialogV2/lib/worker.d.ts +62 -0
- package/{components → types/components}/forms/checkbox/checkbox.vue.d.ts +2 -2
- package/types/components/formsExt/policy/policy.vue.d.ts +8 -0
- package/{components → types/components}/formsExt/policy/types.d.ts +0 -4
- package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +1 -1
- package/{components → types/components}/project/selectorRegion/utils/utils.d.ts +1 -1
- package/types/dialogV1AndDialogV2/dialog.d.ts +2 -0
- package/types/dialogV1Original/dialog.d.ts +2 -0
- package/types/dialogV2/dialog.d.ts +2 -0
- package/types/for-delete/dark-positions.d.ts +1 -0
- package/types/for-delete/dark-th-positions.d.ts +1 -0
- package/types/for-delete/dark-th.d.ts +1 -0
- package/types/for-delete/dark.d.ts +1 -0
- package/types/for-delete/light-positions.d.ts +1 -0
- package/types/for-delete/light.d.ts +1 -0
- package/types/forms/helpers.d.ts +1 -0
- package/utils/check.amd.js +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.js.map +1 -1
- package/utils/clipboard.amd.js +2 -2
- package/utils/clipboard.amd.js.map +1 -1
- package/utils/clipboard.js +1 -1
- package/utils/clipboard.js.map +1 -1
- package/utils/date.amd.js +1 -1
- package/utils/date.js +1 -1
- package/utils/device.amd.js +1 -1
- package/utils/device.js +1 -1
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.js.map +1 -1
- package/utils/image.amd.js +2 -2
- package/utils/image.amd.js.map +1 -1
- package/utils/image.js +1 -1
- package/utils/image.js.map +1 -1
- package/utils/keyboard.amd.js +1 -1
- package/utils/keyboard.amd.js.map +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.js +1 -1
- package/utils/number.amd.js +1 -1
- package/utils/number.amd.js.map +1 -1
- package/utils/number.js.map +1 -1
- package/utils/price.amd.js +1 -1
- package/utils/price.amd.js.map +1 -1
- package/utils/price.js +1 -1
- package/utils/price.js.map +1 -1
- package/utils/route.amd.js +1 -1
- package/utils/route.amd.js.map +1 -1
- package/utils/route.js.map +1 -1
- package/utils/scroll.amd.js +1 -1
- package/utils/scroll.amd.js.map +1 -1
- package/utils/scroll.js.map +1 -1
- package/utils/searchers.amd.js +1 -1
- package/utils/searchers.amd.js.map +1 -1
- package/utils/searchers.js +3 -3
- package/utils/searchers.js.map +1 -1
- package/utils/store.amd.js +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.js +1 -1
- package/utils/string.js.map +1 -1
- package/utils/system.amd.js +1 -1
- package/utils/system.amd.js.map +1 -1
- package/utils/system.js.map +1 -1
- package/utils/url.amd.js +2 -2
- package/utils/url.amd.js.map +1 -1
- package/utils/url.js +1 -1
- package/utils/url.js.map +1 -1
- package/.chunks/core-SEtL6T0A.amd.js +0 -2
- package/.chunks/datepicker-Ba8QPoiv.amd.js +0 -2
- package/.chunks/dialog_selectorRegions-CiWJsA9r.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-C-wpHg-4.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-C-wpHg-4.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Deg17t8D.es.js +0 -322
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-Deg17t8D.es.js.map +0 -1
- package/.chunks/forms-L6BGV_om.amd.js +0 -3
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-M0ZTpQlF.amd.js +0 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DepdFfhE.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CDgPLGAn.es.js +0 -143
- package/.chunks/page.vue_vue_type_script_setup_true_lang-CDgPLGAn.es.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-ZB87yGeU.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-ZB87yGeU.amd.js.map +0 -1
- package/.chunks/popup-Kvk7IPNI.amd.js +0 -2
- package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
- package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
- package/.chunks/store-esTid5oI.amd.js +0 -2
- package/.chunks/utils-BKooGtxR.amd.js +0 -2
- package/.chunks/utils-BKooGtxR.amd.js.map +0 -1
- package/.chunks/utils-Bg7IV0KZ.amd.js +0 -2
- package/.chunks/utils-CyqZFHE6.es.js +0 -304
- package/.chunks/utils-CyqZFHE6.es.js.map +0 -1
- package/components/charts/miniChart/stories/dummy.d.ts +0 -13
- package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
- package/components/dialog/dialog/stories/autoload.d.ts +0 -2
- package/components/forms/select/stories/exampleOptions.d.ts +0 -5
- package/components/formsExt/checkboxGroup/stories/example.d.ts +0 -15
- package/components/formsExt/menu/stories/items.d.ts +0 -3
- package/components/formsExt/policy/policy.vue.d.ts +0 -21
- package/components/formsExt/radioGroup/stories/example.d.ts +0 -20
- package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -9
- package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
- package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
- package/{charts → types/charts}/charts.d.ts +0 -0
- package/{components → types/components}/charts/charts.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/miniChart.vue.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/types.d.ts +0 -0
- package/{components → types/components}/charts/miniChart/utils/consts.d.ts +0 -0
- package/{components → types/components}/charts/miniCharts/miniCharts.d.ts +0 -0
- package/{components → types/components}/charts/miniCharts/miniCharts.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/item/item.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/item/types.d.ts +0 -0
- package/{components → types/components}/core/notice/notice.vue.d.ts +0 -0
- package/{components → types/components}/core/notice/types.d.ts +0 -0
- package/{components → types/components}/core/notice/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/composables/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/page/page.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/page/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
- package/{components → types/components}/dialog/dialog/types.d.ts +0 -0
- package/{components → types/components}/dialog/dialog.d.ts +0 -0
- package/{components → types/components}/dialog/lib/types.d.ts +0 -0
- package/{components → types/components}/dialog/lib/utils.globalEvents.d.ts +0 -0
- package/{components/dialog → types/components/dialogV1Original}/dialog/dialog.vue.d.ts +1 -1
- package/{components/dialog → types/components/dialogV1Original}/lib/utils.d.ts +0 -0
- package/{components/dialog → types/components/dialogV1Original}/lib/worker.d.ts +0 -0
- package/{components → types/components}/extra/extra.d.ts +0 -0
- package/{components → types/components}/extra/rive/rive.vue.d.ts +0 -0
- package/{components → types/components}/extra/rive/types.d.ts +0 -0
- package/{components → types/components}/forms/avatar/avatar.vue.d.ts +1 -1
- /package/{components → types/components}/forms/avatar/types.d.ts +0 -0
- /package/{components → types/components}/forms/button/button.vue.d.ts +0 -0
- /package/{components → types/components}/forms/button/types.d.ts +0 -0
- /package/{components → types/components}/forms/caption/caption.vue.d.ts +0 -0
- /package/{components → types/components}/forms/caption/types.d.ts +0 -0
- /package/{components → types/components}/forms/checkbox/types.d.ts +0 -0
- /package/{components → types/components}/forms/controlLabel/controlLabel.vue.d.ts +0 -0
- /package/{components → types/components}/forms/controlLabel/types.d.ts +0 -0
- /package/{components → types/components}/forms/forms.d.ts +0 -0
- /package/{components → types/components}/forms/helpers.d.ts +0 -0
- /package/{components → types/components}/forms/hint/hint.vue.d.ts +0 -0
- /package/{components → types/components}/forms/hint/types.d.ts +0 -0
- /package/{components → types/components}/forms/input/input.vue.d.ts +0 -0
- /package/{components → types/components}/forms/input/types.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/datepicker.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/inputDate.vue.d.ts +0 -0
- /package/{components → types/components}/forms/inputDate/types.d.ts +0 -0
- /package/{components → types/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
- /package/{components → types/components}/forms/inputRange/types.d.ts +0 -0
- /package/{components → types/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
- /package/{components → types/components}/forms/preloader/preloader.vue.d.ts +0 -0
- /package/{components → types/components}/forms/preloader/types.d.ts +0 -0
- /package/{components → types/components}/forms/radio/radio.vue.d.ts +0 -0
- /package/{components → types/components}/forms/radio/types.d.ts +0 -0
- /package/{components → types/components}/forms/select/select.vue.d.ts +0 -0
- /package/{components → types/components}/forms/select/types.d.ts +0 -0
- /package/{components → types/components}/forms/switcher/switcher.vue.d.ts +0 -0
- /package/{components → types/components}/forms/switcher/types.d.ts +0 -0
- /package/{components → types/components}/forms/textarea/textarea.vue.d.ts +0 -0
- /package/{components → types/components}/forms/textarea/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/checkboxGroup/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/editArea/editArea.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/editArea/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/editInput/editInput.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/editInput/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/formsExt.d.ts +0 -0
- /package/{components → types/components}/formsExt/info/info.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/info/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/menu/menu.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/menu/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/radioGroup/radioGroup.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/radioGroup/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/composables/useAPI.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/composables/useMenu.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/itemMulti.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/selector2.vue.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/types.d.ts +0 -0
- /package/{components → types/components}/formsExt/selector2/utils.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsRow/types.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
- /package/{components → types/components}/layout/islandRows/types.d.ts +0 -0
- /package/{components → types/components}/layout/layout.d.ts +0 -0
- /package/{components → types/components}/layout/rows/rows.vue.d.ts +0 -0
- /package/{components → types/components}/layout/rows/types.d.ts +0 -0
- /package/{components → types/components}/popup/alert/alert.vue.d.ts +0 -0
- /package/{components → types/components}/popup/alert/types.d.ts +0 -0
- /package/{components → types/components}/popup/confirm/confirm.vue.d.ts +0 -0
- /package/{components → types/components}/popup/confirm/types.d.ts +0 -0
- /package/{components → types/components}/popup/lib/popup.d.ts +0 -0
- /package/{components → types/components}/popup/lib/popup.globalEvents.d.ts +0 -0
- /package/{components → types/components}/popup/lib/worker.d.ts +0 -0
- /package/{components → types/components}/popup/lib/worker.globalEvents.d.ts +0 -0
- /package/{components → types/components}/popup/popup/listItem.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup/opener.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup/popup.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup/types.d.ts +0 -0
- /package/{components → types/components}/popup/popup/widgetInput.vue.d.ts +0 -0
- /package/{components → types/components}/popup/popup.d.ts +0 -0
- /package/{components → types/components}/popup/prompt/prompt.vue.d.ts +0 -0
- /package/{components → types/components}/popup/prompt/types.d.ts +0 -0
- /package/{components → types/components}/popup/worker.d.ts +0 -0
- /package/{components → types/components}/project/project.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/composables.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -0
- /package/{components → types/components}/project/selectorCompetitors/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/compare.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectRegion.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectSearcher.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/composables/selectorRegion.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/selectorRegion.vue.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/types.d.ts +0 -0
- /package/{components → types/components}/project/selectorRegion/utils/consts.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/popupOpener/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/types.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/utils/el.d.ts +0 -0
- /package/{components → types/components}/project/tagSelector/utils/utils.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/content.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/tab.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/tabs.vue.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs/types.d.ts +0 -0
- /package/{components → types/components}/tabs/tabs.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menu.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuItem.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/menuTitle.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/store.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/tabsView.vue.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/types.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView/utils.d.ts +0 -0
- /package/{components → types/components}/tabsView/tabsView.d.ts +0 -0
- /package/{core → types/core}/app.d.ts +0 -0
- /package/{core → types/core}/core/core.d.ts +0 -0
- /package/{core → types/core}/core/events/resize.d.ts +0 -0
- /package/{core → types/core}/core/events.d.ts +0 -0
- /package/{core → types/core}/core/options.d.ts +0 -0
- /package/{core → types/core}/core/preloaders.d.ts +0 -0
- /package/{core → types/core}/core/state.d.ts +0 -0
- /package/{core → types/core}/directives/data.d.ts +0 -0
- /package/{core → types/core}/directives/focus.d.ts +0 -0
- /package/{core → types/core}/directives/preloader.d.ts +0 -0
- /package/{core → types/core}/directives/scrollIntoView.d.ts +0 -0
- /package/{core → types/core}/directives/scrollShadow.d.ts +0 -0
- /package/{core → types/core}/directives/sticky.d.ts +0 -0
- /package/{core → types/core}/directives/swimUp.d.ts +0 -0
- /package/{core → types/core}/directives/tooltip.d.ts +0 -0
- /package/{core → types/core}/plugins/core.d.ts +0 -0
- /package/{core → types/core}/plugins/i18n.d.ts +0 -0
- /package/{core → types/core}/plugins/piniaTPA.d.ts +0 -0
- /package/{core → types/core}/utils/check.d.ts +0 -0
- /package/{core → types/core}/utils/clipboard.d.ts +0 -0
- /package/{core → types/core}/utils/date.d.ts +0 -0
- /package/{core → types/core}/utils/device.d.ts +0 -0
- /package/{core → types/core}/utils/dom.d.ts +0 -0
- /package/{core → types/core}/utils/image.d.ts +0 -0
- /package/{core → types/core}/utils/keyboard.d.ts +0 -0
- /package/{core → types/core}/utils/lodash.d.ts +0 -0
- /package/{core → types/core}/utils/number.d.ts +0 -0
- /package/{core → types/core}/utils/price.d.ts +0 -0
- /package/{core → types/core}/utils/route.d.ts +0 -0
- /package/{core → types/core}/utils/scroll.d.ts +0 -0
- /package/{core → types/core}/utils/searchers.d.ts +0 -0
- /package/{core → types/core}/utils/store/localStorage.d.ts +0 -0
- /package/{core → types/core}/utils/store/plugin.d.ts +0 -0
- /package/{core → types/core}/utils/store/store.d.ts +0 -0
- /package/{core → types/core}/utils/store.d.ts +0 -0
- /package/{core → types/core}/utils/string.d.ts +0 -0
- /package/{core → types/core}/utils/system.d.ts +0 -0
- /package/{core → types/core}/utils/url.d.ts +0 -0
- /package/{dialog → types/dialog}/dialog.d.ts +0 -0
- /package/{extra → types/extra}/extra.d.ts +0 -0
- /package/{forms/helpers.d.ts → types/for-delete/core.d.ts} +0 -0
- /package/{forms → types/forms}/forms.d.ts +0 -0
- /package/{formsExt → types/formsExt}/formsExt.d.ts +0 -0
- /package/{layout → types/layout}/layout.d.ts +0 -0
- /package/{popup → types/popup}/popup.d.ts +0 -0
- /package/{popup → types/popup}/worker.d.ts +0 -0
- /package/{project → types/project}/project.d.ts +0 -0
- /package/{tabs → types/tabs}/tabs.d.ts +0 -0
- /package/{tabsView → types/tabsView}/tabsView.d.ts +0 -0
- /package/{utils → types/utils}/check.d.ts +0 -0
- /package/{utils → types/utils}/clipboard.d.ts +0 -0
- /package/{utils → types/utils}/date.d.ts +0 -0
- /package/{utils → types/utils}/device.d.ts +0 -0
- /package/{utils → types/utils}/dom.d.ts +0 -0
- /package/{utils → types/utils}/image.d.ts +0 -0
- /package/{utils → types/utils}/keyboard.d.ts +0 -0
- /package/{utils → types/utils}/lodash.d.ts +0 -0
- /package/{utils → types/utils}/number.d.ts +0 -0
- /package/{utils → types/utils}/price.d.ts +0 -0
- /package/{utils → types/utils}/route.d.ts +0 -0
- /package/{utils → types/utils}/scroll.d.ts +0 -0
- /package/{utils → types/utils}/searchers.d.ts +0 -0
- /package/{utils → types/utils}/store.d.ts +0 -0
- /package/{utils → types/utils}/string.d.ts +0 -0
- /package/{utils → types/utils}/system.d.ts +0 -0
- /package/{utils → types/utils}/url.d.ts +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { components as ModelsComponents } from 'topvisor-openapi/src/ts/Models';
|
|
2
|
+
import type * as SchemaImported from 'topvisor-openapi/src/ts/Topvisor';
|
|
3
|
+
declare global {
|
|
4
|
+
namespace Api {
|
|
5
|
+
/**
|
|
6
|
+
* Схема API OpenAPI TV
|
|
7
|
+
*
|
|
8
|
+
* Также содержит утилиты, которые работают с определяемой схемой и расширением селектора
|
|
9
|
+
*
|
|
10
|
+
* Для определения другого API с расширением селектора необходимо определить такой же namespace с нужными `SchemaImported` и `ModelsComponents`
|
|
11
|
+
*/
|
|
12
|
+
namespace TV {
|
|
13
|
+
namespace Schema {
|
|
14
|
+
type paths = SchemaImported.paths;
|
|
15
|
+
type operations = SchemaImported.operations;
|
|
16
|
+
type components = SchemaImported.components;
|
|
17
|
+
type webhooks = SchemaImported.webhooks;
|
|
18
|
+
type $defs = SchemaImported.$defs;
|
|
19
|
+
}
|
|
20
|
+
type Paths = Api.TV.Schema.paths;
|
|
21
|
+
type Path<Path extends Api.Path<Paths> = Api.Path<Paths>> = Path;
|
|
22
|
+
/**
|
|
23
|
+
* Все схемы моделей данных API
|
|
24
|
+
*/
|
|
25
|
+
type Models = ModelsComponents['schemas'];
|
|
26
|
+
/**
|
|
27
|
+
* Параметр списка полей `fields` конкретного метода API
|
|
28
|
+
*/
|
|
29
|
+
type Fields<Path extends Api.Path<Paths>> = Api.ParamsFields<Api.ClientRequestContext<Paths, Path, true>>;
|
|
30
|
+
/**
|
|
31
|
+
* Модель данных конкретного метода API
|
|
32
|
+
*/
|
|
33
|
+
type Model<Path extends Api.Path<Paths>> = Api.Model<Paths, Path>;
|
|
34
|
+
/**
|
|
35
|
+
* Объект запроса к конкретному методу API
|
|
36
|
+
*
|
|
37
|
+
* Дженерик Fields не будет работать, так как используется tuple
|
|
38
|
+
*
|
|
39
|
+
* @see https://github.com/microsoft/TypeScript/pull/62170
|
|
40
|
+
*
|
|
41
|
+
* @remarks Не использовать, тип запроса API должен определяться `client.gen()`, указывать ему тип вручную не рекомендуется
|
|
42
|
+
*/
|
|
43
|
+
type Request<Path extends Api.Path<Paths>, Fields extends Api.ParamsFields<RequestContext> | undefined = undefined, RequestContext extends Api.ClientRequestContext<Paths, Path, true> = Api.ClientRequestContext<Paths, Path, true>> = Api.ClientRequest<RequestContext, Fields>;
|
|
44
|
+
/**
|
|
45
|
+
* Параметры запроса к конкретному методу API
|
|
46
|
+
*/
|
|
47
|
+
type Params<Path extends Api.Path<Paths>, Fields extends Api.ParamsFields<RequestContext> | undefined = undefined, RequestContext extends Api.ClientRequestContext<Paths, Path, true> = Api.ClientRequestContext<Paths, Path, true>> = Api.Params<RequestContext, Fields>;
|
|
48
|
+
/**
|
|
49
|
+
* Результат конкретного метода API
|
|
50
|
+
*/
|
|
51
|
+
type ResponseSuccess<Path extends Api.Path<Paths>, Fields extends Api.ParamsFields<RequestContext> | undefined = undefined, FetchStyle extends RequestContext['ParamsFetchStyle'] | null = null, RequestContext extends Api.ClientRequestContext<Paths, Path, true> = Api.ClientRequestContext<Paths, Path, true>, Result extends Api.Result<RequestContext, Fields, FetchStyle> = Api.Result<RequestContext, Fields, FetchStyle>> = Api.ResponseSuccess<Result, RequestContext['Oper']>;
|
|
52
|
+
/**
|
|
53
|
+
* Результат `res.result` конкретного метода API
|
|
54
|
+
*/
|
|
55
|
+
type Result<Path extends Api.Path<Paths>, Fields extends Api.ParamsFields<RequestContext> | undefined = undefined, FetchStyle extends RequestContext['ParamsFetchStyle'] | null = null, RequestContext extends Api.ClientRequestContext<Paths, Path, true> = Api.ClientRequestContext<Paths, Path, true>> = Api.Result<RequestContext, Fields, FetchStyle>;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
/**
|
|
3
|
+
* Общие утилиты
|
|
4
|
+
*/
|
|
5
|
+
namespace Api {
|
|
6
|
+
/**
|
|
7
|
+
* Интерфейс `paths` в схеме openAPI
|
|
8
|
+
*
|
|
9
|
+
* Общий интерфейс для разных API
|
|
10
|
+
*
|
|
11
|
+
* В данной реализации строго не типизирован
|
|
12
|
+
*
|
|
13
|
+
* @see https://learn.openapis.org/specification/structure.html
|
|
14
|
+
* @see https://spec.openapis.org/oas/v3.1.0#paths-object
|
|
15
|
+
*/
|
|
16
|
+
type PathsAbstract = Record<string, any>;
|
|
17
|
+
type PathAbstract = `/${string}` | '';
|
|
18
|
+
/**
|
|
19
|
+
* Путь метода API
|
|
20
|
+
*
|
|
21
|
+
* Определяет возможные значения пути метода API
|
|
22
|
+
*
|
|
23
|
+
* @template T Интерфейс `paths` в схеме openAPI
|
|
24
|
+
*
|
|
25
|
+
* @see Api.PathsAbstract
|
|
26
|
+
*/
|
|
27
|
+
type Path<T extends Api.PathsAbstract> = Extract<keyof T, string>;
|
|
28
|
+
/**
|
|
29
|
+
* Создает новый тип на основе T с заменой типа свойства K на NewType, только если ключ K присутствует в T.
|
|
30
|
+
*
|
|
31
|
+
* Если ключа нет — возвращается пустой объект.
|
|
32
|
+
*
|
|
33
|
+
* Используется для расширения простых типов такими же, но с дженериками
|
|
34
|
+
*/
|
|
35
|
+
type PickAndRetype<T extends object, K extends PropertyKey, NewType> = K extends keyof T ? undefined extends T[K] ? {
|
|
36
|
+
[P in K]?: NewType;
|
|
37
|
+
} : {
|
|
38
|
+
[P in K]: NewType;
|
|
39
|
+
} : {};
|
|
40
|
+
type PropIfExists<T, K extends PropertyKey> = K extends keyof T ? T[K] : never;
|
|
41
|
+
/**
|
|
42
|
+
* Сужение возможных значений массива
|
|
43
|
+
*/
|
|
44
|
+
type ArrowNarrow<T extends readonly any[], FieldsNarrow extends readonly any[]> = Extract<T[number], FieldsNarrow[number]>[] & T;
|
|
45
|
+
/**
|
|
46
|
+
* Утилита для условной установки типа по входным условиям
|
|
47
|
+
*/
|
|
48
|
+
type IfAllTrue<T extends boolean[], Then, Else = never> = false extends T[number] ? Else : Then;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Сгенерировать объект ответа в формате расширения OpenAPI
|
|
3
|
+
*
|
|
4
|
+
* @see Api.Ext
|
|
5
|
+
*/
|
|
6
|
+
export declare const genExtRes: (result: any, errors?: Api.Ext.Schemas["ResponseError"]["errors"], response?: Response) => Api.Response<any>;
|
|
7
|
+
/**
|
|
8
|
+
* Это публичное API, к которому открыт доступ по прямой ссылке через GET
|
|
9
|
+
*
|
|
10
|
+
* Используется для кеширования и генерации файлов через API
|
|
11
|
+
*/
|
|
12
|
+
export declare const isPublicAPI: (path: Api.PathAbstract) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Сгенерировать baseUrl на основе текущего домена
|
|
15
|
+
*/
|
|
16
|
+
export declare const getBaseDomainUrl: (useMainDomain?: boolean, input?: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Сгенерировать объект API фильтра
|
|
3
|
+
*/
|
|
4
|
+
export declare const genFieldFilter: <Model extends Api.Ext.Schemas["Model"], FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, operator: Api.Field.Filter<Model, FieldName>["operator"], values: Api.Field.Filter<Model, FieldName>["values"]) => Api.Field.Filter<Model, FieldName>;
|
|
5
|
+
/**
|
|
6
|
+
* Сгенерировать объект сортировки
|
|
7
|
+
*/
|
|
8
|
+
export declare const genFieldOrder: <Model extends Api.Ext.Schemas["Model"], FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, direction: Api.Field.Order<Model, FieldName>["direction"], orderValues?: Api.Field.Order<Model, FieldName>["orderValues"], operator?: Api.Field.Order<Model, FieldName>["operator"], values?: Api.Field.Order<Model, FieldName>["values"]) => Api.Field.Order<Model, FieldName>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { components as componentsTagId } from 'topvisor-openapi/src/ts/Tags_2/Types/TagId';
|
|
2
|
+
type TagId = componentsTagId['schemas']['Tags_2.Types.TagId'];
|
|
3
|
+
type TagIdExclude = `-${TagId}`;
|
|
4
|
+
type DataWithModifierOperator<Model> = {
|
|
5
|
+
[K in keyof Model]: Model[K] | Model[K][] | Set<Model[K]> | string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Модификатор оператора сравнения
|
|
9
|
+
*
|
|
10
|
+
* Используется посредством добавления к строковому значению поля для упрощения синтаксиса указания фильтров
|
|
11
|
+
*
|
|
12
|
+
* @example Поиск вхождения `Иван` в поле `name`
|
|
13
|
+
* genFilters({
|
|
14
|
+
* id: 12345, // без модификатора опертора
|
|
15
|
+
* name: '%:' + 'Иван', // с модификатором опертора
|
|
16
|
+
* });
|
|
17
|
+
*/
|
|
18
|
+
type ModifierOperator = '>=' | '<=' | '!=' | '>' | '<' | '%' | '!%' | '^' | '~' | '!~' | 'null' | '!null';
|
|
19
|
+
type ValueWithModifierOperator = `${ModifierOperator}:${string | number}`;
|
|
20
|
+
/**
|
|
21
|
+
* Сгенерировать массив с фильтрами API
|
|
22
|
+
*
|
|
23
|
+
* Ключи - `filedName`, значения - `[ModifierOperator:]fieldValue` / `fieldValues`
|
|
24
|
+
*
|
|
25
|
+
* Значения `undefined` будут пропускаться
|
|
26
|
+
*
|
|
27
|
+
* Додерживает типы:
|
|
28
|
+
*
|
|
29
|
+
* - string, number, boolean - строгое равенство `EQUALS`, если не указан `modifierOperator`
|
|
30
|
+
* - Array - вхождение `IN`
|
|
31
|
+
* - Set<string | number> - вхождение `IN`
|
|
32
|
+
*
|
|
33
|
+
* @see ModifierOperator
|
|
34
|
+
*/
|
|
35
|
+
export declare const genFilters: <Model extends Api.Ext.Schemas["Model"]>(dataWithModifierOperator: DataWithModifierOperator<Model>) => Api.Field.Filter<Model>[];
|
|
36
|
+
/**
|
|
37
|
+
* Сгенерировать и добавить API фильтр из списка тегов
|
|
38
|
+
*/
|
|
39
|
+
export declare const pushFilterTagsIds: <Model extends Api.Ext.Schemas["Model"] = any, FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, filters: Api.Field.Filter<Model, FieldName>[], tagsIds: Array<TagId | TagIdExclude>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Сгенерировать API фильтр из простого значения
|
|
42
|
+
*/
|
|
43
|
+
export declare const genFilterPrimitive: <Model extends Api.Ext.Schemas["Model"] = any, FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, valueWithModifierOperator: number | string | boolean | ValueWithModifierOperator) => Api.Field.Filter<Model, keyof Model>;
|
|
44
|
+
/**
|
|
45
|
+
* Сгенерировать API фильтр IN
|
|
46
|
+
*/
|
|
47
|
+
export declare const genFilterIn: <Model extends Api.Ext.Schemas["Model"] = any, FieldName extends Api.Field.Name<Model> = Api.Field.Name<Model>>(name: FieldName, valuesOrSet: Model[FieldName][] | Set<Model[FieldName]>) => Api.Field.Filter<Model, FieldName>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Общие утилиты, которые должны грузиться в отложенном режиме
|
|
3
|
+
*
|
|
4
|
+
* Все такие утилиты являются асинхронными
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Выполнить post запрос в окне браузера
|
|
8
|
+
*
|
|
9
|
+
* @see Api.ClientRequest.callInNewWindow
|
|
10
|
+
* @see Api.ClientRequest.callInSelfWindow
|
|
11
|
+
*/
|
|
12
|
+
export declare const postInWindow: (url: string, data: Record<string, any>, target: "_blank" | "_self") => Promise<void>;
|
|
13
|
+
export declare const dataToForm: (elForm: HTMLFormElement, dataName: string, data: Record<string, any>) => Promise<void>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Props, Slots } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<Slots> & Slots;
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
close: (pageName: string) => any;
|
|
12
|
+
open: (pageName: string) => any;
|
|
13
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
14
|
+
onClose?: ((pageName: string) => any) | undefined;
|
|
15
|
+
onOpen?: ((pageName: string) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
modal: boolean;
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
historyType: "push" | "replace";
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ElTopDialog, ElTopDialogPage, MoveDirection, ElTopDialogWrapper } from './types';
|
|
2
|
+
export declare const isHTMLDialogElement: (el: ElTopDialog | JQuery<ElTopDialog> | HTMLDialogElement | ElTopDialogWrapper) => el is HTMLDialogElement;
|
|
3
|
+
/**
|
|
4
|
+
* Поддерживает ли версия браузера нативный диалог
|
|
5
|
+
* @description true - поддерживает, false - нет
|
|
6
|
+
* @description Можно использовать для ручного переключения типов окон (jquery-диалог или нативный) при дебаге
|
|
7
|
+
*/
|
|
8
|
+
export declare const isHTMLDialogElementSupported: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Получить id внешнего элемента нативного модального окна
|
|
11
|
+
*
|
|
12
|
+
* Native
|
|
13
|
+
*/
|
|
14
|
+
export declare const getDialogWrapperId: (innerId: string) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Получить id внутреннего элемента нативного диалогового окна
|
|
17
|
+
*
|
|
18
|
+
* Native
|
|
19
|
+
*/
|
|
20
|
+
export declare const getDialogInnerId: (wrapperId: string) => string;
|
|
21
|
+
/**
|
|
22
|
+
* Получить внешний элемент нативного диалогового окна
|
|
23
|
+
*
|
|
24
|
+
* Native
|
|
25
|
+
*/
|
|
26
|
+
export declare const getDialogWrapperByInnerId: (innerId: string) => HTMLDialogElement;
|
|
27
|
+
/**
|
|
28
|
+
* Получить внутренний элемент нативного диалогового окна
|
|
29
|
+
*
|
|
30
|
+
* Native
|
|
31
|
+
*/
|
|
32
|
+
export declare const getDialogInnerByWrapperid: (wrapperId: string) => ElTopDialog;
|
|
33
|
+
/**
|
|
34
|
+
* Создать и монтировать в body нативную оболочку окна
|
|
35
|
+
* @description Используется только для нативного диалогового окна
|
|
36
|
+
* @param innerId - id окна
|
|
37
|
+
* @param pageActive - активная страница
|
|
38
|
+
*/
|
|
39
|
+
export declare const createAndMountElDialogWrapper: (innerId: string, pageActive: string) => HTMLDialogElement;
|
|
40
|
+
export declare const TopDialogUtils: {
|
|
41
|
+
getElDialogById: (id: string) => ElTopDialog | null;
|
|
42
|
+
updatePageVue: (dialogId: string, pageName?: string, pageNameNext?: string) => Promise<void>;
|
|
43
|
+
recalcPositions: () => void;
|
|
44
|
+
getDialogWrapperId: (innerId: string) => string;
|
|
45
|
+
getDialogInnerId: (wrapperId: string) => string;
|
|
46
|
+
toViewDirty: (toViewPageName: string, moveDirection?: MoveDirection) => Promise<void>;
|
|
47
|
+
toView: (viewNameOrElDialog: ElTopDialog | JQuery<ElTopDialog> | string, pageName?: string, args?: string[], moveDirection?: MoveDirection, callback?: Function) => Promise<void>;
|
|
48
|
+
toViewPage: (elDialog: ElTopDialog | JQuery<ElTopDialog>, pageName?: string, args?: string[], moveDirection?: MoveDirection) => Promise<void>;
|
|
49
|
+
toPrevPage: (elDialog: ElTopDialog) => void;
|
|
50
|
+
setLoading: (elPages: ElTopDialogPage[] | JQuery<ElTopDialogPage>, isLoading: boolean, duration?: number) => void;
|
|
51
|
+
isLoading: (elPage: ElTopDialogPage | JQuery<ElTopDialogPage>) => boolean;
|
|
52
|
+
inAnimation: (elDialog: ElTopDialog | JQuery<ElTopDialog>) => boolean;
|
|
53
|
+
close: (dialogId: string) => void;
|
|
54
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ElTopDialog, ElTopDialogPage, MoveDirection, TopDialogOptions } from './types';
|
|
2
|
+
import { $el } from '../../types';
|
|
3
|
+
export declare abstract class TopDialogWorker {
|
|
4
|
+
static state: {
|
|
5
|
+
load: TopDialogOptions["load"] | undefined;
|
|
6
|
+
decoratorOnCreate: TopDialogOptions["decoratorOnCreate"] | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Порядковый номер перехода в диалоговых окнах
|
|
9
|
+
*
|
|
10
|
+
* Для расчета анимации Вперед / Назад
|
|
11
|
+
*/
|
|
12
|
+
viewPageN: number;
|
|
13
|
+
};
|
|
14
|
+
private static inited;
|
|
15
|
+
/**
|
|
16
|
+
* Инициировать события слежения за парамтерами url
|
|
17
|
+
*
|
|
18
|
+
* Если в параметрах есть запрос на открытие диалогового окна, TopDialog будет автоматически подключен на страницу
|
|
19
|
+
*/
|
|
20
|
+
static init(options?: TopDialogOptions): void;
|
|
21
|
+
private static opendDialogsFromChangeUrl;
|
|
22
|
+
static getDialogsUtils(): Promise<{
|
|
23
|
+
getElDialogById: (id: string) => ElTopDialog | null;
|
|
24
|
+
updatePageVue: (dialogId: string, pageName?: string, pageNameNext?: string) => Promise<void>;
|
|
25
|
+
recalcPositions: () => void;
|
|
26
|
+
getDialogWrapperId: (innerId: string) => string;
|
|
27
|
+
getDialogInnerId: (wrapperId: string) => string;
|
|
28
|
+
toViewDirty: (toViewPageName: string, moveDirection?: MoveDirection) => Promise<void>;
|
|
29
|
+
toView: (viewNameOrElDialog: ElTopDialog | JQuery<ElTopDialog> | string, pageName?: string, args?: string[], moveDirection?: MoveDirection, callback?: Function) => Promise<void>;
|
|
30
|
+
toViewPage: (elDialog: ElTopDialog | JQuery<ElTopDialog>, pageName?: string, args?: string[], moveDirection?: MoveDirection) => Promise<void>;
|
|
31
|
+
toPrevPage: (elDialog: ElTopDialog) => void;
|
|
32
|
+
setLoading: (elPages: ElTopDialogPage[] | JQuery<ElTopDialogPage>, isLoading: boolean, duration?: number) => void;
|
|
33
|
+
isLoading: (elPage: ElTopDialogPage | JQuery<ElTopDialogPage>) => boolean;
|
|
34
|
+
inAnimation: (elDialog: ElTopDialog | JQuery<ElTopDialog>) => boolean;
|
|
35
|
+
close: (dialogId: string) => void;
|
|
36
|
+
}>;
|
|
37
|
+
static getDialog(el: HTMLElement): ElTopDialog | null;
|
|
38
|
+
/**
|
|
39
|
+
* todo: Переписать на сайте на this.getDialog()
|
|
40
|
+
*
|
|
41
|
+
* @deprecated Для обратной совместимости
|
|
42
|
+
*/
|
|
43
|
+
static get$dialog($el: $el): JQuery<HTMLElement>;
|
|
44
|
+
static getPage(el: HTMLElement): ElTopDialogPage | null;
|
|
45
|
+
/**
|
|
46
|
+
* todo: Переписать на сайте на this.getPage()
|
|
47
|
+
*
|
|
48
|
+
* @deprecated Для обратной совместимости
|
|
49
|
+
*/
|
|
50
|
+
static get$page($el: $el): JQuery<HTMLElement>;
|
|
51
|
+
/**
|
|
52
|
+
* todo: Переписать на сайте на this.getPairPage()
|
|
53
|
+
*
|
|
54
|
+
* @deprecated Для обратной совместимости
|
|
55
|
+
*/
|
|
56
|
+
static get$pairPage($el: $el): JQuery<HTMLElement>;
|
|
57
|
+
static getPairPage(el: HTMLElement): HTMLElement[] | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Закрыть диалоговое окно по его id
|
|
60
|
+
*/
|
|
61
|
+
static close(dialogId: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* Размонтировать диалоговое окно по его id
|
|
64
|
+
*/
|
|
65
|
+
static destroy(dialogId: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* Сгенерировать ссылку на страницу в диалоговом окне
|
|
68
|
+
* @param toView - указатель в формате: dialog_{{ dialogId }}={{ pageName }}:{{ args }}
|
|
69
|
+
* @param moveDirection
|
|
70
|
+
*/
|
|
71
|
+
static genViewPageHash(toView: string, moveDirection?: MoveDirection): string;
|
|
72
|
+
/**
|
|
73
|
+
* Сравнить версию открытых диалоговых окон
|
|
74
|
+
* @returns вернет true, если состояния открытых окон изменилось
|
|
75
|
+
*/
|
|
76
|
+
static compareStates(hash: string, hash2: string): boolean;
|
|
77
|
+
static opendDialogsFromUrl: () => Promise<true | void>;
|
|
78
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { AsyncTopDialogComponentLoader, TopDialogComponent } from './types';
|
|
3
|
+
import { TopDialogHandle } from './dialogHandle';
|
|
4
|
+
/**
|
|
5
|
+
* Объект для работы с асинхронным диалоговым окном
|
|
6
|
+
*
|
|
7
|
+
* Является прослойкой для доступа к TopDialogHandle
|
|
8
|
+
*/
|
|
9
|
+
export declare class AsyncTopDialogHandle<T extends TopDialogComponent> {
|
|
10
|
+
/**
|
|
11
|
+
* Функция, определяющая компонент TopDialogComponent
|
|
12
|
+
*/
|
|
13
|
+
readonly resolve: AsyncTopDialogComponentLoader<T>;
|
|
14
|
+
/**
|
|
15
|
+
* Реактивная Сссылка на объект worker,
|
|
16
|
+
*
|
|
17
|
+
* Ссылка не будет указывать на объект, если диалоговое окно еще не загружено
|
|
18
|
+
*/
|
|
19
|
+
readonly worker: Ref<TopDialogHandle<T> | null>;
|
|
20
|
+
constructor(resolve: AsyncTopDialogComponentLoader<T>);
|
|
21
|
+
/**
|
|
22
|
+
* Получить доступ к TopDialogHandle
|
|
23
|
+
*/
|
|
24
|
+
get(): Promise<TopDialogHandle<T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Открыть диалоговое окно
|
|
27
|
+
*/
|
|
28
|
+
open(...args: Parameters<TopDialogHandle<T>['open']>): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Открыть диалоговое окно как ссылку, для хеш-навигации
|
|
31
|
+
*
|
|
32
|
+
* Только общедоступные диалоговые окна, расположенные в @/dialogs
|
|
33
|
+
*/
|
|
34
|
+
openAsLink(...args: Parameters<TopDialogHandle<T>['open']>): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Закрыть диалоговое окно
|
|
37
|
+
*
|
|
38
|
+
* Не меняет состояние компонента диалогового окна
|
|
39
|
+
*/
|
|
40
|
+
close(...args: Parameters<TopDialogHandle<T>['close']>): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Размонтировать виджет диалогового окна
|
|
43
|
+
*/
|
|
44
|
+
destroy(...args: Parameters<TopDialogHandle<T>['close']>): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Устанвоить props
|
|
47
|
+
*
|
|
48
|
+
* Полностью сбрасывается состояние props
|
|
49
|
+
*/
|
|
50
|
+
setProps(...args: Parameters<TopDialogHandle<T>['setProps']>): Promise<void>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ComponentInstance, ComponentInternalInstance, Ref } from 'vue';
|
|
2
|
+
import { default as TopDialog } from '../dialog.vue';
|
|
3
|
+
import { MoveDirection } from '../../../dialog/lib/types';
|
|
4
|
+
import { TopDialogComponent } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Объект для работы с диалоговым окном
|
|
7
|
+
*
|
|
8
|
+
* Каждое окно уникально и может быть открыто одновременно только один раз
|
|
9
|
+
*
|
|
10
|
+
* Можно определить много окон, после чего с ними можно вести работу в любой части приложения
|
|
11
|
+
*/
|
|
12
|
+
export declare class TopDialogHandle<T extends TopDialogComponent> {
|
|
13
|
+
/**
|
|
14
|
+
* Индентификатор, определяется на уровне компонента TopDialogComponent
|
|
15
|
+
*
|
|
16
|
+
* Может использоваться в навигации для открытия нужных окон с нужными настройками
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* ID, используемый в верстке диалогового окна
|
|
21
|
+
*/
|
|
22
|
+
idAttr: string;
|
|
23
|
+
/**
|
|
24
|
+
* Пользовательский компонент диалогового окна
|
|
25
|
+
*/
|
|
26
|
+
Component: T;
|
|
27
|
+
/**
|
|
28
|
+
* Компонент инициирован
|
|
29
|
+
*
|
|
30
|
+
* Устанавливается после первого вызова useTopDialog()
|
|
31
|
+
*/
|
|
32
|
+
isMounted: Ref<boolean, boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* Компонент готов к использованию
|
|
35
|
+
*
|
|
36
|
+
* Используется для внутренних преобразований после отрисовки
|
|
37
|
+
*/
|
|
38
|
+
isReady: Ref<boolean, boolean>;
|
|
39
|
+
/**
|
|
40
|
+
* Диалоговое окно открыто
|
|
41
|
+
*/
|
|
42
|
+
isOpened: Ref<boolean, boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Имя активной страницы дилогового окна
|
|
45
|
+
*/
|
|
46
|
+
pageActive: Ref<string, string>;
|
|
47
|
+
/**
|
|
48
|
+
* Диалоговое окно находится в состоянии загрузки своей страницы
|
|
49
|
+
*/
|
|
50
|
+
isLoadingPage: Ref<boolean, boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* Следующая активная страница
|
|
53
|
+
*
|
|
54
|
+
* В один момент времени может потребоваться отобразить две страницы, чтобы воспроизвести анимацию
|
|
55
|
+
*/
|
|
56
|
+
pageActiveNext: Ref<string, string>;
|
|
57
|
+
/**
|
|
58
|
+
* props компонента, доступны после инициализации
|
|
59
|
+
*/
|
|
60
|
+
props?: ComponentInstance<T>['$props'];
|
|
61
|
+
/**
|
|
62
|
+
* emit базового компонента `TopDialog`
|
|
63
|
+
*/
|
|
64
|
+
emit?: ComponentInstance<typeof TopDialog>['$emit'];
|
|
65
|
+
/**
|
|
66
|
+
* Одноразовое событие на закрытие диалогового окна
|
|
67
|
+
*
|
|
68
|
+
* Используется для привязки окна к сценариям использования
|
|
69
|
+
*/
|
|
70
|
+
onCloseOnce?: (props: typeof this.props, pageName: string) => void;
|
|
71
|
+
constructor(TopDialogComponent: T);
|
|
72
|
+
/**
|
|
73
|
+
* Событие - компонент инициирован
|
|
74
|
+
*/
|
|
75
|
+
onMounted(topDialogComponent: ComponentInternalInstance, topDialogBaseComponent: ComponentInternalInstance): void;
|
|
76
|
+
/**
|
|
77
|
+
* Открыть диалоговое окно
|
|
78
|
+
*
|
|
79
|
+
* Учтите, что props в диалоговом окне будут доступны не сразу, а только после инициализации vue компонента
|
|
80
|
+
*/
|
|
81
|
+
open(pageName?: string, props?: {}, args?: [], onCloseOnce?: typeof this.onCloseOnce, moveDirection?: MoveDirection): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Открыть диалоговое окно как ссылку, для хеш-навигации
|
|
84
|
+
*
|
|
85
|
+
* Диалоговые окна загружаются по имени, см. настройку плагина Core topDialogLoader
|
|
86
|
+
*/
|
|
87
|
+
openAsLink(pageName?: string, props?: {}, _args?: string[], onCloseOnce?: typeof this.onCloseOnce, moveDirection?: MoveDirection): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Закрыть диалоговое окно
|
|
90
|
+
*
|
|
91
|
+
* Не меняет состояние компонента диалогового окна
|
|
92
|
+
*/
|
|
93
|
+
close(): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Размонтировать $.dialog
|
|
96
|
+
*/
|
|
97
|
+
destroy(): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Устанвоить props
|
|
100
|
+
*
|
|
101
|
+
* Полностью сбрасывается состояние props
|
|
102
|
+
*/
|
|
103
|
+
setProps(props?: ComponentInstance<T>['$props']): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Проверить, есть ли необходимость отрисовки страницы диалогового окна
|
|
106
|
+
*/
|
|
107
|
+
needShowPage(pageName: string): boolean;
|
|
108
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Компонент с определением конкретного диалогового окна с использованием компонента `TopDialog`
|
|
4
|
+
*/
|
|
5
|
+
export type TopDialogComponent = Component & {
|
|
6
|
+
id?: string;
|
|
7
|
+
};
|
|
8
|
+
export type AsyncDialogComponentResolveResult<T extends TopDialogComponent> = {
|
|
9
|
+
default: T;
|
|
10
|
+
};
|
|
11
|
+
export type AsyncTopDialogComponentLoader<T extends TopDialogComponent> = () => Promise<AsyncDialogComponentResolveResult<T>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TopDialogHandle } from './dialogHandle';
|
|
2
|
+
import { AsyncTopDialogHandle } from './asyncDialogHandle';
|
|
3
|
+
import { AsyncTopDialogComponentLoader, TopDialogComponent } from './types';
|
|
4
|
+
import { TopDialogHandle } from '../../../dialog/dialog/composables/dialogHandle';
|
|
5
|
+
import { TopDialogComponent } from '../../../dialog/dialog/composables/types';
|
|
6
|
+
/**
|
|
7
|
+
* Получить объект управленя текущим диалоговым окном
|
|
8
|
+
*/
|
|
9
|
+
export declare const useTopDialogSelf: () => TopDialogHandle<TopDialogComponent> | TopDialogHandle<TopDialogComponent>;
|
|
10
|
+
/**
|
|
11
|
+
* Получить объект управленя диалоговым окном
|
|
12
|
+
*
|
|
13
|
+
* При первом вызове компонент диалогового окна будет внедрен в компонент DialogWrapper
|
|
14
|
+
*/
|
|
15
|
+
export declare const useTopDialog: <T extends TopDialogComponent>(DialogComponent: T) => TopDialogHandle<T>;
|
|
16
|
+
/**
|
|
17
|
+
* Получить объект управленя асинхронным диалоговым окном
|
|
18
|
+
*
|
|
19
|
+
* Компонент диалогового окна будет загружен и инициирован при первом взаимодействии с объектом
|
|
20
|
+
*
|
|
21
|
+
* Использует useTopDialog()
|
|
22
|
+
*/
|
|
23
|
+
export declare const useAsyncTopDialog: <T extends TopDialogComponent>(resolve: AsyncTopDialogComponentLoader<T>) => AsyncTopDialogHandle<T>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Props, Slots } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<Slots> & Slots;
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
|
+
close: (pageName: string) => any;
|
|
12
|
+
open: (pageName: string) => any;
|
|
13
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
14
|
+
onClose?: ((pageName: string) => any) | undefined;
|
|
15
|
+
onOpen?: ((pageName: string) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
modal: boolean;
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
historyType: "push" | "replace";
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TopDialogHandle } from '../../../dialog/dialog/composables/dialogHandle';
|
|
2
|
+
import { TopDialogComponent } from '../../../dialog/dialog/composables/types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Получить компонент диалогового окна по id
|
|
6
|
+
*/
|
|
7
|
+
export declare const getDialogWorker: (id: string) => TopDialogHandle<TopDialogComponent> | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Добавить компонент диалогового окна для использования
|
|
10
|
+
*/
|
|
11
|
+
export declare const addDialogWorker: <T extends TopDialogComponent>(TopDialogComponent: T) => TopDialogHandle<T>;
|
|
12
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
export default _default;
|