@topvisor/ui 1.1.0 → 1.3.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-CXqQSo9c.amd.js +2 -0
- package/.chunks/core-CXqQSo9c.amd.js.map +1 -0
- package/.chunks/{core-Dsl28h7N.es.js → core-CY6RkZz2.es.js} +47 -46
- package/.chunks/core-CY6RkZz2.es.js.map +1 -0
- package/.chunks/{datepicker-BTiE5Grw.es.js → datepicker-BiaXdEIn.es.js} +2 -2
- package/.chunks/datepicker-BiaXdEIn.es.js.map +1 -0
- package/.chunks/datepicker-DUoArkDy.amd.js +2 -0
- package/.chunks/datepicker-DUoArkDy.amd.js.map +1 -0
- package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js +2 -0
- package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js.map +1 -0
- package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js +188 -0
- package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js +322 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js.map +1 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js +2 -0
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.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-CgtkdwgA.amd.js +3 -0
- package/.chunks/forms-CgtkdwgA.amd.js.map +1 -0
- package/.chunks/forms-DarRVke_.es.js +2045 -0
- package/.chunks/forms-DarRVke_.es.js.map +1 -0
- package/.chunks/index-BEI7XZmU.amd.js +2 -0
- package/.chunks/index-BEI7XZmU.amd.js.map +1 -0
- package/.chunks/index-igPkes8X.es.js +48 -0
- package/.chunks/index-igPkes8X.es.js.map +1 -0
- package/.chunks/lazy-40pjr8cZ.es.js +71 -0
- package/.chunks/lazy-40pjr8cZ.es.js.map +1 -0
- package/.chunks/lazy-DSFLxvj4.amd.js +2 -0
- package/.chunks/lazy-DSFLxvj4.amd.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js +2 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js.map +1 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js +184 -0
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js.map +1 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js +2 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js.map +1 -0
- package/.chunks/{menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js → menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js} +35 -34
- package/.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js.map +1 -0
- package/.chunks/{notice-CJdCc72d.amd.js → notice-CPtAnc7p.amd.js} +3 -3
- package/.chunks/notice-CPtAnc7p.amd.js.map +1 -0
- package/.chunks/{notice-Cqs1dKt8.es.js → notice-fno9saBY.es.js} +2 -2
- package/.chunks/notice-fno9saBY.es.js.map +1 -0
- package/.chunks/{page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js → page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js} +4 -4
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js +2 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js.map +1 -0
- package/.chunks/popup-AG94kehM.es.js +459 -0
- package/.chunks/popup-AG94kehM.es.js.map +1 -0
- package/.chunks/popup-CtvJLWn3.amd.js +2 -0
- package/.chunks/popup-CtvJLWn3.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-YRW59xEF.amd.js.map +1 -0
- package/.chunks/{utils-B1H3EGkg.es.js → utils-3M9LC_L_.es.js} +2 -2
- package/.chunks/utils-3M9LC_L_.es.js.map +1 -0
- package/.chunks/utils-BitKP31L.es.js +302 -0
- package/.chunks/utils-BitKP31L.es.js.map +1 -0
- package/.chunks/utils-D9D3zzjc.amd.js +2 -0
- package/.chunks/utils-D9D3zzjc.amd.js.map +1 -0
- package/.chunks/utils-DcP4RFmH.amd.js +2 -0
- package/.chunks/utils-DcP4RFmH.amd.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js +2 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js +39 -0
- package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js.map +1 -0
- package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +2 -0
- package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +1 -0
- package/README.md +82 -82
- package/api/additional.amd.js +2 -0
- package/api/additional.amd.js.map +1 -0
- package/api/additional.d.ts +2 -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.d.ts +2 -0
- package/api/index.js +280 -0
- package/api/index.js.map +1 -0
- package/assets/core.css +1 -1
- package/assets/extra.css +1 -0
- package/assets/forms.css +1 -1
- package/assets/formsExt.css +1 -1
- package/assets/layout.css +1 -1
- package/assets/notice.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.d.ts +1 -1
- package/charts/charts.js +11 -11
- 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.d.ts +2 -8
- package/core/app.js +36 -34
- 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.d.ts +1 -1
- package/dialog/dialog.js +2 -2
- package/dialog/dialog.js.map +1 -1
- package/extra/extra.amd.js +2 -0
- package/extra/extra.amd.js.map +1 -0
- package/extra/extra.d.ts +2 -0
- package/extra/extra.js +72 -0
- package/extra/extra.js.map +1 -0
- package/forms/forms.amd.js +1 -1
- package/forms/forms.d.ts +1 -1
- package/forms/forms.js +11 -9
- package/forms/helpers.amd.js +1 -1
- package/forms/helpers.amd.js.map +1 -1
- package/forms/helpers.d.ts +0 -1
- package/forms/helpers.js +1 -9
- package/forms/helpers.js.map +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.d.ts +1 -1
- package/formsExt/formsExt.js +524 -320
- package/formsExt/formsExt.js.map +1 -1
- package/icomoon/Read Me.txt +7 -7
- package/icomoon/demo-files/demo.css +158 -158
- package/icomoon/demo-files/demo.js +30 -30
- package/icomoon/demo.css +158 -0
- package/icomoon/demo.html +3782 -3558
- package/icomoon/demo.js +30 -0
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +292 -276
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -1
- package/icomoon/style.css +828 -780
- package/jquery-ui.min.css +5 -5
- package/layout/layout.amd.js +1 -1
- package/layout/layout.amd.js.map +1 -1
- package/layout/layout.d.ts +1 -1
- package/layout/layout.js +29 -29
- package/layout/layout.js.map +1 -1
- package/package.json +36 -33
- package/popup/popup.amd.js +1 -1
- package/popup/popup.amd.js.map +1 -1
- package/popup/popup.d.ts +1 -1
- package/popup/popup.js +120 -136
- 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.d.ts +1 -1
- package/popup/worker.js +31 -22
- 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.d.ts +1 -1
- package/project/project.js +396 -386
- package/project/project.js.map +1 -1
- package/require/css.amd.js +12 -12
- package/src/api/api/additional.d.ts +1 -0
- package/src/api/api/client/client.d.ts +55 -0
- package/src/api/api/client/request-options.d.ts +1 -0
- package/src/api/api/client/request.d.ts +2 -0
- package/src/api/api/index.d.ts +12 -0
- package/src/api/api/mocker/index.d.ts +9 -0
- package/src/api/api/tests/types.test-d.d.ts +1 -0
- package/src/api/api/types/api.d.ts +144 -0
- package/src/api/api/types/client/client.d.ts +8 -0
- package/src/api/api/types/client/middleware.d.ts +65 -0
- package/src/api/api/types/client/options.d.ts +60 -0
- package/src/api/api/types/client/request-context.d.ts +35 -0
- package/src/api/api/types/client/request-options.d.ts +73 -0
- package/src/api/api/types/client/request.d.ts +91 -0
- package/src/api/api/types/ext.d.ts +51 -0
- package/src/api/api/types/field.d.ts +33 -0
- package/src/api/api/types/index.d.ts +13 -0
- package/src/api/api/types/mocker.d.ts +106 -0
- package/src/api/api/types/schema.d.ts +50 -0
- package/src/api/api/types/tv.d.ts +59 -0
- package/src/api/api/types/utils.d.ts +51 -0
- package/src/api/api/utils/common.d.ts +16 -0
- package/src/api/api/utils/field.d.ts +8 -0
- package/src/api/api/utils/filters.d.ts +48 -0
- package/src/api/api/utils/lazy.d.ts +26 -0
- package/src/components/charts/charts.d.ts +2 -0
- package/{components → src/components}/charts/miniChart/miniChart.vue.d.ts +1 -1
- package/{components → src/components}/charts/miniCharts/miniCharts.d.ts +1 -1
- package/{components → src/components}/charts/miniCharts/miniCharts.vue.d.ts +1 -1
- package/{components → src/components}/core/notice/item/types.d.ts +2 -0
- package/{components → src/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +3 -0
- package/{components → src/components}/dialog/dialog/page/types.d.ts +2 -2
- package/{components → src/components}/dialog/lib/types.d.ts +23 -0
- package/src/components/dialog/lib/utils.d.ts +14 -0
- package/{components → src/components}/dialog/lib/utils.globalEvents.d.ts +2 -2
- package/{components → src/components}/dialog/lib/worker.d.ts +27 -11
- package/src/components/extra/extra.d.ts +1 -0
- package/src/components/extra/rive/rive.vue.d.ts +11 -0
- package/src/components/extra/rive/types.d.ts +7 -0
- package/{components → src/components}/forms/avatar/avatar.vue.d.ts +2 -2
- package/{components/forms/avatar/avatar.d.ts → src/components/forms/avatar/types.d.ts} +4 -10
- package/{components → src/components}/forms/button/button.vue.d.ts +3 -7
- package/{components → src/components}/forms/button/types.d.ts +15 -19
- package/src/components/forms/caption/caption.vue.d.ts +17 -0
- package/src/components/forms/caption/types.d.ts +9 -0
- package/{components → src/components}/forms/checkbox/checkbox.vue.d.ts +3 -3
- package/{components → src/components}/forms/controlLabel/controlLabel.vue.d.ts +1 -1
- package/src/components/forms/forms.d.ts +15 -0
- package/src/components/forms/helpers.d.ts +1 -0
- package/{components → src/components}/forms/hint/hint.vue.d.ts +1 -1
- package/{components → src/components}/forms/input/input.vue.d.ts +2 -3
- package/src/components/forms/input/types.d.ts +23 -0
- package/{components → src/components}/forms/inputDate/inputDate.vue.d.ts +1 -1
- package/src/components/forms/inputDate/types.d.ts +1 -0
- package/src/components/forms/preloader/types.d.ts +3 -0
- package/{components → src/components}/forms/radio/radio.vue.d.ts +1 -1
- package/src/components/forms/select/select.vue.d.ts +17 -0
- package/{components/forms/select/select.d.ts → src/components/forms/select/types.d.ts} +3 -3
- package/{components → src/components}/forms/switcher/switcher.vue.d.ts +1 -1
- package/{components → src/components}/forms/textarea/textarea.vue.d.ts +1 -1
- package/{components/forms/textarea/textarea.d.ts → src/components/forms/textarea/types.d.ts} +4 -0
- package/{components/formsExt/radioGroup/radioGroup.vue.d.ts → src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts} +7 -10
- package/src/components/formsExt/checkboxGroup/types.d.ts +19 -0
- package/{components → src/components}/formsExt/editArea/editArea.vue.d.ts +1 -1
- package/{components/formsExt/editArea/editArea.d.ts → src/components/formsExt/editArea/types.d.ts} +1 -1
- package/{components → src/components}/formsExt/editInput/editInput.vue.d.ts +1 -1
- package/{components/formsExt/editInput/editInput.d.ts → src/components/formsExt/editInput/types.d.ts} +1 -1
- package/src/components/formsExt/formsExt.d.ts +8 -0
- package/{components → src/components}/formsExt/info/types.d.ts +1 -1
- package/{components → src/components}/formsExt/menu/menu.vue.d.ts +1 -1
- package/src/components/formsExt/policy/policy.vue.d.ts +8 -0
- package/src/components/formsExt/policy/types.d.ts +20 -0
- package/{components/forms/select/select.vue.d.ts → src/components/formsExt/radioGroup/radioGroup.vue.d.ts} +4 -6
- package/{components/formsExt/radioGroup/radioGroup.d.ts → src/components/formsExt/radioGroup/types.d.ts} +3 -3
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +16 -0
- package/{components → src/components}/formsExt/selector2/itemMulti.vue.d.ts +1 -1
- package/src/components/formsExt/selector2/selector2.vue.d.ts +43 -0
- package/{components/formsExt/selector2/selector2.d.ts → src/components/formsExt/selector2/types.d.ts} +66 -34
- package/src/components/formsExt/selector2/utils.d.ts +6 -0
- package/{components → src/components}/layout/islandRows/types.d.ts +1 -1
- package/src/components/layout/layout.d.ts +4 -0
- package/src/components/popup/alert/alert.vue.d.ts +25 -0
- package/src/components/popup/alert/types.d.ts +8 -0
- package/src/components/popup/confirm/confirm.vue.d.ts +26 -0
- package/{components/popup/confirm/confirm.d.ts → src/components/popup/confirm/types.d.ts} +3 -3
- package/{components → src/components}/popup/lib/popup.d.ts +6 -2
- package/{components → src/components}/popup/lib/popup.globalEvents.d.ts +6 -0
- package/{components → src/components}/popup/lib/worker.d.ts +8 -6
- package/{components → src/components}/popup/popup/listItem.vue.d.ts +1 -1
- package/src/components/popup/popup/opener.vue.d.ts +17 -0
- package/src/components/popup/popup/popup.vue.d.ts +38 -0
- package/{components/popup/popup/popup.d.ts → src/components/popup/popup/types.d.ts} +20 -11
- package/{components → src/components}/popup/popup/widgetInput.vue.d.ts +1 -1
- package/src/components/popup/popup.d.ts +7 -0
- package/src/components/popup/prompt/prompt.vue.d.ts +26 -0
- package/{components/popup/prompt/prompt.d.ts → src/components/popup/prompt/types.d.ts} +3 -3
- package/src/components/project/project.d.ts +9 -0
- package/{components → src/components}/project/selectorCompetitors/composables.d.ts +1 -2
- package/{components → src/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +1 -1
- package/{components/project/selectorCompetitors/selectorCompetitors.d.ts → src/components/project/selectorCompetitors/types.d.ts} +7 -0
- package/{components → src/components}/project/selectorRegion/composables/compare.d.ts +1 -1
- package/{components → src/components}/project/selectorRegion/composables/selectRegion.d.ts +2 -3
- package/{components → src/components}/project/selectorRegion/composables/selectSearcher.d.ts +2 -2
- package/{components → src/components}/project/selectorRegion/composables/selectorRegion.d.ts +2 -2
- package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +3 -1
- package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +1 -1
- package/{components → src/components}/project/selectorRegion/selectorRegion.vue.d.ts +1 -1
- package/{components/project/selectorRegion/selectorRegion.d.ts → src/components/project/selectorRegion/types.d.ts} +2 -0
- package/src/components/project/selectorRegion/utils/consts.d.ts +31 -0
- package/{components → src/components}/project/selectorRegion/utils/utils.d.ts +4 -2
- package/{components → src/components}/project/tagSelector/popupOpener/types.d.ts +2 -0
- package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +4 -0
- package/{components → src/components}/project/tagSelector/types.d.ts +2 -0
- package/{components → src/components}/project/tagSelector/utils/el.d.ts +1 -1
- package/{components → src/components}/tabs/tabs/content.vue.d.ts +1 -1
- package/{components → src/components}/tabs/tabs/tab.vue.d.ts +1 -1
- package/{components → src/components}/tabs/tabs/tabs.vue.d.ts +1 -1
- package/src/components/tabs/tabs.d.ts +3 -0
- package/{components → src/components}/tabsView/tabsView/menu.vue.d.ts +1 -1
- package/{components → src/components}/tabsView/tabsView/menuItem.vue.d.ts +1 -1
- package/{components → src/components}/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
- package/src/components/tabsView/tabsView/store.d.ts +12 -0
- package/{components → src/components}/tabsView/tabsView/tabsView.vue.d.ts +1 -1
- package/{components/tabsView/tabsView/tabsView.d.ts → src/components/tabsView/tabsView/types.d.ts} +2 -2
- package/src/components/tabsView/tabsView.d.ts +3 -0
- package/src/core/app.d.ts +8 -0
- package/{core → src/core}/core/core.d.ts +1 -1
- package/{core → src/core}/core/options.d.ts +7 -6
- package/{core → src/core}/core/state.d.ts +1 -1
- package/src/core/directives/preloader.d.ts +8 -0
- package/{core → src/core}/plugins/core.d.ts +2 -2
- package/{core → src/core}/plugins/i18n.d.ts +4 -4
- package/{core → src/core}/utils/date.d.ts +30 -12
- package/{core → src/core}/utils/dom.d.ts +11 -1
- package/{core → src/core}/utils/route.d.ts +1 -1
- package/{core → src/core}/utils/searchers.d.ts +1 -1
- package/{core → src/core}/utils/store.d.ts +1 -1
- package/{core → src/core}/utils/string.d.ts +13 -1
- package/tabs/tabs.amd.js +1 -1
- package/tabs/tabs.amd.js.map +1 -1
- package/tabs/tabs.d.ts +1 -1
- package/tabs/tabs.js +14 -14
- 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.d.ts +1 -1
- package/tabsView/tabsView.js +49 -48
- package/tabsView/tabsView.js.map +1 -1
- package/utils/check.amd.js +1 -1
- package/utils/check.amd.js.map +1 -1
- package/utils/check.d.ts +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.d.ts +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.d.ts +1 -1
- package/utils/date.js +4 -3
- package/utils/device.amd.js +1 -1
- package/utils/device.d.ts +1 -1
- package/utils/device.js +4 -4
- package/utils/dom.amd.js +1 -1
- package/utils/dom.amd.js.map +1 -1
- package/utils/dom.d.ts +3 -3
- package/utils/dom.js +27 -22
- 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.d.ts +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.d.ts +1 -1
- package/utils/keyboard.js.map +1 -1
- package/utils/lodash.amd.js +1 -1
- package/utils/lodash.d.ts +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.d.ts +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.d.ts +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.d.ts +1 -1
- package/utils/route.js +26 -19
- 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.d.ts +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.d.ts +1 -1
- package/utils/searchers.js +3 -3
- package/utils/searchers.js.map +1 -1
- package/utils/store.amd.js +1 -1
- package/utils/store.d.ts +1 -1
- package/utils/string.amd.js +1 -1
- package/utils/string.amd.js.map +1 -1
- package/utils/string.d.ts +1 -1
- package/utils/string.js +41 -28
- 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.d.ts +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.d.ts +1 -1
- package/utils/url.js +1 -1
- package/utils/url.js.map +1 -1
- package/web-types.json +130 -130
- package/.chunks/core-CcWs0qYw.amd.js +0 -2
- package/.chunks/core-CcWs0qYw.amd.js.map +0 -1
- package/.chunks/core-Dsl28h7N.es.js.map +0 -1
- package/.chunks/datepicker-B6kIyIcw.amd.js +0 -2
- package/.chunks/datepicker-B6kIyIcw.amd.js.map +0 -1
- package/.chunks/datepicker-BTiE5Grw.es.js.map +0 -1
- package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js +0 -140
- package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js.map +0 -1
- package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js +0 -2
- package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js +0 -266
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js.map +0 -1
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js +0 -2
- package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js.map +0 -1
- package/.chunks/forms-BsuCen2-.es.js +0 -1999
- package/.chunks/forms-BsuCen2-.es.js.map +0 -1
- package/.chunks/forms-BwGakScF.amd.js +0 -3
- package/.chunks/forms-BwGakScF.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js +0 -2
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js.map +0 -1
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js +0 -181
- package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js +0 -2
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js.map +0 -1
- package/.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js.map +0 -1
- package/.chunks/notice-CJdCc72d.amd.js.map +0 -1
- package/.chunks/notice-Cqs1dKt8.es.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js +0 -2
- package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js.map +0 -1
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js.map +0 -1
- package/.chunks/popup-CLhWWJDe.amd.js +0 -2
- package/.chunks/popup-CLhWWJDe.amd.js.map +0 -1
- package/.chunks/popup-N10MDafw.es.js +0 -416
- package/.chunks/popup-N10MDafw.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/store-esTid5oI.amd.js.map +0 -1
- package/.chunks/utils-B1H3EGkg.es.js.map +0 -1
- package/.chunks/utils-B7GVqGBH.amd.js +0 -2
- package/.chunks/utils-B7GVqGBH.amd.js.map +0 -1
- package/.chunks/utils-DIy2mbYd.amd.js +0 -2
- package/.chunks/utils-DIy2mbYd.amd.js.map +0 -1
- package/.chunks/utils-bjr7c5my.es.js +0 -225
- package/.chunks/utils-bjr7c5my.es.js.map +0 -1
- package/CHANGELOG.md +0 -14
- package/components/charts/charts.d.ts +0 -5
- 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/forms.d.ts +0 -27
- package/components/forms/helpers.d.ts +0 -10
- package/components/forms/input/input.d.ts +0 -34
- package/components/forms/inputDate/inputDate.d.ts +0 -3
- package/components/forms/select/stories/exampleOptions.d.ts +0 -5
- package/components/formsExt/formsExt.d.ts +0 -13
- package/components/formsExt/menu/stories/items.d.ts +0 -3
- package/components/formsExt/navigationMenu/navigationMenu.d.ts +0 -24
- package/components/formsExt/navigationMenu/stories/items.d.ts +0 -3
- package/components/formsExt/selector2/api.d.ts +0 -8
- package/components/formsExt/selector2/selector2.vue.d.ts +0 -210
- package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
- package/components/layout/layout.d.ts +0 -9
- package/components/popup/alert/alert.d.ts +0 -8
- package/components/popup/alert/alert.vue.d.ts +0 -31
- 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/popup.d.ts +0 -15
- package/components/popup/prompt/prompt.vue.d.ts +0 -33
- package/components/project/project.d.ts +0 -15
- package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
- package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
- package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
- package/components/project/selectorRegion/utils/consts.d.ts +0 -18
- package/components/tabs/tabs.d.ts +0 -7
- package/components/tabsView/tabsView/store.d.ts +0 -192
- package/components/tabsView/tabsView.d.ts +0 -7
- package/icomoon/Topvisor icons.json +0 -6260
- /package/assets/{popup.css → widgetInput.css} +0 -0
- /package/{components/charts/miniChart/miniChart.d.ts → src/components/charts/miniChart/types.d.ts} +0 -0
- /package/{components → src/components}/charts/miniChart/utils/consts.d.ts +0 -0
- /package/{components → src/components}/core/notice/item/item.vue.d.ts +0 -0
- /package/{components → src/components}/core/notice/notice.vue.d.ts +0 -0
- /package/{components → src/components}/core/notice/types.d.ts +0 -0
- /package/{components → src/components}/core/notice/utils.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/types.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/composables/utils.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/dialog.vue.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/page/page.vue.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog/types.d.ts +0 -0
- /package/{components → src/components}/dialog/dialog.d.ts +0 -0
- /package/{components/forms/checkbox/checkbox.d.ts → src/components/forms/checkbox/types.d.ts} +0 -0
- /package/{components/forms/controlLabel/controlLabel.d.ts → src/components/forms/controlLabel/types.d.ts} +0 -0
- /package/{components/forms/hint/hint.d.ts → src/components/forms/hint/types.d.ts} +0 -0
- /package/{components → src/components}/forms/inputDate/datepicker.d.ts +0 -0
- /package/{components → src/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
- /package/{components/layout/islandRows/islandRowsRow → src/components/forms/inputRange}/types.d.ts +0 -0
- /package/{components → src/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
- /package/{components/project/tagSelector/tagIcon/tagIcon.vue.d.ts → src/components/forms/preloader/preloader.vue.d.ts} +0 -0
- /package/{components/forms/radio/radio.d.ts → src/components/forms/radio/types.d.ts} +0 -0
- /package/{components/forms/switcher/switcher.d.ts → src/components/forms/switcher/types.d.ts} +0 -0
- /package/{components → src/components}/formsExt/info/info.vue.d.ts +0 -0
- /package/{components/formsExt/menu/menu.d.ts → src/components/formsExt/menu/types.d.ts} +0 -0
- /package/{components → src/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
- /package/{components → src/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
- /package/{components/forms/inputRange/inputRange.d.ts → src/components/layout/islandRows/islandRowsRow/types.d.ts} +0 -0
- /package/{components → src/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
- /package/{components → src/components}/layout/rows/rows.vue.d.ts +0 -0
- /package/{components → src/components}/layout/rows/types.d.ts +0 -0
- /package/{components → src/components}/popup/lib/worker.globalEvents.d.ts +0 -0
- /package/{components → src/components}/popup/worker.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
- /package/{components → src/components}/project/tagSelector/utils/utils.d.ts +0 -0
- /package/{components/tabs/tabs/tabs.d.ts → src/components/tabs/tabs/types.d.ts} +0 -0
- /package/{components → src/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
- /package/{components → src/components}/tabsView/tabsView/utils.d.ts +0 -0
- /package/{core → src/core}/core/events/resize.d.ts +0 -0
- /package/{core → src/core}/core/events.d.ts +0 -0
- /package/{core → src/core}/core/preloaders.d.ts +0 -0
- /package/{core → src/core}/directives/data.d.ts +0 -0
- /package/{core → src/core}/directives/focus.d.ts +0 -0
- /package/{core → src/core}/directives/scrollIntoView.d.ts +0 -0
- /package/{core → src/core}/directives/scrollShadow.d.ts +0 -0
- /package/{core → src/core}/directives/sticky.d.ts +0 -0
- /package/{core → src/core}/directives/swimUp.d.ts +0 -0
- /package/{core → src/core}/directives/tooltip.d.ts +0 -0
- /package/{core → src/core}/plugins/piniaTPA.d.ts +0 -0
- /package/{core → src/core}/utils/check.d.ts +0 -0
- /package/{core → src/core}/utils/clipboard.d.ts +0 -0
- /package/{core → src/core}/utils/device.d.ts +0 -0
- /package/{core → src/core}/utils/image.d.ts +0 -0
- /package/{core → src/core}/utils/keyboard.d.ts +0 -0
- /package/{core → src/core}/utils/lodash.d.ts +0 -0
- /package/{core → src/core}/utils/number.d.ts +0 -0
- /package/{core → src/core}/utils/price.d.ts +0 -0
- /package/{core → src/core}/utils/scroll.d.ts +0 -0
- /package/{core → src/core}/utils/store/localStorage.d.ts +0 -0
- /package/{core → src/core}/utils/store/plugin.d.ts +0 -0
- /package/{core → src/core}/utils/store/store.d.ts +0 -0
- /package/{core → src/core}/utils/system.d.ts +0 -0
- /package/{core → src/core}/utils/url.d.ts +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace Api {
|
|
3
|
+
namespace Mocker {
|
|
4
|
+
/**
|
|
5
|
+
* Классический трюк: заставляет TS раскрыть алиас в структурный тип, тем самым устраняя разницу между «инлайн» и «через имя типа».
|
|
6
|
+
*/
|
|
7
|
+
type Expand<T> = T extends infer U ? {
|
|
8
|
+
[K in keyof U]: U[K];
|
|
9
|
+
} : never;
|
|
10
|
+
/**
|
|
11
|
+
* Настройки генерации результата
|
|
12
|
+
*
|
|
13
|
+
* Объект, массив или просто значение
|
|
14
|
+
*
|
|
15
|
+
* Для генерации можно использовать библиотеку **faker-js**
|
|
16
|
+
*
|
|
17
|
+
* Пример:
|
|
18
|
+
*
|
|
19
|
+
* ```
|
|
20
|
+
* [{
|
|
21
|
+
* id: faker.number.int,
|
|
22
|
+
* name: faker.name.firstName,
|
|
23
|
+
* email: faker.internet.email,
|
|
24
|
+
* }]
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see https://fakerjs.dev/
|
|
28
|
+
*/
|
|
29
|
+
type Result = [Item] | Item | Value;
|
|
30
|
+
/**
|
|
31
|
+
* Генератор элемента результата
|
|
32
|
+
*
|
|
33
|
+
* Пример:
|
|
34
|
+
*
|
|
35
|
+
* ```
|
|
36
|
+
* {
|
|
37
|
+
* id: faker.number.int,
|
|
38
|
+
* name: faker.name.firstName,
|
|
39
|
+
* email: faker.internet.email,
|
|
40
|
+
* }
|
|
41
|
+
*/
|
|
42
|
+
type Item = Record<string, Value>;
|
|
43
|
+
/**
|
|
44
|
+
* Генератор значения
|
|
45
|
+
*
|
|
46
|
+
* Пример:
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
* faker.number.int
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
type Value = (n: number) => any;
|
|
53
|
+
type Params = Record<string, any>;
|
|
54
|
+
type Options<Result extends Api.Mocker.Result, Params extends Api.Mocker.Params> = {
|
|
55
|
+
/**
|
|
56
|
+
* Шаблон генерации результата
|
|
57
|
+
*
|
|
58
|
+
* Если результат массив, то будут учтены параметры: `fields`, `limit` и настройка `useFilter()`
|
|
59
|
+
*
|
|
60
|
+
* Если результат объект, то будет учтен параметр: `fields`
|
|
61
|
+
*/
|
|
62
|
+
result: Result;
|
|
63
|
+
/**
|
|
64
|
+
* Если указано, будет подключен механизм пагинации с `total` и `nextOffset`
|
|
65
|
+
*
|
|
66
|
+
* Только если `result` массив
|
|
67
|
+
*/
|
|
68
|
+
total?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Функция для фильтра сгенерированных моков
|
|
71
|
+
*
|
|
72
|
+
* Для имитации работы фильтров в методах API
|
|
73
|
+
*
|
|
74
|
+
* Только если `result` массив
|
|
75
|
+
*
|
|
76
|
+
* @return Вернет `true`, если сгенерированный мок должен попасть в результат
|
|
77
|
+
*/
|
|
78
|
+
useFilter?: (resultItem: Result extends [Item] ? ToMockItem<Result[0]> : never, params: Params) => boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Пауза перед возвращением результата
|
|
81
|
+
*
|
|
82
|
+
* @see https://fakerjs.dev/api/simpleFaker.html#delay
|
|
83
|
+
*/
|
|
84
|
+
delay?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Показывать ли лог мокирования запросов
|
|
87
|
+
*/
|
|
88
|
+
showLog?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Начальное значение рандомайзера
|
|
91
|
+
*
|
|
92
|
+
* Установите `-1`, если хотите, чтобы данные менялись каждый запрос, `-1` нельзя использовать в кейсах с фильтрацией, сортировкой и пагинацией
|
|
93
|
+
*
|
|
94
|
+
* @see https://fakerjs.dev/api/simpleFaker.html#seed
|
|
95
|
+
*/
|
|
96
|
+
seed?: number;
|
|
97
|
+
};
|
|
98
|
+
type ToMockItem<T extends Item> = {
|
|
99
|
+
[K in keyof T]: ReturnType<T[K]>;
|
|
100
|
+
};
|
|
101
|
+
type ToMockValue<T extends Value> = ReturnType<T>;
|
|
102
|
+
type ToMockResult<T extends Result> = T extends [infer I extends Item] ? ToMockItem<I>[] : T extends Item ? ToMockItem<T> : T extends Value ? ToMockValue<T> : never;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
/**
|
|
3
|
+
* Утилиты работы со схемами расширения спецификации OpenAPI для работы с селектором
|
|
4
|
+
*
|
|
5
|
+
* @see Api.Ext
|
|
6
|
+
*/
|
|
7
|
+
namespace Api {
|
|
8
|
+
/**
|
|
9
|
+
* Тип операции метода API
|
|
10
|
+
*/
|
|
11
|
+
type Oper<Paths extends Api.PathsAbstract, Path extends Api.Path<Paths>> = Path extends `/${infer P extends Api.Ext.Schemas['Oper']}/${string}` ? P : never;
|
|
12
|
+
/**
|
|
13
|
+
* Модель данных метода
|
|
14
|
+
*
|
|
15
|
+
* Для метода без модели вернет `null`
|
|
16
|
+
*/
|
|
17
|
+
type Model<Paths extends Api.PathsAbstract, Path extends Api.Path<Paths>> = Paths[Path]['post']['responses'][200]['content'] extends {
|
|
18
|
+
model: infer Model extends Api.Ext.Schemas['Model'];
|
|
19
|
+
} ? Model : never;
|
|
20
|
+
type ModelFields<Model extends Api.Ext.Schemas['Model']> = readonly Api.Field.Name<Model>[];
|
|
21
|
+
/**
|
|
22
|
+
* Результат метода API, выполненного успешно
|
|
23
|
+
*/
|
|
24
|
+
type ResponseSuccess<Result, Oper extends Api.Ext.Schemas['Oper']> = {
|
|
25
|
+
result: Result;
|
|
26
|
+
/**
|
|
27
|
+
* Информация о нативных типах данных в результате
|
|
28
|
+
*
|
|
29
|
+
* Возвращается при работе с БД
|
|
30
|
+
*/
|
|
31
|
+
meta?: any[];
|
|
32
|
+
/**
|
|
33
|
+
* Списка ошибок в успешных запросах быть не может
|
|
34
|
+
*/
|
|
35
|
+
errors: undefined;
|
|
36
|
+
response?: globalThis.Response;
|
|
37
|
+
} & Omit<Api.Ext.Schemas['ResponseSuccess'], 'result' | 'errors'> & ('get' extends Oper ? Api.Ext.Schemas['Pagination'] : {});
|
|
38
|
+
/**
|
|
39
|
+
* Результат метода API с ошибкой
|
|
40
|
+
*/
|
|
41
|
+
type ResponseError<Result> = {
|
|
42
|
+
/**
|
|
43
|
+
* При ошибках результат всегда null
|
|
44
|
+
*/
|
|
45
|
+
result: null | Result;
|
|
46
|
+
response?: globalThis.Response;
|
|
47
|
+
} & Omit<Api.Ext.Schemas['ResponseError'], 'result'>;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -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
|
+
* Модель данных конкретного метода API
|
|
28
|
+
*/
|
|
29
|
+
type Model<Path extends Api.Path<Paths>> = Api.Model<Paths, Path>;
|
|
30
|
+
/**
|
|
31
|
+
* Параметр списка полей `fields` конкретного метода API
|
|
32
|
+
*/
|
|
33
|
+
type Fields<Path extends Api.Path<Paths>> = Api.ParamsFields<Api.ClientRequestContext<Paths, Path, true>>;
|
|
34
|
+
/**
|
|
35
|
+
* Объект запроса к конкретному методу API
|
|
36
|
+
*
|
|
37
|
+
* Дженерик Fields в чистом TypeScript не будет работать, так как используется tuple, работает при указании значения в самом js
|
|
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, subdomain?: 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, Api.Field.Name<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,26 @@
|
|
|
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
|
+
/**
|
|
14
|
+
* Вставляет данные в HTML форму
|
|
15
|
+
*/
|
|
16
|
+
export declare const dataToForm: (elForm: HTMLFormElement, data: Record<string, any>) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Сериализация данных в объект FormData
|
|
19
|
+
*
|
|
20
|
+
* Для отправки файлов или генерации форм
|
|
21
|
+
*/
|
|
22
|
+
export declare const formDataSerializer: (data: Record<string, any>, formData?: FormData, parentKey?: string) => FormData;
|
|
23
|
+
/**
|
|
24
|
+
* Сериализация данных для вставки в виде параметров в url
|
|
25
|
+
*/
|
|
26
|
+
export declare const querySerializer: (data: Record<string, unknown>) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Props } from './miniCharts';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
import { Item } from '../miniChart/
|
|
3
|
+
import { Item } from '../miniChart/types';
|
|
4
4
|
type __VLS_Props = Props;
|
|
5
5
|
type __VLS_PublicProps = {
|
|
6
6
|
modelValue?: Props['modelValue'];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { TopDialogHandle } from '../composables/dialogHandle';
|
|
2
2
|
import { TopDialogComponent } from '../composables/types';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Получить компонент диалогового окна по id
|
|
6
|
+
*/
|
|
4
7
|
export declare const getDialogWorker: (id: string) => TopDialogHandle<TopDialogComponent> | undefined;
|
|
5
8
|
/**
|
|
6
9
|
* Добавить компонент диалогового окна для использования
|
|
@@ -60,7 +60,7 @@ export interface Slots {
|
|
|
60
60
|
/**
|
|
61
61
|
* Кнопки для шапки страницы
|
|
62
62
|
*/
|
|
63
|
-
headerButtons(props: {}): any;
|
|
63
|
+
headerButtons?(props: {}): any;
|
|
64
64
|
/**
|
|
65
65
|
* Контент страницы
|
|
66
66
|
*/
|
|
@@ -68,5 +68,5 @@ export interface Slots {
|
|
|
68
68
|
/**
|
|
69
69
|
* Футер страницы
|
|
70
70
|
*/
|
|
71
|
-
footer(props: {}): any;
|
|
71
|
+
footer?(props: {}): any;
|
|
72
72
|
}
|
|
@@ -19,3 +19,26 @@ export type TopDialogOptions = {
|
|
|
19
19
|
export type TopDialogLoad = (dialogId: string) => Promise<void>;
|
|
20
20
|
export type DecoratorOnCreate = (elDialog: HTMLElement) => Promise<void>;
|
|
21
21
|
export type MoveDirection = 'next' | 'prev' | 'none';
|
|
22
|
+
export type ElTopDialogOpener<El extends HTMLElement = HTMLElement> = El & {
|
|
23
|
+
dataset: {
|
|
24
|
+
toView: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type ElTopDialogWrapper = HTMLElement & {
|
|
28
|
+
querySelector: (selectors: '.ui-dialog-content') => ElTopDialog;
|
|
29
|
+
};
|
|
30
|
+
export type ElTopDialog = HTMLElement & {
|
|
31
|
+
getAttribute: (qualifiedName: 'id') => string;
|
|
32
|
+
closest: (el: '.ui-dialog') => ElTopDialogWrapper;
|
|
33
|
+
dataset: {
|
|
34
|
+
viewPageActive: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type ElTopDialogBody = HTMLElement;
|
|
38
|
+
export type ElTopDialogPage = HTMLElement & {
|
|
39
|
+
dataset: {
|
|
40
|
+
'view-page': string;
|
|
41
|
+
order?: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export type ElTopDialogModalLayer = HTMLElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElTopDialog, ElTopDialogPage, MoveDirection } from './types';
|
|
2
|
+
export declare const TopDialogUtils: {
|
|
3
|
+
getElDialogById: (id: string) => ElTopDialog | null;
|
|
4
|
+
updatePageVue: (dialogId: string, pageName?: string, pageNameNext?: string) => Promise<void>;
|
|
5
|
+
recalcPositions: () => void;
|
|
6
|
+
toViewDirty: (toViewPageName: string, moveDirection?: MoveDirection) => Promise<void>;
|
|
7
|
+
toView: (viewNameOrElDialog: ElTopDialog | JQuery<ElTopDialog> | string, pageName?: string, args?: string[], moveDirection?: MoveDirection, callback?: Function) => Promise<void>;
|
|
8
|
+
toViewPage: (elDialog: ElTopDialog | JQuery<ElTopDialog>, pageName?: string, args?: string[], moveDirection?: MoveDirection) => Promise<void>;
|
|
9
|
+
toPrevPage: (elDialog: ElTopDialog) => void;
|
|
10
|
+
setLoading: (elPages: ElTopDialogPage[] | JQuery<ElTopDialogPage>, isLoading: boolean, duration?: number) => void;
|
|
11
|
+
isLoading: (elPage: ElTopDialogPage | JQuery<ElTopDialogPage>) => boolean;
|
|
12
|
+
inAnimation: (elDialog: ElTopDialog | JQuery<ElTopDialog>) => boolean;
|
|
13
|
+
close: (dialogId: string) => void;
|
|
14
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Инициализация глобальных событий для диалоговых окон
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* Производится один раз при подключении диалогового окна
|
|
5
5
|
*
|
|
6
|
-
* События не
|
|
6
|
+
* События не размонтируются
|
|
7
7
|
*/
|
|
8
8
|
export declare const initDialogGlobalEvents: () => void;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { MoveDirection, TopDialogOptions } from './types';
|
|
1
|
+
import { ElTopDialog, ElTopDialogPage, MoveDirection, TopDialogOptions } from './types';
|
|
2
2
|
import { $el } from '../../types';
|
|
3
3
|
export declare abstract class TopDialogWorker {
|
|
4
4
|
static state: {
|
|
5
5
|
load: TopDialogOptions["load"] | undefined;
|
|
6
6
|
decoratorOnCreate: TopDialogOptions["decoratorOnCreate"] | undefined;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Порядковый номер перехода в диалоговых окнах
|
|
9
9
|
*
|
|
10
|
-
* Для расчета
|
|
10
|
+
* Для расчета анимации Вперед / Назад
|
|
11
11
|
*/
|
|
12
12
|
viewPageN: number;
|
|
13
|
-
locationHashPrev: string;
|
|
14
13
|
};
|
|
15
14
|
private static inited;
|
|
16
15
|
/**
|
|
@@ -19,24 +18,41 @@ export declare abstract class TopDialogWorker {
|
|
|
19
18
|
* Если в параметрах есть запрос на открытие диалогового окна, TopDialog будет автоматически подключен на страницу
|
|
20
19
|
*/
|
|
21
20
|
static init(options?: TopDialogOptions): void;
|
|
21
|
+
private static opendDialogsFromChangeUrl;
|
|
22
22
|
static getDialogsUtils(): Promise<{
|
|
23
|
+
getElDialogById: (id: string) => ElTopDialog | null;
|
|
23
24
|
updatePageVue: (dialogId: string, pageName?: string, pageNameNext?: string) => Promise<void>;
|
|
24
25
|
recalcPositions: () => void;
|
|
25
26
|
toViewDirty: (toViewPageName: string, moveDirection?: MoveDirection) => Promise<void>;
|
|
26
|
-
toView: (
|
|
27
|
-
toViewPage: (
|
|
28
|
-
toPrevPage: (
|
|
29
|
-
setLoading: (
|
|
30
|
-
isLoading: (
|
|
31
|
-
inAnimation: (
|
|
27
|
+
toView: (viewNameOrElDialog: ElTopDialog | JQuery<ElTopDialog> | string, pageName?: string, args?: string[], moveDirection?: MoveDirection, callback?: Function) => Promise<void>;
|
|
28
|
+
toViewPage: (elDialog: ElTopDialog | JQuery<ElTopDialog>, pageName?: string, args?: string[], moveDirection?: MoveDirection) => Promise<void>;
|
|
29
|
+
toPrevPage: (elDialog: ElTopDialog) => void;
|
|
30
|
+
setLoading: (elPages: ElTopDialogPage[] | JQuery<ElTopDialogPage>, isLoading: boolean, duration?: number) => void;
|
|
31
|
+
isLoading: (elPage: ElTopDialogPage | JQuery<ElTopDialogPage>) => boolean;
|
|
32
|
+
inAnimation: (elDialog: ElTopDialog | JQuery<ElTopDialog>) => boolean;
|
|
32
33
|
close: (dialogId: string) => void;
|
|
33
34
|
}>;
|
|
35
|
+
static getDialog(el: HTMLElement): ElTopDialog | null;
|
|
36
|
+
/**
|
|
37
|
+
* todo: Переписать на сайте на this.getDialog()
|
|
38
|
+
*
|
|
39
|
+
* @deprecated Для обратной совместимости
|
|
40
|
+
*/
|
|
34
41
|
static get$dialog($el: $el): JQuery<HTMLElement>;
|
|
42
|
+
static getPage(el: HTMLElement): ElTopDialogPage | null;
|
|
43
|
+
/**
|
|
44
|
+
* todo: Переписать на сайте на this.getPage()
|
|
45
|
+
*
|
|
46
|
+
* @deprecated Для обратной совместимости
|
|
47
|
+
*/
|
|
35
48
|
static get$page($el: $el): JQuery<HTMLElement>;
|
|
36
49
|
/**
|
|
37
|
-
*
|
|
50
|
+
* todo: Переписать на сайте на this.getPairPage()
|
|
51
|
+
*
|
|
52
|
+
* @deprecated Для обратной совместимости
|
|
38
53
|
*/
|
|
39
54
|
static get$pairPage($el: $el): JQuery<HTMLElement>;
|
|
55
|
+
static getPairPage(el: HTMLElement): HTMLElement[] | undefined;
|
|
40
56
|
/**
|
|
41
57
|
* Закрыть диалоговое окно
|
|
42
58
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TopRive } from './rive/rive.vue';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Rive } from '@rive-app/canvas-lite';
|
|
2
|
+
import { Props } from './types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
declare const _default: DefineComponent<Props, {
|
|
5
|
+
riveInstance: Rive | undefined;
|
|
6
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
autoplay: boolean;
|
|
8
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
9
|
+
el: HTMLCanvasElement;
|
|
10
|
+
}, HTMLCanvasElement>;
|
|
11
|
+
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Props, Size } from './
|
|
1
|
+
import { Props, Size } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
4
|
+
size: Size;
|
|
4
5
|
i18n: {
|
|
5
6
|
Online: string;
|
|
6
7
|
LastSeen: string;
|
|
7
8
|
};
|
|
8
|
-
size: Size;
|
|
9
9
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
10
|
export default _default;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export interface Props {
|
|
2
|
+
/**
|
|
3
|
+
* Размер
|
|
4
|
+
*/
|
|
2
5
|
size?: Size;
|
|
3
6
|
/**
|
|
4
7
|
* Изображение для аватара пользователя
|
|
@@ -21,18 +24,9 @@ export interface Props {
|
|
|
21
24
|
*/
|
|
22
25
|
i18n?: I18n;
|
|
23
26
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Размеры аватара
|
|
26
|
-
*/
|
|
27
|
-
export declare const sizes: {
|
|
28
|
-
readonly 24: 24;
|
|
29
|
-
readonly 28: 28;
|
|
30
|
-
readonly 40: 40;
|
|
31
|
-
readonly 64: 64;
|
|
32
|
-
};
|
|
33
|
-
export type Size = typeof sizes[keyof typeof sizes];
|
|
34
27
|
type I18n = {
|
|
35
28
|
Online: string;
|
|
36
29
|
LastSeen: string;
|
|
37
30
|
};
|
|
31
|
+
export type Size = 24 | 28 | 40 | 64;
|
|
38
32
|
export {};
|