@topvisor/ui 1.2.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-CY6RkZz2.es.js +197 -0
- package/.chunks/core-CY6RkZz2.es.js.map +1 -0
- package/.chunks/datepicker-BiaXdEIn.es.js +44 -0
- 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-COD_4iTy.es.js +110 -0
- package/.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js.map +1 -0
- package/.chunks/notice-CPtAnc7p.amd.js +4 -0
- package/.chunks/notice-CPtAnc7p.amd.js.map +1 -0
- package/.chunks/notice-fno9saBY.es.js +175 -0
- package/.chunks/notice-fno9saBY.es.js.map +1 -0
- package/.chunks/page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js +143 -0
- 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-CNOnFR2-.amd.js.map +1 -0
- package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
- package/.chunks/punycode.es6-CgGegfA_.es.js.map +1 -0
- package/.chunks/store-CX_6ZXhO.es.js +29 -0
- package/.chunks/store-CX_6ZXhO.es.js.map +1 -0
- package/.chunks/store-YRW59xEF.amd.js +2 -0
- package/.chunks/store-YRW59xEF.amd.js.map +1 -0
- package/.chunks/utils-3M9LC_L_.es.js +79 -0
- 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 -33
- 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/charts.css +1 -0
- package/assets/core.css +1 -0
- package/assets/dialog_selectorRegions.css +1 -0
- package/assets/extra.css +1 -0
- package/assets/forms.css +1 -0
- package/assets/formsExt.css +1 -0
- package/assets/layout.css +1 -0
- package/assets/listItem.css +1 -0
- package/assets/menu.css +1 -0
- package/assets/notice.css +1 -0
- package/assets/project.css +1 -0
- package/assets/tabs.css +1 -0
- package/assets/tabsView.css +1 -0
- package/assets/themes/dark-th.css +1 -0
- package/assets/themes/dark.css +1 -0
- package/assets/themes/light.css +1 -0
- package/assets/widgetInput.css +1 -0
- package/charts/charts.amd.js +2 -0
- package/charts/charts.amd.js.map +1 -0
- package/charts/charts.d.ts +2 -0
- package/charts/charts.js +178 -0
- package/charts/charts.js.map +1 -0
- package/core/app.amd.js +2 -0
- package/core/app.amd.js.map +1 -0
- package/core/app.d.ts +2 -0
- package/core/app.js +216 -0
- package/core/app.js.map +1 -0
- package/dialog/dialog.amd.js +2 -0
- package/dialog/dialog.amd.js.map +1 -0
- package/dialog/dialog.d.ts +2 -0
- package/dialog/dialog.js +60 -0
- package/dialog/dialog.js.map +1 -0
- 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 +2 -0
- package/forms/forms.amd.js.map +1 -0
- package/forms/forms.d.ts +2 -0
- package/forms/forms.js +19 -0
- package/forms/forms.js.map +1 -0
- package/forms/helpers.amd.js +2 -0
- package/forms/helpers.amd.js.map +1 -0
- package/forms/helpers.d.ts +1 -0
- package/forms/helpers.js +2 -0
- package/forms/helpers.js.map +1 -0
- package/formsExt/formsExt.amd.js +2 -0
- package/formsExt/formsExt.amd.js.map +1 -0
- package/formsExt/formsExt.d.ts +2 -0
- package/formsExt/formsExt.js +697 -0
- package/formsExt/formsExt.js.map +1 -0
- package/icomoon/Read Me.txt +7 -0
- package/icomoon/demo-files/demo.css +158 -0
- package/icomoon/demo-files/demo.js +30 -0
- package/icomoon/demo.css +158 -0
- package/icomoon/demo.html +3782 -0
- package/icomoon/demo.js +30 -0
- package/icomoon/fonts/Topvisor-2.eot +0 -0
- package/icomoon/fonts/Topvisor-2.svg +293 -0
- package/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/icomoon/fonts/Topvisor-2.woff +0 -0
- package/icomoon/selection.json +1 -0
- package/icomoon/style.css +828 -0
- package/jquery-ui.min.css +6 -0
- package/layout/layout.amd.js +2 -0
- package/layout/layout.amd.js.map +1 -0
- package/layout/layout.d.ts +2 -0
- package/layout/layout.js +62 -0
- package/layout/layout.js.map +1 -0
- package/package.json +36 -88
- package/popup/popup.amd.js +2 -0
- package/popup/popup.amd.js.map +1 -0
- package/popup/popup.d.ts +2 -0
- package/popup/popup.js +228 -0
- package/popup/popup.js.map +1 -0
- package/popup/worker.amd.js +2 -0
- package/popup/worker.amd.js.map +1 -0
- package/popup/worker.d.ts +2 -0
- package/popup/worker.js +138 -0
- package/popup/worker.js.map +1 -0
- package/project/project.amd.js +2 -0
- package/project/project.amd.js.map +1 -0
- package/project/project.d.ts +2 -0
- package/project/project.js +986 -0
- package/project/project.js.map +1 -0
- package/require/css.amd.js +12 -0
- 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/src/components/charts/miniChart/miniChart.vue.d.ts +15 -0
- package/src/components/charts/miniChart/types.d.ts +92 -0
- package/src/components/charts/miniChart/utils/consts.d.ts +8 -0
- package/src/components/charts/miniCharts/miniCharts.d.ts +20 -0
- package/src/components/charts/miniCharts/miniCharts.vue.d.ts +32 -0
- package/src/components/core/notice/item/item.vue.d.ts +10 -0
- package/src/components/core/notice/item/types.d.ts +63 -0
- package/src/components/core/notice/notice.vue.d.ts +5 -0
- package/src/components/core/notice/types.d.ts +1 -0
- package/src/components/core/notice/utils.d.ts +27 -0
- package/src/components/dialog/dialog/composables/asyncDialogHandle.d.ts +51 -0
- package/src/components/dialog/dialog/composables/dialogHandle.d.ts +108 -0
- package/src/components/dialog/dialog/composables/types.d.ts +11 -0
- package/src/components/dialog/dialog/composables/utils.d.ts +21 -0
- package/src/components/dialog/dialog/dialog.vue.d.ts +28 -0
- package/src/components/dialog/dialog/dialogs/dialogs.vue.d.ts +13 -0
- package/src/components/dialog/dialog/page/page.vue.d.ts +19 -0
- package/src/components/dialog/dialog/page/types.d.ts +72 -0
- package/src/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +6 -0
- package/src/components/dialog/dialog/pageComponent/types.d.ts +18 -0
- package/src/components/dialog/dialog/stories/dialog_example/pages/utils.d.ts +7 -0
- package/src/components/dialog/dialog/types.d.ts +58 -0
- package/src/components/dialog/dialog.d.ts +6 -0
- package/src/components/dialog/lib/types.d.ts +44 -0
- package/src/components/dialog/lib/utils.d.ts +14 -0
- package/src/components/dialog/lib/utils.globalEvents.d.ts +8 -0
- package/src/components/dialog/lib/worker.d.ts +76 -0
- 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/src/components/forms/avatar/avatar.vue.d.ts +10 -0
- package/src/components/forms/avatar/types.d.ts +32 -0
- package/src/components/forms/button/button.vue.d.ts +21 -0
- package/src/components/forms/button/types.d.ts +49 -0
- package/src/components/forms/caption/caption.vue.d.ts +17 -0
- package/src/components/forms/caption/types.d.ts +9 -0
- package/src/components/forms/checkbox/checkbox.vue.d.ts +27 -0
- package/src/components/forms/checkbox/types.d.ts +21 -0
- package/src/components/forms/controlLabel/controlLabel.vue.d.ts +19 -0
- package/src/components/forms/controlLabel/types.d.ts +4 -0
- package/src/components/forms/forms.d.ts +15 -0
- package/src/components/forms/helpers.d.ts +1 -0
- package/src/components/forms/hint/hint.vue.d.ts +4 -0
- package/src/components/forms/hint/types.d.ts +8 -0
- package/src/components/forms/input/input.vue.d.ts +27 -0
- package/src/components/forms/input/types.d.ts +23 -0
- package/src/components/forms/inputDate/datepicker.d.ts +5 -0
- package/src/components/forms/inputDate/inputDate.vue.d.ts +12 -0
- package/src/components/forms/inputDate/types.d.ts +1 -0
- package/src/components/forms/inputRange/inputRange.vue.d.ts +19 -0
- package/src/components/forms/inputRange/types.d.ts +2 -0
- package/src/components/forms/loadbar/loadbar.vue.d.ts +3 -0
- package/src/components/forms/preloader/preloader.vue.d.ts +4 -0
- package/src/components/forms/preloader/types.d.ts +3 -0
- package/src/components/forms/radio/radio.vue.d.ts +23 -0
- package/src/components/forms/radio/types.d.ts +14 -0
- package/src/components/forms/select/select.vue.d.ts +17 -0
- package/src/components/forms/select/types.d.ts +58 -0
- package/src/components/forms/switcher/switcher.vue.d.ts +23 -0
- package/src/components/forms/switcher/types.d.ts +21 -0
- package/src/components/forms/textarea/textarea.vue.d.ts +12 -0
- package/src/components/forms/textarea/types.d.ts +44 -0
- package/src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +16 -0
- package/src/components/formsExt/checkboxGroup/types.d.ts +19 -0
- package/src/components/formsExt/editArea/editArea.vue.d.ts +18 -0
- package/src/components/formsExt/editArea/types.d.ts +33 -0
- package/src/components/formsExt/editInput/editInput.vue.d.ts +8 -0
- package/src/components/formsExt/editInput/types.d.ts +16 -0
- package/src/components/formsExt/formsExt.d.ts +8 -0
- package/src/components/formsExt/info/info.vue.d.ts +20 -0
- package/src/components/formsExt/info/types.d.ts +21 -0
- package/src/components/formsExt/menu/menu.vue.d.ts +16 -0
- package/src/components/formsExt/menu/types.d.ts +37 -0
- package/src/components/formsExt/policy/policy.vue.d.ts +8 -0
- package/src/components/formsExt/policy/types.d.ts +20 -0
- package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +16 -0
- package/src/components/formsExt/radioGroup/types.d.ts +21 -0
- package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +16 -0
- package/src/components/formsExt/selector2/itemMulti.vue.d.ts +8 -0
- package/src/components/formsExt/selector2/selector2.vue.d.ts +43 -0
- package/src/components/formsExt/selector2/types.d.ts +162 -0
- package/src/components/formsExt/selector2/utils.d.ts +6 -0
- package/src/components/layout/islandRows/islandRows.vue.d.ts +17 -0
- package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +18 -0
- package/src/components/layout/islandRows/islandRowsRow/types.d.ts +2 -0
- package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +18 -0
- package/src/components/layout/islandRows/types.d.ts +10 -0
- package/src/components/layout/layout.d.ts +4 -0
- package/src/components/layout/rows/rows.vue.d.ts +21 -0
- package/src/components/layout/rows/types.d.ts +6 -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/src/components/popup/confirm/types.d.ts +21 -0
- package/src/components/popup/lib/popup.d.ts +87 -0
- package/src/components/popup/lib/popup.globalEvents.d.ts +32 -0
- package/src/components/popup/lib/worker.d.ts +77 -0
- package/src/components/popup/lib/worker.globalEvents.d.ts +19 -0
- package/src/components/popup/popup/listItem.vue.d.ts +22 -0
- package/src/components/popup/popup/opener.vue.d.ts +17 -0
- package/src/components/popup/popup/popup.vue.d.ts +38 -0
- package/src/components/popup/popup/types.d.ts +110 -0
- package/src/components/popup/popup/widgetInput.vue.d.ts +17 -0
- package/src/components/popup/popup.d.ts +7 -0
- package/src/components/popup/prompt/prompt.vue.d.ts +26 -0
- package/src/components/popup/prompt/types.d.ts +21 -0
- package/src/components/popup/worker.d.ts +1 -0
- package/src/components/project/project.d.ts +9 -0
- package/src/components/project/selectorCompetitors/composables.d.ts +3 -0
- package/src/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +14 -0
- package/src/components/project/selectorCompetitors/types.d.ts +30 -0
- package/src/components/project/selectorRegion/composables/compare.d.ts +12 -0
- package/src/components/project/selectorRegion/composables/selectRegion.d.ts +13 -0
- package/src/components/project/selectorRegion/composables/selectSearcher.d.ts +13 -0
- package/src/components/project/selectorRegion/composables/selectorRegion.d.ts +25 -0
- package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +6 -0
- package/src/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +26 -0
- package/src/components/project/selectorRegion/selectorRegion.vue.d.ts +23 -0
- package/src/components/project/selectorRegion/types.d.ts +172 -0
- package/src/components/project/selectorRegion/utils/consts.d.ts +31 -0
- package/src/components/project/selectorRegion/utils/utils.d.ts +34 -0
- package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +20 -0
- package/src/components/project/tagSelector/popupListItem/types.d.ts +33 -0
- package/src/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +27 -0
- package/src/components/project/tagSelector/popupOpener/types.d.ts +64 -0
- package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +4 -0
- package/src/components/project/tagSelector/tagIcon/types.d.ts +21 -0
- package/src/components/project/tagSelector/tagSelector.vue.d.ts +37 -0
- package/src/components/project/tagSelector/tagsDefaults.d.ts +3 -0
- package/src/components/project/tagSelector/types.d.ts +140 -0
- package/src/components/project/tagSelector/utils/el.d.ts +19 -0
- package/src/components/project/tagSelector/utils/utils.d.ts +14 -0
- package/src/components/tabs/tabs/content.vue.d.ts +19 -0
- package/src/components/tabs/tabs/tab.vue.d.ts +19 -0
- package/src/components/tabs/tabs/tabs.vue.d.ts +21 -0
- package/src/components/tabs/tabs/types.d.ts +19 -0
- package/src/components/tabs/tabs.d.ts +3 -0
- package/src/components/tabsView/tabsView/menu.vue.d.ts +32 -0
- package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +3 -0
- package/src/components/tabsView/tabsView/menuItem.vue.d.ts +23 -0
- package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +20 -0
- package/src/components/tabsView/tabsView/store.d.ts +12 -0
- package/src/components/tabsView/tabsView/tabsView.vue.d.ts +34 -0
- package/src/components/tabsView/tabsView/types.d.ts +98 -0
- package/src/components/tabsView/tabsView/utils.d.ts +11 -0
- package/src/components/tabsView/tabsView.d.ts +3 -0
- package/src/core/app.d.ts +8 -0
- package/src/core/core/core.d.ts +113 -0
- package/src/core/core/events/resize.d.ts +16 -0
- package/src/core/core/events.d.ts +15 -0
- package/src/core/core/options.d.ts +47 -0
- package/src/core/core/preloaders.d.ts +19 -0
- package/src/core/core/state.d.ts +49 -0
- package/src/core/directives/data.d.ts +10 -0
- package/src/core/directives/focus.d.ts +10 -0
- package/src/core/directives/preloader.d.ts +8 -0
- package/src/core/directives/scrollIntoView.d.ts +3 -0
- package/src/core/directives/scrollShadow.d.ts +15 -0
- package/src/core/directives/sticky.d.ts +10 -0
- package/src/core/directives/swimUp.d.ts +15 -0
- package/src/core/directives/tooltip.d.ts +10 -0
- package/src/core/plugins/core.d.ts +60 -0
- package/src/core/plugins/i18n.d.ts +97 -0
- package/src/core/plugins/piniaTPA.d.ts +17 -0
- package/src/core/utils/check.d.ts +26 -0
- package/src/core/utils/clipboard.d.ts +12 -0
- package/src/core/utils/date.d.ts +70 -0
- package/src/core/utils/device.d.ts +50 -0
- package/src/core/utils/dom.d.ts +104 -0
- package/src/core/utils/image.d.ts +16 -0
- package/src/core/utils/keyboard.d.ts +8 -0
- package/src/core/utils/lodash.d.ts +6 -0
- package/src/core/utils/number.d.ts +17 -0
- package/src/core/utils/price.d.ts +10 -0
- package/src/core/utils/route.d.ts +33 -0
- package/src/core/utils/scroll.d.ts +32 -0
- package/src/core/utils/searchers.d.ts +38 -0
- package/src/core/utils/store/localStorage.d.ts +6 -0
- package/src/core/utils/store/plugin.d.ts +24 -0
- package/src/core/utils/store/store.d.ts +34 -0
- package/src/core/utils/store.d.ts +6 -0
- package/src/core/utils/string.d.ts +100 -0
- package/src/core/utils/system.d.ts +25 -0
- package/src/core/utils/url.d.ts +36 -0
- package/tabs/tabs.amd.js +2 -0
- package/tabs/tabs.amd.js.map +1 -0
- package/tabs/tabs.d.ts +2 -0
- package/tabs/tabs.js +81 -0
- package/tabs/tabs.js.map +1 -0
- package/tabsView/tabsView.amd.js +2 -0
- package/tabsView/tabsView.amd.js.map +1 -0
- package/tabsView/tabsView.d.ts +2 -0
- package/tabsView/tabsView.js +307 -0
- package/tabsView/tabsView.js.map +1 -0
- package/utils/check.amd.js +2 -0
- package/utils/check.amd.js.map +1 -0
- package/utils/check.d.ts +2 -0
- package/utils/check.js +26 -0
- package/utils/check.js.map +1 -0
- package/utils/clipboard.amd.js +6 -0
- package/utils/clipboard.amd.js.map +1 -0
- package/utils/clipboard.d.ts +2 -0
- package/utils/clipboard.js +33 -0
- package/utils/clipboard.js.map +1 -0
- package/utils/date.amd.js +2 -0
- package/utils/date.amd.js.map +1 -0
- package/utils/date.d.ts +2 -0
- package/utils/date.js +12 -0
- package/utils/date.js.map +1 -0
- package/utils/device.amd.js +2 -0
- package/utils/device.amd.js.map +1 -0
- package/utils/device.d.ts +2 -0
- package/utils/device.js +15 -0
- package/utils/device.js.map +1 -0
- package/utils/dom.amd.js +2 -0
- package/utils/dom.amd.js.map +1 -0
- package/utils/dom.d.ts +6 -0
- package/utils/dom.js +80 -0
- package/utils/dom.js.map +1 -0
- package/utils/image.amd.js +12 -0
- package/utils/image.amd.js.map +1 -0
- package/utils/image.d.ts +2 -0
- package/utils/image.js +23 -0
- package/utils/image.js.map +1 -0
- package/utils/keyboard.amd.js +2 -0
- package/utils/keyboard.amd.js.map +1 -0
- package/utils/keyboard.d.ts +2 -0
- package/utils/keyboard.js +12 -0
- package/utils/keyboard.js.map +1 -0
- package/utils/lodash.amd.js +2 -0
- package/utils/lodash.amd.js.map +1 -0
- package/utils/lodash.d.ts +2 -0
- package/utils/lodash.js +9 -0
- package/utils/lodash.js.map +1 -0
- package/utils/number.amd.js +2 -0
- package/utils/number.amd.js.map +1 -0
- package/utils/number.d.ts +2 -0
- package/utils/number.js +13 -0
- package/utils/number.js.map +1 -0
- package/utils/price.amd.js +2 -0
- package/utils/price.amd.js.map +1 -0
- package/utils/price.d.ts +2 -0
- package/utils/price.js +10 -0
- package/utils/price.js.map +1 -0
- package/utils/route.amd.js +2 -0
- package/utils/route.amd.js.map +1 -0
- package/utils/route.d.ts +2 -0
- package/utils/route.js +38 -0
- package/utils/route.js.map +1 -0
- package/utils/scroll.amd.js +2 -0
- package/utils/scroll.amd.js.map +1 -0
- package/utils/scroll.d.ts +2 -0
- package/utils/scroll.js +45 -0
- package/utils/scroll.js.map +1 -0
- package/utils/searchers.amd.js +2 -0
- package/utils/searchers.amd.js.map +1 -0
- package/utils/searchers.d.ts +2 -0
- package/utils/searchers.js +134 -0
- package/utils/searchers.js.map +1 -0
- package/utils/store.amd.js +2 -0
- package/utils/store.amd.js.map +1 -0
- package/utils/store.d.ts +2 -0
- package/utils/store.js +7 -0
- package/utils/store.js.map +1 -0
- package/utils/string.amd.js +2 -0
- package/utils/string.amd.js.map +1 -0
- package/utils/string.d.ts +2 -0
- package/utils/string.js +152 -0
- package/utils/string.js.map +1 -0
- package/utils/system.amd.js +2 -0
- package/utils/system.amd.js.map +1 -0
- package/utils/system.d.ts +2 -0
- package/utils/system.js +29 -0
- package/utils/system.js.map +1 -0
- package/utils/url.amd.js +3 -0
- package/utils/url.amd.js.map +1 -0
- package/utils/url.d.ts +2 -0
- package/utils/url.js +48 -0
- package/utils/url.js.map +1 -0
- package/web-types.json +130 -130
- package/.gitlab-ci/.gitlab-ci.yml +0 -26
- package/.gitlab-ci/common/install.yml +0 -21
- package/.gitlab-ci/common/lint.yml +0 -14
- package/.gitlab-ci/common/version.yml +0 -23
- package/.gitlab-ci/storybook/build.yml +0 -20
- package/.gitlab-ci/storybook/deploy.yml +0 -49
- package/.gitlab-ci/ui/build.yml +0 -13
- package/.gitlab-ci/ui/deploy.yml +0 -23
- package/.idea/.gitignore +0 -11
- package/.idea/codeStyles/Project.xml +0 -205
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/externalDependencies.xml +0 -6
- package/.idea/inspectionProfiles/Disabled.xml +0 -824
- package/.idea/inspectionProfiles/Project_Default.xml +0 -33
- package/.idea/php.xml +0 -19
- package/.idea/vcs.xml +0 -6
- package/.storybook/TopTheme.ts +0 -115
- package/.storybook/TopThemeManager.ts +0 -53
- package/.storybook/main.ts +0 -51
- package/.storybook/manager.ts +0 -25
- package/.storybook/preview-head.html +0 -21
- package/.storybook/preview.ts +0 -47
- package/.storybook/vue/coreDecorator.ts +0 -77
- package/.storybook/vue/vModelDecorator.ts +0 -46
- package/.versionrc.json +0 -16
- package/.vscode/extensions.json +0 -11
- package/.vscode/keybindings.example.json +0 -121
- package/.vscode/settings.json +0 -45
- package/CHANGELOG.md +0 -223
- package/NPM.md +0 -25
- package/PUBLISH.md +0 -63
- package/STORYBOOK.md +0 -48
- package/USE_IN_PROJECT.md +0 -32
- package/build/afterBuild.sh +0 -11
- package/build/cssModules.ts +0 -39
- package/build/genDocs.sh +0 -19
- package/build/plugin/amdFix.ts +0 -83
- package/build/plugin/autoloadCSS.ts +0 -155
- package/build/rollup.config.ts +0 -37
- package/public/README.md +0 -82
- package/public/icomoon/Read Me.txt +0 -7
- package/public/icomoon/Topvisor icons.json +0 -6260
- package/public/icomoon/demo-files/demo.css +0 -158
- package/public/icomoon/demo-files/demo.js +0 -30
- package/public/icomoon/demo.html +0 -3558
- package/public/icomoon/fonts/Topvisor-2.eot +0 -0
- package/public/icomoon/fonts/Topvisor-2.svg +0 -277
- package/public/icomoon/fonts/Topvisor-2.ttf +0 -0
- package/public/icomoon/fonts/Topvisor-2.woff +0 -0
- package/public/icomoon/selection.json +0 -1
- package/public/icomoon/style.css +0 -780
- package/public/jquery-ui.min.css +0 -6
- package/public/require/css.amd.js +0 -12
- package/src/components/charts/charts.ts +0 -8
- package/src/components/charts/miniChart/miniChart.stories.ts +0 -67
- package/src/components/charts/miniChart/miniChart.ts +0 -110
- package/src/components/charts/miniChart/miniChart.vue +0 -158
- package/src/components/charts/miniChart/stories/README.md +0 -9
- package/src/components/charts/miniChart/stories/dummy.ts +0 -25
- package/src/components/charts/miniChart/styles/miniChart.css +0 -87
- package/src/components/charts/miniChart/utils/consts.ts +0 -9
- package/src/components/charts/miniCharts/miniCharts.stories.ts +0 -76
- package/src/components/charts/miniCharts/miniCharts.ts +0 -24
- package/src/components/charts/miniCharts/miniCharts.vue +0 -128
- package/src/components/charts/miniCharts/stories/README.md +0 -18
- package/src/components/charts/miniCharts/stories/dummy.ts +0 -70
- package/src/components/charts/miniCharts/stories/overview.vue +0 -139
- package/src/components/charts/miniCharts/styles/miniCharts.css +0 -32
- package/src/components/component.ts +0 -130
- package/src/components/core/core.mdx +0 -7
- package/src/components/core/notice/item/item.vue +0 -145
- package/src/components/core/notice/item/style.css +0 -70
- package/src/components/core/notice/item/types.ts +0 -71
- package/src/components/core/notice/notice.stories.ts +0 -105
- package/src/components/core/notice/notice.vue +0 -69
- package/src/components/core/notice/stories/README.md +0 -34
- package/src/components/core/notice/types.ts +0 -1
- package/src/components/core/notice/utils.ts +0 -115
- package/src/components/dialog/dialog/Dialog (code).mdx +0 -61
- package/src/components/dialog/dialog/composables/asyncDialogHandle.ts +0 -99
- package/src/components/dialog/dialog/composables/dialogHandle.ts +0 -176
- package/src/components/dialog/dialog/composables/types.ts +0 -12
- package/src/components/dialog/dialog/composables/utils.ts +0 -39
- package/src/components/dialog/dialog/dialog.stories.ts +0 -83
- package/src/components/dialog/dialog/dialog.vue +0 -74
- package/src/components/dialog/dialog/dialogs/dialogs.vue +0 -58
- package/src/components/dialog/dialog/page/page.vue +0 -86
- package/src/components/dialog/dialog/page/types.ts +0 -84
- package/src/components/dialog/dialog/page.stories.ts +0 -27
- package/src/components/dialog/dialog/pageComponent/pageComponent.vue +0 -57
- package/src/components/dialog/dialog/pageComponent/types.ts +0 -21
- package/src/components/dialog/dialog/pageComponent.stories.ts +0 -27
- package/src/components/dialog/dialog/stories/README.md +0 -117
- package/src/components/dialog/dialog/stories/autoload.ts +0 -12
- package/src/components/dialog/dialog/stories/dialog_example/dialog_example.vue +0 -73
- package/src/components/dialog/dialog/stories/dialog_example/pages/async.vue +0 -57
- package/src/components/dialog/dialog/stories/dialog_example/pages/default.vue +0 -64
- package/src/components/dialog/dialog/stories/dialog_example/pages/headerButtons.vue +0 -56
- package/src/components/dialog/dialog/stories/dialog_example/pages/utils.ts +0 -26
- package/src/components/dialog/dialog/stories/dialog_example/pages/withoutCache.vue +0 -64
- package/src/components/dialog/dialog/stories/page/README.md +0 -24
- package/src/components/dialog/dialog/stories/pageComponent/README.md +0 -12
- package/src/components/dialog/dialog/style/dialog.css +0 -316
- package/src/components/dialog/dialog/style/dialog.m.css +0 -40
- package/src/components/dialog/dialog/style/dialog.pc.css +0 -73
- package/src/components/dialog/dialog/style/modern/dialog.css +0 -12
- package/src/components/dialog/dialog/style/modern/dialog.pc.css +0 -3
- package/src/components/dialog/dialog/types.ts +0 -69
- package/src/components/dialog/dialog.ts +0 -7
- package/src/components/dialog/lib/types.ts +0 -26
- package/src/components/dialog/lib/utils.globalEvents.ts +0 -175
- package/src/components/dialog/lib/utils.ts +0 -525
- package/src/components/dialog/lib/worker.ts +0 -273
- package/src/components/forms/README.mdx +0 -10
- package/src/components/forms/avatar/avatar.stories.ts +0 -38
- package/src/components/forms/avatar/avatar.ts +0 -40
- package/src/components/forms/avatar/avatar.vue +0 -77
- package/src/components/forms/avatar/stories/overview.vue +0 -28
- package/src/components/forms/button/button.stories.ts +0 -118
- package/src/components/forms/button/button.vue +0 -111
- package/src/components/forms/button/stories/README.md +0 -9
- package/src/components/forms/button/stories/overview.vue +0 -33
- package/src/components/forms/button/style/button.css +0 -139
- package/src/components/forms/button/style/style-outline.css +0 -129
- package/src/components/forms/button/style/style-soft.css +0 -89
- package/src/components/forms/button/style/style-transparent.css +0 -39
- package/src/components/forms/button/types.ts +0 -66
- package/src/components/forms/checkbox/checkbox.stories.ts +0 -33
- package/src/components/forms/checkbox/checkbox.ts +0 -21
- package/src/components/forms/checkbox/checkbox.vue +0 -114
- package/src/components/forms/checkbox/stories/overview.vue +0 -171
- package/src/components/forms/controlLabel/controlLabel.stories.ts +0 -32
- package/src/components/forms/controlLabel/controlLabel.ts +0 -4
- package/src/components/forms/controlLabel/controlLabel.vue +0 -54
- package/src/components/forms/forms.ts +0 -40
- package/src/components/forms/helpers.ts +0 -11
- package/src/components/forms/hint/hint.stories.ts +0 -41
- package/src/components/forms/hint/hint.ts +0 -8
- package/src/components/forms/hint/hint.vue +0 -32
- package/src/components/forms/input/input.stories.ts +0 -32
- package/src/components/forms/input/input.ts +0 -47
- package/src/components/forms/input/input.vue +0 -189
- package/src/components/forms/input/stories/overview.vue +0 -61
- package/src/components/forms/inputDate/datepicker.css +0 -246
- package/src/components/forms/inputDate/datepicker.ts +0 -101
- package/src/components/forms/inputDate/inputDate.stories.ts +0 -41
- package/src/components/forms/inputDate/inputDate.ts +0 -5
- package/src/components/forms/inputDate/inputDate.vue +0 -133
- package/src/components/forms/inputDate/stories/overview.vue +0 -35
- package/src/components/forms/inputRange/inputRange.stories.ts +0 -53
- package/src/components/forms/inputRange/inputRange.ts +0 -3
- package/src/components/forms/inputRange/inputRange.vue +0 -39
- package/src/components/forms/inputRange/stories/overview.vue +0 -129
- package/src/components/forms/loadbar/loadbar.stories.ts +0 -17
- package/src/components/forms/loadbar/loadbar.vue +0 -37
- package/src/components/forms/radio/radio.stories.ts +0 -34
- package/src/components/forms/radio/radio.ts +0 -15
- package/src/components/forms/radio/radio.vue +0 -97
- package/src/components/forms/radio/stories/overview.vue +0 -79
- package/src/components/forms/select/select.stories.ts +0 -69
- package/src/components/forms/select/select.ts +0 -69
- package/src/components/forms/select/select.vue +0 -300
- package/src/components/forms/select/stories/exampleOptions.ts +0 -61
- package/src/components/forms/select/stories/overview.vue +0 -72
- package/src/components/forms/switcher/stories/overview.vue +0 -139
- package/src/components/forms/switcher/switcher.stories.ts +0 -33
- package/src/components/forms/switcher/switcher.ts +0 -22
- package/src/components/forms/switcher/switcher.vue +0 -118
- package/src/components/forms/textarea/stories/overview.vue +0 -62
- package/src/components/forms/textarea/textarea.stories.ts +0 -34
- package/src/components/forms/textarea/textarea.ts +0 -47
- package/src/components/forms/textarea/textarea.vue +0 -123
- package/src/components/formsExt/README.mdx +0 -5
- package/src/components/formsExt/editArea/editArea.stories.ts +0 -41
- package/src/components/formsExt/editArea/editArea.ts +0 -41
- package/src/components/formsExt/editArea/editArea.vue +0 -198
- package/src/components/formsExt/editArea/stories/README.md +0 -21
- package/src/components/formsExt/editArea/stories/overview.vue +0 -67
- package/src/components/formsExt/editInput/editInput.stories.ts +0 -36
- package/src/components/formsExt/editInput/editInput.ts +0 -20
- package/src/components/formsExt/editInput/editInput.vue +0 -54
- package/src/components/formsExt/editInput/stories/overview.vue +0 -54
- package/src/components/formsExt/formsExt.ts +0 -15
- package/src/components/formsExt/info/info.stories.ts +0 -35
- package/src/components/formsExt/info/info.vue +0 -84
- package/src/components/formsExt/info/stories/overview.vue +0 -29
- package/src/components/formsExt/info/types.ts +0 -25
- package/src/components/formsExt/menu/menu.stories.ts +0 -59
- package/src/components/formsExt/menu/menu.ts +0 -45
- package/src/components/formsExt/menu/menu.vue +0 -321
- package/src/components/formsExt/menu/stories/items.ts +0 -18
- package/src/components/formsExt/menu/stories/overview.vue +0 -52
- package/src/components/formsExt/navigationMenu/item.vue +0 -186
- package/src/components/formsExt/navigationMenu/navigationMenu.stories.ts +0 -37
- package/src/components/formsExt/navigationMenu/navigationMenu.ts +0 -28
- package/src/components/formsExt/navigationMenu/navigationMenu.vue +0 -40
- package/src/components/formsExt/navigationMenu/stories/items.ts +0 -116
- package/src/components/formsExt/radioGroup/radioGroup.stories.ts +0 -51
- package/src/components/formsExt/radioGroup/radioGroup.ts +0 -28
- package/src/components/formsExt/radioGroup/radioGroup.vue +0 -146
- package/src/components/formsExt/radioGroup/stories/overview.vue +0 -78
- package/src/components/formsExt/radioGroup/styles/top-scrollBar.css +0 -52
- package/src/components/formsExt/selector2/api.ts +0 -148
- package/src/components/formsExt/selector2/itemMulti.vue +0 -57
- package/src/components/formsExt/selector2/selector2.stories.ts +0 -48
- package/src/components/formsExt/selector2/selector2.ts +0 -145
- package/src/components/formsExt/selector2/selector2.vue +0 -389
- package/src/components/formsExt/selector2/stories/dummyAPIRequest.ts +0 -58
- package/src/components/formsExt/selector2/stories/overview.vue +0 -93
- package/src/components/helper.js +0 -10
- package/src/components/helpersStories.ts +0 -205
- package/src/components/layout/islandRows/islandRows.stories.ts +0 -139
- package/src/components/layout/islandRows/islandRows.vue +0 -53
- package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue +0 -36
- package/src/components/layout/islandRows/islandRowsRow/types.ts +0 -1
- package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue +0 -16
- package/src/components/layout/islandRows/stories/README.md +0 -8
- package/src/components/layout/islandRows/types.ts +0 -11
- package/src/components/layout/layout.ts +0 -11
- package/src/components/layout/rows/rows.stories.ts +0 -48
- package/src/components/layout/rows/rows.vue +0 -46
- package/src/components/layout/rows/stories/README.md +0 -10
- package/src/components/layout/rows/types.ts +0 -6
- package/src/components/popup/alert/alert.stories.ts +0 -71
- package/src/components/popup/alert/alert.ts +0 -11
- package/src/components/popup/alert/alert.vue +0 -46
- package/src/components/popup/alert/stories/overview.vue +0 -40
- package/src/components/popup/confirm/confirm.stories.ts +0 -75
- package/src/components/popup/confirm/confirm.ts +0 -26
- package/src/components/popup/confirm/confirm.vue +0 -75
- package/src/components/popup/confirm/stories/overview.vue +0 -62
- package/src/components/popup/lib/popup.globalEvents.ts +0 -239
- package/src/components/popup/lib/popup.ts +0 -790
- package/src/components/popup/lib/worker.globalEvents.ts +0 -97
- package/src/components/popup/lib/worker.ts +0 -286
- package/src/components/popup/popup/listItem.vue +0 -35
- package/src/components/popup/popup/opener.vue +0 -81
- package/src/components/popup/popup/popup.stories.ts +0 -74
- package/src/components/popup/popup/popup.ts +0 -120
- package/src/components/popup/popup/popup.vue +0 -168
- package/src/components/popup/popup/stories/README.md +0 -55
- package/src/components/popup/popup/stories/listItems.vue +0 -44
- package/src/components/popup/popup/stories/listSubItems.vue +0 -47
- package/src/components/popup/popup/stories/overview.vue +0 -210
- package/src/components/popup/popup/style/popup.css +0 -345
- package/src/components/popup/popup/style/popup.m.css +0 -72
- package/src/components/popup/popup/style/popup.pc.css +0 -26
- package/src/components/popup/popup/widgetInput.vue +0 -43
- package/src/components/popup/popup.ts +0 -17
- package/src/components/popup/prompt/prompt.stories.ts +0 -78
- package/src/components/popup/prompt/prompt.ts +0 -26
- package/src/components/popup/prompt/prompt.vue +0 -84
- package/src/components/popup/prompt/stories/overview.vue +0 -50
- package/src/components/popup/worker.ts +0 -1
- package/src/components/project/project.ts +0 -23
- package/src/components/project/selectorCompetitors/composables.ts +0 -21
- package/src/components/project/selectorCompetitors/selectorCompetitors.stories.ts +0 -33
- package/src/components/project/selectorCompetitors/selectorCompetitors.ts +0 -27
- package/src/components/project/selectorCompetitors/selectorCompetitors.vue +0 -75
- package/src/components/project/selectorCompetitors/stories/README.md +0 -20
- package/src/components/project/selectorCompetitors/stories/items.ts +0 -30
- package/src/components/project/selectorCompetitors/types/competitor.ts +0 -7
- package/src/components/project/selectorRegion/composables/compare.ts +0 -87
- package/src/components/project/selectorRegion/composables/selectRegion.ts +0 -147
- package/src/components/project/selectorRegion/composables/selectSearcher.ts +0 -64
- package/src/components/project/selectorRegion/composables/selectorRegion.ts +0 -167
- package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue +0 -190
- package/src/components/project/selectorRegion/dialog_selectorRegions/style.css +0 -49
- package/src/components/project/selectorRegion/dialog_selectorRegions/types.ts +0 -31
- package/src/components/project/selectorRegion/selectorRegion.stories.ts +0 -85
- package/src/components/project/selectorRegion/selectorRegion.ts +0 -204
- package/src/components/project/selectorRegion/selectorRegion.vue +0 -335
- package/src/components/project/selectorRegion/stories/README.md +0 -36
- package/src/components/project/selectorRegion/stories/searchers.ts +0 -77
- package/src/components/project/selectorRegion/styles/searcherColors.css +0 -41
- package/src/components/project/selectorRegion/utils/consts.ts +0 -73
- package/src/components/project/selectorRegion/utils/utils.ts +0 -167
- package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue +0 -209
- package/src/components/project/tagSelector/popupListItem/types.ts +0 -40
- package/src/components/project/tagSelector/popupOpener/popupOpener.vue +0 -145
- package/src/components/project/tagSelector/popupOpener/types.ts +0 -71
- package/src/components/project/tagSelector/stories/README.md +0 -62
- package/src/components/project/tagSelector/stories/overview.vue +0 -152
- package/src/components/project/tagSelector/tagIcon/tagIcon.vue +0 -97
- package/src/components/project/tagSelector/tagIcon/types.ts +0 -25
- package/src/components/project/tagSelector/tagSelector.stories.ts +0 -51
- package/src/components/project/tagSelector/tagSelector.vue +0 -359
- package/src/components/project/tagSelector/tagsDefaults.ts +0 -54
- package/src/components/project/tagSelector/types.ts +0 -159
- package/src/components/project/tagSelector/utils/el.ts +0 -151
- package/src/components/project/tagSelector/utils/utils.ts +0 -30
- package/src/components/tabs/tabs/content.vue +0 -24
- package/src/components/tabs/tabs/stories/README.md +0 -12
- package/src/components/tabs/tabs/tab.vue +0 -49
- package/src/components/tabs/tabs/tabs.stories.ts +0 -171
- package/src/components/tabs/tabs/tabs.ts +0 -22
- package/src/components/tabs/tabs/tabs.vue +0 -64
- package/src/components/tabs/tabs.ts +0 -9
- package/src/components/tabsView/tabsView/menu.vue +0 -291
- package/src/components/tabsView/tabsView/menuDelimeter.vue +0 -26
- package/src/components/tabsView/tabsView/menuItem.vue +0 -125
- package/src/components/tabsView/tabsView/menuTitle.vue +0 -46
- package/src/components/tabsView/tabsView/store.ts +0 -60
- package/src/components/tabsView/tabsView/stories/README.md +0 -22
- package/src/components/tabsView/tabsView/tabsView.stories.ts +0 -170
- package/src/components/tabsView/tabsView/tabsView.ts +0 -118
- package/src/components/tabsView/tabsView/tabsView.vue +0 -120
- package/src/components/tabsView/tabsView/utils.ts +0 -27
- package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuItem.stories.ts +0 -47
- package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuTitle.stories.ts +0 -43
- package/src/components/tabsView/tabsView.ts +0 -9
- package/src/components/types.ts +0 -3
- package/src/core/app.ts +0 -22
- package/src/core/core/core.mdx +0 -36
- package/src/core/core/core.ts +0 -287
- package/src/core/core/events/resize.ts +0 -47
- package/src/core/core/events.ts +0 -6
- package/src/core/core/jQuery.mdx +0 -41
- package/src/core/core/options.ts +0 -51
- package/src/core/core/preloaders.ts +0 -31
- package/src/core/core/state.ts +0 -61
- package/src/core/directives/data.mdx +0 -24
- package/src/core/directives/data.ts +0 -25
- package/src/core/directives/focus.mdx +0 -28
- package/src/core/directives/focus.ts +0 -73
- package/src/core/directives/scrollIntoView.mdx +0 -41
- package/src/core/directives/scrollIntoView.ts +0 -123
- package/src/core/directives/scrollShadow.mdx +0 -23
- package/src/core/directives/scrollShadow.ts +0 -27
- package/src/core/directives/sticky.mdx +0 -29
- package/src/core/directives/sticky.ts +0 -32
- package/src/core/directives/swimUp.mdx +0 -27
- package/src/core/directives/swimUp.ts +0 -95
- package/src/core/directives/tooltip.mdx +0 -13
- package/src/core/directives/tooltip.ts +0 -57
- package/src/core/icons/gallery.vue +0 -70
- package/src/core/icons/icons.mdx +0 -24
- package/src/core/icons/icons.stories.ts +0 -14
- package/src/core/plugins/core.ts +0 -131
- package/src/core/plugins/i18n.ts +0 -184
- package/src/core/plugins/piniaTPA.ts +0 -431
- package/src/core/plugins/plugins.mdx +0 -82
- package/src/core/styles/CSS Variables.stories.ts +0 -17
- package/src/core/styles/styles.mdx +0 -26
- package/src/core/theme/Variables.stories.ts +0 -16
- package/src/core/theme/theme.mdx +0 -117
- package/src/core/utils/References/Docs.mdx +0 -23
- package/src/core/utils/References/check/Docs.mdx +0 -15
- package/src/core/utils/References/check/functions/getDomainRegexp.mdx +0 -15
- package/src/core/utils/References/check/functions/isDomain.mdx +0 -21
- package/src/core/utils/References/check/functions/isEmail.mdx +0 -22
- package/src/core/utils/References/check/functions/isIp.mdx +0 -21
- package/src/core/utils/References/check/functions/validUrl.mdx +0 -22
- package/src/core/utils/References/clipboard/Docs.mdx +0 -11
- package/src/core/utils/References/clipboard/functions/setClipboard.mdx +0 -23
- package/src/core/utils/References/date/Docs.mdx +0 -17
- package/src/core/utils/References/date/functions/dateFormat.mdx +0 -28
- package/src/core/utils/References/date/functions/dateToString.mdx +0 -26
- package/src/core/utils/References/date/functions/dateUnformat.mdx +0 -22
- package/src/core/utils/References/date/functions/genDate.mdx +0 -26
- package/src/core/utils/References/date/functions/genDateMoscow.mdx +0 -22
- package/src/core/utils/References/date/functions/getDayOfWeek.mdx +0 -26
- package/src/core/utils/References/date/functions/stringToDate.mdx +0 -21
- package/src/core/utils/References/device/Docs.mdx +0 -21
- package/src/core/utils/References/device/functions/get$scroll.mdx +0 -15
- package/src/core/utils/References/device/functions/getCommandKeyLabel.mdx +0 -15
- package/src/core/utils/References/device/functions/getElsScroll.mdx +0 -15
- package/src/core/utils/References/device/functions/getOS.mdx +0 -17
- package/src/core/utils/References/device/functions/getOSAsync.mdx +0 -15
- package/src/core/utils/References/device/functions/getScrollTop.mdx +0 -15
- package/src/core/utils/References/device/functions/isApp.mdx +0 -15
- package/src/core/utils/References/device/functions/isMacOS.mdx +0 -15
- package/src/core/utils/References/device/functions/isMobile.mdx +0 -15
- package/src/core/utils/References/device/functions/isRetina.mdx +0 -15
- package/src/core/utils/References/device/functions/isSafari.mdx +0 -15
- package/src/core/utils/References/dom/Docs.mdx +0 -27
- package/src/core/utils/References/dom/functions/css.mdx +0 -24
- package/src/core/utils/References/dom/functions/genEl.mdx +0 -28
- package/src/core/utils/References/dom/functions/isVisible.mdx +0 -23
- package/src/core/utils/References/dom/functions/offset.mdx +0 -35
- package/src/core/utils/References/dom/functions/querySelectorAllArray.mdx +0 -22
- package/src/core/utils/References/dom/functions/querySelectorAllVisible.mdx +0 -22
- package/src/core/utils/References/dom/functions/querySelectorVisible.mdx +0 -22
- package/src/core/utils/References/dom/functions/querySelectorVisibleLast.mdx +0 -22
- package/src/core/utils/References/dom/functions/storage.mdx +0 -28
- package/src/core/utils/References/dom/functions/storageClear.mdx +0 -21
- package/src/core/utils/References/dom/functions/wrap.mdx +0 -22
- package/src/core/utils/References/dom/variables/default.mdx +0 -241
- package/src/core/utils/References/image/Docs.mdx +0 -12
- package/src/core/utils/References/image/functions/downloadImageFromString.mdx +0 -22
- package/src/core/utils/References/image/functions/genFaviconImgHtml.mdx +0 -22
- package/src/core/utils/References/keyboard/Docs.mdx +0 -11
- package/src/core/utils/References/keyboard/functions/invertKeyboardLayout.mdx +0 -21
- package/src/core/utils/References/lodash/Docs.mdx +0 -20
- package/src/core/utils/References/lodash/functions/cloneDeep.mdx +0 -29
- package/src/core/utils/References/lodash/functions/debounce.mdx +0 -76
- package/src/core/utils/References/lodash/functions/memoize.mdx +0 -26
- package/src/core/utils/References/lodash/functions/merge.mdx +0 -200
- package/src/core/utils/References/lodash/functions/throttle.mdx +0 -73
- package/src/core/utils/References/number/Docs.mdx +0 -11
- package/src/core/utils/References/number/functions/percentOfNumber.mdx +0 -26
- package/src/core/utils/References/price/Docs.mdx +0 -11
- package/src/core/utils/References/price/functions/genPrice.mdx +0 -28
- package/src/core/utils/References/route/Docs.mdx +0 -16
- package/src/core/utils/References/route/functions/delHash.mdx +0 -26
- package/src/core/utils/References/route/functions/genHash.mdx +0 -26
- package/src/core/utils/References/route/functions/getHash.mdx +0 -22
- package/src/core/utils/References/route/functions/historySetState.mdx +0 -31
- package/src/core/utils/References/route/functions/setHash.mdx +0 -26
- package/src/core/utils/References/route/functions/setHashs.mdx +0 -22
- package/src/core/utils/References/scroll/Docs.mdx +0 -14
- package/src/core/utils/References/scroll/functions/amountScrolled.mdx +0 -17
- package/src/core/utils/References/scroll/functions/connectScrollShadow.mdx +0 -28
- package/src/core/utils/References/scroll/functions/genHasScroll.mdx +0 -25
- package/src/core/utils/References/scroll/functions/getScrollPercent.mdx +0 -21
- package/src/core/utils/References/searchers/Docs.mdx +0 -19
- package/src/core/utils/References/searchers/functions/genVolumeLabel.mdx +0 -26
- package/src/core/utils/References/searchers/functions/getDeviceGIcon.mdx +0 -21
- package/src/core/utils/References/searchers/functions/getLangLabel.mdx +0 -22
- package/src/core/utils/References/searchers/functions/getSearcherGIcon.mdx +0 -21
- package/src/core/utils/References/searchers/functions/prepareVolumeType.mdx +0 -22
- package/src/core/utils/References/searchers/variables/searchersNames.mdx +0 -97
- package/src/core/utils/References/store/Docs.mdx +0 -18
- package/src/core/utils/References/store/functions/defineStore.mdx +0 -36
- package/src/core/utils/References/store/functions/useStore.mdx +0 -29
- package/src/core/utils/References/store/variables/plugin.mdx +0 -66
- package/src/core/utils/References/string/Docs.mdx +0 -26
- package/src/core/utils/References/string/functions/addCommasWhite.mdx +0 -21
- package/src/core/utils/References/string/functions/addLinkTags.mdx +0 -23
- package/src/core/utils/References/string/functions/camelToSnakeCase.mdx +0 -21
- package/src/core/utils/References/string/functions/ellipsis.mdx +0 -26
- package/src/core/utils/References/string/functions/genFlagLinkByCountryCode.mdx +0 -21
- package/src/core/utils/References/string/functions/genIntHash.mdx +0 -21
- package/src/core/utils/References/string/functions/getRandomHash.mdx +0 -21
- package/src/core/utils/References/string/functions/highlightHtml.mdx +0 -25
- package/src/core/utils/References/string/functions/htmlspecialchars.mdx +0 -21
- package/src/core/utils/References/string/functions/isUrl.mdx +0 -21
- package/src/core/utils/References/string/functions/nl2br.mdx +0 -21
- package/src/core/utils/References/string/functions/numberEnding.mdx +0 -28
- package/src/core/utils/References/string/functions/numberWithWord.mdx +0 -28
- package/src/core/utils/References/string/functions/rusToLatin.mdx +0 -21
- package/src/core/utils/References/string/functions/toCapitalize.mdx +0 -21
- package/src/core/utils/References/string/functions/toRoditPadej.mdx +0 -21
- package/src/core/utils/References/system/Docs.mdx +0 -13
- package/src/core/utils/References/system/functions/sleep.mdx +0 -21
- package/src/core/utils/References/system/functions/sleepWhile.mdx +0 -26
- package/src/core/utils/References/system/functions/waitWhile.mdx +0 -26
- package/src/core/utils/References/url/Docs.mdx +0 -17
- package/src/core/utils/References/url/functions/decode.mdx +0 -21
- package/src/core/utils/References/url/functions/encode.mdx +0 -21
- package/src/core/utils/References/url/functions/fromPuny.mdx +0 -23
- package/src/core/utils/References/url/functions/getHost.mdx +0 -21
- package/src/core/utils/References/url/functions/hostToLowerCase.mdx +0 -21
- package/src/core/utils/References/url/functions/normalize.mdx +0 -21
- package/src/core/utils/References/url/functions/toPuny.mdx +0 -23
- package/src/core/utils/check.ts +0 -88
- package/src/core/utils/clipboard.ts +0 -51
- package/src/core/utils/date.ts +0 -291
- package/src/core/utils/device.ts +0 -139
- package/src/core/utils/dom.ts +0 -182
- package/src/core/utils/image.ts +0 -46
- package/src/core/utils/keyboard.ts +0 -29
- package/src/core/utils/lodash.ts +0 -18
- package/src/core/utils/number.ts +0 -37
- package/src/core/utils/price.ts +0 -24
- package/src/core/utils/route.ts +0 -115
- package/src/core/utils/scroll.ts +0 -120
- package/src/core/utils/searchers.ts +0 -191
- package/src/core/utils/store/localStorage.ts +0 -56
- package/src/core/utils/store/plugin.ts +0 -50
- package/src/core/utils/store/store.ts +0 -77
- package/src/core/utils/store.ts +0 -7
- package/src/core/utils/string.ts +0 -317
- package/src/core/utils/system.ts +0 -72
- package/src/core/utils/url.ts +0 -138
- package/src/core/utils/utils.mdx +0 -6
- package/src/d.ts +0 -12
- package/src/icomoon.d.ts +0 -98
- package/src/resources/styles/core/components.css +0 -111
- package/src/resources/styles/core/core.ts +0 -11
- package/src/resources/styles/core/forms/clear.css +0 -20
- package/src/resources/styles/core/forms/controls.css +0 -20
- package/src/resources/styles/core/forms/focusable.css +0 -26
- package/src/resources/styles/core/forms/forms.css +0 -156
- package/src/resources/styles/core/icon.css +0 -58
- package/src/resources/styles/core/jquery.css +0 -1
- package/src/resources/styles/core/layout.css +0 -59
- package/src/resources/styles/core/modifiers/as.css +0 -9
- package/src/resources/styles/core/modifiers/ellipsis.css +0 -26
- package/src/resources/styles/core/modifiers/modifiers.css +0 -120
- package/src/resources/styles/core/modifiers/only.css +0 -19
- package/src/resources/styles/core/modifiers/scrollShadow.css +0 -50
- package/src/resources/styles/core/select.css +0 -15
- package/src/resources/styles/storybook.css +0 -11
- package/src/resources/styles/themes/dark/dark-layout.css +0 -47
- package/src/resources/styles/themes/dark/dark-positions.css +0 -66
- package/src/resources/styles/themes/dark/dark.css +0 -400
- package/src/resources/styles/themes/dark-positions.ts +0 -1
- package/src/resources/styles/themes/dark-th/dark-th-layout.css +0 -47
- package/src/resources/styles/themes/dark-th/dark-th-positions.css +0 -67
- package/src/resources/styles/themes/dark-th/dark-th.css +0 -400
- package/src/resources/styles/themes/dark-th-positions.ts +0 -1
- package/src/resources/styles/themes/dark-th.ts +0 -3
- package/src/resources/styles/themes/dark.ts +0 -3
- package/src/resources/styles/themes/light/light-layout.css +0 -47
- package/src/resources/styles/themes/light/light-positions.css +0 -66
- package/src/resources/styles/themes/light/light.css +0 -400
- package/src/resources/styles/themes/light-positions.ts +0 -1
- package/src/resources/styles/themes/light.ts +0 -3
- package/src/storybook/components/color.vue +0 -47
- package/src/storybook/components/cssVariables.vue +0 -195
- package/src/storybook/components/icomoon.ts +0 -40
- package/src/storybook/jquery.ts +0 -4
- package/src//320/221/321/213/321/201/321/202/321/200/321/213/320/271 /321/201/321/202/320/260/321/200/321/202.mdx" +0 -181
- package/src//320/230/320/275/321/204/320/276/321/200/320/274/320/260/321/206/320/270/321/217 /320/276 /321/201/320/261/320/276/321/200/320/272/320/265.mdx" +0 -12
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CHANGELOG.md.mdx" +0 -4
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS/FAQ.mdx" +0 -43
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/236/320/261/321/211/320/270/320/265 /320/274/320/276/320/264/320/270/321/204/320/270/320/272/320/260/321/202/320/276/321/200/321/213.mdx" +0 -155
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/237/320/265/321/200/320/265/320/274/320/265/320/275/320/275/321/213/320/265.mdx" +0 -35
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/237/321/200/320/265/320/264/320/277/321/200/320/276/321/206/320/265/321/201/321/201/320/276/321/200/321/213.mdx" +0 -15
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/240/320/265/320/272/320/276/320/274/320/265/320/275/320/264/320/260/321/206/320/270/320/270 /320/221/320/255/320/234.mdx" +0 -56
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/241/321/202/320/270/320/273/320/270.mdx" +0 -53
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/247/321/202/320/276 /321/202/320/260/320/272/320/276/320/265 css /320/274/320/276/320/264/321/203/320/273/321/214.mdx" +0 -55
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/PUBLISH.md.mdx" +0 -4
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/README.md.mdx" +0 -4
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/STORYBOOK.md.mdx" +0 -4
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/USE_IN_PROJECT.md.mdx" +0 -3
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/222/320/262/320/265/320/264/320/265/320/275/320/270/320/265 /320/262 NPM.md.mdx" +0 -4
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/224/320/276/320/277/320/276/320/273/320/275/320/270/321/202/320/265/320/273/321/214/320/275/320/260/321/217 /320/273/320/270/321/202/320/265/321/200/320/260/321/202/321/203/321/200/320/260.mdx" +0 -15
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/235/320/260/321/201/321/202/321/200/320/276/320/271/320/272/320/260 IDE.mdx" +0 -45
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/236/321/204/320/276/321/200/320/274/320/273/320/265/320/275/320/270/320/265 /320/272/320/276/320/264/320/260.mdx" +0 -31
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260.mdx" +0 -29
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213.mdx" +0 -41
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213//320/241/321/202/320/270/320/273/320/270 /320/272/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213.mdx" +0 -58
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI.mdx" +0 -11
- package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/243/321/202/320/270/320/273/320/270/321/202/321/213.mdx" +0 -5
- package/storybook-dev.sh +0 -14
- package/tsconfig.json +0 -91
- package/typedoc.json +0 -20
- package/vite.config.ts +0 -148
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"punycode.es6-CgGegfA_.es.js","sources":["../../node_modules/punycode/punycode.es6.js"],"sourcesContent":["'use strict';\n\n/** Highest positive signed 32-bit float value */\nconst maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nconst base = 36;\nconst tMin = 1;\nconst tMax = 26;\nconst skew = 38;\nconst damp = 700;\nconst initialBias = 72;\nconst initialN = 128; // 0x80\nconst delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nconst regexPunycode = /^xn--/;\nconst regexNonASCII = /[^\\0-\\x7F]/; // Note: U+007F DEL is excluded too.\nconst regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nconst errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nconst baseMinusTMin = base - tMin;\nconst floor = Math.floor;\nconst stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, callback) {\n\tconst result = [];\n\tlet length = array.length;\n\twhile (length--) {\n\t\tresult[length] = callback(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {String} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(domain, callback) {\n\tconst parts = domain.split('@');\n\tlet result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tdomain = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tdomain = domain.replace(regexSeparators, '\\x2E');\n\tconst labels = domain.split('.');\n\tconst encoded = map(labels, callback).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see <https://mathiasbynens.be/notes/javascript-encoding>\n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tconst output = [];\n\tlet counter = 0;\n\tconst length = string.length;\n\twhile (counter < length) {\n\t\tconst value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tconst extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) { // Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nconst ucs2encode = codePoints => String.fromCodePoint(...codePoints);\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nconst basicToDigit = function(codePoint) {\n\tif (codePoint >= 0x30 && codePoint < 0x3A) {\n\t\treturn 26 + (codePoint - 0x30);\n\t}\n\tif (codePoint >= 0x41 && codePoint < 0x5B) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint >= 0x61 && codePoint < 0x7B) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nconst digitToBasic = function(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nconst adapt = function(delta, numPoints, firstTime) {\n\tlet k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nconst decode = function(input) {\n\t// Don't use UCS-2.\n\tconst output = [];\n\tconst inputLength = input.length;\n\tlet i = 0;\n\tlet n = initialN;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tlet basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (let j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tconst oldi = i;\n\t\tfor (let w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\n\t\t\tconst digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\t\t\tif (digit > floor((maxInt - i) / w)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\n\t\t}\n\n\t\tconst out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\n\t}\n\n\treturn String.fromCodePoint(...output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nconst encode = function(input) {\n\tconst output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tconst inputLength = input.length;\n\n\t// Initialize the state.\n\tlet n = initialN;\n\tlet delta = 0;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points.\n\tfor (const currentValue of input) {\n\t\tif (currentValue < 0x80) {\n\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t}\n\t}\n\n\tconst basicLength = output.length;\n\tlet handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tlet m = maxInt;\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\tm = currentValue;\n\t\t\t}\n\t\t}\n\n\t\t// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,\n\t\t// but guard against overflow.\n\t\tconst handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\t\t\tif (currentValue === n) {\n\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\tlet q = delta;\n\t\t\t\tfor (let k = base; /* no condition */; k += base) {\n\t\t\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tconst qMinusT = q - t;\n\t\t\t\t\tconst baseMinusT = base - t;\n\t\t\t\t\toutput.push(\n\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t);\n\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t}\n\n\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);\n\t\t\t\tdelta = 0;\n\t\t\t\t++handledCPCount;\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nconst toUnicode = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexPunycode.test(string)\n\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t: string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nconst toASCII = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexNonASCII.test(string)\n\t\t\t? 'xn--' + encode(string)\n\t\t\t: string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nconst punycode = {\n\t/**\n\t * A string representing the current Punycode.js version number.\n\t * @memberOf punycode\n\t * @type String\n\t */\n\t'version': '2.3.1',\n\t/**\n\t * An object of methods to convert from JavaScript's internal character\n\t * representation (UCS-2) to Unicode code points, and back.\n\t * @see <https://mathiasbynens.be/notes/javascript-encoding>\n\t * @memberOf punycode\n\t * @type Object\n\t */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\nexport { ucs2decode, ucs2encode, decode, encode, toASCII, toUnicode };\nexport default punycode;\n"],"names":["regexPunycode","regexNonASCII","regexSeparators","errors","baseMinusTMin","floor","stringFromCharCode","error","type","map","array","callback","result","length","mapDomain","domain","parts","labels","encoded","ucs2decode","string","output","counter","value","extra","ucs2encode","codePoints","basicToDigit","codePoint","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","decode","input","inputLength","i","n","bias","basic","j","index","oldi","w","t","baseMinusT","out","encode","currentValue","basicLength","handledCPCount","m","handledCPCountPlusOne","q","qMinusT","toUnicode","toASCII","punycode"],"mappings":"AAgBA,MAAMA,IAAgB,SAChBC,IAAgB,cAChBC,IAAkB,6BAGlBC,IAAS;AAAA,EACd,UAAY;AAAA,EACZ,aAAa;AAAA,EACb,iBAAiB;AAClB,GAGMC,IAAgB,IAChBC,IAAQ,KAAK,OACbC,IAAqB,OAAO;AAUlC,SAASC,EAAMC,GAAM;AACpB,QAAM,IAAI,WAAWL,EAAOK,CAAI,CAAC;AAClC;AAUA,SAASC,EAAIC,GAAOC,GAAU;AAC7B,QAAMC,IAAS,CAAA;AACf,MAAIC,IAASH,EAAM;AACnB,SAAOG;AACN,IAAAD,EAAOC,CAAM,IAAIF,EAASD,EAAMG,CAAM,CAAC;AAExC,SAAOD;AACR;AAYA,SAASE,EAAUC,GAAQJ,GAAU;AACpC,QAAMK,IAAQD,EAAO,MAAM,GAAG;AAC9B,MAAIH,IAAS;AACb,EAAII,EAAM,SAAS,MAGlBJ,IAASI,EAAM,CAAC,IAAI,KACpBD,IAASC,EAAM,CAAC,IAGjBD,IAASA,EAAO,QAAQb,GAAiB,GAAM;AAC/C,QAAMe,IAASF,EAAO,MAAM,GAAG,GACzBG,IAAUT,EAAIQ,GAAQN,CAAQ,EAAE,KAAK,GAAG;AAC9C,SAAOC,IAASM;AACjB;AAeA,SAASC,EAAWC,GAAQ;AAC3B,QAAMC,IAAS,CAAA;AACf,MAAIC,IAAU;AACd,QAAMT,IAASO,EAAO;AACtB,SAAOE,IAAUT,KAAQ;AACxB,UAAMU,IAAQH,EAAO,WAAWE,GAAS;AACzC,QAAIC,KAAS,SAAUA,KAAS,SAAUD,IAAUT,GAAQ;AAE3D,YAAMW,IAAQJ,EAAO,WAAWE,GAAS;AACzC,OAAKE,IAAQ,UAAW,QACvBH,EAAO,OAAOE,IAAQ,SAAU,OAAOC,IAAQ,QAAS,KAAO,KAI/DH,EAAO,KAAKE,CAAK,GACjBD;AAAA,IAEF;AACC,MAAAD,EAAO,KAAKE,CAAK;AAAA,EAEnB;AACA,SAAOF;AACR;AAUA,MAAMI,IAAa,CAAAC,MAAc,OAAO,cAAc,GAAGA,CAAU,GAW7DC,IAAe,SAASC,GAAW;AACxC,SAAIA,KAAa,MAAQA,IAAY,KAC7B,MAAMA,IAAY,MAEtBA,KAAa,MAAQA,IAAY,KAC7BA,IAAY,KAEhBA,KAAa,MAAQA,IAAY,MAC7BA,IAAY,KAEb;AACR,GAaMC,IAAe,SAASC,GAAOC,GAAM;AAG1C,SAAOD,IAAQ,KAAK,MAAMA,IAAQ,QAAQC,KAAQ,MAAM;AACzD,GAOMC,IAAQ,SAASC,GAAOC,GAAWC,GAAW;AACnD,MAAIC,IAAI;AAGR,OAFAH,IAAQE,IAAY9B,EAAM4B,IAAQ,GAAI,IAAIA,KAAS,GACnDA,KAAS5B,EAAM4B,IAAQC,CAAS,GACFD,IAAQ7B,IAAgB,MAAQ,GAAGgC,KAAK;AACrE,IAAAH,IAAQ5B,EAAM4B,IAAQ7B,CAAa;AAEpC,SAAOC,EAAM+B,KAAKhC,IAAgB,KAAK6B,KAASA,IAAQ,GAAK;AAC9D,GASMI,IAAS,SAASC,GAAO;AAE9B,QAAMjB,IAAS,CAAA,GACTkB,IAAcD,EAAM;AAC1B,MAAIE,IAAI,GACJC,IAAI,KACJC,IAAO,IAMPC,IAAQL,EAAM,YAAY,GAAS;AACvC,EAAIK,IAAQ,MACXA,IAAQ;AAGT,WAASC,IAAI,GAAGA,IAAID,GAAO,EAAEC;AAE5B,IAAIN,EAAM,WAAWM,CAAC,KAAK,OAC1BrC,EAAM,WAAW,GAElBc,EAAO,KAAKiB,EAAM,WAAWM,CAAC,CAAC;AAMhC,WAASC,IAAQF,IAAQ,IAAIA,IAAQ,IAAI,GAAGE,IAAQN,KAAwC;AAO3F,UAAMO,IAAON;AACb,aAASO,IAAI,GAAGX,IAAI,MAA0BA,KAAK,IAAM;AAExD,MAAIS,KAASN,KACZhC,EAAM,eAAe;AAGtB,YAAMuB,IAAQH,EAAaW,EAAM,WAAWO,GAAO,CAAC;AAEpD,MAAIf,KAAS,MACZvB,EAAM,eAAe,GAElBuB,IAAQzB,GAAO,aAASmC,KAAKO,CAAC,KACjCxC,EAAM,UAAU,GAGjBiC,KAAKV,IAAQiB;AACb,YAAMC,IAAIZ,KAAKM,IAAO,IAAQN,KAAKM,IAAO,KAAO,KAAON,IAAIM;AAE5D,UAAIZ,IAAQkB;AACX;AAGD,YAAMC,IAAa,KAAOD;AAC1B,MAAID,IAAI1C,EAAM,aAAS4C,CAAU,KAChC1C,EAAM,UAAU,GAGjBwC,KAAKE;AAAA,IAEN;AAEA,UAAMC,IAAM7B,EAAO,SAAS;AAC5B,IAAAqB,IAAOV,EAAMQ,IAAIM,GAAMI,GAAKJ,KAAQ,CAAC,GAIjCzC,EAAMmC,IAAIU,CAAG,IAAI,aAAST,KAC7BlC,EAAM,UAAU,GAGjBkC,KAAKpC,EAAMmC,IAAIU,CAAG,GAClBV,KAAKU,GAGL7B,EAAO,OAAOmB,KAAK,GAAGC,CAAC;AAAA,EAExB;AAEA,SAAO,OAAO,cAAc,GAAGpB,CAAM;AACtC,GASM8B,IAAS,SAASb,GAAO;AAC9B,QAAMjB,IAAS,CAAA;AAGf,EAAAiB,IAAQnB,EAAWmB,CAAK;AAGxB,QAAMC,IAAcD,EAAM;AAG1B,MAAIG,IAAI,KACJR,IAAQ,GACRS,IAAO;AAGX,aAAWU,KAAgBd;AAC1B,IAAIc,IAAe,OAClB/B,EAAO,KAAKf,EAAmB8C,CAAY,CAAC;AAI9C,QAAMC,IAAchC,EAAO;AAC3B,MAAIiC,IAAiBD;AAWrB,OALIA,KACHhC,EAAO,KAAK,GAAS,GAIfiC,IAAiBf,KAAa;AAIpC,QAAIgB,IAAI;AACR,eAAWH,KAAgBd;AAC1B,MAAIc,KAAgBX,KAAKW,IAAeG,MACvCA,IAAIH;AAMN,UAAMI,IAAwBF,IAAiB;AAC/C,IAAIC,IAAId,IAAIpC,GAAO,aAAS4B,KAASuB,CAAqB,KACzDjD,EAAM,UAAU,GAGjB0B,MAAUsB,IAAId,KAAKe,GACnBf,IAAIc;AAEJ,eAAWH,KAAgBd;AAI1B,UAHIc,IAAeX,KAAK,EAAER,IAAQ,cACjC1B,EAAM,UAAU,GAEb6C,MAAiBX,GAAG;AAEvB,YAAIgB,IAAIxB;AACR,iBAASG,IAAI,MAA0BA,KAAK,IAAM;AACjD,gBAAMY,IAAIZ,KAAKM,IAAO,IAAQN,KAAKM,IAAO,KAAO,KAAON,IAAIM;AAC5D,cAAIe,IAAIT;AACP;AAED,gBAAMU,IAAUD,IAAIT,GACdC,IAAa,KAAOD;AAC1B,UAAA3B,EAAO;AAAA,YACNf,EAAmBuB,EAAamB,IAAIU,IAAUT,GAAY,CAAC,CAAC;AAAA,UAClE,GACKQ,IAAIpD,EAAMqD,IAAUT,CAAU;AAAA,QAC/B;AAEA,QAAA5B,EAAO,KAAKf,EAAmBuB,EAAa4B,GAAG,CAAC,CAAC,CAAC,GAClDf,IAAOV,EAAMC,GAAOuB,GAAuBF,MAAmBD,CAAW,GACzEpB,IAAQ,GACR,EAAEqB;AAAA,MACH;AAGD,MAAErB,GACF,EAAEQ;AAAA,EAEH;AACA,SAAOpB,EAAO,KAAK,EAAE;AACtB,GAaMsC,IAAY,SAASrB,GAAO;AACjC,SAAOxB,EAAUwB,GAAO,SAASlB,GAAQ;AACxC,WAAOpB,EAAc,KAAKoB,CAAM,IAC7BiB,EAAOjB,EAAO,MAAM,CAAC,EAAE,YAAW,CAAE,IACpCA;AAAA,EACJ,CAAC;AACF,GAaMwC,IAAU,SAAStB,GAAO;AAC/B,SAAOxB,EAAUwB,GAAO,SAASlB,GAAQ;AACxC,WAAOnB,EAAc,KAAKmB,CAAM,IAC7B,SAAS+B,EAAO/B,CAAM,IACtBA;AAAA,EACJ,CAAC;AACF,GAKMyC,IAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhB,SAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQX,MAAQ;AAAA,IACP,QAAU1C;AAAA,IACV,QAAUM;AAAA,EACZ;AAAA,EACC,QAAUY;AAAA,EACV,QAAUc;AAAA,EACV,SAAWS;AAAA,EACX,WAAaD;AACd;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { inject as n, reactive as i, watch as u, provide as a } from "vue";
|
|
2
|
+
const d = (o, e = {}) => {
|
|
3
|
+
const r = {
|
|
4
|
+
store: o,
|
|
5
|
+
options: e
|
|
6
|
+
};
|
|
7
|
+
n("TopStoreOnInits", []).forEach((t) => {
|
|
8
|
+
t.call(r);
|
|
9
|
+
});
|
|
10
|
+
}, p = (o, e, r, s) => {
|
|
11
|
+
const t = i(e());
|
|
12
|
+
return t.$id = r, t.$subscribe = (c) => {
|
|
13
|
+
u(t, () => c(), { deep: !0 });
|
|
14
|
+
}, d(t, s), a(o, t), t;
|
|
15
|
+
}, f = (o) => {
|
|
16
|
+
const e = n(o);
|
|
17
|
+
if (!e)
|
|
18
|
+
throw Error("Попытка использовать Store до его инициализации, убедитесь, что defineStore() вызван в setup() необходимого компонента");
|
|
19
|
+
return e;
|
|
20
|
+
}, h = {
|
|
21
|
+
defineStore: p,
|
|
22
|
+
useStore: f
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as d,
|
|
26
|
+
h as s,
|
|
27
|
+
f as u
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=store-CX_6ZXhO.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-CX_6ZXhO.es.js","sources":["../../src/core/utils/store/plugin.ts","../../src/core/utils/store/store.ts"],"sourcesContent":["import { inject, type ObjectPlugin } from 'vue';\nimport type { Store } from './store';\n\nconst PluginsByApp = new WeakMap();\n\ntype Options = {\n\tonInit: (context: Context) => void;\n}\n\ntype Context = {\n\tstore: Store,\n\toptions: object,\n}\n\n/**\n * Плагин tpa (Third-party access) для pinia\n *\n * Сейчас не используется\n *\n * TODO: Должен реализовывать возмоэности piniaTPAPlugin\n */\nexport default {\n\tinstall: (app, options) => {\n\t\tif (!PluginsByApp.has(app)) {\n\t\t\tPluginsByApp.set(app, []);\n\t\t}\n\n\t\tconst onInits = PluginsByApp.get(app);\n\n\t\tonInits.push(options.onInit);\n\n\t\tapp.provide('TopStoreOnInits', onInits);\n\t},\n} satisfies ObjectPlugin<Options>;\n\n/**\n * Применить плагины к store\n */\nexport const usePlugins = (store: Store, options: object = {}) => {\n\tconst context: Context = {\n\t\tstore,\n\t\toptions,\n\t};\n\n\tconst onInits: Array<Function> = inject('TopStoreOnInits', []);\n\n\tonInits.forEach((onInit) => {\n\t\tonInit.call(context);\n\t});\n};\n","/**\n * Храналище выполненное по аналогии с https://pinia.vuejs.org/\n *\n * Основное отличие от Pinia - реализация Храналища на уровне компонента, а не приложения.\n * Каждый экземдяр компонента будет иметь свой Store.\n *\n * Основное отличие от классического State - является общим для компонента и всех его дочерних компонентов. Основано на принципе provide/inject.\n * https://vuejs.org/guide/components/provide-inject.html\n *\n * @packageDocumentation\n */\n\nimport type { InjectionKey, UnwrapNestedRefs } from 'vue';\nimport { inject, provide, reactive, watch } from 'vue';\nimport { usePlugins } from './plugin';\n\n/**\n * Определить Store\n *\n * Следует определять на уровне корневого компонента, использующего Store\n * @param injectionKey - InjectionKey для provide / inject в области компонента\n * @param setup - Нстройки Store, см. https://pinia.vuejs.org/core-concepts/#Setup-Stores\n * @param $id - строковой id Store, используется в плагинах\n * @param options - настройки Store, используются в плагинах\n */\nexport const defineStore = <T extends object>(\n\tinjectionKey: InjectionKey<UnwrapNestedRefs<T>>,\n\tsetup: () => T | object,\n\t$id?: string,\n\toptions?: object,\n): UnwrapNestedRefs<T> & Store => {\n\tconst store = reactive(setup()) as UnwrapNestedRefs<T> & Store;\n\n\tstore.$id = $id;\n\tstore.$subscribe = (cb: Function) => {\n\t\twatch(store, () => cb(), { deep: true });\n\t};\n\n\tusePlugins(store, options);\n\n\tprovide(injectionKey, store);\n\n\treturn store;\n};\n\n/**\n * Получить State компонента\n * @param injectionKey - InjectionKey для provide / inject в области компонента\n * @return - State компонента\n */\nexport const useStore = <T>(injectionKey: InjectionKey<T>): T & Store => {\n\tconst store = inject(injectionKey);\n\n\tif (!store) {\n\t\tthrow Error('Попытка использовать Store до его инициализации, убедитесь, что defineStore() вызван в setup() необходимого компонента');\n\t}\n\n\treturn store;\n};\n\n/**\n * Легковесный аналог объекта Store Pinia для совместимости с плагинами Pinia\n */\nexport interface Store {\n\t/**\n\t * Строковой идентификатор Store\n\t *\n\t * Не уникален в рамках приложения\n\t */\n\t$id?: string;\n\t$subscribe?: Function;\n}\n\nexport default {\n\tdefineStore,\n\tuseStore,\n};\n"],"names":["usePlugins","store","options","context","inject","onInit","defineStore","injectionKey","setup","$id","reactive","cb","watch","provide","useStore"],"mappings":";AAsCO,MAAMA,IAAa,CAACC,GAAcC,IAAkB,OAAO;AACjE,QAAMC,IAAmB;AAAA,IACxB,OAAAF;AAAA,IACA,SAAAC;AAAA,EAAA;AAKD,EAFiCE,EAAO,mBAAmB,EAAE,EAErD,QAAQ,CAACC,MAAW;AAC3B,IAAAA,EAAO,KAAKF,CAAO;AAAA,EACpB,CAAC;AACF,GCxBaG,IAAc,CAC1BC,GACAC,GACAC,GACAP,MACiC;AACjC,QAAMD,IAAQS,EAASF,GAAO;AAE9B,SAAAP,EAAM,MAAMQ,GACZR,EAAM,aAAa,CAACU,MAAiB;AACpC,IAAAC,EAAMX,GAAO,MAAMU,EAAA,GAAM,EAAE,MAAM,IAAM;AAAA,EACxC,GAEAX,EAAWC,GAAOC,CAAO,GAEzBW,EAAQN,GAAcN,CAAK,GAEpBA;AACR,GAOaa,IAAW,CAAIP,MAA6C;AACxE,QAAMN,IAAQG,EAAOG,CAAY;AAEjC,MAAI,CAACN;AACJ,UAAM,MAAM,wHAAwH;AAGrI,SAAOA;AACR,GAeAA,IAAe;AAAA,EACd,aAAAK;AAAA,EACA,UAAAQ;AACD;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
define(["require","exports","vue"],(function(v,r,t){"use strict";if(typeof t>"u")var t=window.Vue;const d=(o,n={})=>{const s={store:o,options:n};t.inject("TopStoreOnInits",[]).forEach(e=>{e.call(s)})},i=(o,n,s,u)=>{const e=t.reactive(n());return e.$id=s,e.$subscribe=S=>{t.watch(e,()=>S(),{deep:!0})},d(e,u),t.provide(o,e),e},c=o=>{const n=t.inject(o);if(!n)throw Error("Попытка использовать Store до его инициализации, убедитесь, что defineStore() вызван в setup() необходимого компонента");return n},f={defineStore:i,useStore:c};r.defineStore=i,r.store=f,r.useStore=c}));
|
|
2
|
+
//# sourceMappingURL=store-YRW59xEF.amd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-YRW59xEF.amd.js","sources":["../../src/core/utils/store/plugin.ts","../../src/core/utils/store/store.ts"],"sourcesContent":["import { inject, type ObjectPlugin } from 'vue';\nimport type { Store } from './store';\n\nconst PluginsByApp = new WeakMap();\n\ntype Options = {\n\tonInit: (context: Context) => void;\n}\n\ntype Context = {\n\tstore: Store,\n\toptions: object,\n}\n\n/**\n * Плагин tpa (Third-party access) для pinia\n *\n * Сейчас не используется\n *\n * TODO: Должен реализовывать возмоэности piniaTPAPlugin\n */\nexport default {\n\tinstall: (app, options) => {\n\t\tif (!PluginsByApp.has(app)) {\n\t\t\tPluginsByApp.set(app, []);\n\t\t}\n\n\t\tconst onInits = PluginsByApp.get(app);\n\n\t\tonInits.push(options.onInit);\n\n\t\tapp.provide('TopStoreOnInits', onInits);\n\t},\n} satisfies ObjectPlugin<Options>;\n\n/**\n * Применить плагины к store\n */\nexport const usePlugins = (store: Store, options: object = {}) => {\n\tconst context: Context = {\n\t\tstore,\n\t\toptions,\n\t};\n\n\tconst onInits: Array<Function> = inject('TopStoreOnInits', []);\n\n\tonInits.forEach((onInit) => {\n\t\tonInit.call(context);\n\t});\n};\n","/**\n * Храналище выполненное по аналогии с https://pinia.vuejs.org/\n *\n * Основное отличие от Pinia - реализация Храналища на уровне компонента, а не приложения.\n * Каждый экземдяр компонента будет иметь свой Store.\n *\n * Основное отличие от классического State - является общим для компонента и всех его дочерних компонентов. Основано на принципе provide/inject.\n * https://vuejs.org/guide/components/provide-inject.html\n *\n * @packageDocumentation\n */\n\nimport type { InjectionKey, UnwrapNestedRefs } from 'vue';\nimport { inject, provide, reactive, watch } from 'vue';\nimport { usePlugins } from './plugin';\n\n/**\n * Определить Store\n *\n * Следует определять на уровне корневого компонента, использующего Store\n * @param injectionKey - InjectionKey для provide / inject в области компонента\n * @param setup - Нстройки Store, см. https://pinia.vuejs.org/core-concepts/#Setup-Stores\n * @param $id - строковой id Store, используется в плагинах\n * @param options - настройки Store, используются в плагинах\n */\nexport const defineStore = <T extends object>(\n\tinjectionKey: InjectionKey<UnwrapNestedRefs<T>>,\n\tsetup: () => T | object,\n\t$id?: string,\n\toptions?: object,\n): UnwrapNestedRefs<T> & Store => {\n\tconst store = reactive(setup()) as UnwrapNestedRefs<T> & Store;\n\n\tstore.$id = $id;\n\tstore.$subscribe = (cb: Function) => {\n\t\twatch(store, () => cb(), { deep: true });\n\t};\n\n\tusePlugins(store, options);\n\n\tprovide(injectionKey, store);\n\n\treturn store;\n};\n\n/**\n * Получить State компонента\n * @param injectionKey - InjectionKey для provide / inject в области компонента\n * @return - State компонента\n */\nexport const useStore = <T>(injectionKey: InjectionKey<T>): T & Store => {\n\tconst store = inject(injectionKey);\n\n\tif (!store) {\n\t\tthrow Error('Попытка использовать Store до его инициализации, убедитесь, что defineStore() вызван в setup() необходимого компонента');\n\t}\n\n\treturn store;\n};\n\n/**\n * Легковесный аналог объекта Store Pinia для совместимости с плагинами Pinia\n */\nexport interface Store {\n\t/**\n\t * Строковой идентификатор Store\n\t *\n\t * Не уникален в рамках приложения\n\t */\n\t$id?: string;\n\t$subscribe?: Function;\n}\n\nexport default {\n\tdefineStore,\n\tuseStore,\n};\n"],"names":["store","onInit","context","defineStore","injectionKey","setup","$id","options","vue","cb","usePlugins","useStore"],"mappings":"8HAuC0B,MAAAA,4CAOzB,QAAAC,GAAA,CACCA,EAAA,KAAAC,CAAA,CAAmB,CAAA,GCtBdC,EAAA,CAAAC,EAAAC,EAAAC,EAAAC,IAAA,CAMN,MAAAP,EAAAQ,EAAA,SAAAH,EAAA,CAAA,EAEA,OAAAL,EAAA,IAAAM,EACAN,EAAA,WAAAS,GAAA,CACCD,EAAA,MAAAR,EAAA,IAAAS,EAAA,EAAA,CAAA,KAAA,EAAA,CAAA,CAAuC,EAGxCC,EAAAV,EAAAO,CAAA,EAEAC,EAAA,QAAAJ,EAAAJ,CAAA,EAEAA,CACD,EAOOW,EAAAP,GAAA,CACN,MAAAJ,EAAAQ,EAAA,OAAAJ,CAAA,QAGC,MAAA,MAAA,wHAAA,EAGD,OAAAJ,CACD,EAeAA,EAAA,CAAe,YAAAG"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ref as s, getCurrentInstance as a, inject as i } from "vue";
|
|
2
|
+
import { a as n, g as c } from "./dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js";
|
|
3
|
+
import { waitWhile as w } from "../utils/system.js";
|
|
4
|
+
class l {
|
|
5
|
+
/**
|
|
6
|
+
* Функция, определяющая компонент TopDialogComponent
|
|
7
|
+
*/
|
|
8
|
+
resolve;
|
|
9
|
+
/**
|
|
10
|
+
* Реактивная Сссылка на объект worker,
|
|
11
|
+
*
|
|
12
|
+
* Ссылка не будет указывать на объект, если диалоговое окно еще не загружено
|
|
13
|
+
*/
|
|
14
|
+
worker = s(null);
|
|
15
|
+
constructor(r) {
|
|
16
|
+
this.resolve = r;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Получить доступ к TopDialogHandle
|
|
20
|
+
*/
|
|
21
|
+
async get() {
|
|
22
|
+
if (this.worker.value) return this.worker.value;
|
|
23
|
+
const o = (await this.resolve()).default;
|
|
24
|
+
this.worker.value = k(o);
|
|
25
|
+
const t = this.worker.value;
|
|
26
|
+
return await w(() => !t.isMounted), t;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Открыть диалоговое окно
|
|
30
|
+
*/
|
|
31
|
+
async open(...r) {
|
|
32
|
+
await (await this.get()).open(...r);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Открыть диалоговое окно как ссылку, для хеш-навигации
|
|
36
|
+
*
|
|
37
|
+
* Только общедоступные диалоговые окна, расположенные в @/dialogs
|
|
38
|
+
*/
|
|
39
|
+
async openAsLink(...r) {
|
|
40
|
+
(await this.get()).openAsLink(...r);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Закрыть диалоговое окно
|
|
44
|
+
*
|
|
45
|
+
* Не меняет состояние компонента диалогового окна
|
|
46
|
+
*/
|
|
47
|
+
async close(...r) {
|
|
48
|
+
(await this.get()).close(...r);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Размонтировать виджет диалогового окна
|
|
52
|
+
*/
|
|
53
|
+
async destroy(...r) {
|
|
54
|
+
(await this.get()).destroy(...r);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Устанвоить props
|
|
58
|
+
*
|
|
59
|
+
* Полностью сбрасывается состояние props
|
|
60
|
+
*/
|
|
61
|
+
async setProps(...r) {
|
|
62
|
+
await (await this.get()).setProps(...r);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const d = () => {
|
|
66
|
+
var r;
|
|
67
|
+
const e = a();
|
|
68
|
+
if ((r = e == null ? void 0 : e.type) != null && r.id) {
|
|
69
|
+
const o = c(e.type.id);
|
|
70
|
+
if (o) return o;
|
|
71
|
+
}
|
|
72
|
+
return i("dialogWorker");
|
|
73
|
+
}, k = (e) => n(e), h = (e) => new l(e);
|
|
74
|
+
export {
|
|
75
|
+
k as a,
|
|
76
|
+
d as b,
|
|
77
|
+
h as u
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=utils-3M9LC_L_.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-3M9LC_L_.es.js","sources":["../../src/components/dialog/dialog/composables/asyncDialogHandle.ts","../../src/components/dialog/dialog/composables/utils.ts"],"sourcesContent":["import type { Ref } from 'vue';\nimport { ref } from 'vue';\nimport { useTopDialog } from './utils';\nimport { waitWhile } from '@/core/utils/system';\nimport type { AsyncTopDialogComponentLoader, TopDialogComponent } from './types';\nimport { TopDialogHandle } from './dialogHandle';\n\n/**\n * Объект для работы с асинхронным диалоговым окном\n *\n * Является прослойкой для доступа к TopDialogHandle\n */\nexport class AsyncTopDialogHandle<T extends TopDialogComponent> {\n\n\t/**\n\t * Функция, определяющая компонент TopDialogComponent\n\t */\n\treadonly resolve: AsyncTopDialogComponentLoader<T>;\n\n\t/**\n\t * Реактивная Сссылка на объект worker,\n\t *\n\t * Ссылка не будет указывать на объект, если диалоговое окно еще не загружено\n\t */\n\treadonly worker: Ref<TopDialogHandle<T> | null> = ref(null);\n\n\tconstructor(resolve: AsyncTopDialogComponentLoader<T>) {\n\t\tthis.resolve = resolve;\n\t}\n\n\t/**\n\t * Получить доступ к TopDialogHandle\n\t */\n\tasync get() {\n\t\tif (this.worker.value) return this.worker.value;\n\n\t\tconst result = await this.resolve();\n\t\tconst TopDialogComponent = result.default;\n\n\t\tthis.worker.value = useTopDialog(TopDialogComponent);\n\n\t\tconst worker = this.worker.value;\n\n\t\tawait waitWhile(() => !worker.isMounted);\n\n\t\treturn worker;\n\t}\n\n\t/**\n\t * Открыть диалоговое окно\n\t */\n\tasync open(...args: Parameters<TopDialogHandle<T>['open']>) {\n\t\tconst worker = await this.get();\n\n\t\tawait worker.open(...args);\n\t}\n\n\t/**\n\t * Открыть диалоговое окно как ссылку, для хеш-навигации\n\t *\n\t * Только общедоступные диалоговые окна, расположенные в @/dialogs\n\t */\n\tasync openAsLink(...args: Parameters<TopDialogHandle<T>['open']>) {\n\t\tconst worker = await this.get();\n\n\t\tvoid worker.openAsLink(...args);\n\t}\n\n\t/**\n\t * Закрыть диалоговое окно\n\t *\n\t * Не меняет состояние компонента диалогового окна\n\t */\n\tasync close(...args: Parameters<TopDialogHandle<T>['close']>) {\n\t\tconst worker = await this.get();\n\n\t\tworker.close(...args);\n\t}\n\n\t/**\n\t * Размонтировать виджет диалогового окна\n\t */\n\tasync destroy(...args: Parameters<TopDialogHandle<T>['close']>) {\n\t\tconst worker = await this.get();\n\n\t\tworker.destroy(...args);\n\t}\n\n\t/**\n\t * Устанвоить props\n\t *\n\t * Полностью сбрасывается состояние props\n\t */\n\tasync setProps(...args: Parameters<TopDialogHandle<T>['setProps']>) {\n\t\tconst worker = await this.get();\n\n\t\tawait worker.setProps(...args);\n\t}\n}\n","import { getCurrentInstance, inject } from 'vue';\nimport { TopDialogHandle } from './dialogHandle';\nimport { AsyncTopDialogHandle } from './asyncDialogHandle';\nimport type { AsyncTopDialogComponentLoader, TopDialogComponent } from './types';\nimport { addDialogWorker, getDialogWorker } from '../dialogs/dialogs.vue';\n\n/**\n * Получить объект управленя текущим диалоговым окном\n */\nexport const useTopDialogSelf = () => {\n\t// вызов из пользовтаельского компонента диалога\n\tconst topDialogComponent = getCurrentInstance() as any;\n\tif (topDialogComponent?.type?.id) {\n\t\tconst dialogWorker = getDialogWorker(topDialogComponent.type.id);\n\t\tif (dialogWorker) return dialogWorker;\n\t}\n\n\treturn inject('dialogWorker') as TopDialogHandle<TopDialogComponent>;\n};\n\n/**\n * Получить объект управленя диалоговым окном\n *\n * При первом вызове компонент диалогового окна будет внедрен в компонент DialogWrapper\n */\nexport const useTopDialog = <T extends TopDialogComponent>(DialogComponent: T): TopDialogHandle<T> => {\n\treturn addDialogWorker(DialogComponent);\n};\n\n/**\n * Получить объект управленя асинхронным диалоговым окном\n *\n * Компонент диалогового окна будет загружен и инициирован при первом взаимодействии с объектом\n *\n * Использует useTopDialog()\n */\nexport const useAsyncTopDialog = <T extends TopDialogComponent>(resolve: AsyncTopDialogComponentLoader<T>): AsyncTopDialogHandle<T> => {\n\treturn new AsyncTopDialogHandle(resolve);\n};\n"],"names":["AsyncTopDialogHandle","ref","resolve","TopDialogComponent","useTopDialog","worker","waitWhile","args","useTopDialogSelf","topDialogComponent","getCurrentInstance","_a","dialogWorker","getDialogWorker","inject","DialogComponent","addDialogWorker","useAsyncTopDialog"],"mappings":";;;AAYO,MAAMA,EAAmD;AAAA;AAAA;AAAA;AAAA,EAKtD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,SAAyCC,EAAI,IAAI;AAAA,EAE1D,YAAYC,GAA2C;AACtD,SAAK,UAAUA;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,MAAM;AACX,QAAI,KAAK,OAAO,MAAO,QAAO,KAAK,OAAO;AAG1C,UAAMC,KADS,MAAM,KAAK,QAAA,GACQ;AAElC,SAAK,OAAO,QAAQC,EAAaD,CAAkB;AAEnD,UAAME,IAAS,KAAK,OAAO;AAE3B,iBAAMC,EAAU,MAAM,CAACD,EAAO,SAAS,GAEhCA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,QAAQE,GAA8C;AAG3D,WAFe,MAAM,KAAK,IAAA,GAEb,KAAK,GAAGA,CAAI;AAAA,EAC1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,cAAcA,GAA8C;AAGjE,KAFe,MAAM,KAAK,IAAA,GAEd,WAAW,GAAGA,CAAI;AAAA,EAC/B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,SAASA,GAA+C;AAG7D,KAFe,MAAM,KAAK,IAAA,GAEnB,MAAM,GAAGA,CAAI;AAAA,EACrB;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,WAAWA,GAA+C;AAG/D,KAFe,MAAM,KAAK,IAAA,GAEnB,QAAQ,GAAGA,CAAI;AAAA,EACvB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,YAAYA,GAAkD;AAGnE,WAFe,MAAM,KAAK,IAAA,GAEb,SAAS,GAAGA,CAAI;AAAA,EAC9B;AACD;ACzFO,MAAMC,IAAmB,MAAM;;AAErC,QAAMC,IAAqBC,EAAA;AAC3B,OAAIC,IAAAF,KAAA,gBAAAA,EAAoB,SAApB,QAAAE,EAA0B,IAAI;AACjC,UAAMC,IAAeC,EAAgBJ,EAAmB,KAAK,EAAE;AAC/D,QAAIG,EAAc,QAAOA;AAAA,EAC1B;AAEA,SAAOE,EAAO,cAAc;AAC7B,GAOaV,IAAe,CAA+BW,MACnDC,EAAgBD,CAAe,GAU1BE,IAAoB,CAA+Bf,MACxD,IAAIF,EAAqBE,CAAO;"}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { nextTick as V } from "vue";
|
|
2
|
+
import { C as f } from "./forms-DarRVke_.es.js";
|
|
3
|
+
import { TopPopupWorker as I } from "../popup/worker.js";
|
|
4
|
+
import { sleep as H, waitWhile as O } from "../utils/system.js";
|
|
5
|
+
import { historySetState as F, setHashs as K } from "../utils/route.js";
|
|
6
|
+
import { connectScrollShadow as R } from "../utils/scroll.js";
|
|
7
|
+
import { T as u, g as A } from "./dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js";
|
|
8
|
+
import { querySelectorVisible as T, querySelectorAllArray as c, isVisible as h } from "../utils/dom.js";
|
|
9
|
+
$;
|
|
10
|
+
let E = !1;
|
|
11
|
+
const U = () => {
|
|
12
|
+
E || (E = !0, document.addEventListener("keydown", (e) => {
|
|
13
|
+
if (e.key !== "Escape" || !e.target) return;
|
|
14
|
+
const t = e.target;
|
|
15
|
+
if (!t.closest(".ui-dialog") || t.contentEditable === "true" || t.contentEditable === "plaintext-only" || T(document.documentElement, ".top-popup-wrapper") || t.classList.contains("autocomplete") || T(document.documentElement, ".fancybox-container")) return;
|
|
16
|
+
const i = c(document, ".ui-dialog-content").filter((o) => h(o));
|
|
17
|
+
$(i[i.length - 1]).dialog("close");
|
|
18
|
+
}), document.addEventListener("click", (e) => {
|
|
19
|
+
const t = e.target.closest('[data-action="top-dialog-close"]');
|
|
20
|
+
if (!t) return;
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
const i = t.closest(".ui-dialog-content");
|
|
23
|
+
if (!i) return;
|
|
24
|
+
const o = t.dataset.toView;
|
|
25
|
+
if (o == "toPrevPage()") {
|
|
26
|
+
x.toPrevPage(i);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (o) {
|
|
30
|
+
const r = o.split("-"), n = r.shift(), l = r.join("-");
|
|
31
|
+
if (!n) return;
|
|
32
|
+
const s = x.getElDialogById(n);
|
|
33
|
+
if (!s) return;
|
|
34
|
+
const m = c(s, `[data-view-page="${l}"]`);
|
|
35
|
+
if (!m) return;
|
|
36
|
+
if (!h(m[0])) {
|
|
37
|
+
const b = u.genViewPageHash(o, "prev");
|
|
38
|
+
F(!1, b);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
$(i).dialog("close");
|
|
43
|
+
}), document.addEventListener("submit", (e) => {
|
|
44
|
+
const t = e.target;
|
|
45
|
+
(t.matches(".modal-body > form") || t.matches(".modal-layer-body > form")) && e.preventDefault();
|
|
46
|
+
}), document.addEventListener("keypress", (e) => {
|
|
47
|
+
const t = e.target;
|
|
48
|
+
if (!(!t.closest(".ui-dialog .modal-body") || !(t.matches("input:not(.searcher), textarea:not(.searcher), select:not(.searcher), button:not(.searcher)") || t.hasAttribute("contenteditable"))) && e.key === "Enter") {
|
|
49
|
+
if (t.classList.contains("autocomplete")) {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (t.tagName === "TEXTAREA") {
|
|
54
|
+
if (!e.ctrlKey && !e.metaKey) return;
|
|
55
|
+
const a = t.closest("form");
|
|
56
|
+
if (a) {
|
|
57
|
+
const r = c(a, 'button[type="submit"]').concat(c(a, 'input[type="submit"]')).find((n) => h(n));
|
|
58
|
+
r == null || r.click();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}), document.addEventListener("click", function(e) {
|
|
63
|
+
if (!e.target.classList.contains("ui-widget-overlay")) return;
|
|
64
|
+
let i, o = 0;
|
|
65
|
+
if (c(document, ".ui-dialog").filter((r) => h(r)).forEach((r) => {
|
|
66
|
+
const n = Number(window.getComputedStyle(r).zIndex);
|
|
67
|
+
n < o || (i = r, o = n);
|
|
68
|
+
}), i) {
|
|
69
|
+
const r = i.querySelector(".ui-dialog-content");
|
|
70
|
+
$(r).dialog("close");
|
|
71
|
+
}
|
|
72
|
+
}), window.addEventListener("resize", x.recalcPositions), x.recalcPositions());
|
|
73
|
+
}, J = ':root{--dialog-border-color: var(--color-line-1);--dialog-loading-duration: 10s;--top-dialog-footer-height: var(--top-forms-base-height_s)}html.with_dialog{overflow:hidden!important}a[data-to-view]{cursor:pointer}.ui-widget-overlay{background:#040404;opacity:.5;filter:Alpha(Opacity=50)}.ui-dialog{border-radius:8px;border:none;padding:0}.ui-dialog.ui-widget{border:none}.ui-dialog-titlebar{display:none}.ui-dialog .ui-dialog-content{padding:0;overflow:visible}.ui-dialog .project_name{word-break:break-all}.ui-dialog-content{--dialog-header-height: 50px;--dialog-layer-pageSelector: 0px}.ui-dialog-content-withPageSelector{--dialog-layer-pageSelector: 42px}.modal-header,.modal-body,.modal-footer{font-size:14px;position:relative}.modal-body{padding:var(--padding-default)}.modal-body:has(>.topTable:first-child){padding-top:calc(var(--padding-default) / 4)}.modal-header{border-bottom:1px solid var(--dialog-border-color);height:var(--dialog-header-height);padding:0 var(--padding-default);display:flex;justify-content:space-between;align-items:center;gap:var(--top-padding-2)}.modal-header>*{padding:10px 0;font-size:16px}.modal-header>.top-title{margin:0;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1;order:50;display:flex;align-items:center}.modal-header>.top-title>div[class*=icon]{display:none}.modal-header>div:not(.top-title){order:60}.modal-header>div.close{--top-icon-color: var(--color-text-2);cursor:pointer;background:var(--color-layout-front-1);font-size:16px;order:100;animation-name:none!important}.modal-header>div.close:hover{--top-icon-color: var(--color-text-1)}.modal-header .links_icons{position:absolute;right:50px}.modal-header .links_icons [class*=icon-]{width:auto;height:auto;padding:0 5px;color:#d6dee0}.modal-header .links_icons [class*=icon-].active{color:var(--color-bg-warning-1)}.modal-layer-pageSelector{padding:0 10px!important}.modal-body{max-height:calc(var(--100vh) - var(--dialog-header-height) - 1px - var(--dialog-layer-pageSelector) - var(--top-dialog-footer-height) - 1px);overflow-y:auto;overflow-x:hidden;box-sizing:border-box;flex-grow:1}.modal-body hr{margin:16px -15px}.modal-body h4{padding:0;margin:0 0 10px;line-height:normal}.modal-body .inner{padding:var(--padding-default);margin:0 calc(0px - var(--padding-default));position:relative}.modal-body .inner .bt{border-top:1px dashed var(--color-layout-front-primary-3);position:absolute;top:0;right:0;left:0}.modal-body .inner .bb{border-bottom:1px dashed var(--color-layout-front-primary-3);position:absolute;right:0;bottom:0;left:0}.modal-body .inner.color-1{background:var(--color-layout-front-primary-3);color:var(--color-text-1)}.modal-body .inner strong{color:var(--color-text-1)}.modal-body .comment{line-height:18px}.modal-footer{min-height:var(--top-dialog-footer-height);padding:var(--top-gap-2);display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;gap:var(--top-gap-2)}.modal-footer .modal-footer-btn-left{margin-right:auto}.modal-footer>.btn.full_width,.modal-footer>.top-button.full_width{flex-grow:1;align-self:flex-end}.modal-footer-fullWith{flex-wrap:wrap}.modal-footer-fullWith>*{flex-grow:1}.modal-footer-fullWith>.top-info{flex-grow:5}.modal-footer-fullWith>*:empty{flex-grow:0}.ui-dialog-content>.modal-layer>[data-view-page]>input[type=submit]{position:absolute;visibility:hidden}.help_popup .modal-header{display:none}.help_popup .modal-header a{top:2px;z-index:10}.help_popup .modal-header .top-title{display:none}.modal-layer{overflow:hidden}.modal-layer a[data-top-icon]:empty{color:var(--color-text-4);text-decoration:none}.modal-layer>[data-view-page]>div>div.buttons{display:flex;white-space:nowrap;gap:var(--top-padding-1)}.modal-layer>[data-view-page]>div>div.buttons:empty{display:none}.modal-layer>[data-view-page]>div>div.buttons>div,.modal-layer>[data-view-page]>div>div.buttons>a{cursor:pointer;width:auto;height:auto;min-width:auto;min-height:auto;padding:10px 9px;color:var(--color-text-4)}.modal-layer>[data-view-page]>div>div.buttons>div:hover{color:var(--color-text-2)}.modal-layer>[data-view-page]>div>div.buttons>div.hidden{display:none!important}.ui-dialog-content[data-view-page-active]{display:flex!important;flex-direction:column;justify-items:stretch}.ui-dialog-content>.modal-layer{display:flex!important;align-items:stretch;position:relative}.ui-dialog-content.i-change-page>.modal-layer{overflow:hidden}.ui-dialog-content>.modal-layer>[data-view-page]{width:100%;position:relative;display:none;flex-direction:column;justify-content:space-between;animation:.3s cubic-bezier(.4,0,.2,1) forwards}.ui-dialog-content>.modal-layer>[data-view-page].active{display:flex}.ui-dialog-content>.modal-layer>[data-view-page].reverse{animation-direction:reverse}.ui-dialog-content>.modal-layer>[data-view-page].center-to-left,.ui-dialog-content>.modal-layer>[data-view-page].right-to-center{display:flex;position:absolute;inset:0}.ui-dialog-content>.modal-layer>[data-view-page].center-to-left>div,.ui-dialog-content>.modal-layer>[data-view-page].right-to-center>div{overflow:hidden}.ui-dialog-content>.modal-layer-header{border-bottom:1px solid var(--dialog-border-color);min-height:var(--dialog-header-height)}.ui-dialog-content>.modal-layer-header>[data-view-page]>.modal-header{border:none;background:none}.ui-dialog-content>.modal-layer-header>[data-view-page]>.modal-header>*{animation:.3s cubic-bezier(.4,0,.2,1) forwards}.ui-dialog-content>.modal-layer-header>[data-view-page].reverse>.modal-header>*{animation-direction:reverse}.ui-dialog-content>.modal-layer-header>[data-view-page].center-to-left>.modal-header>.top-title{animation-name:dialog-center-to-left-header-title}.ui-dialog-content>.modal-layer-header>[data-view-page].right-to-center>.modal-header>.top-title{animation-name:dialog-right-to-center-header-title}.ui-dialog-content>.modal-layer-header>[data-view-page].center-to-left>.modal-header>[class*=widget-]{animation-name:dialog-center-to-left-header-title}.ui-dialog-content>.modal-layer-header>[data-view-page].right-to-center>.modal-header>[class*=widget-]{animation-name:dialog-right-to-center-header-title}.ui-dialog-content>.modal-layer-header>[data-view-page].center-to-left>.modal-header>div{animation-name:dialog-center-to-left-header-icons}.ui-dialog-content>.modal-layer-header>[data-view-page].right-to-center>.modal-header>div{animation-name:dialog-right-to-center-header-icons}.ui-dialog-content>.modal-layer-body{border-radius:0 0 8px 8px;max-height:calc(var(--100vh) - var(--dialog-header-height) - var(--dialog-layer-pageSelector) - var(--toolbar-height));flex-grow:2}.ui-dialog-content.i-change-page>.modal-layer-body>[data-view-page]{background:var(--color-layout-front-1)}.ui-dialog-content>.modal-layer-body>[data-view-page].center-to-left{animation-name:dialog-center-to-left}.ui-dialog-content>.modal-layer-body>[data-view-page].right-to-center{animation-name:dialog-right-to-center}.ui-dialog-content .modal-footer .second_level{box-sizing:border-box;background:var(--color-layout-front-1);width:100%;min-height:25px;display:flex;align-items:center;justify-content:center}.ui-dialog-content .modal-footer .second_level input{border-radius:8px;width:100%;height:var(--top-forms-base-height);padding:var(--top-padding-1) var(--top-padding-3);box-sizing:border-box}.ui-dialog-content>.modal-layer-body>[data-view-page].i-load-data{pointer-events:none}.ui-dialog-content>.modal-layer-body>[data-view-page].i-load-data:before{content:" ";background:#378dc6;width:0;height:4px;position:absolute;top:0;left:0;z-index:100;animation:top-loadbar var(--dialog-loading-duration) forwards}.ui-dialog-content.modal-expanded{width:100vw!important;height:calc(var(--100vh) + 10px)!important}.modal-header>[data-widget]{padding:0 8px;position:absolute;inset:0;opacity:0;overflow:hidden;align-items:center;visibility:hidden;transition:opacity .3s;z-index:1}.modal-header>[data-widget=search] div.cancel{opacity:0;transform:translate(100%);transition:transform,opacity;transition-duration:.3s}[data-view-page].i-show-search .modal-header>:not([data-widget=search]){visibility:hidden}[data-view-page].i-show-search [data-widget=search]{visibility:visible;opacity:1}[data-view-page].i-show-search [data-widget=search] .cancel{transform:translate(0);opacity:1}[data-view-page]>.modal-header>*{transition:opacity .3s}[data-view-page].i-show-search>.modal-header>div.buttons{opacity:0}.modal-layer .top-popup-wrapper{height:100%!important}@keyframes dialog-center-to-left-header-title{0%{transform:translate(0);opacity:1}75%{opacity:0}to{transform:translate(-30%);opacity:0}}@keyframes dialog-right-to-center-header-title{0%{transform:translate(100%);opacity:0}25%{opacity:0}to{transform:translate(0);opacity:1}}@keyframes dialog-center-to-left-header-icons{0%{transform:translate(0);opacity:1}35%{transform:translate(-20%);opacity:0}to{transform:translate(-20%);opacity:0}}@keyframes dialog-right-to-center-header-icons{0%{transform:translate(20%);opacity:0}65%{transform:translate(20%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes dialog-center-to-left{0%{transform:translate(0);filter:brightness(1)}to{transform:translate(-30%);filter:brightness(.9)}}@keyframes dialog-right-to-center{0%{transform:translate(100%);box-shadow:#0000001a 0 0 10px}to{transform:translate(0);box-shadow:#0003 0 0 10px}}@media only screen and (max-width: 1480px){.win_side_panel_opener{display:none}}@media only screen and (min-width: 1480px){.ui-dialog-content.with_side_panel{box-shadow:#0003 0 0 6px}.ui-dialog-content.with_side_panel .modal-layer-body{background:var(--color-layout-front-1)}[data-widget=side_panel]{--side_panel_width: calc((100vw - 900px)/2 - 28px) ;box-sizing:border-box;background:var(--color-layout-front-1);max-width:var(--side_panel_width);padding:18px;position:absolute;top:calc(var(--dialog-header-height) + 1px + var(--dialog-layer-pageSelector));bottom:calc(var(--top-dialog-footer-height) + 1px);z-index:-1;display:block;transition:.2s}.win_side_panel_left{border-radius:8px 0 0 8px;right:100%}.win_side_panel_right{border-radius:0 8px 8px 0;left:100%}.win_side_panel_closed.win_side_panel_left{right:calc(100% - var(--side_panel_width))}.win_side_panel_closed.win_side_panel_right{left:calc(100% - var(--side_panel_width))}[data-widget=side_panel] .template{display:block}[data-widget=side_panel] .template>.header,[data-widget=side_panel] .template>.footer{display:flex}.win_side_panel_opener{cursor:pointer;background:var(--color-cyan);color:#fff;padding:4px;position:absolute;top:20px}.win_side_panel_closed .win_side_panel_opener:not(:hover){opacity:.3}.win_side_panel_left .win_side_panel_opener{border-radius:4px 0 0 4px;right:100%}.win_side_panel_right .win_side_panel_opener{border-radius:0 6px 6px 0;left:100%}}@media only screen and (max-height: 900px){html.with_dialog{background:#f1f1f1;overflow:hidden}.ui-dialog.me-tightly{border-radius:0;height:auto!important;position:fixed;top:0!important;bottom:0!important}.ui-dialog.me-tightly .ui-dialog-content{min-height:100%!important}.ui-dialog.me-tightly>div>.modal-body{position:absolute;top:var(--dialog-header-height);right:0;left:0;bottom:var(--dialog-header-height)}.ui-dialog.me-tightly>div>.modal-body:last-child{bottom:0}.ui-dialog.me-tightly>div>.modal-footer{position:absolute;right:0;bottom:0;left:0}.ui-dialog.me-tightly .modal-layer-body{border-radius:0;min-height:0!important}.ui-dialog.me-tightly .modal-layer-body .modal-footer{min-height:unset}}', Z = 'html.with_dialog body{height:var(--100vh);overflow:hidden}.ui-widget-overlay{height:calc(100% - var(--toolbar-height))}.ui-dialog{border-radius:0;width:auto!important;height:auto!important;position:fixed;inset:0!important}.ui-dialog-content{width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important}.modal-header>.top-title{text-align:center;font-size:14px}.modal-header>div.close{font-size:14px;order:1}.modal-header>div.close:before{content:""}.modal-body:last-child{bottom:0}.modal-footer{bottom:0}.modal-footer .second_level{padding:10px 8px}.modal-layer-body{min-height:0!important}.ui-dialog-content>.modal-layer-body{border-radius:0}.modal-body,.modal-footer{padding-right:12px;padding-left:12px}.modal-footer .btn:last-child{margin-right:12px}.modal-body .inner{padding:12px;margin:0 -12px;position:relative}', G = ".modal-menu-opener{order:1!important}.modal-menu-opener:before{--top-icon-size: 20px;--top-icon-color: #FFF;--top-icon-width: var(--top-icon-size);border-radius:50%;background:var(--color-bg-primary-1);padding:3px;transition:transform .1s}.modal-menu-opener:hover:before{background:var(--color-bg-primary-2)}.modal-menu-opener.top-active:before{background:var(--color-bg-primary-2);transform:scale(.8)}.modal-layer .top-popup-wrapper{background:transparent;width:auto!important;padding:0!important;margin:0!important;top:0!important;right:0!important;left:0!important;transition:background .3s}.modal-layer .top-popup-wrapper>.top-popup[class],.modal-layer .top-popup-wrapper.with_notch>.top-popup[class]{border-radius:8px;border:none;margin:12px!important;max-width:100%;max-height:calc(100% - 24px);inset:0 0 auto!important;overflow:auto;display:flex;flex-direction:column;opacity:1;transform:translateY(calc(-100% - 24px));transition:transform .3s}.modal-layer .top-popup>.top-popup_header{background:var(--color-theme-50)}.modal-layer .top-theme-lite .top-popup>.top-popup_header .select{border:none}.modal-layer .top-theme-lite .top-popup>.top-popup_header .select .text{color:#fff}.modal-layer .top-theme-lite .top-popup>.top-popup_header .select .arrow{background:none}.modal-layer .top-popup-wrapper-shown:not(.top-popup-wrapper-closed){background:#34495e40}@media only screen and (min-width: 1480px){.ui-dialog-content.with_side_panel{box-shadow:#0003 0 0 6px}.ui-dialog-content.with_side_panel .modal-layer-body{background:var(--color-layout-front-1)}[data-widget=side_panel]{--side_panel_width: calc((100vw - 900px)/2 - 28px) ;box-sizing:border-box;background:var(--color-layout-front-1);max-width:var(--side_panel_width);padding:18px;display:block;position:absolute;top:51px;bottom:51px;z-index:-1;transition:.2s}.win_side_panel_left{border-radius:8px 0 0 8px;right:100%}.win_side_panel_right{border-radius:0 8px 8px 0;left:100%}.win_side_panel_closed.win_side_panel_left{right:calc(100% - var(--side_panel_width))}.win_side_panel_closed.win_side_panel_right{left:calc(100% - var(--side_panel_width))}[data-widget=side_panel] .template{display:block}[data-widget=side_panel] .template>.header,[data-widget=side_panel] .template>.footer{display:flex}.win_side_panel_opener{cursor:pointer;background:var(--color-cyan);color:#fff;padding:4px;position:absolute;top:20px}.win_side_panel_closed .win_side_panel_opener:not(:hover){opacity:.3}.win_side_panel_left .win_side_panel_opener{border-radius:4px 0 0 4px;right:100%}.win_side_panel_right .win_side_panel_opener{border-radius:0 6px 6px 0;left:100%}}", Q = "html{--top-dialog-width: auto;--top-dialog-height: auto}.top-dialog{max-width:100vw}.top-dialog .modal-layer-body{height:var(--top-dialog-height)}", X = ".top-dialog{width:var(--top-dialog-width)!important}";
|
|
74
|
+
f.insertStyleToPage(J);
|
|
75
|
+
f.insertStyleToPage(Z, "m");
|
|
76
|
+
f.insertStyleToPage(G, "pc");
|
|
77
|
+
f.insertStyleToPage(Q);
|
|
78
|
+
f.insertStyleToPage(X, "pc");
|
|
79
|
+
let W, P = !1;
|
|
80
|
+
const w = (e) => !!e && typeof e == "object" && "jquery" in e, Y = () => {
|
|
81
|
+
$.extend($.ui.dialog.prototype.options, {
|
|
82
|
+
focus: (e) => {
|
|
83
|
+
var t;
|
|
84
|
+
e.target.focus(), (t = $("[autofocus]", e.target)[0]) == null || t.focus();
|
|
85
|
+
},
|
|
86
|
+
create: (e) => N(e.target),
|
|
87
|
+
open: (e) => ee(e.target),
|
|
88
|
+
close: (e) => te(e.target),
|
|
89
|
+
modal: !0,
|
|
90
|
+
resizable: !1,
|
|
91
|
+
closeOnEscape: !1,
|
|
92
|
+
width: "auto",
|
|
93
|
+
minHeight: 0
|
|
94
|
+
}), $.ui.dialog.prototype._focusTabbable = $.noop, $.ui.dialog.prototype._moveToTopOriginal = $.ui.dialog.prototype._moveToTop, $.ui.dialog.prototype._moveToTop = function() {
|
|
95
|
+
this._moveToTopOriginal();
|
|
96
|
+
const e = $(this.element);
|
|
97
|
+
e.trigger("dialogsMoveToTop", [e]);
|
|
98
|
+
}, U(), P = !0;
|
|
99
|
+
}, C = (e) => {
|
|
100
|
+
var i, o;
|
|
101
|
+
const t = {};
|
|
102
|
+
return ((i = e.dataset) == null ? void 0 : i.modal) === "false" && (t.modal = !1), (o = e.dataset) != null && o.position && (t.position = JSON.parse(e.dataset.position)), t;
|
|
103
|
+
}, y = (e) => document.getElementById(e), _ = async (e, t, i) => {
|
|
104
|
+
if (!e.startsWith("dialog_")) return;
|
|
105
|
+
const o = A(e);
|
|
106
|
+
if (o && (o.isOpened.value = !0, t !== void 0 && (o.pageActive.value = t), i !== void 0 && (o.pageActiveNext.value = i), await V(), i)) {
|
|
107
|
+
const a = y(e);
|
|
108
|
+
if (!a) return;
|
|
109
|
+
a.querySelectorAll(`[data-view-page="${i}"]`).length || await O(() => !a.querySelectorAll(`[data-view-page="${i}"]`).length);
|
|
110
|
+
}
|
|
111
|
+
}, N = (e) => {
|
|
112
|
+
var i, o;
|
|
113
|
+
const t = e.querySelector(".modal-body");
|
|
114
|
+
t && (R(t), (o = (i = u.state).decoratorOnCreate) == null || o.call(i, e), D(e));
|
|
115
|
+
}, D = (e) => {
|
|
116
|
+
$(e).on("aftershow.top-menu-popup", "[data-top-popup]", (t, i) => {
|
|
117
|
+
var r;
|
|
118
|
+
const o = i[0], a = u.getPairPage(o);
|
|
119
|
+
(r = a == null ? void 0 : a[1]) == null || r.prepend(o);
|
|
120
|
+
});
|
|
121
|
+
}, ee = async (e) => {
|
|
122
|
+
var n;
|
|
123
|
+
const t = e.dataset.viewPageActive, i = window.innerWidth;
|
|
124
|
+
f.state.documentClassModificators.set("top-dialog", "with_dialog");
|
|
125
|
+
const a = window.innerWidth - i;
|
|
126
|
+
document.documentElement.scrollHeight > window.innerHeight && (document.querySelector("html").style.marginRight = a + "px"), j();
|
|
127
|
+
const r = A(e.getAttribute("id"));
|
|
128
|
+
(n = r == null ? void 0 : r.emit) == null || n.call(r, "open", t);
|
|
129
|
+
}, te = async (e) => {
|
|
130
|
+
var r;
|
|
131
|
+
const t = e.getAttribute("id"), i = e.dataset.viewPageActive;
|
|
132
|
+
if (i) {
|
|
133
|
+
const n = {
|
|
134
|
+
vpn: u.state.viewPageN,
|
|
135
|
+
["view-" + t]: null
|
|
136
|
+
};
|
|
137
|
+
n["view-" + t] = null, (u.state.viewPageN === 0 || u.state.viewPageN === 1) && (n.vpn = null), K(n, !1);
|
|
138
|
+
}
|
|
139
|
+
c(document, ".ui-widget-overlay").filter((n) => h(n)).length || (f.state.documentClassModificators.delete("top-dialog"), document.querySelector("html").style.marginRight = ""), $(e).trigger("viewAfterClose", [$(e)]);
|
|
140
|
+
const a = A(t);
|
|
141
|
+
a && (a.isOpened.value = !1, (r = a.emit) == null || r.call(a, "close", i), a.onCloseOnce && (a.onCloseOnce(a.props, i), a.onCloseOnce = void 0)), window.dispatchEvent(new Event("resize"));
|
|
142
|
+
}, j = () => {
|
|
143
|
+
c(document, ".ui-dialog").filter((t) => h(t) && t.querySelector(":scope > .ui-dialog-content")).map((t) => t.querySelector(":scope > .ui-dialog-content")).forEach((t) => {
|
|
144
|
+
if (!t.querySelector(".modal-body")) return;
|
|
145
|
+
const o = t.closest(".ui-dialog"), a = C(t);
|
|
146
|
+
a.position ??= { of: window }, $(t).dialog("option", a), o.classList.remove("me-tightly"), (o.clientHeight ?? 0) > window.innerHeight && o.classList.add("me-tightly");
|
|
147
|
+
});
|
|
148
|
+
}, oe = async (e, t) => {
|
|
149
|
+
const o = /(\w+)[=-]([\w-]+)(?::([\w.:-]+))?/g.exec(e);
|
|
150
|
+
if (o) {
|
|
151
|
+
const a = o[1], r = o[2], n = o[3];
|
|
152
|
+
let l = [];
|
|
153
|
+
n && (l = n.split(":")), await M(a, r, l, t);
|
|
154
|
+
}
|
|
155
|
+
}, M = async (e, t, i, o, a) => {
|
|
156
|
+
P || await new Promise((l, s) => {
|
|
157
|
+
const m = setInterval(() => {
|
|
158
|
+
P && (clearInterval(m), l());
|
|
159
|
+
}, 10);
|
|
160
|
+
}), await V();
|
|
161
|
+
let r;
|
|
162
|
+
if (typeof e == "object" ? (w(e) && (e = e == null ? void 0 : e[0]), r = e) : r = y(e), !r && typeof e == "string" && u.state.load && (await u.state.load(e), r = y(e), !r))
|
|
163
|
+
throw new Error("Dialog no exists: " + e);
|
|
164
|
+
if (!r) return;
|
|
165
|
+
await L(r, t, i, o);
|
|
166
|
+
const n = $(r);
|
|
167
|
+
if (r != null && r.classList.contains("ui-dialog-content"))
|
|
168
|
+
n.dialog("open");
|
|
169
|
+
else {
|
|
170
|
+
const l = C(r);
|
|
171
|
+
n.dialog(l);
|
|
172
|
+
}
|
|
173
|
+
a && a(n);
|
|
174
|
+
}, L = async (e, t, i, o) => {
|
|
175
|
+
var m, b;
|
|
176
|
+
w(e) && (e = e == null ? void 0 : e[0]), t === void 0 && (t = e.dataset.viewPageActive), t !== e.dataset.viewPageActive && q(e) && await H(100), i === void 0 && (i = []), await _(e.getAttribute("id"), void 0, t);
|
|
177
|
+
const a = c(e, ".modal-layer"), r = a.reduce((d, g) => {
|
|
178
|
+
const p = g.querySelector(":scope > .active");
|
|
179
|
+
return p && d.push(p), d;
|
|
180
|
+
}, []), n = a.reduce((d, g) => {
|
|
181
|
+
const p = g.querySelector(`:scope > [data-view-page="${t}"]`);
|
|
182
|
+
return p && d.push(p), d;
|
|
183
|
+
}, []), l = i.join(":");
|
|
184
|
+
if (o === void 0 && (o = "next", (((m = n[0]) == null ? void 0 : m.dataset.order) ?? 0) < (((b = r[0]) == null ? void 0 : b.dataset.order) ?? 0) && (o = "prev")), !n.length) return;
|
|
185
|
+
if (e.dataset.viewPageActive = t, n[0].classList.contains("active")) {
|
|
186
|
+
n[0].dataset.viewPageArgs !== l && n.forEach((d) => {
|
|
187
|
+
d.dataset.viewPageArgs = l;
|
|
188
|
+
}), z(e, n, t, i), S(e, n, t, i);
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
n.forEach((d) => {
|
|
192
|
+
d.dataset.viewPageArgs = l;
|
|
193
|
+
}), r.forEach((d) => {
|
|
194
|
+
d.querySelector(".top-popup-wrapper") && I.close(d.querySelector(".top-popup-wrapper"));
|
|
195
|
+
});
|
|
196
|
+
const s = n[0].closest(".ui-dialog");
|
|
197
|
+
switch (s && !h(s) && (o = "none"), r.length || (o = "none"), h(n[0]) && (o = "none"), o) {
|
|
198
|
+
case "prev": {
|
|
199
|
+
n.forEach((d) => {
|
|
200
|
+
var p, v;
|
|
201
|
+
const g = (p = d.parentNode) == null ? void 0 : p.querySelector(":scope > .active");
|
|
202
|
+
g && ((v = d.parentNode) == null || v.insertBefore(d, g));
|
|
203
|
+
}), r.forEach((d) => {
|
|
204
|
+
d.classList.add("right-to-center", "reverse");
|
|
205
|
+
}), n.forEach((d) => {
|
|
206
|
+
d.classList.add("center-to-left", "reverse");
|
|
207
|
+
});
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
case "next": {
|
|
211
|
+
n.forEach((d) => {
|
|
212
|
+
var p, v;
|
|
213
|
+
const g = (p = d.parentNode) == null ? void 0 : p.querySelector(":scope > .active");
|
|
214
|
+
g && ((v = d.parentNode) == null || v.insertBefore(d, g.nextSibling));
|
|
215
|
+
}), r.forEach((d) => {
|
|
216
|
+
d == null || d.classList.add("center-to-left");
|
|
217
|
+
}), n.forEach((d) => {
|
|
218
|
+
d.classList.add("right-to-center");
|
|
219
|
+
});
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (e.setAttribute("view-page-active", t), r.forEach((d) => {
|
|
224
|
+
d.classList.remove("active");
|
|
225
|
+
}), n.forEach((d) => {
|
|
226
|
+
d.classList.add("active");
|
|
227
|
+
}), z(e, n, t, i), o) {
|
|
228
|
+
e.classList.add("i-change-page");
|
|
229
|
+
const d = Number(window.getComputedStyle(n[0]).animationDuration.replace("s", "")) * 1e3;
|
|
230
|
+
W = setTimeout(function() {
|
|
231
|
+
_(e.getAttribute("id"), t, ""), q(e), S(e, n, t, i);
|
|
232
|
+
}, d);
|
|
233
|
+
} else
|
|
234
|
+
await _(e.getAttribute("id"), t, ""), S(e, n, t, i);
|
|
235
|
+
}, ae = (e) => {
|
|
236
|
+
var r;
|
|
237
|
+
const a = (r = c(e, ".modal-layer").reduce((n, l) => {
|
|
238
|
+
const s = l.querySelector(":scope > .active");
|
|
239
|
+
return s && n.push(s), n;
|
|
240
|
+
}, []).reduce((n, l) => {
|
|
241
|
+
let s = l.previousElementSibling;
|
|
242
|
+
for (; s && !s.hasAttribute("[data-view-page]"); )
|
|
243
|
+
s = s.previousElementSibling;
|
|
244
|
+
return s && n.push(s), n;
|
|
245
|
+
}, [])[0]) == null ? void 0 : r.dataset.viewPage;
|
|
246
|
+
a ? L(e, a, void 0, "prev") : $(e).dialog("close");
|
|
247
|
+
}, k = /* @__PURE__ */ new Set(), z = (e, t, i, o) => {
|
|
248
|
+
const a = e.getAttribute("id") + t[0].dataset.viewPage + i + o.join();
|
|
249
|
+
k.has(a) || (k.add(a), setTimeout(function() {
|
|
250
|
+
k.delete(a), $(e).trigger("viewBeforeOpen", [$(e), $(t), i, o]);
|
|
251
|
+
}));
|
|
252
|
+
}, S = (e, t, i, o) => {
|
|
253
|
+
setTimeout(function() {
|
|
254
|
+
$(e).trigger("viewAfterOpen", [$(e), $(t), i, o]);
|
|
255
|
+
});
|
|
256
|
+
}, B = (e) => (w(e) && (e = e == null ? void 0 : e[0]), e.classList.contains("i-change-page")), q = (e) => {
|
|
257
|
+
if (!B(e)) return !1;
|
|
258
|
+
clearTimeout(W);
|
|
259
|
+
const t = c(e, ".modal-layer"), i = e.dataset.viewPageActive;
|
|
260
|
+
return e.classList.remove("i-change-page"), t.forEach((o) => {
|
|
261
|
+
o.querySelectorAll(":scope > [data-view-page]").forEach((a) => {
|
|
262
|
+
a.classList.remove("center-to-left", "right-to-center", "reverse", "active");
|
|
263
|
+
});
|
|
264
|
+
}), t.forEach((o) => {
|
|
265
|
+
var a;
|
|
266
|
+
(a = o.querySelector(`:scope > [data-view-page="${i}"]`)) == null || a.classList.add("active");
|
|
267
|
+
}), !0;
|
|
268
|
+
}, ie = function(e) {
|
|
269
|
+
const t = y(e);
|
|
270
|
+
if (!t) return;
|
|
271
|
+
const i = $(t);
|
|
272
|
+
i.dialog("instance") && i.dialog("close");
|
|
273
|
+
}, re = (e, t, i) => {
|
|
274
|
+
w(e) && (e = e.toArray());
|
|
275
|
+
const o = e.reduce((a, r) => (r.hasAttribute("[data-view-page]") && h(r) && a.push(r), a), []);
|
|
276
|
+
t ? (i !== void 0 && o.forEach((a) => {
|
|
277
|
+
a.style.setProperty("--dialog-loading-duration", i + "s");
|
|
278
|
+
}), o.forEach((a) => {
|
|
279
|
+
a.classList.add("i-load-data");
|
|
280
|
+
})) : (o.forEach((a) => {
|
|
281
|
+
a.classList.remove("i-load-data");
|
|
282
|
+
}), o.forEach((a) => {
|
|
283
|
+
a.style.setProperty("--dialog-loading-duration", "10s");
|
|
284
|
+
}));
|
|
285
|
+
}, ne = (e) => (w(e) && (e = e == null ? void 0 : e[0]), e.classList.contains("i-load-data")), x = {
|
|
286
|
+
getElDialogById: y,
|
|
287
|
+
updatePageVue: _,
|
|
288
|
+
recalcPositions: j,
|
|
289
|
+
toViewDirty: oe,
|
|
290
|
+
toView: M,
|
|
291
|
+
toViewPage: L,
|
|
292
|
+
toPrevPage: ae,
|
|
293
|
+
setLoading: re,
|
|
294
|
+
isLoading: ne,
|
|
295
|
+
inAnimation: B,
|
|
296
|
+
close: ie
|
|
297
|
+
};
|
|
298
|
+
Y();
|
|
299
|
+
export {
|
|
300
|
+
x as TopDialogUtils
|
|
301
|
+
};
|
|
302
|
+
//# sourceMappingURL=utils-BitKP31L.es.js.map
|