@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
|
@@ -1,60 +1,65 @@
|
|
|
1
|
-
import { watch as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as Q } from "./Icon.vue_vue_type_script_lang-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { p as
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
const
|
|
1
|
+
import { toValue as oe, watch as ee, onUnmounted as le, computed as i, ref as j, defineComponent as ne, useSlots as q, useId as ie, inject as re, openBlock as t, createBlock as _, Teleport as de, createElementBlock as a, unref as s, createVNode as k, Transition as T, withCtx as z, normalizeStyle as V, createCommentVNode as o, normalizeClass as y, createElementVNode as n, mergeProps as G, toDisplayString as m, renderSlot as f, createTextVNode as ce } from "vue";
|
|
2
|
+
import { useI18n as ue } from "vue-i18n";
|
|
3
|
+
import { _ as J } from "./Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js";
|
|
4
|
+
import { _ as Q } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
|
|
5
|
+
import { u as pe } from "./mediaQuery-CygcXmFW.js";
|
|
6
|
+
import { u as me } from "./useDialog-CXR3hN0G.js";
|
|
7
|
+
import { u as fe } from "./useSheetDrag-OsD6Eb6I.js";
|
|
8
|
+
import { a as R, _ as Y } from "./ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js";
|
|
9
|
+
import { p as ve } from "./perDocument-DUuFrdGU.js";
|
|
10
|
+
const be = Symbol("vue-core.modalPlacement");
|
|
11
|
+
function ye(g, l) {
|
|
12
|
+
const d = g === void 0 ? {} : oe(g);
|
|
13
|
+
return { align: l?.align ?? d.align ?? "center", offsetX: l?.offsetX ?? d.offsetX ?? 0 };
|
|
14
|
+
}
|
|
15
|
+
const ge = Symbol("vue-core:open-sheets"), he = () => ve(ge, () => j([]));
|
|
16
|
+
function xe(g) {
|
|
17
|
+
const l = he(), d = Symbol("sheet");
|
|
13
18
|
function e() {
|
|
14
|
-
|
|
19
|
+
l.value = l.value.filter((r) => r !== d);
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, { immediate: !0 }),
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
return
|
|
22
|
-
}), C = i(() =>
|
|
23
|
-
return { covered:
|
|
21
|
+
ee(g, (r) => {
|
|
22
|
+
r && !l.value.includes(d) && (l.value = [...l.value, d]), r || e();
|
|
23
|
+
}, { immediate: !0 }), le(e);
|
|
24
|
+
const w = i(() => {
|
|
25
|
+
const r = l.value.indexOf(d);
|
|
26
|
+
return r >= 0 && r < l.value.length - 1;
|
|
27
|
+
}), C = i(() => l.value.indexOf(d) > 0);
|
|
28
|
+
return { covered: w, stacked: C };
|
|
24
29
|
}
|
|
25
|
-
const
|
|
30
|
+
const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we = { class: "grid min-h-bar-height grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-2 px-row-inset" }, Se = { class: "flex justify-start" }, $e = ["disabled"], ze = ["id"], Ce = { key: 1 }, Le = { class: "flex justify-end" }, Be = ["disabled", "aria-busy"], De = {
|
|
26
31
|
key: 0,
|
|
27
32
|
class: "-mt-1 px-row-inset pb-1 text-center text-footnote text-content-muted"
|
|
28
|
-
},
|
|
33
|
+
}, Pe = {
|
|
29
34
|
key: 1,
|
|
30
35
|
class: "px-screen-padding pt-1 pb-3"
|
|
31
|
-
},
|
|
36
|
+
}, Ie = {
|
|
32
37
|
key: 1,
|
|
33
38
|
class: "flex shrink-0 flex-col gap-2 border-t border-border-separator bg-surface-cell px-screen-padding pt-3 pb-[max(0.75rem,var(--app-safe-bottom))]"
|
|
34
|
-
},
|
|
39
|
+
}, Ee = {
|
|
35
40
|
key: 0,
|
|
36
41
|
class: "flex items-center justify-center"
|
|
37
|
-
},
|
|
42
|
+
}, je = ["data-covered"], Xe = {
|
|
38
43
|
key: 0,
|
|
39
44
|
class: "absolute inset-x-0 top-0 z-20 overflow-hidden rounded-t-dialog"
|
|
40
|
-
},
|
|
45
|
+
}, Fe = { class: "flex min-w-0 flex-1 flex-col gap-3.5" }, Ne = {
|
|
41
46
|
key: 0,
|
|
42
47
|
class: "flex flex-col gap-0.5"
|
|
43
|
-
},
|
|
48
|
+
}, Te = ["id"], Ve = {
|
|
44
49
|
key: 0,
|
|
45
50
|
class: "text-subheadline text-content-muted"
|
|
46
|
-
},
|
|
51
|
+
}, Oe = ["disabled", "aria-label"], Ae = {
|
|
47
52
|
key: 2,
|
|
48
53
|
class: "sticky bottom-0 z-10 flex flex-row-reverse flex-wrap items-center gap-2.5 rounded-b-dialog border-t border-border-separator bg-surface-cell px-5 py-3.5"
|
|
49
|
-
},
|
|
54
|
+
}, He = {
|
|
50
55
|
key: 0,
|
|
51
56
|
class: "contents",
|
|
52
57
|
"data-part": "primary"
|
|
53
|
-
},
|
|
58
|
+
}, Me = {
|
|
54
59
|
key: 1,
|
|
55
60
|
class: "contents",
|
|
56
61
|
"data-part": "cancel"
|
|
57
|
-
},
|
|
62
|
+
}, We = { class: "flex grow items-center" }, et = /* @__PURE__ */ ne({
|
|
58
63
|
__name: "Modal",
|
|
59
64
|
props: {
|
|
60
65
|
title: { default: void 0 },
|
|
@@ -71,39 +76,40 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
71
76
|
processingLabel: { default: void 0 },
|
|
72
77
|
doneLabel: { default: void 0 },
|
|
73
78
|
cancellableWhileProcessing: { type: Boolean, default: !1 },
|
|
74
|
-
progress: { default: void 0 }
|
|
79
|
+
progress: { default: void 0 },
|
|
80
|
+
placement: { default: void 0 }
|
|
75
81
|
},
|
|
76
82
|
emits: ["primary", "presented", "dismissed"],
|
|
77
|
-
setup(
|
|
78
|
-
const e =
|
|
83
|
+
setup(g, { expose: l, emit: d }) {
|
|
84
|
+
const e = g, w = d, C = q(), { t: r } = ue(), L = q(), B = j(null), O = j(null), S = ie(), $ = pe(), te = re(be, void 0), X = i(() => ye(te, e.placement)), v = me(B, {
|
|
79
85
|
beforeDismiss: () => e.beforeDismiss?.() ?? !0,
|
|
80
|
-
initialFocus: () =>
|
|
81
|
-
onPresented: () =>
|
|
82
|
-
onDismissed: () =>
|
|
83
|
-
}), { isOpen: b } = v,
|
|
86
|
+
initialFocus: () => $.value ? "panel" : "first",
|
|
87
|
+
onPresented: () => w("presented"),
|
|
88
|
+
onDismissed: () => w("dismissed")
|
|
89
|
+
}), { isOpen: b } = v, h = fe({ enabled: $, panel: B, body: O, onDismiss: () => v.dismiss() }), { covered: D, stacked: A } = xe(b), F = j(!1), H = () => {
|
|
84
90
|
b.value || (F.value = !1);
|
|
85
91
|
};
|
|
86
|
-
|
|
87
|
-
|
|
92
|
+
ee(b, (c) => {
|
|
93
|
+
c && (F.value = !0);
|
|
88
94
|
}, { flush: "sync" });
|
|
89
|
-
function
|
|
90
|
-
|
|
95
|
+
function se() {
|
|
96
|
+
h.reset(), v.present();
|
|
91
97
|
}
|
|
92
|
-
const
|
|
98
|
+
const x = i(() => e.status === "processing"), u = i(() => e.status === "done"), P = i(() => !!(e.title || L.header)), I = i(() => !e.withoutCloseButton), M = i(() => e.primaryLabel || L.actions ? r("core.actions.cancel") : r("core.actions.close")), W = i(() => e.primaryDisabled || x.value || u.value), N = i(() => x.value && !e.cancellableWhileProcessing || u.value), E = i(() => u.value && e.doneLabel ? e.doneLabel : x.value && e.processingLabel ? e.processingLabel : e.primaryLabel), K = i(() => e.withoutFooter ? !1 : $.value ? !!(L.actions || L.timestamp) : !0);
|
|
93
99
|
function U() {
|
|
94
|
-
|
|
100
|
+
W.value || w("primary");
|
|
95
101
|
}
|
|
96
|
-
const
|
|
97
|
-
return
|
|
102
|
+
const ae = { sm: "max-w-sm", md: "max-w-dialog", lg: "max-w-4xl", xl: "max-w-6xl" };
|
|
103
|
+
return l({ present: se, dismiss: async () => v.dismiss() }), (c, p) => (t(), _(de, { to: "body" }, [
|
|
98
104
|
F.value ? (t(), a("div", {
|
|
99
105
|
key: 0,
|
|
100
106
|
class: "relative z-9999",
|
|
101
|
-
"aria-labelledby":
|
|
107
|
+
"aria-labelledby": P.value && e.title ? s(S) : void 0,
|
|
102
108
|
role: "dialog",
|
|
103
109
|
"aria-modal": "true",
|
|
104
|
-
"data-presentation": s(
|
|
110
|
+
"data-presentation": s($) ? "sheet" : "dialog"
|
|
105
111
|
}, [
|
|
106
|
-
|
|
112
|
+
k(T, {
|
|
107
113
|
appear: "",
|
|
108
114
|
"enter-active-class": "transition-opacity duration-motion-normal ease-motion-standard",
|
|
109
115
|
"enter-from-class": "opacity-0",
|
|
@@ -114,76 +120,76 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
114
120
|
s(b) ? (t(), a("div", {
|
|
115
121
|
key: 0,
|
|
116
122
|
class: "fixed inset-0 bg-scrim",
|
|
117
|
-
style:
|
|
123
|
+
style: V(s(h).backdropStyle.value),
|
|
118
124
|
"aria-hidden": "true"
|
|
119
125
|
}, null, 4)) : o("", !0)
|
|
120
126
|
]),
|
|
121
127
|
_: 1
|
|
122
128
|
}),
|
|
123
|
-
s(
|
|
129
|
+
s($) ? (t(), _(T, {
|
|
124
130
|
key: 0,
|
|
125
131
|
appear: "",
|
|
126
132
|
"enter-active-class": "transition-transform duration-motion-sheet ease-motion-sheet",
|
|
127
133
|
"enter-from-class": "translate-y-full",
|
|
128
134
|
"leave-active-class": "pointer-events-none transition-transform duration-motion-normal ease-motion-standard",
|
|
129
135
|
"leave-to-class": "translate-y-full",
|
|
130
|
-
onAfterLeave:
|
|
136
|
+
onAfterLeave: H
|
|
131
137
|
}, {
|
|
132
138
|
default: z(() => [
|
|
133
139
|
s(b) ? (t(), a("div", {
|
|
134
140
|
key: 0,
|
|
135
141
|
ref_key: "panel",
|
|
136
|
-
ref:
|
|
142
|
+
ref: B,
|
|
137
143
|
tabindex: "-1",
|
|
138
144
|
"data-part": "panel",
|
|
139
|
-
class:
|
|
140
|
-
"data-covered": s(
|
|
141
|
-
style:
|
|
145
|
+
class: y(["fixed inset-x-0 bottom-0 top-[calc(var(--app-safe-top)+0.625rem)] mx-auto flex w-full max-w-readable flex-col overflow-hidden rounded-t-sheet text-content-strong shadow-dialog outline-none", [e.grouped ? "bg-surface-page" : "bg-surface-cell", s(h).dragging.value ? "" : "transition-transform duration-motion-normal ease-motion-sheet", s(D) ? "origin-top scale-95" : "", s(A) ? "translate-y-3" : ""]]),
|
|
146
|
+
"data-covered": s(D) || void 0,
|
|
147
|
+
style: V(s(h).panelStyle.value)
|
|
142
148
|
}, [
|
|
143
|
-
e.progress ? (t(),
|
|
149
|
+
e.progress ? (t(), _(R, {
|
|
144
150
|
key: 0,
|
|
145
151
|
hairline: "",
|
|
146
152
|
value: e.progress.value,
|
|
147
153
|
done: e.progress.complete,
|
|
148
154
|
class: "absolute inset-x-0 top-0 z-20"
|
|
149
155
|
}, null, 8, ["value", "done"])) : o("", !0),
|
|
150
|
-
n("div",
|
|
151
|
-
|
|
156
|
+
n("div", G({ class: "shrink-0 cursor-grab touch-none select-none" }, s(h).handleEvents), [
|
|
157
|
+
p[3] || (p[3] = n("div", {
|
|
152
158
|
class: "flex justify-center pt-1.5",
|
|
153
159
|
"aria-hidden": "true"
|
|
154
160
|
}, [
|
|
155
161
|
n("span", { class: "h-1.25 w-9 rounded-full bg-fill-strong" })
|
|
156
162
|
], -1)),
|
|
157
|
-
n("div",
|
|
158
|
-
n("div",
|
|
163
|
+
n("div", we, [
|
|
164
|
+
n("div", Se, [
|
|
159
165
|
I.value ? (t(), a("button", {
|
|
160
166
|
key: 0,
|
|
161
167
|
type: "button",
|
|
162
168
|
disabled: N.value,
|
|
163
169
|
"data-part": "cancel",
|
|
164
170
|
class: "hit-target -ml-1 cursor-pointer rounded-control px-1 text-body text-content-link disabled:text-content-disabled",
|
|
165
|
-
onClick:
|
|
166
|
-
},
|
|
171
|
+
onClick: p[0] || (p[0] = (Z) => s(v).dismiss())
|
|
172
|
+
}, m(M.value), 9, $e)) : o("", !0)
|
|
167
173
|
]),
|
|
168
174
|
e.title ? (t(), a("h2", {
|
|
169
175
|
key: 0,
|
|
170
|
-
id: s(
|
|
176
|
+
id: s(S),
|
|
171
177
|
class: "truncate text-center text-headline font-semibold"
|
|
172
|
-
},
|
|
173
|
-
n("div",
|
|
178
|
+
}, m(e.title), 9, ze)) : (t(), a("span", Ce)),
|
|
179
|
+
n("div", Le, [
|
|
174
180
|
e.primaryLabel ? (t(), a("button", {
|
|
175
181
|
key: 0,
|
|
176
182
|
type: "button",
|
|
177
|
-
disabled:
|
|
183
|
+
disabled: W.value,
|
|
178
184
|
"data-part": "primary",
|
|
179
185
|
class: "hit-target -mr-1 flex cursor-pointer items-center gap-1.5 rounded-control px-1 text-body font-semibold text-content-link disabled:cursor-default disabled:text-content-disabled",
|
|
180
|
-
"aria-busy":
|
|
186
|
+
"aria-busy": x.value || void 0,
|
|
181
187
|
onClick: U
|
|
182
188
|
}, [
|
|
183
|
-
|
|
189
|
+
u.value ? (t(), _(Y, {
|
|
184
190
|
key: 0,
|
|
185
191
|
size: 15
|
|
186
|
-
})) :
|
|
192
|
+
})) : x.value ? (t(), _(s(Q), {
|
|
187
193
|
key: 1,
|
|
188
194
|
name: "loader4Line",
|
|
189
195
|
size: 16,
|
|
@@ -192,78 +198,81 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
192
198
|
(t(), a("span", {
|
|
193
199
|
key: E.value,
|
|
194
200
|
class: "animate-text-swap"
|
|
195
|
-
},
|
|
196
|
-
], 8,
|
|
201
|
+
}, m(E.value), 1))
|
|
202
|
+
], 8, Be)) : o("", !0)
|
|
197
203
|
])
|
|
198
204
|
]),
|
|
199
|
-
e.subtitle ? (t(), a("p",
|
|
200
|
-
C.header ? (t(), a("div",
|
|
201
|
-
|
|
202
|
-
titleId: s(
|
|
205
|
+
e.subtitle ? (t(), a("p", De, m(e.subtitle), 1)) : o("", !0),
|
|
206
|
+
C.header ? (t(), a("div", Pe, [
|
|
207
|
+
f(c.$slots, "header", {
|
|
208
|
+
titleId: s(S),
|
|
203
209
|
compact: !0
|
|
204
210
|
})
|
|
205
211
|
])) : o("", !0)
|
|
206
212
|
], 16),
|
|
207
|
-
n("div",
|
|
213
|
+
n("div", G({
|
|
208
214
|
ref_key: "body",
|
|
209
215
|
ref: O,
|
|
210
216
|
class: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-screen-padding pt-2 pb-8"
|
|
211
|
-
}, s(
|
|
212
|
-
|
|
217
|
+
}, s(h).bodyEvents), [
|
|
218
|
+
f(c.$slots, "default")
|
|
213
219
|
], 16),
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
C.timestamp ? (t(), a("div",
|
|
217
|
-
|
|
220
|
+
K.value ? (t(), a("div", Ie, [
|
|
221
|
+
f(c.$slots, "actions"),
|
|
222
|
+
C.timestamp ? (t(), a("div", Ee, [
|
|
223
|
+
f(c.$slots, "timestamp")
|
|
218
224
|
])) : o("", !0)
|
|
219
225
|
])) : o("", !0)
|
|
220
|
-
], 14,
|
|
226
|
+
], 14, ke)) : o("", !0)
|
|
221
227
|
]),
|
|
222
228
|
_: 3
|
|
223
229
|
})) : (t(), a("div", {
|
|
224
230
|
key: 1,
|
|
225
|
-
class:
|
|
231
|
+
class: y(["fixed inset-0 z-10 w-screen overflow-y-auto [scrollbar-gutter:stable_both-edges]", s(b) ? "" : "pointer-events-none"])
|
|
226
232
|
}, [
|
|
227
|
-
n("div",
|
|
228
|
-
|
|
233
|
+
n("div", {
|
|
234
|
+
class: y(["flex min-h-full justify-center p-4", X.value.align === "top" ? "items-start pt-10" : "items-center"])
|
|
235
|
+
}, [
|
|
236
|
+
k(T, {
|
|
229
237
|
appear: "",
|
|
230
238
|
"enter-active-class": "transition duration-motion-normal ease-motion-standard",
|
|
231
239
|
"enter-from-class": "opacity-0 scale-95",
|
|
232
240
|
"leave-active-class": "pointer-events-none transition duration-motion-fast ease-motion-standard",
|
|
233
241
|
"leave-to-class": "opacity-0 scale-95",
|
|
234
|
-
onAfterLeave:
|
|
242
|
+
onAfterLeave: H
|
|
235
243
|
}, {
|
|
236
244
|
default: z(() => [
|
|
237
245
|
s(b) ? (t(), a("div", {
|
|
238
246
|
key: 0,
|
|
239
247
|
ref_key: "panel",
|
|
240
|
-
ref:
|
|
248
|
+
ref: B,
|
|
241
249
|
tabindex: "-1",
|
|
242
250
|
"data-part": "panel",
|
|
243
|
-
class:
|
|
244
|
-
"data-covered": s(
|
|
251
|
+
class: y(["relative my-8 w-full rounded-dialog text-left text-content-strong shadow-dialog outline-none transition-transform duration-motion-sheet ease-motion-sheet", [ae[e.size], e.grouped ? "bg-surface-page" : "bg-surface-cell", s(D) ? "-translate-y-4" : "", s(A) ? "translate-y-4 scale-96" : ""]]),
|
|
252
|
+
"data-covered": s(D) || void 0,
|
|
253
|
+
style: V(X.value.offsetX ? { transform: `translateX(${X.value.offsetX}px)` } : void 0)
|
|
245
254
|
}, [
|
|
246
|
-
e.progress ? (t(), a("div",
|
|
247
|
-
|
|
255
|
+
e.progress ? (t(), a("div", Xe, [
|
|
256
|
+
k(R, {
|
|
248
257
|
hairline: "",
|
|
249
258
|
value: e.progress.value,
|
|
250
259
|
done: e.progress.complete
|
|
251
260
|
}, null, 8, ["value", "done"])
|
|
252
261
|
])) : o("", !0),
|
|
253
|
-
|
|
262
|
+
P.value || I.value ? (t(), a("div", {
|
|
254
263
|
key: 1,
|
|
255
|
-
class:
|
|
264
|
+
class: y(["sticky top-0 z-10 flex items-start gap-3 rounded-t-dialog px-5 pt-4.5", [P.value ? "pb-3.5" : "pb-0", e.grouped ? "bg-surface-page" : "bg-surface-cell"]])
|
|
256
265
|
}, [
|
|
257
|
-
n("div",
|
|
258
|
-
e.title ? (t(), a("div",
|
|
266
|
+
n("div", Fe, [
|
|
267
|
+
e.title ? (t(), a("div", Ne, [
|
|
259
268
|
n("h2", {
|
|
260
|
-
id: s(
|
|
269
|
+
id: s(S),
|
|
261
270
|
class: "text-title font-semibold"
|
|
262
|
-
},
|
|
263
|
-
e.subtitle ? (t(), a("p",
|
|
271
|
+
}, m(e.title), 9, Te),
|
|
272
|
+
e.subtitle ? (t(), a("p", Ve, m(e.subtitle), 1)) : o("", !0)
|
|
264
273
|
])) : o("", !0),
|
|
265
|
-
|
|
266
|
-
titleId: s(
|
|
274
|
+
f(c.$slots, "header", {
|
|
275
|
+
titleId: s(S),
|
|
267
276
|
compact: !1
|
|
268
277
|
})
|
|
269
278
|
]),
|
|
@@ -272,72 +281,73 @@ const ve = ["aria-labelledby", "data-presentation"], be = ["data-covered"], ye =
|
|
|
272
281
|
type: "button",
|
|
273
282
|
"data-initial-focus-skip": "",
|
|
274
283
|
disabled: N.value,
|
|
275
|
-
"aria-label": s(
|
|
284
|
+
"aria-label": s(r)("core.actions.close"),
|
|
276
285
|
"data-part": "close",
|
|
277
286
|
class: "hit-target flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full bg-fill text-content-muted transition-colors duration-motion-fast hover:bg-fill-strong disabled:opacity-45",
|
|
278
|
-
onClick:
|
|
287
|
+
onClick: p[1] || (p[1] = (Z) => s(v).dismiss())
|
|
279
288
|
}, [
|
|
280
|
-
|
|
289
|
+
k(s(Q), {
|
|
281
290
|
name: "close",
|
|
282
291
|
size: 14
|
|
283
292
|
})
|
|
284
|
-
], 8,
|
|
293
|
+
], 8, Oe)) : o("", !0)
|
|
285
294
|
], 2)) : o("", !0),
|
|
286
295
|
n("div", {
|
|
287
|
-
class:
|
|
296
|
+
class: y(["px-5 pb-5", P.value ? "pt-1" : "pt-3"])
|
|
288
297
|
}, [
|
|
289
|
-
|
|
298
|
+
f(c.$slots, "default")
|
|
290
299
|
], 2),
|
|
291
|
-
|
|
292
|
-
e.primaryLabel ? (t(), a("span",
|
|
293
|
-
|
|
300
|
+
K.value ? (t(), a("div", Ae, [
|
|
301
|
+
e.primaryLabel ? (t(), a("span", He, [
|
|
302
|
+
k(J, {
|
|
294
303
|
prominence: "primary",
|
|
295
|
-
icon:
|
|
296
|
-
processing:
|
|
297
|
-
disabled: e.primaryDisabled ||
|
|
298
|
-
class:
|
|
304
|
+
icon: u.value ? void 0 : e.primaryIcon,
|
|
305
|
+
processing: x.value,
|
|
306
|
+
disabled: e.primaryDisabled || u.value,
|
|
307
|
+
class: y(u.value ? "bg-control-on! opacity-100!" : ""),
|
|
299
308
|
onClick: U
|
|
300
309
|
}, {
|
|
301
310
|
default: z(() => [
|
|
302
|
-
|
|
311
|
+
u.value ? (t(), _(Y, {
|
|
303
312
|
key: 0,
|
|
304
313
|
size: 16
|
|
305
314
|
})) : o("", !0),
|
|
306
315
|
(t(), a("span", {
|
|
307
316
|
key: E.value,
|
|
308
317
|
class: "animate-text-swap"
|
|
309
|
-
},
|
|
318
|
+
}, m(E.value), 1))
|
|
310
319
|
]),
|
|
311
320
|
_: 1
|
|
312
321
|
}, 8, ["icon", "processing", "disabled", "class"])
|
|
313
322
|
])) : o("", !0),
|
|
314
|
-
|
|
315
|
-
I.value ? (t(), a("span",
|
|
316
|
-
|
|
323
|
+
f(c.$slots, "actions"),
|
|
324
|
+
I.value ? (t(), a("span", Me, [
|
|
325
|
+
k(J, {
|
|
317
326
|
prominence: "plain",
|
|
318
327
|
disabled: N.value,
|
|
319
|
-
onClick:
|
|
328
|
+
onClick: p[2] || (p[2] = (Z) => s(v).dismiss())
|
|
320
329
|
}, {
|
|
321
330
|
default: z(() => [
|
|
322
|
-
|
|
331
|
+
ce(m(M.value), 1)
|
|
323
332
|
]),
|
|
324
333
|
_: 1
|
|
325
334
|
}, 8, ["disabled"])
|
|
326
335
|
])) : o("", !0),
|
|
327
|
-
n("div",
|
|
328
|
-
|
|
336
|
+
n("div", We, [
|
|
337
|
+
f(c.$slots, "timestamp")
|
|
329
338
|
])
|
|
330
339
|
])) : o("", !0)
|
|
331
|
-
],
|
|
340
|
+
], 14, je)) : o("", !0)
|
|
332
341
|
]),
|
|
333
342
|
_: 3
|
|
334
343
|
})
|
|
335
|
-
])
|
|
344
|
+
], 2)
|
|
336
345
|
], 2))
|
|
337
|
-
], 8,
|
|
346
|
+
], 8, _e)) : o("", !0)
|
|
338
347
|
]));
|
|
339
348
|
}
|
|
340
349
|
});
|
|
341
350
|
export {
|
|
342
|
-
|
|
351
|
+
et as _,
|
|
352
|
+
be as m
|
|
343
353
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as _, computed as d, openBlock as y, createBlock as w, unref as e, withCtx as i, createVNode as l } from "vue";
|
|
2
|
+
import { useI18n as v } from "vue-i18n";
|
|
3
|
+
import { useRoute as k, useRouter as R } from "vue-router";
|
|
4
|
+
import { a as $ } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js";
|
|
5
|
+
import { _ as b } from "./AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js";
|
|
6
|
+
import { u as g } from "./useLoad-CYRVx6HW.js";
|
|
7
|
+
import { a as x, c as u } from "./index-B2dbYZR9.js";
|
|
8
|
+
import { _ as P } from "./RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js";
|
|
9
|
+
const V = /* @__PURE__ */ _({
|
|
10
|
+
__name: "NewRolePage",
|
|
11
|
+
setup(h) {
|
|
12
|
+
const { t: o } = v(), r = k(), p = R(), m = x(), t = d(() => typeof r.query.copy == "string" ? r.query.copy : ""), c = g(({ signal: s }) => t.value ? m.role(t.value, { signal: s }) : Promise.resolve(null), { watch: t }), f = (s) => p.replace(u.role({ ref: s.ref }));
|
|
13
|
+
return (s, a) => (y(), w(e($), {
|
|
14
|
+
title: e(o)("core.access.new_title"),
|
|
15
|
+
description: t.value ? e(o)("core.access.new_copy_description") : e(o)("core.access.new_description"),
|
|
16
|
+
back: { label: e(o)("core.access.title"), to: e(u).roles },
|
|
17
|
+
width: "content"
|
|
18
|
+
}, {
|
|
19
|
+
default: i(() => [
|
|
20
|
+
l(e(b), {
|
|
21
|
+
state: e(c).state.value,
|
|
22
|
+
"skeleton-rows": 8,
|
|
23
|
+
"is-empty": () => !1,
|
|
24
|
+
onRetry: a[0] || (a[0] = (n) => e(c).reload())
|
|
25
|
+
}, {
|
|
26
|
+
default: i(({ value: n }) => [
|
|
27
|
+
l(P, {
|
|
28
|
+
role: null,
|
|
29
|
+
source: n,
|
|
30
|
+
onSaved: f
|
|
31
|
+
}, null, 8, ["source"])
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}, 8, ["state"])
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 8, ["title", "description", "back"]));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
V as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createWebHistory as c } from "vue-router";
|
|
2
|
+
import { defineComponent as s, openBlock as i, createBlock as a, unref as o } from "vue";
|
|
3
|
+
import { useI18n as p } from "vue-i18n";
|
|
4
|
+
import { _ as u } from "./EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js";
|
|
5
|
+
function _(e = navigator) {
|
|
6
|
+
return e.standalone === !0;
|
|
7
|
+
}
|
|
8
|
+
function m(e) {
|
|
9
|
+
const r = c(e);
|
|
10
|
+
return r.push = (t, n) => r.replace(t, n), r;
|
|
11
|
+
}
|
|
12
|
+
function H(e) {
|
|
13
|
+
return _() ? m(e) : c(e);
|
|
14
|
+
}
|
|
15
|
+
const h = /* @__PURE__ */ s({
|
|
16
|
+
__name: "NoAccess",
|
|
17
|
+
setup(e) {
|
|
18
|
+
const { t: r } = p();
|
|
19
|
+
return (t, n) => (i(), a(o(u), {
|
|
20
|
+
title: o(r)("core.no_access.title"),
|
|
21
|
+
description: o(r)("core.no_access.body"),
|
|
22
|
+
icon: "errorWarningLine"
|
|
23
|
+
}, null, 8, ["title", "description"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
h as _,
|
|
28
|
+
m as a,
|
|
29
|
+
H as c,
|
|
30
|
+
_ as i
|
|
31
|
+
};
|