@hiai-gg/docsmint 2.2.3 → 2.2.5
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/README.md +10 -8
- package/dist/backend/index.js +60080 -40793
- package/dist/frontend/CategoryDialog-CtBDBrmR.js +603 -0
- package/dist/frontend/ConfirmDialog-B7rUgX7M.js +219 -0
- package/dist/frontend/CreateSnapshotDialog-bUKdc0Zb.js +219 -0
- package/dist/frontend/DatePicker-CKTDDpVx.js +291 -0
- package/dist/frontend/DeleteDialog-D28HGxN7.js +175 -0
- package/dist/frontend/FolderNode-CVd22MJS.js +291 -0
- package/dist/frontend/FolderTreeSelector-DObSptCD.js +102 -0
- package/dist/frontend/HiAiEditor--V0-gKwv.js +3266 -0
- package/dist/frontend/HiaiDocsExtensionProvider-B1bCAtpa.js +13 -0
- package/dist/frontend/{Icon-CiHcxcpv.js → Icon-DNapb_KY.js} +3 -2
- package/dist/frontend/SettingsDialog-CN-PrNpM.js +979 -0
- package/dist/frontend/ShareDialog-UO_6vvoT.js +272 -0
- package/dist/frontend/Sidebar-CAxrqTAQ.js +2169 -0
- package/dist/frontend/TagCreateDialog-BdWu4bPX.js +268 -0
- package/dist/frontend/{action_cancel-BdsWzQKU.js → action_cancel-DxbRD-bG.js} +1 -1
- package/dist/frontend/{action_close-CVhfLPRQ.js → action_close-Ct6lVumm.js} +1 -1
- package/dist/frontend/{action_create-ByaroO1_.js → action_create-DKOlnVyX.js} +1 -1
- package/dist/frontend/{action_delete-SRloglWY.js → action_delete-DRb7fBnB.js} +1 -1
- package/dist/frontend/{action_go_to-DO1bicF-.js → action_go_to-D0fF5t1d.js} +1 -1
- package/dist/frontend/{action_loading-iQ0KsN6i.js → action_loading-YGvDyzYG.js} +1 -1
- package/dist/frontend/{action_save-DeqrZQwV.js → action_save-BHYTeFmm.js} +1 -1
- package/dist/frontend/api/categories.js +1 -1
- package/dist/frontend/api/settings.js +1 -1
- package/dist/frontend/api/tags.js +1 -1
- package/dist/frontend/app-shell.js +177 -176
- package/dist/frontend/{auth-client-Dx7d9Tzo.js → auth-client-DahfoSYo.js} +297 -277
- package/dist/frontend/{bundle-mjs-clTO1WW-.js → bundle-mjs-654jE5XN.js} +397 -300
- package/dist/frontend/{camera-DsdOPOcD.js → camera-C6JuKKhr.js} +9 -8
- package/dist/frontend/{categories-CusvHb5Y.js → categories-CUfKlgrs.js} +1 -1
- package/dist/frontend/{categories_update_error-Cn8DBBHv.js → categories_update_error-BrLD-j9s.js} +1 -1
- package/dist/frontend/check-B_e1XqT2.js +25 -0
- package/dist/frontend/chevron-down-BsnN2mp2.js +25 -0
- package/dist/frontend/circle-check-CJH5zxd9.js +29 -0
- package/dist/frontend/clock-CU0gCiiM.js +29 -0
- package/dist/frontend/collaboration.js +113 -113
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/compact-editor.js +5 -4
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/editor/document-title.js +3 -2
- package/dist/frontend/components/editor/docx-serializer.js +8359 -12358
- package/dist/frontend/components/editor/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +33 -32
- package/dist/frontend/components/editor/markdown.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/folder-tree-selector.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +168 -167
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +252 -251
- package/dist/frontend/{copy-Bag46YaR.js → copy-DYNRCHgk.js} +9 -8
- package/dist/frontend/dashboard.js +1301 -1300
- package/dist/frontend/db-yN0Vve_2.js +4296 -0
- package/dist/frontend/{dialog-C0Bpok1d.js → dialog-Dqp04jso.js} +11 -10
- package/dist/frontend/dist-4xBCgXNT.js +40 -0
- package/dist/frontend/{dist-DjId3RKL.js → dist-BaAULhmK.js} +3 -9
- package/dist/frontend/dist-C1oIyJLI.js +302 -0
- package/dist/frontend/dndzone-CWg1kmdZ.js +1483 -0
- package/dist/frontend/{doc_title_label-BOuZzvqv.js → doc_title_label-BPlghiRM.js} +1 -1
- package/dist/frontend/{doc_title_placeholder-ZxpdWWEn.js → doc_title_placeholder-D-LfSoC5.js} +1 -1
- package/dist/frontend/dropdown-menu-HePwCxoQ.js +1429 -0
- package/dist/frontend/{editorExtensions-DbiFj4tn.js → editorExtensions-QKIFSqEG.js} +9 -9
- package/dist/frontend/{editor_markdown_placeholder-BztIY9Ci.js → editor_markdown_placeholder-BXRPm7JG.js} +1 -1
- package/dist/frontend/{ellipsis-vertical-Oymsv1R4.js → ellipsis-vertical-CR25MyeP.js} +9 -8
- package/dist/frontend/{error_dismiss-C651ZdWI.js → error_dismiss-Ckia7GQe.js} +1 -1
- package/dist/frontend/{error_generic-BlWqOE-a.js → error_generic-gyQMdET_.js} +1 -1
- package/dist/frontend/extension.js +1 -1
- package/dist/frontend/{folder-BpmB_sAy.js → folder-BpA690ie.js} +4 -3
- package/dist/frontend/{folders_rename-Cxbg5GIw.js → folders_rename-BHa_gSXw.js} +1 -1
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +29 -29
- package/dist/frontend/{identity-B7HeOzDJ.js → identity-ndFYB8Nt.js} +1 -1
- package/dist/frontend/{input-CbeB9220.js → input-Cv3qF4J3.js} +9 -8
- package/dist/frontend/label-DXjefKfF.js +30 -0
- package/dist/frontend/{lib-CITdCbKa.js → lib-DJthN0w9.js} +7108 -5196
- package/dist/frontend/loader-circle-CvWX1HHL.js +25 -0
- package/dist/frontend/{markdown-6E9TWC6V.js → markdown-CksQVQ6a.js} +2 -2
- package/dist/frontend/offline/identity.js +1 -1
- package/dist/frontend/popper-layer-force-mount-DS--Cvfo.js +3493 -0
- package/dist/frontend/rolldown-runtime-DKYsOz5J.js +19 -0
- package/dist/frontend/{rotate-ccw-DAUX7np7.js → rotate-ccw-Box7QP5X.js} +9 -8
- package/dist/frontend/{runtime-CGUiMzK6.js → runtime-CJv8UGYl.js} +1 -4
- package/dist/frontend/{schemas-YXxhj5o8.js → schemas-BYbeR0Ky.js} +11 -11
- package/dist/frontend/{scroll_to_top_aria-lJc2RSx_.js → scroll_to_top_aria-CP7_oyCo.js} +1 -1
- package/dist/frontend/search.js +650 -649
- package/dist/frontend/{search_title-BETwQYJq.js → search_title-C2aOzN_J.js} +1 -1
- package/dist/frontend/select-value-DAMTi0zc.js +1473 -0
- package/dist/frontend/{settings-DyePuqjp.js → settings-DTsCVJEi.js} +1 -1
- package/dist/frontend/{share-context-C2xyVP9M.js → share-context-CtRMIIhL.js} +15 -14
- package/dist/frontend/{share_copied-BuAnmpbz.js → share_copied-BHb_9sOo.js} +1 -1
- package/dist/frontend/{share_toggle_password-LEYUeHWr.js → share_toggle_password-DjCMq4Eq.js} +1 -1
- package/dist/frontend/shared-document.js +49 -48
- package/dist/frontend/{sidebar_uncategorized-C5PGOflV.js → sidebar_uncategorized-BJSB_sc9.js} +1 -1
- package/dist/frontend/{sort_relevance-DpCVLby_.js → sort_relevance-CXuNTq6L.js} +1 -1
- package/dist/frontend/{tag-Wdfe0rKU.js → tag-BPOFgBQw.js} +4 -3
- package/dist/frontend/tag-store.svelte-DyqQNx7H.js +28 -0
- package/dist/frontend/{tags-DlDVothf.js → tags-DwilrkrM.js} +1 -1
- package/dist/frontend/{tags_load_error-BINNpPPV.js → tags_load_error-BOyuQEGc.js} +1 -1
- package/dist/frontend/{tags_new-Dw0Uy43-.js → tags_new-CGF3Hi1j.js} +1 -1
- package/dist/frontend/textarea-DDdgNvnf.js +23 -0
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-BiXvrqwh.js → theme.svelte-Dx01qWc3.js} +2 -2
- package/dist/frontend/{theme_system-YIfa_2Xt.js → theme_system-Bt9ItDgj.js} +1 -1
- package/dist/frontend/utils/dndzone.js +1 -1
- package/dist/frontend/{utils-CnAmIMwr.js → utils-BQMesoNf.js} +1 -1
- package/dist/frontend/utils-BavN35Bw.js +6 -0
- package/dist/frontend/utils.js +1 -1
- package/dist/frontend/{version_create_snapshot-D8xjbuCq.js → version_create_snapshot-BvoOuUeh.js} +1 -1
- package/dist/frontend/{version_restored_from-DYFFSuQj.js → version_restored_from-BIEEKFbx.js} +1 -1
- package/dist/frontend/{version_snapshot_label_placeholder-BhKq1NQ7.js → version_snapshot_label_placeholder-h9r2_0u3.js} +1 -1
- package/dist/frontend/{weekday_we-BxbzNVWR.js → weekday_we-DsuVW6rh.js} +1 -1
- package/dist/frontend/x-hIpDH7DU.js +25 -0
- package/dist/frontend/{yjs-BbwnvxgY.js → yjs--VgxqIlB.js} +607 -628
- package/dist/frontend-ssr/api/categories.js +1 -1
- package/dist/frontend-ssr/api/settings.js +1 -1
- package/dist/frontend-ssr/api/tags.js +1 -1
- package/dist/frontend-ssr/app-shell.js +11 -11
- package/dist/frontend-ssr/assets/{CategoryDialog-2CCX508O.js → CategoryDialog-DRItbO_9.js} +13 -13
- package/dist/frontend-ssr/assets/{ConfirmDialog-Cc6lcY1N.js → ConfirmDialog-B0NXRrel.js} +8 -8
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BB8fXF9W.js → CreateSnapshotDialog-nj8PjuON.js} +7 -7
- package/dist/frontend-ssr/assets/{DatePicker-CfzKzipR.js → DatePicker-CdUKLPtP.js} +8 -8
- package/dist/frontend-ssr/assets/{DeleteDialog-DRU4UgOW.js → DeleteDialog-B83NoxAg.js} +3 -3
- package/dist/frontend-ssr/assets/{FolderNode-CyOrLJ2Y.js → FolderNode-CSeC3051.js} +10 -10
- package/dist/frontend-ssr/assets/{FolderTreeSelector-D0reTdFS.js → FolderTreeSelector-Dh-ViJPU.js} +4 -4
- package/dist/frontend-ssr/assets/{HiAiEditor-BQGlGd3z.js → HiAiEditor-DB2PjHm9.js} +41 -41
- package/dist/frontend-ssr/assets/{Icon-CrIRbT5O.js → Icon-CBEeswQ2.js} +4 -4
- package/dist/frontend-ssr/assets/{SettingsDialog-BpHY3IMb.js → SettingsDialog-kc3O9PXG.js} +21 -21
- package/dist/frontend-ssr/assets/{ShareDialog-CY40nWZJ.js → ShareDialog-Dmrj55QP.js} +4 -4
- package/dist/frontend-ssr/assets/{Sidebar-dTp4DyW4.js → Sidebar-CDQcIuyv.js} +45 -45
- package/dist/frontend-ssr/assets/{TagCreateDialog-C2tpdEuj.js → TagCreateDialog-CP-yYfpQ.js} +11 -11
- package/dist/frontend-ssr/assets/{action_cancel-CsBbxW0m.js → action_cancel-B8i5P3wt.js} +1 -1
- package/dist/frontend-ssr/assets/{action_close-lFKBqBwg.js → action_close-DPgIB-cY.js} +1 -1
- package/dist/frontend-ssr/assets/{action_create-BV4ZOcQW.js → action_create-DAlNPFeN.js} +1 -1
- package/dist/frontend-ssr/assets/{action_delete-CNmRhKQP.js → action_delete-C6lsQCtY.js} +1 -1
- package/dist/frontend-ssr/assets/{action_go_to-tN5I26xM.js → action_go_to-C6tegi-k.js} +1 -1
- package/dist/frontend-ssr/assets/{action_save-YCfMiKb4.js → action_save-BQCej1sh.js} +1 -1
- package/dist/frontend-ssr/assets/{auth-client-BnnnJDAb.js → auth-client-CwXGsJIQ.js} +44 -38
- package/dist/frontend-ssr/assets/{camera-OYNSMvMd.js → camera-kjjsHmQu.js} +2 -2
- package/dist/frontend-ssr/assets/{categories_update_error-Bfx5vtvt.js → categories_update_error-Kq8q_FJp.js} +1 -1
- package/dist/frontend-ssr/assets/{chevron-down-DB6YsSbQ.js → chevron-down-DPc-Owbl.js} +2 -2
- package/dist/frontend-ssr/assets/{chevron-right-DOt2uY6b.js → chevron-right-C-jY4mqk.js} +2 -2
- package/dist/frontend-ssr/assets/{circle-check-DQhTm9YR.js → circle-check-CnueRXrc.js} +2 -2
- package/dist/frontend-ssr/assets/{clock-B08dVWtf.js → clock-CoRtIDhT.js} +2 -2
- package/dist/frontend-ssr/assets/{copy-2jsznHar.js → copy-CDNZIGVg.js} +2 -2
- package/dist/frontend-ssr/assets/{db-BEKLU5Fc.js → db-NhMsSg1f.js} +1 -1
- package/dist/frontend-ssr/assets/{dialog-C6U-DqLr.js → dialog-B09MN2S-.js} +9 -9
- package/dist/frontend-ssr/assets/{dist-DqXTz_zE.js → dist-D4MAfF0i.js} +13 -13
- package/dist/frontend-ssr/assets/{dist-ip9bPdma.js → dist-cDG_u5EF.js} +8 -8
- package/dist/frontend-ssr/assets/{dndzone-C7KnICM0.js → dndzone-DyM8UtoT.js} +378 -216
- package/dist/frontend-ssr/assets/{doc_title_label-CE_l-Gum.js → doc_title_label-BqCuH3eY.js} +1 -1
- package/dist/frontend-ssr/assets/{doc_title_placeholder-7_i7PtG6.js → doc_title_placeholder-C3tGSpRB.js} +1 -1
- package/dist/frontend-ssr/assets/dropdown-menu-C9H45F9X.js +1721 -0
- package/dist/frontend-ssr/assets/{editor_markdown_placeholder-CAeLJjFT.js → editor_markdown_placeholder-Cxa5uq87.js} +1 -1
- package/dist/frontend-ssr/assets/{editor_toolbar_undo-CVCfQIS1.js → editor_toolbar_undo-D-gLz88j.js} +1 -1
- package/dist/frontend-ssr/assets/{ellipsis-vertical-IFHt2NM1.js → ellipsis-vertical-oBvMj3Jm.js} +2 -2
- package/dist/frontend-ssr/assets/{error_generic-BB80i0Vk.js → error_generic-BSoVZ_4p.js} +1 -1
- package/dist/frontend-ssr/assets/{folder-CXa1_bm5.js → folder-Ptjeaody.js} +2 -2
- package/dist/frontend-ssr/assets/{folders_rename-ydbfwQlj.js → folders_rename-DBtQcf2R.js} +1 -1
- package/dist/frontend-ssr/assets/{identity-DTz1SQwC.js → identity-CigCqYEA.js} +1 -1
- package/dist/frontend-ssr/assets/{input-Bxw9sFF0.js → input-Cc45dG_S.js} +2 -2
- package/dist/frontend-ssr/assets/{label-CMWedjs6.js → label-C1_J2397.js} +2 -2
- package/dist/frontend-ssr/assets/{loader-circle-zbKj9Qb-.js → loader-circle-CK3McH5n.js} +2 -2
- package/dist/frontend-ssr/assets/{markdown-BmIhDQp7.js → markdown-WQsa_gay.js} +1 -1
- package/dist/frontend-ssr/assets/{popper-layer-force-mount-CSHZsG2E.js → popper-layer-force-mount-CGKwdZaZ.js} +1448 -2402
- package/dist/frontend-ssr/assets/{rotate-ccw-B7SaTFWf.js → rotate-ccw-B1lCxJ5d.js} +2 -2
- package/dist/frontend-ssr/assets/{runtime-BX6-jTn_.js → runtime-CoxALrm1.js} +2 -28
- package/dist/frontend-ssr/assets/{scroll_to_top_aria-CAYSiGHO.js → scroll_to_top_aria-CmLwsPln.js} +1 -1
- package/dist/frontend-ssr/assets/{search_title-C7NVXXq3.js → search_title-CZIl0wkq.js} +1 -1
- package/dist/frontend-ssr/assets/{search_toggle_filters-Bq_YVD8s.js → search_toggle_filters-BG-CRM9G.js} +1 -1
- package/dist/frontend-ssr/assets/{select-value-TgslfiUB.js → select-value-BeUHHkLq.js} +157 -66
- package/dist/frontend-ssr/assets/{settings-B1MA_FjO.js → settings-BqyemuQv.js} +1 -1
- package/dist/frontend-ssr/assets/{share-context-RVh8AExX.js → share-context-BM1sUnlP.js} +15 -15
- package/dist/frontend-ssr/assets/{share_copied-CrwEwkb3.js → share_copied-BVGtm9Ud.js} +1 -1
- package/dist/frontend-ssr/assets/{share_toggle_password-Co56z0Ha.js → share_toggle_password-z0gwy0TG.js} +1 -1
- package/dist/frontend-ssr/assets/{sidebar_uncategorized-COWdmZ3d.js → sidebar_uncategorized-rpbsgLVr.js} +1 -1
- package/dist/frontend-ssr/assets/{tag-BGhtDKpP.js → tag-D_ZqINN3.js} +3 -3
- package/dist/frontend-ssr/assets/{tags_load_error-DW4FbHvr.js → tags_load_error-DvhlyMMY.js} +1 -1
- package/dist/frontend-ssr/assets/{tags_new-Dr3ByMPZ.js → tags_new-DStxzBII.js} +1 -1
- package/dist/frontend-ssr/assets/{textarea-Bz5Tz4rw.js → textarea-S9uzw6je.js} +2 -2
- package/dist/frontend-ssr/assets/{theme.svelte-CdHah46l.js → theme.svelte-CqAzqvik.js} +2 -2
- package/dist/frontend-ssr/assets/{theme_system-E97FASeq.js → theme_system-DjbsL0RQ.js} +1 -1
- package/dist/frontend-ssr/assets/{utils-DF6CmRDX.js → utils-DF93j6z-.js} +1 -1
- package/dist/frontend-ssr/assets/{version_create_snapshot-DeeYB7bb.js → version_create_snapshot-SwYsTZ56.js} +1 -1
- package/dist/frontend-ssr/assets/{version_restored_from-CTt2LM4A.js → version_restored_from-pYBnudye.js} +1 -1
- package/dist/frontend-ssr/assets/{version_snapshot_label_placeholder-BbGD9YuN.js → version_snapshot_label_placeholder-DtDnHip8.js} +1 -1
- package/dist/frontend-ssr/assets/{weekday_we-BzGQ-iFc.js → weekday_we-CV1TMROW.js} +1 -1
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-title.js +2 -2
- package/dist/frontend-ssr/components/editor/extensions.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +3 -3
- package/dist/frontend-ssr/components/editor/markdown.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/folder-tree-selector.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +10 -10
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +17 -17
- package/dist/frontend-ssr/dashboard.js +61 -158
- package/dist/frontend-ssr/extension.js +1 -1
- package/dist/frontend-ssr/i18n.js +31 -31
- package/dist/frontend-ssr/offline/identity.js +1 -1
- package/dist/frontend-ssr/search.js +13 -13
- package/dist/frontend-ssr/shared-document.js +1 -1
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/frontend-ssr/utils/dndzone.js +1 -1
- package/dist/lifecycle-runtime.js +17768 -11203
- package/dist/mcp-cli.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +13 -13
- package/packages/cli/src/index.ts +1 -1
- package/server.json +2 -2
- package/dist/frontend/CategoryDialog-CVJi5PJu.js +0 -602
- package/dist/frontend/ConfirmDialog-0JwB8mKN.js +0 -218
- package/dist/frontend/CreateSnapshotDialog-BLrtuYs5.js +0 -218
- package/dist/frontend/DatePicker-BwSb8TRv.js +0 -326
- package/dist/frontend/DeleteDialog-s7Dr6bXg.js +0 -174
- package/dist/frontend/FolderNode-Ds0LDfK3.js +0 -290
- package/dist/frontend/FolderTreeSelector-BR3lYmPU.js +0 -101
- package/dist/frontend/HiAiEditor-BHz46Iqd.js +0 -3078
- package/dist/frontend/HiaiDocsExtensionProvider-A2nGddUR.js +0 -12
- package/dist/frontend/SettingsDialog-BvS74JZu.js +0 -978
- package/dist/frontend/ShareDialog-Bo50h_Oe.js +0 -271
- package/dist/frontend/Sidebar-DerKtpWB.js +0 -2168
- package/dist/frontend/TagCreateDialog-DhKfsfv3.js +0 -267
- package/dist/frontend/check-DiMZRkKS.js +0 -24
- package/dist/frontend/chevron-down-CxFrMFDJ.js +0 -24
- package/dist/frontend/circle-check-B4F_qgPx.js +0 -28
- package/dist/frontend/clock-dcpueRk-.js +0 -28
- package/dist/frontend/db-B1ZV452J.js +0 -3792
- package/dist/frontend/dist-BlcV_BOY.js +0 -39
- package/dist/frontend/dist-Dl9qg10h.js +0 -301
- package/dist/frontend/dndzone-B9jA0yIS.js +0 -1372
- package/dist/frontend/dropdown-menu-B3nk2aM-.js +0 -482
- package/dist/frontend/label-CfBWf3gI.js +0 -29
- package/dist/frontend/loader-circle-skKwfRCB.js +0 -24
- package/dist/frontend/popper-layer-force-mount-BG0eyrCk.js +0 -4255
- package/dist/frontend/rolldown-runtime-CwxnZyOB.js +0 -22
- package/dist/frontend/select-value-BY5Hw6Rl.js +0 -1412
- package/dist/frontend/tag-store.svelte-C9VYWqLQ.js +0 -28
- package/dist/frontend/textarea-D6emvAwM.js +0 -22
- package/dist/frontend/utils-DH0uqK40.js +0 -6
- package/dist/frontend/x-CBUgPygC.js +0 -24
- package/dist/frontend-ssr/assets/dropdown-menu-BS5fcN9l.js +0 -446
- package/dist/frontend-ssr/assets/{HiaiDocsExtensionProvider-D6cGL-9s.js → HiaiDocsExtensionProvider-BdfQP817.js} +1 -1
- package/dist/frontend-ssr/assets/{categories-bBPviKjl.js → categories-CMmudpEk.js} +1 -1
- package/dist/frontend-ssr/assets/{editorExtensions-2O7O2Nhv.js → editorExtensions-DOPTTKUS.js} +2 -2
- package/dist/frontend-ssr/assets/{tag-store.svelte-CUUgAaDD.js → tag-store.svelte-Djpf1W0n.js} +1 -1
- package/dist/frontend-ssr/assets/{tags-C7u-LBsl.js → tags-GQOEtqET.js} +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { t as cn } from "./utils-
|
|
2
|
-
import {
|
|
1
|
+
import { t as cn } from "./utils-DF93j6z-.js";
|
|
2
|
+
import { A as isIOS, B as HOME, C as noop, E as isDisabledElement, F as ARROW_UP, G as boolToEmptyStrOrUndef, H as PAGE_DOWN, J as createBitsAttrs, K as boolToStr, M as ARROW_DOWN, Q as DOMContext, S as createId, U as PAGE_UP, X as getDataTransitionAttrs, Y as getDataOpenClosed, Z as attachRef, a as boxAutoReset, at as mergeProps, c as backward, d as next, dt as boxWith, et as afterTick, f as prev, i as DOMTypeahead, it as Context, l as forward, n as Popper_layer, nt as Previous, o as getFloatingContentCSSVars, ot as styleToString, q as boolToTrueOrUndef, r as Floating_layer_anchor, rt as watch, s as Floating_layer, st as executeCallbacks, t as Popper_layer_force_mount, u as getNextMatch, w as PresenceManager, y as isEventTargetWithin } from "./popper-layer-force-mount-CGKwdZaZ.js";
|
|
3
3
|
import * as $ from "svelte/internal/server";
|
|
4
|
-
import "svelte";
|
|
4
|
+
import { untrack } from "svelte";
|
|
5
5
|
import { on } from "svelte/events";
|
|
6
|
-
|
|
6
|
+
import { SvelteMap } from "svelte/reactivity";
|
|
7
|
+
// ../node_modules/.bun/svelte-toolbelt@0.10.7+294fabd43ca01d33/node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js
|
|
7
8
|
var srOnlyStyles = {
|
|
8
9
|
position: "absolute",
|
|
9
10
|
width: "1px",
|
|
@@ -17,7 +18,7 @@ var srOnlyStyles = {
|
|
|
17
18
|
transform: "translateX(-100%)"
|
|
18
19
|
};
|
|
19
20
|
styleToString(srOnlyStyles);
|
|
20
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
21
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/hidden-input.svelte
|
|
21
22
|
function Hidden_input($$renderer, $$props) {
|
|
22
23
|
$$renderer.component(($$renderer) => {
|
|
23
24
|
let { value = void 0, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -33,17 +34,19 @@ function Hidden_input($$renderer, $$props) {
|
|
|
33
34
|
}));
|
|
34
35
|
if (mergedProps().type === "checkbox") $$renderer.push(`<!--[0--><input${$.attributes({
|
|
35
36
|
...mergedProps(),
|
|
36
|
-
value
|
|
37
|
+
value,
|
|
38
|
+
defaultchecked: mergedProps().checked
|
|
37
39
|
}, void 0, void 0, void 0, 4)}/>`);
|
|
38
40
|
else $$renderer.push(`<!--[-1--><input${$.attributes({
|
|
41
|
+
...mergedProps(),
|
|
39
42
|
value,
|
|
40
|
-
|
|
43
|
+
defaultvalue: value ?? ""
|
|
41
44
|
}, void 0, void 0, void 0, 4)}/>`);
|
|
42
45
|
$$renderer.push(`<!--]-->`);
|
|
43
46
|
$.bind_props($$props, { value });
|
|
44
47
|
});
|
|
45
48
|
}
|
|
46
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
49
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/internal/data-typeahead.svelte.js
|
|
47
50
|
var DataTypeahead = class {
|
|
48
51
|
#opts;
|
|
49
52
|
#candidateValues = $.derived(() => this.#opts.candidateValues());
|
|
@@ -115,6 +118,11 @@ var SelectBaseRootState = class {
|
|
|
115
118
|
triggerNode = null;
|
|
116
119
|
valueNode = null;
|
|
117
120
|
valueId = "";
|
|
121
|
+
/**
|
|
122
|
+
* Labels for selected values, populated when items are toggled or resolved from
|
|
123
|
+
* mounted item nodes. Used so `<Select.Value>` keeps labels after the menu closes.
|
|
124
|
+
*/
|
|
125
|
+
selectedLabelsByValue = new SvelteMap();
|
|
118
126
|
highlightedNode = null;
|
|
119
127
|
#highlightedValue = $.derived(() => {
|
|
120
128
|
if (!this.highlightedNode) return null;
|
|
@@ -148,6 +156,7 @@ var SelectBaseRootState = class {
|
|
|
148
156
|
}
|
|
149
157
|
contentIsPositioned = false;
|
|
150
158
|
isUsingKeyboard = false;
|
|
159
|
+
pressedItem = null;
|
|
151
160
|
isCombobox = false;
|
|
152
161
|
domContext = new DOMContext(() => null);
|
|
153
162
|
constructor(opts) {
|
|
@@ -166,8 +175,13 @@ var SelectBaseRootState = class {
|
|
|
166
175
|
if (node && (this.isUsingKeyboard || initial)) this.scrollHighlightedNodeIntoView(node);
|
|
167
176
|
}
|
|
168
177
|
scrollHighlightedNodeIntoView(node) {
|
|
169
|
-
|
|
170
|
-
|
|
178
|
+
const viewport = this.viewportNode;
|
|
179
|
+
if (!viewport || !this.contentIsPositioned) return;
|
|
180
|
+
const nodeRect = node.getBoundingClientRect();
|
|
181
|
+
const viewportRect = viewport.getBoundingClientRect();
|
|
182
|
+
if (this.opts.scrollAlignment.current === "center") viewport.scrollTop += nodeRect.top + nodeRect.height / 2 - (viewportRect.top + viewportRect.height / 2);
|
|
183
|
+
else if (nodeRect.top < viewportRect.top) viewport.scrollTop -= viewportRect.top - nodeRect.top;
|
|
184
|
+
else if (nodeRect.bottom > viewportRect.bottom) viewport.scrollTop += nodeRect.bottom - viewportRect.bottom;
|
|
171
185
|
}
|
|
172
186
|
getCandidateNodes() {
|
|
173
187
|
const node = this.contentNode;
|
|
@@ -192,20 +206,27 @@ var SelectBaseRootState = class {
|
|
|
192
206
|
return this.getCandidateNodes().find((node) => node.dataset.value === value) ?? null;
|
|
193
207
|
}
|
|
194
208
|
/**
|
|
195
|
-
* Resolves the display label for a value: `items` entry
|
|
196
|
-
*
|
|
209
|
+
* Resolves the display label for a value: a non-empty `items` entry, otherwise the
|
|
210
|
+
* label cached from the selected item. Never reads the DOM, so it stays reactive and
|
|
211
|
+
* works the same whether items are mounted, unmounted, or force-mounted.
|
|
197
212
|
*/
|
|
198
213
|
getLabelForValue(value) {
|
|
199
214
|
if (value === "") return "";
|
|
200
215
|
const fromItems = this.opts.items.current.find((item) => item.value === value)?.label;
|
|
201
|
-
if (fromItems
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
216
|
+
if (fromItems?.trim()) return fromItems;
|
|
217
|
+
return this.selectedLabelsByValue.get(value) ?? value;
|
|
218
|
+
}
|
|
219
|
+
/** The item's `label`, falling back to its text content when the label is empty. */
|
|
220
|
+
resolveItemLabel(value, label, node) {
|
|
221
|
+
if (label?.trim()) return label;
|
|
222
|
+
return node?.textContent?.trim() || value;
|
|
223
|
+
}
|
|
224
|
+
setSelectedLabel(value, label) {
|
|
225
|
+
if (value === "" || label === value) this.selectedLabelsByValue.delete(value);
|
|
226
|
+
else this.selectedLabelsByValue.set(value, label);
|
|
227
|
+
}
|
|
228
|
+
pruneSelectedLabels(keptValues) {
|
|
229
|
+
for (const value of this.selectedLabelsByValue.keys()) if (!keptValues.includes(value)) this.selectedLabelsByValue.delete(value);
|
|
209
230
|
}
|
|
210
231
|
setOpen(open) {
|
|
211
232
|
this.opts.open.current = open;
|
|
@@ -275,6 +296,9 @@ var SelectSingleRootState = class extends SelectBaseRootState {
|
|
|
275
296
|
if (!this.opts.open.current) return;
|
|
276
297
|
this.setInitialHighlightedNode();
|
|
277
298
|
});
|
|
299
|
+
watch(() => this.opts.value.current, (value) => {
|
|
300
|
+
this.pruneSelectedLabels(value === "" ? [] : [value]);
|
|
301
|
+
});
|
|
278
302
|
}
|
|
279
303
|
includesItem(itemValue) {
|
|
280
304
|
return this.opts.value.current === itemValue;
|
|
@@ -282,17 +306,18 @@ var SelectSingleRootState = class extends SelectBaseRootState {
|
|
|
282
306
|
toggleItem(itemValue, itemLabel = itemValue) {
|
|
283
307
|
const newValue = this.includesItem(itemValue) ? "" : itemValue;
|
|
284
308
|
this.opts.value.current = newValue;
|
|
285
|
-
if (newValue !== "")
|
|
309
|
+
if (newValue !== "") {
|
|
310
|
+
this.setSelectedLabel(itemValue, itemLabel);
|
|
311
|
+
this.opts.inputValue.current = itemLabel;
|
|
312
|
+
}
|
|
286
313
|
}
|
|
287
314
|
setInitialHighlightedNode() {
|
|
288
315
|
afterTick(() => {
|
|
289
316
|
if (this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode)) return;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
317
|
+
const node = this.getNodeByValue(this.opts.value.current);
|
|
318
|
+
if (node) {
|
|
319
|
+
this.setHighlightedNode(node, true);
|
|
320
|
+
return;
|
|
296
321
|
}
|
|
297
322
|
this.setHighlightedToFirstCandidate(true);
|
|
298
323
|
});
|
|
@@ -308,6 +333,7 @@ var SelectMultipleRootState = class extends SelectBaseRootState {
|
|
|
308
333
|
set hasValue($$value) {
|
|
309
334
|
return this.#hasValue($$value);
|
|
310
335
|
}
|
|
336
|
+
#valueSet = $.derived(() => new Set(this.opts.value.current));
|
|
311
337
|
constructor(opts) {
|
|
312
338
|
super(opts);
|
|
313
339
|
this.opts = opts;
|
|
@@ -315,20 +341,26 @@ var SelectMultipleRootState = class extends SelectBaseRootState {
|
|
|
315
341
|
if (!this.opts.open.current) return;
|
|
316
342
|
this.setInitialHighlightedNode();
|
|
317
343
|
});
|
|
344
|
+
watch(() => this.opts.value.current, (value) => {
|
|
345
|
+
this.pruneSelectedLabels(value);
|
|
346
|
+
});
|
|
318
347
|
}
|
|
319
348
|
includesItem(itemValue) {
|
|
320
|
-
return this.
|
|
349
|
+
return this.#valueSet().has(itemValue);
|
|
321
350
|
}
|
|
322
351
|
toggleItem(itemValue, itemLabel = itemValue) {
|
|
323
352
|
if (this.includesItem(itemValue)) this.opts.value.current = this.opts.value.current.filter((v) => v !== itemValue);
|
|
324
|
-
else
|
|
353
|
+
else {
|
|
354
|
+
this.opts.value.current = [...this.opts.value.current, itemValue];
|
|
355
|
+
this.setSelectedLabel(itemValue, itemLabel);
|
|
356
|
+
}
|
|
325
357
|
this.opts.inputValue.current = itemLabel;
|
|
326
358
|
}
|
|
327
359
|
setInitialHighlightedNode() {
|
|
328
360
|
afterTick(() => {
|
|
329
361
|
if (!this.domContext) return;
|
|
330
362
|
if (this.highlightedNode && this.domContext.getDocument().contains(this.highlightedNode)) return;
|
|
331
|
-
if (this.opts.value.current.length
|
|
363
|
+
if (this.opts.value.current.length) {
|
|
332
364
|
const node = this.getNodeByValue(this.opts.value.current[0]);
|
|
333
365
|
if (node) {
|
|
334
366
|
this.setHighlightedNode(node, true);
|
|
@@ -383,7 +415,7 @@ var SelectValueState = class SelectValueState {
|
|
|
383
415
|
type: "single",
|
|
384
416
|
selected: value !== "" ? {
|
|
385
417
|
value,
|
|
386
|
-
label:
|
|
418
|
+
label: this.root.getLabelForValue(value)
|
|
387
419
|
} : void 0,
|
|
388
420
|
setValue: this.setValue
|
|
389
421
|
},
|
|
@@ -469,12 +501,13 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
469
501
|
*
|
|
470
502
|
*/
|
|
471
503
|
#handleKeyboardSelection() {
|
|
504
|
+
if (this.root.opts.disabled.current) return false;
|
|
472
505
|
const isCurrentSelectedValue = this.root.highlightedValue === this.root.opts.value.current;
|
|
473
506
|
if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {
|
|
474
507
|
this.root.handleClose();
|
|
475
508
|
return true;
|
|
476
509
|
}
|
|
477
|
-
if (this.root.highlightedValue !== null) this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel
|
|
510
|
+
if (this.root.highlightedValue !== null) this.root.toggleItem(this.root.highlightedValue, this.root.resolveItemLabel(this.root.highlightedValue, this.root.highlightedLabel, this.root.highlightedNode));
|
|
478
511
|
if (!this.root.isMulti && !isCurrentSelectedValue) {
|
|
479
512
|
this.root.handleClose();
|
|
480
513
|
return true;
|
|
@@ -510,7 +543,7 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
510
543
|
}
|
|
511
544
|
if ((e.key === "Enter" || e.key === " " && this.#domTypeahead.search === "") && !e.isComposing) {
|
|
512
545
|
e.preventDefault();
|
|
513
|
-
if (this.#handleKeyboardSelection()) return;
|
|
546
|
+
if (this.#handleKeyboardSelection() || e.key === " ") return;
|
|
514
547
|
}
|
|
515
548
|
if (e.key === "ArrowUp" && e.altKey) this.root.handleClose();
|
|
516
549
|
if (FIRST_LAST_KEYS.includes(e.key)) {
|
|
@@ -536,9 +569,10 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
536
569
|
const candidateNodes = this.root.getCandidateNodes();
|
|
537
570
|
if (e.key === "Tab") return;
|
|
538
571
|
if (!isModifierKey && (isCharacterKey || isSpaceKey)) {
|
|
539
|
-
|
|
572
|
+
const matchedNode = this.#domTypeahead.handleTypeaheadSearch(e.key, candidateNodes);
|
|
573
|
+
if (isSpaceKey) {
|
|
540
574
|
e.preventDefault();
|
|
541
|
-
this.#handleKeyboardSelection();
|
|
575
|
+
if (!matchedNode) this.#handleKeyboardSelection();
|
|
542
576
|
}
|
|
543
577
|
return;
|
|
544
578
|
}
|
|
@@ -546,9 +580,13 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
546
580
|
}
|
|
547
581
|
onclick(e) {
|
|
548
582
|
e.currentTarget.focus();
|
|
583
|
+
if (this.root.opts.disabled.current || e.detail !== 0) return;
|
|
584
|
+
if (this.root.opts.open.current) this.root.handleClose();
|
|
585
|
+
else this.#handleOpen();
|
|
586
|
+
e.preventDefault();
|
|
549
587
|
}
|
|
550
588
|
onpointerdown(e) {
|
|
551
|
-
if (this.root.opts.disabled.current) return;
|
|
589
|
+
if (this.root.opts.disabled.current || isDisabledElement(this.opts.ref.current)) return;
|
|
552
590
|
if (e.pointerType === "touch") return e.preventDefault();
|
|
553
591
|
const target = e.target;
|
|
554
592
|
if (target?.hasPointerCapture(e.pointerId)) target?.releasePointerCapture(e.pointerId);
|
|
@@ -558,7 +596,7 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
558
596
|
}
|
|
559
597
|
}
|
|
560
598
|
onpointerup(e) {
|
|
561
|
-
if (this.root.opts.disabled.current) return;
|
|
599
|
+
if (this.root.opts.disabled.current || isDisabledElement(this.opts.ref.current)) return;
|
|
562
600
|
e.preventDefault();
|
|
563
601
|
if (e.pointerType === "touch") {
|
|
564
602
|
if (this.root.opts.open.current === false) this.#handlePointerOpen(e);
|
|
@@ -567,9 +605,11 @@ var SelectTriggerState = class SelectTriggerState {
|
|
|
567
605
|
}
|
|
568
606
|
#props = $.derived(() => ({
|
|
569
607
|
id: this.opts.id.current,
|
|
608
|
+
role: "combobox",
|
|
570
609
|
disabled: this.root.opts.disabled.current ? true : void 0,
|
|
571
610
|
"aria-haspopup": "listbox",
|
|
572
611
|
"aria-expanded": boolToStr(this.root.opts.open.current),
|
|
612
|
+
"aria-controls": this.root.contentNode?.id || void 0,
|
|
573
613
|
"aria-activedescendant": this.root.highlightedId,
|
|
574
614
|
"data-state": getDataOpenClosed(this.root.opts.open.current),
|
|
575
615
|
"data-disabled": boolToEmptyStrOrUndef(this.root.opts.disabled.current),
|
|
@@ -596,6 +636,7 @@ var SelectContentState = class SelectContentState {
|
|
|
596
636
|
root;
|
|
597
637
|
attachment;
|
|
598
638
|
isPositioned = false;
|
|
639
|
+
userHasScrolled = false;
|
|
599
640
|
domContext;
|
|
600
641
|
constructor(opts, root) {
|
|
601
642
|
this.opts = opts;
|
|
@@ -607,21 +648,39 @@ var SelectContentState = class SelectContentState {
|
|
|
607
648
|
if (this.root.opts.open.current) return;
|
|
608
649
|
this.root.contentIsPositioned = false;
|
|
609
650
|
this.isPositioned = false;
|
|
651
|
+
this.userHasScrolled = false;
|
|
610
652
|
});
|
|
611
653
|
watch([() => this.isPositioned, () => this.root.highlightedNode], () => {
|
|
612
654
|
if (!this.isPositioned || !this.root.highlightedNode) return;
|
|
655
|
+
if (this.root.isUsingKeyboard) this.userHasScrolled = false;
|
|
613
656
|
this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode);
|
|
614
657
|
});
|
|
658
|
+
watch([() => this.isPositioned, () => this.root.viewportNode], () => {
|
|
659
|
+
const viewport = this.root.viewportNode;
|
|
660
|
+
if (!this.isPositioned || !viewport) return;
|
|
661
|
+
const onUserScroll = () => {
|
|
662
|
+
this.userHasScrolled = true;
|
|
663
|
+
};
|
|
664
|
+
const observer = new (this.domContext.getWindow()).ResizeObserver(() => {
|
|
665
|
+
if (this.userHasScrolled || !this.root.highlightedNode) return;
|
|
666
|
+
this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode);
|
|
667
|
+
});
|
|
668
|
+
observer.observe(viewport);
|
|
669
|
+
return executeCallbacks(on(viewport, "wheel", onUserScroll, { passive: true }), on(viewport, "touchmove", onUserScroll, { passive: true }), () => observer.disconnect());
|
|
670
|
+
});
|
|
615
671
|
this.onpointermove = this.onpointermove.bind(this);
|
|
616
672
|
}
|
|
617
673
|
onpointermove(_) {
|
|
618
674
|
this.root.isUsingKeyboard = false;
|
|
619
675
|
}
|
|
676
|
+
onpointerdowncapture = () => {
|
|
677
|
+
this.root.pressedItem = null;
|
|
678
|
+
};
|
|
620
679
|
#styles = $.derived(() => {
|
|
621
680
|
return getFloatingContentCSSVars(this.root.isCombobox ? "combobox" : "select");
|
|
622
681
|
});
|
|
623
682
|
onInteractOutside = (e) => {
|
|
624
|
-
if (e
|
|
683
|
+
if (isEventTargetWithin(e, this.root.triggerNode) || isEventTargetWithin(e, this.root.inputNode)) {
|
|
625
684
|
e.preventDefault();
|
|
626
685
|
return;
|
|
627
686
|
}
|
|
@@ -666,6 +725,7 @@ var SelectContentState = class SelectContentState {
|
|
|
666
725
|
...this.#styles()
|
|
667
726
|
},
|
|
668
727
|
onpointermove: this.onpointermove,
|
|
728
|
+
onpointerdowncapture: this.onpointerdowncapture,
|
|
669
729
|
...this.attachment
|
|
670
730
|
}));
|
|
671
731
|
get props() {
|
|
@@ -696,6 +756,13 @@ var SelectItemState = class SelectItemState {
|
|
|
696
756
|
opts;
|
|
697
757
|
root;
|
|
698
758
|
attachment;
|
|
759
|
+
#isDisabled = $.derived(() => this.root.opts.disabled.current || this.opts.disabled.current);
|
|
760
|
+
get isDisabled() {
|
|
761
|
+
return this.#isDisabled();
|
|
762
|
+
}
|
|
763
|
+
set isDisabled($$value) {
|
|
764
|
+
return this.#isDisabled($$value);
|
|
765
|
+
}
|
|
699
766
|
#isSelected = $.derived(() => this.root.includesItem(this.opts.value.current));
|
|
700
767
|
get isSelected() {
|
|
701
768
|
return this.#isSelected();
|
|
@@ -710,8 +777,10 @@ var SelectItemState = class SelectItemState {
|
|
|
710
777
|
set isHighlighted($$value) {
|
|
711
778
|
return this.#isHighlighted($$value);
|
|
712
779
|
}
|
|
780
|
+
#isHighlightedAndEnabled = $.derived(() => this.isHighlighted && !this.isDisabled);
|
|
713
781
|
prevHighlighted = new Previous(() => this.isHighlighted);
|
|
714
782
|
mounted = false;
|
|
783
|
+
#removeTouchClickListener;
|
|
715
784
|
constructor(opts, root) {
|
|
716
785
|
this.opts = opts;
|
|
717
786
|
this.root = root;
|
|
@@ -724,18 +793,30 @@ var SelectItemState = class SelectItemState {
|
|
|
724
793
|
if (!this.mounted) return;
|
|
725
794
|
this.root.setInitialHighlightedNode();
|
|
726
795
|
});
|
|
796
|
+
watch([
|
|
797
|
+
() => this.isSelected,
|
|
798
|
+
() => this.mounted,
|
|
799
|
+
() => this.opts.value.current,
|
|
800
|
+
() => this.opts.label.current
|
|
801
|
+
], ([selected, mounted, value]) => {
|
|
802
|
+
if (!selected || !mounted) return;
|
|
803
|
+
this.root.setSelectedLabel(value, this.#resolveLabel());
|
|
804
|
+
});
|
|
727
805
|
this.onpointerdown = this.onpointerdown.bind(this);
|
|
728
806
|
this.onpointerup = this.onpointerup.bind(this);
|
|
729
807
|
this.onpointermove = this.onpointermove.bind(this);
|
|
730
808
|
}
|
|
809
|
+
#resolveLabel() {
|
|
810
|
+
return this.root.resolveItemLabel(this.opts.value.current, this.opts.label.current, this.opts.ref.current);
|
|
811
|
+
}
|
|
731
812
|
handleSelect() {
|
|
732
|
-
if (this.
|
|
813
|
+
if (this.isDisabled) return;
|
|
733
814
|
const isCurrentSelectedValue = this.opts.value.current === this.root.opts.value.current;
|
|
734
815
|
if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {
|
|
735
816
|
this.root.handleClose();
|
|
736
817
|
return;
|
|
737
818
|
}
|
|
738
|
-
this.root.toggleItem(this.opts.value.current, this
|
|
819
|
+
this.root.toggleItem(this.opts.value.current, this.#resolveLabel());
|
|
739
820
|
if (!this.root.isMulti && !isCurrentSelectedValue) this.root.handleClose();
|
|
740
821
|
}
|
|
741
822
|
#snippetProps = $.derived(() => ({
|
|
@@ -750,6 +831,11 @@ var SelectItemState = class SelectItemState {
|
|
|
750
831
|
}
|
|
751
832
|
onpointerdown(e) {
|
|
752
833
|
e.preventDefault();
|
|
834
|
+
this.root.pressedItem = {
|
|
835
|
+
item: this,
|
|
836
|
+
x: e.clientX,
|
|
837
|
+
y: e.clientY
|
|
838
|
+
};
|
|
753
839
|
}
|
|
754
840
|
/**
|
|
755
841
|
* Using `pointerup` instead of `click` allows power users to pointerdown
|
|
@@ -757,14 +843,22 @@ var SelectItemState = class SelectItemState {
|
|
|
757
843
|
* multiple clicks.
|
|
758
844
|
*/
|
|
759
845
|
onpointerup(e) {
|
|
846
|
+
this.#removeTouchClickListener?.();
|
|
760
847
|
if (e.defaultPrevented || !this.opts.ref.current) return;
|
|
848
|
+
const press = this.root.pressedItem;
|
|
849
|
+
this.root.pressedItem = null;
|
|
850
|
+
if (press && press.item !== this && Math.hypot(e.clientX - press.x, e.clientY - press.y) < 4) {
|
|
851
|
+
e.preventDefault();
|
|
852
|
+
press.item.handleSelect();
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
761
855
|
/**
|
|
762
856
|
* For one reason or another, when it's a touch pointer and _not_ on IOS,
|
|
763
857
|
* we need to listen for the immediate click event to handle the selection,
|
|
764
858
|
* otherwise a click event will fire on the element _behind_ the item.
|
|
765
859
|
*/
|
|
766
860
|
if (e.pointerType === "touch" && !isIOS) {
|
|
767
|
-
on(this.opts.ref.current, "click", () => {
|
|
861
|
+
this.#removeTouchClickListener = on(this.opts.ref.current, "click", () => {
|
|
768
862
|
this.handleSelect();
|
|
769
863
|
this.root.setHighlightedNode(this.opts.ref.current);
|
|
770
864
|
}, { once: true });
|
|
@@ -787,11 +881,11 @@ var SelectItemState = class SelectItemState {
|
|
|
787
881
|
#props = $.derived(() => ({
|
|
788
882
|
id: this.opts.id.current,
|
|
789
883
|
role: "option",
|
|
790
|
-
"aria-selected":
|
|
884
|
+
"aria-selected": boolToStr(this.isSelected),
|
|
791
885
|
"data-value": this.opts.value.current,
|
|
792
|
-
"data-disabled": boolToEmptyStrOrUndef(this.
|
|
793
|
-
"data-highlighted": this
|
|
794
|
-
"data-selected":
|
|
886
|
+
"data-disabled": boolToEmptyStrOrUndef(this.isDisabled),
|
|
887
|
+
"data-highlighted": boolToEmptyStrOrUndef(this.#isHighlightedAndEnabled()),
|
|
888
|
+
"data-selected": boolToEmptyStrOrUndef(this.isSelected),
|
|
795
889
|
"data-label": this.opts.label.current,
|
|
796
890
|
[this.root.getBitsAttr("item")]: "",
|
|
797
891
|
onpointermove: this.onpointermove,
|
|
@@ -878,7 +972,7 @@ var SelectViewportState = class SelectViewportState {
|
|
|
878
972
|
return this.#props($$value);
|
|
879
973
|
}
|
|
880
974
|
};
|
|
881
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
975
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte
|
|
882
976
|
function Select_hidden_input($$renderer, $$props) {
|
|
883
977
|
$$renderer.component(($$renderer) => {
|
|
884
978
|
let { value = void 0, autocomplete } = $$props;
|
|
@@ -910,7 +1004,7 @@ function Select_hidden_input($$renderer, $$props) {
|
|
|
910
1004
|
$.bind_props($$props, { value });
|
|
911
1005
|
});
|
|
912
1006
|
}
|
|
913
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
1007
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-content.svelte
|
|
914
1008
|
function Select_content$1($$renderer, $$props) {
|
|
915
1009
|
$$renderer.component(($$renderer) => {
|
|
916
1010
|
const uid = $.props_id($$renderer);
|
|
@@ -999,14 +1093,14 @@ function Select_content$1($$renderer, $$props) {
|
|
|
999
1093
|
$.bind_props($$props, { ref });
|
|
1000
1094
|
});
|
|
1001
1095
|
}
|
|
1002
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
1096
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/utilities/mounted.svelte
|
|
1003
1097
|
function Mounted($$renderer, $$props) {
|
|
1004
1098
|
$$renderer.component(($$renderer) => {
|
|
1005
1099
|
let { mounted = false, onMountedChange = noop } = $$props;
|
|
1006
1100
|
$.bind_props($$props, { mounted });
|
|
1007
1101
|
});
|
|
1008
1102
|
}
|
|
1009
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
1103
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-item.svelte
|
|
1010
1104
|
function Select_item$1($$renderer, $$props) {
|
|
1011
1105
|
$$renderer.component(($$renderer) => {
|
|
1012
1106
|
const uid = $.props_id($$renderer);
|
|
@@ -1057,7 +1151,7 @@ function Select_item$1($$renderer, $$props) {
|
|
|
1057
1151
|
$.bind_props($$props, { ref });
|
|
1058
1152
|
});
|
|
1059
1153
|
}
|
|
1060
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
1154
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte
|
|
1061
1155
|
function Select_viewport($$renderer, $$props) {
|
|
1062
1156
|
$$renderer.component(($$renderer) => {
|
|
1063
1157
|
const uid = $.props_id($$renderer);
|
|
@@ -1080,7 +1174,7 @@ function Select_viewport($$renderer, $$props) {
|
|
|
1080
1174
|
$.bind_props($$props, { ref });
|
|
1081
1175
|
});
|
|
1082
1176
|
}
|
|
1083
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
1177
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select.svelte
|
|
1084
1178
|
function Select$1($$renderer, $$props) {
|
|
1085
1179
|
$$renderer.component(($$renderer) => {
|
|
1086
1180
|
let { value = void 0, onValueChange = noop, name = "", disabled = false, type, open = false, onOpenChange = noop, onOpenChangeComplete = noop, loop = false, scrollAlignment = "nearest", required = false, items = [], allowDeselect = false, autocomplete, children } = $$props;
|
|
@@ -1094,7 +1188,7 @@ function Select$1($$renderer, $$props) {
|
|
|
1094
1188
|
});
|
|
1095
1189
|
let inputValue = "";
|
|
1096
1190
|
const rootState = SelectRootState.create({
|
|
1097
|
-
type,
|
|
1191
|
+
type: untrack(() => type),
|
|
1098
1192
|
value: boxWith(() => value, (v) => {
|
|
1099
1193
|
value = v;
|
|
1100
1194
|
onValueChange(v);
|
|
@@ -1133,13 +1227,10 @@ function Select$1($$renderer, $$props) {
|
|
|
1133
1227
|
} else {
|
|
1134
1228
|
$$renderer.push(`<!--[-1--><!--[-->`);
|
|
1135
1229
|
const each_array = $.ensure_array_like(rootState.opts.value.current);
|
|
1136
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
autocomplete
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1230
|
+
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) Select_hidden_input($$renderer, {
|
|
1231
|
+
value: each_array[$$index],
|
|
1232
|
+
autocomplete
|
|
1233
|
+
});
|
|
1143
1234
|
$$renderer.push(`<!--]-->`);
|
|
1144
1235
|
}
|
|
1145
1236
|
$$renderer.push(`<!--]-->`);
|
|
@@ -1170,7 +1261,7 @@ function Select$1($$renderer, $$props) {
|
|
|
1170
1261
|
});
|
|
1171
1262
|
});
|
|
1172
1263
|
}
|
|
1173
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
1264
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-value.svelte
|
|
1174
1265
|
function Select_value$1($$renderer, $$props) {
|
|
1175
1266
|
$$renderer.component(($$renderer) => {
|
|
1176
1267
|
const uid = $.props_id($$renderer);
|
|
@@ -1203,7 +1294,7 @@ function Select_value$1($$renderer, $$props) {
|
|
|
1203
1294
|
$.bind_props($$props, { ref });
|
|
1204
1295
|
});
|
|
1205
1296
|
}
|
|
1206
|
-
// ../node_modules/.bun/bits-ui@2.
|
|
1297
|
+
// ../node_modules/.bun/bits-ui@2.22.0+d1c897ff0ec09ac1/node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte
|
|
1207
1298
|
function Select_trigger$1($$renderer, $$props) {
|
|
1208
1299
|
$$renderer.component(($$renderer) => {
|
|
1209
1300
|
const uid = $.props_id($$renderer);
|
|
@@ -1240,7 +1331,7 @@ function Select_trigger$1($$renderer, $$props) {
|
|
|
1240
1331
|
$.bind_props($$props, { ref });
|
|
1241
1332
|
});
|
|
1242
1333
|
}
|
|
1243
|
-
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1334
|
+
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select.svelte
|
|
1244
1335
|
function Select($$renderer, $$props) {
|
|
1245
1336
|
$$renderer.component(($$renderer) => {
|
|
1246
1337
|
let { value = void 0, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1282,7 +1373,7 @@ function Select($$renderer, $$props) {
|
|
|
1282
1373
|
$.bind_props($$props, { value });
|
|
1283
1374
|
});
|
|
1284
1375
|
}
|
|
1285
|
-
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1376
|
+
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-content.svelte
|
|
1286
1377
|
function Select_content($$renderer, $$props) {
|
|
1287
1378
|
$$renderer.component(($$renderer) => {
|
|
1288
1379
|
let { ref = null, class: className, sideOffset = 4, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1344,7 +1435,7 @@ function Select_content($$renderer, $$props) {
|
|
|
1344
1435
|
$.bind_props($$props, { ref });
|
|
1345
1436
|
});
|
|
1346
1437
|
}
|
|
1347
|
-
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1438
|
+
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-item.svelte
|
|
1348
1439
|
function Select_item($$renderer, $$props) {
|
|
1349
1440
|
$$renderer.component(($$renderer) => {
|
|
1350
1441
|
let { ref = null, class: className, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1390,7 +1481,7 @@ function Select_item($$renderer, $$props) {
|
|
|
1390
1481
|
$.bind_props($$props, { ref });
|
|
1391
1482
|
});
|
|
1392
1483
|
}
|
|
1393
|
-
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1484
|
+
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-trigger.svelte
|
|
1394
1485
|
function Select_trigger($$renderer, $$props) {
|
|
1395
1486
|
$$renderer.component(($$renderer) => {
|
|
1396
1487
|
let { ref = null, class: className, child, children, $$slots, $$events, ...restProps } = $$props;
|
|
@@ -1461,7 +1552,7 @@ function Select_trigger($$renderer, $$props) {
|
|
|
1461
1552
|
$.bind_props($$props, { ref });
|
|
1462
1553
|
});
|
|
1463
1554
|
}
|
|
1464
|
-
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+
|
|
1555
|
+
// ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+53b8171973259528/node_modules/@hiai-gg/hiai-ui/dist/components/ui/select/select-value.svelte
|
|
1465
1556
|
function Select_value($$renderer, $$props) {
|
|
1466
1557
|
let { children, $$slots, $$events, ...restProps } = $$props;
|
|
1467
1558
|
if (children) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as Icon } from "./Icon-
|
|
2
|
-
import { t as Circle_check } from "./circle-check-
|
|
3
|
-
import { t as Loader_circle } from "./loader-circle-
|
|
4
|
-
import { t as action_cancel } from "./action_cancel-
|
|
5
|
-
import { r as doc_new_folder_name } from "./sidebar_uncategorized-
|
|
6
|
-
import { t as action_create } from "./action_create-
|
|
7
|
-
import { t as error_generic } from "./error_generic-
|
|
8
|
-
import { t as action_save } from "./action_save-
|
|
9
|
-
import { n as folders_new, t as folders_rename } from "./folders_rename-
|
|
10
|
-
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "./dialog-
|
|
11
|
-
import { t as Input } from "./input-
|
|
12
|
-
import { t as Label } from "./label-
|
|
1
|
+
import { t as Icon } from "./Icon-CBEeswQ2.js";
|
|
2
|
+
import { t as Circle_check } from "./circle-check-CnueRXrc.js";
|
|
3
|
+
import { t as Loader_circle } from "./loader-circle-CK3McH5n.js";
|
|
4
|
+
import { t as action_cancel } from "./action_cancel-B8i5P3wt.js";
|
|
5
|
+
import { r as doc_new_folder_name } from "./sidebar_uncategorized-rpbsgLVr.js";
|
|
6
|
+
import { t as action_create } from "./action_create-DAlNPFeN.js";
|
|
7
|
+
import { t as error_generic } from "./error_generic-BSoVZ_4p.js";
|
|
8
|
+
import { t as action_save } from "./action_save-BQCej1sh.js";
|
|
9
|
+
import { n as folders_new, t as folders_rename } from "./folders_rename-DBtQcf2R.js";
|
|
10
|
+
import { a as Dialog_content, i as Dialog_description, n as Dialog_header, o as Dialog, r as Dialog_footer, s as Button, t as Dialog_title } from "./dialog-B09MN2S-.js";
|
|
11
|
+
import { t as Input } from "./input-Cc45dG_S.js";
|
|
12
|
+
import { t as Label } from "./label-C1_J2397.js";
|
|
13
13
|
import * as $ from "svelte/internal/server";
|
|
14
14
|
import { getContext, setContext } from "svelte";
|
|
15
|
-
// ../node_modules/.bun/lucide-svelte@1.0.1+
|
|
15
|
+
// ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/check.svelte
|
|
16
16
|
function Check($$renderer, $$props) {
|
|
17
17
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
18
18
|
/**
|
|
@@ -88,7 +88,7 @@ function Check($$renderer, $$props) {
|
|
|
88
88
|
}
|
|
89
89
|
]));
|
|
90
90
|
}
|
|
91
|
-
// ../node_modules/.bun/lucide-svelte@1.0.1+
|
|
91
|
+
// ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/file-text.svelte
|
|
92
92
|
function File_text($$renderer, $$props) {
|
|
93
93
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
94
94
|
/**
|
|
@@ -170,7 +170,7 @@ function File_text($$renderer, $$props) {
|
|
|
170
170
|
}
|
|
171
171
|
]));
|
|
172
172
|
}
|
|
173
|
-
// ../node_modules/.bun/lucide-svelte@1.0.1+
|
|
173
|
+
// ../node_modules/.bun/lucide-svelte@1.0.1+39695945a324e2d8/node_modules/lucide-svelte/dist/icons/plus.svelte
|
|
174
174
|
function Plus($$renderer, $$props) {
|
|
175
175
|
const $$sanitized_props = $.sanitize_props($$props);
|
|
176
176
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getLocale } from "./runtime-
|
|
1
|
+
import { t as getLocale } from "./runtime-CoxALrm1.js";
|
|
2
2
|
// src/lib/paraglide/messages/action_back.js
|
|
3
3
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
4
4
|
/** @typedef {{}} Action_BackInputs */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getLocale } from "./runtime-
|
|
1
|
+
import { t as getLocale } from "./runtime-CoxALrm1.js";
|
|
2
2
|
// src/lib/paraglide/messages/share_create_link.js
|
|
3
3
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
4
4
|
/** @typedef {{}} Share_Create_LinkInputs */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as getLocale } from "./runtime-
|
|
1
|
+
import { t as getLocale } from "./runtime-CoxALrm1.js";
|
|
2
2
|
// src/lib/paraglide/messages/action_copy_content.js
|
|
3
3
|
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
4
4
|
/** @typedef {{}} Action_Copy_ContentInputs */
|