@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,439 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ResourceModal
|
|
3
|
+
v-if="localResourceData"
|
|
4
|
+
v-model="titleModel"
|
|
5
|
+
:title-placeholder="isDisplayingPage ? 'No Reference' : 'No Title'"
|
|
6
|
+
:is-loading="isLoading"
|
|
7
|
+
:border-color-class="borderColorClass"
|
|
8
|
+
@close="$emit('close')"
|
|
9
|
+
@save="saveTitle"
|
|
10
|
+
>
|
|
11
|
+
<template
|
|
12
|
+
v-if="isDisplayingPage"
|
|
13
|
+
#title
|
|
14
|
+
>
|
|
15
|
+
<PageTypeSelect v-model="localResourceData.isTemplate" />
|
|
16
|
+
</template>
|
|
17
|
+
<template
|
|
18
|
+
v-if="!hideViewLink && !isAdding"
|
|
19
|
+
#icons
|
|
20
|
+
>
|
|
21
|
+
<div>
|
|
22
|
+
<NuxtLink :to="getInternalResourceLink(localResourceData['@id'])">
|
|
23
|
+
<CwaUiIconEyeIcon class="cwa:w-9" />
|
|
24
|
+
</NuxtLink>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
<template
|
|
28
|
+
v-if="depthChain.length > 1"
|
|
29
|
+
#subheader
|
|
30
|
+
>
|
|
31
|
+
<div class="cwa:flex cwa:gap-x-1 cwa:justify-center cwa:flex-wrap">
|
|
32
|
+
<button
|
|
33
|
+
v-for="option in depthChain"
|
|
34
|
+
:key="String(option.value)"
|
|
35
|
+
type="button"
|
|
36
|
+
class="cwa:py-1 cwa:px-3 cwa:text-sm cwa:rounded cwa:transition cwa:cursor-pointer"
|
|
37
|
+
:class="displayIri === option.value ? 'cwa:text-stone-100 cwa:bg-stone-700/80' : 'cwa:text-stone-400 cwa:hover:text-stone-300'"
|
|
38
|
+
@click="displayIri = option.value"
|
|
39
|
+
>
|
|
40
|
+
{{ option.label }}
|
|
41
|
+
</button>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
<ResourceModalTabs :tabs="tabs">
|
|
45
|
+
<template #details>
|
|
46
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-2">
|
|
47
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-2 cwa:pb-2 cwa:border-b cwa:border-stone-500">
|
|
48
|
+
<span class="cwa:text-xs cwa:text-stone-400 cwa:uppercase cwa:tracking-wide cwa:px-1">Parent page</span>
|
|
49
|
+
<ModalRadioTabs
|
|
50
|
+
v-model="parentType"
|
|
51
|
+
:options="parentTypeOptions"
|
|
52
|
+
/>
|
|
53
|
+
<div v-if="parentType === 'page'">
|
|
54
|
+
<ModalSelect
|
|
55
|
+
v-model="localResourceData.parentPage"
|
|
56
|
+
label="Parent Page"
|
|
57
|
+
:options="parentPageOptions"
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
<template v-if="parentType === 'data'">
|
|
61
|
+
<div>
|
|
62
|
+
<ModalSelect
|
|
63
|
+
v-model="selectedParentDataType"
|
|
64
|
+
label="Parent Data Type"
|
|
65
|
+
:options="dataTypeOptions"
|
|
66
|
+
/>
|
|
67
|
+
</div>
|
|
68
|
+
<div v-if="selectedParentDataType">
|
|
69
|
+
<ModalSelect
|
|
70
|
+
v-model="localResourceData.parentPageData"
|
|
71
|
+
label="Parent Data"
|
|
72
|
+
:options="dataInstanceOptions"
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
</template>
|
|
76
|
+
</div>
|
|
77
|
+
<template v-if="isDisplayingPage">
|
|
78
|
+
<div>
|
|
79
|
+
<ModalInput
|
|
80
|
+
v-model="localResourceData.title"
|
|
81
|
+
label="SEO Page Title"
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
</template>
|
|
85
|
+
<div>
|
|
86
|
+
<ModalInput
|
|
87
|
+
v-model="localResourceData.metaDescription"
|
|
88
|
+
label="SEO Meta Description"
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
91
|
+
<template v-if="isDisplayingPage">
|
|
92
|
+
<div>
|
|
93
|
+
<ModalSelect
|
|
94
|
+
v-model="localResourceData.layout"
|
|
95
|
+
label="Layout"
|
|
96
|
+
:options="layoutOptions"
|
|
97
|
+
/>
|
|
98
|
+
</div>
|
|
99
|
+
<div class="cwa:flex cwa:gap-x-2">
|
|
100
|
+
<div class="cwa:grow">
|
|
101
|
+
<ModalSelect
|
|
102
|
+
v-model="localResourceData.uiComponent"
|
|
103
|
+
label="Page UI"
|
|
104
|
+
:options="pageComponentOptions"
|
|
105
|
+
/>
|
|
106
|
+
</div>
|
|
107
|
+
<div
|
|
108
|
+
v-if="pageStyleOptions.length"
|
|
109
|
+
class="cwa:w-1/2"
|
|
110
|
+
>
|
|
111
|
+
<ModalSelect
|
|
112
|
+
v-model="localResourceData.uiClassNames"
|
|
113
|
+
label="Style"
|
|
114
|
+
:options="pageStyleOptions"
|
|
115
|
+
/>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</template>
|
|
119
|
+
<template v-if="!isDisplayingPage">
|
|
120
|
+
<div>
|
|
121
|
+
<ModalSelect
|
|
122
|
+
v-model="localResourceData.page"
|
|
123
|
+
label="Dynamic Page"
|
|
124
|
+
:options="pageOptions"
|
|
125
|
+
/>
|
|
126
|
+
</div>
|
|
127
|
+
<div class="cwa:flex cwa:items-center cwa:gap-x-1.5 cwa:text-xs">
|
|
128
|
+
<CwaUiIconEyeIcon
|
|
129
|
+
class="cwa:w-4 cwa:flex-none"
|
|
130
|
+
:class="localResourceData?.page ? 'cwa:text-yellow' : 'cwa:text-stone-500'"
|
|
131
|
+
/>
|
|
132
|
+
<button
|
|
133
|
+
v-if="localResourceData?.page"
|
|
134
|
+
type="button"
|
|
135
|
+
class="cwa:cursor-pointer cwa:text-yellow cwa:transition cwa:hover:opacity-80"
|
|
136
|
+
@click="goToTemplate"
|
|
137
|
+
>
|
|
138
|
+
Go to dynamic template
|
|
139
|
+
</button>
|
|
140
|
+
<span
|
|
141
|
+
v-else
|
|
142
|
+
class="cwa:text-stone-500"
|
|
143
|
+
>No template selected</span>
|
|
144
|
+
</div>
|
|
145
|
+
<div v-if="pageDataConfig?.metaFields">
|
|
146
|
+
<ModalSelect
|
|
147
|
+
v-for="field of pageDataConfig.metaFields"
|
|
148
|
+
:key="`field-${field.field}`"
|
|
149
|
+
v-model="localResourceData[field.field]"
|
|
150
|
+
:label="field.label"
|
|
151
|
+
:options="field.options || []"
|
|
152
|
+
/>
|
|
153
|
+
</div>
|
|
154
|
+
</template>
|
|
155
|
+
<div class="cwa:flex cwa:justify-end cwa:pt-2 cwa:gap-x-2">
|
|
156
|
+
<div>
|
|
157
|
+
<CwaUiFormButton
|
|
158
|
+
color="dark"
|
|
159
|
+
:disabled="isUpdating"
|
|
160
|
+
@click="saveResource(true)"
|
|
161
|
+
>
|
|
162
|
+
Save & Close
|
|
163
|
+
</CwaUiFormButton>
|
|
164
|
+
</div>
|
|
165
|
+
<div>
|
|
166
|
+
<CwaUiFormButton
|
|
167
|
+
color="blue"
|
|
168
|
+
:disabled="isUpdating"
|
|
169
|
+
@click="() => saveResource(false)"
|
|
170
|
+
>
|
|
171
|
+
Save
|
|
172
|
+
</CwaUiFormButton>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</template>
|
|
177
|
+
<template #routes>
|
|
178
|
+
<RoutesTab
|
|
179
|
+
v-if="resource && resource.hasOwnProperty('@id')"
|
|
180
|
+
:page-resource="resource"
|
|
181
|
+
@reload="loadResource"
|
|
182
|
+
/>
|
|
183
|
+
</template>
|
|
184
|
+
<template #info>
|
|
185
|
+
<div class="cwa:flex cwa:flex-col cwa:gap-y-2">
|
|
186
|
+
<div>
|
|
187
|
+
<ModalInfo
|
|
188
|
+
label="Created"
|
|
189
|
+
:content="formatDate(localResourceData.createdAt)"
|
|
190
|
+
/>
|
|
191
|
+
</div>
|
|
192
|
+
<div>
|
|
193
|
+
<ModalInfo
|
|
194
|
+
label="Updated"
|
|
195
|
+
:content="formatDate(localResourceData.updatedAt)"
|
|
196
|
+
/>
|
|
197
|
+
</div>
|
|
198
|
+
<div>
|
|
199
|
+
<ModalInfo
|
|
200
|
+
label="ID"
|
|
201
|
+
:content="localResourceData['@id']"
|
|
202
|
+
/>
|
|
203
|
+
</div>
|
|
204
|
+
<div class="cwa:flex cwa:justify-start cwa:pt-6">
|
|
205
|
+
<div>
|
|
206
|
+
<CwaUiFormButton
|
|
207
|
+
:disabled="isUpdating"
|
|
208
|
+
@click="deleteResource()"
|
|
209
|
+
>
|
|
210
|
+
Delete
|
|
211
|
+
</CwaUiFormButton>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</template>
|
|
216
|
+
</ResourceModalTabs>
|
|
217
|
+
</ResourceModal>
|
|
218
|
+
</template>
|
|
219
|
+
|
|
220
|
+
<script setup>
|
|
221
|
+
import { computed, onMounted, ref, watch } from "vue";
|
|
222
|
+
import { navigateTo, useCwa } from "#imports";
|
|
223
|
+
import { componentNames } from "#components";
|
|
224
|
+
import ResourceModal from "#cwa/templates/components/core/admin/ResourceModal.vue";
|
|
225
|
+
import ResourceModalTabs from "#cwa/templates/components/core/admin/ResourceModalTabs.vue";
|
|
226
|
+
import ModalInfo from "#cwa/templates/components/core/admin/form/ModalInfo.vue";
|
|
227
|
+
import ModalInput from "#cwa/templates/components/core/admin/form/ModalInput.vue";
|
|
228
|
+
import ModalSelect from "#cwa/templates/components/core/admin/form/ModalSelect.vue";
|
|
229
|
+
import ModalRadioTabs from "#cwa/templates/components/core/admin/form/ModalRadioTabs.vue";
|
|
230
|
+
import PageTypeSelect from "#cwa/templates/components/core/admin/form/PageTypeSelect.vue";
|
|
231
|
+
import RoutesTab from "#cwa/templates/components/core/admin/RoutesTab.vue";
|
|
232
|
+
import { CwaResourceTypes, getResourceTypeFromIri } from "#cwa/resources/resource-utils";
|
|
233
|
+
import { useItemPage } from "#cwa-layer/pages/_cwa/index/composables/useItemPage";
|
|
234
|
+
import { useParentPageLoader } from "#cwa-layer/pages/_cwa/index/composables/useParentPageLoader";
|
|
235
|
+
import { useParentPageDataLoader } from "#cwa-layer/pages/_cwa/index/composables/useParentPageDataLoader";
|
|
236
|
+
import { useDynamicPageLoader } from "#cwa-layer/pages/_cwa/index/composables/useDynamicPageLoader";
|
|
237
|
+
import { useDataType } from "#cwa-layer/pages/_cwa/index/composables/useDataType";
|
|
238
|
+
const emit = defineEmits(["close", "reload"]);
|
|
239
|
+
const props = defineProps({
|
|
240
|
+
iri: { type: String, required: false },
|
|
241
|
+
hideViewLink: { type: Boolean, required: false },
|
|
242
|
+
resourceType: { type: String, required: true }
|
|
243
|
+
});
|
|
244
|
+
const $cwa = useCwa();
|
|
245
|
+
const { parentPages, loadParentPageOptions } = useParentPageLoader();
|
|
246
|
+
const { dataTypes, dataInstances, loadDataTypes, loadDataInstances, fqcnToEntrypointKey } = useParentPageDataLoader();
|
|
247
|
+
const { dynamicPages, loadDynamicPageOptions } = useDynamicPageLoader();
|
|
248
|
+
const displayIri = ref(props.iri);
|
|
249
|
+
const isDisplayingPage = computed(() => getResourceTypeFromIri(displayIri.value ?? "") === CwaResourceTypes.PAGE);
|
|
250
|
+
function getResourceData(iri) {
|
|
251
|
+
return $cwa.resources.getResource(iri).value;
|
|
252
|
+
}
|
|
253
|
+
const depthChain = computed(() => {
|
|
254
|
+
const chain = [];
|
|
255
|
+
let iri = props.iri;
|
|
256
|
+
while (iri) {
|
|
257
|
+
const res = getResourceData(iri);
|
|
258
|
+
chain.unshift({
|
|
259
|
+
label: res?.data?.reference || res?.data?.title || iri,
|
|
260
|
+
value: iri
|
|
261
|
+
});
|
|
262
|
+
iri = res?.data?.parentPage || res?.data?.parentPageData || null;
|
|
263
|
+
}
|
|
264
|
+
return chain;
|
|
265
|
+
});
|
|
266
|
+
const parentTypeOptions = [
|
|
267
|
+
{ label: "None", value: null },
|
|
268
|
+
{ label: "Page", value: "page" },
|
|
269
|
+
{ label: "Data", value: "data" }
|
|
270
|
+
];
|
|
271
|
+
const selectedParentDataType = ref(null);
|
|
272
|
+
const parentType = ref(null);
|
|
273
|
+
function isDescendantOfCurrentPage(candidateIri) {
|
|
274
|
+
const allPages = parentPages.value ?? [];
|
|
275
|
+
const byId = Object.fromEntries(allPages.map((p) => [p["@id"], p]));
|
|
276
|
+
const visited = /* @__PURE__ */ new Set();
|
|
277
|
+
let current = byId[candidateIri]?.parentPage;
|
|
278
|
+
while (current) {
|
|
279
|
+
if (visited.has(current)) break;
|
|
280
|
+
visited.add(current);
|
|
281
|
+
if (current === props.iri) return true;
|
|
282
|
+
current = byId[current]?.parentPage;
|
|
283
|
+
}
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
286
|
+
const parentPageOptions = computed(() => {
|
|
287
|
+
const options = [{ label: "None", value: null }];
|
|
288
|
+
for (const page of parentPages.value ?? []) {
|
|
289
|
+
if (page["@id"] !== props.iri && !isDescendantOfCurrentPage(page["@id"])) {
|
|
290
|
+
options.push({ label: page.reference, value: page["@id"] });
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return options;
|
|
294
|
+
});
|
|
295
|
+
const dataTypeOptions = computed(() => {
|
|
296
|
+
const options = [{ label: "Select type\u2026", value: null }];
|
|
297
|
+
for (const type of dataTypes.value ?? []) {
|
|
298
|
+
const key = fqcnToEntrypointKey(type.resourceClass);
|
|
299
|
+
if (key) {
|
|
300
|
+
options.push({ label: type.resourceClass.split("\\").pop() ?? key, value: key });
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
return options;
|
|
304
|
+
});
|
|
305
|
+
const dataInstanceOptions = computed(() => {
|
|
306
|
+
const options = [{ label: "Select\u2026", value: null }];
|
|
307
|
+
for (const instance of dataInstances.value ?? []) {
|
|
308
|
+
options.push({ label: instance.title || instance["@id"], value: instance["@id"] });
|
|
309
|
+
}
|
|
310
|
+
return options;
|
|
311
|
+
});
|
|
312
|
+
const { isAdding, isLoading, isUpdating, localResourceData, resource, formatDate, deleteResource, saveResource: _saveResource, saveTitle: _saveTitle, loadResource, getInternalResourceLink } = useItemPage({
|
|
313
|
+
createEndpoint: "/_/pages",
|
|
314
|
+
emit,
|
|
315
|
+
resourceType: props.resourceType,
|
|
316
|
+
defaultResource: {},
|
|
317
|
+
endpoint: displayIri,
|
|
318
|
+
excludeFields: ["componentGroups"]
|
|
319
|
+
});
|
|
320
|
+
const titleModel = computed({
|
|
321
|
+
get: () => isDisplayingPage.value ? localResourceData.value?.reference : localResourceData.value?.title,
|
|
322
|
+
set: (val) => {
|
|
323
|
+
if (!localResourceData.value) return;
|
|
324
|
+
if (isDisplayingPage.value) {
|
|
325
|
+
localResourceData.value.reference = val;
|
|
326
|
+
} else {
|
|
327
|
+
localResourceData.value.title = val;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
const borderColorClass = computed(() => {
|
|
332
|
+
if (isDisplayingPage.value) {
|
|
333
|
+
return localResourceData.value?.isTemplate ? "cwa:border-b-yellow" : "cwa:border-b-blue-600";
|
|
334
|
+
}
|
|
335
|
+
return resource.value?.route ? "cwa:border-b-green" : "cwa:border-b-orange";
|
|
336
|
+
});
|
|
337
|
+
function saveResource(close = false) {
|
|
338
|
+
if (localResourceData.value) {
|
|
339
|
+
if (parentType.value !== "page") localResourceData.value.parentPage = null;
|
|
340
|
+
if (parentType.value !== "data") localResourceData.value.parentPageData = null;
|
|
341
|
+
}
|
|
342
|
+
return _saveResource(close);
|
|
343
|
+
}
|
|
344
|
+
function saveTitle() {
|
|
345
|
+
if (isAdding.value) return;
|
|
346
|
+
return saveResource();
|
|
347
|
+
}
|
|
348
|
+
async function goToTemplate() {
|
|
349
|
+
if (!localResourceData.value?.page) return;
|
|
350
|
+
emit("close");
|
|
351
|
+
await navigateTo({
|
|
352
|
+
...getInternalResourceLink(localResourceData.value.page),
|
|
353
|
+
query: { cwa_force: "true" }
|
|
354
|
+
});
|
|
355
|
+
$cwa.admin.toggleEdit(false);
|
|
356
|
+
}
|
|
357
|
+
const currentRequestId = ref(0);
|
|
358
|
+
const layouts = ref();
|
|
359
|
+
async function loadLayoutOptions() {
|
|
360
|
+
const thisRequestId = currentRequestId.value + 1;
|
|
361
|
+
currentRequestId.value = thisRequestId;
|
|
362
|
+
const { response } = $cwa.fetch({ path: "/_/layouts", noQuery: true });
|
|
363
|
+
const { _data: data } = await response;
|
|
364
|
+
if (thisRequestId === currentRequestId.value) {
|
|
365
|
+
data && (layouts.value = data["member"]);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const layoutOptions = computed(() => {
|
|
369
|
+
if (!layouts.value) return [];
|
|
370
|
+
return layouts.value.map((layout) => ({
|
|
371
|
+
label: layout.reference,
|
|
372
|
+
value: layout["@id"]
|
|
373
|
+
}));
|
|
374
|
+
});
|
|
375
|
+
const pageComponentNames = computed(() => componentNames.filter((n) => n.startsWith("CwaPage")));
|
|
376
|
+
function cleanUiName(componentName) {
|
|
377
|
+
return componentName.replace(/^CwaPage/, "");
|
|
378
|
+
}
|
|
379
|
+
const pageComponentOptions = computed(() => {
|
|
380
|
+
return pageComponentNames.value.map((componentName) => {
|
|
381
|
+
const cleanName = cleanUiName(componentName);
|
|
382
|
+
return {
|
|
383
|
+
label: $cwa.pagesConfig?.[cleanName]?.name || cleanName,
|
|
384
|
+
value: cleanName
|
|
385
|
+
};
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
const pageStyleOptions = computed(() => {
|
|
389
|
+
if (!localResourceData.value?.uiComponent) return [];
|
|
390
|
+
const cleanName = cleanUiName(localResourceData.value.uiComponent);
|
|
391
|
+
const configuredClasses = $cwa.pagesConfig?.[cleanName]?.classes;
|
|
392
|
+
if (!configuredClasses) return [];
|
|
393
|
+
const options = [{ label: "Default", value: null }];
|
|
394
|
+
for (const [label, value] of Object.entries(configuredClasses)) {
|
|
395
|
+
options.push({ label, value });
|
|
396
|
+
}
|
|
397
|
+
return options;
|
|
398
|
+
});
|
|
399
|
+
const pageOptions = computed(() => {
|
|
400
|
+
if (!dynamicPages.value) return [];
|
|
401
|
+
return dynamicPages.value.map((page) => ({
|
|
402
|
+
label: page.reference,
|
|
403
|
+
value: page["@id"]
|
|
404
|
+
}));
|
|
405
|
+
});
|
|
406
|
+
const { pageDataConfig } = useDataType(computed(() => resource.value?.["@type"]));
|
|
407
|
+
const tabs = computed(() => {
|
|
408
|
+
const t = [{ label: "Details", id: "details" }];
|
|
409
|
+
if (!isAdding.value) {
|
|
410
|
+
t.push({ label: "Routes", id: "routes" });
|
|
411
|
+
t.push({ label: "Info", id: "info" });
|
|
412
|
+
}
|
|
413
|
+
return t;
|
|
414
|
+
});
|
|
415
|
+
watch(() => localResourceData.value?.isTemplate, (isTemplate, oldIsTemplate) => {
|
|
416
|
+
if (!isDisplayingPage.value) return;
|
|
417
|
+
!isAdding.value && isTemplate !== void 0 && oldIsTemplate !== void 0 && saveResource(false);
|
|
418
|
+
});
|
|
419
|
+
watch(selectedParentDataType, (key, oldKey) => {
|
|
420
|
+
if (oldKey && localResourceData.value) localResourceData.value.parentPageData = null;
|
|
421
|
+
if (key) loadDataInstances(key);
|
|
422
|
+
});
|
|
423
|
+
watch(localResourceData, (data, oldData) => {
|
|
424
|
+
if (data?.parentPage) parentType.value = "page";
|
|
425
|
+
else if (data?.parentPageData) parentType.value = "data";
|
|
426
|
+
else parentType.value = null;
|
|
427
|
+
if (data && !oldData && data.parentPageData) {
|
|
428
|
+
const pdResource = $cwa.resources.getResource(data.parentPageData).value;
|
|
429
|
+
const pdType = pdResource?.data?.["@type"];
|
|
430
|
+
if (pdType) {
|
|
431
|
+
const key = fqcnToEntrypointKey(pdType);
|
|
432
|
+
if (key) selectedParentDataType.value = key;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}, { immediate: true });
|
|
436
|
+
onMounted(async () => {
|
|
437
|
+
await Promise.all([loadLayoutOptions(), loadDynamicPageOptions(), loadParentPageOptions(), loadDataTypes()]);
|
|
438
|
+
});
|
|
439
|
+
</script>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
iri?: string;
|
|
3
|
+
hideViewLink?: boolean;
|
|
4
|
+
resourceType: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
close: () => any;
|
|
8
|
+
reload: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
onReload?: (() => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isLoading?: boolean;
|
|
3
|
+
titlePlaceholder?: string;
|
|
4
|
+
borderColorClass?: 'cwa:border-b-stone-700' | 'cwa:border-b-green' | 'cwa:border-b-orange' | 'cwa:border-b-yellow' | 'cwa:border-b-blue-600';
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): any;
|
|
8
|
+
icons(): any;
|
|
9
|
+
title(): any;
|
|
10
|
+
subheader(): any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
modelValue?: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
close: (...args: any[]) => void;
|
|
18
|
+
save: (...args: any[]) => void;
|
|
19
|
+
"update:modelValue": (value: any) => void;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
23
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
titlePlaceholder: string;
|
|
26
|
+
borderColorClass: "cwa:border-b-stone-700" | "cwa:border-b-green" | "cwa:border-b-orange" | "cwa:border-b-yellow" | "cwa:border-b-blue-600";
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="cwa:text-light cwa:w-full cwa:bg-stone-800 cwa:max-w-4xl cwa:max-h-full cwa:min-h-96 cwa:flex cwa:flex-col">
|
|
3
|
+
<template v-if="isLoading">
|
|
4
|
+
<Spinner
|
|
5
|
+
class="cwa:absolute cwa:top-1/2 cwa:left-1/2 cwa:-translate-x-1/2 cwa:-translate-y-1/2"
|
|
6
|
+
:show="true"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
<template v-else>
|
|
10
|
+
<div
|
|
11
|
+
class="cwa:relative cwa:bg-stone-900/40 cwa:border-b-2"
|
|
12
|
+
:class="[borderColorClass]"
|
|
13
|
+
>
|
|
14
|
+
<div class="cwa:p-3 cwa:flex cwa:justify-end cwa:text-stone-400 cwa:gap-x-4 cwa:items-center">
|
|
15
|
+
<slot name="icons" />
|
|
16
|
+
<button
|
|
17
|
+
class="cwa:cursor-pointer"
|
|
18
|
+
@click="closeModal"
|
|
19
|
+
>
|
|
20
|
+
<CwaUiIconXMarkIcon class="cwa:h-10" />
|
|
21
|
+
</button>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="cwa:p-4 cwa:flex cwa:justify-center">
|
|
24
|
+
<div class="cwa:grow cwa:max-w-xl cwa:flex cwa:items-center cwa:gap-x-6">
|
|
25
|
+
<div class="cwa:grow cwa:flex cwa:items-center cwa:gap-x-2 cwa:min-w-0">
|
|
26
|
+
<div class="cwa:max-w-[calc(100%-1.3em)]">
|
|
27
|
+
<input
|
|
28
|
+
v-if="isEditingTitle"
|
|
29
|
+
ref="referenceInput"
|
|
30
|
+
v-model="titleModel"
|
|
31
|
+
v-auto-width="{ comfortZone: '.5rem', minWidth: '270px' }"
|
|
32
|
+
class="cwa:dark-blur cwa:text-4xl cwa:py-1 cwa:px-2 cwa:max-w-full cwa:-ml-2 cwa:placeholder-light/20"
|
|
33
|
+
placeholder="Enter Reference"
|
|
34
|
+
>
|
|
35
|
+
<h2
|
|
36
|
+
v-else
|
|
37
|
+
class="cwa:text-4xl cwa:truncate cwa:py-1 cwa:pr-3 cwa:border cwa:border-transparent"
|
|
38
|
+
:class="[titleModel ? '' : 'cwa:text-light/20']"
|
|
39
|
+
@click="triggerEditTitle"
|
|
40
|
+
>
|
|
41
|
+
{{ titleModel || "[" + titlePlaceholder + "]" }}
|
|
42
|
+
</h2>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="cwa:shrink-0 cwa:w-[1.3em] cwa:cursor-pointer">
|
|
45
|
+
<CwaUiIconTickIcon
|
|
46
|
+
v-if="isEditingTitle"
|
|
47
|
+
class="cwa:w-full"
|
|
48
|
+
@click="saveTitle()"
|
|
49
|
+
/>
|
|
50
|
+
<CwaUiIconPenIcon
|
|
51
|
+
v-else
|
|
52
|
+
class="cwa:w-full"
|
|
53
|
+
@click="triggerEditTitle"
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
<slot name="title" />
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<ResourceLoadingIndicator class="cwa:absolute cwa:top-full cwa:left-0 cwa:z-10" />
|
|
61
|
+
</div>
|
|
62
|
+
<div
|
|
63
|
+
v-if="$slots.subheader"
|
|
64
|
+
class="cwa:border-b cwa:border-stone-800 cwa:bg-stone-900/40"
|
|
65
|
+
>
|
|
66
|
+
<div class="cwa:px-4 cwa:py-3 cwa:flex cwa:justify-center">
|
|
67
|
+
<div class="cwa:w-full cwa:max-w-xl cwa:flex cwa:flex-col cwa:gap-y-2">
|
|
68
|
+
<slot name="subheader" />
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="cwa:grow cwa:px-4 cwa:pt-4 cwa:pb-10 cwa:flex cwa:justify-center cwa:min-h-0">
|
|
73
|
+
<div class="cwa:w-full cwa:max-w-xl cwa:overflow-auto">
|
|
74
|
+
<slot />
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
</div>
|
|
79
|
+
</template>
|
|
80
|
+
|
|
81
|
+
<script setup>
|
|
82
|
+
import { nextTick, ref, useTemplateRef } from "vue";
|
|
83
|
+
import { directive as vAutoWidth } from "vue-input-autowidth";
|
|
84
|
+
import ResourceLoadingIndicator from "#cwa/templates/components/main/admin/_common/ResourceLoadingIndicator.vue";
|
|
85
|
+
import Spinner from "#cwa/templates/components/utils/Spinner.vue";
|
|
86
|
+
const referenceInput = useTemplateRef("referenceInput");
|
|
87
|
+
const titleModel = defineModel();
|
|
88
|
+
const emit = defineEmits(["close", "save"]);
|
|
89
|
+
defineProps({
|
|
90
|
+
isLoading: { type: Boolean, required: false },
|
|
91
|
+
titlePlaceholder: { type: String, required: false, default: "No Reference" },
|
|
92
|
+
borderColorClass: { type: String, required: false, default: "cwa:border-b-stone-700" }
|
|
93
|
+
});
|
|
94
|
+
const isEditingTitle = ref(false);
|
|
95
|
+
function closeModal() {
|
|
96
|
+
emit("close");
|
|
97
|
+
}
|
|
98
|
+
function saveTitle() {
|
|
99
|
+
emit("save");
|
|
100
|
+
isEditingTitle.value = false;
|
|
101
|
+
}
|
|
102
|
+
async function triggerEditTitle() {
|
|
103
|
+
isEditingTitle.value = true;
|
|
104
|
+
await nextTick();
|
|
105
|
+
if (referenceInput.value) {
|
|
106
|
+
referenceInput.value.focus();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
defineSlots();
|
|
110
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isLoading?: boolean;
|
|
3
|
+
titlePlaceholder?: string;
|
|
4
|
+
borderColorClass?: 'cwa:border-b-stone-700' | 'cwa:border-b-green' | 'cwa:border-b-orange' | 'cwa:border-b-yellow' | 'cwa:border-b-blue-600';
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): any;
|
|
8
|
+
icons(): any;
|
|
9
|
+
title(): any;
|
|
10
|
+
subheader(): any;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_ModelProps = {
|
|
13
|
+
modelValue?: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
close: (...args: any[]) => void;
|
|
18
|
+
save: (...args: any[]) => void;
|
|
19
|
+
"update:modelValue": (value: any) => void;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
23
|
+
onSave?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
titlePlaceholder: string;
|
|
26
|
+
borderColorClass: "cwa:border-b-stone-700" | "cwa:border-b-green" | "cwa:border-b-orange" | "cwa:border-b-yellow" | "cwa:border-b-blue-600";
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
reload: () => any;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onReload?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ResourceModalOverlayTemplate :show="!!route.params.iri">
|
|
3
|
+
<NuxtPage
|
|
4
|
+
v-if="route.params.iri"
|
|
5
|
+
@click.stop
|
|
6
|
+
@close="hideModal"
|
|
7
|
+
@reload="$emit('reload')"
|
|
8
|
+
/>
|
|
9
|
+
</ResourceModalOverlayTemplate>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import { useRoute, useRouter } from "vue-router";
|
|
14
|
+
import ResourceModalOverlayTemplate from "#cwa/templates/components/core/admin/ResourceModalOverlayTemplate.vue";
|
|
15
|
+
defineEmits(["reload"]);
|
|
16
|
+
const route = useRoute();
|
|
17
|
+
const router = useRouter();
|
|
18
|
+
function hideModal() {
|
|
19
|
+
if (!route.name) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
router.push({
|
|
23
|
+
name: route.name.toString().replace("-iri", ""),
|
|
24
|
+
query: route.query
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
reload: () => any;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onReload?: (() => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|