@wssto2/vue-core 0.1.0 → 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/README.md +53 -9
- package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js +22 -0
- package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js +76 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js +45 -0
- package/dist/Activity-DviO0VQ8.js +156 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CKghARkW.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js} +48 -47
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-BZb4qKXo.js → AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js} +2 -2
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B82bl36A.js → AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js} +4 -4
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js +51 -0
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js} +1 -1
- package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
- package/dist/Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js +182 -0
- package/dist/Changes-DlT5mN9G.js +129 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js +1481 -0
- package/dist/CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js +299 -0
- package/dist/DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js +52 -0
- package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +1099 -0
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Bx5O1RZJ.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js} +1 -1
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js +276 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js +136 -0
- package/dist/FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js +38 -0
- package/dist/General-BD-Hcz0a.js +145 -0
- package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-VvcV2Bzo.js} +46 -33
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js} +1 -1
- package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-DH6EB8br.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js} +2 -2
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-D44EHXQZ.js → Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js} +61 -57
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DYQgaUtj.js → Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js} +139 -129
- package/dist/NewRolePage-Dla4YnMs.js +42 -0
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js +31 -0
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.js +113 -0
- package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +95 -0
- package/dist/PageBar.vue_vue_type_script_setup_true_lang-Cfr5xsJx.js +47 -0
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js} +1 -1
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DDVQXJRB.js → PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js} +2 -2
- package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
- package/dist/ProfilePage-OJMQ8cr8.js +691 -0
- package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
- package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js +64 -0
- package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js +173 -0
- package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js +299 -0
- package/dist/RolePage-bZzv_E4l.js +315 -0
- package/dist/RolesPage-BniZv0nB.js +115 -0
- package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js +148 -0
- package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js +314 -0
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js +58 -0
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js +422 -0
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js +111 -0
- package/dist/Sessions-Co5-xdeb.js +96 -0
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js +142 -0
- package/dist/SignIn-BWwFbxki.js +140 -0
- package/dist/SignInPage-FnLtoi2q.js +60 -0
- package/dist/SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js +79 -0
- package/dist/SignIns-3UcI64_h.js +66 -0
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js +93 -0
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js +155 -0
- package/dist/TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js +269 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +127 -0
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js} +1 -1
- package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-BJWPVyfT.js → Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js} +1 -1
- package/dist/UserRecord-Ci8HfwbX.js +267 -0
- package/dist/UsersList-vEJ-cgkT.js +155 -0
- package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js +28 -0
- package/dist/access/AddRoleDialog.vue.d.ts +19 -0
- package/dist/access/BindingRow.vue.d.ts +19 -0
- package/dist/access/EffectiveAccess.vue.d.ts +12 -0
- package/dist/access/NewRolePage.vue.d.ts +2 -0
- package/dist/access/PermissionTree.vue.d.ts +13 -0
- package/dist/access/PersonAccess.vue.d.ts +21 -0
- package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
- package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
- package/dist/access/RoleEditor.vue.d.ts +28 -0
- package/dist/access/RolePage.vue.d.ts +2 -0
- package/dist/access/RolesPage.vue.d.ts +2 -0
- package/dist/access/api.d.ts +26 -0
- package/dist/access/catalogue.d.ts +64 -0
- package/dist/access/context.d.ts +20 -0
- package/dist/access/effective.d.ts +42 -0
- package/dist/access/feature.d.ts +27 -0
- package/dist/access/index.d.ts +13 -0
- package/dist/access/index.js +15 -0
- package/dist/access/labels.d.ts +35 -0
- package/dist/access/refusals.d.ts +6 -0
- package/dist/access/routes.d.ts +45 -0
- package/dist/access/scopes.d.ts +20 -0
- package/dist/app/application.d.ts +5 -0
- package/dist/app/contributions.d.ts +1 -1
- package/dist/app/environment.d.ts +2 -0
- package/dist/app/feature.d.ts +8 -0
- package/dist/app/index.js +260 -294
- package/dist/bottomDock-BZEiOPYZ.js +12 -0
- package/dist/button/Button.vue.d.ts +3 -3
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +5 -3
- package/dist/button/shortcut.d.ts +28 -2
- package/dist/chrome-BS3xJcad.js +93 -0
- package/dist/client/client.d.ts +13 -0
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +19 -138
- package/dist/client/route.d.ts +59 -0
- package/dist/client-Bw0aM5Gu.js +147 -0
- package/dist/closeOverlays-CjVsIrpL.js +8 -0
- package/dist/collection/CollectionPage.vue.d.ts +1 -0
- package/dist/collection/CollectionRows.vue.d.ts +59 -0
- package/dist/collection/CollectionTable.vue.d.ts +1 -1
- package/dist/collection/DataTable.vue.d.ts +47 -0
- package/dist/collection/RowActions.vue.d.ts +19 -0
- package/dist/collection/columns.d.ts +2 -0
- package/dist/collection/http.d.ts +4 -2
- package/dist/collection/index.d.ts +4 -2
- package/dist/collection/index.js +87 -2299
- package/dist/collection/rowLayout.d.ts +10 -0
- package/dist/collection/slots.d.ts +6 -3
- package/dist/content/index.js +37 -66
- package/dist/contributions-CDDg3fKp.js +26 -0
- package/dist/controls/DateButton.vue.d.ts +1 -1
- package/dist/controls/PopupButton.vue.d.ts +1 -1
- package/dist/controls/index.js +11 -10
- package/dist/defineRoutes-BGAdiIrt.js +19 -0
- package/dist/describeError-Ctga6GcS.js +41 -0
- package/dist/dialogStack-DZZg55w0.js +31 -0
- package/dist/environment-Dva-SG8D.js +6 -0
- package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
- package/dist/feature-DdUAfyi4.js +25 -0
- package/dist/fieldMessages-C3Rpbktw.js +25 -0
- package/dist/form/CheckboxField.vue.d.ts +1 -1
- package/dist/form/CommandDialog.vue.d.ts +13 -2
- package/dist/form/DateField.vue.d.ts +1 -1
- package/dist/form/DateTimeField.vue.d.ts +1 -1
- package/dist/form/EditorPage.vue.d.ts +1 -1
- package/dist/form/Field.vue.d.ts +1 -1
- package/dist/form/FileField.vue.d.ts +1 -1
- package/dist/form/FormGroup.vue.d.ts +1 -1
- package/dist/form/FormGroupButton.vue.d.ts +1 -1
- package/dist/form/FormRow.vue.d.ts +1 -1
- package/dist/form/I18nField.vue.d.ts +3 -3
- package/dist/form/MoneyField.vue.d.ts +1 -1
- package/dist/form/MonthYearField.vue.d.ts +1 -1
- package/dist/form/MultiSelectField.vue.d.ts +4 -1
- package/dist/form/NumberCell.vue.d.ts +1 -1
- package/dist/form/NumberField.vue.d.ts +8 -2
- package/dist/form/OptionList.vue.d.ts +6 -2
- package/dist/form/OtpInput.vue.d.ts +2 -2
- package/dist/form/PhotoField.vue.d.ts +1 -1
- package/dist/form/SelectField.vue.d.ts +4 -1
- package/dist/form/SwitchField.vue.d.ts +1 -1
- package/dist/form/TextField.vue.d.ts +3 -3
- package/dist/form/TextareaField.vue.d.ts +3 -3
- package/dist/form/TimeField.vue.d.ts +1 -1
- package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
- package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +1273 -3509
- package/dist/form/suggestions.d.ts +11 -0
- package/dist/form/useOptions.d.ts +60 -0
- package/dist/guards-Cd1V28oG.js +51 -0
- package/dist/http-DGGSKWvU.js +193 -0
- package/dist/i18n/describeError.d.ts +31 -0
- package/dist/i18n/index.d.ts +307 -0
- package/dist/i18n/index.js +54 -52
- package/dist/icon/core.d.ts +13 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
- package/dist/identity/LocaleSync.vue.d.ts +2 -0
- package/dist/identity/SessionExpiry.vue.d.ts +2 -0
- package/dist/identity/SignInAsButton.vue.d.ts +15 -0
- package/dist/identity/SignInPage.vue.d.ts +2 -0
- package/dist/identity/context.d.ts +7 -0
- package/dist/identity/feature.d.ts +16 -0
- package/dist/identity/fieldMessages.d.ts +15 -0
- package/dist/identity/index.d.ts +16 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
- package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
- package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
- package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
- package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
- package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
- package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
- package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
- package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
- package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
- package/dist/identity/profile/routes.d.ts +13 -0
- package/dist/identity/session.d.ts +30 -0
- package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
- package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
- package/dist/identity/shared/PageBar.vue.d.ts +12 -0
- package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
- package/dist/identity/shared/SessionList.vue.d.ts +19 -0
- package/dist/{phone/CountryFlag.vue.d.ts → identity/shared/SignInTable.vue.d.ts} +5 -4
- package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
- package/dist/identity/shared/signInEvents.d.ts +9 -0
- package/dist/identity/signIn.d.ts +27 -0
- package/dist/identity/useSignInForm.d.ts +20 -0
- package/dist/identity/user.d.ts +6 -0
- package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
- package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
- package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
- package/dist/identity/users/UserRecord.vue.d.ts +2 -0
- package/dist/identity/users/UsersList.vue.d.ts +2 -0
- package/dist/identity/users/access.d.ts +4 -0
- package/dist/identity/users/context.d.ts +9 -0
- package/dist/identity/users/feature.d.ts +34 -0
- package/dist/identity/users/languages.d.ts +4 -0
- package/dist/identity/users/list.d.ts +8 -0
- package/dist/identity/users/person.d.ts +26 -0
- package/dist/identity/users/personSections.d.ts +22 -0
- package/dist/identity/users/routes.d.ts +22 -0
- package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
- package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
- package/dist/identity/users/sections/General.vue.d.ts +2 -0
- package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
- package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
- package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
- package/dist/identity/users/status.d.ts +4 -0
- package/dist/index-B2dbYZR9.js +706 -0
- package/dist/index-BAcl44SC.js +459 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/CountryFlag.vue.d.ts +10 -0
- package/dist/internal/languageName.d.ts +2 -0
- package/dist/keepAlive-WYQGRhuz.js +48 -0
- package/dist/languageName-CItV_SOv.js +11 -0
- package/dist/languages-BShG9LpE.js +10 -0
- package/dist/leaveGuard-Cc8yeLxM.js +72 -0
- package/dist/modal/Modal.vue.d.ts +4 -0
- package/dist/modal/ShortcutHelp.vue.d.ts +2 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +64 -6
- package/dist/modal/placement.d.ts +22 -0
- package/dist/modules/access/entities.d.ts +112 -0
- package/dist/modules/access/routes.d.ts +67 -0
- package/dist/modules/access/schemas.d.ts +73 -0
- package/dist/modules/identity/entities.d.ts +150 -0
- package/dist/modules/identity/routes.d.ts +118 -0
- package/dist/modules/identity/schemas.d.ts +145 -0
- package/dist/{navigation-B33ikiCS.js → navigation-BPWa63ge.js} +21 -20
- package/dist/neighbors-D0WRBxXI.js +86 -0
- package/dist/{options-CjSz2dQK.js → options-BXkMR63B.js} +48 -49
- package/dist/overlay/AlertDialog.vue.d.ts +3 -3
- package/dist/overlay/Popover.vue.d.ts +4 -1
- package/dist/overlay/closeOverlays.d.ts +7 -0
- package/dist/overlay/dialogStack.d.ts +9 -0
- package/dist/overlay/index.d.ts +1 -1
- package/dist/overlay/index.js +20 -18
- package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
- package/dist/page/ResourceHeader.vue.d.ts +2 -2
- package/dist/page/index.js +99 -457
- package/dist/phone/PhoneField.vue.d.ts +2 -2
- package/dist/phone/index.js +247 -540
- package/dist/platform/AccessGate.vue.d.ts +50 -0
- package/dist/platform/index.d.ts +4 -2
- package/dist/platform/index.js +38 -35
- package/dist/platform/platform.d.ts +2 -2
- package/dist/platform/session.d.ts +22 -1
- package/dist/platform-hunMqFdB.js +255 -0
- package/dist/resource/index.js +8 -248
- package/dist/routeResource-DstM0hvf.js +82 -0
- package/dist/router/guards.d.ts +7 -1
- package/dist/router/index.js +23 -37
- package/dist/router/navigation.d.ts +1 -1
- package/dist/rowLayout-BI7a3Kom.js +603 -0
- package/dist/sectionIndex-BS0ic5W7.js +86 -0
- package/dist/{sections-LtxV5Mtk.js → sections-BEqW1dOc.js} +1 -1
- package/dist/shell/AccountMenuItem.vue.d.ts +4 -1
- package/dist/shell/BackofficeShell.vue.d.ts +2 -2
- package/dist/shell/ShellBrand.vue.d.ts +1 -1
- package/dist/shell/backofficeShell.d.ts +1 -1
- package/dist/shell/identity.d.ts +1 -1
- package/dist/shell/index.js +476 -532
- package/dist/state/Badge.vue.d.ts +17 -10
- package/dist/state/ProgressTrack.vue.d.ts +1 -1
- package/dist/state/hue.d.ts +8 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/index.js +34 -31
- package/dist/state/useLoad.d.ts +41 -0
- package/dist/status-C9aXR-Jb.js +33 -0
- package/dist/styles.css +1 -1
- package/dist/suggestions-BJAqOj4c.js +138 -0
- package/dist/testing/app.d.ts +61 -0
- package/dist/testing/async.d.ts +12 -0
- package/dist/testing/collection.d.ts +18 -0
- package/dist/testing/format.d.ts +9 -0
- package/dist/testing/i18n.d.ts +16 -0
- package/dist/testing/index.d.ts +14 -0
- package/dist/testing/index.js +178 -0
- package/dist/testing/media.d.ts +23 -0
- package/dist/testing/platform.d.ts +40 -0
- package/dist/testing/transport.d.ts +40 -0
- package/dist/toast-D9Z5To38.js +13 -0
- package/dist/useCommand-BgRwnYlV.js +135 -0
- package/dist/{useDialog-wmyNx2j_.js → useDialog-CXR3hN0G.js} +1 -1
- package/dist/useLoad-CYRVx6HW.js +39 -0
- package/dist/useResourceForm-Bgc9jMcu.js +52 -0
- package/dist/useSaveChrome-chi6D3HY.js +25 -0
- package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
- package/package.json +26 -5
- package/src/styles/theme.css +60 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DKc6ugmr.js +0 -31
- package/dist/Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js +0 -141
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-DGcKX_OJ.js +0 -230
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-SyFWE33A.js +0 -422
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.js +0 -210
- package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
- package/dist/chrome-D9pwD6iS.js +0 -101
- package/dist/dialogStack-DiTG1rZc.js +0 -26
- package/dist/environment-D3nozt9a.js +0 -75
- package/dist/feature-DyDtyMLU.js +0 -47
- package/dist/platform-jqlKVJ2e.js +0 -244
- package/dist/toast-BTeX0r66.js +0 -129
- /package/dist/{phone → internal}/flagLoaders.d.ts +0 -0
package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-VvcV2Bzo.js}
RENAMED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { d as
|
|
3
|
-
const [l] =
|
|
4
|
-
function
|
|
5
|
-
const e = {},
|
|
6
|
-
return o.forEach((
|
|
7
|
-
for (const [s, i] of Object.entries(
|
|
1
|
+
import { inject as v, provide as C, defineComponent as p, h as d } from "vue";
|
|
2
|
+
import { d as L } from "./context-Ch1r4fdN.js";
|
|
3
|
+
const [l] = L("vue-core.icons");
|
|
4
|
+
function g(o) {
|
|
5
|
+
const e = {}, t = /* @__PURE__ */ new Map();
|
|
6
|
+
return o.forEach((r, n) => {
|
|
7
|
+
for (const [s, i] of Object.entries(r)) {
|
|
8
8
|
if (i === void 0) continue;
|
|
9
|
-
const w =
|
|
9
|
+
const w = t.get(s);
|
|
10
10
|
if (w !== void 0) throw new Error(`[vue-core] The icon "${s}" is in two icon sets (#${w + 1} and #${n + 1}); each icon comes from one set.`);
|
|
11
|
-
|
|
11
|
+
t.set(s, n), e[s] = i;
|
|
12
12
|
}
|
|
13
13
|
}), e;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
o.provide(l,
|
|
15
|
+
function f(o, ...e) {
|
|
16
|
+
o.provide(l, g(e));
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
18
|
+
function m(...o) {
|
|
19
|
+
C(l, { ...v(l, {}), ...g(o) });
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return
|
|
21
|
+
function V() {
|
|
22
|
+
return v(l, {});
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const u = {
|
|
25
25
|
close: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path></svg>',
|
|
26
26
|
loader4Line: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.364 5.63604L16.9497 7.05025C15.683 5.7835 13.933 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12H21C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C14.4853 3 16.7353 4.00736 18.364 5.63604Z"></path></svg>',
|
|
27
27
|
expandUpDownLine: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.2072 9.0428 12.0001 2.83569 5.793 9.0428 7.20721 10.457 12.0001 5.66412 16.793 10.457 18.2072 9.0428ZM5.79285 14.9572 12 21.1643 18.2071 14.9572 16.7928 13.543 12 18.3359 7.20706 13.543 5.79285 14.9572Z"></path></svg>',
|
|
@@ -56,27 +56,40 @@ const x = {
|
|
|
56
56
|
phone: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z"/></svg>',
|
|
57
57
|
message: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',
|
|
58
58
|
copy: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/></svg>',
|
|
59
|
-
history: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>'
|
|
59
|
+
history: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>',
|
|
60
|
+
user3Line: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"></path></svg>',
|
|
61
|
+
key2Line: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z"></path></svg>',
|
|
62
|
+
deviceLine: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 8H21C21.5523 8 22 8.44772 22 9V21C22 21.5523 21.5523 22 21 22H13C12.4477 22 12 21.5523 12 21V20H4C3.44772 20 3 19.5523 3 19V3C3 2.44772 3.44772 2 4 2H18C18.5523 2 19 2.44772 19 3V8ZM17 8V4H5V18H12V9C12 8.44772 12.4477 8 13 8H17ZM14 10V20H20V10H14Z"></path></svg>',
|
|
63
|
+
timeFill: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM13 12V7H11V14H17V12H13Z"></path></svg>',
|
|
64
|
+
edit: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>',
|
|
65
|
+
lockLine: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M19 10H20C20.5523 10 21 10.4477 21 11V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V11C3 10.4477 3.44772 10 4 10H5V9C5 5.13401 8.13401 2 12 2C15.866 2 19 5.13401 19 9V10ZM5 12V20H19V12H5ZM11 14H13V18H11V14ZM17 10V9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9V10H17Z"></path></svg>',
|
|
66
|
+
checkCircle: '<svg viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" class="css-i6dzq1"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>',
|
|
67
|
+
addLine: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z"></path></svg>',
|
|
68
|
+
mailUnreadFill: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.8032 8.4928C19.4663 8.81764 20.2118 9 21 9C21.3425 9 21.6769 8.96557 22 8.89998V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H16.1C16.0344 3.32311 16 3.65753 16 4C16 5.23672 16.449 6.36857 17.1929 7.24142L12.0606 11.6829L5.64722 6.2377L4.35278 7.7623L12.0731 14.3171L18.8032 8.4928ZM21 7C19.3431 7 18 5.65685 18 4C18 2.34315 19.3431 1 21 1C22.6569 1 24 2.34315 24 4C24 5.65685 22.6569 7 21 7Z"></path></svg>',
|
|
69
|
+
eyeOff: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><line x1="1" y1="1" x2="23" y2="23"/></svg>',
|
|
70
|
+
listCheck: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"></path></svg>',
|
|
71
|
+
shieldStarFill: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3.78307 2.82598L12 1L20.2169 2.82598C20.6745 2.92766 21 3.33347 21 3.80217V13.7889C21 15.795 19.9974 17.6684 18.3282 18.7812L12 23L5.6718 18.7812C4.00261 17.6684 3 15.795 3 13.7889V3.80217C3 3.33347 3.32553 2.92766 3.78307 2.82598ZM12 13.5L14.9389 15.0451L14.3776 11.7725L16.7553 9.45492L13.4695 8.97746L12 6L10.5305 8.97746L7.24472 9.45492L9.62236 11.7725L9.06107 15.0451L12 13.5Z"></path></svg>',
|
|
72
|
+
swapBoxLine: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4.00488 5.00275V19.0027H20.0049V5.00275H4.00488ZM3.00488 3.00275H21.0049C21.5572 3.00275 22.0049 3.45046 22.0049 4.00275V20.0027C22.0049 20.555 21.5572 21.0027 21.0049 21.0027H3.00488C2.4526 21.0027 2.00488 20.555 2.00488 20.0027V4.00275C2.00488 3.45046 2.4526 3.00275 3.00488 3.00275ZM15.0049 7.00275L18.5049 10.0027L15.0049 13.0027V11.0027H11.0049V9.00275H15.0049V7.00275ZM9.00488 17.0027L5.50488 14.0027L9.00488 11.0027V13.0027H13.0049V15.0027H9.00488V17.0027Z"></path></svg>'
|
|
60
73
|
}, a = /* @__PURE__ */ new Map();
|
|
61
|
-
function
|
|
74
|
+
function c(o) {
|
|
62
75
|
const e = {};
|
|
63
|
-
for (const
|
|
76
|
+
for (const t of Array.from(o.attributes)) e[t.name] = t.value;
|
|
64
77
|
return {
|
|
65
78
|
tag: o.localName,
|
|
66
79
|
attrs: e,
|
|
67
|
-
children: Array.from(o.children).map(
|
|
80
|
+
children: Array.from(o.children).map(c)
|
|
68
81
|
};
|
|
69
82
|
}
|
|
70
|
-
function
|
|
83
|
+
function H(o) {
|
|
71
84
|
const e = a.get(o);
|
|
72
85
|
if (e !== void 0) return e;
|
|
73
|
-
const
|
|
74
|
-
return a.set(o,
|
|
86
|
+
const t = new DOMParser().parseFromString(o, "image/svg+xml").documentElement, r = t.localName === "svg" && !t.querySelector("parsererror") ? c(t) : null;
|
|
87
|
+
return a.set(o, r), r;
|
|
75
88
|
}
|
|
76
89
|
function h(o, e = {}) {
|
|
77
|
-
return
|
|
90
|
+
return d(o.tag, { ...o.attrs, ...e }, o.children.map((t) => h(t)));
|
|
78
91
|
}
|
|
79
|
-
const k =
|
|
92
|
+
const k = p({
|
|
80
93
|
name: "Icon",
|
|
81
94
|
props: {
|
|
82
95
|
name: { type: String, required: !0 },
|
|
@@ -84,10 +97,10 @@ const k = d({
|
|
|
84
97
|
label: { type: String, default: void 0 }
|
|
85
98
|
},
|
|
86
99
|
setup(o) {
|
|
87
|
-
const e =
|
|
88
|
-
let
|
|
100
|
+
const e = V();
|
|
101
|
+
let t = null;
|
|
89
102
|
return () => {
|
|
90
|
-
const
|
|
103
|
+
const r = e[o.name] ?? u[o.name], n = r === void 0 ? null : H(r);
|
|
91
104
|
return n ? h(n, {
|
|
92
105
|
width: o.size,
|
|
93
106
|
height: o.size,
|
|
@@ -95,15 +108,15 @@ const k = d({
|
|
|
95
108
|
...o.label === void 0 ? { "aria-hidden": "true" } : { role: "img", "aria-label": o.label },
|
|
96
109
|
// Vertically centred on the text line; `shrink-0` so a flex row never squeezes it.
|
|
97
110
|
class: "shrink-0 align-[-0.125em]"
|
|
98
|
-
}) : (
|
|
111
|
+
}) : (t !== o.name && (t = o.name, console.error(`[vue-core] Icon "${o.name}" is in no installed icon set and is not a library icon: add its SVG to a set passed to installIcons() / createApplication({ icons }).`)), null);
|
|
99
112
|
};
|
|
100
113
|
}
|
|
101
114
|
});
|
|
102
115
|
export {
|
|
103
116
|
k as _,
|
|
104
117
|
l as a,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
118
|
+
u as c,
|
|
119
|
+
f as i,
|
|
120
|
+
m as p,
|
|
121
|
+
V as u
|
|
109
122
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, openBlock as t, createElementBlock as o, normalizeClass as r, createBlock as l, unref as c, toDisplayString as d, createCommentVNode as x } from "vue";
|
|
2
|
-
import { _ as u } from "./Icon.vue_vue_type_script_lang-
|
|
2
|
+
import { _ as u } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
|
|
3
3
|
const m = ["data-tone"], g = /* @__PURE__ */ s({
|
|
4
4
|
__name: "IconTile",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as p, useSlots as f, computed as v, openBlock as a, createElementBlock as l, createElementVNode as t, createTextVNode as r, toDisplayString as o, renderSlot as d, normalizeClass as _, Fragment as x, unref as y } from "vue";
|
|
2
|
+
import { useI18n as b } from "vue-i18n";
|
|
3
|
+
const g = { class: "min-w-0" }, k = { class: "flex items-center gap-1 text-xs text-content-muted" }, w = { class: "sr-only" }, E = /* @__PURE__ */ p({
|
|
4
|
+
__name: "KeyValue",
|
|
5
|
+
props: {
|
|
6
|
+
label: {},
|
|
7
|
+
value: { default: void 0 },
|
|
8
|
+
wrap: { type: Boolean, default: !0 }
|
|
9
|
+
},
|
|
10
|
+
setup(u) {
|
|
11
|
+
const e = u, { t: c } = b(), i = f(), m = v(() => !i.default && (e.value === null || e.value === void 0 || e.value === ""));
|
|
12
|
+
return (s, n) => (a(), l("div", g, [
|
|
13
|
+
t("dt", k, [
|
|
14
|
+
r(o(e.label) + " ", 1),
|
|
15
|
+
d(s.$slots, "label")
|
|
16
|
+
]),
|
|
17
|
+
t("dd", {
|
|
18
|
+
class: _(["mt-0.5 text-sm font-medium text-content-strong", e.wrap ? "break-words" : "truncate"])
|
|
19
|
+
}, [
|
|
20
|
+
m.value ? (a(), l(x, { key: 0 }, [
|
|
21
|
+
n[0] || (n[0] = t("span", {
|
|
22
|
+
"aria-hidden": "true",
|
|
23
|
+
class: "font-normal text-content-disabled"
|
|
24
|
+
}, "—", -1)),
|
|
25
|
+
t("span", w, o(y(c)("core.state.no_value")), 1)
|
|
26
|
+
], 64)) : d(s.$slots, "default", {}, () => [
|
|
27
|
+
r(o(e.value), 1)
|
|
28
|
+
], void 0, 1)
|
|
29
|
+
], 2)
|
|
30
|
+
]));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
E as _
|
|
35
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as i, onBeforeUnmount as f, useTemplateRef as l, watch as m, openBlock as u, createBlock as p } from "vue";
|
|
2
|
-
import { _ as d } from "./DiscardChangesModal.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as v } from "./
|
|
2
|
+
import { _ as d } from "./DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js";
|
|
3
|
+
import { u as v } from "./leaveGuard-Cc8yeLxM.js";
|
|
4
4
|
const $ = /* @__PURE__ */ i({
|
|
5
5
|
__name: "LeaveGuardRoot",
|
|
6
6
|
setup(_) {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as $ } from "./Icon.vue_vue_type_script_lang-
|
|
3
|
-
import { u as
|
|
4
|
-
import { I as
|
|
5
|
-
|
|
1
|
+
import { defineComponent as G, useId as Y, ref as m, computed as b, watch as y, nextTick as p, onUnmounted as j, openBlock as a, createElementBlock as s, Fragment as k, renderSlot as J, createCommentVNode as f, createBlock as x, Teleport as Q, createVNode as W, Transition as X, withCtx as Z, mergeProps as ee, unref as v, renderList as te, normalizeClass as ne, createElementVNode as oe, toDisplayString as R } from "vue";
|
|
2
|
+
import { _ as $ } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
|
|
3
|
+
import { u as ae } from "./anchored-Cj4--8dT.js";
|
|
4
|
+
import { I as ie } from "./dialogStack-DZZg55w0.js";
|
|
5
|
+
import { C as O } from "./closeOverlays-CjVsIrpL.js";
|
|
6
|
+
const re = ["aria-label"], se = {
|
|
6
7
|
key: 0,
|
|
7
8
|
role: "separator",
|
|
8
9
|
class: "mx-2.5 my-1.5 h-px bg-border-separator compact:mx-0 compact:my-0 compact:h-2 compact:bg-fill"
|
|
9
|
-
},
|
|
10
|
+
}, ce = ["role", "aria-checked", "disabled", "aria-busy", "data-menu-item", "onClick"], le = { class: "min-w-0 flex-1 truncate" }, ue = {
|
|
10
11
|
key: 2,
|
|
11
12
|
"aria-hidden": "true",
|
|
12
13
|
class: "shrink-0 text-footnote opacity-60 compact:hidden"
|
|
13
|
-
},
|
|
14
|
+
}, he = /* @__PURE__ */ G({
|
|
14
15
|
__name: "Menu",
|
|
15
16
|
props: {
|
|
16
17
|
items: {},
|
|
@@ -18,20 +19,20 @@ const ae = ["aria-label"], ie = {
|
|
|
18
19
|
placement: { default: "bottom-end" }
|
|
19
20
|
},
|
|
20
21
|
emits: ["presented", "dismissed"],
|
|
21
|
-
setup(P, { expose:
|
|
22
|
-
const
|
|
22
|
+
setup(P, { expose: B, emit: I }) {
|
|
23
|
+
const c = P, g = I, N = 8, _ = `menu-${Y()}`, o = m(!1), d = m(null), l = m(null), V = b(() => [...c.items.filter((e) => !e.tone), ...c.items.filter((e) => e.tone)]), z = b(() => {
|
|
23
24
|
const e = [];
|
|
24
25
|
let n = null;
|
|
25
|
-
for (const t of
|
|
26
|
+
for (const t of V.value)
|
|
26
27
|
n && (n.section !== t.section || t.tone && !n.tone) && e.push({ kind: "separator", key: `sep-${t.id}` }), e.push({ kind: "item", item: t }), n = t;
|
|
27
28
|
return e;
|
|
28
29
|
}), E = () => d.value?.querySelector("[data-menu-trigger]") ?? d.value?.firstElementChild ?? null, i = m(null);
|
|
29
30
|
let h = null;
|
|
30
|
-
const { style:
|
|
31
|
+
const { style: K, update: M } = ae(l, {
|
|
31
32
|
reference: () => i.value ? { getBoundingClientRect: () => DOMRect.fromRect({ x: i.value.x, y: i.value.y, width: 0, height: 0 }) } : E(),
|
|
32
|
-
placement: () => i.value ? "bottom-start" :
|
|
33
|
+
placement: () => i.value ? "bottom-start" : c.placement,
|
|
33
34
|
offset: 6,
|
|
34
|
-
padding:
|
|
35
|
+
padding: N,
|
|
35
36
|
fit: (e, n) => {
|
|
36
37
|
e.style.maxHeight = `${Math.max(120, n.height)}px`;
|
|
37
38
|
}
|
|
@@ -40,25 +41,25 @@ const ae = ["aria-label"], ie = {
|
|
|
40
41
|
const n = w();
|
|
41
42
|
n.length !== 0 && n[(e + n.length) % n.length]?.focus();
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
o.value ||
|
|
44
|
+
function C() {
|
|
45
|
+
o.value || c.items.length === 0 || (i.value = null, o.value = !0, g("presented"));
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
47
|
+
function U(e, n) {
|
|
48
|
+
c.items.length !== 0 && (h = document.activeElement, i.value = { x: e, y: n }, o.value ? p(M) : (o.value = !0, g("presented")));
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function r(e = !0) {
|
|
50
51
|
if (!o.value) return;
|
|
51
52
|
o.value = !1, g("dismissed");
|
|
52
53
|
const n = i.value ? h : E();
|
|
53
54
|
i.value = null, h = null, e && p(() => n?.focus?.({ preventScroll: !0 }));
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
o.value ?
|
|
56
|
+
function L() {
|
|
57
|
+
o.value ? r() : C();
|
|
57
58
|
}
|
|
58
|
-
async function
|
|
59
|
-
e.disabled || e.processing || (
|
|
59
|
+
async function q(e) {
|
|
60
|
+
e.disabled || e.processing || (r(), await p(), e.onSelect());
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
+
function F(e) {
|
|
62
63
|
const n = w().indexOf(document.activeElement);
|
|
63
64
|
switch (e.key) {
|
|
64
65
|
case "ArrowDown":
|
|
@@ -74,71 +75,74 @@ const ae = ["aria-label"], ie = {
|
|
|
74
75
|
e.preventDefault(), u(-1);
|
|
75
76
|
break;
|
|
76
77
|
case "Tab":
|
|
77
|
-
|
|
78
|
+
r(!1);
|
|
78
79
|
break;
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(),
|
|
82
|
+
function T(e) {
|
|
83
|
+
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), r());
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function A(e) {
|
|
85
86
|
const n = e.target;
|
|
86
|
-
n && (l.value?.contains(n) || d.value?.contains(n)) || i.value && e.pointerType === "touch" && !l.value ||
|
|
87
|
+
n && (l.value?.contains(n) || d.value?.contains(n)) || i.value && e.pointerType === "touch" && !l.value || r(!1);
|
|
87
88
|
}
|
|
88
89
|
y(l, (e) => {
|
|
89
90
|
e && p(() => u(0));
|
|
90
91
|
});
|
|
91
|
-
function
|
|
92
|
-
|
|
92
|
+
function D() {
|
|
93
|
+
r();
|
|
94
|
+
}
|
|
95
|
+
function S() {
|
|
96
|
+
window.removeEventListener("keydown", T, !0), document.removeEventListener("pointerdown", A, !0), document.removeEventListener(O, D);
|
|
93
97
|
}
|
|
94
98
|
y(o, (e) => {
|
|
95
|
-
e ? (window.addEventListener("keydown",
|
|
96
|
-
}), y(() =>
|
|
97
|
-
e === 0 &&
|
|
98
|
-
}),
|
|
99
|
-
const
|
|
99
|
+
e ? (window.addEventListener("keydown", T, !0), document.addEventListener("pointerdown", A, !0), document.addEventListener(O, D)) : S();
|
|
100
|
+
}), y(() => c.items.length, (e) => {
|
|
101
|
+
e === 0 && r(!1);
|
|
102
|
+
}), j(S);
|
|
103
|
+
const H = b(() => ({
|
|
100
104
|
"aria-haspopup": "menu",
|
|
101
105
|
"aria-expanded": o.value,
|
|
102
106
|
"aria-controls": _,
|
|
103
107
|
"data-menu-trigger": ""
|
|
104
108
|
}));
|
|
105
|
-
return
|
|
106
|
-
e.$slots.trigger ? (a(),
|
|
109
|
+
return B({ present: C, presentAt: U, dismiss: () => r(), toggle: L }), (e, n) => (a(), s(k, null, [
|
|
110
|
+
e.$slots.trigger ? (a(), s("span", {
|
|
107
111
|
key: 0,
|
|
108
112
|
ref_key: "anchor",
|
|
109
113
|
ref: d,
|
|
110
114
|
class: "inline-flex"
|
|
111
115
|
}, [
|
|
112
|
-
|
|
116
|
+
J(e.$slots, "trigger", {
|
|
113
117
|
presented: o.value,
|
|
114
|
-
toggle:
|
|
115
|
-
attrs:
|
|
118
|
+
toggle: L,
|
|
119
|
+
attrs: H.value
|
|
116
120
|
})
|
|
117
121
|
], 512)) : f("", !0),
|
|
118
|
-
(a(), x(
|
|
119
|
-
|
|
122
|
+
(a(), x(Q, { to: "body" }, [
|
|
123
|
+
W(X, {
|
|
120
124
|
"enter-active-class": "transition-opacity duration-motion-fast ease-motion-standard",
|
|
121
125
|
"enter-from-class": "opacity-0",
|
|
122
126
|
"leave-active-class": "pointer-events-none transition-opacity duration-motion-fast ease-motion-standard",
|
|
123
127
|
"leave-to-class": "opacity-0"
|
|
124
128
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
o.value ? (a(),
|
|
129
|
+
default: Z(() => [
|
|
130
|
+
o.value ? (a(), s("div", ee({
|
|
127
131
|
key: 0,
|
|
128
132
|
id: _,
|
|
129
133
|
ref_key: "panel",
|
|
130
134
|
ref: l,
|
|
131
135
|
role: "menu",
|
|
132
|
-
"aria-label":
|
|
133
|
-
}, { [v(
|
|
134
|
-
style: v(
|
|
136
|
+
"aria-label": c.label
|
|
137
|
+
}, { [v(ie)]: "" }, {
|
|
138
|
+
style: v(K),
|
|
135
139
|
class: "z-10001 min-w-52 max-w-[calc(100vw-1rem)] overflow-y-auto rounded-menu bg-surface-overlay p-1.5 text-content-strong shadow-float outline-none compact:min-w-60 compact:p-0",
|
|
136
|
-
onKeydown:
|
|
140
|
+
onKeydown: F
|
|
137
141
|
}), [
|
|
138
|
-
(a(!0),
|
|
142
|
+
(a(!0), s(k, null, te(z.value, (t) => (a(), s(k, {
|
|
139
143
|
key: t.kind === "item" ? t.item.id : t.key
|
|
140
144
|
}, [
|
|
141
|
-
t.kind === "separator" ? (a(),
|
|
145
|
+
t.kind === "separator" ? (a(), s("div", se)) : (a(), s("button", {
|
|
142
146
|
key: 1,
|
|
143
147
|
type: "button",
|
|
144
148
|
role: t.item.checked === void 0 ? "menuitem" : "menuitemradio",
|
|
@@ -146,8 +150,8 @@ const ae = ["aria-label"], ie = {
|
|
|
146
150
|
disabled: t.item.disabled || t.item.processing,
|
|
147
151
|
"aria-busy": t.item.processing || void 0,
|
|
148
152
|
"data-menu-item": t.item.id,
|
|
149
|
-
class:
|
|
150
|
-
onClick: (
|
|
153
|
+
class: ne(["group flex min-h-8 w-full cursor-pointer items-center gap-2.5 rounded-control px-2.5 py-1 text-left text-subheadline font-normal outline-none disabled:cursor-default disabled:opacity-45 compact:min-h-11 compact:rounded-none compact:border-t compact:border-border-separator compact:px-4 compact:text-body compact:first:border-t-0 compact:[[role=separator]+&]:border-t-0", t.item.tone === "critical" ? "text-content-destructive hover:bg-status-danger-surface focus-visible:bg-status-danger-surface" : "hover:bg-tint hover:text-content-on-tint focus-visible:bg-tint focus-visible:text-content-on-tint compact:hover:bg-fill compact:hover:text-content-strong compact:focus-visible:bg-fill compact:focus-visible:text-content-strong"]),
|
|
154
|
+
onClick: (de) => q(t.item)
|
|
151
155
|
}, [
|
|
152
156
|
t.item.processing ? (a(), x(v($), {
|
|
153
157
|
key: 0,
|
|
@@ -160,11 +164,11 @@ const ae = ["aria-label"], ie = {
|
|
|
160
164
|
size: 16,
|
|
161
165
|
class: "compact:order-last compact:w-5"
|
|
162
166
|
}, null, 8, ["name"])) : f("", !0),
|
|
163
|
-
|
|
164
|
-
t.item.shortcut ? (a(),
|
|
165
|
-
], 10,
|
|
167
|
+
oe("span", le, R(t.item.label), 1),
|
|
168
|
+
t.item.shortcut ? (a(), s("span", ue, R(t.item.shortcut), 1)) : f("", !0)
|
|
169
|
+
], 10, ce))
|
|
166
170
|
], 64))), 128))
|
|
167
|
-
], 16,
|
|
171
|
+
], 16, re)) : f("", !0)
|
|
168
172
|
]),
|
|
169
173
|
_: 1
|
|
170
174
|
})
|
|
@@ -173,5 +177,5 @@ const ae = ["aria-label"], ie = {
|
|
|
173
177
|
}
|
|
174
178
|
});
|
|
175
179
|
export {
|
|
176
|
-
|
|
180
|
+
he as _
|
|
177
181
|
};
|