@phtngyn/cms 0.2.0-beta.7 → 0.3.0
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 +18 -10
- package/README.md +59 -401
- package/drizzle/20261003215543_initial/migration.sql +251 -0
- package/drizzle/20261003215543_initial/snapshot.json +1941 -0
- package/package.json +75 -71
- package/src/Authoring.d.ts +41 -49
- package/src/Authoring.js +1 -1
- package/src/Blocks-BrxSemnd.js +40 -0
- package/src/Client.d.ts +8186 -0
- package/src/Client.js +41 -0
- package/src/Collections.d.ts +142 -0
- package/src/Collections.js +142 -0
- package/src/Config-CMiwciub.js +130 -0
- package/src/Config.d.ts +172 -0
- package/src/Config.js +2 -0
- package/src/Configuration-Dk2k3OIc.js +73 -0
- package/src/DataTransfer-BmECvPHB.js +488 -0
- package/src/Database-DSsNCGft.d.ts +3 -0
- package/src/Delivery.d.ts +28 -0
- package/src/Delivery.js +7 -0
- package/src/Document-CKXMSEf1.js +293 -0
- package/src/Document-TgwYKJZM.d.ts +220 -0
- package/src/DocumentRenderer-Wz2xaNyf.js +394 -0
- package/src/EditorSchema-wrDv-id6.js +296 -0
- package/src/Fields-BegSgYhj.d.ts +166 -0
- package/src/Fields-ioGaMEh9.js +130 -0
- package/src/Forms-BuKAXQxr.d.ts +203 -0
- package/src/Forms.d.ts +48 -11
- package/src/Forms.js +342 -7
- package/src/I18n-Ckf9h0rC.js +154 -0
- package/src/I18n.d.ts +45 -2
- package/src/I18n.js +2 -1
- package/src/Image-CJWPLnhP.js +110 -0
- package/src/Links-CJYyy7rC.js +28 -0
- package/src/Links-Dx1yOni8.d.ts +28 -0
- package/src/Locales-Ch7a5xuA.js +67 -0
- package/src/Locales-jwbmJaOp.d.ts +43 -0
- package/src/Locales.d.ts +3 -0
- package/src/Locales.js +3 -0
- package/src/Media-BQ0uL4w7.d.ts +15 -0
- package/src/Media-DSyvd14o.js +87 -0
- package/src/Module.d.ts +2 -10
- package/src/Module.js +1039 -162
- package/src/Operations.d.ts +57 -0
- package/src/Operations.js +263 -0
- package/src/People-DvNZauWw.js +69 -0
- package/src/PreviewFocus-C_EelZO5.js +104 -0
- package/src/Query-C0kGJF5_.d.ts +261 -0
- package/src/RevisionPreview-IVwbJ9Wy.js +133 -0
- package/src/Routes-BaZvm2LE.js +126 -0
- package/src/Routes-DM1rRp3r.d.ts +15 -0
- package/src/S3MediaObjects-y-WacEi9.js +193 -0
- package/src/Seo-BcpqxoAs.d.ts +57 -0
- package/src/Seo-CjNUtUkj.js +254 -0
- package/src/StudioApi-CXLwwocX.js +833 -0
- package/src/StudioErrors-T5zLGQ1M.js +117 -0
- package/src/StudioErrors-kq-E44lQ.d.ts +104 -0
- package/src/StudioServer.d.ts +20 -0
- package/src/StudioServer.js +34 -0
- package/src/answers-DcTg0Xv2.js +41 -0
- package/src/cli.js +681 -187
- package/src/contracts-rprW3ZOB.js +130 -0
- package/src/forms-3xuf0Ym7.d.ts +206 -0
- package/src/localeConfiguration-BPbkLi7-.js +32 -0
- package/src/localeContext-DhF3SPvM.js +59 -0
- package/src/locales-6OD4XGIZ.js +12 -0
- package/src/nuxtDelivery-BYX_Cddb.js +466 -0
- package/src/plugin-DTYuDaQu.js +7171 -0
- package/src/previewContext-dt3ZUh-w.js +4 -0
- package/src/previewRegions-CXjk5cbP.js +145 -0
- package/src/previewSource-fb-q3ESM.js +144 -0
- package/src/rendering-D9LVeEKX.js +47 -0
- package/src/rolldown-runtime-8H4AJuhK.js +14 -0
- package/src/runtime/CmsImage.js +38 -0
- package/src/runtime/DocumentPage.vue +10 -0
- package/src/runtime/DocumentPageContent.js +48 -0
- package/src/runtime/DocumentRenderer.d.ts +129 -0
- package/src/runtime/DocumentRenderer.js +2 -0
- package/src/runtime/api.js +48 -6
- package/src/runtime/delivery/useCmsDocument.js +2 -0
- package/src/runtime/delivery/useCmsDocumentQuery.js +2 -0
- package/src/runtime/delivery/useCmsDocumentSeo.js +2 -114
- package/src/runtime/delivery/useCmsLocale.js +10 -0
- package/src/runtime/plugin.js +2 -40
- package/src/runtime/preview.css +85 -0
- package/src/runtime/preview.js +277 -0
- package/src/runtime/previewSource.js +82 -0
- package/src/runtime/revisionPrivacy.js +13 -0
- package/src/runtime/studio.js +10 -0
- package/src/runtime/studioIcons.js +36 -0
- package/src/validation-3pggwcnm.js +396 -0
- package/src/validation-DpUwPC8Y.js +224 -0
- package/studio/THIRD-PARTY-LICENSES.md +2406 -0
- package/studio/chunks/AccountPage-DL3DitDM.js +288 -0
- package/studio/chunks/AccountPage-DL3DitDM.js.br +0 -0
- package/studio/chunks/AccountPage-DL3DitDM.js.gz +0 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js +584 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js.br +0 -0
- package/studio/chunks/ActivityPage-CLqVUqTh.js.gz +0 -0
- package/studio/chunks/Alert-D0D24z_a.js +335 -0
- package/studio/chunks/Alert-D0D24z_a.js.br +0 -0
- package/studio/chunks/Alert-D0D24z_a.js.gz +0 -0
- package/studio/chunks/Badge-BBFs88TI.js +346 -0
- package/studio/chunks/Badge-BBFs88TI.js.br +0 -0
- package/studio/chunks/Badge-BBFs88TI.js.gz +0 -0
- package/studio/chunks/Button-BT3ztSPx.js +14319 -0
- package/studio/chunks/Button-BT3ztSPx.js.br +0 -0
- package/studio/chunks/Button-BT3ztSPx.js.gz +0 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js +246 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js.br +0 -0
- package/studio/chunks/Collapsible-CKnEYIlp.js.gz +0 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js +1745 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js.br +0 -0
- package/studio/chunks/ContentInventory-D7nsFA6U.js.gz +0 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js +18 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js.br +0 -0
- package/studio/chunks/ContentPage-DCxt6BeD.js.gz +0 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js +2413 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js.br +0 -0
- package/studio/chunks/DashboardSearch-DjyMjJwF.js.gz +0 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js +26063 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.br +0 -0
- package/studio/chunks/DocumentLocaleMenu-0EkkOr6_.js.gz +0 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js +4400 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js.br +0 -0
- package/studio/chunks/DropdownMenu-CA9fB0uZ.js.gz +0 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js +7799 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js.br +0 -0
- package/studio/chunks/EditorPage-D_PAYEE4.js.gz +0 -0
- package/studio/chunks/FormField-CgM6l2Yn.js +198 -0
- package/studio/chunks/FormField-CgM6l2Yn.js.br +0 -0
- package/studio/chunks/FormField-CgM6l2Yn.js.gz +0 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js +552 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js.br +0 -0
- package/studio/chunks/HelpPage-C-vrFcT_.js.gz +0 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js +271 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js.br +0 -0
- package/studio/chunks/Kbd-Ot7TIhVZ.js.gz +0 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js +101 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.br +0 -0
- package/studio/chunks/MediaFolderDialog-DYu-eu-q.js.gz +0 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js +923 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js.br +0 -0
- package/studio/chunks/MediaPage-D-jaWtdl.js.gz +0 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js +837 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js.br +0 -0
- package/studio/chunks/MediaPicker-BZs2wUFz.js.gz +0 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js +1173 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.br +0 -0
- package/studio/chunks/MediaUploadPanel-C7Kyg6aR.js.gz +0 -0
- package/studio/chunks/Modal-D6hSvxHd.js +265 -0
- package/studio/chunks/Modal-D6hSvxHd.js.br +0 -0
- package/studio/chunks/Modal-D6hSvxHd.js.gz +0 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js +277 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.br +0 -0
- package/studio/chunks/NewDocumentDialog-C8B6_r3J.js.gz +0 -0
- package/studio/chunks/Pagination-D9BSo5H2.js +573 -0
- package/studio/chunks/Pagination-D9BSo5H2.js.br +0 -0
- package/studio/chunks/Pagination-D9BSo5H2.js.gz +0 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js +783 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js.br +0 -0
- package/studio/chunks/PeoplePage-CWIXitBD.js.gz +0 -0
- package/studio/chunks/Popover-B63bkTMS.js +128 -0
- package/studio/chunks/Popover-B63bkTMS.js.br +0 -0
- package/studio/chunks/Popover-B63bkTMS.js.gz +0 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js +255 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.br +0 -0
- package/studio/chunks/PublicationActionDialog-Cm_P0C3I.js.gz +0 -0
- package/studio/chunks/Routes-DLYHmulE.js +102 -0
- package/studio/chunks/Routes-DLYHmulE.js.br +0 -0
- package/studio/chunks/Routes-DLYHmulE.js.gz +0 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js +95 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js.br +0 -0
- package/studio/chunks/RovingFocusItem-QZNg-wWF.js.gz +0 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js +332 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js.br +0 -0
- package/studio/chunks/ScheduledPage-C0hqrkr5.js.gz +0 -0
- package/studio/chunks/Search-BEgCe9Aj.js +14646 -0
- package/studio/chunks/Search-BEgCe9Aj.js.br +0 -0
- package/studio/chunks/Search-BEgCe9Aj.js.gz +0 -0
- package/studio/chunks/Select-B50WZMW-.js +2145 -0
- package/studio/chunks/Select-B50WZMW-.js.br +0 -0
- package/studio/chunks/Select-B50WZMW-.js.gz +0 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js +2109 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js.br +0 -0
- package/studio/chunks/SelectMenu-DSweWGMz.js.gz +0 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js +846 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js.br +0 -0
- package/studio/chunks/SeoPage-CNNxGe4h.js.gz +0 -0
- package/studio/chunks/Skeleton-COz8dcrw.js +39 -0
- package/studio/chunks/Skeleton-COz8dcrw.js.br +2 -0
- package/studio/chunks/Skeleton-COz8dcrw.js.gz +0 -0
- package/studio/chunks/Slideover-QMMHAAys.js +289 -0
- package/studio/chunks/Slideover-QMMHAAys.js.br +0 -0
- package/studio/chunks/Slideover-QMMHAAys.js.gz +0 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js +80 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js.br +0 -0
- package/studio/chunks/StudioPage-ngEIDr5d.js.gz +0 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js +2524 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.br +0 -0
- package/studio/chunks/StudioPageToolbar-BwHnqyr6.js.gz +0 -0
- package/studio/chunks/Switch-qKl1aDn7.js +484 -0
- package/studio/chunks/Switch-qKl1aDn7.js.br +0 -0
- package/studio/chunks/Switch-qKl1aDn7.js.gz +0 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js +29 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js.br +0 -0
- package/studio/chunks/ToolPage-DxoVAJVk.js.gz +0 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js +693 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js.br +0 -0
- package/studio/chunks/Tooltip-Bu15m_DB.js.gz +0 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js +12 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js.br +0 -0
- package/studio/chunks/TrashPage-lhqLLdoG.js.gz +0 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js +2349 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js.br +0 -0
- package/studio/chunks/VersionsPage-Cqy6UAp9.js.gz +0 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js +113 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.br +0 -0
- package/studio/chunks/VisuallyHiddenInput-Cu8hQLRf.js.gz +0 -0
- package/studio/chunks/arrays-CUJkmV4I.js +10 -0
- package/studio/chunks/arrays-CUJkmV4I.js.br +0 -0
- package/studio/chunks/arrays-CUJkmV4I.js.gz +0 -0
- package/studio/chunks/base-DkTekJe8.js +213 -0
- package/studio/chunks/base-DkTekJe8.js.br +0 -0
- package/studio/chunks/base-DkTekJe8.js.gz +0 -0
- package/studio/chunks/content-DUGl3N4d.js +6012 -0
- package/studio/chunks/content-DUGl3N4d.js.br +0 -0
- package/studio/chunks/content-DUGl3N4d.js.gz +0 -0
- package/studio/chunks/destinations-DPIQVQa6.js +227 -0
- package/studio/chunks/destinations-DPIQVQa6.js.br +0 -0
- package/studio/chunks/destinations-DPIQVQa6.js.gz +0 -0
- package/studio/chunks/en-073cjKW4.js +152 -0
- package/studio/chunks/en-073cjKW4.js.br +0 -0
- package/studio/chunks/en-073cjKW4.js.gz +0 -0
- package/studio/chunks/en-Bn8mxPuf.js +134 -0
- package/studio/chunks/en-Bn8mxPuf.js.br +0 -0
- package/studio/chunks/en-Bn8mxPuf.js.gz +0 -0
- package/studio/chunks/en-C9OiaUDZ.js +251 -0
- package/studio/chunks/en-C9OiaUDZ.js.br +0 -0
- package/studio/chunks/en-C9OiaUDZ.js.gz +0 -0
- package/studio/chunks/en-CHAR6jzx.js +147 -0
- package/studio/chunks/en-CHAR6jzx.js.br +0 -0
- package/studio/chunks/en-CHAR6jzx.js.gz +0 -0
- package/studio/chunks/en-Cq4N1vEF.js +93 -0
- package/studio/chunks/en-Cq4N1vEF.js.br +2 -0
- package/studio/chunks/en-Cq4N1vEF.js.gz +0 -0
- package/studio/chunks/en-D2hRqlse.js +140 -0
- package/studio/chunks/en-D2hRqlse.js.br +0 -0
- package/studio/chunks/en-D2hRqlse.js.gz +0 -0
- package/studio/chunks/en-DiUC3-j6.js +144 -0
- package/studio/chunks/en-DiUC3-j6.js.br +0 -0
- package/studio/chunks/en-DiUC3-j6.js.gz +0 -0
- package/studio/chunks/english-Cs_Adu-u.js +8 -0
- package/studio/chunks/english-Cs_Adu-u.js.br +0 -0
- package/studio/chunks/english-Cs_Adu-u.js.gz +0 -0
- package/studio/chunks/esm-D6DqSiL1.js +752 -0
- package/studio/chunks/esm-D6DqSiL1.js.br +0 -0
- package/studio/chunks/esm-D6DqSiL1.js.gz +0 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js +23 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js.br +0 -0
- package/studio/chunks/externalRequest-CTzr2nDq.js.gz +0 -0
- package/studio/chunks/iconify-DR9ryCPv.js +1007 -0
- package/studio/chunks/iconify-DR9ryCPv.js.br +0 -0
- package/studio/chunks/iconify-DR9ryCPv.js.gz +0 -0
- package/studio/chunks/icons-D2MsAaXq.js +183 -0
- package/studio/chunks/icons-D2MsAaXq.js.br +0 -0
- package/studio/chunks/icons-D2MsAaXq.js.gz +0 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js +26 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js.br +0 -0
- package/studio/chunks/leaveGuards-D22fTGgr.js.gz +0 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js +238 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js.br +0 -0
- package/studio/chunks/lucideIcons-EyqyPBsX.js.gz +0 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js +17 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js.br +0 -0
- package/studio/chunks/mediaRoute--8cY8rUe.js.gz +0 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js +77 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js.br +0 -0
- package/studio/chunks/newDocumentPlanning-C26DHpvh.js.gz +0 -0
- package/studio/chunks/notifications-OKOLc40v.js +110 -0
- package/studio/chunks/notifications-OKOLc40v.js.br +0 -0
- package/studio/chunks/notifications-OKOLc40v.js.gz +0 -0
- package/studio/chunks/operations-CjNHyrEX.js +57 -0
- package/studio/chunks/operations-CjNHyrEX.js.br +0 -0
- package/studio/chunks/operations-CjNHyrEX.js.gz +0 -0
- package/studio/chunks/overlay-DnqFLZTc.js +1733 -0
- package/studio/chunks/overlay-DnqFLZTc.js.br +0 -0
- package/studio/chunks/overlay-DnqFLZTc.js.gz +0 -0
- package/studio/chunks/presentation-DF83w0hE.js +57 -0
- package/studio/chunks/presentation-DF83w0hE.js.br +0 -0
- package/studio/chunks/presentation-DF83w0hE.js.gz +0 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js +4557 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.br +0 -0
- package/studio/chunks/runtime-core.esm-bundler-DKFA9Rep.js.gz +0 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js +76 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js.br +0 -0
- package/studio/chunks/searchPresentation-DFwxQkt3.js.gz +0 -0
- package/studio/chunks/status-DQv6ihkU.js +38 -0
- package/studio/chunks/status-DQv6ihkU.js.br +0 -0
- package/studio/chunks/status-DQv6ihkU.js.gz +0 -0
- package/studio/chunks/studioContext-I8HozGU1.js +4953 -0
- package/studio/chunks/studioContext-I8HozGU1.js.br +0 -0
- package/studio/chunks/studioContext-I8HozGU1.js.gz +0 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js +73 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js.br +0 -0
- package/studio/chunks/studioQueries-BR-9NT5F.js.gz +0 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js +1095 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js.br +0 -0
- package/studio/chunks/studioSearch-ByaL-QpM.js.gz +0 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js +62 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.br +0 -0
- package/studio/chunks/useAcknowledgedDraft-0_c9sWI6.js.gz +0 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js +189 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.br +0 -0
- package/studio/chunks/useApi-CUWMwLLw-B3Q3g2nf.js.gz +0 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js +16 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js.br +3 -0
- package/studio/chunks/useDocumentMessage-BAWvc38w.js.gz +0 -0
- package/studio/chunks/useFilter-DzyiTR7f.js +87 -0
- package/studio/chunks/useFilter-DzyiTR7f.js.br +0 -0
- package/studio/chunks/useFilter-DzyiTR7f.js.gz +0 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js +8 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js.br +0 -0
- package/studio/chunks/useFormControl-CL7sSCUo.js.gz +0 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js +154 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js.br +0 -0
- package/studio/chunks/useGraceArea-Chcy25IQ.js.gz +0 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js +44 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.br +8 -0
- package/studio/chunks/useLeaveConfirmation-_iCSnKEp.js.gz +0 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js +35 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js.br +0 -0
- package/studio/chunks/useLinkCopy-CMjQteCy.js.gz +0 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js +16 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js.br +0 -0
- package/studio/chunks/usePointerMotion-DwRcwBNQ.js.gz +0 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js +298 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js.br +0 -0
- package/studio/chunks/useStudioNavigation-CLwtSYpb.js.gz +0 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js +79 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js.br +0 -0
- package/studio/chunks/useStudioPages-DR9qmYLg.js.gz +0 -0
- package/studio/chunks/utils-mdScC0v0.js +59 -0
- package/studio/chunks/utils-mdScC0v0.js.br +0 -0
- package/studio/chunks/utils-mdScC0v0.js.gz +0 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js +781 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js.br +0 -0
- package/studio/chunks/virtualizer-D1S0bZ4t.js.gz +0 -0
- package/studio/help/64f767fe29c2-save-and-publish.svg +7 -0
- package/studio/host.css +1 -1
- package/studio/host.css.br +0 -0
- package/studio/host.css.gz +0 -0
- package/studio/host.js +8757 -39178
- package/studio/host.js.br +0 -0
- package/studio/host.js.gz +0 -0
- package/CHANGELOG.md +0 -13
- package/bin/cms.mjs +0 -2
- package/src/ApplicationTypes.d.ts +0 -84
- package/src/ApplicationTypes.js +0 -1
- package/src/Configuration-Da5B2PVH.js +0 -1191
- package/src/Configuration-Da5B2PVH.js.map +0 -1
- package/src/Configuration.d.ts +0 -82
- package/src/Configuration.js +0 -8
- package/src/Configuration.js.map +0 -1
- package/src/Content.d.ts +0 -68
- package/src/Content.js +0 -373
- package/src/Content.js.map +0 -1
- package/src/ContentTransfer-BxwswWn3.js +0 -86
- package/src/ContentTransfer-BxwswWn3.js.map +0 -1
- package/src/ContentTransfer-Z9FHyLez.d.ts +0 -72
- package/src/DocumentEngine-hh_IGPXO.js +0 -978
- package/src/DocumentEngine-hh_IGPXO.js.map +0 -1
- package/src/DocumentModel.d.ts +0 -52
- package/src/DocumentModel.js +0 -66
- package/src/DocumentModel.js.map +0 -1
- package/src/Forms-CX-hwmJF.js +0 -391
- package/src/Forms-CX-hwmJF.js.map +0 -1
- package/src/Forms-CfNPTiCr.js +0 -110
- package/src/Forms-CfNPTiCr.js.map +0 -1
- package/src/Forms-R0HoTR-o.d.ts +0 -92
- package/src/Forms.js.map +0 -1
- package/src/HttpPaths-c9nLZ9H2.js +0 -21
- package/src/HttpPaths-c9nLZ9H2.js.map +0 -1
- package/src/I18n-zbqpWxki.d.ts +0 -29
- package/src/Media-j1bTritO.js +0 -112
- package/src/Media-j1bTritO.js.map +0 -1
- package/src/Module.js.map +0 -1
- package/src/References-CCPDAPve.js +0 -45
- package/src/References-CCPDAPve.js.map +0 -1
- package/src/S3MediaObjects-Dwhl2deX.js +0 -2742
- package/src/S3MediaObjects-Dwhl2deX.js.map +0 -1
- package/src/Seo-402YumpT.d.ts +0 -198
- package/src/cli/content.js +0 -101
- package/src/cli/content.js.map +0 -1
- package/src/cli.js.map +0 -1
- package/src/connection-BP80q4d-.js +0 -92
- package/src/connection-BP80q4d-.js.map +0 -1
- package/src/dev-lifecycle-CjDq63Ft.js +0 -535
- package/src/dev-lifecycle-CjDq63Ft.js.map +0 -1
- package/src/installation-DYNQQBD3.js +0 -9114
- package/src/installation-DYNQQBD3.js.map +0 -1
- package/src/internal/application-types.js +0 -43
- package/src/internal/application-types.js.map +0 -1
- package/src/internal/authoring-catalog.js +0 -158
- package/src/internal/authoring-catalog.js.map +0 -1
- package/src/internal/authoring-compiler.js +0 -146
- package/src/internal/authoring-compiler.js.map +0 -1
- package/src/internal/authoring-metadata.js +0 -191
- package/src/internal/authoring-metadata.js.map +0 -1
- package/src/internal/cms-config.js +0 -45
- package/src/internal/cms-config.js.map +0 -1
- package/src/internal/configuration.js +0 -228
- package/src/internal/configuration.js.map +0 -1
- package/src/internal/dev-lifecycle.js +0 -3
- package/src/internal/diagnostics.js +0 -47
- package/src/internal/diagnostics.js.map +0 -1
- package/src/internal/document-model.js +0 -376
- package/src/internal/document-model.js.map +0 -1
- package/src/internal/field-metadata.js +0 -7
- package/src/internal/field-metadata.js.map +0 -1
- package/src/internal/form-capabilities.js +0 -12
- package/src/internal/form-capabilities.js.map +0 -1
- package/src/internal/i18n.js +0 -73
- package/src/internal/i18n.js.map +0 -1
- package/src/internal/studio-app.js +0 -68
- package/src/internal/studio-app.js.map +0 -1
- package/src/location-CMNGO3lU.js +0 -35
- package/src/location-CMNGO3lU.js.map +0 -1
- package/src/metadata-DN9_K6Yl.js +0 -201
- package/src/metadata-DN9_K6Yl.js.map +0 -1
- package/src/models-5j67LMqW.js +0 -131
- package/src/models-5j67LMqW.js.map +0 -1
- package/src/models-VmGmG19-.js +0 -628
- package/src/models-VmGmG19-.js.map +0 -1
- package/src/runtime/api.js.map +0 -1
- package/src/runtime/blocks.js +0 -30
- package/src/runtime/blocks.js.map +0 -1
- package/src/runtime/collaboration.js +0 -45
- package/src/runtime/collaboration.js.map +0 -1
- package/src/runtime/delivery/DocumentField.js +0 -23
- package/src/runtime/delivery/DocumentField.js.map +0 -1
- package/src/runtime/delivery/DocumentRenderer.js +0 -61
- package/src/runtime/delivery/DocumentRenderer.js.map +0 -1
- package/src/runtime/delivery/DocumentScope.js +0 -41
- package/src/runtime/delivery/DocumentScope.js.map +0 -1
- package/src/runtime/delivery/blocks.js +0 -8
- package/src/runtime/delivery/blocks.js.map +0 -1
- package/src/runtime/delivery/context.js +0 -12
- package/src/runtime/delivery/context.js.map +0 -1
- package/src/runtime/delivery/document-page.js +0 -21
- package/src/runtime/delivery/document-page.js.map +0 -1
- package/src/runtime/delivery/document.js +0 -43
- package/src/runtime/delivery/document.js.map +0 -1
- package/src/runtime/delivery/error.js +0 -11
- package/src/runtime/delivery/error.js.map +0 -1
- package/src/runtime/delivery/plugin.js +0 -99
- package/src/runtime/delivery/plugin.js.map +0 -1
- package/src/runtime/delivery/preview.d.ts +0 -11
- package/src/runtime/delivery/preview.js +0 -6
- package/src/runtime/delivery/preview.js.map +0 -1
- package/src/runtime/delivery/types.d.ts +0 -2
- package/src/runtime/delivery/types.js +0 -1
- package/src/runtime/delivery/useCmsDocumentSeo.d.ts +0 -67
- package/src/runtime/delivery/useCmsDocumentSeo.js.map +0 -1
- package/src/runtime/delivery/useDocument.d.ts +0 -6
- package/src/runtime/delivery/useDocument.js +0 -23
- package/src/runtime/delivery/useDocument.js.map +0 -1
- package/src/runtime/delivery/useDocumentQuery.d.ts +0 -7
- package/src/runtime/delivery/useDocumentQuery.js +0 -29
- package/src/runtime/delivery/useDocumentQuery.js.map +0 -1
- package/src/runtime/forms/document.js +0 -38
- package/src/runtime/forms/document.js.map +0 -1
- package/src/runtime/forms/useCmsForm.js +0 -257
- package/src/runtime/forms/useCmsForm.js.map +0 -1
- package/src/runtime/i18n/translator.js +0 -51
- package/src/runtime/i18n/translator.js.map +0 -1
- package/src/runtime/i18n/useCmsI18n.d.ts +0 -13
- package/src/runtime/i18n/useCmsI18n.js +0 -38
- package/src/runtime/i18n/useCmsI18n.js.map +0 -1
- package/src/runtime/installation.js +0 -3
- package/src/runtime/plugin.js.map +0 -1
- package/src/runtime/preview/CmsStudioPreviewMarker.js +0 -29
- package/src/runtime/preview/CmsStudioPreviewMarker.js.map +0 -1
- package/src/runtime/preview/comark-document.js +0 -37
- package/src/runtime/preview/comark-document.js.map +0 -1
- package/src/runtime/preview/connection.js +0 -3
- package/src/runtime/preview/controller.js +0 -265
- package/src/runtime/preview/controller.js.map +0 -1
- package/src/runtime/preview/crypto.js +0 -16
- package/src/runtime/preview/crypto.js.map +0 -1
- package/src/runtime/preview/overlay.js +0 -122
- package/src/runtime/preview/overlay.js.map +0 -1
- package/src/runtime/preview/plugin.client.js +0 -68
- package/src/runtime/preview/plugin.client.js.map +0 -1
- package/src/runtime/preview/preview.css +0 -91
- package/src/runtime/preview/protocol.d.ts +0 -16
- package/src/runtime/preview/protocol.js +0 -23
- package/src/runtime/preview/protocol.js.map +0 -1
- package/src/runtime/preview/regions.js +0 -142
- package/src/runtime/preview/regions.js.map +0 -1
- package/src/runtime/preview/store.js +0 -4
- package/src/runtime/sitemap-entries.js +0 -17
- package/src/runtime/sitemap-entries.js.map +0 -1
- package/src/runtime/sitemap.js +0 -23
- package/src/runtime/sitemap.js.map +0 -1
- package/src/runtime/studio-app.js +0 -17
- package/src/runtime/studio-app.js.map +0 -1
- package/src/runtime/studio-document.js +0 -46
- package/src/runtime/studio-document.js.map +0 -1
- package/src/runtime/studio-entry.js +0 -19
- package/src/runtime/studio-entry.js.map +0 -1
- package/src/runtime/studio-navigation.js +0 -11
- package/src/runtime/studio-navigation.js.map +0 -1
- package/src/scalars-CA6kyipS.d.ts +0 -7
- package/src/scalars-CVZqT3L0.js +0 -22
- package/src/scalars-CVZqT3L0.js.map +0 -1
- package/src/store-X1e1o_MF.js +0 -209
- package/src/store-X1e1o_MF.js.map +0 -1
- package/src/types-DZ0IV-Ow.d.ts +0 -101
- package/studio/CreateDocumentDialog-BpjBYGfI.js +0 -335
- package/studio/SelectMenu-KiXwx4Y_.js +0 -34032
- package/studio/collaboration-DcK2F6v9.js +0 -4566
- package/studio/editor-P2rB7Csp.js +0 -30128
- package/studio/rolldown-runtime-Dy4uBu1J.js +0 -11
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { $ as e, B as t, Lt as n, S as r, b as i, d as a, h as o, t as s, tt as c, w as l, x as u, y as ee } from "./Button-BT3ztSPx.js";
|
|
2
|
+
import { $t as d, A as f, B as p, Ci as m, E as h, M as g, N as _, Or as v, Pn as y, V as b, aa as x, fa as S, gi as C, gn as w, ir as T, mr as E, o as D, pt as O, ra as k } from "./runtime-core.esm-bundler-DKFA9Rep.js";
|
|
3
|
+
import { D as A, a as j, c as M, i as N, l as P, s as F, t as I, u as L } from "./overlay-DnqFLZTc.js";
|
|
4
|
+
//#region virtual:nuxt-ui-templates/ui/modal.ts
|
|
5
|
+
var R = {
|
|
6
|
+
slots: {
|
|
7
|
+
overlay: "fixed inset-0",
|
|
8
|
+
content: "bg-default divide-y divide-default flex flex-col focus:outline-none",
|
|
9
|
+
header: "flex items-center gap-1.5 p-4 sm:px-6 min-h-(--ui-header-height)",
|
|
10
|
+
wrapper: "",
|
|
11
|
+
body: "flex-1 p-4 sm:p-6",
|
|
12
|
+
footer: "flex items-center gap-1.5 p-4 sm:px-6",
|
|
13
|
+
title: "text-highlighted font-semibold",
|
|
14
|
+
description: "mt-1 text-muted text-sm",
|
|
15
|
+
close: "absolute top-4 end-4"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
transition: { true: {
|
|
19
|
+
overlay: "data-[state=open]:animate-[fade-in_200ms_var(--ease-out)] data-[state=closed]:animate-[fade-out_200ms_var(--ease-out)]",
|
|
20
|
+
content: "data-[state=open]:animate-[scale-in_200ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_200ms_var(--ease-out)]"
|
|
21
|
+
} },
|
|
22
|
+
fullscreen: {
|
|
23
|
+
true: { content: "inset-0" },
|
|
24
|
+
false: { content: "w-[calc(100vw-2rem)] max-w-lg rounded-lg shadow-lg ring ring-default" }
|
|
25
|
+
},
|
|
26
|
+
overlay: { true: { overlay: "bg-elevated/75" } },
|
|
27
|
+
scrollable: {
|
|
28
|
+
true: {
|
|
29
|
+
overlay: "overflow-y-auto",
|
|
30
|
+
content: "relative"
|
|
31
|
+
},
|
|
32
|
+
false: {
|
|
33
|
+
content: "fixed",
|
|
34
|
+
body: "overflow-y-auto"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
compoundVariants: [{
|
|
39
|
+
scrollable: !0,
|
|
40
|
+
fullscreen: !1,
|
|
41
|
+
class: { overlay: "grid place-items-center p-4 sm:py-8" }
|
|
42
|
+
}, {
|
|
43
|
+
scrollable: !1,
|
|
44
|
+
fullscreen: !1,
|
|
45
|
+
class: { content: "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] overflow-hidden" }
|
|
46
|
+
}]
|
|
47
|
+
}, z = {
|
|
48
|
+
__name: "Modal",
|
|
49
|
+
props: {
|
|
50
|
+
title: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: !1
|
|
53
|
+
},
|
|
54
|
+
description: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: !1
|
|
57
|
+
},
|
|
58
|
+
content: {
|
|
59
|
+
type: Object,
|
|
60
|
+
required: !1
|
|
61
|
+
},
|
|
62
|
+
overlay: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
required: !1,
|
|
65
|
+
default: !0
|
|
66
|
+
},
|
|
67
|
+
scrollable: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
required: !1
|
|
70
|
+
},
|
|
71
|
+
transition: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
required: !1,
|
|
74
|
+
default: !0
|
|
75
|
+
},
|
|
76
|
+
fullscreen: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
required: !1
|
|
79
|
+
},
|
|
80
|
+
portal: {
|
|
81
|
+
type: [Boolean, String],
|
|
82
|
+
required: !1,
|
|
83
|
+
skipCheck: !0,
|
|
84
|
+
default: !0
|
|
85
|
+
},
|
|
86
|
+
close: {
|
|
87
|
+
type: [Boolean, Object],
|
|
88
|
+
required: !1,
|
|
89
|
+
default: !0
|
|
90
|
+
},
|
|
91
|
+
closeIcon: {
|
|
92
|
+
type: null,
|
|
93
|
+
required: !1
|
|
94
|
+
},
|
|
95
|
+
dismissible: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
required: !1,
|
|
98
|
+
default: !0
|
|
99
|
+
},
|
|
100
|
+
class: {
|
|
101
|
+
type: null,
|
|
102
|
+
required: !1
|
|
103
|
+
},
|
|
104
|
+
ui: {
|
|
105
|
+
type: Object,
|
|
106
|
+
required: !1
|
|
107
|
+
},
|
|
108
|
+
open: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
required: !1
|
|
111
|
+
},
|
|
112
|
+
defaultOpen: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
required: !1
|
|
115
|
+
},
|
|
116
|
+
modal: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
required: !1,
|
|
119
|
+
default: !0
|
|
120
|
+
},
|
|
121
|
+
unmountOnHide: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
required: !1
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
emits: [
|
|
127
|
+
"leave",
|
|
128
|
+
"after:leave",
|
|
129
|
+
"enter",
|
|
130
|
+
"after:enter",
|
|
131
|
+
"close:prevent",
|
|
132
|
+
"update:open"
|
|
133
|
+
],
|
|
134
|
+
setup(z, { emit: B }) {
|
|
135
|
+
let V = z, H = B, U = E(), W = i("modal", V), { t: G } = t(), K = e(), q = o(n(W, "open", "defaultOpen", "modal", "unmountOnHide"), H), J = N(C(() => W.portal)), Y = C(() => W.content), X = h(() => W.dismissible ? { pointerDownOutside: (e) => I(e, { scrollable: W.scrollable }) } : ["interactOutside", "escapeKeyDown"].reduce((e, t) => (e[t] = (e) => {
|
|
136
|
+
e.preventDefault(), H("close:prevent");
|
|
137
|
+
}, e), {})), [Z, Q] = c(), $ = h(() => ee({
|
|
138
|
+
extend: R,
|
|
139
|
+
...K.ui?.modal || {}
|
|
140
|
+
})({
|
|
141
|
+
transition: W.transition,
|
|
142
|
+
fullscreen: W.fullscreen,
|
|
143
|
+
overlay: W.overlay,
|
|
144
|
+
scrollable: W.scrollable
|
|
145
|
+
}));
|
|
146
|
+
return (e, t) => (w(), f(m(l), x(O(m(q))), {
|
|
147
|
+
default: v(({ open: n, close: i }) => [
|
|
148
|
+
b(m(Z), null, {
|
|
149
|
+
default: v(() => [b(m(L), d({
|
|
150
|
+
"data-slot": "content",
|
|
151
|
+
class: $.value.content({ class: [!U.default && m(W).class, m(W).ui?.content] })
|
|
152
|
+
}, Y.value, {
|
|
153
|
+
onEnter: t[0] ||= (e) => !m(W).scrollable && H("enter"),
|
|
154
|
+
onAfterEnter: t[1] ||= (e) => !m(W).scrollable && H("after:enter"),
|
|
155
|
+
onLeave: t[2] ||= (e) => !m(W).scrollable && H("leave"),
|
|
156
|
+
onAfterLeave: t[3] ||= (e) => !m(W).scrollable && H("after:leave")
|
|
157
|
+
}, T(X.value)), {
|
|
158
|
+
default: v(() => [!m(W).title && !U.title || !m(W).description && !U.description || U.content ? (w(), f(m(j), { key: 0 }, {
|
|
159
|
+
default: v(() => [!m(W).title && !U.title ? (w(), f(m(F), { key: 0 })) : U.content ? (w(), f(m(F), { key: 1 }, {
|
|
160
|
+
default: v(() => [y(e.$slots, "title", {}, () => [p(S(m(W).title), 1)])]),
|
|
161
|
+
_: 3
|
|
162
|
+
})) : g("", !0), !m(W).description && !U.description ? (w(), f(m(P), { key: 2 })) : U.content ? (w(), f(m(P), { key: 3 }, {
|
|
163
|
+
default: v(() => [y(e.$slots, "description", {}, () => [p(S(m(W).description), 1)])]),
|
|
164
|
+
_: 3
|
|
165
|
+
})) : g("", !0)]),
|
|
166
|
+
_: 3
|
|
167
|
+
})) : g("", !0), y(e.$slots, "content", { close: i }, () => [
|
|
168
|
+
U.header || m(W).title || U.title || m(W).description || U.description || m(W).close || U.close ? (w(), _("div", {
|
|
169
|
+
key: 0,
|
|
170
|
+
"data-slot": "header",
|
|
171
|
+
class: k($.value.header({ class: m(W).ui?.header }))
|
|
172
|
+
}, [y(e.$slots, "header", { close: i }, () => [
|
|
173
|
+
m(W).title || U.title || m(W).description || U.description ? (w(), _("div", {
|
|
174
|
+
key: 0,
|
|
175
|
+
"data-slot": "wrapper",
|
|
176
|
+
class: k($.value.wrapper({ class: m(W).ui?.wrapper }))
|
|
177
|
+
}, [m(W).title || U.title ? (w(), f(m(F), {
|
|
178
|
+
key: 0,
|
|
179
|
+
"data-slot": "title",
|
|
180
|
+
class: k($.value.title({ class: m(W).ui?.title }))
|
|
181
|
+
}, {
|
|
182
|
+
default: v(() => [y(e.$slots, "title", {}, () => [p(S(m(W).title), 1)])]),
|
|
183
|
+
_: 3
|
|
184
|
+
}, 8, ["class"])) : g("", !0), m(W).description || U.description ? (w(), f(m(P), {
|
|
185
|
+
key: 1,
|
|
186
|
+
"data-slot": "description",
|
|
187
|
+
class: k($.value.description({ class: m(W).ui?.description }))
|
|
188
|
+
}, {
|
|
189
|
+
default: v(() => [y(e.$slots, "description", {}, () => [p(S(m(W).description), 1)])]),
|
|
190
|
+
_: 3
|
|
191
|
+
}, 8, ["class"])) : g("", !0)], 2)) : g("", !0),
|
|
192
|
+
y(e.$slots, "actions"),
|
|
193
|
+
m(W).close || U.close ? (w(), f(m(A), {
|
|
194
|
+
key: 1,
|
|
195
|
+
"as-child": ""
|
|
196
|
+
}, {
|
|
197
|
+
default: v(() => [y(e.$slots, "close", { ui: $.value }, () => [m(W).close ? (w(), f(s, d({
|
|
198
|
+
key: 0,
|
|
199
|
+
icon: m(W).closeIcon || m(K).ui.icons.close,
|
|
200
|
+
color: "neutral",
|
|
201
|
+
variant: "ghost",
|
|
202
|
+
"aria-label": m(G)("modal.close")
|
|
203
|
+
}, typeof m(W).close == "object" ? m(W).close : {}, {
|
|
204
|
+
"data-slot": "close",
|
|
205
|
+
class: $.value.close({ class: m(W).ui?.close })
|
|
206
|
+
}), null, 16, [
|
|
207
|
+
"icon",
|
|
208
|
+
"aria-label",
|
|
209
|
+
"class"
|
|
210
|
+
])) : g("", !0)])]),
|
|
211
|
+
_: 2
|
|
212
|
+
}, 1024)) : g("", !0)
|
|
213
|
+
])], 2)) : g("", !0),
|
|
214
|
+
U.body ? (w(), _("div", {
|
|
215
|
+
key: 1,
|
|
216
|
+
"data-slot": "body",
|
|
217
|
+
class: k($.value.body({ class: m(W).ui?.body }))
|
|
218
|
+
}, [y(e.$slots, "body", { close: i })], 2)) : g("", !0),
|
|
219
|
+
U.footer ? (w(), _("div", {
|
|
220
|
+
key: 2,
|
|
221
|
+
"data-slot": "footer",
|
|
222
|
+
class: k($.value.footer({ class: m(W).ui?.footer }))
|
|
223
|
+
}, [y(e.$slots, "footer", { close: i })], 2)) : g("", !0)
|
|
224
|
+
])]),
|
|
225
|
+
_: 2
|
|
226
|
+
}, 1040, ["class"])]),
|
|
227
|
+
_: 2
|
|
228
|
+
}, 1024),
|
|
229
|
+
U.default ? (w(), f(m(u), {
|
|
230
|
+
key: 0,
|
|
231
|
+
"as-child": "",
|
|
232
|
+
class: k(m(W).class)
|
|
233
|
+
}, {
|
|
234
|
+
default: v(() => [y(e.$slots, "default", { open: n })]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, 1032, ["class"])) : g("", !0),
|
|
237
|
+
b(m(r), d(m(J), { "force-mount": m(J).disabled && m(W).unmountOnHide === !1 || void 0 }), {
|
|
238
|
+
default: v(() => [b(m(a), null, {
|
|
239
|
+
default: v(() => [m(W).scrollable ? (w(), f(m(M), {
|
|
240
|
+
key: 0,
|
|
241
|
+
"data-slot": "overlay",
|
|
242
|
+
class: k($.value.overlay({ class: m(W).ui?.overlay })),
|
|
243
|
+
onEnter: t[4] ||= (e) => H("enter"),
|
|
244
|
+
onAfterEnter: t[5] ||= (e) => H("after:enter"),
|
|
245
|
+
onLeave: t[6] ||= (e) => H("leave"),
|
|
246
|
+
onAfterLeave: t[7] ||= (e) => H("after:leave")
|
|
247
|
+
}, {
|
|
248
|
+
default: v(() => [b(m(Q))]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["class"])) : (w(), _(D, { key: 1 }, [m(W).overlay ? (w(), f(m(M), {
|
|
251
|
+
key: 0,
|
|
252
|
+
"data-slot": "overlay",
|
|
253
|
+
class: k($.value.overlay({ class: m(W).ui?.overlay }))
|
|
254
|
+
}, null, 8, ["class"])) : g("", !0), b(m(Q))], 64))]),
|
|
255
|
+
_: 1
|
|
256
|
+
})]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 16, ["force-mount"])
|
|
259
|
+
]),
|
|
260
|
+
_: 3
|
|
261
|
+
}, 16));
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
//#endregion
|
|
265
|
+
export { z as t };
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { m as e, nn as t, t as n } from "./Button-BT3ztSPx.js";
|
|
2
|
+
import { M as ee, st as r, w as i } from "./Search-BEgCe9Aj.js";
|
|
3
|
+
import { d as a, i as o, n as s, r as c } from "./studioContext-I8HozGU1.js";
|
|
4
|
+
import { A as l, Ci as u, Cr as d, E as f, K as p, M as m, N as h, Or as g, V as _, fa as v, gn as y, k as b, ra as x, ui as S } from "./runtime-core.esm-bundler-DKFA9Rep.js";
|
|
5
|
+
import { t as te } from "./Select-B50WZMW-.js";
|
|
6
|
+
import { n as ne } from "./overlay-DnqFLZTc.js";
|
|
7
|
+
import { t as re } from "./Collapsible-CKnEYIlp.js";
|
|
8
|
+
import { t as ie } from "./SelectMenu-DSweWGMz.js";
|
|
9
|
+
import { t as ae } from "./FormField-CgM6l2Yn.js";
|
|
10
|
+
import { n as oe } from "./operations-CjNHyrEX.js";
|
|
11
|
+
import { a as C, i as se, r as w, t as T } from "./newDocumentPlanning-C26DHpvh.js";
|
|
12
|
+
import { t as ce } from "./Alert-D0D24z_a.js";
|
|
13
|
+
import { t as E } from "./Modal-D6hSvxHd.js";
|
|
14
|
+
import { t as le } from "./useDocumentMessage-BAWvc38w.js";
|
|
15
|
+
//#region src/documents/create/NewDocumentDialog.vue?vue&type=script&setup=true&lang.ts
|
|
16
|
+
var ue = ["disabled"], de = { class: "grid gap-4 sm:grid-cols-2" }, fe = {
|
|
17
|
+
key: 3,
|
|
18
|
+
class: "overflow-hidden rounded-lg border border-default"
|
|
19
|
+
}, D = ["disabled"], pe = { class: "min-w-0 flex-1" }, O = ["title"], me = ["title"], he = { class: "shrink-0 text-xs font-medium text-muted group-hover:text-highlighted" }, ge = { class: "grid gap-4 border-t border-default px-3 py-3 sm:grid-cols-2" }, _e = {
|
|
20
|
+
key: 4,
|
|
21
|
+
role: "alert",
|
|
22
|
+
class: "text-xs text-error"
|
|
23
|
+
}, ve = { class: "flex w-full flex-wrap justify-end gap-2" }, k = /* @__PURE__ */ p({
|
|
24
|
+
__name: "NewDocumentDialog",
|
|
25
|
+
props: {
|
|
26
|
+
documents: {},
|
|
27
|
+
initialParent: {},
|
|
28
|
+
initialCollection: {},
|
|
29
|
+
beforeCreate: { type: Function }
|
|
30
|
+
},
|
|
31
|
+
emits: ["close", "created"],
|
|
32
|
+
setup(p, { emit: k }) {
|
|
33
|
+
let { t: A } = r(), j = c(), M = s(), N = a().requests, P = p, F = k, I = S(""), L = f({
|
|
34
|
+
get: () => I.value ? `template:${I.value}` : "blank",
|
|
35
|
+
set: (e) => {
|
|
36
|
+
I.value = e === "blank" ? "" : e.slice(9);
|
|
37
|
+
}
|
|
38
|
+
}), ye = f(() => [{
|
|
39
|
+
label: A("documents.create.blankDocument"),
|
|
40
|
+
value: "blank"
|
|
41
|
+
}, ...(U.value?.collection.templates ?? []).map((e) => ({
|
|
42
|
+
label: e.label,
|
|
43
|
+
value: `template:${e.id}`
|
|
44
|
+
}))]), R = S(""), z = S(""), B = S(!1), V = f(() => T(M.configuration, P.documents, A)), H = S(P.initialParent || P.initialCollection ? `entry:${P.initialParent?.collection ?? P.initialCollection}` : V.value[0]?.key ?? ""), U = f(() => V.value.find((e) => e.key === H.value));
|
|
45
|
+
d(() => U.value?.collection.collection, () => {
|
|
46
|
+
I.value = "";
|
|
47
|
+
});
|
|
48
|
+
let W = S(P.initialParent?.parentDocumentId ? P.initialParent.id : C), G = S(!1), K = S(!1), q = le(), J = q.message, Y = f(() => P.documents.find((e) => e.identity.collection === U.value?.collection.collection && e.placement.kind === "home")), be = f(() => [{
|
|
49
|
+
label: A("documents.create.topLevel"),
|
|
50
|
+
description: A("documents.create.addThisDocumentDirectlyBelowTheHomepage"),
|
|
51
|
+
value: C
|
|
52
|
+
}, ...M.items.filter((e) => e.collection === U.value?.collection.collection && e.parentDocumentId !== null).map((e) => ({
|
|
53
|
+
label: e.title,
|
|
54
|
+
description: e.path,
|
|
55
|
+
value: e.id
|
|
56
|
+
}))]), xe = f(() => V.value.map((e) => ({
|
|
57
|
+
label: e.kind === "home" ? A("documents.create.labelHome", { label: e.collection.label }) : e.label,
|
|
58
|
+
value: e.key
|
|
59
|
+
}))), X = f(() => U.value?.kind === "home" ? A("documents.create.homepage") : W.value === "__top_level__" || W.value === Y.value?.identity.documentId ? A("documents.create.topLevel") : M.items.find((e) => e.id === W.value)?.title ?? A("documents.create.selectedLocation")), Z = f(() => U.value ? w({
|
|
60
|
+
t: A,
|
|
61
|
+
configuration: M.configuration,
|
|
62
|
+
documents: P.documents,
|
|
63
|
+
choice: U.value,
|
|
64
|
+
parentId: W.value,
|
|
65
|
+
slug: z.value
|
|
66
|
+
}) : void 0), Q = f(() => R.value.trim() ? Z.value?.issue ?? "" : ""), $ = f(() => !!R.value.trim() && !!U.value && !!Z.value?.path && !Z.value.issue);
|
|
67
|
+
d(R, (e) => {
|
|
68
|
+
B.value || (z.value = se(e));
|
|
69
|
+
}), d(H, () => W.value = C, { flush: "sync" });
|
|
70
|
+
function Se(e) {
|
|
71
|
+
!e && !K.value && F("close");
|
|
72
|
+
}
|
|
73
|
+
async function Ce() {
|
|
74
|
+
let e = U.value, t = Z.value;
|
|
75
|
+
if ($.value && e && t?.placement && !K.value) {
|
|
76
|
+
K.value = !0, q.clear();
|
|
77
|
+
try {
|
|
78
|
+
await P.beforeCreate();
|
|
79
|
+
let n = i.make({
|
|
80
|
+
format: 1,
|
|
81
|
+
fields: oe(e.collection, R.value.trim()),
|
|
82
|
+
body: ee(),
|
|
83
|
+
settings: { placement: t.placement }
|
|
84
|
+
}), r = await N.documents.create({ payload: {
|
|
85
|
+
collection: e.collection.collection,
|
|
86
|
+
source: n,
|
|
87
|
+
templateId: I.value || void 0
|
|
88
|
+
} });
|
|
89
|
+
F("created", r.identity.documentId);
|
|
90
|
+
} catch (e) {
|
|
91
|
+
q.set(() => o(e, A, A("documents.create.couldNotCreateTheDocument")));
|
|
92
|
+
} finally {
|
|
93
|
+
K.value = !1;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return (ee, r) => {
|
|
98
|
+
let i = ce, a = ne, o = ae, s = te, c = e, d = ie, f = re, p = n, S = E;
|
|
99
|
+
return y(), l(S, {
|
|
100
|
+
open: !0,
|
|
101
|
+
title: u(j).document.new,
|
|
102
|
+
description: u(A)("documents.create.startWithATitleYourDocumentWill"),
|
|
103
|
+
dismissible: !K.value,
|
|
104
|
+
ui: { content: "max-w-lg" },
|
|
105
|
+
"onUpdate:open": Se
|
|
106
|
+
}, {
|
|
107
|
+
body: g(() => [b("form", {
|
|
108
|
+
id: "create-document-form",
|
|
109
|
+
class: "space-y-4",
|
|
110
|
+
onSubmit: t(Ce, ["prevent"])
|
|
111
|
+
}, [
|
|
112
|
+
u(J) ? (y(), l(i, {
|
|
113
|
+
key: 0,
|
|
114
|
+
description: u(J),
|
|
115
|
+
color: "error",
|
|
116
|
+
variant: "subtle",
|
|
117
|
+
role: "alert"
|
|
118
|
+
}, null, 8, ["description"])) : m("", !0),
|
|
119
|
+
V.value.length ? m("", !0) : (y(), l(i, {
|
|
120
|
+
key: 1,
|
|
121
|
+
title: u(A)("documents.create.documentCreationIsNotConfigured"),
|
|
122
|
+
description: u(A)("documents.create.aDeveloperNeedsToConfigureAtLeast"),
|
|
123
|
+
color: "warning",
|
|
124
|
+
variant: "subtle"
|
|
125
|
+
}, null, 8, ["title", "description"])),
|
|
126
|
+
U.value ? (y(), h("fieldset", {
|
|
127
|
+
key: 2,
|
|
128
|
+
disabled: K.value,
|
|
129
|
+
class: "space-y-4"
|
|
130
|
+
}, [_(o, {
|
|
131
|
+
label: u(A)("documents.create.title"),
|
|
132
|
+
required: ""
|
|
133
|
+
}, {
|
|
134
|
+
default: g(() => [_(a, {
|
|
135
|
+
modelValue: R.value,
|
|
136
|
+
"onUpdate:modelValue": r[0] ||= (e) => R.value = e,
|
|
137
|
+
autofocus: "",
|
|
138
|
+
placeholder: u(A)("documents.create.giveYourDocumentATitle"),
|
|
139
|
+
class: "w-full"
|
|
140
|
+
}, null, 8, ["modelValue", "placeholder"])]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["label"]), b("div", de, [V.value.length > 1 ? (y(), l(o, {
|
|
143
|
+
key: 0,
|
|
144
|
+
label: u(A)("documents.create.documentType")
|
|
145
|
+
}, {
|
|
146
|
+
default: g(() => [_(s, {
|
|
147
|
+
modelValue: H.value,
|
|
148
|
+
"onUpdate:modelValue": r[1] ||= (e) => H.value = e,
|
|
149
|
+
items: xe.value,
|
|
150
|
+
"value-key": "value",
|
|
151
|
+
class: "w-full",
|
|
152
|
+
disabled: K.value
|
|
153
|
+
}, null, 8, [
|
|
154
|
+
"modelValue",
|
|
155
|
+
"items",
|
|
156
|
+
"disabled"
|
|
157
|
+
])]),
|
|
158
|
+
_: 1
|
|
159
|
+
}, 8, ["label"])) : m("", !0), (U.value.collection.templates?.length ?? 0) > 0 ? (y(), l(o, {
|
|
160
|
+
key: 1,
|
|
161
|
+
label: u(A)("documents.create.template"),
|
|
162
|
+
class: x(V.value.length > 1 ? "" : "sm:col-span-2")
|
|
163
|
+
}, {
|
|
164
|
+
default: g(() => [_(s, {
|
|
165
|
+
modelValue: L.value,
|
|
166
|
+
"onUpdate:modelValue": r[2] ||= (e) => L.value = e,
|
|
167
|
+
items: ye.value,
|
|
168
|
+
"value-key": "value",
|
|
169
|
+
class: "w-full",
|
|
170
|
+
disabled: K.value
|
|
171
|
+
}, null, 8, [
|
|
172
|
+
"modelValue",
|
|
173
|
+
"items",
|
|
174
|
+
"disabled"
|
|
175
|
+
])]),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["label", "class"])) : m("", !0)])], 8, ue)) : m("", !0),
|
|
178
|
+
U.value ? (y(), h("div", fe, [_(f, {
|
|
179
|
+
open: G.value,
|
|
180
|
+
"onUpdate:open": r[6] ||= (e) => G.value = e
|
|
181
|
+
}, {
|
|
182
|
+
content: g(() => [b("div", ge, [U.value.kind === "entry" && Y.value ? (y(), l(o, {
|
|
183
|
+
key: 0,
|
|
184
|
+
label: u(A)("documents.create.location"),
|
|
185
|
+
class: "sm:col-span-2"
|
|
186
|
+
}, {
|
|
187
|
+
default: g(() => [_(d, {
|
|
188
|
+
modelValue: W.value,
|
|
189
|
+
"onUpdate:modelValue": r[3] ||= (e) => W.value = e,
|
|
190
|
+
disabled: K.value,
|
|
191
|
+
"aria-label": u(A)("documents.create.location"),
|
|
192
|
+
items: be.value,
|
|
193
|
+
"value-key": "value",
|
|
194
|
+
"filter-fields": ["label", "description"],
|
|
195
|
+
"search-input": { placeholder: u(A)("documents.create.searchDocuments") },
|
|
196
|
+
class: "w-full"
|
|
197
|
+
}, null, 8, [
|
|
198
|
+
"modelValue",
|
|
199
|
+
"disabled",
|
|
200
|
+
"aria-label",
|
|
201
|
+
"items",
|
|
202
|
+
"search-input"
|
|
203
|
+
])]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["label"])) : m("", !0), U.value.kind === "entry" ? (y(), l(o, {
|
|
206
|
+
key: 1,
|
|
207
|
+
label: u(A)("documents.create.pageAddress"),
|
|
208
|
+
description: u(A)("documents.create.theFinalPartOfThisPagesWeb"),
|
|
209
|
+
class: "sm:col-span-2",
|
|
210
|
+
required: ""
|
|
211
|
+
}, {
|
|
212
|
+
default: g(() => [_(a, {
|
|
213
|
+
modelValue: z.value,
|
|
214
|
+
"onUpdate:modelValue": [r[4] ||= (e) => z.value = e, r[5] ||= (e) => B.value = !0],
|
|
215
|
+
disabled: K.value,
|
|
216
|
+
placeholder: u(A)("documents.create.aboutUs"),
|
|
217
|
+
class: "w-full"
|
|
218
|
+
}, null, 8, [
|
|
219
|
+
"modelValue",
|
|
220
|
+
"disabled",
|
|
221
|
+
"placeholder"
|
|
222
|
+
])]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["label", "description"])) : m("", !0)])]),
|
|
225
|
+
default: g(() => [b("button", {
|
|
226
|
+
type: "button",
|
|
227
|
+
disabled: K.value,
|
|
228
|
+
class: "group flex w-full min-w-0 items-center gap-3 px-3 py-2.5 text-left transition-[background-color,transform] duration-150 ease-out hover:bg-elevated/50 active:scale-[0.99] motion-reduce:transition-none"
|
|
229
|
+
}, [
|
|
230
|
+
b("span", pe, [b("span", {
|
|
231
|
+
class: "block truncate text-xs text-muted",
|
|
232
|
+
title: u(X)
|
|
233
|
+
}, v(u(X)), 9, O), b("span", {
|
|
234
|
+
class: x(["mt-0.5 block truncate font-mono text-xs", Q.value ? "text-error" : "text-highlighted"]),
|
|
235
|
+
title: Z.value?.path || U.value.urlHint
|
|
236
|
+
}, v(Z.value?.path || U.value.urlHint), 11, me)]),
|
|
237
|
+
b("span", he, v(G.value ? u(A)("documents.create.hideDetails") : u(A)("documents.create.documentDetails")), 1),
|
|
238
|
+
_(c, {
|
|
239
|
+
name: "i-lucide-chevron-down",
|
|
240
|
+
class: x(["size-3.5 shrink-0 text-dimmed transition-transform duration-150 ease-out motion-reduce:transition-none", G.value ? "rotate-180" : ""])
|
|
241
|
+
}, null, 8, ["class"])
|
|
242
|
+
], 8, D)]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["open"])])) : m("", !0),
|
|
245
|
+
Q.value ? (y(), h("p", _e, v(Q.value), 1)) : m("", !0)
|
|
246
|
+
], 32)]),
|
|
247
|
+
footer: g(() => [b("div", ve, [_(p, {
|
|
248
|
+
color: "neutral",
|
|
249
|
+
variant: "outline",
|
|
250
|
+
disabled: K.value,
|
|
251
|
+
label: u(j).actions.cancel,
|
|
252
|
+
class: "transition-transform duration-150 ease-out active:scale-[0.97] motion-reduce:transition-none",
|
|
253
|
+
onClick: r[7] ||= (e) => F("close")
|
|
254
|
+
}, null, 8, ["disabled", "label"]), _(p, {
|
|
255
|
+
type: "submit",
|
|
256
|
+
form: "create-document-form",
|
|
257
|
+
color: "neutral",
|
|
258
|
+
label: u(j).document.create,
|
|
259
|
+
class: "transition-transform duration-150 ease-out active:scale-[0.97] motion-reduce:transition-none",
|
|
260
|
+
loading: K.value,
|
|
261
|
+
disabled: !$.value
|
|
262
|
+
}, null, 8, [
|
|
263
|
+
"label",
|
|
264
|
+
"loading",
|
|
265
|
+
"disabled"
|
|
266
|
+
])])]),
|
|
267
|
+
_: 1
|
|
268
|
+
}, 8, [
|
|
269
|
+
"title",
|
|
270
|
+
"description",
|
|
271
|
+
"dismissible"
|
|
272
|
+
]);
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
//#endregion
|
|
277
|
+
export { k as default };
|
|
Binary file
|
|
Binary file
|