@phtngyn/cms 0.2.0-beta.8 → 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 -404
- 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 +1040 -152
- 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 +8793 -39395
- package/studio/host.js.br +0 -0
- package/studio/host.js.gz +0 -0
- package/CHANGELOG.md +0 -14
- package/bin/cms.mjs +0 -2
- package/src/ApplicationTypes.d.ts +0 -84
- package/src/ApplicationTypes.js +0 -1
- package/src/Configuration-CMweD9bn.js +0 -1191
- package/src/Configuration-CMweD9bn.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-tYtwbBjr.js +0 -978
- package/src/DocumentEngine-tYtwbBjr.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-Be3vshPJ.js +0 -20
- package/src/HttpPaths-Be3vshPJ.js.map +0 -1
- package/src/I18n-wxswIRyY.d.ts +0 -30
- 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-BXfjaZOu.js +0 -2756
- package/src/S3MediaObjects-BXfjaZOu.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-3I_pozUl.js +0 -535
- package/src/dev-lifecycle-3I_pozUl.js.map +0 -1
- package/src/installation-DxqSSVbH.js +0 -9105
- package/src/installation-DxqSSVbH.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 -104
- 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 -58
- 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-C4_JBo1w.js +0 -335
- package/studio/SelectMenu-wXqxymUw.js +0 -34045
- package/studio/collaboration-DcK2F6v9.js +0 -4566
- package/studio/editor-P2rB7Csp.js +0 -30128
- package/studio/rolldown-runtime-Dy4uBu1J.js +0 -11
|
@@ -0,0 +1,2109 @@
|
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Dt as i, E as a, F as o, G as s, H as c, Lt as l, O as u, Ot as d, U as f, V as ee, b as te, c as p, d as m, h as ne, k as h, m as g, nn as _, o as re, p as ie, q as ae, s as oe, t as se, tn as v, tt as y, u as ce, y as le } from "./Button-BT3ztSPx.js";
|
|
2
|
+
import { I as b, J as x, P as S, X as C, Y as ue, q as w } from "./studioContext-I8HozGU1.js";
|
|
3
|
+
import { b as T } from "./useApi-CUWMwLLw-B3Q3g2nf.js";
|
|
4
|
+
import { $r as de, $t as E, A as D, B as O, Ci as k, Cr as A, E as j, K as M, M as N, N as P, Nn as fe, Or as F, Pn as I, Qt as pe, V as L, Yr as me, _i as he, aa as R, en as ge, fa as z, fr as _e, gi as B, gn as V, hr as ve, ii as H, ir as ye, jr as be, k as U, lt as xe, mn as Se, mr as Ce, o as W, pi as we, pt as G, ra as K, un as q, zn as Te } from "./runtime-core.esm-bundler-DKFA9Rep.js";
|
|
5
|
+
import { C as Ee, E as De, M as Oe, N as ke, O as Ae, P as je, R as Me, i as Ne, k as Pe, n as Fe } from "./overlay-DnqFLZTc.js";
|
|
6
|
+
import { s as Ie } from "./utils-mdScC0v0.js";
|
|
7
|
+
import { n as Le, t as Re } from "./useFilter-DzyiTR7f.js";
|
|
8
|
+
import { a as ze, c as Be, d as Ve, i as He, l as Ue, n as We, r as J, s as Ge, t as Ke, u as qe } from "./virtualizer-D1S0bZ4t.js";
|
|
9
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/reka-ui/dist/Combobox/useComboboxContentPositioning.js
|
|
10
|
+
function Y(e) {
|
|
11
|
+
let t = H("inline"), n = H(!1), r = H(), i = j(() => t.value === "popper" && !n.value), a;
|
|
12
|
+
Ve({
|
|
13
|
+
suppressHighlightScroll: i,
|
|
14
|
+
onHighlightScrollRequest(e) {
|
|
15
|
+
a = e;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function o(e, i) {
|
|
19
|
+
(r.value !== e || t.value !== i) && (n.value = !1, a = void 0), r.value = e, t.value = i;
|
|
20
|
+
}
|
|
21
|
+
function s(i) {
|
|
22
|
+
if (r.value !== i || t.value !== "popper" || n.value) return;
|
|
23
|
+
n.value = !0;
|
|
24
|
+
let o = a;
|
|
25
|
+
a = void 0, e.value && o?.();
|
|
26
|
+
}
|
|
27
|
+
function c(e) {
|
|
28
|
+
r.value === e && (r.value = void 0, t.value = "inline", n.value = !1, a = void 0);
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
onContentPositionChange: o,
|
|
32
|
+
onContentPlaced: s,
|
|
33
|
+
onContentUnmount: c
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.6.0-rc.10_typescript-native-bridge@6.0.3-bridge.18.tsgo.7.0.2_/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js
|
|
38
|
+
var [X, Je] = /*#__PURE__*/ o("ComboboxRoot"), Ye = /* @__PURE__ */ M({
|
|
39
|
+
__name: "ComboboxRoot",
|
|
40
|
+
props: {
|
|
41
|
+
open: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
required: !1,
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
defaultOpen: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
required: !1
|
|
49
|
+
},
|
|
50
|
+
resetSearchTermOnBlur: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
required: !1,
|
|
53
|
+
default: !0
|
|
54
|
+
},
|
|
55
|
+
resetSearchTermOnSelect: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: !1,
|
|
58
|
+
default: !0
|
|
59
|
+
},
|
|
60
|
+
openOnFocus: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
required: !1,
|
|
63
|
+
default: !1
|
|
64
|
+
},
|
|
65
|
+
openOnClick: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
required: !1,
|
|
68
|
+
default: !1
|
|
69
|
+
},
|
|
70
|
+
ignoreFilter: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
required: !1
|
|
73
|
+
},
|
|
74
|
+
resetModelValueOnClear: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
required: !1,
|
|
77
|
+
default: !1
|
|
78
|
+
},
|
|
79
|
+
modelValue: {
|
|
80
|
+
type: null,
|
|
81
|
+
required: !1
|
|
82
|
+
},
|
|
83
|
+
defaultValue: {
|
|
84
|
+
type: null,
|
|
85
|
+
required: !1
|
|
86
|
+
},
|
|
87
|
+
multiple: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
required: !1
|
|
90
|
+
},
|
|
91
|
+
dir: {
|
|
92
|
+
type: String,
|
|
93
|
+
required: !1
|
|
94
|
+
},
|
|
95
|
+
disabled: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
required: !1
|
|
98
|
+
},
|
|
99
|
+
highlightOnHover: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
required: !1,
|
|
102
|
+
default: !0
|
|
103
|
+
},
|
|
104
|
+
by: {
|
|
105
|
+
type: [String, Function],
|
|
106
|
+
required: !1
|
|
107
|
+
},
|
|
108
|
+
asChild: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
required: !1
|
|
111
|
+
},
|
|
112
|
+
as: {
|
|
113
|
+
type: null,
|
|
114
|
+
required: !1
|
|
115
|
+
},
|
|
116
|
+
name: {
|
|
117
|
+
type: String,
|
|
118
|
+
required: !1
|
|
119
|
+
},
|
|
120
|
+
required: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
required: !1
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
emits: [
|
|
126
|
+
"update:modelValue",
|
|
127
|
+
"highlight",
|
|
128
|
+
"update:open"
|
|
129
|
+
],
|
|
130
|
+
setup(e, { expose: t, emit: n }) {
|
|
131
|
+
let r = e, a = n, { primitiveElement: o, currentElement: s } = Ae(), { multiple: c, disabled: l, ignoreFilter: u, resetSearchTermOnSelect: f, openOnFocus: ee, openOnClick: te, dir: p, resetModelValueOnClear: m, highlightOnHover: ne } = he(r), h = ke(p), g = i(r, "modelValue", a, {
|
|
132
|
+
defaultValue: r.defaultValue ?? (c.value ? [] : void 0),
|
|
133
|
+
passive: r.modelValue === void 0,
|
|
134
|
+
deep: !0
|
|
135
|
+
}), _ = i(r, "open", a, {
|
|
136
|
+
defaultValue: r.defaultOpen,
|
|
137
|
+
passive: r.open === void 0
|
|
138
|
+
});
|
|
139
|
+
async function re(e) {
|
|
140
|
+
_.value = e, C.value = "", e ? (await ge(), o.value?.highlightSelected(), ae.value = !0, se.value?.focus()) : (ae.value = !1, setTimeout(() => {
|
|
141
|
+
!e && r.resetSearchTermOnBlur && ie.trigger();
|
|
142
|
+
}, 1));
|
|
143
|
+
}
|
|
144
|
+
let ie = d(), ae = H(!1), oe = H(!1), se = H(), v = H(), y = j(() => o.value?.highlightedElement ?? void 0), ce = Y(_), le = H(/* @__PURE__ */ new Map()), b = H(/* @__PURE__ */ new Map()), { contains: S } = Le({ sensitivity: "base" }), C = H(""), ue = j((e) => {
|
|
145
|
+
if (!C.value || r.ignoreFilter || oe.value) return {
|
|
146
|
+
count: le.value.size,
|
|
147
|
+
items: e?.items ?? /* @__PURE__ */ new Map(),
|
|
148
|
+
groups: e?.groups ?? new Set(b.value.keys())
|
|
149
|
+
};
|
|
150
|
+
let t = 0, n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set();
|
|
151
|
+
for (let [e, r] of le.value) {
|
|
152
|
+
let i = S(r, C.value);
|
|
153
|
+
n.set(e, +!!i), i && t++;
|
|
154
|
+
}
|
|
155
|
+
for (let [e, t] of b.value) for (let r of t) if (n.get(r) > 0) {
|
|
156
|
+
i.add(e);
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
return {
|
|
160
|
+
count: t,
|
|
161
|
+
items: n,
|
|
162
|
+
groups: i
|
|
163
|
+
};
|
|
164
|
+
}), w = xe();
|
|
165
|
+
return q(() => {
|
|
166
|
+
w?.exposed && (w.exposed.highlightItem = o.value?.highlightItem, w.exposed.highlightFirstItem = o.value?.highlightFirstItem, w.exposed.highlightSelected = o.value?.highlightSelected);
|
|
167
|
+
}), t({
|
|
168
|
+
filtered: ue,
|
|
169
|
+
highlightedElement: y,
|
|
170
|
+
highlightItem: o.value?.highlightItem,
|
|
171
|
+
highlightFirstItem: o.value?.highlightFirstItem,
|
|
172
|
+
highlightSelected: o.value?.highlightSelected
|
|
173
|
+
}), Je({
|
|
174
|
+
modelValue: g,
|
|
175
|
+
multiple: c,
|
|
176
|
+
disabled: l,
|
|
177
|
+
open: _,
|
|
178
|
+
onOpenChange: re,
|
|
179
|
+
...ce,
|
|
180
|
+
contentId: "",
|
|
181
|
+
isUserInputted: ae,
|
|
182
|
+
isVirtual: oe,
|
|
183
|
+
inputElement: se,
|
|
184
|
+
highlightedElement: y,
|
|
185
|
+
onInputElementChange: (e) => se.value = e,
|
|
186
|
+
triggerElement: v,
|
|
187
|
+
onTriggerElementChange: (e) => v.value = e,
|
|
188
|
+
parentElement: s,
|
|
189
|
+
resetSearchTermOnSelect: f,
|
|
190
|
+
onResetSearchTerm: ie.on,
|
|
191
|
+
allItems: le,
|
|
192
|
+
allGroups: b,
|
|
193
|
+
filterSearch: C,
|
|
194
|
+
filterState: ue,
|
|
195
|
+
ignoreFilter: u,
|
|
196
|
+
openOnFocus: ee,
|
|
197
|
+
openOnClick: te,
|
|
198
|
+
resetModelValueOnClear: m
|
|
199
|
+
}), (e, t) => (V(), D(k(x), null, {
|
|
200
|
+
default: F(() => [L(k(Ue), E({
|
|
201
|
+
ref_key: "primitiveElement",
|
|
202
|
+
ref: o
|
|
203
|
+
}, e.$attrs, {
|
|
204
|
+
modelValue: k(g),
|
|
205
|
+
"onUpdate:modelValue": t[0] ||= (e) => me(g) ? g.value = e : null,
|
|
206
|
+
style: { pointerEvents: k(_) ? "auto" : void 0 },
|
|
207
|
+
as: e.as,
|
|
208
|
+
"as-child": e.asChild,
|
|
209
|
+
dir: k(h),
|
|
210
|
+
multiple: k(c),
|
|
211
|
+
name: e.name,
|
|
212
|
+
required: e.required,
|
|
213
|
+
disabled: k(l),
|
|
214
|
+
"highlight-on-hover": k(ne),
|
|
215
|
+
by: r.by,
|
|
216
|
+
onHighlight: t[1] ||= (e) => a("highlight", e)
|
|
217
|
+
}), {
|
|
218
|
+
default: F(() => [I(e.$slots, "default", {
|
|
219
|
+
open: k(_),
|
|
220
|
+
modelValue: k(g)
|
|
221
|
+
})]),
|
|
222
|
+
_: 3
|
|
223
|
+
}, 16, [
|
|
224
|
+
"modelValue",
|
|
225
|
+
"style",
|
|
226
|
+
"as",
|
|
227
|
+
"as-child",
|
|
228
|
+
"dir",
|
|
229
|
+
"multiple",
|
|
230
|
+
"name",
|
|
231
|
+
"required",
|
|
232
|
+
"disabled",
|
|
233
|
+
"highlight-on-hover",
|
|
234
|
+
"by"
|
|
235
|
+
])]),
|
|
236
|
+
_: 3
|
|
237
|
+
}));
|
|
238
|
+
}
|
|
239
|
+
}), Xe = /* @__PURE__ */ M({
|
|
240
|
+
__name: "ComboboxAnchor",
|
|
241
|
+
props: {
|
|
242
|
+
reference: {
|
|
243
|
+
type: null,
|
|
244
|
+
required: !1
|
|
245
|
+
},
|
|
246
|
+
asChild: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
required: !1
|
|
249
|
+
},
|
|
250
|
+
as: {
|
|
251
|
+
type: null,
|
|
252
|
+
required: !1
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
setup(e) {
|
|
256
|
+
let { forwardRef: n } = t();
|
|
257
|
+
return (e, t) => (V(), D(k(w), {
|
|
258
|
+
"as-child": "",
|
|
259
|
+
reference: e.reference
|
|
260
|
+
}, {
|
|
261
|
+
default: F(() => [L(k(a), E({
|
|
262
|
+
ref: k(n),
|
|
263
|
+
"as-child": e.asChild,
|
|
264
|
+
as: e.as
|
|
265
|
+
}, e.$attrs), {
|
|
266
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
267
|
+
_: 3
|
|
268
|
+
}, 16, ["as-child", "as"])]),
|
|
269
|
+
_: 3
|
|
270
|
+
}, 8, ["reference"]));
|
|
271
|
+
}
|
|
272
|
+
}), [Z, Ze] = /*#__PURE__*/ o("ComboboxContent"), Qe = /* @__PURE__ */ M({
|
|
273
|
+
__name: "ComboboxContentImpl",
|
|
274
|
+
props: {
|
|
275
|
+
position: {
|
|
276
|
+
type: String,
|
|
277
|
+
required: !1,
|
|
278
|
+
default: "inline"
|
|
279
|
+
},
|
|
280
|
+
bodyLock: {
|
|
281
|
+
type: Boolean,
|
|
282
|
+
required: !1
|
|
283
|
+
},
|
|
284
|
+
hideWhenEmpty: {
|
|
285
|
+
type: Boolean,
|
|
286
|
+
required: !1
|
|
287
|
+
},
|
|
288
|
+
memoDependencies: {
|
|
289
|
+
type: Array,
|
|
290
|
+
required: !1
|
|
291
|
+
},
|
|
292
|
+
side: {
|
|
293
|
+
type: null,
|
|
294
|
+
required: !1
|
|
295
|
+
},
|
|
296
|
+
sideOffset: {
|
|
297
|
+
type: Number,
|
|
298
|
+
required: !1
|
|
299
|
+
},
|
|
300
|
+
sideFlip: {
|
|
301
|
+
type: Boolean,
|
|
302
|
+
required: !1
|
|
303
|
+
},
|
|
304
|
+
align: {
|
|
305
|
+
type: null,
|
|
306
|
+
required: !1
|
|
307
|
+
},
|
|
308
|
+
alignOffset: {
|
|
309
|
+
type: Number,
|
|
310
|
+
required: !1
|
|
311
|
+
},
|
|
312
|
+
alignFlip: {
|
|
313
|
+
type: Boolean,
|
|
314
|
+
required: !1
|
|
315
|
+
},
|
|
316
|
+
avoidCollisions: {
|
|
317
|
+
type: Boolean,
|
|
318
|
+
required: !1
|
|
319
|
+
},
|
|
320
|
+
collisionBoundary: {
|
|
321
|
+
type: null,
|
|
322
|
+
required: !1
|
|
323
|
+
},
|
|
324
|
+
collisionPadding: {
|
|
325
|
+
type: [Number, Object],
|
|
326
|
+
required: !1
|
|
327
|
+
},
|
|
328
|
+
arrowPadding: {
|
|
329
|
+
type: Number,
|
|
330
|
+
required: !1
|
|
331
|
+
},
|
|
332
|
+
hideShiftedArrow: {
|
|
333
|
+
type: Boolean,
|
|
334
|
+
required: !1
|
|
335
|
+
},
|
|
336
|
+
sticky: {
|
|
337
|
+
type: String,
|
|
338
|
+
required: !1
|
|
339
|
+
},
|
|
340
|
+
hideWhenDetached: {
|
|
341
|
+
type: Boolean,
|
|
342
|
+
required: !1
|
|
343
|
+
},
|
|
344
|
+
positionStrategy: {
|
|
345
|
+
type: String,
|
|
346
|
+
required: !1
|
|
347
|
+
},
|
|
348
|
+
updatePositionStrategy: {
|
|
349
|
+
type: String,
|
|
350
|
+
required: !1
|
|
351
|
+
},
|
|
352
|
+
disableUpdateOnLayoutShift: {
|
|
353
|
+
type: Boolean,
|
|
354
|
+
required: !1
|
|
355
|
+
},
|
|
356
|
+
prioritizePosition: {
|
|
357
|
+
type: Boolean,
|
|
358
|
+
required: !1
|
|
359
|
+
},
|
|
360
|
+
reference: {
|
|
361
|
+
type: null,
|
|
362
|
+
required: !1
|
|
363
|
+
},
|
|
364
|
+
dir: {
|
|
365
|
+
type: String,
|
|
366
|
+
required: !1
|
|
367
|
+
},
|
|
368
|
+
asChild: {
|
|
369
|
+
type: Boolean,
|
|
370
|
+
required: !1
|
|
371
|
+
},
|
|
372
|
+
as: {
|
|
373
|
+
type: null,
|
|
374
|
+
required: !1
|
|
375
|
+
},
|
|
376
|
+
disableOutsidePointerEvents: {
|
|
377
|
+
type: Boolean,
|
|
378
|
+
required: !1
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
emits: [
|
|
382
|
+
"escapeKeyDown",
|
|
383
|
+
"pointerDownOutside",
|
|
384
|
+
"focusOutside",
|
|
385
|
+
"interactOutside"
|
|
386
|
+
],
|
|
387
|
+
setup(e, { emit: n }) {
|
|
388
|
+
let r = e, i = n, { position: o } = he(r), s = X(), c = Symbol("ComboboxContent");
|
|
389
|
+
A(o, (e) => s.onContentPositionChange(c, e), { immediate: !0 });
|
|
390
|
+
let l = j(() => s.ignoreFilter.value ? s.allItems.value.size === 0 : s.filterState.value.count === 0), { forwardRef: u, currentElement: d } = t();
|
|
391
|
+
je(r.bodyLock), C(), Oe(s.parentElement);
|
|
392
|
+
let f = j(() => r.position === "popper" ? r : {}), ee = h(f.value), te = {
|
|
393
|
+
boxSizing: "border-box",
|
|
394
|
+
"--reka-combobox-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
395
|
+
"--reka-combobox-content-available-width": "var(--reka-popper-available-width)",
|
|
396
|
+
"--reka-combobox-content-available-height": "var(--reka-popper-available-height)",
|
|
397
|
+
"--reka-combobox-trigger-width": "var(--reka-popper-anchor-width)",
|
|
398
|
+
"--reka-combobox-trigger-height": "var(--reka-popper-anchor-height)"
|
|
399
|
+
};
|
|
400
|
+
Ze({ position: o });
|
|
401
|
+
let p = H(!1);
|
|
402
|
+
q(() => {
|
|
403
|
+
s.inputElement.value && (p.value = d.value.contains(s.inputElement.value), p.value && s.inputElement.value.focus());
|
|
404
|
+
}), Se(() => {
|
|
405
|
+
s.onContentUnmount(c);
|
|
406
|
+
let e = Me();
|
|
407
|
+
p.value && (!e || e === document.body) && s.triggerElement.value?.focus();
|
|
408
|
+
});
|
|
409
|
+
function m(e) {
|
|
410
|
+
if (s.parentElement.value?.contains(e)) return !0;
|
|
411
|
+
let t = (e instanceof Element ? e.closest("label") : null)?.control;
|
|
412
|
+
return !!t && !!s.parentElement.value?.contains(t);
|
|
413
|
+
}
|
|
414
|
+
let ne = { placed: () => s.onContentPlaced(c) };
|
|
415
|
+
return (e, t) => (V(), D(k(Be), { "as-child": "" }, {
|
|
416
|
+
default: F(() => [L(k(Ee), {
|
|
417
|
+
"as-child": "",
|
|
418
|
+
onMountAutoFocus: t[5] ||= _(() => {}, ["prevent"]),
|
|
419
|
+
onUnmountAutoFocus: t[6] ||= _(() => {}, ["prevent"])
|
|
420
|
+
}, {
|
|
421
|
+
default: F(() => [L(k(De), {
|
|
422
|
+
"as-child": "",
|
|
423
|
+
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
424
|
+
onDismiss: t[0] ||= (e) => k(s).onOpenChange(!1),
|
|
425
|
+
onFocusOutside: t[1] ||= (e) => {
|
|
426
|
+
m(e.target) && e.preventDefault(), i("focusOutside", e);
|
|
427
|
+
},
|
|
428
|
+
onInteractOutside: t[2] ||= (e) => i("interactOutside", e),
|
|
429
|
+
onEscapeKeyDown: t[3] ||= (e) => i("escapeKeyDown", e),
|
|
430
|
+
onPointerDownOutside: t[4] ||= (e) => {
|
|
431
|
+
m(e.target) && e.preventDefault(), i("pointerDownOutside", e);
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
default: F(() => [(V(), D(Te(k(o) === "popper" ? k(b) : k(a)), E({
|
|
435
|
+
...e.$attrs,
|
|
436
|
+
...k(ee)
|
|
437
|
+
}, {
|
|
438
|
+
id: k(s).contentId,
|
|
439
|
+
ref: k(u),
|
|
440
|
+
"memo-dependencies": k(o) === "popper" ? [k(s).filterSearch.value, k(s).filterState.value] : void 0,
|
|
441
|
+
"data-state": k(s).open.value ? "open" : "closed",
|
|
442
|
+
"data-empty": l.value ? "" : void 0,
|
|
443
|
+
style: {
|
|
444
|
+
display: r.hideWhenEmpty && l.value ? "none" : "flex",
|
|
445
|
+
flexDirection: "column",
|
|
446
|
+
outline: "none",
|
|
447
|
+
...k(o) === "popper" ? te : {}
|
|
448
|
+
}
|
|
449
|
+
}, ye(k(o) === "popper" ? ne : {})), {
|
|
450
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
451
|
+
_: 3
|
|
452
|
+
}, 16, [
|
|
453
|
+
"id",
|
|
454
|
+
"memo-dependencies",
|
|
455
|
+
"data-state",
|
|
456
|
+
"data-empty",
|
|
457
|
+
"style"
|
|
458
|
+
]))]),
|
|
459
|
+
_: 3
|
|
460
|
+
}, 8, ["disable-outside-pointer-events"])]),
|
|
461
|
+
_: 3
|
|
462
|
+
})]),
|
|
463
|
+
_: 3
|
|
464
|
+
}));
|
|
465
|
+
}
|
|
466
|
+
}), $e = /* @__PURE__ */ M({
|
|
467
|
+
__name: "ComboboxArrow",
|
|
468
|
+
props: {
|
|
469
|
+
width: {
|
|
470
|
+
type: Number,
|
|
471
|
+
required: !1,
|
|
472
|
+
default: 10
|
|
473
|
+
},
|
|
474
|
+
height: {
|
|
475
|
+
type: Number,
|
|
476
|
+
required: !1,
|
|
477
|
+
default: 5
|
|
478
|
+
},
|
|
479
|
+
rounded: {
|
|
480
|
+
type: Boolean,
|
|
481
|
+
required: !1
|
|
482
|
+
},
|
|
483
|
+
asChild: {
|
|
484
|
+
type: Boolean,
|
|
485
|
+
required: !1
|
|
486
|
+
},
|
|
487
|
+
as: {
|
|
488
|
+
type: null,
|
|
489
|
+
required: !1,
|
|
490
|
+
default: "svg"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
setup(e) {
|
|
494
|
+
let n = e, r = X(), i = Z();
|
|
495
|
+
return t(), (e, t) => k(r).open.value && k(i).position.value === "popper" ? (V(), D(k(S), R(E({ key: 0 }, n)), {
|
|
496
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
497
|
+
_: 3
|
|
498
|
+
}, 16)) : N("v-if", !0);
|
|
499
|
+
}
|
|
500
|
+
}), et = /* @__PURE__ */ M({
|
|
501
|
+
__name: "ComboboxCancel",
|
|
502
|
+
props: {
|
|
503
|
+
asChild: {
|
|
504
|
+
type: Boolean,
|
|
505
|
+
required: !1
|
|
506
|
+
},
|
|
507
|
+
as: {
|
|
508
|
+
type: null,
|
|
509
|
+
required: !1,
|
|
510
|
+
default: "button"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
setup(e) {
|
|
514
|
+
let n = e;
|
|
515
|
+
t();
|
|
516
|
+
let r = X();
|
|
517
|
+
function i() {
|
|
518
|
+
r.filterSearch.value = "", r.inputElement.value && (r.inputElement.value.value = "", r.inputElement.value.focus()), r.resetModelValueOnClear?.value && (r.modelValue.value = r.multiple.value ? [] : null);
|
|
519
|
+
}
|
|
520
|
+
return (e, t) => (V(), D(k(a), E({ type: e.as === "button" ? "button" : void 0 }, n, {
|
|
521
|
+
tabindex: "-1",
|
|
522
|
+
onClick: i
|
|
523
|
+
}), {
|
|
524
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
525
|
+
_: 3
|
|
526
|
+
}, 16, ["type"]));
|
|
527
|
+
}
|
|
528
|
+
}), tt = /* @__PURE__ */ M({
|
|
529
|
+
__name: "ComboboxContent",
|
|
530
|
+
props: {
|
|
531
|
+
forceMount: {
|
|
532
|
+
type: Boolean,
|
|
533
|
+
required: !1
|
|
534
|
+
},
|
|
535
|
+
position: {
|
|
536
|
+
type: String,
|
|
537
|
+
required: !1
|
|
538
|
+
},
|
|
539
|
+
bodyLock: {
|
|
540
|
+
type: Boolean,
|
|
541
|
+
required: !1
|
|
542
|
+
},
|
|
543
|
+
hideWhenEmpty: {
|
|
544
|
+
type: Boolean,
|
|
545
|
+
required: !1
|
|
546
|
+
},
|
|
547
|
+
memoDependencies: {
|
|
548
|
+
type: Array,
|
|
549
|
+
required: !1
|
|
550
|
+
},
|
|
551
|
+
side: {
|
|
552
|
+
type: null,
|
|
553
|
+
required: !1
|
|
554
|
+
},
|
|
555
|
+
sideOffset: {
|
|
556
|
+
type: Number,
|
|
557
|
+
required: !1
|
|
558
|
+
},
|
|
559
|
+
sideFlip: {
|
|
560
|
+
type: Boolean,
|
|
561
|
+
required: !1
|
|
562
|
+
},
|
|
563
|
+
align: {
|
|
564
|
+
type: null,
|
|
565
|
+
required: !1
|
|
566
|
+
},
|
|
567
|
+
alignOffset: {
|
|
568
|
+
type: Number,
|
|
569
|
+
required: !1
|
|
570
|
+
},
|
|
571
|
+
alignFlip: {
|
|
572
|
+
type: Boolean,
|
|
573
|
+
required: !1
|
|
574
|
+
},
|
|
575
|
+
avoidCollisions: {
|
|
576
|
+
type: Boolean,
|
|
577
|
+
required: !1
|
|
578
|
+
},
|
|
579
|
+
collisionBoundary: {
|
|
580
|
+
type: null,
|
|
581
|
+
required: !1
|
|
582
|
+
},
|
|
583
|
+
collisionPadding: {
|
|
584
|
+
type: [Number, Object],
|
|
585
|
+
required: !1
|
|
586
|
+
},
|
|
587
|
+
arrowPadding: {
|
|
588
|
+
type: Number,
|
|
589
|
+
required: !1
|
|
590
|
+
},
|
|
591
|
+
hideShiftedArrow: {
|
|
592
|
+
type: Boolean,
|
|
593
|
+
required: !1
|
|
594
|
+
},
|
|
595
|
+
sticky: {
|
|
596
|
+
type: String,
|
|
597
|
+
required: !1
|
|
598
|
+
},
|
|
599
|
+
hideWhenDetached: {
|
|
600
|
+
type: Boolean,
|
|
601
|
+
required: !1
|
|
602
|
+
},
|
|
603
|
+
positionStrategy: {
|
|
604
|
+
type: String,
|
|
605
|
+
required: !1
|
|
606
|
+
},
|
|
607
|
+
updatePositionStrategy: {
|
|
608
|
+
type: String,
|
|
609
|
+
required: !1
|
|
610
|
+
},
|
|
611
|
+
disableUpdateOnLayoutShift: {
|
|
612
|
+
type: Boolean,
|
|
613
|
+
required: !1
|
|
614
|
+
},
|
|
615
|
+
prioritizePosition: {
|
|
616
|
+
type: Boolean,
|
|
617
|
+
required: !1
|
|
618
|
+
},
|
|
619
|
+
reference: {
|
|
620
|
+
type: null,
|
|
621
|
+
required: !1
|
|
622
|
+
},
|
|
623
|
+
dir: {
|
|
624
|
+
type: String,
|
|
625
|
+
required: !1
|
|
626
|
+
},
|
|
627
|
+
asChild: {
|
|
628
|
+
type: Boolean,
|
|
629
|
+
required: !1
|
|
630
|
+
},
|
|
631
|
+
as: {
|
|
632
|
+
type: null,
|
|
633
|
+
required: !1
|
|
634
|
+
},
|
|
635
|
+
disableOutsidePointerEvents: {
|
|
636
|
+
type: Boolean,
|
|
637
|
+
required: !1
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
emits: [
|
|
641
|
+
"escapeKeyDown",
|
|
642
|
+
"pointerDownOutside",
|
|
643
|
+
"focusOutside",
|
|
644
|
+
"interactOutside"
|
|
645
|
+
],
|
|
646
|
+
setup(e, { emit: n }) {
|
|
647
|
+
let r = ue(e, n), { forwardRef: i } = t(), a = X();
|
|
648
|
+
return a.contentId ||= u(void 0, "reka-combobox-content"), (e, t) => (V(), D(k(Pe), { present: e.forceMount || k(a).open.value }, {
|
|
649
|
+
default: F(() => [L(Qe, E({
|
|
650
|
+
...k(r),
|
|
651
|
+
...e.$attrs
|
|
652
|
+
}, { ref: k(i) }), {
|
|
653
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
654
|
+
_: 3
|
|
655
|
+
}, 16)]),
|
|
656
|
+
_: 3
|
|
657
|
+
}, 8, ["present"]));
|
|
658
|
+
}
|
|
659
|
+
}), nt = /* @__PURE__ */ M({
|
|
660
|
+
__name: "ComboboxEmpty",
|
|
661
|
+
props: {
|
|
662
|
+
asChild: {
|
|
663
|
+
type: Boolean,
|
|
664
|
+
required: !1
|
|
665
|
+
},
|
|
666
|
+
as: {
|
|
667
|
+
type: null,
|
|
668
|
+
required: !1
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
setup(e) {
|
|
672
|
+
let t = e, n = X(), r = j(() => n.ignoreFilter.value ? n.allItems.value.size === 0 : n.filterState.value.count === 0);
|
|
673
|
+
return (e, n) => r.value ? (V(), D(k(a), R(E({ key: 0 }, t)), {
|
|
674
|
+
default: F(() => [I(e.$slots, "default", {}, () => [n[0] ||= O("No options")])]),
|
|
675
|
+
_: 3
|
|
676
|
+
}, 16)) : N("v-if", !0);
|
|
677
|
+
}
|
|
678
|
+
}), [rt, it] = /*#__PURE__*/ o("ComboboxGroup"), at = /* @__PURE__ */ M({
|
|
679
|
+
__name: "ComboboxGroup",
|
|
680
|
+
props: {
|
|
681
|
+
asChild: {
|
|
682
|
+
type: Boolean,
|
|
683
|
+
required: !1
|
|
684
|
+
},
|
|
685
|
+
as: {
|
|
686
|
+
type: null,
|
|
687
|
+
required: !1
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
setup(e) {
|
|
691
|
+
let t = e, n = u(void 0, "reka-combobox-group"), r = X(), i = j(() => r.ignoreFilter.value ? !0 : !r.filterSearch.value || r.filterState.value.groups.has(n)), a = it({
|
|
692
|
+
id: n,
|
|
693
|
+
labelId: ""
|
|
694
|
+
});
|
|
695
|
+
return q(() => {
|
|
696
|
+
r.allGroups.value.has(n) || r.allGroups.value.set(n, /* @__PURE__ */ new Set());
|
|
697
|
+
}), Se(() => {
|
|
698
|
+
r.allGroups.value.delete(n);
|
|
699
|
+
}), (e, r) => (V(), D(k(ze), E({
|
|
700
|
+
id: k(n),
|
|
701
|
+
"aria-labelledby": k(a).labelId
|
|
702
|
+
}, t, { hidden: !i.value || void 0 }), {
|
|
703
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
704
|
+
_: 3
|
|
705
|
+
}, 16, [
|
|
706
|
+
"id",
|
|
707
|
+
"aria-labelledby",
|
|
708
|
+
"hidden"
|
|
709
|
+
]));
|
|
710
|
+
}
|
|
711
|
+
}), ot = /* @__PURE__ */ M({
|
|
712
|
+
__name: "ComboboxInput",
|
|
713
|
+
props: {
|
|
714
|
+
displayValue: {
|
|
715
|
+
type: Function,
|
|
716
|
+
required: !1
|
|
717
|
+
},
|
|
718
|
+
modelValue: {
|
|
719
|
+
type: String,
|
|
720
|
+
required: !1
|
|
721
|
+
},
|
|
722
|
+
autoFocus: {
|
|
723
|
+
type: Boolean,
|
|
724
|
+
required: !1
|
|
725
|
+
},
|
|
726
|
+
disabled: {
|
|
727
|
+
type: Boolean,
|
|
728
|
+
required: !1
|
|
729
|
+
},
|
|
730
|
+
asChild: {
|
|
731
|
+
type: Boolean,
|
|
732
|
+
required: !1
|
|
733
|
+
},
|
|
734
|
+
as: {
|
|
735
|
+
type: null,
|
|
736
|
+
required: !1,
|
|
737
|
+
default: "input"
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
emits: ["update:modelValue"],
|
|
741
|
+
setup(e, { emit: t }) {
|
|
742
|
+
let n = e, r = t, a = X(), o = qe(), { primitiveElement: s, currentElement: c } = Ae(), l = i(n, "modelValue", r, { passive: n.modelValue === void 0 });
|
|
743
|
+
q(() => {
|
|
744
|
+
c.value && a.onInputElementChange(c.value);
|
|
745
|
+
});
|
|
746
|
+
let { isComposing: u, shouldDeferInput: d, handleCompositionStart: f, handleCompositionUpdate: ee, handleCompositionEnd: te } = Ie((e) => {
|
|
747
|
+
let t = e.target;
|
|
748
|
+
t && m(t.value);
|
|
749
|
+
});
|
|
750
|
+
function p(e) {
|
|
751
|
+
u.value || (e.preventDefault(), a.open.value || a.onOpenChange(!0));
|
|
752
|
+
}
|
|
753
|
+
function m(e) {
|
|
754
|
+
a.open.value ? a.filterSearch.value = e : (a.onOpenChange(!0), ge(() => {
|
|
755
|
+
e && (a.filterSearch.value = e, o.highlightFirstItem());
|
|
756
|
+
}));
|
|
757
|
+
}
|
|
758
|
+
function ne(e) {
|
|
759
|
+
d.value || m(e.target.value);
|
|
760
|
+
}
|
|
761
|
+
function h() {
|
|
762
|
+
a.openOnFocus.value && !a.open.value && a.onOpenChange(!0);
|
|
763
|
+
}
|
|
764
|
+
function g(e) {
|
|
765
|
+
if (!a.open.value) return;
|
|
766
|
+
let t = e.relatedTarget;
|
|
767
|
+
if (!t) return;
|
|
768
|
+
let n = a.parentElement.value?.contains(t), r = document.getElementById(a.contentId)?.contains(t);
|
|
769
|
+
!n && !r && requestAnimationFrame(() => {
|
|
770
|
+
if (!a.open.value) return;
|
|
771
|
+
let e = document.activeElement;
|
|
772
|
+
!a.parentElement.value?.contains(e) && !document.getElementById(a.contentId)?.contains(e) && a.onOpenChange(!1);
|
|
773
|
+
});
|
|
774
|
+
}
|
|
775
|
+
function _() {
|
|
776
|
+
a.openOnClick.value && !a.open.value && a.onOpenChange(!0);
|
|
777
|
+
}
|
|
778
|
+
function re() {
|
|
779
|
+
let e = a.modelValue.value;
|
|
780
|
+
n.displayValue ? l.value = n.displayValue(e) : !a.multiple.value && e && !Array.isArray(e) ? typeof e == "object" ? l.value = "" : l.value = e.toString() : l.value = "", ge(() => {
|
|
781
|
+
l.value = l.value;
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
return a.onResetSearchTerm(() => {
|
|
785
|
+
re();
|
|
786
|
+
}), A(a.modelValue, async () => {
|
|
787
|
+
!a.isUserInputted.value && a.resetSearchTermOnSelect.value && re();
|
|
788
|
+
}, {
|
|
789
|
+
immediate: !0,
|
|
790
|
+
deep: !0
|
|
791
|
+
}), A(a.filterState, (e, t) => {
|
|
792
|
+
!a.isVirtual.value && t.count === 0 && o.highlightFirstItem();
|
|
793
|
+
}), (e, t) => (V(), D(k(Ge), {
|
|
794
|
+
ref_key: "primitiveElement",
|
|
795
|
+
ref: s,
|
|
796
|
+
modelValue: k(l),
|
|
797
|
+
"onUpdate:modelValue": t[0] ||= (e) => me(l) ? l.value = e : null,
|
|
798
|
+
as: e.as,
|
|
799
|
+
"as-child": e.asChild,
|
|
800
|
+
"auto-focus": e.autoFocus,
|
|
801
|
+
disabled: e.disabled,
|
|
802
|
+
"aria-expanded": k(a).open.value,
|
|
803
|
+
"aria-controls": k(a).contentId,
|
|
804
|
+
"aria-autocomplete": "list",
|
|
805
|
+
role: "combobox",
|
|
806
|
+
autocomplete: "off",
|
|
807
|
+
onClick: _,
|
|
808
|
+
onInput: ne,
|
|
809
|
+
onKeydown: v(p, ["down", "up"]),
|
|
810
|
+
onFocus: h,
|
|
811
|
+
onBlur: g,
|
|
812
|
+
onCompositionstart: k(f),
|
|
813
|
+
onCompositionupdate: k(ee),
|
|
814
|
+
onCompositionend: k(te)
|
|
815
|
+
}, {
|
|
816
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
817
|
+
_: 3
|
|
818
|
+
}, 8, [
|
|
819
|
+
"modelValue",
|
|
820
|
+
"as",
|
|
821
|
+
"as-child",
|
|
822
|
+
"auto-focus",
|
|
823
|
+
"disabled",
|
|
824
|
+
"aria-expanded",
|
|
825
|
+
"aria-controls",
|
|
826
|
+
"onCompositionstart",
|
|
827
|
+
"onCompositionupdate",
|
|
828
|
+
"onCompositionend"
|
|
829
|
+
]));
|
|
830
|
+
}
|
|
831
|
+
}), st = /* @__PURE__ */ M({
|
|
832
|
+
__name: "ComboboxItem",
|
|
833
|
+
props: {
|
|
834
|
+
textValue: {
|
|
835
|
+
type: String,
|
|
836
|
+
required: !1
|
|
837
|
+
},
|
|
838
|
+
value: {
|
|
839
|
+
type: null,
|
|
840
|
+
required: !0
|
|
841
|
+
},
|
|
842
|
+
disabled: {
|
|
843
|
+
type: Boolean,
|
|
844
|
+
required: !1
|
|
845
|
+
},
|
|
846
|
+
asChild: {
|
|
847
|
+
type: Boolean,
|
|
848
|
+
required: !1
|
|
849
|
+
},
|
|
850
|
+
as: {
|
|
851
|
+
type: null,
|
|
852
|
+
required: !1
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
emits: ["select"],
|
|
856
|
+
setup(e, { emit: t }) {
|
|
857
|
+
let n = e, r = t, i = u(void 0, "reka-combobox-item"), a = X(), o = rt(null), { primitiveElement: s, currentElement: c } = Ae();
|
|
858
|
+
if (n.value === "") throw Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");
|
|
859
|
+
let l = j(() => {
|
|
860
|
+
if (a.isVirtual.value || a.ignoreFilter.value || !a.filterSearch.value) return !0;
|
|
861
|
+
{
|
|
862
|
+
let e = a.filterState.value.items.get(i);
|
|
863
|
+
return e === void 0 || e > 0;
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
return q(() => {
|
|
867
|
+
a.allItems.value.set(i, n.textValue || c.value.textContent || c.value.innerText);
|
|
868
|
+
let e = o?.id;
|
|
869
|
+
e && (a.allGroups.value.has(e) ? a.allGroups.value.get(e)?.add(i) : a.allGroups.value.set(e, /* @__PURE__ */ new Set([i])));
|
|
870
|
+
}), Se(() => {
|
|
871
|
+
a.allItems.value.delete(i);
|
|
872
|
+
}), (e, t) => l.value ? be([
|
|
873
|
+
l.value,
|
|
874
|
+
k(a).filterSearch.value,
|
|
875
|
+
k(a).disabled.value,
|
|
876
|
+
e.disabled,
|
|
877
|
+
n.value,
|
|
878
|
+
n.as,
|
|
879
|
+
n.asChild,
|
|
880
|
+
...Object.values(e.$attrs)
|
|
881
|
+
], () => (V(), D(k(He), E({ key: 0 }, n, {
|
|
882
|
+
id: k(i),
|
|
883
|
+
ref_key: "primitiveElement",
|
|
884
|
+
ref: s,
|
|
885
|
+
disabled: k(a).disabled.value || e.disabled,
|
|
886
|
+
onSelect: t[0] ||= (t) => {
|
|
887
|
+
r("select", t), !t.defaultPrevented && (!k(a).multiple.value && !e.disabled && !k(a).disabled.value ? (t.preventDefault(), k(a).onOpenChange(!1), k(a).modelValue.value = n.value) : k(a).multiple.value && k(a).inputElement.value?.focus());
|
|
888
|
+
}
|
|
889
|
+
}), {
|
|
890
|
+
default: F(() => [I(e.$slots, "default", {}, () => [O(z(e.value), 1)])]),
|
|
891
|
+
_: 3
|
|
892
|
+
}, 16, ["id", "disabled"])), t, 1) : N("v-if", !0);
|
|
893
|
+
}
|
|
894
|
+
}), ct = /* @__PURE__ */ M({
|
|
895
|
+
__name: "ComboboxItemIndicator",
|
|
896
|
+
props: {
|
|
897
|
+
asChild: {
|
|
898
|
+
type: Boolean,
|
|
899
|
+
required: !1
|
|
900
|
+
},
|
|
901
|
+
as: {
|
|
902
|
+
type: null,
|
|
903
|
+
required: !1,
|
|
904
|
+
default: "span"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
setup(e) {
|
|
908
|
+
let t = e;
|
|
909
|
+
return (e, n) => (V(), D(k(J), R(G(t)), {
|
|
910
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
911
|
+
_: 3
|
|
912
|
+
}, 16));
|
|
913
|
+
}
|
|
914
|
+
}), lt = /* @__PURE__ */ M({
|
|
915
|
+
__name: "ComboboxLabel",
|
|
916
|
+
props: {
|
|
917
|
+
for: {
|
|
918
|
+
type: String,
|
|
919
|
+
required: !1
|
|
920
|
+
},
|
|
921
|
+
asChild: {
|
|
922
|
+
type: Boolean,
|
|
923
|
+
required: !1
|
|
924
|
+
},
|
|
925
|
+
as: {
|
|
926
|
+
type: null,
|
|
927
|
+
required: !1,
|
|
928
|
+
default: "div"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
setup(e) {
|
|
932
|
+
let n = e;
|
|
933
|
+
t();
|
|
934
|
+
let r = rt({
|
|
935
|
+
id: "",
|
|
936
|
+
labelId: ""
|
|
937
|
+
});
|
|
938
|
+
return r.labelId ||= u(void 0, "reka-combobox-group-label"), (e, t) => (V(), D(k(a), E(n, { id: k(r).labelId }), {
|
|
939
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
940
|
+
_: 3
|
|
941
|
+
}, 16, ["id"]));
|
|
942
|
+
}
|
|
943
|
+
}), ut = /* @__PURE__ */ M({
|
|
944
|
+
__name: "ComboboxPortal",
|
|
945
|
+
props: {
|
|
946
|
+
to: {
|
|
947
|
+
type: null,
|
|
948
|
+
required: !1
|
|
949
|
+
},
|
|
950
|
+
disabled: {
|
|
951
|
+
type: Boolean,
|
|
952
|
+
required: !1
|
|
953
|
+
},
|
|
954
|
+
defer: {
|
|
955
|
+
type: Boolean,
|
|
956
|
+
required: !1
|
|
957
|
+
},
|
|
958
|
+
forceMount: {
|
|
959
|
+
type: Boolean,
|
|
960
|
+
required: !1
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
setup(e) {
|
|
964
|
+
let t = e;
|
|
965
|
+
return (e, n) => (V(), D(k(r), R(G(t)), {
|
|
966
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
967
|
+
_: 3
|
|
968
|
+
}, 16));
|
|
969
|
+
}
|
|
970
|
+
}), dt = /* @__PURE__ */ M({
|
|
971
|
+
__name: "ComboboxSeparator",
|
|
972
|
+
props: {
|
|
973
|
+
asChild: {
|
|
974
|
+
type: Boolean,
|
|
975
|
+
required: !1
|
|
976
|
+
},
|
|
977
|
+
as: {
|
|
978
|
+
type: null,
|
|
979
|
+
required: !1
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
setup(e) {
|
|
983
|
+
let n = e;
|
|
984
|
+
return t(), (e, t) => (V(), D(k(a), E(n, { "aria-hidden": "true" }), {
|
|
985
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
986
|
+
_: 3
|
|
987
|
+
}, 16));
|
|
988
|
+
}
|
|
989
|
+
}), ft = /* @__PURE__ */ M({
|
|
990
|
+
__name: "ComboboxTrigger",
|
|
991
|
+
props: {
|
|
992
|
+
disabled: {
|
|
993
|
+
type: Boolean,
|
|
994
|
+
required: !1
|
|
995
|
+
},
|
|
996
|
+
asChild: {
|
|
997
|
+
type: Boolean,
|
|
998
|
+
required: !1
|
|
999
|
+
},
|
|
1000
|
+
as: {
|
|
1001
|
+
type: null,
|
|
1002
|
+
required: !1,
|
|
1003
|
+
default: "button"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
setup(e) {
|
|
1007
|
+
let n = e, { forwardRef: r, currentElement: i } = t(), o = X(), s = j(() => n.disabled || o.disabled.value || !1);
|
|
1008
|
+
return q(() => {
|
|
1009
|
+
i.value && o.onTriggerElementChange(i.value);
|
|
1010
|
+
}), (e, t) => (V(), D(k(a), E(n, {
|
|
1011
|
+
ref: k(r),
|
|
1012
|
+
type: e.as === "button" ? "button" : void 0,
|
|
1013
|
+
tabindex: "-1",
|
|
1014
|
+
"aria-label": "Show popup",
|
|
1015
|
+
"aria-haspopup": "listbox",
|
|
1016
|
+
"aria-expanded": k(o).open.value,
|
|
1017
|
+
"aria-controls": k(o).contentId,
|
|
1018
|
+
"data-state": k(o).open.value ? "open" : "closed",
|
|
1019
|
+
disabled: s.value,
|
|
1020
|
+
"data-disabled": s.value ? "" : void 0,
|
|
1021
|
+
"aria-disabled": s.value ?? void 0,
|
|
1022
|
+
onClick: t[0] ||= (e) => k(o).onOpenChange(!k(o).open.value)
|
|
1023
|
+
}), {
|
|
1024
|
+
default: F(() => [I(e.$slots, "default")]),
|
|
1025
|
+
_: 3
|
|
1026
|
+
}, 16, [
|
|
1027
|
+
"type",
|
|
1028
|
+
"aria-expanded",
|
|
1029
|
+
"aria-controls",
|
|
1030
|
+
"data-state",
|
|
1031
|
+
"disabled",
|
|
1032
|
+
"data-disabled",
|
|
1033
|
+
"aria-disabled"
|
|
1034
|
+
]));
|
|
1035
|
+
}
|
|
1036
|
+
}), pt = /* @__PURE__ */ M({
|
|
1037
|
+
__name: "ComboboxVirtualizer",
|
|
1038
|
+
props: {
|
|
1039
|
+
options: {
|
|
1040
|
+
type: Array,
|
|
1041
|
+
required: !0
|
|
1042
|
+
},
|
|
1043
|
+
overscan: {
|
|
1044
|
+
type: Number,
|
|
1045
|
+
required: !1
|
|
1046
|
+
},
|
|
1047
|
+
estimateSize: {
|
|
1048
|
+
type: [Number, Function],
|
|
1049
|
+
required: !1
|
|
1050
|
+
},
|
|
1051
|
+
textContent: {
|
|
1052
|
+
type: Function,
|
|
1053
|
+
required: !1
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
setup(e) {
|
|
1057
|
+
let t = e, n = X();
|
|
1058
|
+
return n.isVirtual.value = !0, (e, n) => (V(), D(We, R(G(t)), {
|
|
1059
|
+
default: F((t) => [I(e.$slots, "default", R(G(t)))]),
|
|
1060
|
+
_: 3
|
|
1061
|
+
}, 16));
|
|
1062
|
+
}
|
|
1063
|
+
}), mt = {
|
|
1064
|
+
slots: {
|
|
1065
|
+
base: ["relative group rounded-md inline-flex items-center disabled:cursor-not-allowed disabled:opacity-75", "transition-colors"],
|
|
1066
|
+
leading: "absolute inset-y-0 start-0 flex items-center",
|
|
1067
|
+
leadingIcon: "shrink-0 text-dimmed",
|
|
1068
|
+
leadingAvatar: "shrink-0",
|
|
1069
|
+
leadingAvatarSize: "",
|
|
1070
|
+
trailing: "absolute inset-y-0 end-0 flex items-center",
|
|
1071
|
+
trailingIcon: "shrink-0 text-dimmed",
|
|
1072
|
+
value: "truncate pointer-events-none",
|
|
1073
|
+
placeholder: "truncate text-dimmed",
|
|
1074
|
+
arrow: "fill-bg stroke-default",
|
|
1075
|
+
content: ["max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto data-[state=closed]:pointer-events-none! flex flex-col", "max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],
|
|
1076
|
+
viewport: "relative scroll-py-1 overflow-y-auto flex-1",
|
|
1077
|
+
group: "p-1 isolate",
|
|
1078
|
+
empty: "text-center text-muted",
|
|
1079
|
+
label: "font-semibold text-highlighted",
|
|
1080
|
+
separator: "-mx-1 my-1 h-px bg-border",
|
|
1081
|
+
item: ["group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50", "transition-colors before:transition-colors"],
|
|
1082
|
+
itemLeadingIcon: ["shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default", "transition-colors"],
|
|
1083
|
+
itemLeadingAvatar: "shrink-0",
|
|
1084
|
+
itemLeadingAvatarSize: "",
|
|
1085
|
+
itemLeadingChip: "shrink-0",
|
|
1086
|
+
itemLeadingChipSize: "",
|
|
1087
|
+
itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
|
|
1088
|
+
itemTrailingIcon: "shrink-0",
|
|
1089
|
+
itemWrapper: "flex-1 flex flex-col min-w-0",
|
|
1090
|
+
itemLabel: "truncate",
|
|
1091
|
+
itemDescription: "truncate text-muted",
|
|
1092
|
+
input: "border-b border-default",
|
|
1093
|
+
focusScope: "flex flex-col min-h-0",
|
|
1094
|
+
trailingClear: "p-0"
|
|
1095
|
+
},
|
|
1096
|
+
variants: {
|
|
1097
|
+
fieldGroup: {
|
|
1098
|
+
horizontal: "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
|
|
1099
|
+
vertical: "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
|
|
1100
|
+
},
|
|
1101
|
+
size: {
|
|
1102
|
+
xs: {
|
|
1103
|
+
base: "px-2 py-1 text-sm/4 gap-1",
|
|
1104
|
+
leading: "ps-2",
|
|
1105
|
+
trailing: "pe-2",
|
|
1106
|
+
leadingIcon: "size-4",
|
|
1107
|
+
leadingAvatarSize: "3xs",
|
|
1108
|
+
trailingIcon: "size-4",
|
|
1109
|
+
label: "p-1 text-[10px]/3 gap-1",
|
|
1110
|
+
item: "p-1 text-xs gap-1",
|
|
1111
|
+
itemLeadingIcon: "size-4",
|
|
1112
|
+
itemLeadingAvatarSize: "3xs",
|
|
1113
|
+
itemLeadingChip: "size-4",
|
|
1114
|
+
itemLeadingChipSize: "sm",
|
|
1115
|
+
itemTrailingIcon: "size-4",
|
|
1116
|
+
empty: "p-2 text-xs"
|
|
1117
|
+
},
|
|
1118
|
+
sm: {
|
|
1119
|
+
base: "px-2.5 py-1.5 text-sm/4 gap-1.5",
|
|
1120
|
+
leading: "ps-2.5",
|
|
1121
|
+
trailing: "pe-2.5",
|
|
1122
|
+
leadingIcon: "size-4",
|
|
1123
|
+
leadingAvatarSize: "3xs",
|
|
1124
|
+
trailingIcon: "size-4",
|
|
1125
|
+
label: "p-1.5 text-[10px]/3 gap-1.5",
|
|
1126
|
+
item: "p-1.5 text-xs gap-1.5",
|
|
1127
|
+
itemLeadingIcon: "size-4",
|
|
1128
|
+
itemLeadingAvatarSize: "3xs",
|
|
1129
|
+
itemLeadingChip: "size-4",
|
|
1130
|
+
itemLeadingChipSize: "sm",
|
|
1131
|
+
itemTrailingIcon: "size-4",
|
|
1132
|
+
empty: "p-2.5 text-xs"
|
|
1133
|
+
},
|
|
1134
|
+
md: {
|
|
1135
|
+
base: "px-2.5 py-1.5 text-base/5 gap-1.5",
|
|
1136
|
+
leading: "ps-2.5",
|
|
1137
|
+
trailing: "pe-2.5",
|
|
1138
|
+
leadingIcon: "size-5",
|
|
1139
|
+
leadingAvatarSize: "2xs",
|
|
1140
|
+
trailingIcon: "size-5",
|
|
1141
|
+
label: "p-1.5 text-xs gap-1.5",
|
|
1142
|
+
item: "p-1.5 text-sm gap-1.5",
|
|
1143
|
+
itemLeadingIcon: "size-5",
|
|
1144
|
+
itemLeadingAvatarSize: "2xs",
|
|
1145
|
+
itemLeadingChip: "size-5",
|
|
1146
|
+
itemLeadingChipSize: "md",
|
|
1147
|
+
itemTrailingIcon: "size-5",
|
|
1148
|
+
empty: "p-2.5 text-sm"
|
|
1149
|
+
},
|
|
1150
|
+
lg: {
|
|
1151
|
+
base: "px-3 py-2 text-base/5 gap-2",
|
|
1152
|
+
leading: "ps-3",
|
|
1153
|
+
trailing: "pe-3",
|
|
1154
|
+
leadingIcon: "size-5",
|
|
1155
|
+
leadingAvatarSize: "2xs",
|
|
1156
|
+
trailingIcon: "size-5",
|
|
1157
|
+
label: "p-2 text-xs gap-2",
|
|
1158
|
+
item: "p-2 text-sm gap-2",
|
|
1159
|
+
itemLeadingIcon: "size-5",
|
|
1160
|
+
itemLeadingAvatarSize: "2xs",
|
|
1161
|
+
itemLeadingChip: "size-5",
|
|
1162
|
+
itemLeadingChipSize: "md",
|
|
1163
|
+
itemTrailingIcon: "size-5",
|
|
1164
|
+
empty: "p-3 text-sm"
|
|
1165
|
+
},
|
|
1166
|
+
xl: {
|
|
1167
|
+
base: "px-3 py-2 text-base gap-2",
|
|
1168
|
+
leading: "ps-3",
|
|
1169
|
+
trailing: "pe-3",
|
|
1170
|
+
leadingIcon: "size-6",
|
|
1171
|
+
leadingAvatarSize: "xs",
|
|
1172
|
+
trailingIcon: "size-6",
|
|
1173
|
+
label: "p-2 text-sm gap-2",
|
|
1174
|
+
item: "p-2 text-base gap-2",
|
|
1175
|
+
itemLeadingIcon: "size-6",
|
|
1176
|
+
itemLeadingAvatarSize: "xs",
|
|
1177
|
+
itemLeadingChip: "size-6",
|
|
1178
|
+
itemLeadingChipSize: "lg",
|
|
1179
|
+
itemTrailingIcon: "size-6",
|
|
1180
|
+
empty: "p-3 text-base"
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
variant: {
|
|
1184
|
+
outline: "text-highlighted bg-default ring ring-inset ring-accented hover:bg-elevated disabled:bg-default",
|
|
1185
|
+
soft: "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
1186
|
+
subtle: "text-highlighted bg-elevated ring ring-inset ring-accented hover:bg-accented/75 disabled:bg-elevated",
|
|
1187
|
+
ghost: "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
1188
|
+
none: "text-highlighted bg-transparent focus:outline-none"
|
|
1189
|
+
},
|
|
1190
|
+
color: {
|
|
1191
|
+
primary: "",
|
|
1192
|
+
secondary: "",
|
|
1193
|
+
success: "",
|
|
1194
|
+
info: "",
|
|
1195
|
+
warning: "",
|
|
1196
|
+
error: "",
|
|
1197
|
+
neutral: ""
|
|
1198
|
+
},
|
|
1199
|
+
leading: { true: "" },
|
|
1200
|
+
trailing: { true: "" },
|
|
1201
|
+
loading: { true: "" },
|
|
1202
|
+
highlight: { true: "" },
|
|
1203
|
+
fixed: { false: "" },
|
|
1204
|
+
type: { file: "file:me-1.5 file:font-medium file:text-muted file:outline-none" },
|
|
1205
|
+
position: {
|
|
1206
|
+
popper: { content: "data-[state=open]:animate-[scale-in_100ms_var(--ease-out)] data-[state=closed]:animate-[scale-out_100ms_var(--ease-out)]" },
|
|
1207
|
+
"item-aligned": { content: "" }
|
|
1208
|
+
},
|
|
1209
|
+
multiple: { true: "" },
|
|
1210
|
+
virtualize: {
|
|
1211
|
+
true: { viewport: "p-1 isolate" },
|
|
1212
|
+
false: { viewport: "divide-y divide-default" }
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
compoundVariants: [
|
|
1216
|
+
{
|
|
1217
|
+
color: "primary",
|
|
1218
|
+
variant: ["outline", "subtle"],
|
|
1219
|
+
class: "outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
color: "secondary",
|
|
1223
|
+
variant: ["outline", "subtle"],
|
|
1224
|
+
class: "outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
color: "success",
|
|
1228
|
+
variant: ["outline", "subtle"],
|
|
1229
|
+
class: "outline-success/25 focus-visible:outline-3 focus-visible:ring-success"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
color: "info",
|
|
1233
|
+
variant: ["outline", "subtle"],
|
|
1234
|
+
class: "outline-info/25 focus-visible:outline-3 focus-visible:ring-info"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
color: "warning",
|
|
1238
|
+
variant: ["outline", "subtle"],
|
|
1239
|
+
class: "outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
color: "error",
|
|
1243
|
+
variant: ["outline", "subtle"],
|
|
1244
|
+
class: "outline-error/25 focus-visible:outline-3 focus-visible:ring-error"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
color: "primary",
|
|
1248
|
+
variant: ["soft", "ghost"],
|
|
1249
|
+
class: "outline-primary/25 focus-visible:outline-3"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
color: "secondary",
|
|
1253
|
+
variant: ["soft", "ghost"],
|
|
1254
|
+
class: "outline-secondary/25 focus-visible:outline-3"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
color: "success",
|
|
1258
|
+
variant: ["soft", "ghost"],
|
|
1259
|
+
class: "outline-success/25 focus-visible:outline-3"
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
color: "info",
|
|
1263
|
+
variant: ["soft", "ghost"],
|
|
1264
|
+
class: "outline-info/25 focus-visible:outline-3"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
color: "warning",
|
|
1268
|
+
variant: ["soft", "ghost"],
|
|
1269
|
+
class: "outline-warning/25 focus-visible:outline-3"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
color: "error",
|
|
1273
|
+
variant: ["soft", "ghost"],
|
|
1274
|
+
class: "outline-error/25 focus-visible:outline-3"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
color: "primary",
|
|
1278
|
+
highlight: !0,
|
|
1279
|
+
class: "ring ring-inset ring-primary"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
color: "secondary",
|
|
1283
|
+
highlight: !0,
|
|
1284
|
+
class: "ring ring-inset ring-secondary"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
color: "success",
|
|
1288
|
+
highlight: !0,
|
|
1289
|
+
class: "ring ring-inset ring-success"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
color: "info",
|
|
1293
|
+
highlight: !0,
|
|
1294
|
+
class: "ring ring-inset ring-info"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
color: "warning",
|
|
1298
|
+
highlight: !0,
|
|
1299
|
+
class: "ring ring-inset ring-warning"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
color: "error",
|
|
1303
|
+
highlight: !0,
|
|
1304
|
+
class: "ring ring-inset ring-error"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
color: "neutral",
|
|
1308
|
+
variant: ["outline", "subtle"],
|
|
1309
|
+
class: "outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
color: "neutral",
|
|
1313
|
+
variant: ["soft", "ghost"],
|
|
1314
|
+
class: "outline-inverted/25 focus-visible:outline-3"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
color: "neutral",
|
|
1318
|
+
highlight: !0,
|
|
1319
|
+
class: "ring ring-inset ring-inverted"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
leading: !0,
|
|
1323
|
+
size: "xs",
|
|
1324
|
+
class: "ps-7"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
leading: !0,
|
|
1328
|
+
size: "sm",
|
|
1329
|
+
class: "ps-8"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
leading: !0,
|
|
1333
|
+
size: "md",
|
|
1334
|
+
class: "ps-9"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
leading: !0,
|
|
1338
|
+
size: "lg",
|
|
1339
|
+
class: "ps-10"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
leading: !0,
|
|
1343
|
+
size: "xl",
|
|
1344
|
+
class: "ps-11"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
trailing: !0,
|
|
1348
|
+
size: "xs",
|
|
1349
|
+
class: "pe-7"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
trailing: !0,
|
|
1353
|
+
size: "sm",
|
|
1354
|
+
class: "pe-8"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
trailing: !0,
|
|
1358
|
+
size: "md",
|
|
1359
|
+
class: "pe-9"
|
|
1360
|
+
},
|
|
1361
|
+
{
|
|
1362
|
+
trailing: !0,
|
|
1363
|
+
size: "lg",
|
|
1364
|
+
class: "pe-10"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
trailing: !0,
|
|
1368
|
+
size: "xl",
|
|
1369
|
+
class: "pe-11"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
loading: !0,
|
|
1373
|
+
leading: !0,
|
|
1374
|
+
class: { leadingIcon: "animate-spin" }
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
loading: !0,
|
|
1378
|
+
leading: !1,
|
|
1379
|
+
trailing: !0,
|
|
1380
|
+
class: { trailingIcon: "animate-spin" }
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
fixed: !1,
|
|
1384
|
+
size: "xs",
|
|
1385
|
+
class: "md:text-xs"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
fixed: !1,
|
|
1389
|
+
size: "sm",
|
|
1390
|
+
class: "md:text-xs"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
fixed: !1,
|
|
1394
|
+
size: "md",
|
|
1395
|
+
class: "md:text-sm"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
fixed: !1,
|
|
1399
|
+
size: "lg",
|
|
1400
|
+
class: "md:text-sm"
|
|
1401
|
+
}
|
|
1402
|
+
],
|
|
1403
|
+
defaultVariants: {
|
|
1404
|
+
size: "md",
|
|
1405
|
+
color: "primary",
|
|
1406
|
+
variant: "outline",
|
|
1407
|
+
position: "popper"
|
|
1408
|
+
}
|
|
1409
|
+
}, Q = /*@__PURE__*/ Object.assign({ inheritAttrs: !1 }, {
|
|
1410
|
+
__name: "SelectMenu",
|
|
1411
|
+
props: /*@__PURE__*/ pe({
|
|
1412
|
+
id: {
|
|
1413
|
+
type: String,
|
|
1414
|
+
required: !1
|
|
1415
|
+
},
|
|
1416
|
+
placeholder: {
|
|
1417
|
+
type: String,
|
|
1418
|
+
required: !1
|
|
1419
|
+
},
|
|
1420
|
+
searchInput: {
|
|
1421
|
+
type: [Boolean, Object],
|
|
1422
|
+
required: !1,
|
|
1423
|
+
default: !0
|
|
1424
|
+
},
|
|
1425
|
+
color: {
|
|
1426
|
+
type: null,
|
|
1427
|
+
required: !1
|
|
1428
|
+
},
|
|
1429
|
+
variant: {
|
|
1430
|
+
type: null,
|
|
1431
|
+
required: !1
|
|
1432
|
+
},
|
|
1433
|
+
size: {
|
|
1434
|
+
type: null,
|
|
1435
|
+
required: !1
|
|
1436
|
+
},
|
|
1437
|
+
required: {
|
|
1438
|
+
type: Boolean,
|
|
1439
|
+
required: !1
|
|
1440
|
+
},
|
|
1441
|
+
trailingIcon: {
|
|
1442
|
+
type: null,
|
|
1443
|
+
required: !1
|
|
1444
|
+
},
|
|
1445
|
+
selectedIcon: {
|
|
1446
|
+
type: null,
|
|
1447
|
+
required: !1
|
|
1448
|
+
},
|
|
1449
|
+
clear: {
|
|
1450
|
+
type: [Boolean, Object],
|
|
1451
|
+
required: !1
|
|
1452
|
+
},
|
|
1453
|
+
clearIcon: {
|
|
1454
|
+
type: null,
|
|
1455
|
+
required: !1
|
|
1456
|
+
},
|
|
1457
|
+
content: {
|
|
1458
|
+
type: Object,
|
|
1459
|
+
required: !1
|
|
1460
|
+
},
|
|
1461
|
+
arrow: {
|
|
1462
|
+
type: [Boolean, Object],
|
|
1463
|
+
required: !1
|
|
1464
|
+
},
|
|
1465
|
+
portal: {
|
|
1466
|
+
type: [Boolean, String],
|
|
1467
|
+
required: !1,
|
|
1468
|
+
skipCheck: !0,
|
|
1469
|
+
default: !0
|
|
1470
|
+
},
|
|
1471
|
+
virtualize: {
|
|
1472
|
+
type: [Boolean, Object],
|
|
1473
|
+
required: !1,
|
|
1474
|
+
default: !1
|
|
1475
|
+
},
|
|
1476
|
+
valueKey: {
|
|
1477
|
+
type: null,
|
|
1478
|
+
required: !1
|
|
1479
|
+
},
|
|
1480
|
+
labelKey: {
|
|
1481
|
+
type: null,
|
|
1482
|
+
required: !1,
|
|
1483
|
+
default: "label"
|
|
1484
|
+
},
|
|
1485
|
+
descriptionKey: {
|
|
1486
|
+
type: null,
|
|
1487
|
+
required: !1,
|
|
1488
|
+
default: "description"
|
|
1489
|
+
},
|
|
1490
|
+
items: {
|
|
1491
|
+
type: null,
|
|
1492
|
+
required: !1
|
|
1493
|
+
},
|
|
1494
|
+
defaultValue: {
|
|
1495
|
+
type: null,
|
|
1496
|
+
required: !1
|
|
1497
|
+
},
|
|
1498
|
+
modelValue: {
|
|
1499
|
+
type: null,
|
|
1500
|
+
required: !1
|
|
1501
|
+
},
|
|
1502
|
+
modelModifiers: {
|
|
1503
|
+
type: null,
|
|
1504
|
+
required: !1
|
|
1505
|
+
},
|
|
1506
|
+
multiple: {
|
|
1507
|
+
type: Boolean,
|
|
1508
|
+
required: !1
|
|
1509
|
+
},
|
|
1510
|
+
highlight: {
|
|
1511
|
+
type: Boolean,
|
|
1512
|
+
required: !1
|
|
1513
|
+
},
|
|
1514
|
+
fixed: {
|
|
1515
|
+
type: Boolean,
|
|
1516
|
+
required: !1
|
|
1517
|
+
},
|
|
1518
|
+
createItem: {
|
|
1519
|
+
type: [
|
|
1520
|
+
Boolean,
|
|
1521
|
+
String,
|
|
1522
|
+
Object
|
|
1523
|
+
],
|
|
1524
|
+
required: !1
|
|
1525
|
+
},
|
|
1526
|
+
filterFields: {
|
|
1527
|
+
type: Array,
|
|
1528
|
+
required: !1
|
|
1529
|
+
},
|
|
1530
|
+
ignoreFilter: {
|
|
1531
|
+
type: Boolean,
|
|
1532
|
+
required: !1
|
|
1533
|
+
},
|
|
1534
|
+
autofocus: {
|
|
1535
|
+
type: Boolean,
|
|
1536
|
+
required: !1
|
|
1537
|
+
},
|
|
1538
|
+
autofocusDelay: {
|
|
1539
|
+
type: Number,
|
|
1540
|
+
required: !1,
|
|
1541
|
+
default: 0
|
|
1542
|
+
},
|
|
1543
|
+
class: {
|
|
1544
|
+
type: null,
|
|
1545
|
+
required: !1
|
|
1546
|
+
},
|
|
1547
|
+
ui: {
|
|
1548
|
+
type: Object,
|
|
1549
|
+
required: !1
|
|
1550
|
+
},
|
|
1551
|
+
open: {
|
|
1552
|
+
type: Boolean,
|
|
1553
|
+
required: !1
|
|
1554
|
+
},
|
|
1555
|
+
defaultOpen: {
|
|
1556
|
+
type: Boolean,
|
|
1557
|
+
required: !1
|
|
1558
|
+
},
|
|
1559
|
+
disabled: {
|
|
1560
|
+
type: Boolean,
|
|
1561
|
+
required: !1
|
|
1562
|
+
},
|
|
1563
|
+
name: {
|
|
1564
|
+
type: String,
|
|
1565
|
+
required: !1
|
|
1566
|
+
},
|
|
1567
|
+
resetSearchTermOnBlur: {
|
|
1568
|
+
type: Boolean,
|
|
1569
|
+
required: !1,
|
|
1570
|
+
default: !0
|
|
1571
|
+
},
|
|
1572
|
+
resetSearchTermOnSelect: {
|
|
1573
|
+
type: Boolean,
|
|
1574
|
+
required: !1,
|
|
1575
|
+
default: !0
|
|
1576
|
+
},
|
|
1577
|
+
resetModelValueOnClear: {
|
|
1578
|
+
type: Boolean,
|
|
1579
|
+
required: !1,
|
|
1580
|
+
default: !0
|
|
1581
|
+
},
|
|
1582
|
+
highlightOnHover: {
|
|
1583
|
+
type: Boolean,
|
|
1584
|
+
required: !1
|
|
1585
|
+
},
|
|
1586
|
+
by: {
|
|
1587
|
+
type: [String, Function],
|
|
1588
|
+
required: !1
|
|
1589
|
+
},
|
|
1590
|
+
icon: {
|
|
1591
|
+
type: null,
|
|
1592
|
+
required: !1
|
|
1593
|
+
},
|
|
1594
|
+
avatar: {
|
|
1595
|
+
type: Object,
|
|
1596
|
+
required: !1
|
|
1597
|
+
},
|
|
1598
|
+
leading: {
|
|
1599
|
+
type: Boolean,
|
|
1600
|
+
required: !1
|
|
1601
|
+
},
|
|
1602
|
+
leadingIcon: {
|
|
1603
|
+
type: null,
|
|
1604
|
+
required: !1
|
|
1605
|
+
},
|
|
1606
|
+
trailing: {
|
|
1607
|
+
type: Boolean,
|
|
1608
|
+
required: !1
|
|
1609
|
+
},
|
|
1610
|
+
loading: {
|
|
1611
|
+
type: Boolean,
|
|
1612
|
+
required: !1
|
|
1613
|
+
},
|
|
1614
|
+
loadingIcon: {
|
|
1615
|
+
type: null,
|
|
1616
|
+
required: !1
|
|
1617
|
+
}
|
|
1618
|
+
}, {
|
|
1619
|
+
searchTerm: {
|
|
1620
|
+
type: String,
|
|
1621
|
+
default: ""
|
|
1622
|
+
},
|
|
1623
|
+
searchTermModifiers: {}
|
|
1624
|
+
}),
|
|
1625
|
+
emits: /*@__PURE__*/ pe([
|
|
1626
|
+
"change",
|
|
1627
|
+
"blur",
|
|
1628
|
+
"focus",
|
|
1629
|
+
"create",
|
|
1630
|
+
"clear",
|
|
1631
|
+
"highlight",
|
|
1632
|
+
"update:modelValue",
|
|
1633
|
+
"update:open"
|
|
1634
|
+
], ["update:searchTerm"]),
|
|
1635
|
+
setup(t, { expose: r, emit: i, attrs: a }) {
|
|
1636
|
+
let o = t, u = i, d = Ce(), h = te("selectMenu", o), b = _e(t, "searchTerm", {
|
|
1637
|
+
type: String,
|
|
1638
|
+
default: ""
|
|
1639
|
+
}), { t: x } = n(), S = e(), { filterGroups: C } = Re(), ue = ne(l(h, "modelValue", "defaultValue", "open", "defaultOpen", "required", "multiple", "resetSearchTermOnBlur", "resetSearchTermOnSelect", "resetModelValueOnClear", "highlightOnHover", "by"), u), w = Ne(B(() => h.portal)), M = B(() => T(h.content, {
|
|
1640
|
+
side: "bottom",
|
|
1641
|
+
sideOffset: 8,
|
|
1642
|
+
collisionPadding: 8,
|
|
1643
|
+
position: "popper"
|
|
1644
|
+
})), pe = B(() => T(h.arrow, { rounded: !0 })), me = j(() => typeof h.clear == "object" ? h.clear : {}), he = B(() => h.virtualize ? T(typeof h.virtualize == "boolean" ? {} : h.virtualize, { estimateSize: Ke(Q.value, J.value ?? "md", h.descriptionKey, !!d["item-description"]) }) : !1), ye = B(() => T(h.searchInput, {
|
|
1645
|
+
placeholder: x("selectMenu.search"),
|
|
1646
|
+
variant: "none",
|
|
1647
|
+
fixed: h.fixed
|
|
1648
|
+
})), { emitFormBlur: be, emitFormFocus: xe, emitFormInput: Se, emitFormChange: Te, size: De, color: Oe, id: ke, name: Ae, highlight: je, disabled: Me, ariaAttrs: Pe } = re(o), { orientation: Ie, size: Le } = ie(o), { isLeading: ze, isTrailing: Be, leadingIconName: Ve, trailingIconName: He } = ce(j(() => ({
|
|
1649
|
+
icon: h.icon,
|
|
1650
|
+
leading: h.leading,
|
|
1651
|
+
leadingIcon: h.leadingIcon,
|
|
1652
|
+
trailing: h.trailing,
|
|
1653
|
+
trailingIcon: h.trailingIcon ?? S.ui.icons.chevronDown,
|
|
1654
|
+
loading: h.loading,
|
|
1655
|
+
loadingIcon: h.loadingIcon
|
|
1656
|
+
}))), Ue = j(() => Oe.value ?? h.color), We = j(() => je.value ?? h.highlight), J = j(() => Le.value ?? De.value ?? h.size), Ge = j(() => Me.value ?? h.disabled), [qe, Y] = y(), [X, Je] = y({ props: {
|
|
1657
|
+
item: {
|
|
1658
|
+
type: [
|
|
1659
|
+
Object,
|
|
1660
|
+
String,
|
|
1661
|
+
Number,
|
|
1662
|
+
Boolean
|
|
1663
|
+
],
|
|
1664
|
+
required: !0
|
|
1665
|
+
},
|
|
1666
|
+
index: {
|
|
1667
|
+
type: Number,
|
|
1668
|
+
required: !1
|
|
1669
|
+
}
|
|
1670
|
+
} }), Z = j(() => le({
|
|
1671
|
+
extend: mt,
|
|
1672
|
+
...S.ui?.selectMenu || {}
|
|
1673
|
+
})({
|
|
1674
|
+
color: Ue.value,
|
|
1675
|
+
variant: h.variant,
|
|
1676
|
+
size: J.value,
|
|
1677
|
+
loading: h.loading,
|
|
1678
|
+
highlight: We.value,
|
|
1679
|
+
fixed: h.fixed,
|
|
1680
|
+
leading: ze.value || !!h.avatar || !!d.leading,
|
|
1681
|
+
trailing: Be.value || !!d.trailing,
|
|
1682
|
+
fieldGroup: Ie.value,
|
|
1683
|
+
virtualize: !!h.virtualize,
|
|
1684
|
+
multiple: h.multiple
|
|
1685
|
+
}));
|
|
1686
|
+
function Ze(e) {
|
|
1687
|
+
if (h.multiple && Array.isArray(e)) {
|
|
1688
|
+
let t = e.map((e) => f(rt.value, e, {
|
|
1689
|
+
labelKey: h.labelKey,
|
|
1690
|
+
valueKey: h.valueKey,
|
|
1691
|
+
by: h.by
|
|
1692
|
+
})).filter((e) => e != null && e !== "");
|
|
1693
|
+
return t.length > 0 ? t.join(", ") : void 0;
|
|
1694
|
+
}
|
|
1695
|
+
return f(rt.value, e, {
|
|
1696
|
+
labelKey: h.labelKey,
|
|
1697
|
+
valueKey: h.valueKey,
|
|
1698
|
+
by: h.by
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
let Qe = j(() => h.items?.length ? s(h.items) ? h.items : [h.items] : []), rt = j(() => Qe.value.flatMap((e) => e)), it = j(() => {
|
|
1702
|
+
if (h.ignoreFilter || !b.value) return Qe.value;
|
|
1703
|
+
let e = Array.isArray(h.filterFields) ? h.filterFields : [h.labelKey];
|
|
1704
|
+
return C(Qe.value, b.value, {
|
|
1705
|
+
fields: e,
|
|
1706
|
+
isStructural: (e) => $(e) && !!e.type && ["label", "separator"].includes(e.type)
|
|
1707
|
+
});
|
|
1708
|
+
}), Q = j(() => it.value.flatMap((e) => e)), ht = j(() => {
|
|
1709
|
+
if (!h.createItem || !b.value) return !1;
|
|
1710
|
+
let e = h.valueKey ? { [h.valueKey]: b.value } : b.value;
|
|
1711
|
+
return typeof h.createItem == "object" && h.createItem.when === "always" || h.createItem === "always" ? !Q.value.find((t) => ee(t, e, h.by ?? h.valueKey)) : !Q.value.length;
|
|
1712
|
+
}), gt = j(() => typeof h.createItem == "object" ? h.createItem.position : "bottom"), _t = ve("triggerRef");
|
|
1713
|
+
function vt() {
|
|
1714
|
+
h.autofocus && _t.value?.$el?.focus({ focusVisible: !0 });
|
|
1715
|
+
}
|
|
1716
|
+
let yt;
|
|
1717
|
+
q(() => {
|
|
1718
|
+
yt = setTimeout(() => {
|
|
1719
|
+
vt();
|
|
1720
|
+
}, h.autofocusDelay);
|
|
1721
|
+
}), de(() => clearTimeout(yt));
|
|
1722
|
+
function bt(e) {
|
|
1723
|
+
if (we(h.modelValue) === e) return;
|
|
1724
|
+
h.modelModifiers?.trim && (typeof e == "string" || e == null) && (e = e?.trim() ?? null), h.modelModifiers?.number && (e = ae(e)), h.modelModifiers?.nullable && (e ??= null), h.modelModifiers?.optional && !h.modelModifiers?.nullable && e !== null && (e ??= void 0);
|
|
1725
|
+
let t = new Event("change", { target: { value: e } });
|
|
1726
|
+
u("change", t), Te(), Se(), h.resetSearchTermOnSelect && (b.value = "");
|
|
1727
|
+
}
|
|
1728
|
+
let xt = H(!1), St;
|
|
1729
|
+
de(() => clearTimeout(St));
|
|
1730
|
+
function Ct(e) {
|
|
1731
|
+
if (xt.value = e, e) {
|
|
1732
|
+
let e = new FocusEvent("focus");
|
|
1733
|
+
u("focus", e), xe(), clearTimeout(St);
|
|
1734
|
+
} else {
|
|
1735
|
+
let e = new FocusEvent("blur");
|
|
1736
|
+
u("blur", e), be(), h.resetSearchTermOnBlur && (St = setTimeout(() => {
|
|
1737
|
+
b.value = "";
|
|
1738
|
+
}, 100));
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
function wt(e) {
|
|
1742
|
+
if (xt.value) return;
|
|
1743
|
+
let t = e.currentTarget;
|
|
1744
|
+
e.preventDefault(), t.click();
|
|
1745
|
+
}
|
|
1746
|
+
function Tt(e) {
|
|
1747
|
+
e.preventDefault(), e.stopPropagation(), u("create", b.value);
|
|
1748
|
+
}
|
|
1749
|
+
function Et(e, t) {
|
|
1750
|
+
if ($(t)) {
|
|
1751
|
+
if (t.disabled) {
|
|
1752
|
+
e.preventDefault();
|
|
1753
|
+
return;
|
|
1754
|
+
}
|
|
1755
|
+
t.onSelect?.(e);
|
|
1756
|
+
}
|
|
1757
|
+
}
|
|
1758
|
+
function $(e) {
|
|
1759
|
+
return typeof e == "object" && !!e;
|
|
1760
|
+
}
|
|
1761
|
+
function Dt(e) {
|
|
1762
|
+
return h.multiple && Array.isArray(e) ? e.length === 0 : e == null || e === "";
|
|
1763
|
+
}
|
|
1764
|
+
function Ot() {
|
|
1765
|
+
Ge.value || u("clear");
|
|
1766
|
+
}
|
|
1767
|
+
function kt(e) {
|
|
1768
|
+
ye.value.autofocus === !1 && e.preventDefault();
|
|
1769
|
+
}
|
|
1770
|
+
function At(e) {
|
|
1771
|
+
let t = document.activeElement;
|
|
1772
|
+
t && t !== document.body && !e.target.contains(t) && e.preventDefault();
|
|
1773
|
+
}
|
|
1774
|
+
let jt = ve("viewportRef"), Mt = ve("comboboxRootRef");
|
|
1775
|
+
return A(() => h.items, async () => {
|
|
1776
|
+
xt.value && h.createItem && (await ge(), Mt.value?.highlightFirstItem?.());
|
|
1777
|
+
}, { flush: "post" }), r({
|
|
1778
|
+
triggerRef: B(() => _t.value?.$el),
|
|
1779
|
+
viewportRef: B(() => jt.value)
|
|
1780
|
+
}), (e, t) => (V(), P(W, null, [
|
|
1781
|
+
L(k(qe), null, {
|
|
1782
|
+
default: F(() => [L(k(st), {
|
|
1783
|
+
"data-slot": "item",
|
|
1784
|
+
class: K(Z.value.item({ class: k(h).ui?.item })),
|
|
1785
|
+
value: b.value,
|
|
1786
|
+
onSelect: Tt
|
|
1787
|
+
}, {
|
|
1788
|
+
default: F(() => [U("span", {
|
|
1789
|
+
"data-slot": "itemLabel",
|
|
1790
|
+
class: K(Z.value.itemLabel({ class: k(h).ui?.itemLabel }))
|
|
1791
|
+
}, [I(e.$slots, "create-item-label", { item: b.value }, () => [O(z(k(x)("selectMenu.create", { label: b.value })), 1)])], 2)]),
|
|
1792
|
+
_: 3
|
|
1793
|
+
}, 8, ["class", "value"])]),
|
|
1794
|
+
_: 3
|
|
1795
|
+
}),
|
|
1796
|
+
L(k(X), null, {
|
|
1797
|
+
default: F(({ item: t, index: n }) => [$(t) && t.type === "label" ? (V(), D(k(lt), {
|
|
1798
|
+
key: 0,
|
|
1799
|
+
"data-slot": "label",
|
|
1800
|
+
class: K(Z.value.label({ class: [
|
|
1801
|
+
k(h).ui?.label,
|
|
1802
|
+
t.ui?.label,
|
|
1803
|
+
t.class
|
|
1804
|
+
] }))
|
|
1805
|
+
}, {
|
|
1806
|
+
default: F(() => [O(z(k(c)(t, k(h).labelKey)), 1)]),
|
|
1807
|
+
_: 2
|
|
1808
|
+
}, 1032, ["class"])) : $(t) && t.type === "separator" ? (V(), D(k(dt), {
|
|
1809
|
+
key: 1,
|
|
1810
|
+
"data-slot": "separator",
|
|
1811
|
+
class: K(Z.value.separator({ class: [
|
|
1812
|
+
k(h).ui?.separator,
|
|
1813
|
+
t.ui?.separator,
|
|
1814
|
+
t.class
|
|
1815
|
+
] }))
|
|
1816
|
+
}, null, 8, ["class"])) : (V(), D(k(st), {
|
|
1817
|
+
key: 2,
|
|
1818
|
+
"data-slot": "item",
|
|
1819
|
+
class: K(Z.value.item({ class: [
|
|
1820
|
+
k(h).ui?.item,
|
|
1821
|
+
$(t) && t.ui?.item,
|
|
1822
|
+
$(t) && t.class
|
|
1823
|
+
] })),
|
|
1824
|
+
disabled: $(t) && t.disabled,
|
|
1825
|
+
value: k(h).valueKey && $(t) ? k(c)(t, k(h).valueKey) : t,
|
|
1826
|
+
onSelect: (e) => Et(e, t)
|
|
1827
|
+
}, {
|
|
1828
|
+
default: F(() => [I(e.$slots, "item", {
|
|
1829
|
+
item: t,
|
|
1830
|
+
index: n,
|
|
1831
|
+
ui: Z.value
|
|
1832
|
+
}, () => [
|
|
1833
|
+
I(e.$slots, "item-leading", {
|
|
1834
|
+
item: t,
|
|
1835
|
+
index: n,
|
|
1836
|
+
ui: Z.value
|
|
1837
|
+
}, () => [$(t) && t.icon ? (V(), D(g, {
|
|
1838
|
+
key: 0,
|
|
1839
|
+
name: t.icon,
|
|
1840
|
+
"data-slot": "itemLeadingIcon",
|
|
1841
|
+
class: K(Z.value.itemLeadingIcon({ class: [k(h).ui?.itemLeadingIcon, t.ui?.itemLeadingIcon] }))
|
|
1842
|
+
}, null, 8, ["name", "class"])) : $(t) && t.avatar ? (V(), D(oe, E({
|
|
1843
|
+
key: 1,
|
|
1844
|
+
size: t.ui?.itemLeadingAvatarSize || k(h).ui?.itemLeadingAvatarSize || Z.value.itemLeadingAvatarSize()
|
|
1845
|
+
}, t.avatar, {
|
|
1846
|
+
"data-slot": "itemLeadingAvatar",
|
|
1847
|
+
class: Z.value.itemLeadingAvatar({ class: [k(h).ui?.itemLeadingAvatar, t.ui?.itemLeadingAvatar] })
|
|
1848
|
+
}), null, 16, ["size", "class"])) : $(t) && t.chip ? (V(), D(p, E({
|
|
1849
|
+
key: 2,
|
|
1850
|
+
size: t.ui?.itemLeadingChipSize || k(h).ui?.itemLeadingChipSize || Z.value.itemLeadingChipSize(),
|
|
1851
|
+
inset: "",
|
|
1852
|
+
standalone: ""
|
|
1853
|
+
}, t.chip, {
|
|
1854
|
+
"data-slot": "itemLeadingChip",
|
|
1855
|
+
class: Z.value.itemLeadingChip({ class: [k(h).ui?.itemLeadingChip, t.ui?.itemLeadingChip] })
|
|
1856
|
+
}), null, 16, ["size", "class"])) : N("", !0)]),
|
|
1857
|
+
U("span", {
|
|
1858
|
+
"data-slot": "itemWrapper",
|
|
1859
|
+
class: K(Z.value.itemWrapper({ class: [k(h).ui?.itemWrapper, $(t) && t.ui?.itemWrapper] }))
|
|
1860
|
+
}, [U("span", {
|
|
1861
|
+
"data-slot": "itemLabel",
|
|
1862
|
+
class: K(Z.value.itemLabel({ class: [k(h).ui?.itemLabel, $(t) && t.ui?.itemLabel] }))
|
|
1863
|
+
}, [I(e.$slots, "item-label", {
|
|
1864
|
+
item: t,
|
|
1865
|
+
index: n
|
|
1866
|
+
}, () => [O(z($(t) ? k(c)(t, k(h).labelKey) : t), 1)])], 2), $(t) && (k(c)(t, k(h).descriptionKey) || d["item-description"]) ? (V(), P("span", {
|
|
1867
|
+
key: 0,
|
|
1868
|
+
"data-slot": "itemDescription",
|
|
1869
|
+
class: K(Z.value.itemDescription({ class: [k(h).ui?.itemDescription, $(t) && t.ui?.itemDescription] }))
|
|
1870
|
+
}, [I(e.$slots, "item-description", {
|
|
1871
|
+
item: t,
|
|
1872
|
+
index: n
|
|
1873
|
+
}, () => [O(z(k(c)(t, k(h).descriptionKey)), 1)])], 2)) : N("", !0)], 2),
|
|
1874
|
+
U("span", {
|
|
1875
|
+
"data-slot": "itemTrailing",
|
|
1876
|
+
class: K(Z.value.itemTrailing({ class: [k(h).ui?.itemTrailing, $(t) && t.ui?.itemTrailing] }))
|
|
1877
|
+
}, [I(e.$slots, "item-trailing", {
|
|
1878
|
+
item: t,
|
|
1879
|
+
index: n,
|
|
1880
|
+
ui: Z.value
|
|
1881
|
+
}), L(k(ct), { "as-child": "" }, {
|
|
1882
|
+
default: F(() => [L(g, {
|
|
1883
|
+
name: k(h).selectedIcon || k(S).ui.icons.check,
|
|
1884
|
+
"data-slot": "itemTrailingIcon",
|
|
1885
|
+
class: K(Z.value.itemTrailingIcon({ class: [k(h).ui?.itemTrailingIcon, $(t) && t.ui?.itemTrailingIcon] }))
|
|
1886
|
+
}, null, 8, ["name", "class"])]),
|
|
1887
|
+
_: 2
|
|
1888
|
+
}, 1024)], 2)
|
|
1889
|
+
])]),
|
|
1890
|
+
_: 2
|
|
1891
|
+
}, 1032, [
|
|
1892
|
+
"class",
|
|
1893
|
+
"disabled",
|
|
1894
|
+
"value",
|
|
1895
|
+
"onSelect"
|
|
1896
|
+
]))]),
|
|
1897
|
+
_: 3
|
|
1898
|
+
}),
|
|
1899
|
+
L(k(Ye), E({
|
|
1900
|
+
ref_key: "comboboxRootRef",
|
|
1901
|
+
ref: Mt
|
|
1902
|
+
}, k(ue), {
|
|
1903
|
+
"ignore-filter": "",
|
|
1904
|
+
"as-child": "",
|
|
1905
|
+
name: k(Ae),
|
|
1906
|
+
disabled: Ge.value,
|
|
1907
|
+
"onUpdate:modelValue": bt,
|
|
1908
|
+
"onUpdate:open": Ct
|
|
1909
|
+
}), {
|
|
1910
|
+
default: F(({ modelValue: n, open: r }) => [L(k(Xe), { "as-child": "" }, {
|
|
1911
|
+
default: F(() => [L(k(ft), E({
|
|
1912
|
+
id: k(ke),
|
|
1913
|
+
ref_key: "triggerRef",
|
|
1914
|
+
ref: _t,
|
|
1915
|
+
"data-slot": "base",
|
|
1916
|
+
class: Z.value.base({ class: [k(h).ui?.base, k(h).class] }),
|
|
1917
|
+
tabindex: "0"
|
|
1918
|
+
}, {
|
|
1919
|
+
"aria-label": void 0,
|
|
1920
|
+
...a,
|
|
1921
|
+
...k(Pe)
|
|
1922
|
+
}, { onKeydown: [v(wt, ["down"]), v(wt, ["up"])] }), {
|
|
1923
|
+
default: F(() => [
|
|
1924
|
+
k(ze) || k(h).avatar || d.leading ? (V(), P("span", {
|
|
1925
|
+
key: 0,
|
|
1926
|
+
"data-slot": "leading",
|
|
1927
|
+
class: K(Z.value.leading({ class: k(h).ui?.leading }))
|
|
1928
|
+
}, [I(e.$slots, "leading", {
|
|
1929
|
+
modelValue: n,
|
|
1930
|
+
open: r,
|
|
1931
|
+
ui: Z.value
|
|
1932
|
+
}, () => [k(ze) && k(Ve) ? (V(), D(g, {
|
|
1933
|
+
key: 0,
|
|
1934
|
+
name: k(Ve),
|
|
1935
|
+
"data-slot": "leadingIcon",
|
|
1936
|
+
class: K(Z.value.leadingIcon({ class: k(h).ui?.leadingIcon }))
|
|
1937
|
+
}, null, 8, ["name", "class"])) : k(h).avatar ? (V(), D(oe, E({
|
|
1938
|
+
key: 1,
|
|
1939
|
+
size: k(h).ui?.itemLeadingAvatarSize || Z.value.itemLeadingAvatarSize()
|
|
1940
|
+
}, k(h).avatar, {
|
|
1941
|
+
"data-slot": "itemLeadingAvatar",
|
|
1942
|
+
class: Z.value.itemLeadingAvatar({ class: k(h).ui?.itemLeadingAvatar })
|
|
1943
|
+
}), null, 16, ["size", "class"])) : N("", !0)])], 2)) : N("", !0),
|
|
1944
|
+
I(e.$slots, "default", {
|
|
1945
|
+
modelValue: n,
|
|
1946
|
+
open: r,
|
|
1947
|
+
ui: Z.value
|
|
1948
|
+
}, () => [(V(!0), P(W, null, fe([Ze(n)], (e) => (V(), P(W, { key: e }, [e == null ? (V(), P("span", {
|
|
1949
|
+
key: 1,
|
|
1950
|
+
"data-slot": "placeholder",
|
|
1951
|
+
class: K(Z.value.placeholder({ class: k(h).ui?.placeholder }))
|
|
1952
|
+
}, z(k(h).placeholder ?? "\xA0"), 3)) : (V(), P("span", {
|
|
1953
|
+
key: 0,
|
|
1954
|
+
"data-slot": "value",
|
|
1955
|
+
class: K(Z.value.value({ class: k(h).ui?.value }))
|
|
1956
|
+
}, z(e), 3))], 64))), 128))]),
|
|
1957
|
+
k(Be) || d.trailing || k(h).clear ? (V(), P("span", {
|
|
1958
|
+
key: 1,
|
|
1959
|
+
"data-slot": "trailing",
|
|
1960
|
+
class: K(Z.value.trailing({ class: k(h).ui?.trailing }))
|
|
1961
|
+
}, [I(e.$slots, "trailing", {
|
|
1962
|
+
modelValue: n,
|
|
1963
|
+
open: r,
|
|
1964
|
+
ui: Z.value
|
|
1965
|
+
}, () => [k(h).clear && !Ge.value && !Dt(n) ? (V(), D(k(et), {
|
|
1966
|
+
key: 0,
|
|
1967
|
+
"as-child": ""
|
|
1968
|
+
}, {
|
|
1969
|
+
default: F(() => [L(se, E({
|
|
1970
|
+
as: "span",
|
|
1971
|
+
icon: k(h).clearIcon || k(S).ui.icons.close,
|
|
1972
|
+
size: J.value,
|
|
1973
|
+
variant: "link",
|
|
1974
|
+
color: "neutral",
|
|
1975
|
+
tabindex: "-1"
|
|
1976
|
+
}, me.value, {
|
|
1977
|
+
"data-slot": "trailingClear",
|
|
1978
|
+
class: Z.value.trailingClear({ class: k(h).ui?.trailingClear }),
|
|
1979
|
+
onClick: _(Ot, ["stop"])
|
|
1980
|
+
}), null, 16, [
|
|
1981
|
+
"icon",
|
|
1982
|
+
"size",
|
|
1983
|
+
"class"
|
|
1984
|
+
])]),
|
|
1985
|
+
_: 1
|
|
1986
|
+
})) : k(He) ? (V(), D(g, {
|
|
1987
|
+
key: 1,
|
|
1988
|
+
name: k(He),
|
|
1989
|
+
"data-slot": "trailingIcon",
|
|
1990
|
+
class: K(Z.value.trailingIcon({ class: k(h).ui?.trailingIcon }))
|
|
1991
|
+
}, null, 8, ["name", "class"])) : N("", !0)])], 2)) : N("", !0)
|
|
1992
|
+
]),
|
|
1993
|
+
_: 2
|
|
1994
|
+
}, 1040, ["id", "class"])]),
|
|
1995
|
+
_: 2
|
|
1996
|
+
}, 1024), L(k(ut), R(G(k(w))), {
|
|
1997
|
+
default: F(() => [L(k(m), null, {
|
|
1998
|
+
default: F(() => [L(k(tt), E({
|
|
1999
|
+
"data-slot": "content",
|
|
2000
|
+
class: Z.value.content({ class: k(h).ui?.content })
|
|
2001
|
+
}, M.value), {
|
|
2002
|
+
default: F(() => [L(k(Ee), {
|
|
2003
|
+
loop: "",
|
|
2004
|
+
"data-slot": "focusScope",
|
|
2005
|
+
class: K(Z.value.focusScope({ class: k(h).ui?.focusScope })),
|
|
2006
|
+
onMountAutoFocus: kt,
|
|
2007
|
+
onUnmountAutoFocus: At
|
|
2008
|
+
}, {
|
|
2009
|
+
default: F(() => [
|
|
2010
|
+
I(e.$slots, "content-top"),
|
|
2011
|
+
k(h).searchInput ? (V(), D(k(ot), {
|
|
2012
|
+
key: 0,
|
|
2013
|
+
modelValue: b.value,
|
|
2014
|
+
"onUpdate:modelValue": t[1] ||= (e) => b.value = e,
|
|
2015
|
+
"display-value": () => b.value,
|
|
2016
|
+
"as-child": ""
|
|
2017
|
+
}, {
|
|
2018
|
+
default: F(() => [L(Fe, E({
|
|
2019
|
+
autofocus: "",
|
|
2020
|
+
autocomplete: "off",
|
|
2021
|
+
size: J.value
|
|
2022
|
+
}, ye.value, {
|
|
2023
|
+
"model-modifiers": { trim: k(h).modelModifiers?.trim },
|
|
2024
|
+
"data-slot": "input",
|
|
2025
|
+
class: Z.value.input({ class: k(h).ui?.input }),
|
|
2026
|
+
onChange: t[0] ||= _(() => {}, ["stop"])
|
|
2027
|
+
}), null, 16, [
|
|
2028
|
+
"size",
|
|
2029
|
+
"model-modifiers",
|
|
2030
|
+
"class"
|
|
2031
|
+
])]),
|
|
2032
|
+
_: 1
|
|
2033
|
+
}, 8, ["modelValue", "display-value"])) : N("", !0),
|
|
2034
|
+
L(k(nt), {
|
|
2035
|
+
"data-slot": "empty",
|
|
2036
|
+
class: K(Z.value.empty({ class: k(h).ui?.empty }))
|
|
2037
|
+
}, {
|
|
2038
|
+
default: F(() => [I(e.$slots, "empty", { searchTerm: b.value }, () => [O(z(b.value ? k(x)("selectMenu.noMatch", { searchTerm: b.value }) : k(x)("selectMenu.noData")), 1)])]),
|
|
2039
|
+
_: 3
|
|
2040
|
+
}, 8, ["class"]),
|
|
2041
|
+
U("div", {
|
|
2042
|
+
ref_key: "viewportRef",
|
|
2043
|
+
ref: jt,
|
|
2044
|
+
role: "presentation",
|
|
2045
|
+
"data-slot": "viewport",
|
|
2046
|
+
class: K(Z.value.viewport({ class: k(h).ui?.viewport }))
|
|
2047
|
+
}, [k(h).virtualize ? (V(), P(W, { key: 0 }, [
|
|
2048
|
+
ht.value && gt.value === "top" ? (V(), D(k(Y), { key: 0 })) : N("", !0),
|
|
2049
|
+
L(k(pt), E({
|
|
2050
|
+
options: Q.value,
|
|
2051
|
+
"text-content": (e) => $(e) ? k(c)(e, k(h).labelKey) : String(e)
|
|
2052
|
+
}, he.value), {
|
|
2053
|
+
default: F(({ option: e, virtualItem: t }) => [L(k(Je), {
|
|
2054
|
+
item: e,
|
|
2055
|
+
index: t.index
|
|
2056
|
+
}, null, 8, ["item", "index"])]),
|
|
2057
|
+
_: 1
|
|
2058
|
+
}, 16, ["options", "text-content"]),
|
|
2059
|
+
ht.value && gt.value === "bottom" ? (V(), D(k(Y), { key: 1 })) : N("", !0)
|
|
2060
|
+
], 64)) : (V(), P(W, { key: 1 }, [
|
|
2061
|
+
ht.value && gt.value === "top" ? (V(), D(k(at), {
|
|
2062
|
+
key: 0,
|
|
2063
|
+
"data-slot": "group",
|
|
2064
|
+
class: K(Z.value.group({ class: k(h).ui?.group }))
|
|
2065
|
+
}, {
|
|
2066
|
+
default: F(() => [L(k(Y))]),
|
|
2067
|
+
_: 1
|
|
2068
|
+
}, 8, ["class"])) : N("", !0),
|
|
2069
|
+
(V(!0), P(W, null, fe(it.value, (e, t) => (V(), D(k(at), {
|
|
2070
|
+
key: `group-${t}`,
|
|
2071
|
+
"data-slot": "group",
|
|
2072
|
+
class: K(Z.value.group({ class: k(h).ui?.group }))
|
|
2073
|
+
}, {
|
|
2074
|
+
default: F(() => [(V(!0), P(W, null, fe(e, (e, n) => (V(), D(k(Je), {
|
|
2075
|
+
key: `group-${t}-${n}`,
|
|
2076
|
+
item: e,
|
|
2077
|
+
index: n
|
|
2078
|
+
}, null, 8, ["item", "index"]))), 128))]),
|
|
2079
|
+
_: 2
|
|
2080
|
+
}, 1032, ["class"]))), 128)),
|
|
2081
|
+
ht.value && gt.value === "bottom" ? (V(), D(k(at), {
|
|
2082
|
+
key: 1,
|
|
2083
|
+
"data-slot": "group",
|
|
2084
|
+
class: K(Z.value.group({ class: k(h).ui?.group }))
|
|
2085
|
+
}, {
|
|
2086
|
+
default: F(() => [L(k(Y))]),
|
|
2087
|
+
_: 1
|
|
2088
|
+
}, 8, ["class"])) : N("", !0)
|
|
2089
|
+
], 64))], 2),
|
|
2090
|
+
I(e.$slots, "content-bottom")
|
|
2091
|
+
]),
|
|
2092
|
+
_: 3
|
|
2093
|
+
}, 8, ["class"]), k(h).arrow ? (V(), D(k($e), E({ key: 0 }, pe.value, {
|
|
2094
|
+
"data-slot": "arrow",
|
|
2095
|
+
class: Z.value.arrow({ class: k(h).ui?.arrow })
|
|
2096
|
+
}), null, 16, ["class"])) : N("", !0)]),
|
|
2097
|
+
_: 3
|
|
2098
|
+
}, 16, ["class"])]),
|
|
2099
|
+
_: 3
|
|
2100
|
+
})]),
|
|
2101
|
+
_: 3
|
|
2102
|
+
}, 16)]),
|
|
2103
|
+
_: 3
|
|
2104
|
+
}, 16, ["name", "disabled"])
|
|
2105
|
+
], 64));
|
|
2106
|
+
}
|
|
2107
|
+
});
|
|
2108
|
+
//#endregion
|
|
2109
|
+
export { Q as t };
|