@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,225 @@
1
+ import { computed, watch, watchEffect } from "vue";
2
+ import { consola as logger } from "consola";
3
+ import { storeToRefs } from "pinia";
4
+ import { createCwaResourceError } from "../../errors/cwa-resource-error.js";
5
+ import { isCwaResource, ResourceTypeFromIri } from "../../resources/resource-utils.js";
6
+ import { CwaResourceApiStatuses } from "../../storage/stores/resources/state.js";
7
+ import { clearError, useError } from "#imports";
8
+ export default class FetchStatusManager {
9
+ mercure;
10
+ apiDocumentation;
11
+ _fetcherStore;
12
+ _resourcesStore;
13
+ _iriToDepth = /* @__PURE__ */ new Map();
14
+ _depthPaths = /* @__PURE__ */ new Map();
15
+ constructor(fetcherStoreDefinition, mercure, apiDocumentation, resourcesStoreDefinition) {
16
+ this.mercure = mercure;
17
+ this.apiDocumentation = apiDocumentation;
18
+ this._fetcherStore = fetcherStoreDefinition.useStore();
19
+ this._resourcesStore = resourcesStoreDefinition.useStore();
20
+ }
21
+ async getFetchedCurrentResource(iri, timeout) {
22
+ const { current: { value: { byId: currentById } } } = storeToRefs(this.resourcesStore);
23
+ const currentResource = currentById[iri];
24
+ if (!currentResource) {
25
+ return;
26
+ }
27
+ timeout = timeout || 1e4;
28
+ let stopWatch;
29
+ const getResolvedResource = new Promise((resolve) => {
30
+ const tooLongTimeout = setTimeout(() => {
31
+ logger.warn(`Timed out ${timeout}ms waiting to fetch current resource '${iri}' in pending API state.`);
32
+ resolve(void 0);
33
+ }, timeout);
34
+ stopWatch = watchEffect(() => {
35
+ if (currentResource.apiState.status !== CwaResourceApiStatuses.IN_PROGRESS) {
36
+ clearTimeout(tooLongTimeout);
37
+ resolve(currentResource.data);
38
+ }
39
+ });
40
+ });
41
+ const resolvedResource = await getResolvedResource;
42
+ stopWatch();
43
+ return resolvedResource || currentResource.data;
44
+ }
45
+ startFetch(event) {
46
+ if (event.isPrimary) {
47
+ this._iriToDepth = /* @__PURE__ */ new Map();
48
+ this._depthPaths = /* @__PURE__ */ new Map();
49
+ }
50
+ const startFetchStatus = this.fetcherStore.startFetch({ ...event, isCurrentSuccessResourcesResolved: this.isCurrentSuccessResourcesResolved });
51
+ if (event.isPrimary) {
52
+ this.resourcesStore.resetCurrentResources(startFetchStatus.resources);
53
+ }
54
+ return startFetchStatus;
55
+ }
56
+ startFetchResource(event) {
57
+ const addedToFetcherResources = this.fetcherStore.addFetchResource(event);
58
+ if (addedToFetcherResources) {
59
+ this.resourcesStore.setResourceFetchStatus({ iri: event.resource, isComplete: false, path: event.path, headers: event.headers });
60
+ }
61
+ return addedToFetcherResources;
62
+ }
63
+ finishFetchResource(event) {
64
+ if (this.resourcesStore.current.byId?.[event.resource]?.apiState.status === CwaResourceApiStatuses.SUCCESS && this.resourcesStore.current.byId?.[event.resource]?.apiState.path === event.path) {
65
+ return this.resourcesStore.current.byId?.[event.resource]?.data;
66
+ }
67
+ const isCurrent = this.fetcherStore.isCurrentFetchingToken(event.token);
68
+ const fetchStatus = this.fetcherStore.fetches[event.token];
69
+ if (fetchStatus?.abort) {
70
+ this.resourcesStore.setResourceFetchError({
71
+ iri: event.resource,
72
+ error: createCwaResourceError(new Error(`Not Saved. Fetching token '${event.token}' has been aborted.`)),
73
+ isCurrent
74
+ });
75
+ return;
76
+ }
77
+ if (!isCurrent) {
78
+ this.resourcesStore.setResourceFetchError({
79
+ iri: event.resource,
80
+ error: createCwaResourceError(new Error(`Not Saved. Fetching token '${event.token}' is no longer current.`)),
81
+ isCurrent
82
+ });
83
+ return;
84
+ }
85
+ const showErrorPage = this.finishFetchShowError(fetchStatus, event.resource);
86
+ const setFinalResourceFetchError = (error) => {
87
+ this.resourcesStore.setResourceFetchError({
88
+ iri: event.resource,
89
+ error,
90
+ isCurrent,
91
+ showErrorPage
92
+ });
93
+ };
94
+ if (!event.success) {
95
+ setFinalResourceFetchError(event.error);
96
+ return;
97
+ }
98
+ const cwaResource = event.fetchResponse._data;
99
+ if (!isCwaResource(cwaResource)) {
100
+ const error = createCwaResourceError(new Error(`Not Saved. The response was not a valid CWA Resource. (${event.resource})`));
101
+ setFinalResourceFetchError(error);
102
+ logger.error("[CWA FETCH ERROR: Not a valid CWA resource]", event.resource, cwaResource);
103
+ return;
104
+ }
105
+ if (this.finishFetchShowError(fetchStatus, event.resource)) {
106
+ const currentError = useError();
107
+ if (currentError.value?.error) clearError();
108
+ }
109
+ const linkHeader = event.fetchResponse.headers.get("link");
110
+ if (linkHeader) {
111
+ this.mercure.setMercureHubFromLinkHeader(linkHeader);
112
+ this.apiDocumentation.setDocsPathFromLinkHeader(linkHeader);
113
+ }
114
+ if (!event.noSave) {
115
+ if (event.userProvidedIri) {
116
+ cwaResource["@id"] = event.userProvidedIri;
117
+ }
118
+ logger.debug(`Save resource with ID '${cwaResource["@id"]}'`, cwaResource);
119
+ this.resourcesStore.saveResource({
120
+ resource: cwaResource
121
+ });
122
+ }
123
+ this.resourcesStore.setResourceFetchStatus({
124
+ responseIri: cwaResource["@id"],
125
+ iri: event.resource,
126
+ isComplete: true,
127
+ headers: event.headers,
128
+ path: event.path
129
+ });
130
+ return cwaResource;
131
+ }
132
+ async finishFetch(event) {
133
+ await this.waitForFetchChainToComplete(event.token);
134
+ this.fetcherStore.finishFetch(event);
135
+ }
136
+ finishFetchShowError(fetchStatus, eventResource) {
137
+ return !!fetchStatus?.isPrimary && fetchStatus?.path === eventResource;
138
+ }
139
+ computedFetchChainComplete(token) {
140
+ return computed(() => {
141
+ const resolvingResponse = this.fetcherStore.isFetchResolving(token);
142
+ if (resolvingResponse.resolving) {
143
+ return false;
144
+ }
145
+ if (resolvingResponse.fetchStatus?.abort) {
146
+ return true;
147
+ }
148
+ const resources = resolvingResponse.fetchStatus?.resources;
149
+ if (!resources) {
150
+ return false;
151
+ }
152
+ return !this.resourcesStore.resourcesApiStateIsPending(resources);
153
+ });
154
+ }
155
+ async waitForFetchChainToComplete(token) {
156
+ let fetchChainCompletePromiseResolver;
157
+ const fetchChainCompletePromise = new Promise((resolve) => {
158
+ fetchChainCompletePromiseResolver = resolve;
159
+ });
160
+ const computedFetchChainComplete = this.computedFetchChainComplete(token);
161
+ const callback = (isFetchChainComplete) => {
162
+ if (isFetchChainComplete === true) {
163
+ fetchChainCompletePromiseResolver();
164
+ }
165
+ };
166
+ const stopWatch = watch(computedFetchChainComplete, callback, {
167
+ immediate: true
168
+ });
169
+ await fetchChainCompletePromise;
170
+ stopWatch();
171
+ }
172
+ setManifestIrisByDepth(event) {
173
+ this._iriToDepth = /* @__PURE__ */ new Map();
174
+ this._depthPaths = /* @__PURE__ */ new Map();
175
+ const prefix = ResourceTypeFromIri.getPathPrefix() || "";
176
+ const routePathPrefix = `${prefix}/_/routes/`;
177
+ for (let depth = 0; depth < event.irisByDepth.length; depth++) {
178
+ for (const iri of event.irisByDepth[depth]) {
179
+ this._iriToDepth.set(iri, depth);
180
+ if (!this._depthPaths.has(depth) && iri.startsWith(routePathPrefix)) {
181
+ this._depthPaths.set(depth, iri.substring(routePathPrefix.length));
182
+ }
183
+ }
184
+ }
185
+ this.fetcherStore.setManifestIrisByDepth(event);
186
+ }
187
+ getDepthForIri(iri) {
188
+ return this._iriToDepth.get(iri);
189
+ }
190
+ getPathForDepth(depth) {
191
+ return this._depthPaths.get(depth);
192
+ }
193
+ registerIriDepth(iri, depth) {
194
+ this._iriToDepth.set(iri, depth);
195
+ }
196
+ finishManifestFetch(event) {
197
+ this.fetcherStore.finishManifestFetch(event);
198
+ }
199
+ isCurrentFetchingToken(token) {
200
+ return this.fetcherStore.isCurrentFetchingToken(token);
201
+ }
202
+ abortFetch(token) {
203
+ return this.fetcherStore.abortFetch({ token });
204
+ }
205
+ // todo: test
206
+ clearPrimaryFetch() {
207
+ this.fetcherStore.primaryFetch.successToken = void 0;
208
+ }
209
+ get primaryFetchPath() {
210
+ return this.fetcherStore.primaryFetchPath;
211
+ }
212
+ get isCurrentSuccessResourcesResolved() {
213
+ const successFetchStatus = this.fetcherStore.resolvedSuccessFetchStatus;
214
+ if (!successFetchStatus) {
215
+ return false;
216
+ }
217
+ return this.resourcesStore.isFetchStatusResourcesResolved(successFetchStatus);
218
+ }
219
+ get fetcherStore() {
220
+ return this._fetcherStore;
221
+ }
222
+ get resourcesStore() {
223
+ return this._resourcesStore;
224
+ }
225
+ }
@@ -0,0 +1,57 @@
1
+ import type { RouteLocationNormalizedLoaded, Router } from 'vue-router';
2
+ import type { FetchResponse } from 'ofetch';
3
+ import type { CwaResource } from '../../resources/resource-utils.js';
4
+ import type { ResourcesStore } from '../../storage/stores/resources/resources-store.js';
5
+ import type CwaFetch from './cwa-fetch.js';
6
+ import type FetchStatusManager from './fetch-status-manager.js';
7
+ export interface FetchResourceEvent {
8
+ path: string;
9
+ token?: string;
10
+ manifestPath?: string;
11
+ preload?: string[];
12
+ shallowFetch?: boolean | 'noexist';
13
+ noSave?: boolean;
14
+ isPrimary?: boolean;
15
+ iri?: string;
16
+ }
17
+ export interface FetchManifestEvent {
18
+ manifestPath: string;
19
+ token: string;
20
+ }
21
+ export interface FetchEvent {
22
+ path: string;
23
+ noQuery?: boolean;
24
+ preload?: string[];
25
+ }
26
+ export interface CwaFetchRequestHeaders {
27
+ path?: string;
28
+ preload?: string;
29
+ }
30
+ export type CwaFetchResponse = FetchResponse<CwaResource | undefined>;
31
+ export interface CwaFetchResponseRaw {
32
+ response: Promise<CwaFetchResponse>;
33
+ headers: CwaFetchRequestHeaders;
34
+ }
35
+ interface FetchBatchEvent {
36
+ paths: string[];
37
+ token?: string;
38
+ noSave?: boolean;
39
+ shallowFetch?: boolean | 'noexist';
40
+ }
41
+ export default class Fetcher {
42
+ private readonly cwaFetch;
43
+ private fetchStatusManager;
44
+ private router;
45
+ private readonly _store;
46
+ constructor(cwaFetch: CwaFetch, fetchStatusManager: FetchStatusManager, router: Router, resourcesStoreDefinition: ResourcesStore);
47
+ fetchRoute(route: RouteLocationNormalizedLoaded): Promise<CwaResource | undefined>;
48
+ fetchResource({ path, token, manifestPath, preload, shallowFetch, noSave, isPrimary, iri: userProvidedIri }: FetchResourceEvent): Promise<CwaResource | undefined>;
49
+ private fetchManifest;
50
+ private fetchAssociatedResources;
51
+ fetchBatch({ paths, token, noSave, shallowFetch }: FetchBatchEvent): Promise<(CwaResource | undefined)[]>;
52
+ fetch(event: FetchEvent): CwaFetchResponseRaw;
53
+ private appendQueryToPath;
54
+ private createRequestHeaders;
55
+ private get resourcesStore();
56
+ }
57
+ export {};
@@ -0,0 +1,263 @@
1
+ import {
2
+ CwaResourceTypes,
3
+ getResourceTypeFromIri,
4
+ ResourceTypeFromIri,
5
+ resourceTypeToAssociatedResourceProperties
6
+ } from "../../resources/resource-utils.js";
7
+ import { FinishFetchManifestType } from "../../storage/stores/fetcher/actions.js";
8
+ import { createCwaResourceError } from "../../errors/cwa-resource-error.js";
9
+ import preloadHeaders from "./preload-headers.js";
10
+ export default class Fetcher {
11
+ constructor(cwaFetch, fetchStatusManager, router, resourcesStoreDefinition) {
12
+ this.cwaFetch = cwaFetch;
13
+ this.fetchStatusManager = fetchStatusManager;
14
+ this.router = router;
15
+ this._store = resourcesStoreDefinition.useStore();
16
+ }
17
+ cwaFetch;
18
+ fetchStatusManager;
19
+ router;
20
+ _store;
21
+ async fetchRoute(route) {
22
+ if (route.meta.cwa?.disabled === true) {
23
+ this.fetchStatusManager.clearPrimaryFetch();
24
+ return;
25
+ }
26
+ let iri;
27
+ let manifestPath;
28
+ if (route.meta.cwa?.fetch?.iri) {
29
+ iri = route.meta.cwa.fetch.iri;
30
+ manifestPath = route.meta.cwa.fetch.manifestPath;
31
+ } else {
32
+ const routeParam = route.params.cwaPage0 || "";
33
+ iri = Array.isArray(routeParam) ? `/${routeParam.join("/")}` : routeParam;
34
+ const resourceType = iri ? getResourceTypeFromIri(iri) : void 0;
35
+ const prefix = ResourceTypeFromIri.getPathPrefix() || "";
36
+ if (!resourceType || ![CwaResourceTypes.PAGE, CwaResourceTypes.PAGE_DATA].includes(resourceType)) {
37
+ iri = `${prefix}/_/routes/${route.path}`;
38
+ manifestPath = `${prefix}/_/resource_manifest/${route.path}`;
39
+ } else {
40
+ const id = iri.split("/").pop();
41
+ manifestPath = `${prefix}/_/resource_manifest/${id}`;
42
+ }
43
+ }
44
+ return await this.fetchResource({
45
+ path: iri,
46
+ isPrimary: true,
47
+ manifestPath
48
+ });
49
+ }
50
+ async fetchResource({ path, token, manifestPath, preload, shallowFetch, noSave, isPrimary, iri: userProvidedIri }) {
51
+ const iri = userProvidedIri || path.split("?")[0];
52
+ const startFetchResult = this.fetchStatusManager.startFetch({
53
+ path,
54
+ token,
55
+ isPrimary,
56
+ manifestPath
57
+ });
58
+ if (!startFetchResult.continue) {
59
+ return this.fetchStatusManager.getFetchedCurrentResource(path);
60
+ }
61
+ if (manifestPath) {
62
+ this.fetchManifest({ token: startFetchResult.token, manifestPath }).then(() => {
63
+ });
64
+ }
65
+ const fetchEvent = {
66
+ path,
67
+ preload
68
+ };
69
+ const continueToFetchResource = this.fetchStatusManager.startFetchResource({
70
+ resource: iri,
71
+ token: startFetchResult.token,
72
+ path,
73
+ headers: this.createRequestHeaders(fetchEvent)
74
+ });
75
+ if (!continueToFetchResource) {
76
+ return this.fetchStatusManager.getFetchedCurrentResource(path);
77
+ }
78
+ const finishFetchResourceEvent = {
79
+ resource: iri,
80
+ userProvidedIri,
81
+ token: startFetchResult.token
82
+ };
83
+ let cwaFetchRaw;
84
+ let resource;
85
+ try {
86
+ cwaFetchRaw = this.fetch(fetchEvent);
87
+ const fetchResponse = await cwaFetchRaw.response;
88
+ resource = this.fetchStatusManager.finishFetchResource({
89
+ ...finishFetchResourceEvent,
90
+ success: true,
91
+ fetchResponse,
92
+ headers: cwaFetchRaw.headers,
93
+ noSave,
94
+ path
95
+ });
96
+ } catch (error) {
97
+ const cwaError = createCwaResourceError(error);
98
+ this.fetchStatusManager.finishFetchResource({
99
+ ...finishFetchResourceEvent,
100
+ success: false,
101
+ error: cwaError,
102
+ path
103
+ });
104
+ }
105
+ const doRedirect = this.fetchStatusManager.primaryFetchPath === path && getResourceTypeFromIri(iri) === CwaResourceTypes.ROUTE && resource?.redirectPath;
106
+ if (doRedirect) {
107
+ this.fetchStatusManager.abortFetch(startFetchResult.token);
108
+ } else if (resource && shallowFetch !== true) {
109
+ await this.fetchAssociatedResources({ resource, token: startFetchResult.token, noSave: !!noSave, onlyIfNoExist: shallowFetch === "noexist" });
110
+ }
111
+ if (!token) {
112
+ await this.fetchStatusManager.finishFetch({
113
+ token: startFetchResult.token
114
+ });
115
+ }
116
+ return resource;
117
+ }
118
+ async fetchManifest(event) {
119
+ let resources = [];
120
+ try {
121
+ const result = this.fetch({
122
+ path: event.manifestPath
123
+ });
124
+ const response = await result.response;
125
+ resources = response._data?.resource_iris || [];
126
+ this.fetchStatusManager.setManifestIrisByDepth({ token: event.token, irisByDepth: resources });
127
+ const flatPaths = resources.flat();
128
+ if (flatPaths.length && this.fetchStatusManager.isCurrentFetchingToken(event.token)) {
129
+ await this.fetchBatch({ paths: flatPaths, token: event.token });
130
+ }
131
+ this.fetchStatusManager.finishManifestFetch({
132
+ type: FinishFetchManifestType.SUCCESS,
133
+ token: event.token
134
+ });
135
+ } catch (error) {
136
+ this.fetchStatusManager.finishManifestFetch({
137
+ type: FinishFetchManifestType.ERROR,
138
+ token: event.token,
139
+ error: createCwaResourceError(error)
140
+ });
141
+ }
142
+ }
143
+ fetchAssociatedResources({ resource, token, noSave, onlyIfNoExist }) {
144
+ const iri = resource["@id"];
145
+ const type = getResourceTypeFromIri(iri);
146
+ if (!type) {
147
+ return;
148
+ }
149
+ let nestedIris = [];
150
+ const associatedPropertiesToFetch = resourceTypeToAssociatedResourceProperties[type];
151
+ for (const prop of associatedPropertiesToFetch) {
152
+ let propIris = resource[prop];
153
+ if (!propIris) {
154
+ continue;
155
+ }
156
+ if (Array.isArray(propIris)) {
157
+ for (const value of propIris) {
158
+ const iri2 = typeof value === "string" ? value : value?.["@id"];
159
+ if (iri2) nestedIris.push(iri2);
160
+ }
161
+ } else {
162
+ if (prop === "publishedResource") {
163
+ propIris += "?published=true";
164
+ }
165
+ nestedIris.push(propIris);
166
+ }
167
+ }
168
+ if (onlyIfNoExist) {
169
+ nestedIris = nestedIris.filter((iri2) => !this.resourcesStore.current.currentIds.includes(iri2));
170
+ if (!nestedIris.length) {
171
+ return;
172
+ }
173
+ }
174
+ const parentDepth = this.fetchStatusManager.getDepthForIri(iri);
175
+ if (parentDepth !== void 0) {
176
+ for (const nestedIri of nestedIris) {
177
+ this.fetchStatusManager.registerIriDepth(nestedIri, parentDepth);
178
+ }
179
+ }
180
+ return this.fetchBatch({ paths: nestedIris, token, noSave });
181
+ }
182
+ fetchBatch({ paths, token, noSave, shallowFetch }) {
183
+ const promises = [];
184
+ for (const path of paths) {
185
+ const pathPromise = new Promise((resolve) => {
186
+ this.fetchResource({ path, token, noSave, shallowFetch }).then((resource) => {
187
+ resolve(resource);
188
+ }).catch(() => {
189
+ resolve(void 0);
190
+ });
191
+ });
192
+ promises.push(pathPromise);
193
+ }
194
+ return Promise.all(promises);
195
+ }
196
+ fetch(event) {
197
+ const url = event.noQuery ? event.path : this.appendQueryToPath(event.path);
198
+ const headers = this.createRequestHeaders(event);
199
+ const response = this.cwaFetch.fetch.raw(url, {
200
+ headers
201
+ });
202
+ return {
203
+ response,
204
+ headers
205
+ };
206
+ }
207
+ appendQueryToPath(path) {
208
+ const queryObj = this.router.currentRoute.value?.query;
209
+ if (!queryObj) {
210
+ return path;
211
+ }
212
+ const queryKeys = Object.keys(queryObj);
213
+ if (!queryKeys.length) {
214
+ return path;
215
+ }
216
+ const queryString = queryKeys.reduce((accumulator, key) => {
217
+ if (key.endsWith("[]") && Array.isArray(queryObj[key])) {
218
+ for (const arrValue of queryObj[key]) {
219
+ accumulator.push(key + "=" + arrValue);
220
+ }
221
+ } else {
222
+ accumulator.push(key + "=" + queryObj[key]);
223
+ }
224
+ return accumulator;
225
+ }, []).join("&");
226
+ const delimiter = path.includes("?") ? "&" : "?";
227
+ return `${path}${delimiter}${queryString}`;
228
+ }
229
+ createRequestHeaders(event) {
230
+ let preload = event.preload;
231
+ if (!preload) {
232
+ const resourceType = getResourceTypeFromIri(event.path);
233
+ if (resourceType) {
234
+ preload = preloadHeaders[resourceType];
235
+ }
236
+ }
237
+ const requestHeaders = {};
238
+ if (this.fetchStatusManager.primaryFetchPath) {
239
+ const prefix = ResourceTypeFromIri.getPathPrefix() || "";
240
+ const routePathPrefix = `${prefix}/_/routes/`;
241
+ const iri = event.path.split("?")[0] ?? event.path;
242
+ const depth = this.fetchStatusManager.getDepthForIri(iri);
243
+ const depthPath = depth !== void 0 ? this.fetchStatusManager.getPathForDepth(depth) : void 0;
244
+ if (depthPath !== void 0) {
245
+ requestHeaders.path = depthPath;
246
+ } else {
247
+ const primaryFetchPath = this.fetchStatusManager.primaryFetchPath;
248
+ if (primaryFetchPath.indexOf(routePathPrefix) === 0) {
249
+ requestHeaders.path = primaryFetchPath.substring(routePathPrefix.length);
250
+ } else {
251
+ requestHeaders.path = primaryFetchPath;
252
+ }
253
+ }
254
+ }
255
+ if (preload) {
256
+ requestHeaders.preload = preload.join(",");
257
+ }
258
+ return requestHeaders;
259
+ }
260
+ get resourcesStore() {
261
+ return this._store;
262
+ }
263
+ }
@@ -0,0 +1,6 @@
1
+ import { CwaResourceTypes } from '../../resources/resource-utils.js';
2
+ type PreloadMap = {
3
+ [T in CwaResourceTypes]: Array<string>;
4
+ };
5
+ declare const preloadHeaders: PreloadMap;
6
+ export default preloadHeaders;
@@ -0,0 +1,31 @@
1
+ import { CwaResourceTypes } from "../../resources/resource-utils.js";
2
+ const preloadToNextComponent = "/componentGroups/*/componentPositions/*/component";
3
+ const preloadHeaders = {
4
+ [CwaResourceTypes.ROUTE]: [
5
+ `/page/layout${preloadToNextComponent}${preloadToNextComponent}`,
6
+ `/page${preloadToNextComponent}${preloadToNextComponent}`,
7
+ `/pageData/page/layout${preloadToNextComponent}${preloadToNextComponent}`,
8
+ `/pageData/page${preloadToNextComponent}${preloadToNextComponent}`
9
+ ],
10
+ [CwaResourceTypes.PAGE]: [
11
+ `/layout${preloadToNextComponent}${preloadToNextComponent}`,
12
+ `${preloadToNextComponent}${preloadToNextComponent}`
13
+ ],
14
+ [CwaResourceTypes.LAYOUT]: [
15
+ `${preloadToNextComponent}${preloadToNextComponent}`
16
+ ],
17
+ [CwaResourceTypes.PAGE_DATA]: [
18
+ `/page/layout${preloadToNextComponent}${preloadToNextComponent}`,
19
+ `/page${preloadToNextComponent}${preloadToNextComponent}`
20
+ ],
21
+ [CwaResourceTypes.COMPONENT_GROUP]: [
22
+ `/componentPositions/*/component${preloadToNextComponent}${preloadToNextComponent}`
23
+ ],
24
+ [CwaResourceTypes.COMPONENT_POSITION]: [
25
+ `/component${preloadToNextComponent}${preloadToNextComponent}`
26
+ ],
27
+ [CwaResourceTypes.COMPONENT]: [
28
+ preloadToNextComponent
29
+ ]
30
+ };
31
+ export default preloadHeaders;
@@ -0,0 +1,40 @@
1
+ import type { ComputedRef } from 'vue';
2
+ import type { ResourcesStore } from '../storage/stores/resources/resources-store.js';
3
+ interface ViewVars {
4
+ full_name: string;
5
+ name: string;
6
+ id: string;
7
+ unique_block_prefix: string;
8
+ valid: boolean;
9
+ submitted: boolean;
10
+ required: boolean;
11
+ value: any;
12
+ errors: string[];
13
+ action?: string;
14
+ block_prefixes: string[];
15
+ disabled: boolean;
16
+ checked?: boolean;
17
+ multiple?: boolean;
18
+ attr: {
19
+ [key: string]: any;
20
+ };
21
+ label?: string;
22
+ label_attr: {
23
+ [key: string]: any;
24
+ };
25
+ [key: string]: any;
26
+ }
27
+ interface FormView {
28
+ vars: ViewVars;
29
+ }
30
+ interface KeyedFormView {
31
+ [key: string]: FormView;
32
+ }
33
+ export default class Forms {
34
+ private readonly _resourcesStore;
35
+ constructor(resourcesStoreDefinition: ResourcesStore);
36
+ getForm(iri: string): ComputedRef<KeyedFormView | undefined>;
37
+ getFormViewErrors(formIri: string, field: string): ComputedRef<string[] | undefined>;
38
+ private get resourcesStore();
39
+ }
40
+ export {};
@@ -0,0 +1,40 @@
1
+ import { computed } from "vue";
2
+ export default class Forms {
3
+ _resourcesStore;
4
+ constructor(resourcesStoreDefinition) {
5
+ this._resourcesStore = resourcesStoreDefinition.useStore();
6
+ }
7
+ getForm(iri) {
8
+ return computed(() => {
9
+ const resource = this.resourcesStore.current.byId[iri];
10
+ if (resource?.data?.["@type"] !== "Form") {
11
+ return;
12
+ }
13
+ const createFormViewObject = (apiFormView) => {
14
+ const structuredFormView = {
15
+ vars: Object.assign({}, apiFormView.vars)
16
+ };
17
+ let data = {
18
+ [apiFormView.vars.full_name]: structuredFormView
19
+ };
20
+ if (apiFormView.children) {
21
+ for (const child of apiFormView.children) {
22
+ data = { ...data, ...createFormViewObject(child) };
23
+ }
24
+ }
25
+ return data;
26
+ };
27
+ return createFormViewObject(resource.data.formView);
28
+ });
29
+ }
30
+ getFormViewErrors(formIri, field) {
31
+ return computed(() => {
32
+ const form = this.getForm(formIri);
33
+ const errors = form.value?.[field]?.vars.errors;
34
+ return errors && errors.length ? errors : void 0;
35
+ });
36
+ }
37
+ get resourcesStore() {
38
+ return this._resourcesStore;
39
+ }
40
+ }
@@ -0,0 +1,32 @@
1
+ import type { ComputedRef } from 'vue';
2
+ import type { MercureStore } from '../storage/stores/mercure/mercure-store.js';
3
+ import type { ResourcesStore } from '../storage/stores/resources/resources-store.js';
4
+ import type { FetcherStore } from '../storage/stores/fetcher/fetcher-store.js';
5
+ import type Fetcher from './fetcher/fetcher.js';
6
+ export default class Mercure {
7
+ private eventSource?;
8
+ private lastEventId?;
9
+ private mercureMessageQueue;
10
+ private fetcher?;
11
+ private requestCount?;
12
+ private readonly _mercureStore;
13
+ private readonly _resourcesStore;
14
+ private readonly _fetcherStore;
15
+ constructor(mercureStoreDefinition: MercureStore, resourcesStoreDefinition: ResourcesStore, fetcherStoreDefinition: FetcherStore);
16
+ setFetcher(fetcher: Fetcher): void;
17
+ setRequestCount(requestCount: ComputedRef<number>): void;
18
+ setMercureHubFromLinkHeader(linkHeader: string): void;
19
+ init(forceRestart?: boolean): void;
20
+ closeMercure(): void;
21
+ private get requestsInProgress();
22
+ private handleMercureMessage;
23
+ private isMessageForCurrentResource;
24
+ private addMercureMessageToQueue;
25
+ private processMessageQueue;
26
+ private collectResourceActions;
27
+ private fetch;
28
+ private get hubUrl();
29
+ private get hub();
30
+ private get mercureStore();
31
+ private get resourcesStore();
32
+ }