@cwa/nuxt-edge 1.0.0-29138192.e49c1a0

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 (387) hide show
  1. package/README.md +38 -0
  2. package/README.template.md +32 -0
  3. package/dist/layer/error.vue +13 -0
  4. package/dist/layer/layouts/CwaRootLayout.vue +140 -0
  5. package/dist/layer/nuxt.config.spec.ts +10 -0
  6. package/dist/layer/nuxt.config.ts +3 -0
  7. package/dist/layer/pages/_cwa/composables/useDataList.ts +50 -0
  8. package/dist/layer/pages/_cwa/composables/useDataType.ts +30 -0
  9. package/dist/layer/pages/_cwa/composables/useDynamicPageLoader.ts +28 -0
  10. package/dist/layer/pages/_cwa/composables/useItemPage.ts +172 -0
  11. package/dist/layer/pages/_cwa/composables/useListPage.ts +43 -0
  12. package/dist/layer/pages/_cwa/data/[type]/[iri].vue +17 -0
  13. package/dist/layer/pages/_cwa/data/[type].vue +131 -0
  14. package/dist/layer/pages/_cwa/data/index.vue +84 -0
  15. package/dist/layer/pages/_cwa/layouts/[iri].vue +174 -0
  16. package/dist/layer/pages/_cwa/layouts.vue +77 -0
  17. package/dist/layer/pages/_cwa/pages/[iri].vue +11 -0
  18. package/dist/layer/pages/_cwa/pages.vue +129 -0
  19. package/dist/layer/pages/_cwa/routes.vue +72 -0
  20. package/dist/layer/pages/_cwa/users/[iri].vue +248 -0
  21. package/dist/layer/pages/_cwa/users.vue +86 -0
  22. package/dist/layer/pages/_cwa.vue +43 -0
  23. package/dist/layer/pages/forgot-password.vue +32 -0
  24. package/dist/layer/pages/login.vue +33 -0
  25. package/dist/layer/pages/reset-password/[username]/[token].vue +39 -0
  26. package/dist/module.d.mts +53 -0
  27. package/dist/module.json +13 -0
  28. package/dist/module.mjs +235 -0
  29. package/dist/runtime/admin/admin.d.ts +36 -0
  30. package/dist/runtime/admin/admin.js +65 -0
  31. package/dist/runtime/admin/manageable-resource.d.ts +41 -0
  32. package/dist/runtime/admin/manageable-resource.js +206 -0
  33. package/dist/runtime/admin/manager-tabs-resolver.d.ts +17 -0
  34. package/dist/runtime/admin/manager-tabs-resolver.js +51 -0
  35. package/dist/runtime/admin/navigation-guard.d.ts +18 -0
  36. package/dist/runtime/admin/navigation-guard.js +55 -0
  37. package/dist/runtime/admin/resource-stack-manager.d.ts +92 -0
  38. package/dist/runtime/admin/resource-stack-manager.js +355 -0
  39. package/dist/runtime/api/api-documentation.d.ts +28 -0
  40. package/dist/runtime/api/api-documentation.js +131 -0
  41. package/dist/runtime/api/auth.d.ts +85 -0
  42. package/dist/runtime/api/auth.js +183 -0
  43. package/dist/runtime/api/fetcher/cwa-fetch.d.ts +5 -0
  44. package/dist/runtime/api/fetcher/cwa-fetch.js +20 -0
  45. package/dist/runtime/api/fetcher/fetch-status-manager.d.ts +51 -0
  46. package/dist/runtime/api/fetcher/fetch-status-manager.js +185 -0
  47. package/dist/runtime/api/fetcher/fetcher.d.ts +57 -0
  48. package/dist/runtime/api/fetcher/fetcher.js +222 -0
  49. package/dist/runtime/api/fetcher/preload-headers.d.ts +6 -0
  50. package/dist/runtime/api/fetcher/preload-headers.js +31 -0
  51. package/dist/runtime/api/forms.d.ts +40 -0
  52. package/dist/runtime/api/forms.js +40 -0
  53. package/dist/runtime/api/mercure.d.ts +33 -0
  54. package/dist/runtime/api/mercure.js +191 -0
  55. package/dist/runtime/composables/component/html-content.d.ts +2 -0
  56. package/dist/runtime/composables/component/html-content.js +82 -0
  57. package/dist/runtime/composables/cwa-collection-pagination.d.ts +13 -0
  58. package/dist/runtime/composables/cwa-collection-pagination.js +34 -0
  59. package/dist/runtime/composables/cwa-collection-resource.d.ts +16 -0
  60. package/dist/runtime/composables/cwa-collection-resource.js +92 -0
  61. package/dist/runtime/composables/cwa-image.d.ts +19 -0
  62. package/dist/runtime/composables/cwa-image.js +43 -0
  63. package/dist/runtime/composables/cwa-query-bound-model.d.ts +9 -0
  64. package/dist/runtime/composables/cwa-query-bound-model.js +108 -0
  65. package/dist/runtime/composables/cwa-resource-endpoint.d.ts +5 -0
  66. package/dist/runtime/composables/cwa-resource-endpoint.js +36 -0
  67. package/dist/runtime/composables/cwa-resource-manageable.d.ts +10 -0
  68. package/dist/runtime/composables/cwa-resource-manageable.js +32 -0
  69. package/dist/runtime/composables/cwa-resource-manager-tab.d.ts +17 -0
  70. package/dist/runtime/composables/cwa-resource-manager-tab.js +30 -0
  71. package/dist/runtime/composables/cwa-resource-model.d.ts +21 -0
  72. package/dist/runtime/composables/cwa-resource-model.js +149 -0
  73. package/dist/runtime/composables/cwa-resource-upload.d.ts +8 -0
  74. package/dist/runtime/composables/cwa-resource-upload.js +70 -0
  75. package/dist/runtime/composables/cwa-resource.d.ts +24 -0
  76. package/dist/runtime/composables/cwa-resource.js +22 -0
  77. package/dist/runtime/composables/cwa-select-input.d.ts +21 -0
  78. package/dist/runtime/composables/cwa-select-input.js +37 -0
  79. package/dist/runtime/composables/cwa-select.d.ts +15 -0
  80. package/dist/runtime/composables/cwa-select.js +24 -0
  81. package/dist/runtime/composables/cwa.d.ts +2 -0
  82. package/dist/runtime/composables/cwa.js +2 -0
  83. package/dist/runtime/composables/forgot-password.d.ts +9 -0
  84. package/dist/runtime/composables/forgot-password.js +45 -0
  85. package/dist/runtime/composables/login.d.ts +9 -0
  86. package/dist/runtime/composables/login.js +30 -0
  87. package/dist/runtime/composables/popper.d.ts +529 -0
  88. package/dist/runtime/composables/popper.js +104 -0
  89. package/dist/runtime/composables/process.d.ts +4 -0
  90. package/dist/runtime/composables/process.js +6 -0
  91. package/dist/runtime/composables/reset-password.d.ts +14 -0
  92. package/dist/runtime/composables/reset-password.js +75 -0
  93. package/dist/runtime/composables/transitions.d.ts +12 -0
  94. package/dist/runtime/composables/transitions.js +12 -0
  95. package/dist/runtime/cwa.d.ts +61 -0
  96. package/dist/runtime/cwa.js +123 -0
  97. package/dist/runtime/errors/cwa-resource-error.d.ts +18 -0
  98. package/dist/runtime/errors/cwa-resource-error.js +54 -0
  99. package/dist/runtime/plugin.d.ts +7 -0
  100. package/dist/runtime/plugin.js +18 -0
  101. package/dist/runtime/resources/resource-utils.d.ts +44 -0
  102. package/dist/runtime/resources/resource-utils.js +73 -0
  103. package/dist/runtime/resources/resources-manager.d.ts +70 -0
  104. package/dist/runtime/resources/resources-manager.js +463 -0
  105. package/dist/runtime/resources/resources.d.ts +53 -0
  106. package/dist/runtime/resources/resources.js +300 -0
  107. package/dist/runtime/route-middleware.d.ts +2 -0
  108. package/dist/runtime/route-middleware.js +86 -0
  109. package/dist/runtime/storage/storage.d.ts +20 -0
  110. package/dist/runtime/storage/storage.js +25 -0
  111. package/dist/runtime/storage/stores/admin/actions.d.ts +5 -0
  112. package/dist/runtime/storage/stores/admin/actions.js +10 -0
  113. package/dist/runtime/storage/stores/admin/admin-store.d.ts +18 -0
  114. package/dist/runtime/storage/stores/admin/admin-store.js +20 -0
  115. package/dist/runtime/storage/stores/admin/state.d.ts +7 -0
  116. package/dist/runtime/storage/stores/admin/state.js +9 -0
  117. package/dist/runtime/storage/stores/api-documentation/api-documentation-store.d.ts +16 -0
  118. package/dist/runtime/storage/stores/api-documentation/api-documentation-store.js +18 -0
  119. package/dist/runtime/storage/stores/api-documentation/state.d.ts +74 -0
  120. package/dist/runtime/storage/stores/api-documentation/state.js +6 -0
  121. package/dist/runtime/storage/stores/auth/auth-store.d.ts +16 -0
  122. package/dist/runtime/storage/stores/auth/auth-store.js +18 -0
  123. package/dist/runtime/storage/stores/auth/state.d.ts +20 -0
  124. package/dist/runtime/storage/stores/auth/state.js +15 -0
  125. package/dist/runtime/storage/stores/cwa-store-types.d.ts +14 -0
  126. package/dist/runtime/storage/stores/error/actions.d.ts +11 -0
  127. package/dist/runtime/storage/stores/error/actions.js +69 -0
  128. package/dist/runtime/storage/stores/error/error-store.d.ts +13 -0
  129. package/dist/runtime/storage/stores/error/error-store.js +21 -0
  130. package/dist/runtime/storage/stores/error/getters.d.ts +7 -0
  131. package/dist/runtime/storage/stores/error/getters.js +11 -0
  132. package/dist/runtime/storage/stores/error/state.d.ts +35 -0
  133. package/dist/runtime/storage/stores/error/state.js +15 -0
  134. package/dist/runtime/storage/stores/fetcher/actions.d.ts +49 -0
  135. package/dist/runtime/storage/stores/fetcher/actions.js +125 -0
  136. package/dist/runtime/storage/stores/fetcher/fetcher-store.d.ts +19 -0
  137. package/dist/runtime/storage/stores/fetcher/fetcher-store.js +23 -0
  138. package/dist/runtime/storage/stores/fetcher/getter-utils.d.ts +7 -0
  139. package/dist/runtime/storage/stores/fetcher/getter-utils.js +27 -0
  140. package/dist/runtime/storage/stores/fetcher/getters.d.ts +13 -0
  141. package/dist/runtime/storage/stores/fetcher/getters.js +52 -0
  142. package/dist/runtime/storage/stores/fetcher/state.d.ts +25 -0
  143. package/dist/runtime/storage/stores/fetcher/state.js +7 -0
  144. package/dist/runtime/storage/stores/mercure/mercure-store.d.ts +16 -0
  145. package/dist/runtime/storage/stores/mercure/mercure-store.js +18 -0
  146. package/dist/runtime/storage/stores/mercure/state.d.ts +5 -0
  147. package/dist/runtime/storage/stores/mercure/state.js +6 -0
  148. package/dist/runtime/storage/stores/resources/actions.d.ts +54 -0
  149. package/dist/runtime/storage/stores/resources/actions.js +390 -0
  150. package/dist/runtime/storage/stores/resources/getter-utils.d.ts +7 -0
  151. package/dist/runtime/storage/stores/resources/getter-utils.js +27 -0
  152. package/dist/runtime/storage/stores/resources/getters.d.ts +38 -0
  153. package/dist/runtime/storage/stores/resources/getters.js +251 -0
  154. package/dist/runtime/storage/stores/resources/resources-store.d.ts +19 -0
  155. package/dist/runtime/storage/stores/resources/resources-store.js +23 -0
  156. package/dist/runtime/storage/stores/resources/state.d.ts +64 -0
  157. package/dist/runtime/storage/stores/resources/state.js +24 -0
  158. package/dist/runtime/templates/assets/base.css +1 -0
  159. package/dist/runtime/templates/assets/cwa.css +1 -0
  160. package/dist/runtime/templates/components/core/ComponentPlaceholder.vue +18 -0
  161. package/dist/runtime/templates/components/core/ComponentPlaceholder.vue.d.ts +3 -0
  162. package/dist/runtime/templates/components/core/ComponentPosition.spec.ts.snap +16 -0
  163. package/dist/runtime/templates/components/core/ComponentPosition.vue +63 -0
  164. package/dist/runtime/templates/components/core/ComponentPosition.vue.d.ts +3 -0
  165. package/dist/runtime/templates/components/core/ConfirmDialog.vue +41 -0
  166. package/dist/runtime/templates/components/core/ConfirmDialog.vue.d.ts +9 -0
  167. package/dist/runtime/templates/components/core/DialogBox.vue +95 -0
  168. package/dist/runtime/templates/components/core/DialogBox.vue.d.ts +38 -0
  169. package/dist/runtime/templates/components/core/README.md +1 -0
  170. package/dist/runtime/templates/components/core/ResourceLoader.spec.ts.snap +39 -0
  171. package/dist/runtime/templates/components/core/ResourceLoader.vue +151 -0
  172. package/dist/runtime/templates/components/core/ResourceLoader.vue.d.ts +13 -0
  173. package/dist/runtime/templates/components/core/admin/ListContainer.vue +7 -0
  174. package/dist/runtime/templates/components/core/admin/ListContainer.vue.d.ts +12 -0
  175. package/dist/runtime/templates/components/core/admin/ListContent.vue +136 -0
  176. package/dist/runtime/templates/components/core/admin/ListContent.vue.d.ts +21 -0
  177. package/dist/runtime/templates/components/core/admin/ListFilter.vue +49 -0
  178. package/dist/runtime/templates/components/core/admin/ListFilter.vue.d.ts +9 -0
  179. package/dist/runtime/templates/components/core/admin/ListFilterButton.vue +53 -0
  180. package/dist/runtime/templates/components/core/admin/ListFilterButton.vue.d.ts +9 -0
  181. package/dist/runtime/templates/components/core/admin/ListHeading.vue +32 -0
  182. package/dist/runtime/templates/components/core/admin/ListHeading.vue.d.ts +20 -0
  183. package/dist/runtime/templates/components/core/admin/ListPagination.vue +87 -0
  184. package/dist/runtime/templates/components/core/admin/ListPagination.vue.d.ts +15 -0
  185. package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue +18 -0
  186. package/dist/runtime/templates/components/core/admin/ListPaginationButton.vue.d.ts +16 -0
  187. package/dist/runtime/templates/components/core/admin/PageAdminModal.vue +260 -0
  188. package/dist/runtime/templates/components/core/admin/PageAdminModal.vue.d.ts +12 -0
  189. package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue +187 -0
  190. package/dist/runtime/templates/components/core/admin/PageDataAdminModal.vue.d.ts +13 -0
  191. package/dist/runtime/templates/components/core/admin/ResourceModal.vue +99 -0
  192. package/dist/runtime/templates/components/core/admin/ResourceModal.vue.d.ts +27 -0
  193. package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue +27 -0
  194. package/dist/runtime/templates/components/core/admin/ResourceModalOverlay.vue.d.ts +6 -0
  195. package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue +23 -0
  196. package/dist/runtime/templates/components/core/admin/ResourceModalOverlayTemplate.vue.d.ts +15 -0
  197. package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue +77 -0
  198. package/dist/runtime/templates/components/core/admin/ResourceModalTabs.vue.d.ts +19 -0
  199. package/dist/runtime/templates/components/core/admin/RouteListRow.vue +102 -0
  200. package/dist/runtime/templates/components/core/admin/RouteListRow.vue.d.ts +20 -0
  201. package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue +52 -0
  202. package/dist/runtime/templates/components/core/admin/RouteRedirectsTree.vue.d.ts +10 -0
  203. package/dist/runtime/templates/components/core/admin/RoutesTab.vue +273 -0
  204. package/dist/runtime/templates/components/core/admin/RoutesTab.vue.d.ts +12 -0
  205. package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue +18 -0
  206. package/dist/runtime/templates/components/core/admin/form/FilterFormWrapper.vue.d.ts +16 -0
  207. package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue +86 -0
  208. package/dist/runtime/templates/components/core/admin/form/FilterSelect.vue.d.ts +3 -0
  209. package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue +23 -0
  210. package/dist/runtime/templates/components/core/admin/form/ModalInfo.vue.d.ts +16 -0
  211. package/dist/runtime/templates/components/core/admin/form/ModalInput.vue +30 -0
  212. package/dist/runtime/templates/components/core/admin/form/ModalInput.vue.d.ts +15 -0
  213. package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue +99 -0
  214. package/dist/runtime/templates/components/core/admin/form/ModalSelect.vue.d.ts +6 -0
  215. package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue +112 -0
  216. package/dist/runtime/templates/components/core/admin/form/PageTypeSelect.vue.d.ts +4 -0
  217. package/dist/runtime/templates/components/core/assets/CwaLogo.vue +21 -0
  218. package/dist/runtime/templates/components/core/assets/CwaLogo.vue.d.ts +2 -0
  219. package/dist/runtime/templates/components/core/assets/IconComponents.vue +15 -0
  220. package/dist/runtime/templates/components/core/assets/IconComponents.vue.d.ts +2 -0
  221. package/dist/runtime/templates/components/core/assets/IconData.vue +24 -0
  222. package/dist/runtime/templates/components/core/assets/IconData.vue.d.ts +2 -0
  223. package/dist/runtime/templates/components/core/assets/IconLayouts.vue +20 -0
  224. package/dist/runtime/templates/components/core/assets/IconLayouts.vue.d.ts +2 -0
  225. package/dist/runtime/templates/components/core/assets/IconPages.vue +21 -0
  226. package/dist/runtime/templates/components/core/assets/IconPages.vue.d.ts +2 -0
  227. package/dist/runtime/templates/components/core/assets/IconRoutes.vue +23 -0
  228. package/dist/runtime/templates/components/core/assets/IconRoutes.vue.d.ts +2 -0
  229. package/dist/runtime/templates/components/core/assets/IconUsers.vue +13 -0
  230. package/dist/runtime/templates/components/core/assets/IconUsers.vue.d.ts +2 -0
  231. package/dist/runtime/templates/components/core/useDataResolver.d.ts +12 -0
  232. package/dist/runtime/templates/components/core/useDataResolver.js +109 -0
  233. package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.d.ts +6 -0
  234. package/dist/runtime/templates/components/main/ComponentGroup.Util.Positions.js +164 -0
  235. package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.d.ts +20 -0
  236. package/dist/runtime/templates/components/main/ComponentGroup.Util.Synchronizer.js +69 -0
  237. package/dist/runtime/templates/components/main/ComponentGroup.spec.ts.snap +59 -0
  238. package/dist/runtime/templates/components/main/ComponentGroup.vue +107 -0
  239. package/dist/runtime/templates/components/main/ComponentGroup.vue.d.ts +9 -0
  240. package/dist/runtime/templates/components/main/CwaLink.vue +51 -0
  241. package/dist/runtime/templates/components/main/CwaLink.vue.d.ts +14 -0
  242. package/dist/runtime/templates/components/main/DefaultLayout.vue +8 -0
  243. package/dist/runtime/templates/components/main/DefaultLayout.vue.d.ts +12 -0
  244. package/dist/runtime/templates/components/main/ErrorPage.vue +98 -0
  245. package/dist/runtime/templates/components/main/ErrorPage.vue.d.ts +6 -0
  246. package/dist/runtime/templates/components/main/Logo.vue +18 -0
  247. package/dist/runtime/templates/components/main/Logo.vue.d.ts +2 -0
  248. package/dist/runtime/templates/components/main/README.md +7 -0
  249. package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue +41 -0
  250. package/dist/runtime/templates/components/main/admin/_common/ResourceContextItem.vue.d.ts +7 -0
  251. package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue +48 -0
  252. package/dist/runtime/templates/components/main/admin/_common/ResourceLoadingIndicator.vue.d.ts +2 -0
  253. package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.d.ts +5 -0
  254. package/dist/runtime/templates/components/main/admin/_common/useDynamicPositionSelectOptions.js +19 -0
  255. package/dist/runtime/templates/components/main/admin/header/Header.vue +207 -0
  256. package/dist/runtime/templates/components/main/admin/header/Header.vue.d.ts +2 -0
  257. package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue +189 -0
  258. package/dist/runtime/templates/components/main/admin/header/_parts/Menu.vue.d.ts +2 -0
  259. package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue +14 -0
  260. package/dist/runtime/templates/components/main/admin/header/_parts/MenuLink.vue.d.ts +16 -0
  261. package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue +19 -0
  262. package/dist/runtime/templates/components/main/admin/header/_parts/MenuPrimaryLink.vue.d.ts +15 -0
  263. package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue +69 -0
  264. package/dist/runtime/templates/components/main/admin/header/_parts/Notification.vue.d.ts +12 -0
  265. package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue +19 -0
  266. package/dist/runtime/templates/components/main/admin/header/_parts/OutdatedContentNotice.vue.d.ts +2 -0
  267. package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue +79 -0
  268. package/dist/runtime/templates/components/main/admin/header/_parts/PathSelector.vue.d.ts +2 -0
  269. package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue +52 -0
  270. package/dist/runtime/templates/components/main/admin/header/_parts/RequestErrors.vue.d.ts +2 -0
  271. package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue +151 -0
  272. package/dist/runtime/templates/components/main/admin/resource-manager/ComponentFocus.vue.d.ts +10 -0
  273. package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue +192 -0
  274. package/dist/runtime/templates/components/main/admin/resource-manager/LayoutPageOverlay.vue.d.ts +6 -0
  275. package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue +186 -0
  276. package/dist/runtime/templates/components/main/admin/resource-manager/ResourceManager.vue.d.ts +9 -0
  277. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue +205 -0
  278. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/AddComponentDialog.vue.d.ts +2 -0
  279. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue +38 -0
  280. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/CwaResourceManagerContextMenu.vue.d.ts +6 -0
  281. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue +15 -0
  282. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTab.vue.d.ts +7 -0
  283. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue +44 -0
  284. package/dist/runtime/templates/components/main/admin/resource-manager/_parts/ManagerTabs.vue.d.ts +13 -0
  285. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue +59 -0
  286. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/ResourceInfoTab.vue.d.ts +6 -0
  287. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue +75 -0
  288. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Order.vue.d.ts +6 -0
  289. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue +41 -0
  290. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Publish.vue.d.ts +6 -0
  291. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue +101 -0
  292. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/component/Ui.vue.d.ts +6 -0
  293. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue +34 -0
  294. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/group/Group.vue.d.ts +6 -0
  295. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue +121 -0
  296. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DataPage.vue.d.ts +6 -0
  297. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue +52 -0
  298. package/dist/runtime/templates/components/main/admin/resource-manager/_tabs/position/DynamicPage.vue.d.ts +6 -0
  299. package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue +99 -0
  300. package/dist/runtime/templates/components/main/admin/resource-manager/cta/CurrentResourceCta.vue.d.ts +7 -0
  301. package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue +59 -0
  302. package/dist/runtime/templates/components/main/admin/resource-manager/cta/NewResourceCta.vue.d.ts +7 -0
  303. package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue +28 -0
  304. package/dist/runtime/templates/components/main/admin/resource-manager/cta/ResourceManagerCtaButton.vue.d.ts +2 -0
  305. package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue +55 -0
  306. package/dist/runtime/templates/components/main/auth/ForgotPasswordPage.vue.d.ts +20 -0
  307. package/dist/runtime/templates/components/main/auth/LoginPage.vue +60 -0
  308. package/dist/runtime/templates/components/main/auth/LoginPage.vue.d.ts +23 -0
  309. package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue +59 -0
  310. package/dist/runtime/templates/components/main/auth/ResetPasswordPage.vue.d.ts +27 -0
  311. package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.spec.ts.snap +14 -0
  312. package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue +17 -0
  313. package/dist/runtime/templates/components/main/auth/_parts/AuthPageLink.vue.d.ts +6 -0
  314. package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.spec.ts.snap +90 -0
  315. package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue +45 -0
  316. package/dist/runtime/templates/components/main/auth/_parts/AuthTemplate.vue.d.ts +17 -0
  317. package/dist/runtime/templates/components/main/auth/_parts/InputField.spec.ts.snap +111 -0
  318. package/dist/runtime/templates/components/main/auth/_parts/InputField.vue +50 -0
  319. package/dist/runtime/templates/components/main/auth/_parts/InputField.vue.d.ts +17 -0
  320. package/dist/runtime/templates/components/ui/BackgroundParticles.vue +960 -0
  321. package/dist/runtime/templates/components/ui/BackgroundParticles.vue.d.ts +2 -0
  322. package/dist/runtime/templates/components/ui/Hamburger.vue +75 -0
  323. package/dist/runtime/templates/components/ui/Hamburger.vue.d.ts +9 -0
  324. package/dist/runtime/templates/components/ui/ProgressBar.spec.ts.snap +71 -0
  325. package/dist/runtime/templates/components/ui/ProgressBar.vue +29 -0
  326. package/dist/runtime/templates/components/ui/ProgressBar.vue.d.ts +9 -0
  327. package/dist/runtime/templates/components/ui/README.md +6 -0
  328. package/dist/runtime/templates/components/ui/alert/Info.spec.ts.snap +23 -0
  329. package/dist/runtime/templates/components/ui/alert/Info.vue +13 -0
  330. package/dist/runtime/templates/components/ui/alert/Info.vue.d.ts +12 -0
  331. package/dist/runtime/templates/components/ui/alert/Warning.spec.ts.snap +14 -0
  332. package/dist/runtime/templates/components/ui/alert/Warning.vue +8 -0
  333. package/dist/runtime/templates/components/ui/alert/Warning.vue.d.ts +12 -0
  334. package/dist/runtime/templates/components/ui/form/Button.vue +139 -0
  335. package/dist/runtime/templates/components/ui/form/Button.vue.d.ts +52 -0
  336. package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue +18 -0
  337. package/dist/runtime/templates/components/ui/form/ButtonPopoverGroup.vue.d.ts +10 -0
  338. package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue +15 -0
  339. package/dist/runtime/templates/components/ui/form/ButtonPopoverItem.vue.d.ts +10 -0
  340. package/dist/runtime/templates/components/ui/form/File.vue +72 -0
  341. package/dist/runtime/templates/components/ui/form/File.vue.d.ts +9 -0
  342. package/dist/runtime/templates/components/ui/form/Input.vue +22 -0
  343. package/dist/runtime/templates/components/ui/form/Input.vue.d.ts +5 -0
  344. package/dist/runtime/templates/components/ui/form/LabelWrapper.vue +16 -0
  345. package/dist/runtime/templates/components/ui/form/LabelWrapper.vue.d.ts +15 -0
  346. package/dist/runtime/templates/components/ui/form/SearchResource.vue +212 -0
  347. package/dist/runtime/templates/components/ui/form/SearchResource.vue.d.ts +14 -0
  348. package/dist/runtime/templates/components/ui/form/Select.vue +60 -0
  349. package/dist/runtime/templates/components/ui/form/Select.vue.d.ts +3 -0
  350. package/dist/runtime/templates/components/ui/form/Toggle.vue +39 -0
  351. package/dist/runtime/templates/components/ui/form/Toggle.vue.d.ts +6 -0
  352. package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue +30 -0
  353. package/dist/runtime/templates/components/ui/icon/ArrowIcon.vue.d.ts +2 -0
  354. package/dist/runtime/templates/components/ui/icon/BinIcon.vue +24 -0
  355. package/dist/runtime/templates/components/ui/icon/BinIcon.vue.d.ts +2 -0
  356. package/dist/runtime/templates/components/ui/icon/CogIcon.vue +9 -0
  357. package/dist/runtime/templates/components/ui/icon/CogIcon.vue.d.ts +2 -0
  358. package/dist/runtime/templates/components/ui/icon/EyeIcon.vue +24 -0
  359. package/dist/runtime/templates/components/ui/icon/EyeIcon.vue.d.ts +2 -0
  360. package/dist/runtime/templates/components/ui/icon/PenIcon.vue +12 -0
  361. package/dist/runtime/templates/components/ui/icon/PenIcon.vue.d.ts +2 -0
  362. package/dist/runtime/templates/components/ui/icon/PlusIcon.vue +9 -0
  363. package/dist/runtime/templates/components/ui/icon/PlusIcon.vue.d.ts +2 -0
  364. package/dist/runtime/templates/components/ui/icon/SearchIcon.vue +10 -0
  365. package/dist/runtime/templates/components/ui/icon/SearchIcon.vue.d.ts +2 -0
  366. package/dist/runtime/templates/components/ui/icon/TickIcon.vue +23 -0
  367. package/dist/runtime/templates/components/ui/icon/TickIcon.vue.d.ts +2 -0
  368. package/dist/runtime/templates/components/ui/icon/WarningIcon.vue +11 -0
  369. package/dist/runtime/templates/components/ui/icon/WarningIcon.vue.d.ts +2 -0
  370. package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue +15 -0
  371. package/dist/runtime/templates/components/ui/icon/XMarkIcon.vue.d.ts +2 -0
  372. package/dist/runtime/templates/components/utils/ContextMenu.vue +59 -0
  373. package/dist/runtime/templates/components/utils/ContextMenu.vue.d.ts +21 -0
  374. package/dist/runtime/templates/components/utils/HotSpot.vue +24 -0
  375. package/dist/runtime/templates/components/utils/HotSpot.vue.d.ts +9 -0
  376. package/dist/runtime/templates/components/utils/README.md +1 -0
  377. package/dist/runtime/templates/components/utils/Spinner.spec.ts.snap +56 -0
  378. package/dist/runtime/templates/components/utils/Spinner.vue +42 -0
  379. package/dist/runtime/templates/components/utils/Spinner.vue.d.ts +5 -0
  380. package/dist/runtime/templates/components/utils/SpinnerTick.vue +43 -0
  381. package/dist/runtime/templates/components/utils/SpinnerTick.vue.d.ts +6 -0
  382. package/dist/runtime/templates/cwa-page.spec.ts.snap +20 -0
  383. package/dist/runtime/templates/cwa-page.vue +32 -0
  384. package/dist/runtime/templates/cwa-page.vue.d.ts +2 -0
  385. package/dist/runtime/types/popper.d.ts +14 -0
  386. package/dist/types.d.mts +9 -0
  387. package/package.json +108 -0
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <div class="cwa:flex cwa:items-center cwa:gap-x-2">
3
+ <div class="cwa:text-sm">
4
+ {{ label }}
5
+ </div>
6
+ <div>
7
+ <slot />
8
+ </div>
9
+ </div>
10
+ </template>
11
+
12
+ <script setup>
13
+ defineProps({
14
+ label: { type: String, required: true }
15
+ });
16
+ </script>
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ };
4
+ declare var __VLS_1: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_1) => any;
7
+ };
8
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,212 @@
1
+ <script setup>
2
+ import { computed, onMounted, ref, watch } from "vue";
3
+ import { debounce } from "lodash-es";
4
+ import { Popover, PopoverPanel } from "@headlessui/vue";
5
+ import CwaUiFormInput from "./Input.vue";
6
+ import { useCwa, usePopper } from "#imports";
7
+ import Spinner from "#cwa/runtime/templates/components/utils/Spinner.vue";
8
+ import ButtonPopoverItem from "#cwa/runtime/templates/components/ui/form/ButtonPopoverItem.vue";
9
+ import ButtonPopoverGroup from "#cwa/runtime/templates/components/ui/form/ButtonPopoverGroup.vue";
10
+ const props = defineProps({
11
+ modelValue: { type: [String, Number, Boolean, Object, null, Array], required: true, skipCheck: true },
12
+ endpoint: { type: String, required: true },
13
+ property: { type: String, required: true },
14
+ searchProperties: { type: Array, required: false },
15
+ notNullable: { type: Boolean, required: false }
16
+ });
17
+ const emit = defineEmits(["update:modelValue"]);
18
+ const $cwa = useCwa();
19
+ const [trigger, container] = usePopper({
20
+ placement: "top-start",
21
+ offsetDistance: 4
22
+ });
23
+ const selectedResource = ref();
24
+ const searchValue = ref();
25
+ const fetchingCurrentResource = ref(0);
26
+ const fetchCurrentCount = ref(0);
27
+ const fetchingSearchValue = ref();
28
+ const debounceFetchActive = ref(false);
29
+ const fetchingSearchResults = ref(false);
30
+ const searchResults = ref();
31
+ const focussed = ref(false);
32
+ const open = computed(() => {
33
+ return focussed.value && (showLoadingIndicator.value || !!searchResults.value);
34
+ });
35
+ let debouncedSearchCall;
36
+ const value = computed({
37
+ get() {
38
+ return props.modelValue;
39
+ },
40
+ set(value2) {
41
+ emit("update:modelValue", value2);
42
+ }
43
+ });
44
+ const resourcePropertyValue = computed(() => {
45
+ return selectedResource.value?.[props.property];
46
+ });
47
+ const showLoadingIndicator = computed(() => {
48
+ return fetchingCurrentResource.value === 0 && (fetchingSearchResults.value || debounceFetchActive.value);
49
+ });
50
+ const displaySearchResults = computed(() => {
51
+ if (!searchResults.value) {
52
+ return;
53
+ }
54
+ return [...searchResults.value].reverse().map((result) => ({ value: result["@id"], label: result[props.property] }));
55
+ });
56
+ async function fetchResource() {
57
+ if (!value.value) {
58
+ fetchingCurrentResource.value = 0;
59
+ selectedResource.value = void 0;
60
+ return;
61
+ }
62
+ fetchingCurrentResource.value = ++fetchCurrentCount.value;
63
+ const newResource = await $cwa.fetchResource({
64
+ path: `${value.value}`,
65
+ noSave: false,
66
+ shallowFetch: true
67
+ });
68
+ if (fetchCurrentCount.value === fetchingCurrentResource.value) {
69
+ selectedResource.value = newResource;
70
+ fetchingCurrentResource.value = 0;
71
+ }
72
+ }
73
+ async function search() {
74
+ debounceFetchActive.value = false;
75
+ const searchParamsObj = {
76
+ perPage: "6",
77
+ [`order[${props.property}]`]: "asc"
78
+ };
79
+ if (fetchingSearchValue.value && fetchingSearchValue.value === searchValue.value) {
80
+ return;
81
+ }
82
+ if (!fetchingSearchValue.value && searchValue.value === resourcePropertyValue.value) {
83
+ return;
84
+ }
85
+ fetchingSearchValue.value = searchValue.value;
86
+ if (!searchValue.value) {
87
+ searchResults.value = void 0;
88
+ fetchingSearchValue.value = void 0;
89
+ fetchingSearchResults.value = false;
90
+ return;
91
+ }
92
+ fetchingSearchResults.value = true;
93
+ if (props.searchProperties) {
94
+ for (const prop of props.searchProperties) {
95
+ searchParamsObj[prop] = searchValue.value;
96
+ }
97
+ } else {
98
+ searchParamsObj[props.property] = searchValue.value;
99
+ }
100
+ const params = new URLSearchParams(searchParamsObj);
101
+ const query = params.toString();
102
+ const path = `${props.endpoint}?${query}`;
103
+ const fetch = $cwa.fetch({
104
+ path
105
+ });
106
+ const result = await fetch.response;
107
+ if (searchValue.value === fetchingSearchValue.value) {
108
+ fetchingSearchResults.value = false;
109
+ searchResults.value = result._data?.["hydra:member"];
110
+ }
111
+ }
112
+ function clearResource() {
113
+ if (props.notNullable) {
114
+ return;
115
+ }
116
+ value.value = null;
117
+ }
118
+ function handleOptionClick(clickValue, close) {
119
+ value.value = clickValue;
120
+ close();
121
+ focussed.value = false;
122
+ searchValue.value = resourcePropertyValue.value;
123
+ }
124
+ function unfocus() {
125
+ setTimeout(() => {
126
+ focussed.value = false;
127
+ }, 100);
128
+ }
129
+ watch(resourcePropertyValue, (newValue) => {
130
+ searchValue.value = newValue;
131
+ });
132
+ watch(value, () => {
133
+ searchValue.value = "";
134
+ fetchResource();
135
+ });
136
+ watch(searchValue, (newSearchValue) => {
137
+ if (debouncedSearchCall) {
138
+ debouncedSearchCall.cancel();
139
+ }
140
+ if (fetchingSearchValue.value && fetchingSearchValue.value === newSearchValue) {
141
+ return;
142
+ }
143
+ if (!fetchingSearchValue.value && newSearchValue === resourcePropertyValue.value) {
144
+ return;
145
+ }
146
+ debounceFetchActive.value = true;
147
+ debouncedSearchCall = debounce(search, 250);
148
+ debouncedSearchCall();
149
+ });
150
+ onMounted(() => {
151
+ fetchResource();
152
+ });
153
+ </script>
154
+
155
+ <template>
156
+ <Popover class="cwa:flex cwa:items-center cwa:gap-x-2">
157
+ <div
158
+ ref="trigger"
159
+ class="cwa:relative"
160
+ >
161
+ <CwaUiFormInput
162
+ v-model="searchValue"
163
+ class="cwa:pr-8"
164
+ :disabled="fetchingCurrentResource !== 0"
165
+ @focus="focussed = true"
166
+ @blur="unfocus"
167
+ />
168
+ <div
169
+ v-if="fetchingCurrentResource !== 0"
170
+ class="cwa:absolute cwa:top-1/2 cwa:-translate-y-1/2 cwa:left-2"
171
+ >
172
+ <Spinner :show="true" />
173
+ </div>
174
+ <button
175
+ v-if="!notNullable && !!resourcePropertyValue"
176
+ class="cwa:absolute cwa:right-1 cwa:top-1/2 cwa:-translate-y-1/2 cwa:opacity-50 cwa:hover:opacity-100 cwa:transition cwa:cursor-pointer"
177
+ @click="clearResource"
178
+ >
179
+ <CwaUiIconXMarkIcon class="cwa:w-6" />
180
+ </button>
181
+ </div>
182
+ <div v-if="open">
183
+ <PopoverPanel
184
+ v-slot="{ close }"
185
+ ref="container"
186
+ static
187
+ class="cwa:absolute cwa:max-h-60 cwa:min-w-full cwa:max-w-[300px] cwa:overflow-auto cwa:dark-blur cwa:border-0 cwa:outline-dotted cwa:outline-1 cwa:outline-stone-400"
188
+ >
189
+ <div v-if="showLoadingIndicator">
190
+ Loading...
191
+ </div>
192
+ <template
193
+ v-for="(option, index) of displaySearchResults"
194
+ v-else
195
+ >
196
+ <ButtonPopoverGroup
197
+ v-if="Array.isArray(option)"
198
+ :key="`popover-group-option-${index}`"
199
+ :options="option"
200
+ @click="(value) => handleOptionClick(value, close)"
201
+ />
202
+ <ButtonPopoverItem
203
+ v-else
204
+ :key="`popover-item-option-${index}`"
205
+ :option="option"
206
+ @click="(value) => handleOptionClick(value, close)"
207
+ />
208
+ </template>
209
+ </PopoverPanel>
210
+ </div>
211
+ </Popover>
212
+ </template>
@@ -0,0 +1,14 @@
1
+ import type { ModelValue } from '#cwa/runtime/templates/components/ui/form/Button.vue';
2
+ type __VLS_Props = {
3
+ modelValue: ModelValue;
4
+ endpoint: string;
5
+ property: string;
6
+ searchProperties?: string[];
7
+ notNullable?: boolean;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ "update:modelValue": (value?: ModelValue) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:modelValue"?: ((value?: ModelValue) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,60 @@
1
+ <script setup>
2
+ import {
3
+ Listbox,
4
+ ListboxButton,
5
+ ListboxOptions,
6
+ ListboxOption
7
+ } from "@headlessui/vue";
8
+ import { computed } from "vue";
9
+ import { useCwaSelectInput } from "#cwa/runtime/composables/cwa-select-input";
10
+ const emit = defineEmits(["update:modelValue"]);
11
+ const props = defineProps({
12
+ options: { type: Array, required: true },
13
+ modelValue: { type: [String, Number, Boolean, Object, null, Array], required: true, skipCheck: true },
14
+ popper: { type: Object, required: false }
15
+ });
16
+ const { value, compareOptions, selectedOption, trigger, container } = useCwaSelectInput(computed(() => props), emit);
17
+ </script>
18
+
19
+ <template>
20
+ <Listbox
21
+ v-model="value"
22
+ :by="compareOptions"
23
+ >
24
+ <div class="cwa:relative cwa:inline-flex">
25
+ <ListboxButton
26
+ ref="trigger"
27
+ class="cwa:relative cwa:py-2 cwa:px-4 cwa:text-left cwa:text-light cwa:w-full cwa:dark-blur cwa:border-0 cwa:outline-dotted cwa:outline-1 cwa:outline-stone-700 cwa:hover:outline-stone-400 cwa:focus-visible:ring-2 cwa:focus-visible:ring-stone-600 cwa:cursor-pointer"
28
+ >
29
+ <span class="cwa:block cwa:truncate">{{ selectedOption?.label }}</span>
30
+ </ListboxButton>
31
+ <ListboxOptions
32
+ ref="container"
33
+ class="cwa:absolute cwa:max-h-60 cwa:min-w-full cwa:max-w-[300px] cwa:overflow-auto cwa:dark-blur cwa:border-0 cwa:outline-dotted cwa:outline-1 cwa:outline-stone-400"
34
+ >
35
+ <ListboxOption
36
+ v-for="option in options"
37
+ :key="option.label"
38
+ v-slot="{ active, selected }"
39
+ as="template"
40
+ :value="option.value"
41
+ :disabled="option.disabled"
42
+ >
43
+ <li
44
+ :class="[
45
+ active ? 'cwa:text-white' : 'cwa:text-stone-400',
46
+ 'cwa:relative cwa:cursor-pointer cwa:select-none cwa:py-2 cwa:px-4'
47
+ ]"
48
+ >
49
+ <span
50
+ :class="[
51
+ selected ? 'cwa:text-white' : '',
52
+ 'cwa:block cwa:truncate'
53
+ ]"
54
+ >{{ option.label }}</span>
55
+ </li>
56
+ </ListboxOption>
57
+ </ListboxOptions>
58
+ </div>
59
+ </Listbox>
60
+ </template>
@@ -0,0 +1,3 @@
1
+ import { type SelectInputProps } from '#cwa/runtime/composables/cwa-select-input';
2
+ declare const _default: import("vue").DefineComponent<SelectInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,39 @@
1
+ <script setup>
2
+ import { Switch, SwitchGroup, SwitchLabel } from "@headlessui/vue";
3
+ const emit = defineEmits(["update:modelValue"]);
4
+ defineProps({
5
+ label: { type: String, required: true },
6
+ modelValue: { type: Boolean, required: true }
7
+ });
8
+ function handleSwitchInput(newValue) {
9
+ emit("update:modelValue", newValue);
10
+ }
11
+ </script>
12
+
13
+ <template>
14
+ <SwitchGroup
15
+ as="div"
16
+ class="cwa:flex cwa:items-center"
17
+ >
18
+ <Switch
19
+ :model-value="modelValue"
20
+ :class="[
21
+ modelValue ? 'cwa:bg-indigo-600' : 'cwa:bg-gray-200',
22
+ 'cwa:relative cwa:inline-flex cwa:h-6 cwa:w-11 cwa:shrink-0 cwa:cursor-pointer cwa:border-2 cwa:border-transparent cwa:transition-colors cwa:duration-200 cwa:ease-in-out cwa:rounded-full'
23
+ ]"
24
+ @update:model-value="handleSwitchInput"
25
+ >
26
+ <span
27
+ aria-hidden="true"
28
+ :class="[modelValue ? 'cwa:translate-x-5' : 'cwa:translate-x-0', 'cwa:pointer-events-none cwa:inline-block cwa:h-5 cwa:w-5 cwa:transform cwa:bg-white cwa:shadow cwa:ring-0 cwa:transition cwa:duration-200 cwa:ease-in-out cwa:rounded-full']"
29
+ />
30
+ </Switch>
31
+
32
+ <SwitchLabel
33
+ as="span"
34
+ class="cwa:ml-3 cwa:text-sm cwa:cursor-pointer"
35
+ >
36
+ <span class="cwa:font-medium">{{ label }}</span>
37
+ </SwitchLabel>
38
+ </SwitchGroup>
39
+ </template>
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ modelValue: boolean;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,30 @@
1
+ <template>
2
+ <svg
3
+ viewBox="0 0 17 10"
4
+ version="1.1"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ >
8
+ <g
9
+ stroke="none"
10
+ stroke-width="1"
11
+ fill="none"
12
+ fill-rule="evenodd"
13
+ >
14
+ <g
15
+ transform="translate(-971.000000, -263.000000)"
16
+ fill="currentColor"
17
+ fill-rule="nonzero"
18
+ >
19
+ <g transform="translate(489.000000, 244.000000)">
20
+ <g transform="translate(361.000000, 2.000000)">
21
+ <path
22
+ d="M125.238655,21.3780414 L131.838816,14.2574854 C132.157023,13.9141715 132.673218,13.9141715 132.991425,14.2574854 L133.761302,15.088107 C134.079169,15.4310544 134.079509,15.986512 133.76266,16.3301922 L128.531774,21.9998168 L133.762321,27.6698078 C134.079509,28.013488 134.07883,28.5689456 133.760962,28.911893 L132.991085,29.7425146 C132.672878,30.0858285 132.156683,30.0858285 131.838477,29.7425146 L125.238655,22.6215922 C124.920448,22.2782784 124.920448,21.7213552 125.238655,21.3780414 Z"
23
+ transform="translate(129.500000, 22.000000) scale(1, -1) rotate(90.000000) translate(-129.500000, -22.000000) "
24
+ />
25
+ </g>
26
+ </g>
27
+ </g>
28
+ </g>
29
+ </svg>
30
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <svg
3
+ viewBox="0 0 15 17"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ xmlns:xlink="http://www.w3.org/1999/xlink"
6
+ >
7
+ <g
8
+ stroke="none"
9
+ stroke-width="1"
10
+ fill="none"
11
+ fill-rule="evenodd"
12
+ >
13
+ <g
14
+ transform="translate(-740.000000, -492.000000)"
15
+ fill="currentColor"
16
+ fill-rule="nonzero"
17
+ >
18
+ <g transform="translate(740.000000, 492.000000)">
19
+ <path d="M11.1221591,2.75 L11.1221591,1.50390625 C11.1221591,0.683203125 10.5042614,0 9.65198864,0 L5.34375,0 C4.49573864,0 3.87784091,0.683203125 3.87784091,1.50390625 L3.87784091,2.75 L0,2.75 L0,4.125 L0.392045454,4.125 C0.392045454,4.125 0.62215909,4.15078125 0.741477273,4.27109374 C0.860795454,4.39140625 0.907670454,4.65781249 0.907670454,4.65781249 L1.71732954,15.0433594 C1.78125,16.3066407 1.78125,16.5 3.25142046,16.5 L11.7485795,16.5 C13.21875,16.5 13.21875,16.3109375 13.2826705,15.0476562 L14.0923295,4.66640625 C14.0923295,4.66640625 14.1392045,4.39570312 14.2585227,4.27539063 C14.3778409,4.15507812 14.6079545,4.12929687 14.6079545,4.12929687 L15,4.12929687 L15,2.75429688 L11.1221591,2.75429688 L11.1221591,2.75 Z M5,1.63235293 C5,1.20882353 5.3046875,0.970588236 5.69140625,0.970588236 L9.27343751,0.970588236 C9.66015626,0.970588236 10,1.21323529 10,1.63235293 L10,2.9117647 L5,2.9117647 L5,1.63235293 Z M4.33441559,13.5882353 L4.00000001,5.82352941 L4.65909092,5.82352941 L4.99999999,13.5882353 L4.33441559,13.5882353 Z M8,13.5882353 L7,13.5882353 L7,5.82352941 L8,5.82352941 L8,13.5882353 Z M10.6623377,13.5882353 L10,13.5882353 L10.3409091,5.82352941 L11,5.82352941 L10.6623377,13.5882353 Z" />
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </svg>
24
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <svg
3
+ viewBox="0 0 21 21"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ ><path
6
+ d="m20.6364697 12.8012637-1.9821929-1.509375c.0251455-.2327637.0467107-.5048614.0467107-.79275 0-.2878887-.0206807-.55998636-.0467107-.79275003l1.9840041-1.51023633c.3684206-.2835.4690444-.78663867.2345222-1.20573632l-2.0612936-3.47291602c-.2201594-.39198633-.7026822-.59325-1.1923652-.417375l-2.3389464.91436133c-.4483637-.315-.9183347-.58098633-1.4044376-.79361133l-.3558268-2.41586133c-.05842-.45851367-.46816-.80501367-.9524517-.80501367h-4.13332775c-.48433387 0-.89314721.3465-.95068265.798l-.35671133 2.42463867c-.47085558.20651367-.93358207.46901367-1.40174199.79361133l-2.34522218-.91698633c-.43943433-.165375-.96508757.02009766-1.18343585.41036133l-2.06394715 3.47726367c-.2434937.40076367-.14286985.921375.23363771 1.21188867l1.98219291 1.509375c-.03146338.29486136-.0467107.55124996-.0467107.79188866s.01528944.4969863.0467107.79275l-1.98400406 1.5102363c-.36842059.2843614-.46815992.7875-.2336377 1.2057364l2.06129361 3.472875c.22015942.391125.69817534.5941113 1.19236521.417375l2.33894635-.9143614c.44747918.3141387.91740813.580125 1.40355314.7936114l.35582681 2.415c.05837784.4602363.4672333.8067363.95245168.8067363h4.13332774c.4843339 0 .8940738-.3465.9515672-.798l.3567113-2.4237363c.4708556-.207375.9326975-.4690137 1.401742-.7945137l2.3452222.9169863c.1132176.0428614.230942.0647637.3522466.0647637.3486244 0 .6694076-.1855137.8311471-.4742637l2.0702651-3.49125c.2300575-.4095.1293915-.9125976-.2407981-1.1987226zm-10.1356728 1.1987226c-1.98219295 0-3.59419625-1.56975-3.59419625-3.4999863 0-1.93023633 1.6120033-3.49998633 3.59419625-3.49998633 1.9821929 0 3.5941962 1.56975 3.5941962 3.49998633 0 1.9302363-1.6120033 3.4999863-3.5941962 3.4999863z"
7
+ fill="currentColor"
8
+ /></svg>
9
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <svg
3
+ viewBox="0 0 35 23"
4
+ version="1.1"
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ >
7
+ <g
8
+ stroke="none"
9
+ stroke-width="1"
10
+ fill="none"
11
+ fill-rule="evenodd"
12
+ >
13
+ <g
14
+ transform="translate(-579.000000, -21.000000)"
15
+ fill="currentColor"
16
+ fill-rule="nonzero"
17
+ >
18
+ <g transform="translate(579.000000, 21.000000)">
19
+ <path d="M17.5,0 C24.0649556,0 30.1941525,3.80124031 34.758904,10.6976744 C35.0803653,11.1897674 35.0803653,11.8173643 34.758904,12.3023256 C30.1941525,19.1987597 24.0649556,23 17.5,23 C10.9350444,23 4.80584754,19.1987597 0.24109603,12.3023256 C-0.0803653434,11.8173643 -0.0803653434,11.1826357 0.24109603,10.6976744 C4.80584754,3.80124031 10.9350444,0 17.5,0 Z M17.5,2.91689922 C12.1923155,2.91689922 7.14894377,5.95503876 3.21997143,11.5035659 C7.15608736,17.052093 12.1994591,20.0902326 17.5,20.0902326 C22.8076845,20.0902326 27.8439126,17.052093 31.7800286,11.5035659 C27.8439126,5.95503876 22.8005409,2.91689922 17.5,2.91689922 Z M17.5,4 C21.6372093,4 25,7.3627907 25,11.5 C25,15.6372093 21.6372093,19 17.5,19 C13.3627907,19 10,15.6372093 10,11.5 C10,7.3627907 13.3627907,4 17.5,4 Z M17.5,6.75581395 C14.9325581,6.75581395 12.8395349,8.88372093 12.8395349,11.5 C12.8395349,14.1162791 14.9325581,16.244186 17.5,16.244186 C20.0674419,16.244186 22.1604651,14.1162791 22.1604651,11.5 C22.1604651,8.88372093 20.0674419,6.75581395 17.5,6.75581395 Z" />
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </svg>
24
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <svg
3
+ height="24"
4
+ viewBox="0 0 24 24"
5
+ width="24"
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ ><path
8
+ d="m186.014044 18.2594709-15.152111 15.1488532-5.216112.5768794c-1.511749.1672951-2.798467-1.1076084-2.631136-2.6305701l.577004-5.2149898 15.152111-15.1488532c1.321338-1.32105386 3.456251-1.32105386 4.771819 0l2.492655 2.492119c1.321338 1.3210539 1.321338 3.4612765.00577 4.7765615zm-5.700794 1.7825574-3.35239-3.3516694-10.720725 10.7241882-.421213 3.7670225 3.767833-.421122zm3.738982-4.5977289-2.492655-2.492119c-.236571-.2365206-.623164-.2365206-.853965 0l-1.782941 1.7825573 3.352391 3.3516694 1.78294-1.7825574c.230802-.2422893.230802-.6230297-.00577-.8595503z"
9
+ fill="#fff"
10
+ transform="translate(-163 -10)"
11
+ /></svg>
12
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <svg
3
+ viewBox="0 0 16 16"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ ><path
6
+ d="m16 6.55578093v2.88843814h-6.56910569v6.55578093h-2.86178862v-6.55578093h-6.56910569v-2.88843814h6.56910569v-6.55578093h2.86178862v6.55578093z"
7
+ fill="currentColor"
8
+ /></svg>
9
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ <template>
2
+ <svg
3
+ viewBox="0 0 15 15"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ ><path
6
+ d="m295.796004 205.96846-2.921112-2.920613c-.131846-.131823-.31057-.205058-.498083-.205058h-.477574c.808653-1.034079 1.289157-2.334733 1.289157-3.749634 0-3.365882-2.727739-6.093155-6.094196-6.093155s-6.094196 2.727273-6.094196 6.093155 2.727739 6.093155 6.094196 6.093155c1.415142 0 2.716019-.480422 3.750274-1.288937v.477493c0 .187481.073248.366175.205093.497998l2.921112 2.920613c.275411.275364.720756.275364.993237 0l.829162-.82902c.275411-.275364.275411-.720633.00293-.995997zm-8.796004-2.96846c-2.209375 0-4-1.7875-4-4 0-2.209375 1.7875-4 4-4 2.209375 0 4 1.7875 4 4 0 2.209375-1.7875 4-4 4z"
7
+ fill="currentColor"
8
+ transform="translate(-281 -193)"
9
+ /></svg>
10
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <svg
3
+ viewBox="0 0 19 14"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ >
6
+ <g
7
+ stroke="none"
8
+ stroke-width="1"
9
+ fill="none"
10
+ fill-rule="evenodd"
11
+ >
12
+ <g
13
+ transform="translate(-569.000000, -121.000000)"
14
+ fill="currentColor"
15
+ fill-rule="nonzero"
16
+ >
17
+ <g transform="translate(569.000000, 121.000000)">
18
+ <path d="M6.45324312,13.7250405 L0.278237088,7.6234865 C-0.092745696,7.25691658 -0.092745696,6.66256509 0.278237088,6.2959585 L1.6217091,4.9684305 C1.99269189,4.60182391 2.59423544,4.60182391 2.96521823,4.9684305 L7.12499768,9.07869246 L16.0347818,0.274927442 C16.4057646,-0.0916424805 17.0073081,-0.0916424805 17.3782909,0.274927442 L18.7217629,1.60245545 C19.0927457,1.96902537 19.0927457,2.56337686 18.7217629,2.92998345 L7.79675224,13.7250771 C7.42573235,14.0916471 6.8242259,14.0916471 6.45324312,13.7250405 L6.45324312,13.7250405 Z" />
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </svg>
23
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ fill="currentColor"
5
+ viewBox="0 0 48 48"
6
+ >
7
+ <path
8
+ d="M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"
9
+ />
10
+ </svg>
11
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,15 @@
1
+ <template>
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ fill="none"
5
+ viewBox="0 0 24 24"
6
+ stroke-width="1.5"
7
+ stroke="currentColor"
8
+ >
9
+ <path
10
+ stroke-linecap="round"
11
+ stroke-linejoin="round"
12
+ d="M6 18 18 6M6 6l12 12"
13
+ />
14
+ </svg>
15
+ </template>
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;