@cwa/nuxt-edge 0.0.0-29696494.72f11a4
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/README.md +38 -0
- package/README.template.md +32 -0
- package/dist/layer/_components/TextButton.vue +13 -0
- package/dist/layer/error.vue +13 -0
- package/dist/layer/layouts/CwaRootLayout.vue +172 -0
- package/dist/layer/nuxt.config.ts +8 -0
- package/dist/layer/pages/_cwa/[cwaPage0].vue +18 -0
- package/dist/layer/pages/_cwa/index/composables/useDataList.ts +50 -0
- package/dist/layer/pages/_cwa/index/composables/useDataType.ts +41 -0
- package/dist/layer/pages/_cwa/index/composables/useDynamicPageLoader.ts +28 -0
- package/dist/layer/pages/_cwa/index/composables/useItemPage.ts +200 -0
- package/dist/layer/pages/_cwa/index/composables/useListPage.ts +44 -0
- package/dist/layer/pages/_cwa/index/composables/useParentPageDataLoader.ts +51 -0
- package/dist/layer/pages/_cwa/index/composables/useParentPageLoader.ts +25 -0
- package/dist/layer/pages/_cwa/index/data/[type]/[iri].vue +22 -0
- package/dist/layer/pages/_cwa/index/data/[type].vue +132 -0
- package/dist/layer/pages/_cwa/index/data/index.vue +84 -0
- package/dist/layer/pages/_cwa/index/layouts/[iri].vue +180 -0
- package/dist/layer/pages/_cwa/index/layouts.vue +77 -0
- package/dist/layer/pages/_cwa/index/pages/[iri].vue +16 -0
- package/dist/layer/pages/_cwa/index/pages.vue +130 -0
- package/dist/layer/pages/_cwa/index/routes.vue +56 -0
- package/dist/layer/pages/_cwa/index/settings.vue +398 -0
- package/dist/layer/pages/_cwa/index/users/[iri].vue +337 -0
- package/dist/layer/pages/_cwa/index/users.vue +90 -0
- package/dist/layer/pages/_cwa/index.vue +43 -0
- package/dist/layer/pages/confirm-new-email/[username]/[newEmail]/[token].vue +49 -0
- package/dist/layer/pages/forgot-password.vue +31 -0
- package/dist/layer/pages/login.vue +32 -0
- package/dist/layer/pages/reset-password/[username]/[token].vue +38 -0
- package/dist/layer/pages/verify-email/[username]/[token].vue +48 -0
- package/dist/module.d.mts +15 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +292 -0
- package/dist/runtime/admin/admin.d.ts +35 -0
- package/dist/runtime/admin/admin.js +65 -0
- package/dist/runtime/admin/manageable-resource.d.ts +42 -0
- package/dist/runtime/admin/manageable-resource.js +241 -0
- package/dist/runtime/admin/manager-tabs-resolver.d.ts +17 -0
- package/dist/runtime/admin/manager-tabs-resolver.js +55 -0
- package/dist/runtime/admin/navigation-guard.d.ts +18 -0
- package/dist/runtime/admin/navigation-guard.js +57 -0
- package/dist/runtime/admin/resource-stack-manager.d.ts +93 -0
- package/dist/runtime/admin/resource-stack-manager.js +388 -0
- package/dist/runtime/api/api-documentation.d.ts +28 -0
- package/dist/runtime/api/api-documentation.js +131 -0
- package/dist/runtime/api/auth.d.ts +100 -0
- package/dist/runtime/api/auth.js +264 -0
- package/dist/runtime/api/fetcher/cwa-fetch.d.ts +12 -0
- package/dist/runtime/api/fetcher/cwa-fetch.js +43 -0
- package/dist/runtime/api/fetcher/fetch-status-manager.d.ts +59 -0
- package/dist/runtime/api/fetcher/fetch-status-manager.js +225 -0
- package/dist/runtime/api/fetcher/fetcher.d.ts +57 -0
- package/dist/runtime/api/fetcher/fetcher.js +263 -0
- package/dist/runtime/api/fetcher/preload-headers.d.ts +6 -0
- package/dist/runtime/api/fetcher/preload-headers.js +31 -0
- package/dist/runtime/api/forms.d.ts +40 -0
- package/dist/runtime/api/forms.js +40 -0
- package/dist/runtime/api/mercure.d.ts +32 -0
- package/dist/runtime/api/mercure.js +196 -0
- package/dist/runtime/api/site-config.d.ts +36 -0
- package/dist/runtime/api/site-config.js +135 -0
- package/dist/runtime/composables/component/html-content.d.ts +2 -0
- package/dist/runtime/composables/component/html-content.js +74 -0
- package/dist/runtime/composables/cwa-collection-pagination.d.ts +13 -0
- package/dist/runtime/composables/cwa-collection-pagination.js +34 -0
- package/dist/runtime/composables/cwa-collection-resource.d.ts +18 -0
- package/dist/runtime/composables/cwa-collection-resource.js +105 -0
- package/dist/runtime/composables/cwa-image-resource.d.ts +15 -0
- package/dist/runtime/composables/cwa-image-resource.js +26 -0
- package/dist/runtime/composables/cwa-image.d.ts +24 -0
- package/dist/runtime/composables/cwa-image.js +38 -0
- package/dist/runtime/composables/cwa-query-bound-model.d.ts +9 -0
- package/dist/runtime/composables/cwa-query-bound-model.js +109 -0
- package/dist/runtime/composables/cwa-resource-endpoint.d.ts +5 -0
- package/dist/runtime/composables/cwa-resource-endpoint.js +36 -0
- package/dist/runtime/composables/cwa-resource-manageable.d.ts +10 -0
- package/dist/runtime/composables/cwa-resource-manageable.js +53 -0
- package/dist/runtime/composables/cwa-resource-manager-tab.d.ts +16 -0
- package/dist/runtime/composables/cwa-resource-manager-tab.js +30 -0
- package/dist/runtime/composables/cwa-resource-model.d.ts +21 -0
- package/dist/runtime/composables/cwa-resource-model.js +156 -0
- package/dist/runtime/composables/cwa-resource-upload.d.ts +8 -0
- package/dist/runtime/composables/cwa-resource-upload.js +70 -0
- package/dist/runtime/composables/cwa-resource.d.ts +26 -0
- package/dist/runtime/composables/cwa-resource.js +42 -0
- package/dist/runtime/composables/cwa-select-input.d.ts +21 -0
- package/dist/runtime/composables/cwa-select-input.js +37 -0
- package/dist/runtime/composables/cwa-select.d.ts +15 -0
- package/dist/runtime/composables/cwa-select.js +24 -0
- package/dist/runtime/composables/cwa.d.ts +2 -0
- package/dist/runtime/composables/cwa.js +2 -0
- package/dist/runtime/composables/forgot-password.d.ts +9 -0
- package/dist/runtime/composables/forgot-password.js +45 -0
- package/dist/runtime/composables/login.d.ts +9 -0
- package/dist/runtime/composables/login.js +30 -0
- package/dist/runtime/composables/popper.d.ts +529 -0
- package/dist/runtime/composables/popper.js +105 -0
- package/dist/runtime/composables/process.d.ts +4 -0
- package/dist/runtime/composables/process.js +6 -0
- package/dist/runtime/composables/reset-password.d.ts +14 -0
- package/dist/runtime/composables/reset-password.js +75 -0
- package/dist/runtime/composables/transitions.d.ts +12 -0
- package/dist/runtime/composables/transitions.js +12 -0
- package/dist/runtime/composables/useCwaResourceRoute.d.ts +10 -0
- package/dist/runtime/composables/useCwaResourceRoute.js +17 -0
- package/dist/runtime/composables/useCwaSiteConfig.d.ts +15 -0
- package/dist/runtime/composables/useCwaSiteConfig.js +78 -0
- package/dist/runtime/composables/useResendVerifyEmail.d.ts +6 -0
- package/dist/runtime/composables/useResendVerifyEmail.js +43 -0
- package/dist/runtime/composables/useVerifyEmail.d.ts +8 -0
- package/dist/runtime/composables/useVerifyEmail.js +84 -0
- package/dist/runtime/cwa.d.ts +70 -0
- package/dist/runtime/cwa.js +133 -0
- package/dist/runtime/errors/cwa-resource-error.d.ts +20 -0
- package/dist/runtime/errors/cwa-resource-error.js +61 -0
- package/dist/runtime/plugin.d.ts +8 -0
- package/dist/runtime/plugin.js +20 -0
- package/dist/runtime/resources/resource-utils.d.ts +52 -0
- package/dist/runtime/resources/resource-utils.js +86 -0
- package/dist/runtime/resources/resources-manager.d.ts +70 -0
- package/dist/runtime/resources/resources-manager.js +482 -0
- package/dist/runtime/resources/resources.d.ts +61 -0
- package/dist/runtime/resources/resources.js +360 -0
- package/dist/runtime/route-middleware.d.ts +2 -0
- package/dist/runtime/route-middleware.js +71 -0
- package/dist/runtime/server/cwa-custom-sitemap.get.d.ts +2 -0
- package/dist/runtime/server/cwa-custom-sitemap.get.js +29 -0
- package/dist/runtime/server/cwa-healthcheck.get.d.ts +4 -0
- package/dist/runtime/server/cwa-healthcheck.get.js +10 -0
- package/dist/runtime/server/cwa-urls.get.d.ts +3 -0
- package/dist/runtime/server/cwa-urls.get.js +15 -0
- package/dist/runtime/server/server-middleware.d.ts +2 -0
- package/dist/runtime/server/server-middleware.js +63 -0
- package/dist/runtime/server/server-plugin.d.ts +2 -0
- package/dist/runtime/server/server-plugin.js +59 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/useFetcher.d.ts +7 -0
- package/dist/runtime/server/useFetcher.js +40 -0
- package/dist/runtime/storage/storage.d.ts +25 -0
- package/dist/runtime/storage/storage.js +48 -0
- package/dist/runtime/storage/stores/admin/actions.d.ts +5 -0
- package/dist/runtime/storage/stores/admin/actions.js +10 -0
- package/dist/runtime/storage/stores/admin/admin-store.d.ts +18 -0
- package/dist/runtime/storage/stores/admin/admin-store.js +20 -0
- package/dist/runtime/storage/stores/admin/state.d.ts +7 -0
- package/dist/runtime/storage/stores/admin/state.js +9 -0
- package/dist/runtime/storage/stores/api-documentation/api-documentation-store.d.ts +16 -0
- package/dist/runtime/storage/stores/api-documentation/api-documentation-store.js +18 -0
- package/dist/runtime/storage/stores/api-documentation/state.d.ts +71 -0
- package/dist/runtime/storage/stores/api-documentation/state.js +6 -0
- package/dist/runtime/storage/stores/auth/auth-store.d.ts +16 -0
- package/dist/runtime/storage/stores/auth/auth-store.js +18 -0
- package/dist/runtime/storage/stores/auth/state.d.ts +19 -0
- package/dist/runtime/storage/stores/auth/state.js +15 -0
- package/dist/runtime/storage/stores/cwa-store-types.d.ts +14 -0
- package/dist/runtime/storage/stores/error/actions.d.ts +11 -0
- package/dist/runtime/storage/stores/error/actions.js +73 -0
- package/dist/runtime/storage/stores/error/error-store.d.ts +13 -0
- package/dist/runtime/storage/stores/error/error-store.js +21 -0
- package/dist/runtime/storage/stores/error/getters.d.ts +7 -0
- package/dist/runtime/storage/stores/error/getters.js +11 -0
- package/dist/runtime/storage/stores/error/state.d.ts +35 -0
- package/dist/runtime/storage/stores/error/state.js +15 -0
- package/dist/runtime/storage/stores/fetcher/actions.d.ts +56 -0
- package/dist/runtime/storage/stores/fetcher/actions.js +138 -0
- package/dist/runtime/storage/stores/fetcher/fetcher-store.d.ts +19 -0
- package/dist/runtime/storage/stores/fetcher/fetcher-store.js +23 -0
- package/dist/runtime/storage/stores/fetcher/getter-utils.d.ts +7 -0
- package/dist/runtime/storage/stores/fetcher/getter-utils.js +27 -0
- package/dist/runtime/storage/stores/fetcher/getters.d.ts +13 -0
- package/dist/runtime/storage/stores/fetcher/getters.js +52 -0
- package/dist/runtime/storage/stores/fetcher/state.d.ts +27 -0
- package/dist/runtime/storage/stores/fetcher/state.js +7 -0
- package/dist/runtime/storage/stores/mercure/mercure-store.d.ts +16 -0
- package/dist/runtime/storage/stores/mercure/mercure-store.js +18 -0
- package/dist/runtime/storage/stores/mercure/state.d.ts +5 -0
- package/dist/runtime/storage/stores/mercure/state.js +6 -0
- package/dist/runtime/storage/stores/resources/actions.d.ts +59 -0
- package/dist/runtime/storage/stores/resources/actions.js +449 -0
- package/dist/runtime/storage/stores/resources/getter-utils.d.ts +7 -0
- package/dist/runtime/storage/stores/resources/getter-utils.js +27 -0
- package/dist/runtime/storage/stores/resources/getters.d.ts +38 -0
- package/dist/runtime/storage/stores/resources/getters.js +254 -0
- package/dist/runtime/storage/stores/resources/resources-store.d.ts +19 -0
- package/dist/runtime/storage/stores/resources/resources-store.js +23 -0
- package/dist/runtime/storage/stores/resources/state.d.ts +67 -0
- package/dist/runtime/storage/stores/resources/state.js +24 -0
- package/dist/runtime/storage/stores/site-config/actions.d.ts +9 -0
- package/dist/runtime/storage/stores/site-config/actions.js +20 -0
- package/dist/runtime/storage/stores/site-config/getters.d.ts +7 -0
- package/dist/runtime/storage/stores/site-config/getters.js +10 -0
- package/dist/runtime/storage/stores/site-config/site-config-store.d.ts +19 -0
- package/dist/runtime/storage/stores/site-config/site-config-store.js +23 -0
- package/dist/runtime/storage/stores/site-config/state.d.ts +13 -0
- package/dist/runtime/storage/stores/site-config/state.js +8 -0
- package/dist/runtime/templates/assets/base.css +1 -0
- package/dist/runtime/templates/assets/cwa.css +1 -0
- package/dist/runtime/templates/components/core/ComponentPlaceholder.d.vue.ts +7 -0
- package/dist/runtime/templates/components/core/ComponentPlaceholder.vue +27 -0
- package/dist/runtime/templates/components/core/ComponentPlaceholder.vue.d.ts +7 -0
- package/dist/runtime/templates/components/core/ComponentPosition.d.vue.ts +4 -0
- package/dist/runtime/templates/components/core/ComponentPosition.spec.ts.snap +16 -0
- package/dist/runtime/templates/components/core/ComponentPosition.vue +64 -0
- package/dist/runtime/templates/components/core/ComponentPosition.vue.d.ts +4 -0
- package/dist/runtime/templates/components/core/ConfirmDialog.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/ConfirmDialog.vue +41 -0
- package/dist/runtime/templates/components/core/ConfirmDialog.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/DialogBox.d.vue.ts +38 -0
- package/dist/runtime/templates/components/core/DialogBox.vue +96 -0
- package/dist/runtime/templates/components/core/DialogBox.vue.d.ts +38 -0
- package/dist/runtime/templates/components/core/README.md +1 -0
- package/dist/runtime/templates/components/core/ResourceLoader.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/ResourceLoader.spec.ts.snap +39 -0
- package/dist/runtime/templates/components/core/ResourceLoader.vue +151 -0
- package/dist/runtime/templates/components/core/ResourceLoader.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/CwaCode.d.vue.ts +12 -0
- package/dist/runtime/templates/components/core/admin/CwaCode.vue +7 -0
- package/dist/runtime/templates/components/core/admin/CwaCode.vue.d.ts +12 -0
- package/dist/runtime/templates/components/core/admin/ListContainer.d.vue.ts +12 -0
- package/dist/runtime/templates/components/core/admin/ListContainer.vue +11 -0
- package/dist/runtime/templates/components/core/admin/ListContainer.vue.d.ts +12 -0
- package/dist/runtime/templates/components/core/admin/ListContent.d.vue.ts +24 -0
- package/dist/runtime/templates/components/core/admin/ListContent.vue +137 -0
- package/dist/runtime/templates/components/core/admin/ListContent.vue.d.ts +24 -0
- package/dist/runtime/templates/components/core/admin/ListFilter.d.vue.ts +10 -0
- package/dist/runtime/templates/components/core/admin/ListFilter.vue +49 -0
- package/dist/runtime/templates/components/core/admin/ListFilter.vue.d.ts +10 -0
- package/dist/runtime/templates/components/core/admin/ListFilterButton.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/ListFilterButton.vue +53 -0
- package/dist/runtime/templates/components/core/admin/ListFilterButton.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/ListHeading.d.vue.ts +20 -0
- package/dist/runtime/templates/components/core/admin/ListHeading.vue +33 -0
- package/dist/runtime/templates/components/core/admin/ListHeading.vue.d.ts +20 -0
- package/dist/runtime/templates/components/core/admin/ListPagination.d.vue.ts +17 -0
- package/dist/runtime/templates/components/core/admin/ListPagination.vue +94 -0
- package/dist/runtime/templates/components/core/admin/ListPagination.vue.d.ts +17 -0
- package/dist/runtime/templates/components/core/admin/ListPaginationButton.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue +19 -0
- package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/PageAdminModal.d.vue.ts +13 -0
- package/dist/runtime/templates/components/core/admin/PageAdminModal.vue +404 -0
- package/dist/runtime/templates/components/core/admin/PageAdminModal.vue.d.ts +13 -0
- package/dist/runtime/templates/components/core/admin/PageDataAdminModal.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue +368 -0
- package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.vue +439 -0
- package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/ResourceModal.d.vue.ts +35 -0
- package/dist/runtime/templates/components/core/admin/ResourceModal.vue +110 -0
- package/dist/runtime/templates/components/core/admin/ResourceModal.vue.d.ts +35 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.d.vue.ts +7 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue +27 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue.d.ts +7 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.d.vue.ts +15 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue +24 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue.d.ts +15 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalTabs.d.vue.ts +0 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue +81 -0
- package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue.d.ts +0 -0
- package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.vue +42 -0
- package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/RouteListRow.d.vue.ts +21 -0
- package/dist/runtime/templates/components/core/admin/RouteListRow.vue +102 -0
- package/dist/runtime/templates/components/core/admin/RouteListRow.vue.d.ts +21 -0
- package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.d.vue.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue +62 -0
- package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue.d.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RoutesTab.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/RoutesTab.vue +264 -0
- package/dist/runtime/templates/components/core/admin/RoutesTab.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.d.vue.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.vue +45 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.vue.d.ts +11 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabManage.d.vue.ts +24 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabManage.vue +139 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabManage.vue.d.ts +24 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabView.d.vue.ts +17 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabView.vue +74 -0
- package/dist/runtime/templates/components/core/admin/RoutesTabView.vue.d.ts +17 -0
- package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue +19 -0
- package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/FilterSelect.d.vue.ts +8 -0
- package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue +86 -0
- package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue.d.ts +8 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInfo.d.vue.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue +24 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue.d.ts +16 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInput.d.vue.ts +17 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInput.vue +57 -0
- package/dist/runtime/templates/components/core/admin/form/ModalInput.vue.d.ts +17 -0
- package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.d.vue.ts +14 -0
- package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.vue +23 -0
- package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.vue.d.ts +14 -0
- package/dist/runtime/templates/components/core/admin/form/ModalSelect.d.vue.ts +12 -0
- package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue +100 -0
- package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue.d.ts +12 -0
- package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.d.vue.ts +9 -0
- package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue +112 -0
- package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue.d.ts +9 -0
- package/dist/runtime/templates/components/core/assets/CwaLogo.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/CwaLogo.vue +21 -0
- package/dist/runtime/templates/components/core/assets/CwaLogo.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconComponents.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconComponents.vue +15 -0
- package/dist/runtime/templates/components/core/assets/IconComponents.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconData.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconData.vue +24 -0
- package/dist/runtime/templates/components/core/assets/IconData.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconLayouts.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconLayouts.vue +20 -0
- package/dist/runtime/templates/components/core/assets/IconLayouts.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconPages.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconPages.vue +21 -0
- package/dist/runtime/templates/components/core/assets/IconPages.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconRoutes.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconRoutes.vue +23 -0
- package/dist/runtime/templates/components/core/assets/IconRoutes.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconUsers.d.vue.ts +3 -0
- package/dist/runtime/templates/components/core/assets/IconUsers.vue +13 -0
- package/dist/runtime/templates/components/core/assets/IconUsers.vue.d.ts +3 -0
- package/dist/runtime/templates/components/core/useDataResolver.d.ts +12 -0
- package/dist/runtime/templates/components/core/useDataResolver.js +113 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.d.ts +6 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.js +166 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.d.ts +22 -0
- package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.js +102 -0
- package/dist/runtime/templates/components/main/ComponentGroup.d.vue.ts +13 -0
- package/dist/runtime/templates/components/main/ComponentGroup.spec.ts.snap +68 -0
- package/dist/runtime/templates/components/main/ComponentGroup.vue +138 -0
- package/dist/runtime/templates/components/main/ComponentGroup.vue.d.ts +13 -0
- package/dist/runtime/templates/components/main/CwaLink.d.vue.ts +14 -0
- package/dist/runtime/templates/components/main/CwaLink.vue +55 -0
- package/dist/runtime/templates/components/main/CwaLink.vue.d.ts +14 -0
- package/dist/runtime/templates/components/main/CwaPage.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/CwaPage.vue +22 -0
- package/dist/runtime/templates/components/main/CwaPage.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/DefaultLayout.d.vue.ts +12 -0
- package/dist/runtime/templates/components/main/DefaultLayout.vue +12 -0
- package/dist/runtime/templates/components/main/DefaultLayout.vue.d.ts +12 -0
- package/dist/runtime/templates/components/main/ErrorPage.d.vue.ts +7 -0
- package/dist/runtime/templates/components/main/ErrorPage.vue +134 -0
- package/dist/runtime/templates/components/main/ErrorPage.vue.d.ts +7 -0
- package/dist/runtime/templates/components/main/Logo.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/Logo.vue +18 -0
- package/dist/runtime/templates/components/main/Logo.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/README.md +7 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.d.vue.ts +12 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue +41 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue.d.ts +12 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue +48 -0
- package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.d.ts +5 -0
- package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.js +19 -0
- package/dist/runtime/templates/components/main/admin/header/Header.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/Header.vue +209 -0
- package/dist/runtime/templates/components/main/admin/header/Header.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Menu.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue +155 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.d.vue.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue +15 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue.d.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.d.vue.ts +15 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue +20 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue.d.ts +15 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Notification.d.vue.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue +70 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue.d.ts +16 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue +19 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue +79 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue +52 -0
- package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.d.vue.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue +159 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue.d.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.d.vue.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue +198 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue.d.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.d.vue.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue +186 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue.d.ts +10 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue +208 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.d.vue.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue +38 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue.d.ts +11 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.d.vue.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue +15 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue.d.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.d.vue.ts +14 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue +44 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue.d.ts +14 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue +67 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue +75 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue +41 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue +114 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue +34 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue +104 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue +52 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.d.vue.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue +94 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue.d.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.d.vue.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue +59 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue.d.ts +8 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.d.vue.ts +3 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue +28 -0
- package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue.d.ts +3 -0
- package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.d.vue.ts +26 -0
- package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue +56 -0
- package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue.d.ts +26 -0
- package/dist/runtime/templates/components/main/auth/LoginPage.d.vue.ts +28 -0
- package/dist/runtime/templates/components/main/auth/LoginPage.vue +61 -0
- package/dist/runtime/templates/components/main/auth/LoginPage.vue.d.ts +28 -0
- package/dist/runtime/templates/components/main/auth/ResetPasswordPage.d.vue.ts +28 -0
- package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue +59 -0
- package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue.d.ts +28 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.d.vue.ts +7 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.spec.ts.snap +14 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue +17 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue.d.ts +7 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.d.vue.ts +25 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.spec.ts.snap +90 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue +59 -0
- package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue.d.ts +25 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.d.vue.ts +22 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.spec.ts.snap +111 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.vue +50 -0
- package/dist/runtime/templates/components/main/auth/_parts/InputField.vue.d.ts +22 -0
- package/dist/runtime/templates/components/ui/BackgroundParticles.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/BackgroundParticles.vue +1071 -0
- package/dist/runtime/templates/components/ui/BackgroundParticles.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/Hamburger.d.vue.ts +10 -0
- package/dist/runtime/templates/components/ui/Hamburger.vue +75 -0
- package/dist/runtime/templates/components/ui/Hamburger.vue.d.ts +10 -0
- package/dist/runtime/templates/components/ui/ProgressBar.d.vue.ts +10 -0
- package/dist/runtime/templates/components/ui/ProgressBar.spec.ts.snap +71 -0
- package/dist/runtime/templates/components/ui/ProgressBar.vue +29 -0
- package/dist/runtime/templates/components/ui/ProgressBar.vue.d.ts +10 -0
- package/dist/runtime/templates/components/ui/README.md +6 -0
- package/dist/runtime/templates/components/ui/alert/Info.d.vue.ts +12 -0
- package/dist/runtime/templates/components/ui/alert/Info.spec.ts.snap +23 -0
- package/dist/runtime/templates/components/ui/alert/Info.vue +17 -0
- package/dist/runtime/templates/components/ui/alert/Info.vue.d.ts +12 -0
- package/dist/runtime/templates/components/ui/alert/Warning.d.vue.ts +13 -0
- package/dist/runtime/templates/components/ui/alert/Warning.spec.ts.snap +18 -0
- package/dist/runtime/templates/components/ui/alert/Warning.vue +13 -0
- package/dist/runtime/templates/components/ui/alert/Warning.vue.d.ts +13 -0
- package/dist/runtime/templates/components/ui/form/Button.d.vue.ts +53 -0
- package/dist/runtime/templates/components/ui/form/Button.vue +139 -0
- package/dist/runtime/templates/components/ui/form/Button.vue.d.ts +53 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.d.vue.ts +11 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue +18 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue.d.ts +11 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.d.vue.ts +11 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue +15 -0
- package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue.d.ts +11 -0
- package/dist/runtime/templates/components/ui/form/File.d.vue.ts +18 -0
- package/dist/runtime/templates/components/ui/form/File.vue +72 -0
- package/dist/runtime/templates/components/ui/form/File.vue.d.ts +18 -0
- package/dist/runtime/templates/components/ui/form/Input.d.vue.ts +10 -0
- package/dist/runtime/templates/components/ui/form/Input.vue +17 -0
- package/dist/runtime/templates/components/ui/form/Input.vue.d.ts +10 -0
- package/dist/runtime/templates/components/ui/form/LabelWrapper.d.vue.ts +15 -0
- package/dist/runtime/templates/components/ui/form/LabelWrapper.vue +17 -0
- package/dist/runtime/templates/components/ui/form/LabelWrapper.vue.d.ts +15 -0
- package/dist/runtime/templates/components/ui/form/SearchResource.d.vue.ts +15 -0
- package/dist/runtime/templates/components/ui/form/SearchResource.vue +212 -0
- package/dist/runtime/templates/components/ui/form/SearchResource.vue.d.ts +15 -0
- package/dist/runtime/templates/components/ui/form/Select.d.vue.ts +8 -0
- package/dist/runtime/templates/components/ui/form/Select.vue +60 -0
- package/dist/runtime/templates/components/ui/form/Select.vue.d.ts +8 -0
- package/dist/runtime/templates/components/ui/form/Toggle.d.vue.ts +11 -0
- package/dist/runtime/templates/components/ui/form/Toggle.vue +48 -0
- package/dist/runtime/templates/components/ui/form/Toggle.vue.d.ts +11 -0
- package/dist/runtime/templates/components/ui/icon/ArrowIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue +30 -0
- package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/BinIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/BinIcon.vue +24 -0
- package/dist/runtime/templates/components/ui/icon/BinIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/CogIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/CogIcon.vue +9 -0
- package/dist/runtime/templates/components/ui/icon/CogIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/EyeIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/EyeIcon.vue +24 -0
- package/dist/runtime/templates/components/ui/icon/EyeIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PenIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PenIcon.vue +12 -0
- package/dist/runtime/templates/components/ui/icon/PenIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PlusIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/PlusIcon.vue +9 -0
- package/dist/runtime/templates/components/ui/icon/PlusIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/SearchIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/SearchIcon.vue +10 -0
- package/dist/runtime/templates/components/ui/icon/SearchIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/TickIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/TickIcon.vue +23 -0
- package/dist/runtime/templates/components/ui/icon/TickIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/WarningIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/WarningIcon.vue +11 -0
- package/dist/runtime/templates/components/ui/icon/WarningIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/XMarkIcon.d.vue.ts +3 -0
- package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue +15 -0
- package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue.d.ts +3 -0
- package/dist/runtime/templates/components/utils/ContextMenu.d.vue.ts +27 -0
- package/dist/runtime/templates/components/utils/ContextMenu.vue +60 -0
- package/dist/runtime/templates/components/utils/ContextMenu.vue.d.ts +27 -0
- package/dist/runtime/templates/components/utils/HotSpot.d.vue.ts +12 -0
- package/dist/runtime/templates/components/utils/HotSpot.vue +28 -0
- package/dist/runtime/templates/components/utils/HotSpot.vue.d.ts +12 -0
- package/dist/runtime/templates/components/utils/README.md +1 -0
- package/dist/runtime/templates/components/utils/Spinner.d.vue.ts +7 -0
- package/dist/runtime/templates/components/utils/Spinner.spec.ts.snap +56 -0
- package/dist/runtime/templates/components/utils/Spinner.vue +44 -0
- package/dist/runtime/templates/components/utils/Spinner.vue.d.ts +7 -0
- package/dist/runtime/templates/components/utils/SpinnerTick.d.vue.ts +7 -0
- package/dist/runtime/templates/components/utils/SpinnerTick.vue +43 -0
- package/dist/runtime/templates/components/utils/SpinnerTick.vue.d.ts +7 -0
- package/dist/runtime/templates/cwa-page.d.vue.ts +3 -0
- package/dist/runtime/templates/cwa-page.spec.ts.snap +9 -0
- package/dist/runtime/templates/cwa-page.vue +55 -0
- package/dist/runtime/templates/cwa-page.vue.d.ts +3 -0
- package/dist/runtime/types/index.d.ts +59 -0
- package/dist/runtime/types/index.js +0 -0
- package/dist/runtime/types/popper.d.ts +14 -0
- package/dist/types.d.mts +7 -0
- package/package.json +132 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
clear: (...args: any[]) => void;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.d.vue.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useCwa } from "#cwa/composables/cwa";
|
|
3
|
+
const $cwa = useCwa();
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<template>
|
|
7
|
+
<div
|
|
8
|
+
v-if="$cwa.resources.hasNewResources"
|
|
9
|
+
class="cwa:dark-blur cwa:py-2 cwa:px-3 cwa:rounded-full cwa:flex cwa:gap-x-1.5 cwa:items-center cwa:opacity-75 cwa:hover:opacity-100 cwa:transition"
|
|
10
|
+
>
|
|
11
|
+
<span class="cwa:text-stone-300">The content on this page is outdated</span>
|
|
12
|
+
<button
|
|
13
|
+
class="cwa:bg-light/90 cwa:hover:bg-light cwa:text-dark cwa:py-1 cwa:px-2 cwa:rounded-full cwa:cursor-pointer"
|
|
14
|
+
@click.stop="$cwa.resourcesManager.mergeNewResources"
|
|
15
|
+
>
|
|
16
|
+
Update
|
|
17
|
+
</button>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="stackItem && stackSize"
|
|
4
|
+
ref="pathSelector"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
class="cwa:py-1.5 cwa:px-3 cwa:bg-neutral-800 cwa:border cwa:border-dashed cwa:text-white"
|
|
8
|
+
:class="[isEnabled ? 'cwa:hover:bg-dark cwa:cursor-pointer' : '']"
|
|
9
|
+
@click="openMenu"
|
|
10
|
+
>
|
|
11
|
+
<span :class="{ 'cwa:opacity-0 cwa:duration-200': isOpen }">{{ stackItem.displayName }}</span>
|
|
12
|
+
</div>
|
|
13
|
+
<Transition v-bind="transitions.context">
|
|
14
|
+
<div
|
|
15
|
+
v-if="isOpen"
|
|
16
|
+
class="cwa:absolute cwa:top-0 cwa:left-1/2 cwa:-translate-x-1/2 cwa:min-w-full cwa:box-content cwa:inline-block"
|
|
17
|
+
:style="{ marginTop, transformOrigin: tOrig }"
|
|
18
|
+
>
|
|
19
|
+
<div class="cwa:relative cwa:bg-dark cwa:inline-block">
|
|
20
|
+
<resource-context-item
|
|
21
|
+
:index="stackSize - 1"
|
|
22
|
+
:root-width="selectorWidth"
|
|
23
|
+
:use-current-stack="true"
|
|
24
|
+
@click="(index) => selectResource(index)"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</Transition>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script setup>
|
|
33
|
+
import { computed, ref, useTemplateRef } from "vue";
|
|
34
|
+
import { onClickOutside } from "@vueuse/core";
|
|
35
|
+
import ResourceContextItem from "../../_common/ResourceContextItem.vue";
|
|
36
|
+
import { useCwa } from "#cwa/composables/cwa";
|
|
37
|
+
import { useTransitions } from "#cwa/composables/transitions";
|
|
38
|
+
const $cwa = useCwa();
|
|
39
|
+
const transitions = useTransitions();
|
|
40
|
+
const isOpen = ref(false);
|
|
41
|
+
const pathSelector = useTemplateRef("pathSelector");
|
|
42
|
+
const stackSize = computed(() => $cwa.admin.resourceStackManager.resourceStack.value.length);
|
|
43
|
+
const spacingStackSize = computed(() => stackSize.value - 1);
|
|
44
|
+
const tOrig = computed(() => {
|
|
45
|
+
const pathSelectorEl = pathSelector.value;
|
|
46
|
+
if (!pathSelectorEl) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const buttonOffset = Math.round(pathSelectorEl.offsetHeight / 2);
|
|
50
|
+
return `50% calc(${buttonOffset}px + ${stackSize.value}px + ${spacingStackSize.value * 0.25}rem)`;
|
|
51
|
+
});
|
|
52
|
+
const isEnabled = computed(() => {
|
|
53
|
+
return stackSize.value > 1;
|
|
54
|
+
});
|
|
55
|
+
const marginTop = computed(() => {
|
|
56
|
+
return spacingStackSize.value ? `calc(0px - ${spacingStackSize.value}px - ${spacingStackSize.value * 0.25}rem)` : 0;
|
|
57
|
+
});
|
|
58
|
+
const stackItem = computed(() => {
|
|
59
|
+
return $cwa.admin.resourceStackManager.resourceStack.value[0];
|
|
60
|
+
});
|
|
61
|
+
const selectorWidth = computed(() => {
|
|
62
|
+
const pathSelectorEl = pathSelector.value;
|
|
63
|
+
return stackItem.value?.displayName && pathSelectorEl ? pathSelectorEl.clientWidth : void 0;
|
|
64
|
+
});
|
|
65
|
+
function selectResource(index) {
|
|
66
|
+
$cwa.admin.resourceStackManager.selectStackIndex(index, false);
|
|
67
|
+
isOpen.value = false;
|
|
68
|
+
}
|
|
69
|
+
function openMenu() {
|
|
70
|
+
if (!isEnabled.value) {
|
|
71
|
+
isOpen.value = false;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
isOpen.value = true;
|
|
75
|
+
}
|
|
76
|
+
onClickOutside(pathSelector, () => {
|
|
77
|
+
isOpen.value = false;
|
|
78
|
+
});
|
|
79
|
+
</script>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import Notification from "./Notification.vue";
|
|
3
|
+
import { useCwa } from "#imports";
|
|
4
|
+
import { ErrorType } from "#cwa/storage/stores/error/state";
|
|
5
|
+
const $cwa = useCwa();
|
|
6
|
+
function removeError(timestamp) {
|
|
7
|
+
$cwa.resourcesManager.removeError(timestamp);
|
|
8
|
+
}
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div
|
|
13
|
+
aria-live="assertive"
|
|
14
|
+
class="cwa:pointer-events-none cwa:fixed cwa:inset-0 cwa:flex cwa:items-end cwa:pt-20 cwa:pb-4 cwa:py-6 cwa:sm:px-4 cwa:sm:items-start cwa:z-notifications"
|
|
15
|
+
>
|
|
16
|
+
<TransitionGroup
|
|
17
|
+
tag="ul"
|
|
18
|
+
class="cwa:list-none cwa:flex cwa:w-full cwa:flex-col cwa:items-center cwa:gap-y-4 cwa:sm:items-end"
|
|
19
|
+
enter-active-class="cwa:transform cwa:ease-out cwa:duration-300 cwa:transition"
|
|
20
|
+
enter-from-class="cwa:translate-y-2 cwa:opacity-0 cwa:sm:translate-y-0 cwa:sm:translate-x-2"
|
|
21
|
+
enter-to-class="cwa:translate-y-0 cwa:opacity-100 cwa:sm:translate-x-0"
|
|
22
|
+
leave-active-class="cwa:transition cwa:ease-in cwa:duration-100"
|
|
23
|
+
leave-from-class="cwa:opacity-100"
|
|
24
|
+
leave-to-class="cwa:translate-y-2 cwa:opacity-0 cwa:sm:translate-y-0 cwa:sm:translate-x-2"
|
|
25
|
+
>
|
|
26
|
+
<Notification
|
|
27
|
+
v-for="(error, index) in $cwa.resourcesManager.errors"
|
|
28
|
+
:key="error.timestamp"
|
|
29
|
+
:data-index="index"
|
|
30
|
+
@clear="() => removeError(error.timestamp)"
|
|
31
|
+
>
|
|
32
|
+
<p class="cwa:text-md cwa:font-bold cwa:text-white">
|
|
33
|
+
Oops! There was a problem.
|
|
34
|
+
</p>
|
|
35
|
+
<ul v-if="error.type === ErrorType.VALIDATION">
|
|
36
|
+
<li
|
|
37
|
+
v-for="violation in error.violations"
|
|
38
|
+
:key="`violation-${violation.property}-${error.timestamp}`"
|
|
39
|
+
>
|
|
40
|
+
{{ violation.property }}: {{ violation.message }}
|
|
41
|
+
</li>
|
|
42
|
+
</ul>
|
|
43
|
+
<p
|
|
44
|
+
v-else
|
|
45
|
+
class="cwa:mt-1 cwa:text-sm cwa:text-gray-500"
|
|
46
|
+
>
|
|
47
|
+
{{ error?.statusCode || "Network Error" }}: {{ error.detail }}
|
|
48
|
+
</p>
|
|
49
|
+
</Notification>
|
|
50
|
+
</TransitionGroup>
|
|
51
|
+
</div>
|
|
52
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
iri: Ref<string | undefined>;
|
|
4
|
+
domElements: ComputedRef<HTMLElement[]>;
|
|
5
|
+
};
|
|
6
|
+
declare function redraw(): Promise<void>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
redraw: typeof redraw;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onBeforeUnmount, onMounted, ref, toRef, useTemplateRef, watch } from "vue";
|
|
3
|
+
import { useElementSize, useWindowSize } from "@vueuse/core";
|
|
4
|
+
import { v4 as uuidv4 } from "uuid";
|
|
5
|
+
import { useCwa } from "#imports";
|
|
6
|
+
import { getPublishedResourceState } from "#cwa/resources/resource-utils";
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
iri: { type: Object, required: true },
|
|
9
|
+
domElements: { type: Object, required: true }
|
|
10
|
+
});
|
|
11
|
+
const $cwa = useCwa();
|
|
12
|
+
const domElements = toRef(props, "domElements");
|
|
13
|
+
const iri = toRef(props, "iri");
|
|
14
|
+
const canvas = useTemplateRef("canvas");
|
|
15
|
+
const windowSize = useWindowSize();
|
|
16
|
+
const elementSizeInstances = ref([]);
|
|
17
|
+
const reorderId = ref();
|
|
18
|
+
watch(props.domElements, (newDomElements) => {
|
|
19
|
+
for (const esInstance of elementSizeInstances.value) {
|
|
20
|
+
esInstance.stop();
|
|
21
|
+
}
|
|
22
|
+
elementSizeInstances.value = [];
|
|
23
|
+
const newInstances = [];
|
|
24
|
+
for (const el of newDomElements) {
|
|
25
|
+
newInstances.push(useElementSize(el));
|
|
26
|
+
}
|
|
27
|
+
elementSizeInstances.value = newInstances;
|
|
28
|
+
}, {
|
|
29
|
+
immediate: true
|
|
30
|
+
});
|
|
31
|
+
const totalWidthAndHeight = computed(() => {
|
|
32
|
+
let totalValue = 0;
|
|
33
|
+
for (const esInstance of elementSizeInstances.value) {
|
|
34
|
+
totalValue += esInstance.width + esInstance.height;
|
|
35
|
+
}
|
|
36
|
+
return totalValue;
|
|
37
|
+
});
|
|
38
|
+
const resource = computed(() => {
|
|
39
|
+
if (!iri.value) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
return $cwa.resources.getResource(iri.value).value;
|
|
43
|
+
});
|
|
44
|
+
const position = computed(() => {
|
|
45
|
+
const clearCoords = {
|
|
46
|
+
top: 999999999999,
|
|
47
|
+
left: 99999999999,
|
|
48
|
+
width: 0,
|
|
49
|
+
height: 0,
|
|
50
|
+
windowSize: {
|
|
51
|
+
width: windowSize.width.value,
|
|
52
|
+
height: windowSize.height.value
|
|
53
|
+
},
|
|
54
|
+
totalWidthAndHeight: totalWidthAndHeight.value,
|
|
55
|
+
reorderId: reorderId.value
|
|
56
|
+
};
|
|
57
|
+
for (const domElement of domElements.value) {
|
|
58
|
+
if (domElement.nodeType !== 1) {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
const domRect = domElement.getBoundingClientRect();
|
|
62
|
+
clearCoords.top = Math.min(clearCoords.top, domRect.top);
|
|
63
|
+
clearCoords.left = Math.min(clearCoords.left, domRect.left);
|
|
64
|
+
clearCoords.width = Math.max(clearCoords.width, domRect.right - clearCoords.left);
|
|
65
|
+
clearCoords.height = Math.max(clearCoords.height, domRect.bottom - clearCoords.top);
|
|
66
|
+
}
|
|
67
|
+
const addY = Math.max(document.body.scrollTop, document.documentElement.scrollTop);
|
|
68
|
+
clearCoords.top += addY;
|
|
69
|
+
const addX = Math.max(document.body.scrollLeft, document.documentElement.scrollLeft);
|
|
70
|
+
clearCoords.left += addX;
|
|
71
|
+
return {
|
|
72
|
+
top: clearCoords.top,
|
|
73
|
+
left: clearCoords.left,
|
|
74
|
+
width: clearCoords.width,
|
|
75
|
+
height: clearCoords.height
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
const cssStyle = computed(() => {
|
|
79
|
+
return {
|
|
80
|
+
top: `${position.value.top}px`,
|
|
81
|
+
left: `${position.value.left}px`,
|
|
82
|
+
width: `${position.value.width}px`,
|
|
83
|
+
height: `${position.value.height}px`
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
const borderColor = computed(() => {
|
|
87
|
+
if (!resource.value) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (resource.value.data?._metadata.adding) {
|
|
91
|
+
return "cwa:outline-orange";
|
|
92
|
+
}
|
|
93
|
+
const publishedState = getPublishedResourceState(resource.value);
|
|
94
|
+
if (publishedState !== void 0) {
|
|
95
|
+
return publishedState ? "cwa:outline-green" : "cwa:outline-orange";
|
|
96
|
+
}
|
|
97
|
+
return iri.value?.startsWith("/_/") ? "cwa:outline-magenta" : "cwa:outline-green";
|
|
98
|
+
});
|
|
99
|
+
async function redraw() {
|
|
100
|
+
drawCanvas();
|
|
101
|
+
}
|
|
102
|
+
function drawCanvas() {
|
|
103
|
+
if (!canvas.value) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const ctx = canvas.value.getContext("2d");
|
|
107
|
+
if (!ctx) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const offset = 7;
|
|
111
|
+
const width = Math.max(windowSize.width.value, document.body.clientWidth);
|
|
112
|
+
const height = Math.max(windowSize.height.value, document.body.clientHeight);
|
|
113
|
+
ctx.reset();
|
|
114
|
+
canvas.value.width = width;
|
|
115
|
+
canvas.value.height = height;
|
|
116
|
+
ctx.fillStyle = "rgba(0,0,0,0.4)";
|
|
117
|
+
ctx.beginPath();
|
|
118
|
+
ctx.rect(0, 0, width, height);
|
|
119
|
+
drawRoundedRect(ctx, position.value.left - offset, position.value.top - offset, position.value.width + offset * 2, position.value.height + offset * 2, 8);
|
|
120
|
+
ctx.fill();
|
|
121
|
+
}
|
|
122
|
+
function drawRoundedRect(ctx, x, y, width, height, radius) {
|
|
123
|
+
ctx.moveTo(x, y + radius);
|
|
124
|
+
ctx.arcTo(x, y + height, x + radius, y + height, radius);
|
|
125
|
+
ctx.arcTo(x + width, y + height, x + width, y + height - radius, radius);
|
|
126
|
+
ctx.arcTo(x + width, y, x + width - radius, y, radius);
|
|
127
|
+
ctx.arcTo(x, y, x, y + radius, radius);
|
|
128
|
+
}
|
|
129
|
+
function assignReorderId() {
|
|
130
|
+
reorderId.value = uuidv4();
|
|
131
|
+
}
|
|
132
|
+
onMounted(() => {
|
|
133
|
+
$cwa.admin.eventBus.on("redrawFocus", redraw);
|
|
134
|
+
$cwa.admin.eventBus.on("reorder", assignReorderId);
|
|
135
|
+
watch([totalWidthAndHeight, position], $cwa.admin.emitRedraw);
|
|
136
|
+
watch(canvas, (newCanvas) => newCanvas && redraw());
|
|
137
|
+
});
|
|
138
|
+
onBeforeUnmount(() => {
|
|
139
|
+
$cwa.admin.eventBus.off("redrawFocus", redraw);
|
|
140
|
+
$cwa.admin.eventBus.off("reorder", assignReorderId);
|
|
141
|
+
});
|
|
142
|
+
defineExpose({
|
|
143
|
+
redraw
|
|
144
|
+
});
|
|
145
|
+
</script>
|
|
146
|
+
|
|
147
|
+
<template>
|
|
148
|
+
<client-only>
|
|
149
|
+
<canvas
|
|
150
|
+
ref="canvas"
|
|
151
|
+
class="cwa:z-manager-focus cwa:pointer-events-none cwa:absolute cwa:top-0 cwa:left-0"
|
|
152
|
+
/>
|
|
153
|
+
<div
|
|
154
|
+
:class="[borderColor]"
|
|
155
|
+
:style="cssStyle"
|
|
156
|
+
class="cwa:animate-pulse cwa:absolute cwa:outline-2 cwa:outline-offset-4 cwa:pointer-events-none cwa:outline cwa:rounded-[1px]"
|
|
157
|
+
/>
|
|
158
|
+
</client-only>
|
|
159
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
iri: Ref<string | undefined>;
|
|
4
|
+
domElements: ComputedRef<HTMLElement[]>;
|
|
5
|
+
};
|
|
6
|
+
declare function redraw(): Promise<void>;
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
redraw: typeof redraw;
|
|
9
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.d.vue.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface BoundedElement {
|
|
2
|
+
getBoundingClientRect(): DOMRect;
|
|
3
|
+
}
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
page: BoundedElement;
|
|
6
|
+
layout: BoundedElement;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { nextTick, onBeforeUnmount, onMounted, ref, useTemplateRef, watch } from "vue";
|
|
3
|
+
import { useWindowSize } from "@vueuse/core";
|
|
4
|
+
import { useCwa } from "#cwa/composables/cwa";
|
|
5
|
+
const canvas = useTemplateRef("canvas");
|
|
6
|
+
const windowSize = useWindowSize();
|
|
7
|
+
const $cwa = useCwa();
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
page: { type: Object, required: true },
|
|
10
|
+
layout: { type: Object, required: true }
|
|
11
|
+
});
|
|
12
|
+
async function redraw() {
|
|
13
|
+
divElementOverlays.value = [];
|
|
14
|
+
nextTick().then(() => {
|
|
15
|
+
drawCanvas();
|
|
16
|
+
divElementOverlays.value = getDivElementOverlays();
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function getHatchCanvas() {
|
|
20
|
+
const p = document.createElement("canvas");
|
|
21
|
+
p.width = 32;
|
|
22
|
+
p.height = 16;
|
|
23
|
+
const pctx = p.getContext("2d");
|
|
24
|
+
if (!pctx) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const x0 = 36;
|
|
28
|
+
const x1 = -4;
|
|
29
|
+
const y0 = -2;
|
|
30
|
+
const y1 = 18;
|
|
31
|
+
const offset = 32;
|
|
32
|
+
pctx.strokeStyle = "rgba(255,255,255, .1)";
|
|
33
|
+
pctx.lineWidth = 5;
|
|
34
|
+
pctx.beginPath();
|
|
35
|
+
pctx.moveTo(x0, y0);
|
|
36
|
+
pctx.lineTo(x1, y1);
|
|
37
|
+
pctx.moveTo(x0 - offset, y0);
|
|
38
|
+
pctx.lineTo(x1 - offset, y1);
|
|
39
|
+
pctx.moveTo(x0 + offset, y0);
|
|
40
|
+
pctx.lineTo(x1 + offset, y1);
|
|
41
|
+
pctx.stroke();
|
|
42
|
+
return p;
|
|
43
|
+
}
|
|
44
|
+
function drawCanvas() {
|
|
45
|
+
if (!canvas.value) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const ctx = canvas.value.getContext("2d");
|
|
49
|
+
if (!ctx) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const width = Math.max(windowSize.width.value, document.body.clientWidth);
|
|
53
|
+
const height = Math.max(windowSize.height.value, document.body.clientHeight);
|
|
54
|
+
ctx.reset();
|
|
55
|
+
canvas.value.width = width;
|
|
56
|
+
canvas.value.height = height;
|
|
57
|
+
const hatchCanvas = getHatchCanvas();
|
|
58
|
+
ctx.fillStyle = hatchCanvas ? ctx.createPattern(hatchCanvas, "repeat") || "rgba(0,0,0,0.4)" : "rgba(0,0,0,0.4)";
|
|
59
|
+
ctx.beginPath();
|
|
60
|
+
if ($cwa.admin.resourceStackManager.isEditingLayout.value) {
|
|
61
|
+
drawLayoutFocus(ctx);
|
|
62
|
+
} else {
|
|
63
|
+
drawPageFocus(ctx);
|
|
64
|
+
}
|
|
65
|
+
ctx.fill();
|
|
66
|
+
}
|
|
67
|
+
function drawPageFocus(ctx) {
|
|
68
|
+
const [layoutRect] = getBoundingRect();
|
|
69
|
+
const pageCoords = getPageCoords();
|
|
70
|
+
const rightPage = pageCoords.left + pageCoords.width;
|
|
71
|
+
const bottomPage = pageCoords.top + pageCoords.height;
|
|
72
|
+
const coordsThree = { x: layoutRect.width, y: bottomPage };
|
|
73
|
+
const pageFocusCoords = [
|
|
74
|
+
{ x: layoutRect.width, y: 0 },
|
|
75
|
+
// 2
|
|
76
|
+
coordsThree,
|
|
77
|
+
// 3
|
|
78
|
+
{ x: rightPage, y: bottomPage },
|
|
79
|
+
// 4
|
|
80
|
+
{ x: rightPage, y: pageCoords.top },
|
|
81
|
+
// 5
|
|
82
|
+
{ x: pageCoords.left, y: pageCoords.top },
|
|
83
|
+
// 6
|
|
84
|
+
{ x: pageCoords.left, y: bottomPage },
|
|
85
|
+
// 7
|
|
86
|
+
coordsThree,
|
|
87
|
+
// 8
|
|
88
|
+
{ x: layoutRect.width, y: layoutRect.height },
|
|
89
|
+
// 9
|
|
90
|
+
{ x: 0, y: layoutRect.height }
|
|
91
|
+
// 10
|
|
92
|
+
// it will return to start automatically when finished 0:0
|
|
93
|
+
];
|
|
94
|
+
ctx.moveTo(0, 0);
|
|
95
|
+
for (const coords of pageFocusCoords) {
|
|
96
|
+
ctx.lineTo(coords.x, coords.y);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function drawLayoutFocus(ctx) {
|
|
100
|
+
const pageCoords = getPageCoords();
|
|
101
|
+
ctx.moveTo(pageCoords.left, pageCoords.top);
|
|
102
|
+
ctx.lineTo(pageCoords.left + pageCoords.width, pageCoords.top);
|
|
103
|
+
ctx.lineTo(pageCoords.left + pageCoords.width, pageCoords.top + pageCoords.height);
|
|
104
|
+
ctx.lineTo(pageCoords.left, pageCoords.top + pageCoords.height);
|
|
105
|
+
}
|
|
106
|
+
function getBoundingRect() {
|
|
107
|
+
return [
|
|
108
|
+
props.layout.getBoundingClientRect() || { width: 0, height: 0, top: 0, left: 0 },
|
|
109
|
+
props.page.getBoundingClientRect() || { width: 0, height: 0, top: 0, left: 0 }
|
|
110
|
+
];
|
|
111
|
+
}
|
|
112
|
+
const getPageCoords = () => {
|
|
113
|
+
const [layoutRect, pageRect] = getBoundingRect();
|
|
114
|
+
return {
|
|
115
|
+
top: (pageRect?.top || 0) - (layoutRect?.top || 0),
|
|
116
|
+
left: (pageRect?.left || 0) - (layoutRect?.left || 0),
|
|
117
|
+
width: pageRect?.width || 0,
|
|
118
|
+
height: pageRect?.height || 0
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
onMounted(() => {
|
|
122
|
+
$cwa.admin.eventBus.on("redrawFocus", redraw);
|
|
123
|
+
watch(canvas, (newCanvas) => newCanvas && redraw());
|
|
124
|
+
});
|
|
125
|
+
onBeforeUnmount(() => {
|
|
126
|
+
$cwa.admin.eventBus.off("redrawFocus", redraw);
|
|
127
|
+
});
|
|
128
|
+
function getDivElementOverlays() {
|
|
129
|
+
const pageCoords = getPageCoords();
|
|
130
|
+
const numberToPx = (size) => {
|
|
131
|
+
return `${size}px`;
|
|
132
|
+
};
|
|
133
|
+
if ($cwa.admin.resourceStackManager.isEditingLayout.value) {
|
|
134
|
+
return [
|
|
135
|
+
{
|
|
136
|
+
top: numberToPx(pageCoords.top),
|
|
137
|
+
left: numberToPx(pageCoords.left),
|
|
138
|
+
width: numberToPx(pageCoords.width),
|
|
139
|
+
height: numberToPx(pageCoords.height)
|
|
140
|
+
}
|
|
141
|
+
];
|
|
142
|
+
}
|
|
143
|
+
const [layoutRect] = getBoundingRect();
|
|
144
|
+
if (!layoutRect) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
const rightPage = pageCoords.left + pageCoords.width;
|
|
148
|
+
const bottomPage = pageCoords.top + pageCoords.height;
|
|
149
|
+
return [
|
|
150
|
+
{
|
|
151
|
+
top: "0",
|
|
152
|
+
left: "0",
|
|
153
|
+
width: numberToPx(layoutRect.width),
|
|
154
|
+
height: numberToPx(pageCoords.top)
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
top: numberToPx(pageCoords.top),
|
|
158
|
+
left: "0",
|
|
159
|
+
width: numberToPx(pageCoords.left),
|
|
160
|
+
height: numberToPx(pageCoords.height)
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
top: numberToPx(pageCoords.top),
|
|
164
|
+
left: numberToPx(rightPage),
|
|
165
|
+
width: numberToPx(layoutRect.width - rightPage),
|
|
166
|
+
height: numberToPx(pageCoords.height)
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
top: numberToPx(bottomPage),
|
|
170
|
+
left: "0",
|
|
171
|
+
width: numberToPx(layoutRect.width),
|
|
172
|
+
height: numberToPx(layoutRect.height - bottomPage)
|
|
173
|
+
}
|
|
174
|
+
];
|
|
175
|
+
}
|
|
176
|
+
const divElementOverlays = ref(getDivElementOverlays());
|
|
177
|
+
</script>
|
|
178
|
+
|
|
179
|
+
<template>
|
|
180
|
+
<ClientOnly>
|
|
181
|
+
<div
|
|
182
|
+
id="cwa-layout-page-overlay"
|
|
183
|
+
class="cwa:z-overlay cwa:pointer-events-none cwa:absolute cwa:top-0 cwa:left-0"
|
|
184
|
+
>
|
|
185
|
+
<div
|
|
186
|
+
v-for="(overlay, index) of divElementOverlays"
|
|
187
|
+
:key="`cwa-admin-overlay-${index}`"
|
|
188
|
+
:style="overlay"
|
|
189
|
+
class="cwa:absolute cwa:pointer-events-none cwa:backdrop-blur-[1.5px] cwa:bg-black/30"
|
|
190
|
+
/>
|
|
191
|
+
<canvas
|
|
192
|
+
id="cwa-layout-page-overlay"
|
|
193
|
+
ref="canvas"
|
|
194
|
+
class="cwa:absolute cwa:top-0 cwa:left-0 cwa:pointer-events-none"
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
</ClientOnly>
|
|
198
|
+
</template>
|
package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface BoundedElement {
|
|
2
|
+
getBoundingClientRect(): DOMRect;
|
|
3
|
+
}
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
page: BoundedElement;
|
|
6
|
+
layout: BoundedElement;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.d.vue.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare function contextMenuHandler(e: MouseEvent, type: 'page' | 'layout'): void;
|
|
2
|
+
declare function closeContextMenu(e: MouseEvent): void;
|
|
3
|
+
declare function clickHandler(e: MouseEvent, type: 'page' | 'layout'): void;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
5
|
+
clickHandler: typeof clickHandler;
|
|
6
|
+
contextMenuHandler: typeof contextMenuHandler;
|
|
7
|
+
closeContextMenu: typeof closeContextMenu;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|