@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.
Files changed (553) hide show
  1. package/README.md +38 -0
  2. package/README.template.md +32 -0
  3. package/dist/layer/_components/TextButton.vue +13 -0
  4. package/dist/layer/error.vue +13 -0
  5. package/dist/layer/layouts/CwaRootLayout.vue +172 -0
  6. package/dist/layer/nuxt.config.ts +8 -0
  7. package/dist/layer/pages/_cwa/[cwaPage0].vue +18 -0
  8. package/dist/layer/pages/_cwa/index/composables/useDataList.ts +50 -0
  9. package/dist/layer/pages/_cwa/index/composables/useDataType.ts +41 -0
  10. package/dist/layer/pages/_cwa/index/composables/useDynamicPageLoader.ts +28 -0
  11. package/dist/layer/pages/_cwa/index/composables/useItemPage.ts +200 -0
  12. package/dist/layer/pages/_cwa/index/composables/useListPage.ts +44 -0
  13. package/dist/layer/pages/_cwa/index/composables/useParentPageDataLoader.ts +51 -0
  14. package/dist/layer/pages/_cwa/index/composables/useParentPageLoader.ts +25 -0
  15. package/dist/layer/pages/_cwa/index/data/[type]/[iri].vue +22 -0
  16. package/dist/layer/pages/_cwa/index/data/[type].vue +132 -0
  17. package/dist/layer/pages/_cwa/index/data/index.vue +84 -0
  18. package/dist/layer/pages/_cwa/index/layouts/[iri].vue +180 -0
  19. package/dist/layer/pages/_cwa/index/layouts.vue +77 -0
  20. package/dist/layer/pages/_cwa/index/pages/[iri].vue +16 -0
  21. package/dist/layer/pages/_cwa/index/pages.vue +130 -0
  22. package/dist/layer/pages/_cwa/index/routes.vue +56 -0
  23. package/dist/layer/pages/_cwa/index/settings.vue +398 -0
  24. package/dist/layer/pages/_cwa/index/users/[iri].vue +337 -0
  25. package/dist/layer/pages/_cwa/index/users.vue +90 -0
  26. package/dist/layer/pages/_cwa/index.vue +43 -0
  27. package/dist/layer/pages/confirm-new-email/[username]/[newEmail]/[token].vue +49 -0
  28. package/dist/layer/pages/forgot-password.vue +31 -0
  29. package/dist/layer/pages/login.vue +32 -0
  30. package/dist/layer/pages/reset-password/[username]/[token].vue +38 -0
  31. package/dist/layer/pages/verify-email/[username]/[token].vue +48 -0
  32. package/dist/module.d.mts +15 -0
  33. package/dist/module.json +12 -0
  34. package/dist/module.mjs +292 -0
  35. package/dist/runtime/admin/admin.d.ts +35 -0
  36. package/dist/runtime/admin/admin.js +65 -0
  37. package/dist/runtime/admin/manageable-resource.d.ts +42 -0
  38. package/dist/runtime/admin/manageable-resource.js +241 -0
  39. package/dist/runtime/admin/manager-tabs-resolver.d.ts +17 -0
  40. package/dist/runtime/admin/manager-tabs-resolver.js +55 -0
  41. package/dist/runtime/admin/navigation-guard.d.ts +18 -0
  42. package/dist/runtime/admin/navigation-guard.js +57 -0
  43. package/dist/runtime/admin/resource-stack-manager.d.ts +93 -0
  44. package/dist/runtime/admin/resource-stack-manager.js +388 -0
  45. package/dist/runtime/api/api-documentation.d.ts +28 -0
  46. package/dist/runtime/api/api-documentation.js +131 -0
  47. package/dist/runtime/api/auth.d.ts +100 -0
  48. package/dist/runtime/api/auth.js +264 -0
  49. package/dist/runtime/api/fetcher/cwa-fetch.d.ts +12 -0
  50. package/dist/runtime/api/fetcher/cwa-fetch.js +43 -0
  51. package/dist/runtime/api/fetcher/fetch-status-manager.d.ts +59 -0
  52. package/dist/runtime/api/fetcher/fetch-status-manager.js +225 -0
  53. package/dist/runtime/api/fetcher/fetcher.d.ts +57 -0
  54. package/dist/runtime/api/fetcher/fetcher.js +263 -0
  55. package/dist/runtime/api/fetcher/preload-headers.d.ts +6 -0
  56. package/dist/runtime/api/fetcher/preload-headers.js +31 -0
  57. package/dist/runtime/api/forms.d.ts +40 -0
  58. package/dist/runtime/api/forms.js +40 -0
  59. package/dist/runtime/api/mercure.d.ts +32 -0
  60. package/dist/runtime/api/mercure.js +196 -0
  61. package/dist/runtime/api/site-config.d.ts +36 -0
  62. package/dist/runtime/api/site-config.js +135 -0
  63. package/dist/runtime/composables/component/html-content.d.ts +2 -0
  64. package/dist/runtime/composables/component/html-content.js +74 -0
  65. package/dist/runtime/composables/cwa-collection-pagination.d.ts +13 -0
  66. package/dist/runtime/composables/cwa-collection-pagination.js +34 -0
  67. package/dist/runtime/composables/cwa-collection-resource.d.ts +18 -0
  68. package/dist/runtime/composables/cwa-collection-resource.js +105 -0
  69. package/dist/runtime/composables/cwa-image-resource.d.ts +15 -0
  70. package/dist/runtime/composables/cwa-image-resource.js +26 -0
  71. package/dist/runtime/composables/cwa-image.d.ts +24 -0
  72. package/dist/runtime/composables/cwa-image.js +38 -0
  73. package/dist/runtime/composables/cwa-query-bound-model.d.ts +9 -0
  74. package/dist/runtime/composables/cwa-query-bound-model.js +109 -0
  75. package/dist/runtime/composables/cwa-resource-endpoint.d.ts +5 -0
  76. package/dist/runtime/composables/cwa-resource-endpoint.js +36 -0
  77. package/dist/runtime/composables/cwa-resource-manageable.d.ts +10 -0
  78. package/dist/runtime/composables/cwa-resource-manageable.js +53 -0
  79. package/dist/runtime/composables/cwa-resource-manager-tab.d.ts +16 -0
  80. package/dist/runtime/composables/cwa-resource-manager-tab.js +30 -0
  81. package/dist/runtime/composables/cwa-resource-model.d.ts +21 -0
  82. package/dist/runtime/composables/cwa-resource-model.js +156 -0
  83. package/dist/runtime/composables/cwa-resource-upload.d.ts +8 -0
  84. package/dist/runtime/composables/cwa-resource-upload.js +70 -0
  85. package/dist/runtime/composables/cwa-resource.d.ts +26 -0
  86. package/dist/runtime/composables/cwa-resource.js +42 -0
  87. package/dist/runtime/composables/cwa-select-input.d.ts +21 -0
  88. package/dist/runtime/composables/cwa-select-input.js +37 -0
  89. package/dist/runtime/composables/cwa-select.d.ts +15 -0
  90. package/dist/runtime/composables/cwa-select.js +24 -0
  91. package/dist/runtime/composables/cwa.d.ts +2 -0
  92. package/dist/runtime/composables/cwa.js +2 -0
  93. package/dist/runtime/composables/forgot-password.d.ts +9 -0
  94. package/dist/runtime/composables/forgot-password.js +45 -0
  95. package/dist/runtime/composables/login.d.ts +9 -0
  96. package/dist/runtime/composables/login.js +30 -0
  97. package/dist/runtime/composables/popper.d.ts +529 -0
  98. package/dist/runtime/composables/popper.js +105 -0
  99. package/dist/runtime/composables/process.d.ts +4 -0
  100. package/dist/runtime/composables/process.js +6 -0
  101. package/dist/runtime/composables/reset-password.d.ts +14 -0
  102. package/dist/runtime/composables/reset-password.js +75 -0
  103. package/dist/runtime/composables/transitions.d.ts +12 -0
  104. package/dist/runtime/composables/transitions.js +12 -0
  105. package/dist/runtime/composables/useCwaResourceRoute.d.ts +10 -0
  106. package/dist/runtime/composables/useCwaResourceRoute.js +17 -0
  107. package/dist/runtime/composables/useCwaSiteConfig.d.ts +15 -0
  108. package/dist/runtime/composables/useCwaSiteConfig.js +78 -0
  109. package/dist/runtime/composables/useResendVerifyEmail.d.ts +6 -0
  110. package/dist/runtime/composables/useResendVerifyEmail.js +43 -0
  111. package/dist/runtime/composables/useVerifyEmail.d.ts +8 -0
  112. package/dist/runtime/composables/useVerifyEmail.js +84 -0
  113. package/dist/runtime/cwa.d.ts +70 -0
  114. package/dist/runtime/cwa.js +133 -0
  115. package/dist/runtime/errors/cwa-resource-error.d.ts +20 -0
  116. package/dist/runtime/errors/cwa-resource-error.js +61 -0
  117. package/dist/runtime/plugin.d.ts +8 -0
  118. package/dist/runtime/plugin.js +20 -0
  119. package/dist/runtime/resources/resource-utils.d.ts +52 -0
  120. package/dist/runtime/resources/resource-utils.js +86 -0
  121. package/dist/runtime/resources/resources-manager.d.ts +70 -0
  122. package/dist/runtime/resources/resources-manager.js +482 -0
  123. package/dist/runtime/resources/resources.d.ts +61 -0
  124. package/dist/runtime/resources/resources.js +360 -0
  125. package/dist/runtime/route-middleware.d.ts +2 -0
  126. package/dist/runtime/route-middleware.js +71 -0
  127. package/dist/runtime/server/cwa-custom-sitemap.get.d.ts +2 -0
  128. package/dist/runtime/server/cwa-custom-sitemap.get.js +29 -0
  129. package/dist/runtime/server/cwa-healthcheck.get.d.ts +4 -0
  130. package/dist/runtime/server/cwa-healthcheck.get.js +10 -0
  131. package/dist/runtime/server/cwa-urls.get.d.ts +3 -0
  132. package/dist/runtime/server/cwa-urls.get.js +15 -0
  133. package/dist/runtime/server/server-middleware.d.ts +2 -0
  134. package/dist/runtime/server/server-middleware.js +63 -0
  135. package/dist/runtime/server/server-plugin.d.ts +2 -0
  136. package/dist/runtime/server/server-plugin.js +59 -0
  137. package/dist/runtime/server/tsconfig.json +3 -0
  138. package/dist/runtime/server/useFetcher.d.ts +7 -0
  139. package/dist/runtime/server/useFetcher.js +40 -0
  140. package/dist/runtime/storage/storage.d.ts +25 -0
  141. package/dist/runtime/storage/storage.js +48 -0
  142. package/dist/runtime/storage/stores/admin/actions.d.ts +5 -0
  143. package/dist/runtime/storage/stores/admin/actions.js +10 -0
  144. package/dist/runtime/storage/stores/admin/admin-store.d.ts +18 -0
  145. package/dist/runtime/storage/stores/admin/admin-store.js +20 -0
  146. package/dist/runtime/storage/stores/admin/state.d.ts +7 -0
  147. package/dist/runtime/storage/stores/admin/state.js +9 -0
  148. package/dist/runtime/storage/stores/api-documentation/api-documentation-store.d.ts +16 -0
  149. package/dist/runtime/storage/stores/api-documentation/api-documentation-store.js +18 -0
  150. package/dist/runtime/storage/stores/api-documentation/state.d.ts +71 -0
  151. package/dist/runtime/storage/stores/api-documentation/state.js +6 -0
  152. package/dist/runtime/storage/stores/auth/auth-store.d.ts +16 -0
  153. package/dist/runtime/storage/stores/auth/auth-store.js +18 -0
  154. package/dist/runtime/storage/stores/auth/state.d.ts +19 -0
  155. package/dist/runtime/storage/stores/auth/state.js +15 -0
  156. package/dist/runtime/storage/stores/cwa-store-types.d.ts +14 -0
  157. package/dist/runtime/storage/stores/error/actions.d.ts +11 -0
  158. package/dist/runtime/storage/stores/error/actions.js +73 -0
  159. package/dist/runtime/storage/stores/error/error-store.d.ts +13 -0
  160. package/dist/runtime/storage/stores/error/error-store.js +21 -0
  161. package/dist/runtime/storage/stores/error/getters.d.ts +7 -0
  162. package/dist/runtime/storage/stores/error/getters.js +11 -0
  163. package/dist/runtime/storage/stores/error/state.d.ts +35 -0
  164. package/dist/runtime/storage/stores/error/state.js +15 -0
  165. package/dist/runtime/storage/stores/fetcher/actions.d.ts +56 -0
  166. package/dist/runtime/storage/stores/fetcher/actions.js +138 -0
  167. package/dist/runtime/storage/stores/fetcher/fetcher-store.d.ts +19 -0
  168. package/dist/runtime/storage/stores/fetcher/fetcher-store.js +23 -0
  169. package/dist/runtime/storage/stores/fetcher/getter-utils.d.ts +7 -0
  170. package/dist/runtime/storage/stores/fetcher/getter-utils.js +27 -0
  171. package/dist/runtime/storage/stores/fetcher/getters.d.ts +13 -0
  172. package/dist/runtime/storage/stores/fetcher/getters.js +52 -0
  173. package/dist/runtime/storage/stores/fetcher/state.d.ts +27 -0
  174. package/dist/runtime/storage/stores/fetcher/state.js +7 -0
  175. package/dist/runtime/storage/stores/mercure/mercure-store.d.ts +16 -0
  176. package/dist/runtime/storage/stores/mercure/mercure-store.js +18 -0
  177. package/dist/runtime/storage/stores/mercure/state.d.ts +5 -0
  178. package/dist/runtime/storage/stores/mercure/state.js +6 -0
  179. package/dist/runtime/storage/stores/resources/actions.d.ts +59 -0
  180. package/dist/runtime/storage/stores/resources/actions.js +449 -0
  181. package/dist/runtime/storage/stores/resources/getter-utils.d.ts +7 -0
  182. package/dist/runtime/storage/stores/resources/getter-utils.js +27 -0
  183. package/dist/runtime/storage/stores/resources/getters.d.ts +38 -0
  184. package/dist/runtime/storage/stores/resources/getters.js +254 -0
  185. package/dist/runtime/storage/stores/resources/resources-store.d.ts +19 -0
  186. package/dist/runtime/storage/stores/resources/resources-store.js +23 -0
  187. package/dist/runtime/storage/stores/resources/state.d.ts +67 -0
  188. package/dist/runtime/storage/stores/resources/state.js +24 -0
  189. package/dist/runtime/storage/stores/site-config/actions.d.ts +9 -0
  190. package/dist/runtime/storage/stores/site-config/actions.js +20 -0
  191. package/dist/runtime/storage/stores/site-config/getters.d.ts +7 -0
  192. package/dist/runtime/storage/stores/site-config/getters.js +10 -0
  193. package/dist/runtime/storage/stores/site-config/site-config-store.d.ts +19 -0
  194. package/dist/runtime/storage/stores/site-config/site-config-store.js +23 -0
  195. package/dist/runtime/storage/stores/site-config/state.d.ts +13 -0
  196. package/dist/runtime/storage/stores/site-config/state.js +8 -0
  197. package/dist/runtime/templates/assets/base.css +1 -0
  198. package/dist/runtime/templates/assets/cwa.css +1 -0
  199. package/dist/runtime/templates/components/core/ComponentPlaceholder.d.vue.ts +7 -0
  200. package/dist/runtime/templates/components/core/ComponentPlaceholder.vue +27 -0
  201. package/dist/runtime/templates/components/core/ComponentPlaceholder.vue.d.ts +7 -0
  202. package/dist/runtime/templates/components/core/ComponentPosition.d.vue.ts +4 -0
  203. package/dist/runtime/templates/components/core/ComponentPosition.spec.ts.snap +16 -0
  204. package/dist/runtime/templates/components/core/ComponentPosition.vue +64 -0
  205. package/dist/runtime/templates/components/core/ComponentPosition.vue.d.ts +4 -0
  206. package/dist/runtime/templates/components/core/ConfirmDialog.d.vue.ts +16 -0
  207. package/dist/runtime/templates/components/core/ConfirmDialog.vue +41 -0
  208. package/dist/runtime/templates/components/core/ConfirmDialog.vue.d.ts +16 -0
  209. package/dist/runtime/templates/components/core/DialogBox.d.vue.ts +38 -0
  210. package/dist/runtime/templates/components/core/DialogBox.vue +96 -0
  211. package/dist/runtime/templates/components/core/DialogBox.vue.d.ts +38 -0
  212. package/dist/runtime/templates/components/core/README.md +1 -0
  213. package/dist/runtime/templates/components/core/ResourceLoader.d.vue.ts +14 -0
  214. package/dist/runtime/templates/components/core/ResourceLoader.spec.ts.snap +39 -0
  215. package/dist/runtime/templates/components/core/ResourceLoader.vue +151 -0
  216. package/dist/runtime/templates/components/core/ResourceLoader.vue.d.ts +14 -0
  217. package/dist/runtime/templates/components/core/admin/CwaCode.d.vue.ts +12 -0
  218. package/dist/runtime/templates/components/core/admin/CwaCode.vue +7 -0
  219. package/dist/runtime/templates/components/core/admin/CwaCode.vue.d.ts +12 -0
  220. package/dist/runtime/templates/components/core/admin/ListContainer.d.vue.ts +12 -0
  221. package/dist/runtime/templates/components/core/admin/ListContainer.vue +11 -0
  222. package/dist/runtime/templates/components/core/admin/ListContainer.vue.d.ts +12 -0
  223. package/dist/runtime/templates/components/core/admin/ListContent.d.vue.ts +24 -0
  224. package/dist/runtime/templates/components/core/admin/ListContent.vue +137 -0
  225. package/dist/runtime/templates/components/core/admin/ListContent.vue.d.ts +24 -0
  226. package/dist/runtime/templates/components/core/admin/ListFilter.d.vue.ts +10 -0
  227. package/dist/runtime/templates/components/core/admin/ListFilter.vue +49 -0
  228. package/dist/runtime/templates/components/core/admin/ListFilter.vue.d.ts +10 -0
  229. package/dist/runtime/templates/components/core/admin/ListFilterButton.d.vue.ts +14 -0
  230. package/dist/runtime/templates/components/core/admin/ListFilterButton.vue +53 -0
  231. package/dist/runtime/templates/components/core/admin/ListFilterButton.vue.d.ts +14 -0
  232. package/dist/runtime/templates/components/core/admin/ListHeading.d.vue.ts +20 -0
  233. package/dist/runtime/templates/components/core/admin/ListHeading.vue +33 -0
  234. package/dist/runtime/templates/components/core/admin/ListHeading.vue.d.ts +20 -0
  235. package/dist/runtime/templates/components/core/admin/ListPagination.d.vue.ts +17 -0
  236. package/dist/runtime/templates/components/core/admin/ListPagination.vue +94 -0
  237. package/dist/runtime/templates/components/core/admin/ListPagination.vue.d.ts +17 -0
  238. package/dist/runtime/templates/components/core/admin/ListPaginationButton.d.vue.ts +16 -0
  239. package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue +19 -0
  240. package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue.d.ts +16 -0
  241. package/dist/runtime/templates/components/core/admin/PageAdminModal.d.vue.ts +13 -0
  242. package/dist/runtime/templates/components/core/admin/PageAdminModal.vue +404 -0
  243. package/dist/runtime/templates/components/core/admin/PageAdminModal.vue.d.ts +13 -0
  244. package/dist/runtime/templates/components/core/admin/PageDataAdminModal.d.vue.ts +14 -0
  245. package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue +368 -0
  246. package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue.d.ts +14 -0
  247. package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.d.vue.ts +14 -0
  248. package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.vue +439 -0
  249. package/dist/runtime/templates/components/core/admin/PageResourceAdminModal.vue.d.ts +14 -0
  250. package/dist/runtime/templates/components/core/admin/ResourceModal.d.vue.ts +35 -0
  251. package/dist/runtime/templates/components/core/admin/ResourceModal.vue +110 -0
  252. package/dist/runtime/templates/components/core/admin/ResourceModal.vue.d.ts +35 -0
  253. package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.d.vue.ts +7 -0
  254. package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue +27 -0
  255. package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue.d.ts +7 -0
  256. package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.d.vue.ts +15 -0
  257. package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue +24 -0
  258. package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue.d.ts +15 -0
  259. package/dist/runtime/templates/components/core/admin/ResourceModalTabs.d.vue.ts +0 -0
  260. package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue +81 -0
  261. package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue.d.ts +0 -0
  262. package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.d.vue.ts +16 -0
  263. package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.vue +42 -0
  264. package/dist/runtime/templates/components/core/admin/RouteHierarchyNode.vue.d.ts +16 -0
  265. package/dist/runtime/templates/components/core/admin/RouteListRow.d.vue.ts +21 -0
  266. package/dist/runtime/templates/components/core/admin/RouteListRow.vue +102 -0
  267. package/dist/runtime/templates/components/core/admin/RouteListRow.vue.d.ts +21 -0
  268. package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.d.vue.ts +11 -0
  269. package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue +62 -0
  270. package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue.d.ts +11 -0
  271. package/dist/runtime/templates/components/core/admin/RoutesTab.d.vue.ts +14 -0
  272. package/dist/runtime/templates/components/core/admin/RoutesTab.vue +264 -0
  273. package/dist/runtime/templates/components/core/admin/RoutesTab.vue.d.ts +14 -0
  274. package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.d.vue.ts +11 -0
  275. package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.vue +45 -0
  276. package/dist/runtime/templates/components/core/admin/RoutesTabAddRedirect.vue.d.ts +11 -0
  277. package/dist/runtime/templates/components/core/admin/RoutesTabManage.d.vue.ts +24 -0
  278. package/dist/runtime/templates/components/core/admin/RoutesTabManage.vue +139 -0
  279. package/dist/runtime/templates/components/core/admin/RoutesTabManage.vue.d.ts +24 -0
  280. package/dist/runtime/templates/components/core/admin/RoutesTabView.d.vue.ts +17 -0
  281. package/dist/runtime/templates/components/core/admin/RoutesTabView.vue +74 -0
  282. package/dist/runtime/templates/components/core/admin/RoutesTabView.vue.d.ts +17 -0
  283. package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.d.vue.ts +16 -0
  284. package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue +19 -0
  285. package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue.d.ts +16 -0
  286. package/dist/runtime/templates/components/core/admin/form/FilterSelect.d.vue.ts +8 -0
  287. package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue +86 -0
  288. package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue.d.ts +8 -0
  289. package/dist/runtime/templates/components/core/admin/form/ModalInfo.d.vue.ts +16 -0
  290. package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue +24 -0
  291. package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue.d.ts +16 -0
  292. package/dist/runtime/templates/components/core/admin/form/ModalInput.d.vue.ts +17 -0
  293. package/dist/runtime/templates/components/core/admin/form/ModalInput.vue +57 -0
  294. package/dist/runtime/templates/components/core/admin/form/ModalInput.vue.d.ts +17 -0
  295. package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.d.vue.ts +14 -0
  296. package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.vue +23 -0
  297. package/dist/runtime/templates/components/core/admin/form/ModalRadioTabs.vue.d.ts +14 -0
  298. package/dist/runtime/templates/components/core/admin/form/ModalSelect.d.vue.ts +12 -0
  299. package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue +100 -0
  300. package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue.d.ts +12 -0
  301. package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.d.vue.ts +9 -0
  302. package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue +112 -0
  303. package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue.d.ts +9 -0
  304. package/dist/runtime/templates/components/core/assets/CwaLogo.d.vue.ts +3 -0
  305. package/dist/runtime/templates/components/core/assets/CwaLogo.vue +21 -0
  306. package/dist/runtime/templates/components/core/assets/CwaLogo.vue.d.ts +3 -0
  307. package/dist/runtime/templates/components/core/assets/IconComponents.d.vue.ts +3 -0
  308. package/dist/runtime/templates/components/core/assets/IconComponents.vue +15 -0
  309. package/dist/runtime/templates/components/core/assets/IconComponents.vue.d.ts +3 -0
  310. package/dist/runtime/templates/components/core/assets/IconData.d.vue.ts +3 -0
  311. package/dist/runtime/templates/components/core/assets/IconData.vue +24 -0
  312. package/dist/runtime/templates/components/core/assets/IconData.vue.d.ts +3 -0
  313. package/dist/runtime/templates/components/core/assets/IconLayouts.d.vue.ts +3 -0
  314. package/dist/runtime/templates/components/core/assets/IconLayouts.vue +20 -0
  315. package/dist/runtime/templates/components/core/assets/IconLayouts.vue.d.ts +3 -0
  316. package/dist/runtime/templates/components/core/assets/IconPages.d.vue.ts +3 -0
  317. package/dist/runtime/templates/components/core/assets/IconPages.vue +21 -0
  318. package/dist/runtime/templates/components/core/assets/IconPages.vue.d.ts +3 -0
  319. package/dist/runtime/templates/components/core/assets/IconRoutes.d.vue.ts +3 -0
  320. package/dist/runtime/templates/components/core/assets/IconRoutes.vue +23 -0
  321. package/dist/runtime/templates/components/core/assets/IconRoutes.vue.d.ts +3 -0
  322. package/dist/runtime/templates/components/core/assets/IconUsers.d.vue.ts +3 -0
  323. package/dist/runtime/templates/components/core/assets/IconUsers.vue +13 -0
  324. package/dist/runtime/templates/components/core/assets/IconUsers.vue.d.ts +3 -0
  325. package/dist/runtime/templates/components/core/useDataResolver.d.ts +12 -0
  326. package/dist/runtime/templates/components/core/useDataResolver.js +113 -0
  327. package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.d.ts +6 -0
  328. package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.js +166 -0
  329. package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.d.ts +22 -0
  330. package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.js +102 -0
  331. package/dist/runtime/templates/components/main/ComponentGroup.d.vue.ts +13 -0
  332. package/dist/runtime/templates/components/main/ComponentGroup.spec.ts.snap +68 -0
  333. package/dist/runtime/templates/components/main/ComponentGroup.vue +138 -0
  334. package/dist/runtime/templates/components/main/ComponentGroup.vue.d.ts +13 -0
  335. package/dist/runtime/templates/components/main/CwaLink.d.vue.ts +14 -0
  336. package/dist/runtime/templates/components/main/CwaLink.vue +55 -0
  337. package/dist/runtime/templates/components/main/CwaLink.vue.d.ts +14 -0
  338. package/dist/runtime/templates/components/main/CwaPage.d.vue.ts +3 -0
  339. package/dist/runtime/templates/components/main/CwaPage.vue +22 -0
  340. package/dist/runtime/templates/components/main/CwaPage.vue.d.ts +3 -0
  341. package/dist/runtime/templates/components/main/DefaultLayout.d.vue.ts +12 -0
  342. package/dist/runtime/templates/components/main/DefaultLayout.vue +12 -0
  343. package/dist/runtime/templates/components/main/DefaultLayout.vue.d.ts +12 -0
  344. package/dist/runtime/templates/components/main/ErrorPage.d.vue.ts +7 -0
  345. package/dist/runtime/templates/components/main/ErrorPage.vue +134 -0
  346. package/dist/runtime/templates/components/main/ErrorPage.vue.d.ts +7 -0
  347. package/dist/runtime/templates/components/main/Logo.d.vue.ts +3 -0
  348. package/dist/runtime/templates/components/main/Logo.vue +18 -0
  349. package/dist/runtime/templates/components/main/Logo.vue.d.ts +3 -0
  350. package/dist/runtime/templates/components/main/README.md +7 -0
  351. package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.d.vue.ts +12 -0
  352. package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue +41 -0
  353. package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue.d.ts +12 -0
  354. package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.d.vue.ts +3 -0
  355. package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue +48 -0
  356. package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue.d.ts +3 -0
  357. package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.d.ts +5 -0
  358. package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.js +19 -0
  359. package/dist/runtime/templates/components/main/admin/header/Header.d.vue.ts +3 -0
  360. package/dist/runtime/templates/components/main/admin/header/Header.vue +209 -0
  361. package/dist/runtime/templates/components/main/admin/header/Header.vue.d.ts +3 -0
  362. package/dist/runtime/templates/components/main/admin/header/_parts/Menu.d.vue.ts +3 -0
  363. package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue +155 -0
  364. package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue.d.ts +3 -0
  365. package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.d.vue.ts +16 -0
  366. package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue +15 -0
  367. package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue.d.ts +16 -0
  368. package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.d.vue.ts +15 -0
  369. package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue +20 -0
  370. package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue.d.ts +15 -0
  371. package/dist/runtime/templates/components/main/admin/header/_parts/Notification.d.vue.ts +16 -0
  372. package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue +70 -0
  373. package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue.d.ts +16 -0
  374. package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.d.vue.ts +3 -0
  375. package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue +19 -0
  376. package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue.d.ts +3 -0
  377. package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.d.vue.ts +3 -0
  378. package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue +79 -0
  379. package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue.d.ts +3 -0
  380. package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.d.vue.ts +3 -0
  381. package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue +52 -0
  382. package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue.d.ts +3 -0
  383. package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.d.vue.ts +11 -0
  384. package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue +159 -0
  385. package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue.d.ts +11 -0
  386. package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.d.vue.ts +10 -0
  387. package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue +198 -0
  388. package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue.d.ts +10 -0
  389. package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.d.vue.ts +10 -0
  390. package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue +186 -0
  391. package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue.d.ts +10 -0
  392. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.d.vue.ts +3 -0
  393. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue +208 -0
  394. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue.d.ts +3 -0
  395. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.d.vue.ts +11 -0
  396. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue +38 -0
  397. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue.d.ts +11 -0
  398. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.d.vue.ts +8 -0
  399. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue +15 -0
  400. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue.d.ts +8 -0
  401. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.d.vue.ts +14 -0
  402. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue +44 -0
  403. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue.d.ts +14 -0
  404. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.d.vue.ts +3 -0
  405. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue +67 -0
  406. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue.d.ts +3 -0
  407. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.d.vue.ts +3 -0
  408. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue +75 -0
  409. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue.d.ts +3 -0
  410. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.d.vue.ts +3 -0
  411. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue +41 -0
  412. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue.d.ts +3 -0
  413. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.d.vue.ts +3 -0
  414. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue +114 -0
  415. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue.d.ts +3 -0
  416. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.d.vue.ts +3 -0
  417. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue +34 -0
  418. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue.d.ts +3 -0
  419. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.d.vue.ts +3 -0
  420. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue +104 -0
  421. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue.d.ts +3 -0
  422. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.d.vue.ts +3 -0
  423. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue +52 -0
  424. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue.d.ts +3 -0
  425. package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.d.vue.ts +8 -0
  426. package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue +94 -0
  427. package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue.d.ts +8 -0
  428. package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.d.vue.ts +8 -0
  429. package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue +59 -0
  430. package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue.d.ts +8 -0
  431. package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.d.vue.ts +3 -0
  432. package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue +28 -0
  433. package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue.d.ts +3 -0
  434. package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.d.vue.ts +26 -0
  435. package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue +56 -0
  436. package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue.d.ts +26 -0
  437. package/dist/runtime/templates/components/main/auth/LoginPage.d.vue.ts +28 -0
  438. package/dist/runtime/templates/components/main/auth/LoginPage.vue +61 -0
  439. package/dist/runtime/templates/components/main/auth/LoginPage.vue.d.ts +28 -0
  440. package/dist/runtime/templates/components/main/auth/ResetPasswordPage.d.vue.ts +28 -0
  441. package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue +59 -0
  442. package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue.d.ts +28 -0
  443. package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.d.vue.ts +7 -0
  444. package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.spec.ts.snap +14 -0
  445. package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue +17 -0
  446. package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue.d.ts +7 -0
  447. package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.d.vue.ts +25 -0
  448. package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.spec.ts.snap +90 -0
  449. package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue +59 -0
  450. package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue.d.ts +25 -0
  451. package/dist/runtime/templates/components/main/auth/_parts/InputField.d.vue.ts +22 -0
  452. package/dist/runtime/templates/components/main/auth/_parts/InputField.spec.ts.snap +111 -0
  453. package/dist/runtime/templates/components/main/auth/_parts/InputField.vue +50 -0
  454. package/dist/runtime/templates/components/main/auth/_parts/InputField.vue.d.ts +22 -0
  455. package/dist/runtime/templates/components/ui/BackgroundParticles.d.vue.ts +3 -0
  456. package/dist/runtime/templates/components/ui/BackgroundParticles.vue +1071 -0
  457. package/dist/runtime/templates/components/ui/BackgroundParticles.vue.d.ts +3 -0
  458. package/dist/runtime/templates/components/ui/Hamburger.d.vue.ts +10 -0
  459. package/dist/runtime/templates/components/ui/Hamburger.vue +75 -0
  460. package/dist/runtime/templates/components/ui/Hamburger.vue.d.ts +10 -0
  461. package/dist/runtime/templates/components/ui/ProgressBar.d.vue.ts +10 -0
  462. package/dist/runtime/templates/components/ui/ProgressBar.spec.ts.snap +71 -0
  463. package/dist/runtime/templates/components/ui/ProgressBar.vue +29 -0
  464. package/dist/runtime/templates/components/ui/ProgressBar.vue.d.ts +10 -0
  465. package/dist/runtime/templates/components/ui/README.md +6 -0
  466. package/dist/runtime/templates/components/ui/alert/Info.d.vue.ts +12 -0
  467. package/dist/runtime/templates/components/ui/alert/Info.spec.ts.snap +23 -0
  468. package/dist/runtime/templates/components/ui/alert/Info.vue +17 -0
  469. package/dist/runtime/templates/components/ui/alert/Info.vue.d.ts +12 -0
  470. package/dist/runtime/templates/components/ui/alert/Warning.d.vue.ts +13 -0
  471. package/dist/runtime/templates/components/ui/alert/Warning.spec.ts.snap +18 -0
  472. package/dist/runtime/templates/components/ui/alert/Warning.vue +13 -0
  473. package/dist/runtime/templates/components/ui/alert/Warning.vue.d.ts +13 -0
  474. package/dist/runtime/templates/components/ui/form/Button.d.vue.ts +53 -0
  475. package/dist/runtime/templates/components/ui/form/Button.vue +139 -0
  476. package/dist/runtime/templates/components/ui/form/Button.vue.d.ts +53 -0
  477. package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.d.vue.ts +11 -0
  478. package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue +18 -0
  479. package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue.d.ts +11 -0
  480. package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.d.vue.ts +11 -0
  481. package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue +15 -0
  482. package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue.d.ts +11 -0
  483. package/dist/runtime/templates/components/ui/form/File.d.vue.ts +18 -0
  484. package/dist/runtime/templates/components/ui/form/File.vue +72 -0
  485. package/dist/runtime/templates/components/ui/form/File.vue.d.ts +18 -0
  486. package/dist/runtime/templates/components/ui/form/Input.d.vue.ts +10 -0
  487. package/dist/runtime/templates/components/ui/form/Input.vue +17 -0
  488. package/dist/runtime/templates/components/ui/form/Input.vue.d.ts +10 -0
  489. package/dist/runtime/templates/components/ui/form/LabelWrapper.d.vue.ts +15 -0
  490. package/dist/runtime/templates/components/ui/form/LabelWrapper.vue +17 -0
  491. package/dist/runtime/templates/components/ui/form/LabelWrapper.vue.d.ts +15 -0
  492. package/dist/runtime/templates/components/ui/form/SearchResource.d.vue.ts +15 -0
  493. package/dist/runtime/templates/components/ui/form/SearchResource.vue +212 -0
  494. package/dist/runtime/templates/components/ui/form/SearchResource.vue.d.ts +15 -0
  495. package/dist/runtime/templates/components/ui/form/Select.d.vue.ts +8 -0
  496. package/dist/runtime/templates/components/ui/form/Select.vue +60 -0
  497. package/dist/runtime/templates/components/ui/form/Select.vue.d.ts +8 -0
  498. package/dist/runtime/templates/components/ui/form/Toggle.d.vue.ts +11 -0
  499. package/dist/runtime/templates/components/ui/form/Toggle.vue +48 -0
  500. package/dist/runtime/templates/components/ui/form/Toggle.vue.d.ts +11 -0
  501. package/dist/runtime/templates/components/ui/icon/ArrowIcon.d.vue.ts +3 -0
  502. package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue +30 -0
  503. package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue.d.ts +3 -0
  504. package/dist/runtime/templates/components/ui/icon/BinIcon.d.vue.ts +3 -0
  505. package/dist/runtime/templates/components/ui/icon/BinIcon.vue +24 -0
  506. package/dist/runtime/templates/components/ui/icon/BinIcon.vue.d.ts +3 -0
  507. package/dist/runtime/templates/components/ui/icon/CogIcon.d.vue.ts +3 -0
  508. package/dist/runtime/templates/components/ui/icon/CogIcon.vue +9 -0
  509. package/dist/runtime/templates/components/ui/icon/CogIcon.vue.d.ts +3 -0
  510. package/dist/runtime/templates/components/ui/icon/EyeIcon.d.vue.ts +3 -0
  511. package/dist/runtime/templates/components/ui/icon/EyeIcon.vue +24 -0
  512. package/dist/runtime/templates/components/ui/icon/EyeIcon.vue.d.ts +3 -0
  513. package/dist/runtime/templates/components/ui/icon/PenIcon.d.vue.ts +3 -0
  514. package/dist/runtime/templates/components/ui/icon/PenIcon.vue +12 -0
  515. package/dist/runtime/templates/components/ui/icon/PenIcon.vue.d.ts +3 -0
  516. package/dist/runtime/templates/components/ui/icon/PlusIcon.d.vue.ts +3 -0
  517. package/dist/runtime/templates/components/ui/icon/PlusIcon.vue +9 -0
  518. package/dist/runtime/templates/components/ui/icon/PlusIcon.vue.d.ts +3 -0
  519. package/dist/runtime/templates/components/ui/icon/SearchIcon.d.vue.ts +3 -0
  520. package/dist/runtime/templates/components/ui/icon/SearchIcon.vue +10 -0
  521. package/dist/runtime/templates/components/ui/icon/SearchIcon.vue.d.ts +3 -0
  522. package/dist/runtime/templates/components/ui/icon/TickIcon.d.vue.ts +3 -0
  523. package/dist/runtime/templates/components/ui/icon/TickIcon.vue +23 -0
  524. package/dist/runtime/templates/components/ui/icon/TickIcon.vue.d.ts +3 -0
  525. package/dist/runtime/templates/components/ui/icon/WarningIcon.d.vue.ts +3 -0
  526. package/dist/runtime/templates/components/ui/icon/WarningIcon.vue +11 -0
  527. package/dist/runtime/templates/components/ui/icon/WarningIcon.vue.d.ts +3 -0
  528. package/dist/runtime/templates/components/ui/icon/XMarkIcon.d.vue.ts +3 -0
  529. package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue +15 -0
  530. package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue.d.ts +3 -0
  531. package/dist/runtime/templates/components/utils/ContextMenu.d.vue.ts +27 -0
  532. package/dist/runtime/templates/components/utils/ContextMenu.vue +60 -0
  533. package/dist/runtime/templates/components/utils/ContextMenu.vue.d.ts +27 -0
  534. package/dist/runtime/templates/components/utils/HotSpot.d.vue.ts +12 -0
  535. package/dist/runtime/templates/components/utils/HotSpot.vue +28 -0
  536. package/dist/runtime/templates/components/utils/HotSpot.vue.d.ts +12 -0
  537. package/dist/runtime/templates/components/utils/README.md +1 -0
  538. package/dist/runtime/templates/components/utils/Spinner.d.vue.ts +7 -0
  539. package/dist/runtime/templates/components/utils/Spinner.spec.ts.snap +56 -0
  540. package/dist/runtime/templates/components/utils/Spinner.vue +44 -0
  541. package/dist/runtime/templates/components/utils/Spinner.vue.d.ts +7 -0
  542. package/dist/runtime/templates/components/utils/SpinnerTick.d.vue.ts +7 -0
  543. package/dist/runtime/templates/components/utils/SpinnerTick.vue +43 -0
  544. package/dist/runtime/templates/components/utils/SpinnerTick.vue.d.ts +7 -0
  545. package/dist/runtime/templates/cwa-page.d.vue.ts +3 -0
  546. package/dist/runtime/templates/cwa-page.spec.ts.snap +9 -0
  547. package/dist/runtime/templates/cwa-page.vue +55 -0
  548. package/dist/runtime/templates/cwa-page.vue.d.ts +3 -0
  549. package/dist/runtime/types/index.d.ts +59 -0
  550. package/dist/runtime/types/index.js +0 -0
  551. package/dist/runtime/types/popper.d.ts +14 -0
  552. package/dist/types.d.mts +7 -0
  553. package/package.json +132 -0
