@nuxt-atelier/admin 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +6 -2
- package/dist/module.d.mts +52 -0
- package/dist/module.json +12 -0
- package/dist/module.mjs +188 -0
- package/dist/runtime/admin.css +1 -0
- package/dist/runtime/ai-off.d.ts +1 -0
- package/dist/runtime/ai-off.js +1 -0
- package/dist/runtime/appearance.d.ts +59 -0
- package/dist/runtime/appearance.js +111 -0
- package/dist/runtime/branding.d.ts +11 -0
- package/dist/runtime/branding.js +14 -0
- package/dist/runtime/components/App.d.vue.ts +6 -0
- package/dist/runtime/components/App.vue +170 -0
- package/dist/runtime/components/App.vue.d.ts +6 -0
- package/dist/runtime/components/AppearanceModal.d.vue.ts +3 -0
- package/dist/runtime/components/AppearanceModal.vue +267 -0
- package/dist/runtime/components/AppearanceModal.vue.d.ts +3 -0
- package/dist/runtime/components/AuthFrame.d.vue.ts +15 -0
- package/dist/runtime/components/AuthFrame.vue +56 -0
- package/dist/runtime/components/AuthFrame.vue.d.ts +15 -0
- package/dist/runtime/components/BlocksField.d.vue.ts +14 -0
- package/dist/runtime/components/BlocksField.vue +167 -0
- package/dist/runtime/components/BlocksField.vue.d.ts +14 -0
- package/dist/runtime/components/Brand.d.vue.ts +6 -0
- package/dist/runtime/components/Brand.vue +22 -0
- package/dist/runtime/components/Brand.vue.d.ts +6 -0
- package/dist/runtime/components/CollectionList.d.vue.ts +6 -0
- package/dist/runtime/components/CollectionList.vue +312 -0
- package/dist/runtime/components/CollectionList.vue.d.ts +6 -0
- package/dist/runtime/components/CommentsPanel.d.vue.ts +9 -0
- package/dist/runtime/components/CommentsPanel.vue +228 -0
- package/dist/runtime/components/CommentsPanel.vue.d.ts +9 -0
- package/dist/runtime/components/EntryEdit.d.vue.ts +9 -0
- package/dist/runtime/components/EntryEdit.vue +457 -0
- package/dist/runtime/components/EntryEdit.vue.d.ts +9 -0
- package/dist/runtime/components/FieldInput.d.vue.ts +13 -0
- package/dist/runtime/components/FieldInput.vue +356 -0
- package/dist/runtime/components/FieldInput.vue.d.ts +13 -0
- package/dist/runtime/components/FormSubmissions.d.vue.ts +6 -0
- package/dist/runtime/components/FormSubmissions.vue +197 -0
- package/dist/runtime/components/FormSubmissions.vue.d.ts +6 -0
- package/dist/runtime/components/GlobalSearch.d.vue.ts +10 -0
- package/dist/runtime/components/GlobalSearch.vue +145 -0
- package/dist/runtime/components/GlobalSearch.vue.d.ts +10 -0
- package/dist/runtime/components/Home.d.vue.ts +3 -0
- package/dist/runtime/components/Home.vue +247 -0
- package/dist/runtime/components/Home.vue.d.ts +3 -0
- package/dist/runtime/components/Icon.d.ts +14 -0
- package/dist/runtime/components/Icon.js +12 -0
- package/dist/runtime/components/MediaDetails.d.vue.ts +11 -0
- package/dist/runtime/components/MediaDetails.vue +222 -0
- package/dist/runtime/components/MediaDetails.vue.d.ts +11 -0
- package/dist/runtime/components/MediaField.d.vue.ts +14 -0
- package/dist/runtime/components/MediaField.vue +86 -0
- package/dist/runtime/components/MediaField.vue.d.ts +14 -0
- package/dist/runtime/components/MediaGrid.d.vue.ts +13 -0
- package/dist/runtime/components/MediaGrid.vue +49 -0
- package/dist/runtime/components/MediaGrid.vue.d.ts +13 -0
- package/dist/runtime/components/MediaLibrary.d.vue.ts +12 -0
- package/dist/runtime/components/MediaLibrary.vue +151 -0
- package/dist/runtime/components/MediaLibrary.vue.d.ts +12 -0
- package/dist/runtime/components/NotFound.d.vue.ts +6 -0
- package/dist/runtime/components/NotFound.vue +29 -0
- package/dist/runtime/components/NotFound.vue.d.ts +6 -0
- package/dist/runtime/components/NotificationBell.d.vue.ts +3 -0
- package/dist/runtime/components/NotificationBell.vue +53 -0
- package/dist/runtime/components/NotificationBell.vue.d.ts +3 -0
- package/dist/runtime/components/Page.d.vue.ts +28 -0
- package/dist/runtime/components/Page.vue +84 -0
- package/dist/runtime/components/Page.vue.d.ts +28 -0
- package/dist/runtime/components/RelatedCreate.d.vue.ts +16 -0
- package/dist/runtime/components/RelatedCreate.vue +86 -0
- package/dist/runtime/components/RelatedCreate.vue.d.ts +16 -0
- package/dist/runtime/components/RevisionHistory.d.vue.ts +16 -0
- package/dist/runtime/components/RevisionHistory.vue +145 -0
- package/dist/runtime/components/RevisionHistory.vue.d.ts +16 -0
- package/dist/runtime/components/RichTextEditor.d.vue.ts +15 -0
- package/dist/runtime/components/RichTextEditor.vue +190 -0
- package/dist/runtime/components/RichTextEditor.vue.d.ts +15 -0
- package/dist/runtime/components/RobotsSettings.d.vue.ts +3 -0
- package/dist/runtime/components/RobotsSettings.vue +173 -0
- package/dist/runtime/components/RobotsSettings.vue.d.ts +3 -0
- package/dist/runtime/components/RoleEdit.d.vue.ts +6 -0
- package/dist/runtime/components/RoleEdit.vue +234 -0
- package/dist/runtime/components/RoleEdit.vue.d.ts +6 -0
- package/dist/runtime/components/Roles.d.vue.ts +3 -0
- package/dist/runtime/components/Roles.vue +129 -0
- package/dist/runtime/components/Roles.vue.d.ts +3 -0
- package/dist/runtime/components/ScheduleSection.d.vue.ts +12 -0
- package/dist/runtime/components/ScheduleSection.vue +120 -0
- package/dist/runtime/components/ScheduleSection.vue.d.ts +12 -0
- package/dist/runtime/components/SeoPanel.d.vue.ts +7 -0
- package/dist/runtime/components/SeoPanel.vue +81 -0
- package/dist/runtime/components/SeoPanel.vue.d.ts +7 -0
- package/dist/runtime/components/Setup.d.vue.ts +3 -0
- package/dist/runtime/components/Setup.vue +79 -0
- package/dist/runtime/components/Setup.vue.d.ts +3 -0
- package/dist/runtime/components/SharedBlockUsage.d.vue.ts +7 -0
- package/dist/runtime/components/SharedBlockUsage.vue +91 -0
- package/dist/runtime/components/SharedBlockUsage.vue.d.ts +7 -0
- package/dist/runtime/components/Shell.d.vue.ts +15 -0
- package/dist/runtime/components/Shell.vue +281 -0
- package/dist/runtime/components/Shell.vue.d.ts +15 -0
- package/dist/runtime/components/SignIn.d.vue.ts +3 -0
- package/dist/runtime/components/SignIn.vue +106 -0
- package/dist/runtime/components/SignIn.vue.d.ts +3 -0
- package/dist/runtime/components/Toaster.d.vue.ts +3 -0
- package/dist/runtime/components/Toaster.vue +24 -0
- package/dist/runtime/components/Toaster.vue.d.ts +3 -0
- package/dist/runtime/components/Users.d.vue.ts +3 -0
- package/dist/runtime/components/Users.vue +226 -0
- package/dist/runtime/components/Users.vue.d.ts +3 -0
- package/dist/runtime/composables/debounced.d.ts +3 -0
- package/dist/runtime/composables/debounced.js +11 -0
- package/dist/runtime/composables/useAtelierAdmin.d.ts +17 -0
- package/dist/runtime/composables/useAtelierAdmin.js +53 -0
- package/dist/runtime/composables/useAtelierAdminPortal.d.ts +3 -0
- package/dist/runtime/composables/useAtelierAdminPortal.js +5 -0
- package/dist/runtime/composables/useAtelierAdminSchema.d.ts +182 -0
- package/dist/runtime/composables/useAtelierAdminSchema.js +26 -0
- package/dist/runtime/composables/useAtelierCollection.d.ts +49 -0
- package/dist/runtime/composables/useAtelierCollection.js +77 -0
- package/dist/runtime/composables/useAtelierComments.d.ts +50 -0
- package/dist/runtime/composables/useAtelierComments.js +46 -0
- package/dist/runtime/composables/useAtelierDashboard.d.ts +42 -0
- package/dist/runtime/composables/useAtelierDashboard.js +16 -0
- package/dist/runtime/composables/useAtelierEntryForm.d.ts +77 -0
- package/dist/runtime/composables/useAtelierEntryForm.js +184 -0
- package/dist/runtime/composables/useAtelierGlobalSearch.d.ts +12 -0
- package/dist/runtime/composables/useAtelierGlobalSearch.js +17 -0
- package/dist/runtime/composables/useAtelierMediaLibrary.d.ts +75 -0
- package/dist/runtime/composables/useAtelierMediaLibrary.js +85 -0
- package/dist/runtime/composables/useAtelierNavigation.d.ts +20 -0
- package/dist/runtime/composables/useAtelierNavigation.js +37 -0
- package/dist/runtime/composables/useAtelierNotifications.d.ts +21 -0
- package/dist/runtime/composables/useAtelierNotifications.js +34 -0
- package/dist/runtime/composables/useAtelierPermissions.d.ts +11 -0
- package/dist/runtime/composables/useAtelierPermissions.js +15 -0
- package/dist/runtime/composables/useAtelierPresence.d.ts +32 -0
- package/dist/runtime/composables/useAtelierPresence.js +95 -0
- package/dist/runtime/composables/useAtelierRealtime.d.ts +10 -0
- package/dist/runtime/composables/useAtelierRealtime.js +74 -0
- package/dist/runtime/composables/useAtelierRoles.d.ts +13 -0
- package/dist/runtime/composables/useAtelierRoles.js +15 -0
- package/dist/runtime/composables/useAtelierSeo.d.ts +34 -0
- package/dist/runtime/composables/useAtelierSeo.js +57 -0
- package/dist/runtime/composables/useAtelierSession.d.ts +35 -0
- package/dist/runtime/composables/useAtelierSession.js +36 -0
- package/dist/runtime/composables/useAtelierSetting.d.ts +11 -0
- package/dist/runtime/composables/useAtelierSetting.js +16 -0
- package/dist/runtime/composables/useAtelierUsers.d.ts +18 -0
- package/dist/runtime/composables/useAtelierUsers.js +16 -0
- package/dist/runtime/crystal-neuo/VERSION +3 -0
- package/dist/runtime/crystal-neuo/components/Alert.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Alert.vue +25 -0
- package/dist/runtime/crystal-neuo/components/Alert.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Avatar.d.vue.ts +15 -0
- package/dist/runtime/crystal-neuo/components/Avatar.vue +25 -0
- package/dist/runtime/crystal-neuo/components/Avatar.vue.d.ts +15 -0
- package/dist/runtime/crystal-neuo/components/Badge.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Badge.vue +17 -0
- package/dist/runtime/crystal-neuo/components/Badge.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Breadcrumb.d.vue.ts +16 -0
- package/dist/runtime/crystal-neuo/components/Breadcrumb.vue +26 -0
- package/dist/runtime/crystal-neuo/components/Breadcrumb.vue.d.ts +16 -0
- package/dist/runtime/crystal-neuo/components/Button.d.vue.ts +35 -0
- package/dist/runtime/crystal-neuo/components/Button.vue +31 -0
- package/dist/runtime/crystal-neuo/components/Button.vue.d.ts +35 -0
- package/dist/runtime/crystal-neuo/components/Card.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Card.vue +17 -0
- package/dist/runtime/crystal-neuo/components/Card.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Checkbox.d.vue.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Checkbox.vue +45 -0
- package/dist/runtime/crystal-neuo/components/Checkbox.vue.d.ts +23 -0
- package/dist/runtime/crystal-neuo/components/DatePicker.d.vue.ts +24 -0
- package/dist/runtime/crystal-neuo/components/DatePicker.vue +43 -0
- package/dist/runtime/crystal-neuo/components/DatePicker.vue.d.ts +24 -0
- package/dist/runtime/crystal-neuo/components/Dialog.d.vue.ts +41 -0
- package/dist/runtime/crystal-neuo/components/Dialog.vue +63 -0
- package/dist/runtime/crystal-neuo/components/Dialog.vue.d.ts +41 -0
- package/dist/runtime/crystal-neuo/components/Drawer.d.vue.ts +34 -0
- package/dist/runtime/crystal-neuo/components/Drawer.vue +45 -0
- package/dist/runtime/crystal-neuo/components/Drawer.vue.d.ts +34 -0
- package/dist/runtime/crystal-neuo/components/FileUpload.d.vue.ts +32 -0
- package/dist/runtime/crystal-neuo/components/FileUpload.vue +94 -0
- package/dist/runtime/crystal-neuo/components/FileUpload.vue.d.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Input.d.vue.ts +26 -0
- package/dist/runtime/crystal-neuo/components/Input.vue +48 -0
- package/dist/runtime/crystal-neuo/components/Input.vue.d.ts +26 -0
- package/dist/runtime/crystal-neuo/components/List.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/List.vue +19 -0
- package/dist/runtime/crystal-neuo/components/List.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/ListItem.d.vue.ts +20 -0
- package/dist/runtime/crystal-neuo/components/ListItem.vue +13 -0
- package/dist/runtime/crystal-neuo/components/ListItem.vue.d.ts +20 -0
- package/dist/runtime/crystal-neuo/components/Menu.d.vue.ts +26 -0
- package/dist/runtime/crystal-neuo/components/Menu.vue +120 -0
- package/dist/runtime/crystal-neuo/components/Menu.vue.d.ts +26 -0
- package/dist/runtime/crystal-neuo/components/Modal.d.vue.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Modal.vue +37 -0
- package/dist/runtime/crystal-neuo/components/Modal.vue.d.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Nav.d.vue.ts +24 -0
- package/dist/runtime/crystal-neuo/components/Nav.vue +15 -0
- package/dist/runtime/crystal-neuo/components/Nav.vue.d.ts +24 -0
- package/dist/runtime/crystal-neuo/components/NavLink.d.vue.ts +22 -0
- package/dist/runtime/crystal-neuo/components/NavLink.vue +23 -0
- package/dist/runtime/crystal-neuo/components/NavLink.vue.d.ts +22 -0
- package/dist/runtime/crystal-neuo/components/Pagination.d.vue.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Pagination.vue +58 -0
- package/dist/runtime/crystal-neuo/components/Pagination.vue.d.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Progress.d.vue.ts +18 -0
- package/dist/runtime/crystal-neuo/components/Progress.vue +35 -0
- package/dist/runtime/crystal-neuo/components/Progress.vue.d.ts +18 -0
- package/dist/runtime/crystal-neuo/components/Radio.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Radio.vue +40 -0
- package/dist/runtime/crystal-neuo/components/Radio.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/SegmentedControl.d.vue.ts +31 -0
- package/dist/runtime/crystal-neuo/components/SegmentedControl.vue +39 -0
- package/dist/runtime/crystal-neuo/components/SegmentedControl.vue.d.ts +31 -0
- package/dist/runtime/crystal-neuo/components/Select.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Select.vue +48 -0
- package/dist/runtime/crystal-neuo/components/Select.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Sheet.d.vue.ts +29 -0
- package/dist/runtime/crystal-neuo/components/Sheet.vue +37 -0
- package/dist/runtime/crystal-neuo/components/Sheet.vue.d.ts +29 -0
- package/dist/runtime/crystal-neuo/components/Skeleton.d.vue.ts +13 -0
- package/dist/runtime/crystal-neuo/components/Skeleton.vue +17 -0
- package/dist/runtime/crystal-neuo/components/Skeleton.vue.d.ts +13 -0
- package/dist/runtime/crystal-neuo/components/Slider.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Slider.vue +41 -0
- package/dist/runtime/crystal-neuo/components/Slider.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/TabBar.d.vue.ts +28 -0
- package/dist/runtime/crystal-neuo/components/TabBar.vue +29 -0
- package/dist/runtime/crystal-neuo/components/TabBar.vue.d.ts +28 -0
- package/dist/runtime/crystal-neuo/components/Table.d.vue.ts +31 -0
- package/dist/runtime/crystal-neuo/components/Table.vue +36 -0
- package/dist/runtime/crystal-neuo/components/Table.vue.d.ts +31 -0
- package/dist/runtime/crystal-neuo/components/Tabs.d.vue.ts +40 -0
- package/dist/runtime/crystal-neuo/components/Tabs.vue +79 -0
- package/dist/runtime/crystal-neuo/components/Tabs.vue.d.ts +40 -0
- package/dist/runtime/crystal-neuo/components/Textarea.d.vue.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Textarea.vue +48 -0
- package/dist/runtime/crystal-neuo/components/Textarea.vue.d.ts +25 -0
- package/dist/runtime/crystal-neuo/components/Toast.d.vue.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Toast.vue +67 -0
- package/dist/runtime/crystal-neuo/components/Toast.vue.d.ts +32 -0
- package/dist/runtime/crystal-neuo/components/Toggle.d.vue.ts +21 -0
- package/dist/runtime/crystal-neuo/components/Toggle.vue +43 -0
- package/dist/runtime/crystal-neuo/components/Toggle.vue.d.ts +21 -0
- package/dist/runtime/crystal-neuo/components/Tooltip.d.vue.ts +23 -0
- package/dist/runtime/crystal-neuo/components/Tooltip.vue +38 -0
- package/dist/runtime/crystal-neuo/components/Tooltip.vue.d.ts +23 -0
- package/dist/runtime/crystal-neuo/components/cn.d.ts +1 -0
- package/dist/runtime/crystal-neuo/components/cn.js +3 -0
- package/dist/runtime/crystal-neuo/components/useControlAttrs.d.ts +15 -0
- package/dist/runtime/crystal-neuo/components/useControlAttrs.js +11 -0
- package/dist/runtime/crystal-neuo/components/useFocusTrap.d.ts +9 -0
- package/dist/runtime/crystal-neuo/components/useFocusTrap.js +55 -0
- package/dist/runtime/crystal-neuo/components/useModalDialog.d.ts +11 -0
- package/dist/runtime/crystal-neuo/components/useModalDialog.js +42 -0
- package/dist/runtime/crystal-neuo/contract/alert.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/alert.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/avatar.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/avatar.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/badge.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/badge.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/breadcrumb.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/breadcrumb.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/button.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/button.contract.js +22 -0
- package/dist/runtime/crystal-neuo/contract/card.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/card.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/checkbox.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/checkbox.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/date-picker.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/date-picker.contract.js +22 -0
- package/dist/runtime/crystal-neuo/contract/dialog.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/dialog.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/drawer.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/drawer.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/file-upload.contract.d.ts +17 -0
- package/dist/runtime/crystal-neuo/contract/file-upload.contract.js +36 -0
- package/dist/runtime/crystal-neuo/contract/index.d.ts +67 -0
- package/dist/runtime/crystal-neuo/contract/index.js +96 -0
- package/dist/runtime/crystal-neuo/contract/input.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/input.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/list.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/list.contract.js +21 -0
- package/dist/runtime/crystal-neuo/contract/menu.contract.d.ts +21 -0
- package/dist/runtime/crystal-neuo/contract/menu.contract.js +51 -0
- package/dist/runtime/crystal-neuo/contract/modal.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/modal.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/nav.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/nav.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/pagination.contract.d.ts +11 -0
- package/dist/runtime/crystal-neuo/contract/pagination.contract.js +32 -0
- package/dist/runtime/crystal-neuo/contract/progress.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/progress.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/radio.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/radio.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/segmented-control.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/segmented-control.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/select.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/select.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/sheet.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/sheet.contract.js +23 -0
- package/dist/runtime/crystal-neuo/contract/skeleton.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/skeleton.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/slider.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/slider.contract.js +24 -0
- package/dist/runtime/crystal-neuo/contract/tab-bar.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/tab-bar.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/table.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/table.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/tabs.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/tabs.contract.js +26 -0
- package/dist/runtime/crystal-neuo/contract/textarea.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/textarea.contract.js +19 -0
- package/dist/runtime/crystal-neuo/contract/toast.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/toast.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/toggle.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/toggle.contract.js +22 -0
- package/dist/runtime/crystal-neuo/contract/tooltip.contract.d.ts +3 -0
- package/dist/runtime/crystal-neuo/contract/tooltip.contract.js +18 -0
- package/dist/runtime/crystal-neuo/contract/types.d.ts +76 -0
- package/dist/runtime/crystal-neuo/contract/types.js +12 -0
- package/dist/runtime/crystal-neuo/css/crystal-neuo.css +1 -0
- package/dist/runtime/crystal-neuo/runtime/axes.d.ts +16 -0
- package/dist/runtime/crystal-neuo/runtime/axes.js +9 -0
- package/dist/runtime/crystal-neuo/runtime/index.d.ts +62 -0
- package/dist/runtime/crystal-neuo/runtime/index.js +115 -0
- package/dist/runtime/crystal-neuo/runtime/platform.d.ts +11 -0
- package/dist/runtime/crystal-neuo/runtime/platform.js +18 -0
- package/dist/runtime/crystal-neuo/runtime/refraction.d.ts +42 -0
- package/dist/runtime/crystal-neuo/runtime/refraction.js +183 -0
- package/dist/runtime/css/shell.css +1 -0
- package/dist/runtime/i18n/en.d.ts +2 -0
- package/dist/runtime/i18n/en.js +543 -0
- package/dist/runtime/i18n/index.d.ts +15 -0
- package/dist/runtime/i18n/index.js +52 -0
- package/dist/runtime/overrides.d.ts +5 -0
- package/dist/runtime/overrides.js +6 -0
- package/dist/runtime/pages/AdminPage.d.vue.ts +3 -0
- package/dist/runtime/pages/AdminPage.vue +49 -0
- package/dist/runtime/pages/AdminPage.vue.d.ts +3 -0
- package/dist/runtime/passkeys-off.d.ts +1 -0
- package/dist/runtime/passkeys-off.js +3 -0
- package/dist/runtime/passkeys.d.ts +1 -0
- package/dist/runtime/passkeys.js +6 -0
- package/dist/runtime/toast.d.ts +15 -0
- package/dist/runtime/toast.js +19 -0
- package/dist/runtime/types.d.ts +133 -0
- package/dist/runtime/types.js +0 -0
- package/dist/types.d.mts +3 -0
- package/package.json +59 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
root: HTMLElement;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onBeforeUnmount, onMounted } from "vue";
|
|
3
|
+
import { useAppearance } from "../appearance";
|
|
4
|
+
import CnButton from "../crystal-neuo/components/Button.vue";
|
|
5
|
+
import CnModal from "../crystal-neuo/components/Modal.vue";
|
|
6
|
+
import CnSelect from "../crystal-neuo/components/Select.vue";
|
|
7
|
+
import CnSegmentedControl from "../crystal-neuo/components/SegmentedControl.vue";
|
|
8
|
+
import CnToggle from "../crystal-neuo/components/Toggle.vue";
|
|
9
|
+
import { useAdminI18n } from "../i18n";
|
|
10
|
+
const { t, language, languages, setLanguage } = useAdminI18n();
|
|
11
|
+
const languageChoice = computed({ get: () => language.value, set: (code) => void setLanguage(code) });
|
|
12
|
+
const languageOptions = computed(() => languages.value.map((l) => ({ value: l.code, label: l.name })));
|
|
13
|
+
const { appearance, set, reset, matchDevice, isGlass, modalOpen } = useAppearance();
|
|
14
|
+
const materials = computed(() => [
|
|
15
|
+
{ value: "refraction", label: t("material.refraction"), note: t("material.refractionNote") },
|
|
16
|
+
{ value: "tactile", label: t("material.tactile"), note: t("material.tactileNote") },
|
|
17
|
+
{ value: "signal", label: t("material.signal"), note: t("material.signalNote") },
|
|
18
|
+
{ value: "folio", label: t("material.folio"), note: t("material.folioNote") },
|
|
19
|
+
{ value: "bloom", label: t("material.bloom"), note: t("material.bloomNote") },
|
|
20
|
+
{ value: "hybrid", label: t("material.hybrid"), note: t("material.hybridNote") }
|
|
21
|
+
]);
|
|
22
|
+
const themes = computed(() => [
|
|
23
|
+
{ value: "system", label: t("theme.system") },
|
|
24
|
+
{ value: "light", label: t("theme.light") },
|
|
25
|
+
{ value: "dark", label: t("theme.dark") },
|
|
26
|
+
{ value: "high-contrast", label: t("theme.high-contrast") }
|
|
27
|
+
]);
|
|
28
|
+
const densities = computed(() => [
|
|
29
|
+
{ value: "compact", label: t("density.compact") },
|
|
30
|
+
{ value: "comfortable", label: t("density.comfortable") },
|
|
31
|
+
{ value: "spacious", label: t("density.spacious") }
|
|
32
|
+
]);
|
|
33
|
+
const platforms = computed(() => [
|
|
34
|
+
{ value: "web", label: "Web" },
|
|
35
|
+
{ value: "ios", label: "iOS" },
|
|
36
|
+
{ value: "android", label: "Android" },
|
|
37
|
+
{ value: "windows", label: "Windows" },
|
|
38
|
+
{ value: "macos", label: "macOS" }
|
|
39
|
+
]);
|
|
40
|
+
const navModes = computed(() => [
|
|
41
|
+
{ value: "sidebar", label: t("nav.sidebar") },
|
|
42
|
+
{ value: "top", label: t("nav.top") }
|
|
43
|
+
]);
|
|
44
|
+
const sidebarStyles = computed(() => [
|
|
45
|
+
{ value: "floating", label: t("sidebar.floating") },
|
|
46
|
+
{ value: "rail", label: t("sidebar.rail") },
|
|
47
|
+
{ value: "expanded", label: t("sidebar.expanded") }
|
|
48
|
+
].map((o) => ({ ...o, disabled: appearance.value.nav === "top" })));
|
|
49
|
+
const widths = computed(() => [
|
|
50
|
+
{ value: "contained", label: t("width.contained") },
|
|
51
|
+
{ value: "full", label: t("width.full") }
|
|
52
|
+
]);
|
|
53
|
+
function field(key) {
|
|
54
|
+
return computed({
|
|
55
|
+
get: () => appearance.value[key],
|
|
56
|
+
set: (v) => set({ [key]: v })
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const material = field("material");
|
|
60
|
+
const theme = field("theme");
|
|
61
|
+
const density = field("density");
|
|
62
|
+
const platform = field("platform");
|
|
63
|
+
const frost = field("frost");
|
|
64
|
+
const rim = field("rim");
|
|
65
|
+
const reduceTransparency = field("reduceTransparency");
|
|
66
|
+
const nav = field("nav");
|
|
67
|
+
const sidebar = field("sidebar");
|
|
68
|
+
const width = field("width");
|
|
69
|
+
function onKey(e) {
|
|
70
|
+
if (e.altKey && e.shiftKey && (e.code === "KeyA" || e.key.toLowerCase() === "a")) {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
modalOpen.value = !modalOpen.value;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
onMounted(() => window.addEventListener("keydown", onKey, { capture: true }));
|
|
76
|
+
onBeforeUnmount(() => window.removeEventListener("keydown", onKey, { capture: true }));
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<template>
|
|
80
|
+
<CnModal
|
|
81
|
+
v-model:open="modalOpen"
|
|
82
|
+
:title="t('common.appearance')"
|
|
83
|
+
size="lg"
|
|
84
|
+
class="app-appearance"
|
|
85
|
+
>
|
|
86
|
+
<div class="app-appearance__body">
|
|
87
|
+
<CnSelect
|
|
88
|
+
v-if="languageOptions.length > 1"
|
|
89
|
+
v-model="languageChoice"
|
|
90
|
+
:label="t('appearance.language')"
|
|
91
|
+
:options="languageOptions"
|
|
92
|
+
/>
|
|
93
|
+
<fieldset class="app-appearance__group">
|
|
94
|
+
<legend class="cn-label">
|
|
95
|
+
{{ t("appearance.material") }}
|
|
96
|
+
</legend>
|
|
97
|
+
<div class="app-swatches">
|
|
98
|
+
<label
|
|
99
|
+
v-for="m in materials"
|
|
100
|
+
:key="m.value"
|
|
101
|
+
class="app-swatch"
|
|
102
|
+
:data-material="m.value"
|
|
103
|
+
>
|
|
104
|
+
<input
|
|
105
|
+
v-model="material"
|
|
106
|
+
type="radio"
|
|
107
|
+
name="appearance-material"
|
|
108
|
+
:value="m.value"
|
|
109
|
+
>
|
|
110
|
+
<span class="app-swatch__face">
|
|
111
|
+
<span
|
|
112
|
+
class="app-swatch__chips"
|
|
113
|
+
aria-hidden="true"
|
|
114
|
+
><span /><span /><span /></span>
|
|
115
|
+
{{ m.label }}
|
|
116
|
+
<small>{{ m.note }}</small>
|
|
117
|
+
</span>
|
|
118
|
+
</label>
|
|
119
|
+
</div>
|
|
120
|
+
</fieldset>
|
|
121
|
+
|
|
122
|
+
<div class="app-appearance__field">
|
|
123
|
+
<span
|
|
124
|
+
class="cn-label"
|
|
125
|
+
aria-hidden="true"
|
|
126
|
+
>{{ t("appearance.theme") }}</span>
|
|
127
|
+
<CnSegmentedControl
|
|
128
|
+
v-model="theme"
|
|
129
|
+
:label="t('appearance.theme')"
|
|
130
|
+
:options="themes"
|
|
131
|
+
size="sm"
|
|
132
|
+
variant="block"
|
|
133
|
+
class="app-appearance__seg"
|
|
134
|
+
/>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="app-appearance__field">
|
|
137
|
+
<span
|
|
138
|
+
class="cn-label"
|
|
139
|
+
aria-hidden="true"
|
|
140
|
+
>{{ t("appearance.density") }}</span>
|
|
141
|
+
<CnSegmentedControl
|
|
142
|
+
v-model="density"
|
|
143
|
+
:label="t('appearance.density')"
|
|
144
|
+
:options="densities"
|
|
145
|
+
size="sm"
|
|
146
|
+
variant="block"
|
|
147
|
+
class="app-appearance__seg"
|
|
148
|
+
/>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="app-appearance__group">
|
|
151
|
+
<div class="app-appearance__field">
|
|
152
|
+
<span
|
|
153
|
+
class="cn-label"
|
|
154
|
+
aria-hidden="true"
|
|
155
|
+
>{{ t("appearance.platform") }}</span>
|
|
156
|
+
<CnSegmentedControl
|
|
157
|
+
v-model="platform"
|
|
158
|
+
:label="t('appearance.platform')"
|
|
159
|
+
:options="platforms"
|
|
160
|
+
size="sm"
|
|
161
|
+
variant="block"
|
|
162
|
+
class="app-appearance__seg"
|
|
163
|
+
/>
|
|
164
|
+
</div>
|
|
165
|
+
<div>
|
|
166
|
+
<CnButton
|
|
167
|
+
variant="ghost"
|
|
168
|
+
size="sm"
|
|
169
|
+
@click="matchDevice"
|
|
170
|
+
>
|
|
171
|
+
{{ t("appearance.matchDevice") }}
|
|
172
|
+
</CnButton>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
<fieldset class="app-appearance__group">
|
|
177
|
+
<legend class="cn-label">
|
|
178
|
+
{{ t("appearance.glass") }}
|
|
179
|
+
</legend>
|
|
180
|
+
<p
|
|
181
|
+
v-if="!isGlass"
|
|
182
|
+
class="app-appearance__note"
|
|
183
|
+
>
|
|
184
|
+
{{ t("appearance.noGlass") }}
|
|
185
|
+
</p>
|
|
186
|
+
<CnToggle
|
|
187
|
+
v-model:checked="frost"
|
|
188
|
+
:label="t('appearance.frost')"
|
|
189
|
+
size="sm"
|
|
190
|
+
/>
|
|
191
|
+
<CnToggle
|
|
192
|
+
v-model:checked="rim"
|
|
193
|
+
:label="t('appearance.rim')"
|
|
194
|
+
size="sm"
|
|
195
|
+
/>
|
|
196
|
+
<CnToggle
|
|
197
|
+
v-model:checked="reduceTransparency"
|
|
198
|
+
:label="t('appearance.reduceTransparency')"
|
|
199
|
+
size="sm"
|
|
200
|
+
/>
|
|
201
|
+
</fieldset>
|
|
202
|
+
|
|
203
|
+
<fieldset class="app-appearance__group">
|
|
204
|
+
<legend class="cn-label">
|
|
205
|
+
{{ t("appearance.layout") }}
|
|
206
|
+
</legend>
|
|
207
|
+
<div class="app-appearance__field">
|
|
208
|
+
<span
|
|
209
|
+
class="cn-label"
|
|
210
|
+
aria-hidden="true"
|
|
211
|
+
>{{ t("appearance.navigation") }}</span>
|
|
212
|
+
<CnSegmentedControl
|
|
213
|
+
v-model="nav"
|
|
214
|
+
:label="t('appearance.navigation')"
|
|
215
|
+
:options="navModes"
|
|
216
|
+
size="sm"
|
|
217
|
+
variant="block"
|
|
218
|
+
class="app-appearance__seg"
|
|
219
|
+
/>
|
|
220
|
+
</div>
|
|
221
|
+
<div class="app-appearance__field">
|
|
222
|
+
<span
|
|
223
|
+
class="cn-label"
|
|
224
|
+
aria-hidden="true"
|
|
225
|
+
>{{ t("appearance.sidebar") }}</span>
|
|
226
|
+
<CnSegmentedControl
|
|
227
|
+
v-model="sidebar"
|
|
228
|
+
:label="t('appearance.sidebar')"
|
|
229
|
+
:options="sidebarStyles"
|
|
230
|
+
size="sm"
|
|
231
|
+
variant="block"
|
|
232
|
+
class="app-appearance__seg"
|
|
233
|
+
/>
|
|
234
|
+
</div>
|
|
235
|
+
<div class="app-appearance__field">
|
|
236
|
+
<span
|
|
237
|
+
class="cn-label"
|
|
238
|
+
aria-hidden="true"
|
|
239
|
+
>{{ t("appearance.width") }}</span>
|
|
240
|
+
<CnSegmentedControl
|
|
241
|
+
v-model="width"
|
|
242
|
+
:label="t('appearance.width')"
|
|
243
|
+
:options="widths"
|
|
244
|
+
size="sm"
|
|
245
|
+
variant="block"
|
|
246
|
+
class="app-appearance__seg"
|
|
247
|
+
/>
|
|
248
|
+
</div>
|
|
249
|
+
<p class="app-appearance__note">
|
|
250
|
+
{{ t("appearance.smallScreens") }}
|
|
251
|
+
</p>
|
|
252
|
+
</fieldset>
|
|
253
|
+
</div>
|
|
254
|
+
|
|
255
|
+
<div class="cn-modal__actions">
|
|
256
|
+
<CnButton
|
|
257
|
+
variant="ghost"
|
|
258
|
+
@click="reset()"
|
|
259
|
+
>
|
|
260
|
+
{{ t("appearance.reset") }}
|
|
261
|
+
</CnButton>
|
|
262
|
+
<CnButton @click="modalOpen = false">
|
|
263
|
+
{{ t("common.done") }}
|
|
264
|
+
</CnButton>
|
|
265
|
+
</div>
|
|
266
|
+
</CnModal>
|
|
267
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
default?: (props: {}) => any;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useAppearance } from "../appearance";
|
|
3
|
+
import { useOverrides } from "../overrides";
|
|
4
|
+
import Brand from "./Brand.vue";
|
|
5
|
+
import Icon from "./Icon";
|
|
6
|
+
import { useAdminI18n } from "../i18n";
|
|
7
|
+
const { t } = useAdminI18n();
|
|
8
|
+
const { openModal } = useAppearance();
|
|
9
|
+
const brand = useOverrides()("Brand", Brand);
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div class="app-auth">
|
|
14
|
+
<aside
|
|
15
|
+
class="app-auth__brand"
|
|
16
|
+
:aria-label="t('auth.about')"
|
|
17
|
+
>
|
|
18
|
+
<div class="app-auth__brand-top">
|
|
19
|
+
<component :is="brand" />
|
|
20
|
+
<button
|
|
21
|
+
type="button"
|
|
22
|
+
class="app-icon-button"
|
|
23
|
+
:aria-label="t('common.appearance')"
|
|
24
|
+
aria-haspopup="dialog"
|
|
25
|
+
@click="openModal"
|
|
26
|
+
>
|
|
27
|
+
<Icon name="palette" />
|
|
28
|
+
</button>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="app-auth__pitch">
|
|
31
|
+
<p class="app-auth__headline">
|
|
32
|
+
{{ t("auth.pitch") }}
|
|
33
|
+
</p>
|
|
34
|
+
<ul class="app-auth__points">
|
|
35
|
+
<li><Icon name="check" />{{ t("auth.point1") }}</li>
|
|
36
|
+
<li><Icon name="check" />{{ t("auth.point2") }}</li>
|
|
37
|
+
<li><Icon name="check" />{{ t("auth.point3") }}</li>
|
|
38
|
+
</ul>
|
|
39
|
+
</div>
|
|
40
|
+
<div
|
|
41
|
+
class="app-auth__shapes"
|
|
42
|
+
aria-hidden="true"
|
|
43
|
+
>
|
|
44
|
+
<span /><span /><span />
|
|
45
|
+
</div>
|
|
46
|
+
</aside>
|
|
47
|
+
<main
|
|
48
|
+
class="app-auth__main"
|
|
49
|
+
tabindex="-1"
|
|
50
|
+
>
|
|
51
|
+
<div class="app-auth__card cn-glass">
|
|
52
|
+
<slot />
|
|
53
|
+
</div>
|
|
54
|
+
</main>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const __VLS_template: () => {
|
|
2
|
+
__VLS_Slots: {
|
|
3
|
+
default?: (props: {}) => any;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AreaRules } from '#atelier/shared/blocks';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
form: any;
|
|
4
|
+
/** The list's path in the entry: `content`, or a block's area, `content.0.props.items`. */
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
rules: AreaRules;
|
|
8
|
+
root: Record<string, unknown>;
|
|
9
|
+
error?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, defineAsyncComponent, reactive, ref } from "vue";
|
|
3
|
+
import { newBlock, SHARED_BLOCK } from "#atelier/shared/blocks";
|
|
4
|
+
import { placeable } from "#atelier/shared/fields";
|
|
5
|
+
import { useAtelierAdminSchema } from "../composables/useAtelierAdminSchema";
|
|
6
|
+
import { humanize } from "../composables/useAtelierNavigation";
|
|
7
|
+
import CnButton from "../crystal-neuo/components/Button.vue";
|
|
8
|
+
import CnSelect from "../crystal-neuo/components/Select.vue";
|
|
9
|
+
import { useAdminI18n } from "../i18n";
|
|
10
|
+
import Icon from "./Icon";
|
|
11
|
+
defineOptions({ name: "AtelierAdminBlocksField" });
|
|
12
|
+
const FieldInput = defineAsyncComponent(() => import("./FieldInput.vue"));
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
form: { type: null, required: true },
|
|
15
|
+
name: { type: String, required: true },
|
|
16
|
+
label: { type: String, required: true },
|
|
17
|
+
rules: { type: Object, required: true },
|
|
18
|
+
root: { type: Object, required: true },
|
|
19
|
+
error: { type: String, required: false },
|
|
20
|
+
readOnly: { type: Boolean, required: false }
|
|
21
|
+
});
|
|
22
|
+
const { t } = useAdminI18n();
|
|
23
|
+
const { schema } = useAtelierAdminSchema();
|
|
24
|
+
const registry = computed(() => schema.value?.blocks ?? {});
|
|
25
|
+
const labelOf = (block) => block.type === SHARED_BLOCK ? t("field.sharedBlock") : registry.value[block.type]?.label ?? humanize(block.type);
|
|
26
|
+
function preview(block) {
|
|
27
|
+
const text = Object.values(block.props ?? {}).find((v) => typeof v === "string" && v.trim());
|
|
28
|
+
return text && text.length > 80 ? `${text.slice(0, 80)}\u2026` : text ?? "";
|
|
29
|
+
}
|
|
30
|
+
const fieldsOf = (block) => Object.entries({ ...registry.value[block.type]?.fields, ...registry.value[block.type]?.options });
|
|
31
|
+
const areasOf = (block) => Object.entries(registry.value[block.type]?.areas ?? {});
|
|
32
|
+
const choices = computed(() => Object.values(registry.value).filter((s) => placeable(s.name, s, props.rules)).map((s) => ({ value: s.name, label: s.label ?? humanize(s.name) })));
|
|
33
|
+
const adding = ref("");
|
|
34
|
+
const open = reactive(/* @__PURE__ */ new Set());
|
|
35
|
+
function toggle(id, event) {
|
|
36
|
+
if (event.target.open)
|
|
37
|
+
open.add(id);
|
|
38
|
+
else
|
|
39
|
+
open.delete(id);
|
|
40
|
+
}
|
|
41
|
+
function add(list) {
|
|
42
|
+
const block = newBlock(adding.value, registry.value);
|
|
43
|
+
list.pushValue(block);
|
|
44
|
+
open.add(block.id);
|
|
45
|
+
adding.value = "";
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<template>
|
|
50
|
+
<form.Field
|
|
51
|
+
:name="name"
|
|
52
|
+
mode="array"
|
|
53
|
+
>
|
|
54
|
+
<template #default="{ field: list }">
|
|
55
|
+
<fieldset
|
|
56
|
+
class="app-fieldset app-blocks"
|
|
57
|
+
data-blocks-field
|
|
58
|
+
>
|
|
59
|
+
<legend class="cn-label">
|
|
60
|
+
{{ label }}
|
|
61
|
+
</legend>
|
|
62
|
+
<p
|
|
63
|
+
v-if="!(list.state.value ?? []).length"
|
|
64
|
+
class="app-muted"
|
|
65
|
+
>
|
|
66
|
+
{{ t("field.noBlocks") }}
|
|
67
|
+
</p>
|
|
68
|
+
<details
|
|
69
|
+
v-for="(block, i) in list.state.value ?? []"
|
|
70
|
+
:key="`${block.id}:${i}`"
|
|
71
|
+
class="app-block"
|
|
72
|
+
:open="open.has(block.id)"
|
|
73
|
+
@toggle="toggle(block.id, $event)"
|
|
74
|
+
>
|
|
75
|
+
<summary class="app-block__head">
|
|
76
|
+
<span class="app-block__label">{{ labelOf(block) }}</span>
|
|
77
|
+
<span class="app-muted app-block__preview">{{ preview(block) }}</span>
|
|
78
|
+
</summary>
|
|
79
|
+
<div class="app-repeater__item">
|
|
80
|
+
<p
|
|
81
|
+
v-if="block.type === SHARED_BLOCK"
|
|
82
|
+
class="app-muted"
|
|
83
|
+
>
|
|
84
|
+
{{ t("field.sharedBlockHint") }}
|
|
85
|
+
</p>
|
|
86
|
+
<template v-else>
|
|
87
|
+
<FieldInput
|
|
88
|
+
v-for="[key, field] in fieldsOf(block)"
|
|
89
|
+
:key="key"
|
|
90
|
+
:form="form"
|
|
91
|
+
:name="`${name}.${i}.props.${key}`"
|
|
92
|
+
:field="field"
|
|
93
|
+
:root="root"
|
|
94
|
+
:sibling="block.props ?? {}"
|
|
95
|
+
:read-only="readOnly"
|
|
96
|
+
/>
|
|
97
|
+
<AtelierAdminBlocksField
|
|
98
|
+
v-for="[area, areaRules] in areasOf(block)"
|
|
99
|
+
:key="area"
|
|
100
|
+
:form="form"
|
|
101
|
+
:name="`${name}.${i}.props.${area}`"
|
|
102
|
+
:label="areaRules.label ?? humanize(area)"
|
|
103
|
+
:rules="areaRules"
|
|
104
|
+
:root="root"
|
|
105
|
+
:read-only="readOnly"
|
|
106
|
+
/>
|
|
107
|
+
</template>
|
|
108
|
+
<div
|
|
109
|
+
v-if="!readOnly"
|
|
110
|
+
class="app-row"
|
|
111
|
+
>
|
|
112
|
+
<CnButton
|
|
113
|
+
variant="ghost"
|
|
114
|
+
size="sm"
|
|
115
|
+
:disabled="i === 0"
|
|
116
|
+
@click="list.moveValue(i, i - 1)"
|
|
117
|
+
>
|
|
118
|
+
{{ t("editor.moveUp") }}
|
|
119
|
+
</CnButton>
|
|
120
|
+
<CnButton
|
|
121
|
+
variant="ghost"
|
|
122
|
+
size="sm"
|
|
123
|
+
:disabled="i === (list.state.value ?? []).length - 1"
|
|
124
|
+
@click="list.moveValue(i, i + 1)"
|
|
125
|
+
>
|
|
126
|
+
{{ t("editor.moveDown") }}
|
|
127
|
+
</CnButton>
|
|
128
|
+
<CnButton
|
|
129
|
+
variant="ghost"
|
|
130
|
+
size="sm"
|
|
131
|
+
@click="list.removeValue(i)"
|
|
132
|
+
>
|
|
133
|
+
<Icon name="trash-2" />
|
|
134
|
+
{{ t("field.remove") }}
|
|
135
|
+
</CnButton>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</details>
|
|
139
|
+
<div
|
|
140
|
+
v-if="!readOnly && choices.length && (rules.max === void 0 || (list.state.value ?? []).length < rules.max)"
|
|
141
|
+
class="app-row app-blocks__add"
|
|
142
|
+
>
|
|
143
|
+
<CnSelect
|
|
144
|
+
v-model="adding"
|
|
145
|
+
:label="t('editor.add')"
|
|
146
|
+
:options="[{ value: '', label: '\u2014' }, ...choices]"
|
|
147
|
+
size="sm"
|
|
148
|
+
/>
|
|
149
|
+
<CnButton
|
|
150
|
+
variant="secondary"
|
|
151
|
+
size="sm"
|
|
152
|
+
:disabled="!adding"
|
|
153
|
+
@click="add(list)"
|
|
154
|
+
>
|
|
155
|
+
<Icon name="plus" />
|
|
156
|
+
{{ t("field.add") }}
|
|
157
|
+
</CnButton>
|
|
158
|
+
</div>
|
|
159
|
+
<span
|
|
160
|
+
v-if="error"
|
|
161
|
+
class="cn-field__message"
|
|
162
|
+
role="alert"
|
|
163
|
+
>{{ error }}</span>
|
|
164
|
+
</fieldset>
|
|
165
|
+
</template>
|
|
166
|
+
</form.Field>
|
|
167
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AreaRules } from '#atelier/shared/blocks';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
form: any;
|
|
4
|
+
/** The list's path in the entry: `content`, or a block's area, `content.0.props.items`. */
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
rules: AreaRules;
|
|
8
|
+
root: Record<string, unknown>;
|
|
9
|
+
error?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
compact?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useBranding } from "../branding";
|
|
3
|
+
defineProps({
|
|
4
|
+
compact: { type: Boolean, required: false }
|
|
5
|
+
});
|
|
6
|
+
const branding = useBranding();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<span class="app-brand">
|
|
11
|
+
<img
|
|
12
|
+
v-if="branding.logo"
|
|
13
|
+
:src="branding.logo"
|
|
14
|
+
:alt="branding.name"
|
|
15
|
+
class="app-brand__logo"
|
|
16
|
+
>
|
|
17
|
+
<span
|
|
18
|
+
v-else-if="!compact"
|
|
19
|
+
class="app-brand__name"
|
|
20
|
+
>{{ branding.name }}</span>
|
|
21
|
+
</span>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
compact?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|