@@ -0,0 +1,130 @@
1
+ <template>
2
+ <ListHeading
3
+ title="Pages"
4
+ @add="goToAdd"
5
+ />
6
+ <ListFilter
7
+ :order-options="orderOptions"
8
+ :search-fields="['reference', 'title', 'uiComponent']"
9
+ />
10
+ <ListContainer>
11
+ <div>
12
+ <div>
13
+ <FilterFormWrapper
14
+ label="Page Type"
15
+ input-id="page-type"
16
+ >
17
+ <div class="cwa:flex cwa:gap-x-2">
18
+ <div>
19
+ <ListFilterButton
20
+ v-model="selectedTypesModel"
21
+ value="false"
22
+ label="Static"
23
+ background-color-class="cwa:bg-blue-600/20"
24
+ border-color-class="cwa:border-blue-600"
25
+ />
26
+ </div>
27
+ <div>
28
+ <ListFilterButton
29
+ v-model="selectedTypesModel"
30
+ value="true"
31
+ label="Dynamic"
32
+ background-color-class="cwa:bg-yellow/20"
33
+ border-color-class="cwa:border-yellow"
34
+ />
35
+ </div>
36
+ </div>
37
+ </FilterFormWrapper>
38
+ </div>
39
+ </div>
40
+ </ListContainer>
41
+ <ListContent
42
+ ref="listContent"
43
+ fetch-url="/_/pages"
44
+ >
45
+ <template #item="{ data }">
46
+ <div class="cwa:flex cwa:border-b cwa:border-b-stone-700 cwa:py-6 cwa:gap-x-4 cwa:items-center">
47
+ <div class="cwa:grow cwa:flex cwa:flex-col cwa:gap-y-1">
48
+ <div class="cwa:flex cwa:items-center cwa:gap-x-3">
49
+ <span class="cwa:text-xl">{{ data.reference }}</span><span :class="['cwa:outline', 'cwa:outline-1', 'cwa:outline-offset-2', 'cwa:w-2', 'cwa:h-2', 'cwa:rounded-full', data.isTemplate ? 'cwa:outline-yellow cwa:bg-yellow' : 'cwa:outline-blue-600 cwa:bg-blue-600']" />
50
+ </div>
51
+ <span class="cwa:text-stone-400">UI: {{ data.uiComponent ? getDisplayPageUi(data.uiComponent) : 'Unknown' }}</span>
52
+ </div>
53
+ <div class="cwa:flex cwa:gap-x-2">
54
+ <CwaUiFormButton :to="computedItemLink(data['@id'])">
55
+ <CwaUiIconCogIcon class="cwa:w-6" />
56
+ <span class="cwa:sr-only">Settings</span>
57
+ </CwaUiFormButton>
58
+ <CwaUiFormButton @click="() => goToPage(data['@id'])">
59
+ <CwaUiIconEyeIcon class="cwa:h-5" />
60
+ <span class="cwa:sr-only">View</span>
61
+ </CwaUiFormButton>
62
+ </div>
63
+ </div>
64
+ </template>
65
+ </ListContent>
66
+ <ResourceModalOverlay @reload="triggerReload" />
67
+ </template>
68
+
69
+ <script lang="ts" setup>
70
+ import { useRouter } from 'vue-router'
71
+ import { ref } from 'vue'
72
+ import { useListPage } from './composables/useListPage'
73
+ import ListHeading from '#cwa/templates/components/core/admin/ListHeading.vue'
74
+ import ListContent from '#cwa/templates/components/core/admin/ListContent.vue'
75
+ import ListFilter from '#cwa/templates/components/core/admin/ListFilter.vue'
76
+ import ListContainer from '#cwa/templates/components/core/admin/ListContainer.vue'
77
+ import FilterFormWrapper from '#cwa/templates/components/core/admin/form/FilterFormWrapper.vue'
78
+ import ListFilterButton from '#cwa/templates/components/core/admin/ListFilterButton.vue'
79
+ import { useQueryBoundModel } from '#cwa/composables/cwa-query-bound-model'
80
+ import ResourceModalOverlay from '#cwa/templates/components/core/admin/ResourceModalOverlay.vue'
81
+ import { definePageMeta, useCwa, useCwaResourceRoute, useHead } from '#imports'
82
+
83
+ const listContent = ref<InstanceType<typeof ListContent> | null>(null)
84
+
85
+ const $cwa = useCwa()
86
+ const { goToAdd, triggerReload, computedItemLink } = useListPage(listContent)
87
+ const { getInternalResourceLink } = useCwaResourceRoute()
88
+
89
+ const router = useRouter()
90
+
91
+ const orderOptions = [
92
+ {
93
+ label: 'New - Old',
94
+ value: { createdAt: 'desc' },
95
+ },
96
+ {
97
+ label: 'Old - New',
98
+ value: { createdAt: 'asc' },
99
+ },
100
+ {
101
+ label: 'A - Z',
102
+ value: { reference: 'asc' },
103
+ },
104
+ {
105
+ label: 'Z - A',
106
+ value: { reference: 'desc' },
107
+ },
108
+ ]
109
+
110
+ const { model: selectedTypesModel } = useQueryBoundModel('isTemplate[]', {
111
+ defaultValue: ['true', 'false'],
112
+ })
113
+
114
+ function goToPage(page: string) {
115
+ router.push(getInternalResourceLink(page))
116
+ }
117
+
118
+ function getDisplayPageUi(ui: string) {
119
+ return $cwa.pagesConfig?.[ui]?.name || ui
120
+ }
121
+
122
+ useHead({
123
+ title: 'Pages',
124
+ })
125
+
126
+ definePageMeta({
127
+ name: '_cwa-pages',
128
+ pageTransition: false,
129
+ })
130
+ </script>
@@ -0,0 +1,56 @@
1
+ <template>
2
+ <ListHeading
3
+ title="Routes"
4
+ :hide-add="true"
5
+ />
6
+ <ListFilter
7
+ :order-options="orderOptions"
8
+ :search-fields="['path']"
9
+ />
10
+ <ListContent
11
+ ref="listContent"
12
+ fetch-url="/_/routes"
13
+ >
14
+ <template #item="{ data, rawData }">
15
+ <RouteListRow
16
+ :data="data"
17
+ :associated-resources="rawData.associatedResources"
18
+ :link-fn="computedItemLink"
19
+ @delete="deleteRoute"
20
+ />
21
+ </template>
22
+ </ListContent>
23
+ </template>
24
+
25
+ <script lang="ts" setup>
26
+ import { ref } from 'vue'
27
+ import ListHeading from '#cwa/templates/components/core/admin/ListHeading.vue'
28
+ import ListContent from '#cwa/templates/components/core/admin/ListContent.vue'
29
+ import ListFilter from '#cwa/templates/components/core/admin/ListFilter.vue'
30
+ import { useListPage } from '#cwa-layer/pages/_cwa/index/composables/useListPage'
31
+ import { definePageMeta, useCwa, useHead } from '#imports'
32
+ import RouteListRow from '#cwa/templates/components/core/admin/RouteListRow.vue'
33
+
34
+ const $cwa = useCwa()
35
+ const listContent = ref<InstanceType<typeof ListContent> | null>(null)
36
+ const { computedItemLink, triggerReload } = useListPage(listContent, true)
37
+
38
+ async function deleteRoute(routeIri: string) {
39
+ await $cwa.resourcesManager.deleteResource({ endpoint: routeIri })
40
+ triggerReload()
41
+ }
42
+
43
+ const orderOptions = [
44
+ { label: 'New - Old', value: { createdAt: 'desc' } },
45
+ { label: 'Old - New', value: { createdAt: 'asc' } },
46
+ { label: 'A - Z', value: { path: 'asc' } },
47
+ { label: 'Z - A', value: { path: 'desc' } },
48
+ ]
49
+
50
+ useHead({ title: 'Routes' })
51
+
52
+ definePageMeta({
53
+ name: '_cwa-routes',
54
+ pageTransition: false,
55
+ })
56
+ </script>
@@ -0,0 +1,398 @@
1
+ <template>
2
+ <ListHeading
3
+ title="Site settings"
4
+ hide-add
5
+ />
6
+ <ListContainer class="cwa:relative cwa:py-10">
7
+ <Spinner
8
+ v-if="$cwa.siteConfig.isLoading || allSettings === undefined"
9
+ :show="true"
10
+ />
11
+ <CwaUiAlertWarning v-else-if="!allSettings">
12
+ Sorry, there was an error loading the settings
13
+ </CwaUiAlertWarning>
14
+ <div
15
+ v-else
16
+ class="cwa:flex cwa:flex-col"
17
+ >
18
+ <div :class="{ 'cwa:pointer-events-none cwa:opacity-50 cwa:transition': showUpdateProgress }">
19
+ <div>
20
+ <h2 class="cwa:text-xl cwa:mb-4">
21
+ General
22
+ </h2>
23
+ <div class="cwa:flex cwa:flex-col cwa:gap-y-4">
24
+ <div>
25
+ <ModalInput
26
+ v-model="allSettings.siteName"
27
+ label="Site name"
28
+ type="text"
29
+ />
30
+ </div>
31
+ <div>
32
+ <CwaUiFormToggle
33
+ v-model="allSettings.concatTitle"
34
+ label="Extend page titles with the default title"
35
+ />
36
+ <div
37
+ class="cwa:text-sm cwa:font-normal cwa:mt-2.5 cwa:text-stone-300"
38
+ >
39
+ <p>
40
+ <span>Page titles will be formatted as</span>&nbsp;
41
+ <CwaCode v-if="allSettings.concatTitle">
42
+ [Page title] | [Site name]
43
+ </CwaCode>
44
+ <CwaCode
45
+ v-else
46
+ >
47
+ [Page title]
48
+ </CwaCode>
49
+ </p>
50
+ </div>
51
+ </div>
52
+ <div>
53
+ <CwaUiFormToggle
54
+ v-model="allSettings.fallbackTitle"
55
+ label="Smart fallback page titles"
56
+ />
57
+ <div
58
+ class="cwa:text-sm cwa:font-normal cwa:mt-2.5 cwa:text-stone-300"
59
+ >
60
+ <p v-if="allSettings.fallbackTitle">
61
+ Fallback title based on URL. Eg. <CwaCode>/blog-articles</CwaCode> becomes <CwaCode>Blog Articles</CwaCode>
62
+ </p>
63
+ <p
64
+ v-else
65
+ class="cwa:text-danger cwa:font-bold"
66
+ >
67
+ If you do not specify a page title, no page title will be used
68
+ </p>
69
+ </div>
70
+ </div>
71
+ <div>
72
+ <ModalInput
73
+ v-model="allSettings.canonicalUrl"
74
+ label="Canonical URL"
75
+ type="url"
76
+ placeholder="https://your-site-domain.com"
77
+ />
78
+ <p
79
+ v-if="canonicalMismatch"
80
+ class="cwa:text-danger cwa:font-bold cwa:text-sm cwa:mt-2"
81
+ >
82
+ You are loading this page via <CwaCode>{{ currentHostDomain }}</CwaCode>&nbsp;which is different to the URL you have specified. Please ensure the canonical URL above is your primary domain and does not have redirects.
83
+ </p>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ <hr class="cwa:my-8 cwa:text-stone-600">
88
+ <div>
89
+ <h2 class="cwa:text-xl cwa:mb-4">
90
+ Sitemap
91
+ </h2>
92
+ <div class="cwa:flex cwa:flex-col cwa:gap-y-4">
93
+ <div class="cwa:pb-4">
94
+ <p class="cwa:text-sm cwa:text-stone-400">
95
+ <strong>Please note:</strong><br>A sitemap will be created automatically for any pages (if any) which are not created within the CWA. You should submit <CwaCode>/sitemap_index.xml</CwaCode> in your chosen search engine search consoles
96
+ </p>
97
+ </div>
98
+ <CwaUiFormToggle
99
+ v-model="allSettings.sitemapEnabled"
100
+ label="Add CWA URLs to your sitemap"
101
+ />
102
+ <ModalInput
103
+ v-model="allSettings.sitemapXml"
104
+ label="Additional custom XML sitemap"
105
+ type="textarea"
106
+ />
107
+ </div>
108
+ </div>
109
+ <hr class="cwa:my-8 cwa:text-stone-600">
110
+ <div>
111
+ <h2 class="cwa:text-xl cwa:mb-4">
112
+ SEO Indexing
113
+ </h2>
114
+ <div class="cwa:flex cwa:flex-col cwa:gap-y-4">
115
+ <CwaUiFormToggle
116
+ v-model="allSettings.indexable"
117
+ label="Allow your website to be indexed"
118
+ />
119
+ <template v-if="allSettings.indexable">
120
+ <CwaUiFormToggle
121
+ v-model="allSettings.robotsAllowNonSeoCrawlers"
122
+ label="Allow Non-SEO Crawlers (Web Scrapers etc.)"
123
+ />
124
+ <CwaUiFormToggle
125
+ v-model="allSettings.robotsAllowAiBots"
126
+ label="Allow Artificial Intelligence Bots"
127
+ />
128
+ </template>
129
+ <CwaUiFormToggle
130
+ v-model="allSettings.robotsRemoveSitemap"
131
+ label="Remove sitemap.xml from robots.txt"
132
+ />
133
+ <ModalInput
134
+ v-model="allSettings.robotsText"
135
+ label="Additional custom robots.txt"
136
+ type="textarea"
137
+ />
138
+ <div
139
+ v-if="showErrors && formErrors.robotsText"
140
+ class="cwa:text-sm cwa:flex cwa:items-center cwa:gap-x-2 cwa:transition cwa:text-danger cwa:font-bold"
141
+ >
142
+ <p
143
+ v-for="(error, index) of formErrors.robotsText"
144
+ :key="`rtxterr-${index}`"
145
+ >
146
+ {{ error }}
147
+ </p>
148
+ </div>
149
+ <div
150
+ v-if="formWarnings.robotsText"
151
+ class="cwa:text-sm cwa:flex-col cwa:items-center cwa:gap-y-2 cwa:transition cwa:text-yellow-500 cwa:font-bold"
152
+ >
153
+ <p
154
+ v-for="(warning, index) of formWarnings.robotsText"
155
+ :key="`rtxtwarn-${index}`"
156
+ >
157
+ {{ warning }}
158
+ </p>
159
+ </div>
160
+ </div>
161
+ </div>
162
+ <hr class="cwa:my-8 cwa:text-stone-600"><div>
163
+ <h2 class="cwa:text-xl cwa:mb-4">
164
+ Maintenance
165
+ </h2>
166
+ <div class="cwa:flex cwa:flex-col cwa:gap-y-4">
167
+ <div>
168
+ <CwaUiFormToggle
169
+ v-model="allSettings.maintenanceModeEnabled"
170
+ label="Enable maintenance mode"
171
+ />
172
+ <div
173
+ v-if="allSettings.maintenanceModeEnabled"
174
+ class="cwa:text-sm cwa:font-normal cwa:mt-2.5 cwa:text-stone-300"
175
+ >
176
+ <p>Website visitors will be redirected to a 'website under maintenance page'</p>
177
+ <p>Crawlers will receive an HTTP status code so they know this is not permanent</p>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </div>
182
+ <hr class="cwa:my-8 cwa:text-stone-600">
183
+ <div>
184
+ <h2 class="cwa:text-bas cwa:mb-4">
185
+ CWA Version Info
186
+ </h2>
187
+ <div class="cwa:flex cwa:flex-col cwa:gap-y-2 text-sm">
188
+ <div>
189
+ <MenuLink :to="moduleLink">
190
+ App: <span class="cwa:text-xs">{{ displayAppVersion }}</span>
191
+ </MenuLink>
192
+ </div>
193
+ <div>
194
+ <MenuLink
195
+ :to="apiPackagistLink"
196
+ title="Hello"
197
+ >
198
+ API: <span class="cwa:text-xs">{{ displayApiVersion }}</span>
199
+ </MenuLink>
200
+ </div>
201
+ </div>
202
+ </div>
203
+ <hr class="cwa:my-8 cwa:text-stone-600">
204
+ </div>
205
+
206
+ <div class="flex">
207
+ <CwaUiFormButton
208
+ :color="showSubmitErrorState ? 'error' : 'blue'"
209
+ :disabled="submitDisabled"
210
+ type="button"
211
+ @click="processChanges"
212
+ >
213
+ Save Changes
214
+ </CwaUiFormButton>
215
+ </div>
216
+ <div
217
+ v-if="showSubmitErrorState"
218
+ class="cwa:mt-2 cwa:text-sm cwa:flex cwa:items-center cwa:gap-x-2 cwa:transition cwa:text-danger cwa:font-bold"
219
+ >
220
+ <p>An error occurred while saving your changes</p>
221
+ </div>
222
+ <div
223
+ :class="[showUpdateProgress ? 'opacity-100' : 'opacity-0']"
224
+ class="cwa:mt-2 cwa:text-sm cwa:flex cwa:items-center cwa:gap-x-2 cwa:transition"
225
+ >
226
+ <Spinner show /><p>Processing updates {{ updatingCount - $cwa.siteConfig.totalRequests.value }} / {{ updatingCount }}</p>
227
+ </div>
228
+ </div>
229
+ </ListContainer>
230
+ </template>
231
+
232
+ <script lang="ts" setup>
233
+ import { consola } from 'consola'
234
+ import { computed, onMounted, ref, watch } from 'vue'
235
+ import { watchDebounced } from '@vueuse/core'
236
+ import isEqual from 'lodash-es/isEqual'
237
+ import { asArray, parseRobotsTxt, validateRobots } from '#robots/util'
238
+ import ListHeading from '#cwa/templates/components/core/admin/ListHeading.vue'
239
+ import { definePageMeta, useCwa, useRequestURL, useHead } from '#imports'
240
+ import ListContainer from '#cwa/templates/components/core/admin/ListContainer.vue'
241
+ import Spinner from '#cwa/templates/components/utils/Spinner.vue'
242
+ import ModalInput from '#cwa/templates/components/core/admin/form/ModalInput.vue'
243
+ import MenuLink from '#cwa/templates/components/main/admin/header/_parts/MenuLink.vue'
244
+ import type { SiteConfigParams } from '#cwa/types'
245
+ import CwaCode from '#cwa/templates/components/core/admin/CwaCode.vue'
246
+
247
+ const $cwa = useCwa()
248
+
249
+ const allSettings = ref<SiteConfigParams>()
250
+
251
+ const isDataChanged = computed(() => {
252
+ return !isEqual(allSettings.value, $cwa.siteConfig.config)
253
+ })
254
+
255
+ const submitDisabled = computed(() => {
256
+ return !isDataChanged.value || $cwa.siteConfig.isLoading || $cwa.siteConfig.totalRequests.value > 0
257
+ })
258
+
259
+ const apiVersion = ref('')
260
+ const showUpdateProgress = ref(false)
261
+ const updatingCount = ref(0)
262
+
263
+ const moduleLink = computed(() => {
264
+ return `https://www.npmjs.com/package/${$cwa.currentModulePackageInfo.name}/v/${$cwa.currentModulePackageInfo.version}`
265
+ })
266
+
267
+ useHead({
268
+ title: 'Site Settings',
269
+ })
270
+
271
+ definePageMeta({
272
+ name: '_cwa-settings',
273
+ pageTransition: false,
274
+ })
275
+
276
+ async function setApiVersion() {
277
+ const docs = await $cwa.getApiDocumentation()
278
+ const version = docs?.docs?.info.version
279
+ if (!version) {
280
+ apiVersion.value = ''
281
+ return
282
+ }
283
+ const matches: RegExpMatchArray | null = version.match(/ \(([a-zA-Z0-9\-@]+)\)$/)
284
+ if (!matches) {
285
+ apiVersion.value = version
286
+ return
287
+ }
288
+ apiVersion.value = matches[1] || version
289
+ }
290
+
291
+ function truncateVersion(version: string) {
292
+ return version.length > 9
293
+ ? `${version.substring(0, 3)}..${version.substring(version.length - 4)}`
294
+ : version
295
+ }
296
+
297
+ const displayApiVersion = computed(() => {
298
+ const unstablePostfix = apiVersion.value.substring(0, 3) === 'dev' ? ' (unstable)' : ''
299
+ return truncateVersion(apiVersion.value) + unstablePostfix
300
+ })
301
+
302
+ const apiPackagistLink = computed(() => {
303
+ const versionParts = apiVersion.value.split('@')
304
+ return `https://packagist.org/packages/components-web-app/api-components-bundle#${versionParts[0]}`
305
+ })
306
+
307
+ const displayAppVersion = computed(() => {
308
+ const unstablePostfix = $cwa.currentModulePackageInfo.name.substring($cwa.currentModulePackageInfo.name.length - 4) === 'edge' ? ' (unstable)' : ''
309
+ return (
310
+ truncateVersion($cwa.currentModulePackageInfo.version)
311
+ + unstablePostfix
312
+ )
313
+ })
314
+
315
+ const url = useRequestURL()
316
+ const currentHostDomain = computed(() => {
317
+ return url.origin
318
+ })
319
+
320
+ const canonicalMismatch = computed(() => {
321
+ const canonical = $cwa.siteConfig.config?.canonicalUrl
322
+ if (!canonical) {
323
+ return false
324
+ }
325
+ return canonical !== currentHostDomain.value
326
+ })
327
+
328
+ watchDebounced($cwa.siteConfig.totalRequests, (newTotal) => {
329
+ showUpdateProgress.value = newTotal > 0
330
+ }, {
331
+ debounce: 300,
332
+ })
333
+
334
+ const showErrors = ref(false)
335
+ const formErrors = ref<{ [property: string]: string[] }>({})
336
+ const formWarnings = ref<{ [property: string]: string[] }>({})
337
+
338
+ function validateRobotsTxt(robotsText: string) {
339
+ clearErrorsAndWarnings('robotsText')
340
+ const parsedRobotsTxt = parseRobotsTxt(robotsText)
341
+ const { errors } = validateRobots(parsedRobotsTxt)
342
+ if (errors.length > 0) {
343
+ formErrors.value.robotsText = errors
344
+ }
345
+ // check if the robots.txt is blocking indexing
346
+ const wildCardGroups = parsedRobotsTxt.groups.filter((group: any) => asArray(group.userAgent).includes('*'))
347
+ if (wildCardGroups.some((group: any) => asArray(group.disallow).includes('/'))) {
348
+ formWarnings.value.robotsText = [
349
+ `The user defined robots.txt is blocking indexing for all environments.`,
350
+ 'It\'s recommended to use the `indexable` Site Config to toggle this instead.',
351
+ ]
352
+ }
353
+ }
354
+
355
+ function clearErrorsAndWarnings(prop: string) {
356
+ delete formErrors.value[prop]
357
+ delete formWarnings.value[prop]
358
+ }
359
+
360
+ watch(() => allSettings.value?.robotsText, (robotsText: string | undefined) => {
361
+ if (!robotsText) {
362
+ clearErrorsAndWarnings('robotsText')
363
+ return
364
+ }
365
+ validateRobotsTxt(robotsText)
366
+ }, {
367
+ immediate: true,
368
+ })
369
+
370
+ const hasClientSideErrors = computed(() => {
371
+ return Object.values(formErrors.value).length > 0
372
+ })
373
+ const showSubmitErrorState = computed(() => {
374
+ return $cwa.siteConfig.apiState.hasError.value || (showErrors.value && hasClientSideErrors.value)
375
+ })
376
+
377
+ async function processChanges() {
378
+ if (!allSettings.value) return
379
+ if (hasClientSideErrors.value) {
380
+ showErrors.value = true
381
+ consola.error(formErrors.value)
382
+ return
383
+ }
384
+ const { totalConfigsChanged } = $cwa.siteConfig.saveConfig(allSettings.value)
385
+ showUpdateProgress.value = totalConfigsChanged > 0
386
+ updatingCount.value = totalConfigsChanged
387
+ }
388
+
389
+ onMounted(async () => {
390
+ setApiVersion()
391
+ allSettings.value = await $cwa.siteConfig.loadConfig()
392
+ watch(() => $cwa.siteConfig.config, (newConfig) => {
393
+ allSettings.value = { ...newConfig }
394
+ }, {
395
+ deep: true,
396
+ })
397
+ })
398
+ </script>